Commit graph

53 commits

Author SHA1 Message Date
Travis Ralston
7ea61e4105 Appease the linter 2020-03-24 10:05:57 -06:00
Travis Ralston
bdcb65de77 Support and send the config over to capable widgets
For https://github.com/vector-im/riot-web/pull/12845
2020-03-24 09:55:54 -06:00
Travis Ralston
042bd35d79 Fix MatrixClientPeg imports 2019-12-22 21:15:54 -07:00
Travis Ralston
69fcebf045 Use allow/deny instead of whitelist/blacklist for terminology 2019-03-25 21:14:21 -06:00
Travis Ralston
2dcb40f1be Track OpenID automatic permissions by (widgetLocation, widgetUrl) 2019-03-23 23:25:31 -06:00
Travis Ralston
21d52a8311 Use the same function name to bind the OpenID request handler 2019-03-23 22:50:26 -06:00
Travis Ralston
b48842e070 Fix imports for linter 2019-03-15 21:51:19 -06:00
Travis Ralston
f045beafc3 Support whitelisting/blacklisting widgets for OpenID 2019-03-15 21:33:31 -06:00
Travis Ralston
d63c5e7134 Basic widget OpenID reauth implementation
Covers the minimum of https://github.com/vector-im/riot-web/issues/7153

This does not handling automatically accepting/blocking widgets yet, however. This could lead to dialog irritation.
2019-03-13 00:34:34 -06: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
Luke Barnard
4b6378a80d Add API to send visibiliy actions to widgets 2018-05-11 16:22:54 +01:00
Richard Lewis
4ac9653ab9 Refactor widget postMessage API. 2018-03-28 12:22:06 +01:00
Richard Lewis
53b716bad6 Throw capability request exception. 2018-03-13 10:51:01 +00:00
Richard Lewis
b2d23b6999 Switch to 'm.sticker' message events. Allow whitelisting of wisget capabilities. 2018-03-12 13:56:02 +00:00
Richard Lewis
b64736aa44 Add listener to close stickerpicker. 2018-02-26 13:43:16 +00:00
Richard Lewis
14d52c9f25 Open integration manager from widget postMessage. 2018-02-26 13:29:16 +00:00
Richard Lewis
c93faf7de7 Fix promise wrapping. 2018-02-25 22:21:30 +00:00
Richard Lewis
57b027b776 Fix API names. 2018-02-23 15:11:28 +00:00
Richard Lewis
23bef68a8f Fix duplicate message listeners 2018-01-18 13:16:06 +00:00
Richard Lewis
7b313b7acf Comment logging. 2018-01-04 22:38:52 +00:00
Richard Lewis
d20aebfbd7 Correctly handle sticker message events. 2018-01-04 18:58:55 +00:00
Richard Lewis
da199da798 Merge branch 'rxl881/snapshot' of https://github.com/matrix-org/matrix-react-sdk into rxl881/snapshot 2018-01-04 18:43:18 +00:00
Richard Lewis
32aecd0630 Fix event call 2018-01-04 18:43:08 +00:00
Richard Lewis
eb4053bc99 Handle sticker message payloads 2018-01-04 18:41:47 +00:00
Richard Lewis
b85efa08ce Merge branch 'rxl881/snapshot' of github.com:matrix-org/matrix-react-sdk into rxl881/snapshot 2018-01-04 09:53:29 +00:00
Richard Lewis
e96d199b28 Inject stickers 2018-01-04 09:53:26 +00:00
Richard Lewis
a408b98504 Set widget ID on WidgetMessaging instance. 2017-12-29 14:34:52 +00:00
Richard Lewis
7b59774b34 Update comment. 2017-12-28 17:08:50 +00:00
Richard Lewis
536d4efc40 Fix comments. 2017-12-19 17:11:36 +00:00
Richard Lewis
83f9a4162b Request capabilities (e.g. ability to take snapshots) from widgets. 2017-12-16 09:16:24 +00:00
Richard Lewis
e63f5696a6 Screenshot handlers 2017-12-15 21:36:02 +00:00
Richard Lewis
954c6eecd6 Set correct API name. 2017-12-15 19:42:06 +00:00
Richard Lewis
9f733ebc94 Fix binding and promise handling 2017-12-15 16:55:33 +00:00
Richard Lewis
56f497d39e Add comments and outbound postmessage action to request a widget screenshot. 2017-12-15 16:39:04 +00:00
Richard Lewis
c234e209fb Add postmessage api and move functions in to class 2017-12-15 15:24:22 +00:00
Richard Lewis
e20db416f2 Add field to bypass riot widget loading screen. 2017-12-06 16:44:41 +00:00
Richard Lewis
ac36f93c3f Remove logging. 2017-12-05 11:00:38 +00:00
Richard Lewis
59f9e388d4 Remove logging. 2017-12-05 00:11:01 +00:00
Richard Lewis
49a2985515 Register message endpoints.
Store endpoint origins only.
2017-12-05 00:08:17 +00:00
Richard Lewis
8595053d28 Update API data docs. 2017-12-04 18:06:05 +00:00
Richard Lewis
df1fa80ff6 Use global object for listener count and messaging endpoints. 2017-12-04 17:54:00 +00:00
Richard Lewis
dd7358cbb4 Use strict equality. 2017-12-01 16:39:07 +00:00
Richard Lewis
9dabf19d1b Improve readability. 2017-12-01 16:35:55 +00:00
Richard Lewis
81f7f805fa Fix check 2017-12-01 16:31:39 +00:00
Richard Lewis
024aefe131 Use ES6 style exports. 2017-12-01 16:17:18 +00:00
Richard Lewis
58616a45ef Add API endpoints to get current widget postMessage API version and supported API versions. 2017-12-01 15:56:30 +00:00
Richard Lewis
5239729e8e Return a response to widget postMessage request (inline with scalarMessaging API). 2017-12-01 14:56:27 +00:00
Richard Lewis
81fdccb109 Add API description comment. 2017-12-01 14:44:14 +00:00
Richard Lewis
87eab7573c Handle widget content loaded events. 2017-11-30 12:26:40 +00:00
Richard Lewis
be603fecb0 Register and de-register widget postMessage endpoints. 2017-11-30 11:30:30 +00:00