lucid-extension-sdk 0.0.200 → 0.0.202

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
@@ -64,6 +64,7 @@ export declare const enum CommandName {
64
64
  GetDocumentAccessPermission = "gdap",
65
65
  GetDocumentId = "gdid",
66
66
  GetElementType = "get",
67
+ GetEnvironmentConfig = "gec",
67
68
  GetItemPageId = "gip",
68
69
  GetItemsAt = "gia",
69
70
  GetOAuthToken = "got",
@@ -313,6 +314,10 @@ export type CommandArgs = {
313
314
  query: GetElementTypeQuery;
314
315
  result: GetElementTypeResult;
315
316
  };
317
+ [CommandName.GetEnvironmentConfig]: {
318
+ query: GetEnvironmentConfigQuery;
319
+ result: GetEnvironmentConfigResult;
320
+ };
316
321
  [CommandName.GetItemPageId]: {
317
322
  query: GetItemPageIdQuery;
318
323
  result: GetItemPageIdResult;
@@ -958,6 +963,8 @@ export type GetElementTypeQuery = {
958
963
  'id'?: string | undefined;
959
964
  };
960
965
  export type GetElementTypeResult = 'block' | 'line' | 'group' | 'visual-activity' | 'page' | 'document' | 'generator' | 'panel';
966
+ export type GetEnvironmentConfigQuery = string;
967
+ export type GetEnvironmentConfigResult = JsonSerializable;
961
968
  export type GetConnectedLinesQuery = string;
962
969
  export type GetConnectedLinesResult = string[];
963
970
  export type GetCurrentPageQuery = void;
package/commandtypes.js CHANGED
@@ -42,6 +42,7 @@ exports.commandTitles = new Map([
42
42
  ["gdap" /* CommandName.GetDocumentAccessPermission */, 'GetDocumentAccessPermission'],
43
43
  ["gdid" /* CommandName.GetDocumentId */, 'GetDocumentId'],
44
44
  ["get" /* CommandName.GetElementType */, 'GetElementType'],
45
+ ["gec" /* CommandName.GetEnvironmentConfig */, 'GetEnvironmentConfig'],
45
46
  ["gip" /* CommandName.GetItemPageId */, 'GetItemPageId'],
46
47
  ["gia" /* CommandName.GetItemsAt */, 'GetItemsAt'],
47
48
  ["got" /* CommandName.GetOAuthToken */, 'GetOAuthToken'],
@@ -73,6 +73,11 @@ export declare class PageProxy extends ElementProxy {
73
73
  * @returns The added line
74
74
  */
75
75
  addLine(def: LineDefinition): LineProxy;
76
+ /**
77
+ * Add a new image to this page
78
+ * @param def The definition of the new image to add
79
+ * @returns The added image block
80
+ */
76
81
  addImage(def: ImageDefinition): Promise<BlockProxy>;
77
82
  /**
78
83
  * Updates the page of this page
@@ -113,6 +113,11 @@ class PageProxy extends elementproxy_1.ElementProxy {
113
113
  line.setEndpoint2(def.endpoint2);
114
114
  return line;
115
115
  }
116
+ /**
117
+ * Add a new image to this page
118
+ * @param def The definition of the new image to add
119
+ * @returns The added image block
120
+ */
116
121
  async addImage(def) {
117
122
  await this.client.loadBlockClasses(['UserImage2Block']);
118
123
  return this.addBlock(Object.assign({ className: 'UserImage2Block' }, def));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",