Bi-directional widget postMessaging API (stickerpacks) [WIP] #1672
Add dom-to-image dep.
26c6c25a
Add stub handler for image snapshot
3a89b90e
Workings for future posterity - Can't access iframe content from pare…
c9b8aab0
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
f4101129
Add postmessage api and move functions in to class
c234e209
Add comments and outbound postmessage action to request a widget scre…
56f497d3
Fix binding and promise handling
9f733ebc
Add event handlers and comments.
f2ad7be3
Set correct API name.
954c6eec
Screenshot handlers
e63f5696
Request capabilities (e.g. ability to take snapshots) from widgets.
83f9a416
rxl881
changed the title Bi-directional widget postMessaging API (screenshots) Bi-directional widget postMessaging API (screenshots) [WIP] 8 years ago
Remove unused dep.
774774c3
License and linting fixes.
8e5c3f01
Fix comments.
536d4efc
Make sure that capabilities array is initialised.
08bcfc5c
Only show snapshot button when apps are maximised.
baf472b4
Bump build
3724a1a6
Update comment.
7b59774b
Fix comment linting errors.
76601760
rxl881
changed the title Bi-directional widget postMessaging API (screenshots) [WIP] Bi-directional widget postMessaging API (screenshots) 8 years ago
Set widget ID on WidgetMessaging instance.
a408b985
Inject stickers
e96d199b
Merge branch 'rxl881/snapshot' of github.com:matrix-org/matrix-react-…
b85efa08
Handle sticker message payloads
eb4053bc
Fix event call
32aecd06
Merge branch 'rxl881/snapshot' of https://github.com/matrix-org/matri…
da199da7
Correctly handle sticker message events.
d20aebfb
Send m.sticker messages
54671ab6
Add sticker message rendering.
1c8586e8
Remove click handlers etc.
d652f117
Comment logging.
7b313b7a
Fix header and remove unused deps.
d256e473
Remove unused deps.
57247493
Comment logging.
54d12865
De-register listener.
dc142305
Handle sticker message event.
486b2cf1
Use m.room.sticker event.
5df9a01e
Fix duplicate event registration.
0577316c
Set user widgets on application data.
adebf71a
Save user widgets in accountData
60e7646f
Handle user widgets.
9e9de765
Translations
6b0b25c2
Replace apps button with stickers button in message composer.
9abb1601
Add stickers popover.
53b590f5
Content placeholder.
2bb51baf
Stickerpack styling
52f28d09
Move widget utility functions in to their own file.
1a994b88
Load user stickerpacks
2cf9da8c
Sticker popover styling
78bd25ef
Convert to ES6 class.
d0c16fa7
rxl881
changed the title Bi-directional widget postMessaging API (screenshots) Bi-directional widget postMessaging API (stickerpacks) [WIP] 8 years ago
Bind functions
4f367094
Load stickers in AppTile
1ab71f6f
Used forked version of react-popover
9df4dae9
Consistent popover size
90b7cb37
Add react-popover-tiny
23543614
Stickers popover.
a3c6dd36
Styling
351bbdfd
Cleanup styles.
0fab905a
* Fix key error
5e6da4d7
Remove arrow opacity.
5a9a4ead
Select apropriate theme colour for popover.
82b98979
Add comment
87d8ed5a
Remove rubbish lib.
cb7f25f4
Move stickers into stand-alone component.
86542d86
Stickerpack content placeholder.
93392840
Handle stickerpack close.
7676fc0c
Pass room to stickerpack
38ed01be
Add manage stickerpacks link
86da2041
Add manage integration link.
614a10c6
Use dispatcher ref for unregister call.
3331c8af
Keep reference to stickers menu
5a427126
Bring hide stickers icon to front when menu open.
fa336b7a
Update class names.
aa524c33
Don't treat sticker messages as info messages.
b6f85fbf
Handle non-m.room.message event types.
f8d7ab10
Cleanup
1293c53c
Refer rest parameters
917d85d6
Close context menu on resize.
910623d2
Fix duplicate message listeners
23bef68a
Manage sticker packs link and add comments
0441487e
Add stickerpack strings.
29962ed8
Add method to remove all stickerpacks.
34de3729
Add button to remove all stickerpacks
992c4771
Add asset add / remove messaging clauses.
e508f067
Update / remove stickerpacks
393236ba
Check for empty user widgets.
f3943bef
Use default AppTile menu bar.
7b75dbbd
Linting
5e30468a
Remove top padding from app tile.
234ca8b0
Pass room name.
9e3c1fbc
Hide apps drawer when viewining room settings.
55593416
Fix link spacing
ce560c57
Close modal on integration manager launch.
9a5c9165
Add error handling for failure to connect to integration manager.
88288ff3
Remove unused dep.
fefc325b
Ensure that roomId is validated before accessing room-based widgets.
46f94b3c
Fix API names.
57b027b7
Remove logging and cleanup.
d755b828
Reduce logging.
9b667f2c
Reduce logging.
9ae89e2b
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
b2bf4d47
Force rebuild
891199b7
Pull in changes from develop
332892fe
Disable all widget assets on widget removal.
86461bc8
Avoid potential NPE.
ee4310cc
Correct stickerpicker naming,
e249e3d6
Fix promise wrapping.
c93faf7d
Fix PropTypes.
2b0790b3
Add comment.
20a442c9
Global interface to start integration manager.
d3de44e6
Open integration manager from widget postMessage.
14d52c9f
Temp. revert unintended commit.
707e3f33
Fix current roomID.
73c8ef50
Add listener to close stickerpicker.
b64736aa
Make MStickerBody extend MImageBody.
5ca0fc3a
Wrap the close menu trigger in a timeout
8e7564b9
Wrap menu close in timeout to avoid element disappearing unexpectedly.
ef4d1371
Update widget type.
57c98d96
Show sticker description as a tooltip, on hover.
0fdbddf8
Bump build
21c8bed9
Lint.
f3c928a4
Pull in changes from develop
e2cedbe9
Nest sticker image element for correct positioning of tooltips.
7755a3ce
Prefix and clarify global variable naming.
d5465cf2
Linting
b529edb5
Move sticker picker icon.
7f91b475
Remove accidentally checked in yarn.lock
b2bb15be
Add placeholders for sticker images (and fancy transitions).
c59dd5b8
Hide sticker picker delete button and show minimise button.
3ab8b1f8
Hide padding if last control.
fdec4b36
Fix context menu offset.
e36ae3ce
Don't render placeholder when image is visible.
e7c19fd8
Use getUserWidgets where possible.
a3385932
Cleanup timeout before unmount.
7e062090
Simplify request mapping.
46f46ee2
Switch to 'm.sticker' message events. Allow whitelisting of wisget ca…
b2d23b69
Check if user widget.
a81269cb
Center loading spinner.
de332940
Throw capability request exception.
53b716ba
Logging.
f820374f
Get user widgets by default (if roomID is not specified).
7d13edc6
Null guard widget listener
8b311c70
Clean up whitelisted permission addition / logging.
66ea78de
Display sticker content (URL), rather than thumbnail.
83412acb
Allow react performance profiling on widget iframes.
4d8f5072
Bump CI build
74628120
dbkr
commented
on 2018-03-22
Refactor widget postMessage API.
4ac9653a
Expects object, not naked ID.
b4e70e30
Indentation.
5fc9b8a6
Don't swallow error.
a1581ad2
Indentation.
23a52bdb
Catch rather than 'done' error handler.
35fcb2c9
Ensure deleting is set to false.
aefccb13
Remove unused ref.
cafbd290
Remove duplicate event handler.
f3832982
Add comment.
9c10d243
Consistent function naming.
38c8bc7d
Comment.
e21cc14e
Comment.
67f755ef
Check for valid reference.
c8f9586c
"Stickerpack" translation.
6181ca64
Cleanup / simplify code.
b1e7dcf2
Consistent async / await / promises.
3d9bdb90
Avoid redefining function parameter
5ba18b5e
Add callback handler for integration manager close.
20cbc016
Wait for setAccountData to complete.
9a3f3562
Return promise
93804e80
Add back in body 'ref'
2e6d6c83
Handle remove sticker picker errors.
003cf613
Add comment.
ff0834ad
Move default sticker content into generator function.
9cc3d3c9
Remove inline styling.
557a45e8
Fix user widget event type.
11915b0c
Use AccessibleButton.
d83b6f1c
Move stickerpicker content out of state in to generator function.
49bea1a3
Fix content references
8241afe8
Put stickers behind labs flag.
b109c930
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
f8f8bc46
rxl881
merged
06f1c504
into develop 8 years ago
rxl881
deleted the rxl881/snapshot branch 8 years ago
Login to write a write a comment.
Login via GitHub