David Baker
d0ec467c34
Oops, actually get account data event.
...
Also ignore any account data events that aren;t widgets.
2018-05-15 14:13:56 +01:00
David Baker
f4d69e26e9
PR feedback
2018-05-15 12:06:23 +01:00
David Baker
142ce4c256
better comment
2018-05-15 11:50:24 +01:00
David Baker
2956c049d6
Wait for echo from server when adding user widgets
...
As hopefully all explained in comments.
Fixes https://github.com/vector-im/riot-web/issues/6727
2018-05-15 11:41:16 +01:00
Matthew Hodgson
4eb6942211
let onChange set originalEditorState
2018-05-15 01:16:06 +01:00
Matthew Hodgson
b60ccad29b
Merge branch 'develop' into matthew/slate
2018-05-15 01:00:07 +01:00
Matthew Hodgson
12a56e8b8e
remove spurious comment
2018-05-15 00:59:55 +01:00
Luke Barnard
b016a79d97
Merge branch 'develop' into release-v0.12.4
2018-05-14 17:51:27 +01:00
Luke Barnard
e596924074
Merge branch 'develop' into release-v0.12.4
2018-05-14 17:43:40 +01:00
Weblate
deec515e97
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 16:40:18 +00:00
Richard Lewis
8c3a63a169
Merge pull request #1894 from turt2live/travis/fix-stickerpacks
...
Correctly identify sticker picker widgets
2018-05-14 17:40:13 +01:00
Luke Barnard
ff0254d346
Fix ContextualMenu imports for TagTile and code block copy button
2018-05-14 17:36:57 +01:00
Weblate
9c4b25817c
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 16:27:14 +00:00
Slavi Pantaleev
4ce6093daf
Translated using Weblate (Bulgarian)
...
Currently translated at 99.1% (1165 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/bg/
2018-05-14 16:27:13 +00:00
David Baker
7588d4380c
Merge branch 'release-v0.12.4' into develop
2018-05-14 17:27:01 +01:00
Luke Barnard
e0236c3d3e
Fix issue with sticker picker rendering off-screen
...
when the RightPanel is collapsed on a small monitor
and the sticker picker is opened.
2018-05-14 17:12:45 +01:00
Kévin C
0591963cc1
Translated using Weblate (French)
...
Currently translated at 100.0% (1175 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/fr/
2018-05-14 15:46:17 +00:00
Luke Barnard
3761cd4054
When panels are shown/hidden, hide sticker picker
2018-05-14 16:35:12 +01:00
Weblate
3d17bd63a2
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 13:31:29 +00:00
Luke Barnard
49a3770e92
Merge branch 'release-v0.12.4' into develop
2018-05-14 14:31:18 +01:00
Richard Lewis
dddd1c43cc
Remove redundant logging (currently shown on every render when no stickerpicker is present).
2018-05-14 14:23:26 +01:00
Weblate
5a6d80b6d7
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 13:09:06 +00:00
Richard Lewis
986fb3237d
Remove redundant logging (currently shown on every render when no stickerpicker is present).
2018-05-14 13:56:39 +01:00
David Baker
b6e317647a
Fix stickers briefly being 2x the size
...
fixupHeight was the only thing actually fixing the size of the
sticker image to be the size we want it rather than the pixel size
of the image, and this was only getting run after the image loaded,
causing a flash of 2x image.
2018-05-14 13:41:41 +01:00
Jeff Huang
f384c465fd
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 100.0% (1175 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hant/
2018-05-14 11:51:18 +00:00
Weblate
bd91f6cde3
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 11:00:44 +00:00
Richard Lewis
49c1f1b41f
Merge pull request #1891 from turt2live/travis/widget-postmessage-patches
...
Send required properties when making requests to widgets over postMessage
2018-05-14 12:00:40 +01:00
Luke Barnard
cf8077e605
Set loading: false when iFrame finishes loading
2018-05-14 11:42:38 +01:00
Luke Barnard
6345e474f5
Remove unused conditional
2018-05-14 11:38:17 +01:00
Andrey
cc16961b43
Translated using Weblate (Russian)
...
Currently translated at 99.8% (1173 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/ru/
2018-05-14 10:22:11 +00:00
Luke Barnard
98c06315cf
Update widget state when account data changes
2018-05-14 11:14:49 +01:00
Szimszon
9cc8905443
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (1175 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/hu/
2018-05-14 09:27:23 +00:00
Sven Thomsen
d5d653e375
Translated using Weblate (German)
...
Currently translated at 100.0% (1175 of 1175 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/de/
2018-05-14 09:21:01 +00:00
Weblate
82f222d67e
Merge remote-tracking branch 'origin/develop' into develop
2018-05-14 09:18:47 +00:00
RainSlide
cd034d3c2a
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 97.7% (1148 of 1174 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/zh_Hans/
2018-05-14 09:18:46 +00:00
Matthew Hodgson
c1000a7cd5
emojioneify the composer
...
and also fix up the selectedness CSS for pills and emoji
2018-05-14 03:02:12 +01:00
Travis Ralston
210fcf0d52
Correctly identify sticker picker widgets
...
Widgets added to account data have the `type` of "m.widget", meaning we have to look at the `content.type` which will tell us what it is.
This also fixes a bug where all user widgets become sticker picker widgets under the right conditions.
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-05-13 17:15:35 -06:00
Matthew Hodgson
7ecb4e3b18
remove dead removeMDLinks code
2018-05-13 23:35:39 +01:00
Matthew Hodgson
7405b49b44
unify setState() and onChange()
...
also make emoji autocomplete work again
also remove the onInputContentChanged prop
also slateify the onInputStateChanged prop
2018-05-13 23:34:00 +01:00
Matthew Hodgson
a247ea2f77
delete duplicate propTypes(!!!)
2018-05-13 22:43:20 +01:00
Matthew Hodgson
ddfe0691c4
fix insert_mention
2018-05-13 22:41:39 +01:00
Matthew Hodgson
dd0726f068
fix navigating history downwards on tall messages; remove obsolete code
2018-05-13 21:17:43 +01:00
Matthew Hodgson
721410b710
Merge branch 'develop' into matthew/slate
2018-05-13 19:50:55 +01:00
Matthew Hodgson
79f7c5d6ab
remove // support, as it never worked
...
if you want to escape a /, do it with \/ or just precede with a space
2018-05-13 03:29:56 +01:00
Matthew Hodgson
4c3588d260
don't lose focus after a / command
2018-05-13 03:26:22 +01:00
Matthew Hodgson
e06763cd59
show all slashcommands on /
2018-05-13 03:18:41 +01:00
Matthew Hodgson
5605439e76
autocomplete polishing
...
* suppress autocomplete when navigating through history
* only search for slashcommands if in the first block of the editor
* handle suffix returns from providers correctly
* fix bugs when pressing ctrl-a, typing and then tab to complete a replacement by collapsing selection to anchor when inserting a completion in the editor
2018-05-13 03:17:14 +01:00
Matthew Hodgson
c967ecc4e5
autocomplete polishing
...
* suppress autocomplete when navigating through history
* only search for slashcommands if in the first block of the editor
* handle suffix returns from providers correctly
* fix SelectionRange typing in the providers
* fix bugs when pressing ctrl-a, typing and then tab to complete a replacement by collapsing selection to anchor when inserting a completion in the editor
* fix https://github.com/vector-im/riot-web/issues/4762
2018-05-13 03:04:40 +01:00
Matthew Hodgson
877a6195ae
unbreak history scrolling for pills & emoji
2018-05-13 00:54:01 +01:00
Matthew Hodgson
33eaa84bdf
fix NPEs when deleting mentions
2018-05-13 00:48:52 +01:00
Matthew Hodgson
c91dcffe82
fix cursor behaviour around pills
2018-05-13 00:40:54 +01:00
Travis Ralston
98da8b3575
Send the widgetId as part of all toWidget requests
...
Addresses part of https://github.com/vector-im/riot-web/issues/6708
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-05-12 14:32:12 -06:00
Travis Ralston
1515ca11a8
Add a warning for widget developers when their postMessage is missing a requestId
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-05-12 14:32:08 -06:00
Travis Ralston
0522ab8fcd
Expose the requestId fully in the toWidget postMessage API
...
This field is flagged as required in the proposal.
Addresses part of https://github.com/vector-im/riot-web/issues/6708
Signed-off-by: Travis Ralston
2018-05-12 14:31:58 -06:00
Travis Ralston
9e11720191
Add setting to enable widget screenshots (if widgets declare support)
...
Fixes the remainder of https://github.com/vector-im/riot-web/issues/6708
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-05-12 14:30:59 -06:00
Weblate
47772470c9
Merge remote-tracking branch 'origin/develop' into develop
2018-05-12 19:23:00 +00:00
Kenneth Larsson
e856e49fff
Translated using Weblate (Swedish)
...
Currently translated at 64.0% (752 of 1174 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/sv/
2018-05-12 19:23:00 +00:00
Matthew Hodgson
f8fd90c559
Merge pull request #1889 from matrix-org/t3chguy/replies-html-tag
...
T3chguy/replies html tag
2018-05-12 20:22:54 +01:00
Matthew Hodgson
9c0c806af4
correctly send pills in messages
2018-05-12 20:04:58 +01:00
Matthew Hodgson
d7c2c8ba7b
include the plaintext representation of a pill within it
2018-05-12 16:21:36 +01:00
Michael Telatynski
dbbcabfed8
switch from asymmetrical fallback form to a cleaner one mx-reply
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-05-12 15:58:25 +01:00
Matthew Hodgson
410a1683fe
make autocomplete selection work
2018-05-12 01:10:38 +01:00
Luke Barnard
9c5c5e282b
Send visibility only when changed, and messaging is available
2018-05-11 18:20:23 +01:00
Luke Barnard
a419056040
Delinting
2018-05-11 18:20:14 +01:00
Luke Barnard
06919e22d6
When stickerpicker made visible, send visibility over postMessage
2018-05-11 18:20:00 +01:00
Luke Barnard
bd0301c666
Add API to send visibiliy actions to widgets
2018-05-11 18:17:55 +01:00
Luke Barnard
42c59b5923
Make AppTile in Stickerpicker persistent using PersistedElement
2018-05-11 18:17:48 +01:00
Luke Barnard
2d2b529f80
Use new ContextualMenu component in Stickerpicker
2018-05-11 18:17:35 +01:00
Luke Barnard
9ec2570eab
Export ContextualMenu component, with added hasBackground
property
...
, which is only enabled when `createMenu` is used.
2018-05-11 18:17:27 +01:00
Luke Barnard
d503c86576
Factor out ContextualMenu component
2018-05-11 18:17:19 +01:00
Weblate
125082a76d
Merge remote-tracking branch 'origin/develop' into develop
2018-05-11 17:13:03 +00:00
Luke Barnard
eabcbb349c
Merge pull request #1888 from matrix-org/luke/instant-sticker-picker
...
Instant Sticker Picker
2018-05-11 18:12:57 +01:00
Luke Barnard
06898394eb
Send visibility only when changed, and messaging is available
2018-05-11 18:06:58 +01:00
Luke Barnard
1f2f3474ed
Delinting
2018-05-11 17:28:12 +01:00
Luke Barnard
8b049b2182
When stickerpicker made visible, send visibility over postMessage
2018-05-11 16:51:03 +01:00
Luke Barnard
4b6378a80d
Add API to send visibiliy actions to widgets
2018-05-11 16:22:54 +01:00
Luke Barnard
746eeee33c
Make AppTile in Stickerpicker persistent using PersistedElement
2018-05-11 15:07:51 +01:00
Luke Barnard
2dc51c516c
Use new ContextualMenu component in Stickerpicker
2018-05-11 14:47:57 +01:00
Xose M
f6a2e8d52c
Translated using Weblate (Galician)
...
Currently translated at 100.0% (1174 of 1174 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/gl/
2018-05-11 10:43:25 +00:00
Weblate
3f427a2603
Merge remote-tracking branch 'origin/develop' into develop
2018-05-10 17:12:49 +00:00
Sotiris Papatheodorou
1f23809c99
Translated using Weblate (Greek)
...
Currently translated at 66.5% (781 of 1174 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/el/
2018-05-10 17:12:48 +00:00
Richard Lewis
5cb892bf3c
Allow use of either 'data' or 'widgetData' fields for the time being.
2018-05-10 18:06:00 +01:00
Luke Barnard
2c2eda1f00
Export ContextualMenu component, with added hasBackground
property
...
, which is only enabled when `createMenu` is used.
2018-05-10 17:51:49 +01:00
Richard Lewis
cbf52e00d2
Update widget 'widgetData' key to 'data' to match spec.
2018-05-10 16:43:10 +01:00
Luke Barnard
9046769132
Factor out ContextualMenu component
2018-05-10 16:02:25 +01:00
Weblate
a615616ed4
Merge remote-tracking branch 'origin/develop' into develop
2018-05-10 08:18:31 +00:00
Richard Lewis
e5c0b21a28
Merge pull request #1886 from matrix-org/rxl881/widgetFixes
...
Fix 'state_key' field name.
2018-05-10 09:18:26 +01:00
Luke Barnard
770e2d400e
Improve appearance of short-lived app loading spinner
...
by hiding it for 500ms - thereby only showing it if the loading is
taking a long time.
2018-05-09 17:28:41 +01:00
Luke Barnard
0a326dc6a0
Take feature_sticker_messagse out of labs
2018-05-09 17:28:29 +01:00
Luke Barnard
97b9316ec7
Fix issue incorrect positioning with widget loading indicator
...
by making sure to apply the correct CSS class to the parent
2018-05-09 17:28:18 +01:00
Weblate
bd2cf3bca8
Merge remote-tracking branch 'origin/develop' into develop
2018-05-09 16:12:19 +00:00
Richard Lewis
44ea11d386
Fix 'state_key' field name.
2018-05-09 16:55:49 +01:00
Luke Barnard
0c1846630c
Improve appearance of short-lived app loading spinner
...
by hiding it for 500ms - thereby only showing it if the loading is
taking a long time.
2018-05-09 16:54:01 +01:00
Weblate
fe121d0952
Merge remote-tracking branch 'origin/develop' into develop
2018-05-09 15:52:26 +00:00
Luke Barnard
7d0406b430
Merge pull request #1883 from matrix-org/luke/cement-sticker-messages
...
Take feature_sticker_messagse out of labs
2018-05-09 16:52:20 +01:00
Weblate
60d85d3a44
Merge remote-tracking branch 'origin/develop' into develop
2018-05-09 15:52:16 +00:00
Luke Barnard
bcf003757c
Merge pull request #1884 from matrix-org/luke/fix-glitchy-widget-spinner
...
Fix issue incorrect positioning with widget loading indicator
2018-05-09 16:52:11 +01:00
Luke Barnard
59cbaf67bb
Fix issue incorrect positioning with widget loading indicator
...
by making sure to apply the correct CSS class to the parent
2018-05-09 15:48:53 +01:00
Weblate
147459d338
Merge remote-tracking branch 'origin/develop' into develop
2018-05-09 14:20:44 +00:00
Kenneth Larsson
cf77c9ea05
Translated using Weblate (Swedish)
...
Currently translated at 58.0% (682 of 1174 strings)
Translation: Riot Web/matrix-react-sdk
Translate-URL: https://translate.riot.im/projects/riot-web/matrix-react-sdk/sv/
2018-05-09 14:20:43 +00:00