lucid-extension-sdk 0.0.233 → 0.0.234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commandtypes.d.ts +1 -1
- package/package.json +1 -1
- package/ui/modal.d.ts +1 -1
- package/ui/modal.js +2 -2
package/commandtypes.d.ts
CHANGED
|
@@ -1540,7 +1540,7 @@ export type ShowModalQuery = {
|
|
|
1540
1540
|
/** URL to display in the modal (this or c is required). Can be relative to /public directory in the package */
|
|
1541
1541
|
'u'?: string | undefined;
|
|
1542
1542
|
};
|
|
1543
|
-
export type ShowModalResult = undefined
|
|
1543
|
+
export type ShowModalResult = Promise<undefined>;
|
|
1544
1544
|
export type ShowPackageSettingsModalQuery = undefined;
|
|
1545
1545
|
export type ShowPackageSettingsModalResult = Promise<void>;
|
|
1546
1546
|
export type ShowPanelQuery = {
|
package/package.json
CHANGED
package/ui/modal.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare abstract class Modal extends IframeUI {
|
|
|
57
57
|
private visible;
|
|
58
58
|
constructor(client: EditorClient, config: ModalConfig);
|
|
59
59
|
protected frameClosed(): void;
|
|
60
|
-
show(): void
|
|
60
|
+
show(): Promise<void>;
|
|
61
61
|
/**
|
|
62
62
|
* If this modal is currently visible, close it, destroying the iframe.
|
|
63
63
|
*/
|
package/ui/modal.js
CHANGED
|
@@ -22,10 +22,10 @@ class Modal extends iframeui_1.IframeUI {
|
|
|
22
22
|
this.visible = false;
|
|
23
23
|
this.unhookMessages();
|
|
24
24
|
}
|
|
25
|
-
show() {
|
|
25
|
+
async show() {
|
|
26
26
|
if (!this.visible) {
|
|
27
27
|
this.hookMessages();
|
|
28
|
-
this.client.sendCommand("sm" /* CommandName.ShowModal */, {
|
|
28
|
+
await this.client.sendCommand("sm" /* CommandName.ShowModal */, {
|
|
29
29
|
'n': this.messageActionName,
|
|
30
30
|
't': this.config.title,
|
|
31
31
|
'w': this.config.width,
|