summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
committerRaindropsSys <contact@minteck.org>2023-04-24 14:03:36 +0200
commit633c92eae865e957121e08de634aeee11a8b3992 (patch)
tree09d881bee1dae0b6eee49db1dfaf0f500240606c /includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts
parentc4657e4509733699c0f26a3c900bab47e915d5a0 (diff)
downloadpluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.gz
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.tar.bz2
pluralconnect-633c92eae865e957121e08de634aeee11a8b3992.zip
Updated 18 files, added 1692 files and deleted includes/system/compare.inc (automated)
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts53
1 files changed, 53 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts b/includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts
new file mode 100644
index 0000000..d2278e6
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-widget-api/lib/models/Widget.d.ts
@@ -0,0 +1,53 @@
+import { IWidget, IWidgetData, WidgetType } from "..";
+import { ITemplateParams } from "..";
+/**
+ * Represents the barest form of widget.
+ */
+export declare class Widget {
+ private definition;
+ constructor(definition: IWidget);
+ /**
+ * The user ID who created the widget.
+ */
+ get creatorUserId(): string;
+ /**
+ * The type of widget.
+ */
+ get type(): WidgetType;
+ /**
+ * The ID of the widget.
+ */
+ get id(): string;
+ /**
+ * The name of the widget, or null if not set.
+ */
+ get name(): string | null;
+ /**
+ * The title for the widget, or null if not set.
+ */
+ get title(): string | null;
+ /**
+ * The templated URL for the widget.
+ */
+ get templateUrl(): string;
+ /**
+ * The origin for this widget.
+ */
+ get origin(): string;
+ /**
+ * Whether or not the client should wait for the iframe to load. Defaults
+ * to true.
+ */
+ get waitForIframeLoad(): boolean;
+ /**
+ * The raw data for the widget. This will always be defined, though
+ * may be empty.
+ */
+ get rawData(): IWidgetData;
+ /**
+ * Gets a complete widget URL for the client to render.
+ * @param {ITemplateParams} params The template parameters.
+ * @returns {string} A templated URL.
+ */
+ getCompleteUrl(params: ITemplateParams): string;
+}