lucid-extension-sdk 0.0.169 → 0.0.171

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
@@ -729,6 +729,7 @@ export declare type BootstrapQuery = {
729
729
  };
730
730
  export declare type BootstrapResult = Promise<void>;
731
731
  export declare enum HashAlgorithmEnum {
732
+ /** Use the SHA 256 hashing algorithm */
732
733
  sha256 = "SHA256"
733
734
  }
734
735
  export declare type CalculateHashQuery = {
package/commandtypes.js CHANGED
@@ -110,6 +110,7 @@ exports.commandTitles = new Map([
110
110
  ]);
111
111
  var HashAlgorithmEnum;
112
112
  (function (HashAlgorithmEnum) {
113
+ /** Use the SHA 256 hashing algorithm */
113
114
  HashAlgorithmEnum["sha256"] = "SHA256";
114
115
  })(HashAlgorithmEnum = exports.HashAlgorithmEnum || (exports.HashAlgorithmEnum = {}));
115
116
  var GetItemsAtSearchType;
@@ -14,6 +14,14 @@ export declare class LinkUnfurlBlockProxy extends BlockProxy {
14
14
  * Sets the title on the block, which is the main text shown on the block.
15
15
  */
16
16
  setTitle(title: string): void;
17
+ /**
18
+ * Returns the description on the block.
19
+ */
20
+ getDescription(): string;
21
+ /**
22
+ * Sets the description on the block.
23
+ */
24
+ setDescription(description: string): void;
17
25
  /**
18
26
  * Returns the name of the service the link belongs to, such as "Lucid" or "Google", as displayed below the title on
19
27
  * the block.
@@ -20,6 +20,18 @@ class LinkUnfurlBlockProxy extends blockproxy_1.BlockProxy {
20
20
  setTitle(title) {
21
21
  this.textAreas.set('t_LinkUnfurlTitle', title, { force: true });
22
22
  }
23
+ /**
24
+ * Returns the description on the block.
25
+ */
26
+ getDescription() {
27
+ return this.textAreas.get('t_LinkUnfurlDescription');
28
+ }
29
+ /**
30
+ * Sets the description on the block.
31
+ */
32
+ setDescription(description) {
33
+ this.textAreas.set('t_LinkUnfurlDescription', description, { force: true });
34
+ }
23
35
  /**
24
36
  * Returns the name of the service the link belongs to, such as "Lucid" or "Google", as displayed below the title on
25
37
  * the block.
package/editorclient.d.ts CHANGED
@@ -354,6 +354,7 @@ export declare class EditorClient {
354
354
  * @param string The raw string we are calculating the hash of.
355
355
  * @returns The hashed string.
356
356
  */
357
+ /** @ignore because our documentation gets generated incorrectly for an as-yet unknown reason. It seems to refer to the HashAlgorithmEnum with an incorrect link. */
357
358
  hash(algorithm: HashAlgorithmEnum, string: string): string;
358
359
  constructor();
359
360
  }
package/editorclient.js CHANGED
@@ -593,6 +593,7 @@ class EditorClient {
593
593
  * @param string The raw string we are calculating the hash of.
594
594
  * @returns The hashed string.
595
595
  */
596
+ /** @ignore because our documentation gets generated incorrectly for an as-yet unknown reason. It seems to refer to the HashAlgorithmEnum with an incorrect link. */
596
597
  hash(algorithm, string) {
597
598
  return this.sendCommand("hsh" /* CommandName.CalculateHash */, { 'a': algorithm, 's': string });
598
599
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.169",
3
+ "version": "0.0.171",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",