lucid-extension-sdk
Advanced tools
Comparing version 0.0.255 to 0.0.256
@@ -63,2 +63,3 @@ import { SerializedFieldTypeDefinition } from './core/data/fieldtypedefinition/fieldtypedefinition'; | ||
DragPointerUp = "dpu", | ||
DuplicateItems = "dis", | ||
ElementExists = "ee", | ||
@@ -307,2 +308,6 @@ ExecuteFormula = "ef", | ||
}; | ||
[CommandName.DuplicateItems]: { | ||
query: DuplicateItemsQuery; | ||
result: DuplicateItemsResult; | ||
}; | ||
[CommandName.ElementExists]: { | ||
@@ -1044,2 +1049,6 @@ query: ElementExistsQuery; | ||
export type DragPointerUpResult = undefined; | ||
export type DuplicateItemsQuery = { | ||
'ids': string[]; | ||
}; | ||
export type DuplicateItemsResult = Promise<string[]>; | ||
export type ElementExistsQuery = { | ||
@@ -1046,0 +1055,0 @@ 'id'?: string | undefined; |
@@ -39,2 +39,3 @@ "use strict"; | ||
["dpu" /* CommandName.DragPointerUp */, 'DragPointerUp'], | ||
["dis" /* CommandName.DuplicateItems */, 'DuplicateItems'], | ||
["ee" /* CommandName.ElementExists */, 'ElementExists'], | ||
@@ -41,0 +42,0 @@ ["ef" /* CommandName.ExecuteFormula */, 'ExecuteFormula'], |
@@ -1,2 +0,2 @@ | ||
import { GetDocumentChunksType } from '../commandtypes'; | ||
import { DuplicateItemsResult, GetDocumentChunksType } from '../commandtypes'; | ||
import { EditorClient } from '../editorclient'; | ||
@@ -99,2 +99,3 @@ import { DocumentChunk } from './documentchunk'; | ||
unhookDeleteItems(handle: string): void; | ||
duplicateItems(ids: string[]): DuplicateItemsResult; | ||
} |
@@ -180,4 +180,7 @@ "use strict"; | ||
} | ||
async duplicateItems(ids) { | ||
return await this.client.sendCommand("dis" /* CommandName.DuplicateItems */, { 'ids': ids }); | ||
} | ||
} | ||
exports.DocumentProxy = DocumentProxy; | ||
DocumentProxy.nextHookId = 0; |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.255", | ||
"version": "0.0.256", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
749601
17418