lucid-extension-sdk 0.0.272 → 0.0.273
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 +12 -0
- package/commandtypes.js +1 -0
- package/package.json +1 -1
package/commandtypes.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { PanelLocation } from './ui/panel';
|
|
|
27
27
|
export declare const enum CommandName {
|
|
28
28
|
AddCardIntegration = "aci",
|
|
29
29
|
AddDiagramFromMermaid = "adfm",
|
|
30
|
+
AddDiagramFromText = "adft",
|
|
30
31
|
AddLineTextArea = "alta",
|
|
31
32
|
AddMenuItem = "ami",
|
|
32
33
|
AddShapeData = "asd",
|
|
@@ -173,6 +174,10 @@ export type CommandArgs = {
|
|
|
173
174
|
query: AddDiagramFromMermaidQuery;
|
|
174
175
|
result: AddDiagramFromMermaidResult;
|
|
175
176
|
};
|
|
177
|
+
[CommandName.AddDiagramFromText]: {
|
|
178
|
+
query: AddDiagramFromTextQuery;
|
|
179
|
+
result: AddDiagramFromTextResult;
|
|
180
|
+
};
|
|
176
181
|
[CommandName.AddLineTextArea]: {
|
|
177
182
|
query: AddLineTextAreaQuery;
|
|
178
183
|
result: AddLineTextAreaResult;
|
|
@@ -732,6 +737,13 @@ export type AddCardIntegrationQuery = {
|
|
|
732
737
|
} | undefined;
|
|
733
738
|
};
|
|
734
739
|
export type AddCardIntegrationResult = undefined;
|
|
740
|
+
/** @ignore */
|
|
741
|
+
export type AddDiagramFromTextQuery = {
|
|
742
|
+
/** The text prompt that will be used to generate the diagram. */
|
|
743
|
+
't': string;
|
|
744
|
+
};
|
|
745
|
+
/** @ignore */
|
|
746
|
+
export type AddDiagramFromTextResult = Promise<{}>;
|
|
735
747
|
export type AddLineTextAreaQuery = {
|
|
736
748
|
/** Which line */
|
|
737
749
|
'id': string;
|
package/commandtypes.js
CHANGED
|
@@ -6,6 +6,7 @@ const checks_1 = require("./core/checks");
|
|
|
6
6
|
exports.commandTitles = new Map([
|
|
7
7
|
["aci" /* CommandName.AddCardIntegration */, 'AddCardIntegration'],
|
|
8
8
|
["adfm" /* CommandName.AddDiagramFromMermaid */, 'AddDiagramFromMermaid'],
|
|
9
|
+
["adft" /* CommandName.AddDiagramFromText */, 'AddDiagramFromText'],
|
|
9
10
|
["alta" /* CommandName.AddLineTextArea */, 'AddLineTextArea'],
|
|
10
11
|
["ami" /* CommandName.AddMenuItem */, 'AddMenuItem'],
|
|
11
12
|
["asd" /* CommandName.AddShapeData */, 'AddShapeData'],
|