This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 829
Bi-directional widget postMessaging API (stickerpacks) [WIP] #1672
Merged
Merged
Changes from 1 commit
Commits
Show all changes
177 commits
Select commit
Hold shift + click to select a range
26c6c25
Add dom-to-image dep.
rxl881 3a89b90
Add stub handler for image snapshot
rxl881 c9b8aab
Workings for future posterity - Can't access iframe content from pare…
rxl881 f410112
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
rxl881 c234e20
Add postmessage api and move functions in to class
rxl881 56f497d
Add comments and outbound postmessage action to request a widget scre…
rxl881 9f733eb
Fix binding and promise handling
rxl881 f2ad7be
Add event handlers and comments.
rxl881 954c6ee
Set correct API name.
rxl881 e63f569
Screenshot handlers
rxl881 83f9a41
Request capabilities (e.g. ability to take snapshots) from widgets.
rxl881 774774c
Remove unused dep.
rxl881 8e5c3f0
License and linting fixes.
rxl881 536d4ef
Fix comments.
rxl881 08bcfc5
Make sure that capabilities array is initialised.
rxl881 baf472b
Only show snapshot button when apps are maximised.
rxl881 3724a1a
Bump build
rxl881 7b59774
Update comment.
rxl881 7660176
Fix comment linting errors.
rxl881 a408b98
Set widget ID on WidgetMessaging instance.
rxl881 e96d199
Inject stickers
rxl881 b85efa0
Merge branch 'rxl881/snapshot' of github.com:matrix-org/matrix-react-…
rxl881 eb4053b
Handle sticker message payloads
rxl881 32aecd0
Fix event call
rxl881 da199da
Merge branch 'rxl881/snapshot' of https://github.com/matrix-org/matri…
rxl881 d20aebf
Correctly handle sticker message events.
rxl881 54671ab
Send m.sticker messages
rxl881 1c8586e
Add sticker message rendering.
rxl881 d652f11
Remove click handlers etc.
rxl881 7b313b7
Comment logging.
rxl881 d256e47
Fix header and remove unused deps.
rxl881 5724749
Remove unused deps.
rxl881 54d1286
Comment logging.
rxl881 dc14230
De-register listener.
rxl881 486b2cf
Handle sticker message event.
rxl881 5df9a01
Use m.room.sticker event.
rxl881 0577316
Fix duplicate event registration.
rxl881 adebf71
Set user widgets on application data.
rxl881 60e7646
Save user widgets in accountData
rxl881 9e9de76
Handle user widgets.
rxl881 6b0b25c
Translations
rxl881 9abb160
Replace apps button with stickers button in message composer.
rxl881 53b590f
Add stickers popover.
rxl881 2bb51ba
Content placeholder.
rxl881 52f28d0
Stickerpack styling
rxl881 1a994b8
Move widget utility functions in to their own file.
rxl881 2cf9da8
Load user stickerpacks
rxl881 78bd25e
Sticker popover styling
rxl881 d0c16fa
Convert to ES6 class.
rxl881 4f36709
Bind functions
rxl881 1ab71f6
Load stickers in AppTile
rxl881 9df4dae
Used forked version of react-popover
rxl881 90b7cb3
Consistent popover size
rxl881 2354361
Add react-popover-tiny
rxl881 a3c6dd3
Stickers popover.
rxl881 351bbdf
Styling
rxl881 0fab905
Cleanup styles.
rxl881 5e6da4d
* Fix key error
rxl881 5a9a4ea
Remove arrow opacity.
rxl881 82b9897
Select apropriate theme colour for popover.
rxl881 87d8ed5
Add comment
rxl881 cb7f25f
Remove rubbish lib.
rxl881 86542d8
Move stickers into stand-alone component.
rxl881 9339284
Stickerpack content placeholder.
rxl881 7676fc0
Handle stickerpack close.
rxl881 38ed01b
Pass room to stickerpack
rxl881 86da204
Add manage stickerpacks link
rxl881 614a10c
Add manage integration link.
rxl881 3331c8a
Use dispatcher ref for unregister call.
rxl881 5a42712
Keep reference to stickers menu
rxl881 fa336b7
Bring hide stickers icon to front when menu open.
rxl881 aa524c3
Update class names.
rxl881 b6f85fb
Don't treat sticker messages as info messages.
rxl881 f8d7ab1
Handle non-m.room.message event types.
rxl881 1293c53
Cleanup
rxl881 917d85d
Refer rest parameters
rxl881 910623d
Close context menu on resize.
rxl881 23bef68
Fix duplicate message listeners
rxl881 0441487
Manage sticker packs link and add comments
rxl881 29962ed
Add stickerpack strings.
rxl881 34de372
Add method to remove all stickerpacks.
rxl881 992c477
Add button to remove all stickerpacks
rxl881 e508f06
Add asset add / remove messaging clauses.
rxl881 393236b
Update / remove stickerpacks
rxl881 f3943be
Check for empty user widgets.
rxl881 7b75dbb
Use default AppTile menu bar.
rxl881 5e30468
Linting
rxl881 234ca8b
Remove top padding from app tile.
rxl881 9e3c1fb
Pass room name.
rxl881 5559341
Hide apps drawer when viewining room settings.
rxl881 ce560c5
Fix link spacing
rxl881 9a5c916
Close modal on integration manager launch.
rxl881 88288ff
Add error handling for failure to connect to integration manager.
rxl881 fefc325
Remove unused dep.
rxl881 46f94b3
Ensure that roomId is validated before accessing room-based widgets.
rxl881 57b027b
Fix API names.
rxl881 d755b82
Remove logging and cleanup.
rxl881 9b667f2
Reduce logging.
rxl881 9ae89e2
Reduce logging.
rxl881 b2bf4d4
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
rxl881 891199b
Force rebuild
rxl881 332892f
Pull in changes from develop
rxl881 86461bc
Disable all widget assets on widget removal.
rxl881 ee4310c
Avoid potential NPE.
rxl881 e249e3d
Correct stickerpicker naming,
rxl881 c93faf7
Fix promise wrapping.
rxl881 2b0790b
Fix PropTypes.
rxl881 20a442c
Add comment.
rxl881 d3de44e
Global interface to start integration manager.
rxl881 14d52c9
Open integration manager from widget postMessage.
rxl881 707e3f3
Temp. revert unintended commit.
rxl881 73c8ef5
Fix current roomID.
rxl881 b64736a
Add listener to close stickerpicker.
rxl881 5ca0fc3
Make MStickerBody extend MImageBody.
rxl881 8e7564b
Wrap the close menu trigger in a timeout
rxl881 ef4d137
Wrap menu close in timeout to avoid element disappearing unexpectedly.
rxl881 57c98d9
Update widget type.
rxl881 0fdbddf
Show sticker description as a tooltip, on hover.
rxl881 21c8bed
Bump build
rxl881 f3c928a
Lint.
rxl881 e2cedbe
Pull in changes from develop
rxl881 7755a3c
Nest sticker image element for correct positioning of tooltips.
rxl881 d5465cf
Prefix and clarify global variable naming.
rxl881 b529edb
Linting
rxl881 7f91b47
Move sticker picker icon.
rxl881 b2bb15b
Remove accidentally checked in yarn.lock
rxl881 c59dd5b
Add placeholders for sticker images (and fancy transitions).
rxl881 3ab8b1f
Hide sticker picker delete button and show minimise button.
rxl881 fdec4b3
Hide padding if last control.
rxl881 e36ae3c
Fix context menu offset.
rxl881 e7c19fd
Don't render placeholder when image is visible.
rxl881 a338593
Use getUserWidgets where possible.
rxl881 7e06209
Cleanup timeout before unmount.
rxl881 46f46ee
Simplify request mapping.
rxl881 b2d23b6
Switch to 'm.sticker' message events. Allow whitelisting of wisget ca…
rxl881 a81269c
Check if user widget.
rxl881 de33294
Center loading spinner.
rxl881 53b716b
Throw capability request exception.
rxl881 f820374
Logging.
rxl881 7d13edc
Get user widgets by default (if roomID is not specified).
rxl881 8b311c7
Null guard widget listener
rxl881 66ea78d
Clean up whitelisted permission addition / logging.
rxl881 83412ac
Display sticker content (URL), rather than thumbnail.
rxl881 4d8f507
Allow react performance profiling on widget iframes.
rxl881 7462812
Bump CI build
rxl881 4ac9653
Refactor widget postMessage API.
rxl881 b4e70e3
Expects object, not naked ID.
rxl881 5fc9b8a
Indentation.
rxl881 a1581ad
Don't swallow error.
rxl881 23a52bd
Indentation.
rxl881 35fcb2c
Catch rather than 'done' error handler.
rxl881 aefccb1
Ensure deleting is set to false.
rxl881 cafbd29
Remove unused ref.
rxl881 f383298
Remove duplicate event handler.
rxl881 9c10d24
Add comment.
rxl881 38c8bc7
Consistent function naming.
rxl881 e21cc14
Comment.
rxl881 67f755e
Comment.
rxl881 c8f9586
Check for valid reference.
rxl881 6181ca6
"Stickerpack" translation.
rxl881 b1e7dcf
Cleanup / simplify code.
rxl881 3d9bdb9
Consistent async / await / promises.
rxl881 5ba18b5
Avoid redefining function parameter
rxl881 20cbc01
Add callback handler for integration manager close.
rxl881 9a3f356
Wait for setAccountData to complete.
rxl881 93804e8
Return promise
rxl881 2e6d6c8
Add back in body 'ref'
rxl881 003cf61
Handle remove sticker picker errors.
rxl881 ff0834a
Add comment.
rxl881 9cc3d3c
Move default sticker content into generator function.
rxl881 557a45e
Remove inline styling.
rxl881 11915b0
Fix user widget event type.
rxl881 d83b6f1
Use AccessibleButton.
rxl881 49bea1a
Move stickerpicker content out of state in to generator function.
rxl881 8241afe
Fix content references
rxl881 b109c93
Put stickers behind labs flag.
rxl881 f8f8bc4
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
rxl881 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add listener to close stickerpicker.
- Loading branch information
commit b64736aa44910a4cad4e449dc3f81c2839b95173
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm, redefining function params can be confusing