lucid-extension-sdk 0.0.180 → 0.0.181

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
@@ -1199,6 +1199,10 @@ export type RegisterPanelQuery = {
1199
1199
  'to'?: string;
1200
1200
  /** If true, we will persist the panel's iframe */
1201
1201
  'p'?: boolean;
1202
+ /** Desired panel width */
1203
+ 'w'?: number | undefined;
1204
+ /** Desired panel height */
1205
+ 'h'?: number | undefined;
1202
1206
  };
1203
1207
  export type RegisterPanelResult = undefined;
1204
1208
  export type RegisterUnfurlQuery = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.180",
3
+ "version": "0.0.181",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/ui/panel.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare enum PanelLocation {
8
8
  RightDock = 1,
9
9
  /** In Lucidchart, create a sibling to the shape toolbox */
10
10
  ContentDock = 2,
11
- /** In Lucidspark, add a new tab to the image search callout component */
11
+ /** In Lucidchart & Lucidspark, add to the image dock */
12
12
  ImageSearchTab = 3
13
13
  }
14
14
  export type PanelConfig = {
@@ -24,6 +24,10 @@ export type PanelConfig = {
24
24
  toolTip?: string;
25
25
  /** If set true, we will persist the panel's iframe in the background if it's not currently active*/
26
26
  persist?: boolean;
27
+ /** Requested width of the panel, in pixels. Depending on window size & panel location, this may not be honored exactly. */
28
+ width?: number;
29
+ /** Requested height of the panel, in pixels. Depending on window size & panel location, this may not be honored exactly. */
30
+ height?: number;
27
31
  } & ({
28
32
  /** Content to display in the panel's iframe. This is set as the srcdoc on a sandboxed iframe. */
29
33
  content: string;
package/ui/panel.js CHANGED
@@ -11,7 +11,7 @@ var PanelLocation;
11
11
  PanelLocation[PanelLocation["RightDock"] = 1] = "RightDock";
12
12
  /** In Lucidchart, create a sibling to the shape toolbox */
13
13
  PanelLocation[PanelLocation["ContentDock"] = 2] = "ContentDock";
14
- /** In Lucidspark, add a new tab to the image search callout component */
14
+ /** In Lucidchart & Lucidspark, add to the image dock */
15
15
  PanelLocation[PanelLocation["ImageSearchTab"] = 3] = "ImageSearchTab";
16
16
  })(PanelLocation = exports.PanelLocation || (exports.PanelLocation = {}));
17
17
  /**
@@ -39,6 +39,8 @@ class Panel extends iframeui_1.IframeUI {
39
39
  'i': this.config.iconUrl,
40
40
  'to': this.config.toolTip,
41
41
  'p': this.config.persist,
42
+ 'w': this.config.width,
43
+ 'h': this.config.height,
42
44
  });
43
45
  }
44
46
  /**