@chili-publish/studio-sdk 1.27.0 → 1.28.0
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/_bundles/main.es.js +3 -3
- package/_bundles/main.es.js.map +1 -1
- package/_bundles/main.js +2 -2
- package/_bundles/main.js.map +1 -1
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +1 -1
- package/lib/src/controllers/VariableController.d.ts +7 -0
- package/lib/src/controllers/VariableController.js +12 -0
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/next/types/VariableTypes.d.ts +1 -0
- package/lib/src/next/types/VariableTypes.js.map +1 -1
- package/lib/src/tests/controllers/VariableController.test.js +7 -0
- package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/types/VariableTypes.d.ts +2 -0
- package/lib/src/types/VariableTypes.js.map +1 -1
- package/package.json +1 -1
package/_bundles/main.es.js
CHANGED
|
@@ -3,9 +3,9 @@ var Ie = (s) => {
|
|
|
3
3
|
};
|
|
4
4
|
var ve = (s, i, t) => i.has(s) || Ie("Cannot " + t);
|
|
5
5
|
var a = (s, i, t) => (ve(s, i, "read from private field"), t ? t.call(s) : i.get(s)), u = (s, i, t) => i.has(s) ? Ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), g = (s, i, t, e) => (ve(s, i, "write to private field"), e ? e.call(s, t) : i.set(s, t), t);
|
|
6
|
-
const bs = "2.
|
|
6
|
+
const bs = "2.11.latest", cs = {
|
|
7
7
|
current: bs
|
|
8
|
-
}, Is = "1.
|
|
8
|
+
}, Is = "1.28.0", hs = {
|
|
9
9
|
version: Is
|
|
10
10
|
};
|
|
11
11
|
var _;
|
|
@@ -1713,7 +1713,7 @@ let es = (os = class {
|
|
|
1713
1713
|
}, this.setIsHidden = async (t, e) => {
|
|
1714
1714
|
const r = e ? { type: Mt.invisible } : { type: Mt.visible };
|
|
1715
1715
|
return this.setVariableVisibility(t, r);
|
|
1716
|
-
}, this.setVariableVisibility = async (t, e) => (await a(this, w)).setVariableVisibility(t, JSON.stringify(e)).then((n) => o(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, w)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => o(r)), this.setIsRequired = async (t, e) => (await a(this, w)).setVariableIsRequired(t, e).then((n) => o(n)), this.setIsReadonly = async (t, e) => (await a(this, w)).setVariableIsReadonly(t, e).then((n) => o(n)), this.getImageVariableConnectorId = async (t) => (await a(this, w)).getImageVariableConnectorId(t).then((r) => o(r)), this.setImageVariableConnector = async (t, e) => {
|
|
1716
|
+
}, this.setVariableVisibility = async (t, e) => (await a(this, w)).setVariableVisibility(t, JSON.stringify(e)).then((n) => o(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, w)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => o(r)), this.setIsRequired = async (t, e) => (await a(this, w)).setVariableIsRequired(t, e).then((n) => o(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, w)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => o(n)), this.setIsReadonly = async (t, e) => (await a(this, w)).setVariableIsReadonly(t, e).then((n) => o(n)), this.getImageVariableConnectorId = async (t) => (await a(this, w)).getImageVariableConnectorId(t).then((r) => o(r)), this.setImageVariableConnector = async (t, e) => {
|
|
1717
1717
|
const r = await a(this, w), c = new ne().makeConnectorSourceForwardsCompatible(e);
|
|
1718
1718
|
return r.setImageVariableConnector(t, JSON.stringify(c)).then((h) => o(h));
|
|
1719
1719
|
}, this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
|