Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Modal Widgets - MSC2790 #5252

Merged
merged 15 commits into from
Oct 23, 2020
Merged

Modal Widgets - MSC2790 #5252

merged 15 commits into from
Oct 23, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Sep 25, 2020

Adhoc build: https://riots.im/adhoc/modal-widgets3/
Requires matrix-org/matrix-widget-api#3
Sample widgets at https://github.com/vector-im/element-web/compare/t3chguy/feat/modal-widgets

image

Instructions:

turt2live and others added 8 commits September 21, 2020 14:36
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
… t3chguy/feat/modal-widgets

� Conflicts:
�	src/@types/global.d.ts
… t3chguy/feat/modal-widgets

� Conflicts:
�	src/@types/global.d.ts
�	src/FromWidgetPostMessageApi.js
�	src/WidgetMessaging.js
�	src/widgets/WidgetApi.ts
Signed-off-by: Michael Telatynski <[email protected]>
@t3chguy t3chguy marked this pull request as ready for review October 22, 2020 21:09
@t3chguy t3chguy requested review from turt2live and a team October 22, 2020 21:09
Comment on lines +98 to +102
// Add in some legacy support sprinkles (for non-popout widgets)
// TODO: Replace these with proper widget params
// See https://github.com/matrix-org/matrix-doc/pull/1958/files#r405714833
parsed.searchParams.set('widgetId', this.widget.id);
parsed.searchParams.set('parentUrl', window.location.href.split('#', 2)[0]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly for my notes: a lot of this is copied from SGWidget, but that's going away with the stuff I'm doing. Will need to refactor this a bit.

@turt2live turt2live requested a review from a team October 22, 2020 22:19
@turt2live turt2live merged commit 646ed4c into develop Oct 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants