widget whiteboard added in widget model and in integrations registry

This commit is contained in:
nurjinn jafar 2020-09-02 09:56:08 +02:00
parent 402cec5b41
commit 3140b467b2
2 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,7 @@ export const WIDGET_TWITCH = ["twitch", "dimension-twitch"]; // TODO: m.* namesp
export const WIDGET_STICKER_PICKER = ["m.stickerpicker"];
export const WIDGET_TRADINGVIEW = ["tradingview", "dimension-tradingview"]; // TODO: Use m.tradingview (https://github.com/turt2live/matrix-dimension/issues/261)
export const WIDGET_SPOTIFY = ["m.spotify", "spotify", "dimension-spotify"];
export const WIDGET_WHITEBOARD = ["whiteboard", "phoenix-whiteboard"];
export interface EditableWidget {
/**

View File

@ -10,7 +10,8 @@ import {
WIDGET_STICKER_PICKER,
WIDGET_TRADINGVIEW,
WIDGET_TWITCH,
WIDGET_YOUTUBE
WIDGET_YOUTUBE,
WIDGET_WHITEBOARD
} from "../models/widget";
import { FE_Integration } from "../models/integration";
@ -65,6 +66,9 @@ export class IntegrationsRegistry {
"stickerpicker": {
types: WIDGET_STICKER_PICKER,
},
"whiteboard": {
type: WIDGET_WHITEBOARD,
}
},
};