lucid-extension-sdk 0.0.171 → 0.0.172

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.
@@ -14,11 +14,6 @@ export interface IframeAttributes {
14
14
  * The source url
15
15
  */
16
16
  src: string;
17
- /**
18
- * The list of feature policies allowed
19
- * for example, "autoplay; fullscreen;"
20
- */
21
- allow?: string;
22
17
  /**
23
18
  * The iFrame height
24
19
  */
@@ -20,7 +20,6 @@ exports.DEFAULT_IFRAME_HEIGHT = 9;
20
20
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe for a list of iframe attributes.
21
21
  */
22
22
  const iframeRegExps = {
23
- allow: /allow="(.*?)"/i,
24
23
  src: /src="((https:\/\/|\/\/).*?)"/i,
25
24
  height: /height="(\d*?)"/i,
26
25
  width: /width="(\d*?)"/i,
@@ -44,9 +43,6 @@ function generateIFrameHTML(iframeAttributes) {
44
43
  const title = iframeAttributes.title.replace(/"/g, '"');
45
44
  iframeHTML += ` title="${title}"`;
46
45
  }
47
- if (iframeAttributes.allow) {
48
- iframeHTML += ` allow="${iframeAttributes.allow}"`;
49
- }
50
46
  iframeHTML += '></iframe>';
51
47
  return iframeHTML;
52
48
  }
@@ -57,14 +53,12 @@ exports.generateIFrameHTML = generateIFrameHTML;
57
53
  * @ignore
58
54
  */
59
55
  function parseIFrameAttributesFromHTML(iframeHTML) {
60
- var _a, _b, _c, _d, _e, _f, _g, _h;
61
- const allow = (_b = (_a = iframeHTML.match(iframeRegExps.allow)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
62
- const src = (_d = (_c = iframeHTML.match(iframeRegExps.src)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : '';
63
- const height = (_e = iframeHTML.match(iframeRegExps.height)) === null || _e === void 0 ? void 0 : _e[1];
64
- const width = (_f = iframeHTML.match(iframeRegExps.width)) === null || _f === void 0 ? void 0 : _f[1];
65
- const title = (_h = (_g = iframeHTML.match(iframeRegExps.title)) === null || _g === void 0 ? void 0 : _g[1]) !== null && _h !== void 0 ? _h : '';
56
+ var _a, _b, _c, _d, _e, _f;
57
+ const src = (_b = (_a = iframeHTML.match(iframeRegExps.src)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '';
58
+ const height = (_c = iframeHTML.match(iframeRegExps.height)) === null || _c === void 0 ? void 0 : _c[1];
59
+ const width = (_d = iframeHTML.match(iframeRegExps.width)) === null || _d === void 0 ? void 0 : _d[1];
60
+ const title = (_f = (_e = iframeHTML.match(iframeRegExps.title)) === null || _e === void 0 ? void 0 : _e[1]) !== null && _f !== void 0 ? _f : '';
66
61
  return {
67
- allow: allow,
68
62
  src: src,
69
63
  height: !(0, checks_1.isUndefined)(height) ? Number.parseInt(height) : exports.DEFAULT_IFRAME_HEIGHT,
70
64
  width: !(0, checks_1.isUndefined)(width) ? Number.parseInt(width) : exports.DEFAULT_IFRAME_WIDTH,
@@ -12,5 +12,6 @@ export declare enum DocumentElementType {
12
12
  DocumentFormula = "Formula",
13
13
  TaskCardFieldsConfig = "TaskCardFieldsConfig",
14
14
  GeneratorView = "GeneratorView",
15
- ShapeStylePreset = "ShapeStylePreset"
15
+ ShapeStylePreset = "ShapeStylePreset",
16
+ ShapeSpecificDefaultProperties = "ShapeSpecificDefaultProperties"
16
17
  }
@@ -17,4 +17,5 @@ var DocumentElementType;
17
17
  DocumentElementType["TaskCardFieldsConfig"] = "TaskCardFieldsConfig";
18
18
  DocumentElementType["GeneratorView"] = "GeneratorView";
19
19
  DocumentElementType["ShapeStylePreset"] = "ShapeStylePreset";
20
+ DocumentElementType["ShapeSpecificDefaultProperties"] = "ShapeSpecificDefaultProperties";
20
21
  })(DocumentElementType = exports.DocumentElementType || (exports.DocumentElementType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.171",
3
+ "version": "0.0.172",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",