lucid-extension-sdk 0.0.201 → 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.
@@ -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.201",
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",