lucid-extension-sdk 0.0.81 → 0.0.83
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/package.json +1 -1
- package/sdk/ui/panel.d.ts +5 -1
- package/sdk/ui/panel.js +3 -0
package/package.json
CHANGED
package/sdk/ui/panel.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare enum PanelLocation {
|
|
|
7
7
|
/** In Lucidchart, create a sibling to the Contextual Panel */
|
|
8
8
|
RightDock = 1,
|
|
9
9
|
/** In Lucidchart, create a sibling to the shape toolbox */
|
|
10
|
-
ContentDock = 2
|
|
10
|
+
ContentDock = 2,
|
|
11
|
+
/** In Lucidspark, add a new tab to the image search callout component */
|
|
12
|
+
ImageSearchTab = 3
|
|
11
13
|
}
|
|
12
14
|
export interface PanelConfig {
|
|
13
15
|
/** Title to display at the top of the panel */
|
|
@@ -20,6 +22,8 @@ export interface PanelConfig {
|
|
|
20
22
|
visibleAction?: string;
|
|
21
23
|
/** The URL for an icon to represent the panel, preferably base64-encoded. Will be displayed at 24x24 CSS pixels in size. */
|
|
22
24
|
iconUrl: string;
|
|
25
|
+
/** A tool tip to be displayed when hovering over the activation icon. */
|
|
26
|
+
toolTip?: string;
|
|
23
27
|
}
|
|
24
28
|
/**
|
|
25
29
|
* Extend this class to show a custom panel to the user, whose contents are displayed in a sandboxed
|
package/sdk/ui/panel.js
CHANGED
|
@@ -11,6 +11,8 @@ 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 */
|
|
15
|
+
PanelLocation[PanelLocation["ImageSearchTab"] = 3] = "ImageSearchTab";
|
|
14
16
|
})(PanelLocation = exports.PanelLocation || (exports.PanelLocation = {}));
|
|
15
17
|
/**
|
|
16
18
|
* Extend this class to show a custom panel to the user, whose contents are displayed in a sandboxed
|
|
@@ -34,6 +36,7 @@ class Panel extends iframeui_1.IframeUI {
|
|
|
34
36
|
'c': this.config.content,
|
|
35
37
|
'v': this.config.visibleAction,
|
|
36
38
|
'i': this.config.iconUrl,
|
|
39
|
+
'to': this.config.toolTip,
|
|
37
40
|
});
|
|
38
41
|
}
|
|
39
42
|
/**
|