lucid-extension-sdk 0.0.330 → 0.0.331

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.
@@ -39,6 +39,10 @@ export declare class LinkUnfurlBlockProxy extends BlockProxy {
39
39
  * Sets the URL to be loaded in an iframe when the user clicks the "Expand" action on the block.
40
40
  */
41
41
  setIframe(unfurlIframe: UnfurlIframe): void;
42
+ /**
43
+ * Clears the iframe set on the block. The "Expand" action will default to the block's thumbnail image.
44
+ */
45
+ clearIframe(): void;
42
46
  /**
43
47
  * Returns true if there is an iframe URL already set for this unfurl block
44
48
  */
@@ -60,6 +60,14 @@ class LinkUnfurlBlockProxy extends blockproxy_1.BlockProxy {
60
60
  this.properties.set('LinkUnfurlIframeHeight', iframeAttributes.height);
61
61
  this.properties.set('LinkUnfurlIframeWidth', iframeAttributes.width);
62
62
  }
63
+ /**
64
+ * Clears the iframe set on the block. The "Expand" action will default to the block's thumbnail image.
65
+ */
66
+ clearIframe() {
67
+ this.properties.set('LinkUnfurlIframeHtml', undefined);
68
+ this.properties.set('LinkUnfurlIframeHeight', undefined);
69
+ this.properties.set('LinkUnfurlIframeWidth', undefined);
70
+ }
63
71
  /**
64
72
  * Returns true if there is an iframe URL already set for this unfurl block
65
73
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.330",
3
+ "version": "0.0.331",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",