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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
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,