@chili-publish/studio-sdk 1.36.0 → 1.37.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 +89 -85
- 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/FrameController.d.ts +2 -1
- package/lib/src/controllers/FrameController.js +3 -2
- package/lib/src/controllers/FrameController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +8 -0
- package/lib/src/controllers/VariableController.js +13 -0
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/tests/controllers/FrameConstraintController.test.js +18 -5
- package/lib/src/tests/controllers/FrameConstraintController.test.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/ConfigurationTypes.d.ts +2 -0
- package/lib/src/types/ConfigurationTypes.js +1 -0
- package/lib/src/types/ConfigurationTypes.js.map +1 -1
- package/lib/src/types/FrameTypes.d.ts +4 -0
- package/lib/src/types/VariableTypes.d.ts +1 -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 Me = (s) => {
|
|
|
3
3
|
};
|
|
4
4
|
var xe = (s, o, t) => o.has(s) || Me("Cannot " + t);
|
|
5
5
|
var a = (s, o, t) => (xe(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Me("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (xe(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
|
|
6
|
-
const Ms = "2.
|
|
6
|
+
const Ms = "2.20.latest", Ss = {
|
|
7
7
|
current: Ms
|
|
8
|
-
}, xs = "1.
|
|
8
|
+
}, xs = "1.37.0", bs = {
|
|
9
9
|
version: xs
|
|
10
10
|
};
|
|
11
11
|
var z;
|
|
@@ -413,6 +413,7 @@ const ir = {
|
|
|
413
413
|
debugPanel: { enabled: !1 },
|
|
414
414
|
ellipse: { enabled: !1 },
|
|
415
415
|
hand: { enabled: !1 },
|
|
416
|
+
temporaryHand: { enabled: !1 },
|
|
416
417
|
image: { enabled: !1 },
|
|
417
418
|
polygon: { enabled: !1 },
|
|
418
419
|
rectangle: { enabled: !1 },
|
|
@@ -585,9 +586,9 @@ class Ge {
|
|
|
585
586
|
}
|
|
586
587
|
k = new WeakMap();
|
|
587
588
|
var T = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(T || {}), q = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.gray = "gray", s.hsl = "hsl", s.spot = "spot", s.spotCMYK = "spotCMYK", s.spotRGB = "spotRGB", s.spotHEX = "spotHEX", s))(q || {}), ae = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(ae || {});
|
|
588
|
-
const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) => s.type === T.spotRgb,
|
|
589
|
+
const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) => s.type === T.spotRgb, Cr = (s) => s.type === T.spotCmyk, wr = (s) => pr(s) || Cr(s) || ie(s), mr = (s) => {
|
|
589
590
|
const o = fr(s.type);
|
|
590
|
-
return
|
|
591
|
+
return wr(s) ? {
|
|
591
592
|
...ie(s) && { value: s.displayValue },
|
|
592
593
|
...!ie(s) && { ...s.displayValue },
|
|
593
594
|
spotName: s.value,
|
|
@@ -968,8 +969,8 @@ class ye {
|
|
|
968
969
|
}, this.isSourceMigrated = (o) => "id" in o;
|
|
969
970
|
}
|
|
970
971
|
}
|
|
971
|
-
var J, It, gt,
|
|
972
|
-
let ze = (
|
|
972
|
+
var J, It, gt, ws;
|
|
973
|
+
let ze = (ws = class {
|
|
973
974
|
/**
|
|
974
975
|
* @ignore
|
|
975
976
|
*/
|
|
@@ -1055,7 +1056,7 @@ let ze = (Cs = class {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
);
|
|
1057
1058
|
}
|
|
1058
|
-
}, J = new WeakMap(), It = new WeakMap(), gt = new WeakMap(),
|
|
1059
|
+
}, J = new WeakMap(), It = new WeakMap(), gt = new WeakMap(), ws);
|
|
1059
1060
|
var yt, pt;
|
|
1060
1061
|
class Nr {
|
|
1061
1062
|
/**
|
|
@@ -1134,7 +1135,7 @@ class qe {
|
|
|
1134
1135
|
}
|
|
1135
1136
|
}
|
|
1136
1137
|
it = new WeakMap();
|
|
1137
|
-
var
|
|
1138
|
+
var Ct;
|
|
1138
1139
|
class Ye {
|
|
1139
1140
|
/**
|
|
1140
1141
|
* @ignore
|
|
@@ -1143,17 +1144,17 @@ class Ye {
|
|
|
1143
1144
|
/**
|
|
1144
1145
|
* @ignore
|
|
1145
1146
|
*/
|
|
1146
|
-
u(this,
|
|
1147
|
-
this.getCurrentState = async () => (await a(this,
|
|
1148
|
-
const r = await a(this,
|
|
1147
|
+
u(this, Ct);
|
|
1148
|
+
this.getCurrentState = async () => (await a(this, Ct)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
|
|
1149
|
+
const r = await a(this, Ct), n = typeof t != "string" ? JSON.stringify(t) : t;
|
|
1149
1150
|
return r.loadDocument(n, JSON.stringify(e)).then((c) => i(c));
|
|
1150
1151
|
}, this.createAndLoad = async (t) => {
|
|
1151
|
-
const e = await a(this,
|
|
1152
|
+
const e = await a(this, Ct), r = JSON.stringify(t);
|
|
1152
1153
|
return e.createAndLoadDocument(r).then((n) => i(n));
|
|
1153
|
-
}, g(this,
|
|
1154
|
+
}, g(this, Ct, o);
|
|
1154
1155
|
}
|
|
1155
1156
|
}
|
|
1156
|
-
|
|
1157
|
+
Ct = new WeakMap();
|
|
1157
1158
|
var Mr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Mr || {}), te = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(te || {}), xr = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Vr || {}), Jr = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Jr || {}), Gr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Gr || {}), Br = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Br || {}), Ur = /* @__PURE__ */ ((s) => (s.normal = "normal", s.screen = "screen", s.overlay = "overlay", s.darken = "darken", s.lighten = "lighten", s.colorDodge = "colorDodge", s.colorBurn = "colorBurn", s.hardLight = "hardLight", s.softLight = "softLight", s.difference = "difference", s.exclusion = "exclusion", s.multiply = "multiply", s.hue = "hue", s.saturation = "saturation", s.color = "color", s.luminosity = "luminosity", s))(Ur || {}), kr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(kr || {}), _r = /* @__PURE__ */ ((s) => (s.topLeft = "topLeft", s.topCenter = "topCenter", s.topRight = "topRight", s.centerLeft = "centerLeft", s.center = "center", s.centerRight = "centerRight", s.bottomLeft = "bottomLeft", s.bottomCenter = "bottomCenter", s.bottomRight = "bottomRight", s))(_r || {}), Hr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Hr || {}), Tr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Tr || {}), $r = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))($r || {}), Kr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Kr || {});
|
|
1158
1159
|
class Wn {
|
|
1159
1160
|
constructor() {
|
|
@@ -1405,9 +1406,12 @@ class zr {
|
|
|
1405
1406
|
}, this.setRotation = async (t, e) => {
|
|
1406
1407
|
const r = { rotationAllowed: { value: e } };
|
|
1407
1408
|
return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1408
|
-
}, this.setResize = async (t, e) => {
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1409
|
+
}, this.setResize = async (t, e, r) => {
|
|
1410
|
+
const n = {
|
|
1411
|
+
resizeAllowed: { value: e },
|
|
1412
|
+
...r !== void 0 && { proportionLocked: { value: r } }
|
|
1413
|
+
};
|
|
1414
|
+
return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(n)).then((h) => i(h));
|
|
1411
1415
|
}, this.setCrop = async (t, e) => {
|
|
1412
1416
|
const r = { cropAllowed: { value: e } };
|
|
1413
1417
|
return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
@@ -1678,7 +1682,7 @@ let Xr = class {
|
|
|
1678
1682
|
}, this.config = o, this.localConfig = t;
|
|
1679
1683
|
}
|
|
1680
1684
|
};
|
|
1681
|
-
var
|
|
1685
|
+
var wt;
|
|
1682
1686
|
class is {
|
|
1683
1687
|
/**
|
|
1684
1688
|
* @ignore
|
|
@@ -1687,11 +1691,11 @@ class is {
|
|
|
1687
1691
|
/**
|
|
1688
1692
|
* @ignore
|
|
1689
1693
|
*/
|
|
1690
|
-
u(this,
|
|
1691
|
-
this.set = async (t) => (await a(this,
|
|
1694
|
+
u(this, wt);
|
|
1695
|
+
this.set = async (t) => (await a(this, wt)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, wt)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, wt)).getSelectedTextStyle().then((e) => i(e)), g(this, wt, o);
|
|
1692
1696
|
}
|
|
1693
1697
|
}
|
|
1694
|
-
|
|
1698
|
+
wt = new WeakMap();
|
|
1695
1699
|
var tn = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(tn || {}), en = /* @__PURE__ */ ((s) => (s.LAYOUT_HEIGHT = "layoutHeight", s.LAYOUT_WIDTH = "layoutWidth", s.BLEED_TOP = "bleedTop", s.BLEED_BOTTOM = "bleedBottom", s.BLEED_LEFT = "bleedLeft", s.BLEED_RIGHT = "bleedRight", s.BLEED_VALUES_COMBINED = "areBleedValuesCombined", s))(en || {}), K = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.ZOOM = "zoom", s.HAND = "hand", s.IMAGE_FRAME = "imageFrame", s.TEXT_FRAME = "textFrame", s.SHAPE_RECT = "rect", s.SHAPE_ELLIPSE = "ellipse", s.SHAPE_POLYGON = "polygon", s))(K || {}), sn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(sn || {}), ue = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ue || {}), Ft;
|
|
1696
1700
|
class os {
|
|
1697
1701
|
/**
|
|
@@ -1896,7 +1900,7 @@ class on {
|
|
|
1896
1900
|
}
|
|
1897
1901
|
}
|
|
1898
1902
|
Yt = new WeakMap();
|
|
1899
|
-
var
|
|
1903
|
+
var w, Ot, Lt, fs;
|
|
1900
1904
|
let ls = (fs = class {
|
|
1901
1905
|
/**
|
|
1902
1906
|
* @ignore
|
|
@@ -1905,31 +1909,31 @@ let ls = (fs = class {
|
|
|
1905
1909
|
/**
|
|
1906
1910
|
* @ignore
|
|
1907
1911
|
*/
|
|
1908
|
-
u(this,
|
|
1912
|
+
u(this, w);
|
|
1909
1913
|
u(this, Ot);
|
|
1910
1914
|
u(this, Lt);
|
|
1911
|
-
this.getAll = async () => (await a(this,
|
|
1915
|
+
this.getAll = async () => (await a(this, w)).getVariables().then((e) => i(e)).then((e) => {
|
|
1912
1916
|
const r = e;
|
|
1913
1917
|
return r.parsedData && (r.parsedData = this.makeVariablesBackwardsCompatible(r.parsedData)), r;
|
|
1914
|
-
}), this.getById = async (t) => (await a(this,
|
|
1918
|
+
}), this.getById = async (t) => (await a(this, w)).getVariableById(t).then((r) => i(r)).then((r) => {
|
|
1915
1919
|
const n = r;
|
|
1916
1920
|
return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
|
|
1917
|
-
}), this.getByName = async (t) => (await a(this,
|
|
1921
|
+
}), this.getByName = async (t) => (await a(this, w)).getVariableByName(t).then((r) => i(r)).then((r) => {
|
|
1918
1922
|
const n = r;
|
|
1919
1923
|
return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
|
|
1920
|
-
}), this.create = async (t, e) => (await a(this,
|
|
1924
|
+
}), this.create = async (t, e) => (await a(this, w)).addVariable(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, w)).removeVariables(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, w)).setVariableName(t, e).then((n) => i(n)), this.setLabel = async (t, e) => (await a(this, w)).setVariableLabel(t, e).then((n) => i(n)), g(this, Ot, async (t, e) => (await a(this, w)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Ot).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Ot).call(this, t, null), g(this, Lt, async (t, e) => (await a(this, w)).setVariableHelpText(t, e).then((n) => i(n))), this.setHelpText = async (t, e) => a(this, Lt).call(this, t, e), this.resetHelpText = async (t) => a(this, Lt).call(this, t, null), this.setType = async (t, e) => (await a(this, w)).setVariableType(t, e).then((n) => i(n)), this.setListVariable = async (t, e) => (await a(this, w)).setListVariableItems(
|
|
1921
1925
|
t,
|
|
1922
1926
|
e.map((n) => JSON.stringify({ value: n }))
|
|
1923
|
-
).then((n) => i(n)), this.setValue = async (t, e) => (await a(this,
|
|
1927
|
+
).then((n) => i(n)), this.setValue = async (t, e) => (await a(this, w)).setVariableValue(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, w)).duplicateVariable(t).then((r) => i(r)), this.groupVariables = async (t, e) => (await a(this, w)).groupVariables(t, e).then((n) => i(n)), this.ungroupVariables = async (t) => (await a(this, w)).ungroupVariable(t).then((r) => i(r)), this.move = async (t, e, r) => (await a(this, w)).moveVariable(e, r, t).then((c) => i(c)), this.moveVariables = async (t, e, r) => (await a(this, w)).moveVariables(e, r, t).then((c) => i(c)), this.setIsVisible = async (t, e) => {
|
|
1924
1928
|
const r = e ? { type: Jt.visible } : { type: Jt.invisible };
|
|
1925
1929
|
return this.setVariableVisibility(t, r);
|
|
1926
1930
|
}, this.setIsHidden = async (t, e) => {
|
|
1927
1931
|
const r = e ? { type: Jt.invisible } : { type: Jt.visible };
|
|
1928
1932
|
return this.setVariableVisibility(t, r);
|
|
1929
|
-
}, this.setVariableVisibility = async (t, e) => (await a(this,
|
|
1930
|
-
const r = await a(this,
|
|
1933
|
+
}, this.setVariableVisibility = async (t, e) => (await a(this, w)).setVariableVisibility(t, JSON.stringify(e)).then((n) => i(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, w)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => i(r)), this.setIsRequired = async (t, e) => (await a(this, w)).setVariableIsRequired(t, e).then((n) => i(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, w)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => i(n)), this.setVariableCharacterLimit = async (t, e) => (await a(this, w)).setVariableCharacterLimit(t, e).then((n) => i(n)), this.setIsReadonly = async (t, e) => (await a(this, w)).setVariableIsReadonly(t, e).then((n) => i(n)), this.getImageVariableConnectorId = async (t) => (await a(this, w)).getImageVariableConnectorId(t).then((r) => i(r)), this.setImageVariableConnector = async (t, e) => {
|
|
1934
|
+
const r = await a(this, w), c = new ye().makeConnectorSourceForwardsCompatible(e);
|
|
1931
1935
|
return r.setImageVariableConnector(t, JSON.stringify(c)).then((h) => i(h));
|
|
1932
|
-
}, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this,
|
|
1936
|
+
}, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, w)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((c) => i(c)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
|
|
1933
1937
|
const r = { prefix: { value: e } };
|
|
1934
1938
|
return this.applyPrefixSuffixDeltaUpdate(t, r);
|
|
1935
1939
|
}, this.setSuffix = async (t, e) => {
|
|
@@ -1941,7 +1945,7 @@ let ls = (fs = class {
|
|
|
1941
1945
|
}, this.setSuffixCharacterStyle = async (t, e) => {
|
|
1942
1946
|
const r = { suffixCharacterStyleId: { value: e } };
|
|
1943
1947
|
return this.applyPrefixSuffixDeltaUpdate(t, r);
|
|
1944
|
-
}, this.setPrivateData = async (t, e) => (await a(this,
|
|
1948
|
+
}, this.setPrivateData = async (t, e) => (await a(this, w)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, w)).getVariablePrivateData(t).then((r) => i(r)), this.setAllowImageQuery = async (t, e) => (await a(this, w)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowImageUpload = async (t, e) => (await a(this, w)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, w)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setIsDontBreak = async (t, e) => (await a(this, w)).setVariableIsDontBreak(t, e).then((n) => i(n)), g(this, w, o), this.number = new an(a(this, w)), this.date = new on(a(this, w));
|
|
1945
1949
|
}
|
|
1946
1950
|
makeVariablesBackwardsCompatible(o) {
|
|
1947
1951
|
return o.map((t) => this.makeVariableBackwardsCompatible(t));
|
|
@@ -1954,10 +1958,10 @@ let ls = (fs = class {
|
|
|
1954
1958
|
return t.items = n, t.selected = r == null ? void 0 : r.value, t;
|
|
1955
1959
|
}
|
|
1956
1960
|
async applyPrefixSuffixDeltaUpdate(o, t) {
|
|
1957
|
-
const r = await (await a(this,
|
|
1961
|
+
const r = await (await a(this, w)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
|
|
1958
1962
|
return i(r);
|
|
1959
1963
|
}
|
|
1960
|
-
},
|
|
1964
|
+
}, w = new WeakMap(), Ot = new WeakMap(), Lt = new WeakMap(), fs);
|
|
1961
1965
|
class cn {
|
|
1962
1966
|
/**
|
|
1963
1967
|
* @ignore
|
|
@@ -2079,7 +2083,7 @@ class us extends Ds {
|
|
|
2079
2083
|
return this.createEventHandlerFn(t, kt.throw)(...o);
|
|
2080
2084
|
}
|
|
2081
2085
|
}
|
|
2082
|
-
class
|
|
2086
|
+
class C extends Ds {
|
|
2083
2087
|
constructor(o, t) {
|
|
2084
2088
|
super(t), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
|
|
2085
2089
|
}
|
|
@@ -2112,7 +2116,7 @@ class w extends Ds {
|
|
|
2112
2116
|
};
|
|
2113
2117
|
}
|
|
2114
2118
|
}
|
|
2115
|
-
class
|
|
2119
|
+
class Ce {
|
|
2116
2120
|
/**
|
|
2117
2121
|
* Creates a runtime configuration object from the provided configuration object.
|
|
2118
2122
|
*
|
|
@@ -2120,13 +2124,13 @@ class we {
|
|
|
2120
2124
|
* @returns The runtime configuration object.
|
|
2121
2125
|
*/
|
|
2122
2126
|
static createRuntimeConfig(o) {
|
|
2123
|
-
var e, r, n, c, h, d, p, y, v, f, b, A, I, S, M, E, P, W, j, St, bt,
|
|
2127
|
+
var e, r, n, c, h, d, p, y, v, f, b, A, I, S, M, E, P, W, j, St, bt, we, me, fe, Se, be, ve, Ie, Ae, Pe, Fe, Ee, Oe, Le, De;
|
|
2124
2128
|
const t = { ...o };
|
|
2125
2129
|
return t.logging = {
|
|
2126
2130
|
logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || x.error,
|
|
2127
2131
|
logger: ((r = o.logging) == null ? void 0 : r.logger) || ((xt, se, re) => {
|
|
2128
2132
|
var Ne;
|
|
2129
|
-
if (
|
|
2133
|
+
if (Ce.isLoggingEnabled(xt, ((Ne = t.logging) == null ? void 0 : Ne.logLevel) ?? x.error))
|
|
2130
2134
|
switch (xt) {
|
|
2131
2135
|
case x.error:
|
|
2132
2136
|
console.error(`[${se}] [${xt}] ${re}`);
|
|
@@ -2145,156 +2149,156 @@ class we {
|
|
|
2145
2149
|
(c = t.logging) == null ? void 0 : c.logger
|
|
2146
2150
|
)
|
|
2147
2151
|
}, t.events = {
|
|
2148
|
-
onActionsChanged: new
|
|
2152
|
+
onActionsChanged: new C(
|
|
2149
2153
|
() => t.onActionsChanged,
|
|
2150
2154
|
(h = t.logging) == null ? void 0 : h.logger
|
|
2151
2155
|
),
|
|
2152
|
-
onStateChanged: new
|
|
2156
|
+
onStateChanged: new C(
|
|
2153
2157
|
() => t.onStateChanged,
|
|
2154
2158
|
(d = t.logging) == null ? void 0 : d.logger
|
|
2155
2159
|
),
|
|
2156
|
-
onDocumentLoaded: new
|
|
2160
|
+
onDocumentLoaded: new C(
|
|
2157
2161
|
() => t.onDocumentLoaded,
|
|
2158
2162
|
(p = t.logging) == null ? void 0 : p.logger
|
|
2159
2163
|
),
|
|
2160
|
-
onSelectedFramesLayoutChanged: new
|
|
2164
|
+
onSelectedFramesLayoutChanged: new C(
|
|
2161
2165
|
() => t.onSelectedFramesLayoutChanged,
|
|
2162
2166
|
(y = t.logging) == null ? void 0 : y.logger
|
|
2163
2167
|
),
|
|
2164
|
-
onFramesLayoutChanged: new
|
|
2168
|
+
onFramesLayoutChanged: new C(
|
|
2165
2169
|
() => t.onFramesLayoutChanged,
|
|
2166
2170
|
(v = t.logging) == null ? void 0 : v.logger
|
|
2167
2171
|
),
|
|
2168
|
-
onSelectedFramesContentChanged: new
|
|
2172
|
+
onSelectedFramesContentChanged: new C(
|
|
2169
2173
|
() => t.onSelectedFramesContentChanged,
|
|
2170
2174
|
(f = t.logging) == null ? void 0 : f.logger
|
|
2171
2175
|
),
|
|
2172
|
-
onPageSelectionChanged: new
|
|
2176
|
+
onPageSelectionChanged: new C(
|
|
2173
2177
|
() => t.onPageSelectionChanged,
|
|
2174
2178
|
(b = t.logging) == null ? void 0 : b.logger
|
|
2175
2179
|
),
|
|
2176
|
-
onSelectedLayoutPropertiesChanged: new
|
|
2180
|
+
onSelectedLayoutPropertiesChanged: new C(
|
|
2177
2181
|
() => t.onSelectedLayoutPropertiesChanged,
|
|
2178
2182
|
(A = t.logging) == null ? void 0 : A.logger
|
|
2179
2183
|
),
|
|
2180
|
-
onSelectedLayoutUnitChanged: new
|
|
2184
|
+
onSelectedLayoutUnitChanged: new C(
|
|
2181
2185
|
() => t.onSelectedLayoutUnitChanged,
|
|
2182
2186
|
(I = t.logging) == null ? void 0 : I.logger
|
|
2183
2187
|
),
|
|
2184
|
-
onScrubberPositionChanged: new
|
|
2188
|
+
onScrubberPositionChanged: new C(
|
|
2185
2189
|
() => t.onScrubberPositionChanged,
|
|
2186
2190
|
(S = t.logging) == null ? void 0 : S.logger
|
|
2187
2191
|
),
|
|
2188
|
-
onFrameAnimationsChanged: new
|
|
2192
|
+
onFrameAnimationsChanged: new C(
|
|
2189
2193
|
() => t.onFrameAnimationsChanged,
|
|
2190
2194
|
(M = t.logging) == null ? void 0 : M.logger
|
|
2191
2195
|
),
|
|
2192
|
-
onVariableListChanged: new
|
|
2196
|
+
onVariableListChanged: new C(
|
|
2193
2197
|
() => t.onVariableListChanged,
|
|
2194
2198
|
(E = t.logging) == null ? void 0 : E.logger
|
|
2195
2199
|
),
|
|
2196
|
-
onSelectedToolChanged: new
|
|
2200
|
+
onSelectedToolChanged: new C(
|
|
2197
2201
|
() => t.onSelectedToolChanged,
|
|
2198
2202
|
(P = t.logging) == null ? void 0 : P.logger
|
|
2199
2203
|
),
|
|
2200
|
-
onUndoStackStateChanged: new
|
|
2204
|
+
onUndoStackStateChanged: new C(
|
|
2201
2205
|
() => t.onUndoStackStateChanged,
|
|
2202
2206
|
(W = t.logging) == null ? void 0 : W.logger
|
|
2203
2207
|
),
|
|
2204
|
-
onSelectedLayoutFramesChanged: new
|
|
2208
|
+
onSelectedLayoutFramesChanged: new C(
|
|
2205
2209
|
() => t.onSelectedLayoutFramesChanged,
|
|
2206
2210
|
(j = t.logging) == null ? void 0 : j.logger
|
|
2207
2211
|
),
|
|
2208
|
-
onSelectedTextStyleChanged: new
|
|
2212
|
+
onSelectedTextStyleChanged: new C(
|
|
2209
2213
|
() => t.onSelectedTextStyleChanged,
|
|
2210
2214
|
(St = t.logging) == null ? void 0 : St.logger
|
|
2211
2215
|
),
|
|
2212
|
-
onColorsChanged: new
|
|
2216
|
+
onColorsChanged: new C(
|
|
2213
2217
|
() => t.onColorsChanged,
|
|
2214
2218
|
(bt = t.logging) == null ? void 0 : bt.logger
|
|
2215
2219
|
),
|
|
2216
|
-
onParagraphStylesChanged: new
|
|
2220
|
+
onParagraphStylesChanged: new C(
|
|
2217
2221
|
() => t.onParagraphStylesChanged,
|
|
2218
|
-
(
|
|
2222
|
+
(we = t.logging) == null ? void 0 : we.logger
|
|
2219
2223
|
),
|
|
2220
|
-
onCharacterStylesChanged: new
|
|
2224
|
+
onCharacterStylesChanged: new C(
|
|
2221
2225
|
() => t.onCharacterStylesChanged,
|
|
2222
2226
|
(me = t.logging) == null ? void 0 : me.logger
|
|
2223
2227
|
),
|
|
2224
|
-
onFontFamiliesChanged: new
|
|
2228
|
+
onFontFamiliesChanged: new C(
|
|
2225
2229
|
() => t.onFontFamiliesChanged,
|
|
2226
2230
|
(fe = t.logging) == null ? void 0 : fe.logger
|
|
2227
2231
|
),
|
|
2228
|
-
onSelectedLayoutIdChanged: new
|
|
2232
|
+
onSelectedLayoutIdChanged: new C(
|
|
2229
2233
|
() => t.onSelectedLayoutIdChanged,
|
|
2230
2234
|
(Se = t.logging) == null ? void 0 : Se.logger
|
|
2231
2235
|
),
|
|
2232
|
-
onLayoutsChanged: new
|
|
2236
|
+
onLayoutsChanged: new C(
|
|
2233
2237
|
() => t.onLayoutsChanged,
|
|
2234
2238
|
(be = t.logging) == null ? void 0 : be.logger
|
|
2235
2239
|
),
|
|
2236
|
-
onConnectorEvent: new
|
|
2240
|
+
onConnectorEvent: new C(
|
|
2237
2241
|
() => t.onConnectorEvent,
|
|
2238
2242
|
(ve = t.logging) == null ? void 0 : ve.logger
|
|
2239
2243
|
),
|
|
2240
|
-
onConnectorsChanged: new
|
|
2244
|
+
onConnectorsChanged: new C(
|
|
2241
2245
|
() => t.onConnectorsChanged,
|
|
2242
2246
|
(Ie = t.logging) == null ? void 0 : Ie.logger
|
|
2243
2247
|
),
|
|
2244
|
-
onZoomChanged: new
|
|
2248
|
+
onZoomChanged: new C(
|
|
2245
2249
|
() => t.onZoomChanged,
|
|
2246
2250
|
(Ae = t.logging) == null ? void 0 : Ae.logger
|
|
2247
2251
|
),
|
|
2248
|
-
onSelectedPageIdChanged: new
|
|
2252
|
+
onSelectedPageIdChanged: new C(
|
|
2249
2253
|
() => t.onSelectedPageIdChanged,
|
|
2250
2254
|
t.logging.logger
|
|
2251
2255
|
),
|
|
2252
|
-
onPagesChanged: new
|
|
2256
|
+
onPagesChanged: new C(
|
|
2253
2257
|
() => t.onPagesChanged,
|
|
2254
2258
|
t.logging.logger
|
|
2255
2259
|
),
|
|
2256
|
-
onPageSnapshotInvalidated: new
|
|
2260
|
+
onPageSnapshotInvalidated: new C(
|
|
2257
2261
|
() => t.onPageSnapshotInvalidated,
|
|
2258
2262
|
t.logging.logger
|
|
2259
2263
|
),
|
|
2260
|
-
onPageSizeChanged: new
|
|
2264
|
+
onPageSizeChanged: new C(
|
|
2261
2265
|
() => t.onPageSizeChanged,
|
|
2262
2266
|
(Pe = t.logging) == null ? void 0 : Pe.logger
|
|
2263
2267
|
),
|
|
2264
|
-
onShapeCornerRadiusChanged: new
|
|
2268
|
+
onShapeCornerRadiusChanged: new C(
|
|
2265
2269
|
() => t.onShapeCornerRadiusChanged,
|
|
2266
2270
|
(Fe = t.logging) == null ? void 0 : Fe.logger
|
|
2267
2271
|
),
|
|
2268
|
-
onCropActiveFrameIdChanged: new
|
|
2272
|
+
onCropActiveFrameIdChanged: new C(
|
|
2269
2273
|
() => t.onCropActiveFrameIdChanged,
|
|
2270
2274
|
(Ee = t.logging) == null ? void 0 : Ee.logger
|
|
2271
2275
|
),
|
|
2272
|
-
onAsyncError: new
|
|
2276
|
+
onAsyncError: new C(
|
|
2273
2277
|
() => t.onAsyncError,
|
|
2274
2278
|
(Oe = t.logging) == null ? void 0 : Oe.logger
|
|
2275
2279
|
),
|
|
2276
|
-
onViewModeChanged: new
|
|
2280
|
+
onViewModeChanged: new C(
|
|
2277
2281
|
() => t.onViewModeChanged,
|
|
2278
2282
|
(Le = t.logging) == null ? void 0 : Le.logger
|
|
2279
2283
|
),
|
|
2280
|
-
onBarcodeValidationChanged: new
|
|
2281
|
-
onDataSourceIdChanged: new
|
|
2284
|
+
onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (De = t.logging) == null ? void 0 : De.logger),
|
|
2285
|
+
onDataSourceIdChanged: new C(
|
|
2282
2286
|
() => t.onDataSourceIdChanged,
|
|
2283
2287
|
t.logging.logger
|
|
2284
2288
|
),
|
|
2285
|
-
onDocumentIssueListChanged: new
|
|
2289
|
+
onDocumentIssueListChanged: new C(
|
|
2286
2290
|
() => t.onDocumentIssueListChanged,
|
|
2287
2291
|
t.logging.logger
|
|
2288
2292
|
),
|
|
2289
|
-
onCustomUndoDataChanged: new
|
|
2293
|
+
onCustomUndoDataChanged: new C(
|
|
2290
2294
|
() => t.onCustomUndoDataChanged,
|
|
2291
2295
|
t.logging.logger
|
|
2292
2296
|
),
|
|
2293
|
-
onEngineEditModeChanged: new
|
|
2297
|
+
onEngineEditModeChanged: new C(
|
|
2294
2298
|
() => t.onEngineEditModeChanged,
|
|
2295
2299
|
t.logging.logger
|
|
2296
2300
|
),
|
|
2297
|
-
onBrandKitMediaChanged: new
|
|
2301
|
+
onBrandKitMediaChanged: new C(
|
|
2298
2302
|
() => t.onBrandKitMediaChanged,
|
|
2299
2303
|
t.logging.logger
|
|
2300
2304
|
)
|
|
@@ -2477,7 +2481,7 @@ class ps {
|
|
|
2477
2481
|
}
|
|
2478
2482
|
ft = new WeakMap(), Zt = new WeakMap();
|
|
2479
2483
|
var Mt;
|
|
2480
|
-
class
|
|
2484
|
+
class Cs {
|
|
2481
2485
|
/**
|
|
2482
2486
|
* @ignore
|
|
2483
2487
|
*/
|
|
@@ -2490,7 +2494,7 @@ class ws {
|
|
|
2490
2494
|
}
|
|
2491
2495
|
}
|
|
2492
2496
|
Mt = new WeakMap();
|
|
2493
|
-
const pn = "studio-cdn.chiligrafx.com",
|
|
2497
|
+
const pn = "studio-cdn.chiligrafx.com", Cn = `https://${pn}/editor/${Ss.current}/web`;
|
|
2494
2498
|
let et;
|
|
2495
2499
|
class Qn {
|
|
2496
2500
|
/**
|
|
@@ -2501,7 +2505,7 @@ class Qn {
|
|
|
2501
2505
|
this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new gn(), this.loadEditor = () => {
|
|
2502
2506
|
var t;
|
|
2503
2507
|
nr(
|
|
2504
|
-
this.config.editorLink ||
|
|
2508
|
+
this.config.editorLink || Cn,
|
|
2505
2509
|
{
|
|
2506
2510
|
onActionsChanged: this.subscriber.onActionsChanged,
|
|
2507
2511
|
onStateChanged: this.subscriber.onStateChanged,
|
|
@@ -2561,7 +2565,7 @@ class Qn {
|
|
|
2561
2565
|
var r, n;
|
|
2562
2566
|
(n = (r = this.config).onConnectionError) == null || n.call(r, e);
|
|
2563
2567
|
}
|
|
2564
|
-
), this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new
|
|
2568
|
+
), this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new Cs(this.editorAPI), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.utils = new hs(this.editorAPI, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.connector = new ze(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.shape = new le(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.brandKit = new _e(this.editorAPI, this), this.next = new ds(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, bs.version), this.configuration.setValue(
|
|
2565
2569
|
tt.GraFxStudioDocumentType,
|
|
2566
2570
|
this.config.documentType || Ps.template
|
|
2567
2571
|
), this.configuration.updateStudioOptions(this.config.studioOptions || ir), this.configuration.setValue(
|
|
@@ -2570,10 +2574,10 @@ class Qn {
|
|
|
2570
2574
|
);
|
|
2571
2575
|
}, this.setConnection = (t) => {
|
|
2572
2576
|
et = t;
|
|
2573
|
-
}, this.config =
|
|
2577
|
+
}, this.config = Ce.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.shape = new le(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new Cs(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.connector = new ze(this.editorAPI, this.localConfig), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.utils = new hs(this.editorAPI, this.localConfig), this.subscriber = new Xr(this.config, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.next = new ds(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new _e(this.editorAPI, this);
|
|
2574
2578
|
}
|
|
2575
2579
|
}
|
|
2576
|
-
var
|
|
2580
|
+
var wn = /* @__PURE__ */ ((s) => (s.top = "top", s.left = "left", s.right = "right", s.bottom = "bottom", s.topLeft = "topLeft", s.topRight = "topRight", s.bottomLeft = "bottomLeft", s.bottomRight = "bottomRight", s))(wn || {}), mn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(mn || {}), fn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.quadratic = "Quadratic", s.cubic = "Cubic", s.quartic = "Quartic", s.quintic = "Quintic", s.sine = "Sine", s.exponential = "Exponential", s.circular = "Circular", s.elastic = "Elastic", s.bounce = "Bounce", s.back = "Back", s))(Sn || {}), bn = /* @__PURE__ */ ((s) => (s.bounce = "bounce", s.flash = "flash", s.headshake = "headShake", s.heartbeat = "heartbeat", s.pulse = "pulse", s.rubberBand = "rubberBand", s.vertical = "vertical", s.horizontal = "horizontal", s.swing = "swing", s.tada = "tada", s))(bn || {}), vn = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(vn || {}), In = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(In || {}), An = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Pn || {}), Fn = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.highest = "highest", s.medium = "medium", s))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(En || {}), On = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(On || {}), Ln = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Ln || {}), Dn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Dn || {}), Nn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Nn || {}), Mn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(Mn || {}), xn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(xn || {}), Rn = /* @__PURE__ */ ((s) => (s.PARAGRAPH = "paragraphStyleId", s.CHARACTER = "characterStyleId", s.FONT_FAMILY = "fontKey", s.FONT_STYLE = "fontStyle", s.FONT_SIZE = "fontSize", s.LETTER_SPACING = "letterSpacing", s.LINE_HEIGHT = "lineHeight", s.TEXT_ALIGN = "textAlign", s.VERTICAL_ALIGN = "verticalAlign", s.TYPOGRAPHIC_CASE = "typographicCase", s.SUB_SUPER_SCRIPT = "subSuperScript", s.UNDERLINE = "underline", s.LINE_THROUGH = "lineThrough", s.FILL_COLOR = "fillColor", s.COLOR = "color", s.FILL_COLOR_APPLIED = "fillColorApplied", s.STROKE_COLOR = "strokeColor", s.STROKE_COLOR_APPLIED = "strokeColorApplied", s.DROP_SHADOW_COLOR = "dropShadowColor", s.BLEND_MODE = "blendMode", s.OPACITY = "opacity", s.TRACKING_RIGHT = "trackingRight", s.BASELINE_SHIFT = "baselineShiftValue", s.STROKE_WIDTH = "strokeWidth", s.MARKED_LIST_TYPE = "markedListType", s.MARKED_LIST_GROUP = "markedListGroup", s.MARKED_LIST_LEVEL = "markedListLevel", s))(Rn || {}), Vn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Vn || {}), Jn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Jn || {}), Gn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(Gn || {}), Bn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Bn || {}), Un = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(kn || {}), Ns = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ns || {});
|
|
2577
2581
|
const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2578
2582
|
__proto__: null,
|
|
2579
2583
|
ConnectorRegistrationSource: Ns
|
|
@@ -2656,7 +2660,7 @@ export {
|
|
|
2656
2660
|
Rn as SelectedTextStyles,
|
|
2657
2661
|
mn as ShakeDirections,
|
|
2658
2662
|
Bn as ShapeType,
|
|
2659
|
-
|
|
2663
|
+
wn as SlideDirections,
|
|
2660
2664
|
br as SortBy,
|
|
2661
2665
|
vr as SortOrder,
|
|
2662
2666
|
Jr as TextDirection,
|