@chili-publish/studio-sdk 1.32.0 → 1.33.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.
@@ -3,9 +3,9 @@ var Fe = (s) => {
3
3
  };
4
4
  var Ee = (s, o, t) => o.has(s) || Fe("Cannot " + t);
5
5
  var a = (s, o, t) => (Ee(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Fe("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (Ee(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
6
- const Ps = "2.15.latest", us = {
6
+ const Ps = "2.16.latest", us = {
7
7
  current: Ps
8
- }, Fs = "1.32.0", gs = {
8
+ }, Fs = "1.33.0", gs = {
9
9
  version: Fs
10
10
  };
11
11
  var $;
@@ -41,20 +41,20 @@ const Es = (s, o) => {
41
41
  e ? r() : t.push(r);
42
42
  }
43
43
  };
44
- }, Ds = (s) => (...o) => {
44
+ }, Ls = (s) => (...o) => {
45
45
  s && console.log("[Penpal]", ...o);
46
- }, Ls = {
46
+ }, Os = {
47
47
  "http:": "80",
48
48
  "https:": "443"
49
- }, Os = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Ns = ["file:", "data:"], Ms = (s) => {
49
+ }, Ds = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Ns = ["file:", "data:"], Ms = (s) => {
50
50
  if (s && Ns.find((d) => s.startsWith(d)))
51
51
  return "null";
52
- const o = document.location, t = Os.exec(s);
52
+ const o = document.location, t = Ds.exec(s);
53
53
  let e, r, n;
54
54
  t ? (e = t[1] ? t[1] : o.protocol, r = t[2], n = t[4]) : (e = o.protocol, r = o.hostname, n = o.port);
55
- const c = n && n !== Ls[e] ? `:${n}` : "";
55
+ const c = n && n !== Os[e] ? `:${n}` : "";
56
56
  return `${e}//${r}${c}`;
57
- }, De = ({ name: s, message: o, stack: t }) => ({
57
+ }, Le = ({ name: s, message: o, stack: t }) => ({
58
58
  name: s,
59
59
  message: o,
60
60
  stack: t
@@ -84,7 +84,7 @@ const Es = (s, o) => {
84
84
  resolution: f,
85
85
  returnValue: M
86
86
  };
87
- f === dt.Rejected && M instanceof Error && (E.returnValue = De(M), E.returnValueIsError = !0);
87
+ f === dt.Rejected && M instanceof Error && (E.returnValue = Le(M), E.returnValueIsError = !0);
88
88
  try {
89
89
  n.postMessage(E, c);
90
90
  } catch (P) {
@@ -93,7 +93,7 @@ const Es = (s, o) => {
93
93
  penpal: $.Reply,
94
94
  id: A,
95
95
  resolution: dt.Rejected,
96
- returnValue: De(P),
96
+ returnValue: Le(P),
97
97
  returnValueIsError: !0
98
98
  };
99
99
  n.postMessage(z, c);
@@ -223,7 +223,7 @@ const Gs = () => ++Vs, ys = ".", ps = (s) => s ? s.split(ys) : [], Bs = (s) => s
223
223
  }
224
224
  }, js = (s) => {
225
225
  let { iframe: o, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
226
- const c = Ds(n), d = Es("Parent", c), { onDestroy: h, destroy: p } = d;
226
+ const c = Ls(n), d = Es("Parent", c), { onDestroy: h, destroy: p } = d;
227
227
  e || (Ws(o), e = Ms(o.src));
228
228
  const y = e === "null" ? "*" : e, I = Cs(t), S = Ts(c, I, e, y), b = Hs(I, e, y, d, c);
229
229
  return {
@@ -385,7 +385,7 @@ class er extends Error {
385
385
  }
386
386
  }
387
387
  var N;
388
- class Le {
388
+ class Oe {
389
389
  /**
390
390
  * @ignore
391
391
  */
@@ -398,8 +398,8 @@ class Le {
398
398
  }
399
399
  }
400
400
  N = new WeakMap();
401
- var L;
402
- class Oe {
401
+ var O;
402
+ class De {
403
403
  /**
404
404
  * @ignore
405
405
  */
@@ -407,13 +407,13 @@ class Oe {
407
407
  /**
408
408
  * @ignore
409
409
  */
410
- u(this, L);
411
- this.getAllOnSelectedLayout = async () => (await a(this, L)).getAnimationsOnSelectedLayout().then((e) => i(e)), this.getByFrameId = async (t, e) => (await a(this, L)).getAnimationByFrameId(t, e).then((n) => i(n)), this.getByLayoutId = async (t) => (await a(this, L)).getAnimationsByLayoutId(t).then((r) => i(r)), this.setFrameAnimation = async (t) => (await a(this, L)).setFrameAnimation(JSON.stringify(t)).then(
410
+ u(this, O);
411
+ this.getAllOnSelectedLayout = async () => (await a(this, O)).getAnimationsOnSelectedLayout().then((e) => i(e)), this.getByFrameId = async (t, e) => (await a(this, O)).getAnimationByFrameId(t, e).then((n) => i(n)), this.getByLayoutId = async (t) => (await a(this, O)).getAnimationsByLayoutId(t).then((r) => i(r)), this.setFrameAnimation = async (t) => (await a(this, O)).setFrameAnimation(JSON.stringify(t)).then(
412
412
  (r) => i({ ...r, data: JSON.stringify(t) })
413
- ), this.play = async () => (await a(this, L)).playAnimation().then((e) => i(e)), this.pause = async () => (await a(this, L)).pauseAnimation().then((e) => i(e)), this.setScrubberPosition = async (t) => (await a(this, L)).setScrubberPosition(t).then((r) => i(r)), this.setDuration = async (t) => (await a(this, L)).setAnimationDuration(t).then((r) => i(r)), this.resetFrameAnimation = async (t) => (await a(this, L)).resetFrameAnimation(t).then((r) => i(r)), this.reset = async () => (await a(this, L)).resetAnimation().then((e) => i(e)), g(this, L, o);
413
+ ), this.play = async () => (await a(this, O)).playAnimation().then((e) => i(e)), this.pause = async () => (await a(this, O)).pauseAnimation().then((e) => i(e)), this.setScrubberPosition = async (t) => (await a(this, O)).setScrubberPosition(t).then((r) => i(r)), this.setDuration = async (t) => (await a(this, O)).setAnimationDuration(t).then((r) => i(r)), this.resetFrameAnimation = async (t) => (await a(this, O)).resetFrameAnimation(t).then((r) => i(r)), this.reset = async () => (await a(this, O)).resetAnimation().then((e) => i(e)), g(this, O, o);
414
414
  }
415
415
  }
416
- L = new WeakMap();
416
+ O = new WeakMap();
417
417
  var T = /* @__PURE__ */ ((s) => (s.code39 = "code39", s.code93 = "code93", s.code128 = "code128", s.dataMatrix = "dataMatrix", s.ean13 = "ean13", s.ean8 = "ean8", s.qr = "qr", s.upca = "upca", s.upce = "upce", s.gs1128 = "gs1128", s))(T || {}), Nt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Nt || {}), St = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(St || {}), sr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(sr || {}), Q = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(Q || {}), rr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(rr || {}), nr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(nr || {}), ar = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(ar || {}), ir = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(ir || {}), U;
418
418
  class Ne {
419
419
  /**
@@ -589,7 +589,7 @@ const Me = (s) => s.type === H.hex, ee = (s) => s.type === H.spotHex, or = (s) =
589
589
  if (!(s === null || o === void 0 || t === void 0))
590
590
  return (r = (e = (s || []).find((n) => n.id === o)) == null ? void 0 : e.fontStyles.find((n) => n.fontStyleId === t)) == null ? void 0 : r.id;
591
591
  };
592
- var O;
592
+ var D;
593
593
  class Ve {
594
594
  /**
595
595
  * @ignore
@@ -598,8 +598,8 @@ class Ve {
598
598
  /**
599
599
  * @ignore
600
600
  */
601
- u(this, O);
602
- this.getId = async () => (await a(this, O)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, O)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, O)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, O)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, O)).updateBrandKitIdAndVersion(e, r).then((c) => i(c)), this.get = async () => {
601
+ u(this, D);
602
+ this.getId = async () => (await a(this, D)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, D)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, D)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, D)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, D)).updateBrandKitIdAndVersion(e, r).then((c) => i(c)), this.get = async () => {
603
603
  const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), d = this.gradientStyleController.getAll(), h = this.fontController.getFontFamilies(), p = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(), I = this.getAllMedia(), [S, b, A, v, f, M] = await Promise.all([
604
604
  c,
605
605
  d,
@@ -627,7 +627,7 @@ class Ve {
627
627
  status: 200
628
628
  };
629
629
  return i(P);
630
- }, this.getAllMedia = async () => (await a(this, O)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, O)).addBrandKitMedia(e, r, n).then((d) => i(d)), this.updateMedia = async (e, r, n) => (await a(this, O)).updateBrandKitMedia(e, r, n).then((d) => i(d)), this.renameMedia = async (e, r) => (await a(this, O)).renameBrandKitMedia(e, r).then((c) => i(c)), this.removeMedia = async (e) => (await a(this, O)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
630
+ }, this.getAllMedia = async () => (await a(this, D)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, D)).addBrandKitMedia(e, r, n).then((d) => i(d)), this.updateMedia = async (e, r, n) => (await a(this, D)).updateBrandKitMedia(e, r, n).then((d) => i(d)), this.renameMedia = async (e, r) => (await a(this, D)).renameBrandKitMedia(e, r).then((c) => i(c)), this.removeMedia = async (e) => (await a(this, D)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
631
631
  const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.gradientStyleController.getAll()).parsedData || [], h = (await this.paragraphStyleController.getAll()).parsedData || [], y = (await this.characterStyleController.getAll()).parsedData || [], S = (await this.fontController.getFontFamilies()).parsedData || [], A = (await this.getAllMedia()).parsedData || [];
632
632
  await this.undoManagerController.record("brandKit.remove", async (v) => {
633
633
  for (const f of r)
@@ -691,7 +691,7 @@ class Ve {
691
691
  }
692
692
  };
693
693
  }), r;
694
- }, g(this, O, o), this.colorStyleController = t.colorStyle, this.gradientStyleController = t.gradientStyle, this.fontController = t.font, this.mediaController = t.mediaConnector, this.paragraphStyleController = t.paragraphStyle, this.characterStyleController = t.characterStyle, this.undoManagerController = t.undoManager;
694
+ }, g(this, D, o), this.colorStyleController = t.colorStyle, this.gradientStyleController = t.gradientStyle, this.fontController = t.font, this.mediaController = t.mediaConnector, this.paragraphStyleController = t.paragraphStyle, this.characterStyleController = t.characterStyle, this.undoManagerController = t.undoManager;
695
695
  }
696
696
  async setColors(o, t) {
697
697
  const e = /* @__PURE__ */ new Map();
@@ -755,7 +755,7 @@ class Ve {
755
755
  await this.addMedia(t.name, t.mediaConnectorId, t.mediaId);
756
756
  }
757
757
  }
758
- O = new WeakMap();
758
+ D = new WeakMap();
759
759
  var et;
760
760
  class se {
761
761
  /**
@@ -842,13 +842,13 @@ class ke {
842
842
  }
843
843
  V = new WeakMap();
844
844
  var Vt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Vt || {}), re = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(re || {}), Gt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Gt || {}), ur = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(yr || {}), pr = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(pr || {}), Cr = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Cr || {}), Mt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Mt || {});
845
- class Ln {
845
+ class On {
846
846
  constructor(o, t, e, r = "engineToConnector") {
847
847
  this.direction = "engineToConnector", this.name = o, this.direction = r, t === "var" ? this.value = `${t}.${e}` : this.value = e;
848
848
  }
849
849
  }
850
850
  var mr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(mr || {}), wr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(wr || {}), ne = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(ne || {}), fr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(fr || {});
851
- const On = {
851
+ const Dn = {
852
852
  url: "grafx-media.json",
853
853
  source: "local"
854
854
  /* local */
@@ -1081,7 +1081,7 @@ class Ke {
1081
1081
  }
1082
1082
  }
1083
1083
  pt = new WeakMap();
1084
- var Ar = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Ar || {}), qt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(qt || {}), Pr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Er || {}), Dr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Dr || {}), Lr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Lr || {}), Or = /* @__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))(Or || {}), Nr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Nr || {}), Mr = /* @__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))(Mr || {}), xr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Vr || {}), Gr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Gr || {});
1084
+ var Ar = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Ar || {}), qt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(qt || {}), Pr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Er || {}), Lr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Lr || {}), Or = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Or || {}), Dr = /* @__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))(Dr || {}), Nr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Nr || {}), Mr = /* @__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))(Mr || {}), xr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Vr || {}), Gr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Gr || {});
1085
1085
  class Rn {
1086
1086
  constructor() {
1087
1087
  this.type = "page";
@@ -1198,7 +1198,7 @@ class je {
1198
1198
  * @ignore
1199
1199
  */
1200
1200
  u(this, l);
1201
- this.getAll = async () => (await a(this, l)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, l)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, l)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, l)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, l)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, l)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, l)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, l)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, l)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, l)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, l)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, l)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, l)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, l)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, l)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, l)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, l)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, l)).setFrameY(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, l)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, l)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, l)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, l)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, l)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createBarcodeFrame = async (t, e) => (await a(this, l)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.duplicateFrames = async (t) => (await a(this, l)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1201
+ this.getAll = async () => (await a(this, l)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, l)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, l)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, l)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, l)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, l)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, l)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, l)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, l)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, l)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, l)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, l)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, l)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, l)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, l)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, l)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, l)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, l)).setFrameY(t, e).then((n) => i(n)), this.setOpacity = async (t, e) => (await a(this, l)).setFrameOpacity(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, l)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, l)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, l)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, l)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, l)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createBarcodeFrame = async (t, e) => (await a(this, l)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.duplicateFrames = async (t) => (await a(this, l)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1202
1202
  const r = await a(this, l), n = e !== null ? JSON.stringify(e) : null;
1203
1203
  return r.setImageSource(t, n).then((c) => i(c));
1204
1204
  }, this.removeImageSource = async (t) => this.updateImageSource(t, null), this.setImageFromConnector = async (t, e, r) => {
@@ -1329,7 +1329,12 @@ class Ye {
1329
1329
  this.getAll = async () => (await a(this, w)).getLayouts().then((e) => i(e)), this.getById = async (t) => (await a(this, w)).getLayoutById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, w)).getLayoutByName(t).then((r) => i(r)), this.getSelected = async () => (await a(this, w)).getSelectedLayout().then((e) => i(e)), this.remove = async (t) => (await a(this, w)).removeLayout(t).then((r) => i(r)), this.create = async (t, e) => {
1330
1330
  const r = await a(this, w);
1331
1331
  return e != null && e.length ? r.addLayouts(t, JSON.stringify(e)).then((n) => i(n)) : r.addLayout(t).then((n) => i(n));
1332
- }, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => i(n)), this.select = async (t) => (await a(this, w)).selectLayout(t).then((r) => i(r)), this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => i(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => i(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => i(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => i(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => i(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, _t)).getPageSnapshot().then((e) => e ?? e), this.setIntent = async (t, e) => (await a(this, w)).setLayoutIntent(t, e).then((n) => i(n)), this.resetIntent = async (t) => (await a(this, w)).resetLayoutIntent(t).then((r) => i(r)), this.setFillColor = async (t, e) => (await a(this, w)).setLayoutFillColor(t, JSON.stringify(e)).then((n) => i(n)), this.setFillColorEnabled = async (t, e) => (await a(this, w)).setLayoutFillColorEnabled(t, e).then((n) => i(n)), this.resetFillColor = async (t) => (await a(this, w)).resetLayoutFillColor(t).then((r) => i(r)), this.setBleedValue = async (t, e, r) => {
1332
+ }, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => i(n)), this.select = async (t) => (await a(this, w)).selectLayoutWithOptions(t, null).then((r) => i(r)), this.selectWithPageSize = async (t, e) => {
1333
+ const r = await a(this, w), n = {
1334
+ pageSize: e
1335
+ };
1336
+ return r.selectLayoutWithOptions(t, JSON.stringify(n)).then((c) => i(c));
1337
+ }, this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => i(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => i(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => i(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => i(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => i(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, _t)).getPageSnapshot().then((e) => e ?? e), this.setIntent = async (t, e) => (await a(this, w)).setLayoutIntent(t, e).then((n) => i(n)), this.resetIntent = async (t) => (await a(this, w)).resetLayoutIntent(t).then((r) => i(r)), this.setFillColor = async (t, e) => (await a(this, w)).setLayoutFillColor(t, JSON.stringify(e)).then((n) => i(n)), this.setFillColorEnabled = async (t, e) => (await a(this, w)).setLayoutFillColorEnabled(t, e).then((n) => i(n)), this.resetFillColor = async (t) => (await a(this, w)).resetLayoutFillColor(t).then((r) => i(r)), this.setBleedValue = async (t, e, r) => {
1333
1338
  const n = r ? {
1334
1339
  left: r === Q.left ? e : void 0,
1335
1340
  top: r === Q.top ? e : void 0,
@@ -1393,7 +1398,7 @@ class Ze {
1393
1398
  }
1394
1399
  }
1395
1400
  q = new WeakMap(), Ht = new WeakMap();
1396
- var D, Tt, ls;
1401
+ var L, Tt, ls;
1397
1402
  let Qe = (ls = class {
1398
1403
  /**
1399
1404
  * @ignore
@@ -1402,14 +1407,14 @@ let Qe = (ls = class {
1402
1407
  /**
1403
1408
  * @ignore
1404
1409
  */
1405
- u(this, D);
1410
+ u(this, L);
1406
1411
  /**
1407
1412
  * @ignore
1408
1413
  */
1409
1414
  u(this, Tt);
1410
- this.add = async () => (await a(this, D)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, D)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, D)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, D)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, D)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, D)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, D)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, Tt)).getPageSnapshotWithSettings(t, e == null ? null : JSON.stringify(e)).then((n) => n ?? n), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageWidth(e).then((n) => i(n))), this.setHeight = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, D)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, D)).reorderPages(t, e).then((n) => i(n)), g(this, D, o), g(this, Tt, o);
1415
+ this.add = async () => (await a(this, L)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, L)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, L)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, L)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, L)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, L)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, L)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, Tt)).getPageSnapshotWithSettings(t, e == null ? null : JSON.stringify(e)).then((n) => n ?? n), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, L)).setPageWidth(e).then((n) => i(n))), this.setHeight = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, L)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, L)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, L)).reorderPages(t, e).then((n) => i(n)), g(this, L, o), g(this, Tt, o);
1411
1416
  }
1412
- }, D = new WeakMap(), Tt = new WeakMap(), ls);
1417
+ }, L = new WeakMap(), Tt = new WeakMap(), ls);
1413
1418
  var J;
1414
1419
  class Xe {
1415
1420
  /**
@@ -1582,7 +1587,7 @@ class ts {
1582
1587
  }
1583
1588
  }
1584
1589
  Ct = new WeakMap();
1585
- var Kr = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(Kr || {}), $r = /* @__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))($r || {}), 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 || {}), zr = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s))(zr || {}), oe = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(oe || {}), At;
1590
+ var Kr = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(Kr || {}), $r = /* @__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))($r || {}), 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 || {}), zr = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(zr || {}), oe = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(oe || {}), At;
1586
1591
  class es {
1587
1592
  /**
1588
1593
  * @ignore
@@ -1903,7 +1908,7 @@ class tn {
1903
1908
  }
1904
1909
  }
1905
1910
  mt = new WeakMap();
1906
- var Dt, Yt;
1911
+ var Lt, Yt;
1907
1912
  class en {
1908
1913
  /**
1909
1914
  * @ignore
@@ -1912,15 +1917,15 @@ class en {
1912
1917
  /**
1913
1918
  * @ignore
1914
1919
  */
1915
- u(this, Dt);
1920
+ u(this, Lt);
1916
1921
  /**
1917
1922
  * @ignore
1918
1923
  */
1919
1924
  u(this, Yt);
1920
- this.setWidth = async (t) => (await a(this, Dt)).setPageWidth(t).then((r) => i(r)), this.setHeight = async (t) => (await a(this, Dt)).setPageHeight(t).then((r) => i(r)), g(this, Dt, o), g(this, Yt, o);
1925
+ this.setWidth = async (t) => (await a(this, Lt)).setPageWidth(t).then((r) => i(r)), this.setHeight = async (t) => (await a(this, Lt)).setPageHeight(t).then((r) => i(r)), g(this, Lt, o), g(this, Yt, o);
1921
1926
  }
1922
1927
  }
1923
- Dt = new WeakMap(), Yt = new WeakMap();
1928
+ Lt = new WeakMap(), Yt = new WeakMap();
1924
1929
  class as {
1925
1930
  /**
1926
1931
  * The next initiator is a split off on SDK level to tag next features
@@ -2014,18 +2019,18 @@ class le {
2014
2019
  const t = { ...o };
2015
2020
  return t.logging = {
2016
2021
  logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || x.error,
2017
- logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Ot, Zt, Qt) => {
2022
+ logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Dt, Zt, Qt) => {
2018
2023
  var Pe;
2019
- if (le.isLoggingEnabled(Ot, ((Pe = t.logging) == null ? void 0 : Pe.logLevel) ?? x.error))
2020
- switch (Ot) {
2024
+ if (le.isLoggingEnabled(Dt, ((Pe = t.logging) == null ? void 0 : Pe.logLevel) ?? x.error))
2025
+ switch (Dt) {
2021
2026
  case x.error:
2022
- console.error(`[${Zt}] [${Ot}] ${Qt}`);
2027
+ console.error(`[${Zt}] [${Dt}] ${Qt}`);
2023
2028
  break;
2024
2029
  case x.warn:
2025
- console.warn(`[${Zt}] [${Ot}] ${Qt}`);
2030
+ console.warn(`[${Zt}] [${Dt}] ${Qt}`);
2026
2031
  break;
2027
2032
  default:
2028
- console.log(`[${Zt}] [${Ot}] ${Qt}`);
2033
+ console.log(`[${Zt}] [${Dt}] ${Qt}`);
2029
2034
  }
2030
2035
  })
2031
2036
  }, t.handlers = {
@@ -2288,7 +2293,7 @@ class rn {
2288
2293
  }
2289
2294
  }
2290
2295
  ht = new WeakMap();
2291
- var Lt;
2296
+ var Ot;
2292
2297
  class os extends rn {
2293
2298
  /**
2294
2299
  * @ignore
@@ -2298,8 +2303,8 @@ class os extends rn {
2298
2303
  /**
2299
2304
  * @ignore
2300
2305
  */
2301
- u(this, Lt);
2302
- g(this, Lt, e);
2306
+ u(this, Ot);
2307
+ g(this, Ot, e);
2303
2308
  }
2304
2309
  /**
2305
2310
  * This method returns the value for a given configuration key. If a value was not found in the configuration store,
@@ -2307,7 +2312,7 @@ class os extends rn {
2307
2312
  * @returns value for a given configuration key
2308
2313
  */
2309
2314
  async getValue(t) {
2310
- const e = a(this, Lt).get(t);
2315
+ const e = a(this, Ot).get(t);
2311
2316
  return e != null ? i(
2312
2317
  {
2313
2318
  status: 200,
@@ -2326,10 +2331,10 @@ class os extends rn {
2326
2331
  */
2327
2332
  async setValue(t, e) {
2328
2333
  const r = super.setValue(t, e);
2329
- return a(this, Lt).set(t, e), r;
2334
+ return a(this, Ot).set(t, e), r;
2330
2335
  }
2331
2336
  }
2332
- Lt = new WeakMap();
2337
+ Ot = new WeakMap();
2333
2338
  var k;
2334
2339
  class cs {
2335
2340
  /**
@@ -2414,7 +2419,7 @@ class kn {
2414
2419
  this.setConnection,
2415
2420
  this.config.editorId,
2416
2421
  this.config.studioStyling
2417
- ), this.editorAPI = tt == null ? void 0 : tt.promise.then((e) => e), this.action = new Le(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.animation = new Oe(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.utils = new rs(this.editorAPI, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.connector = new Ue(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.shape = new ae(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.brandKit = new Ve(this.editorAPI, this), this.next = new as(this.config, this.connection, this.editorAPI), this.configuration.setValue(X.GraFxStudioSdkVersion, gs.version), this.configuration.setValue(
2422
+ ), this.editorAPI = tt == null ? void 0 : tt.promise.then((e) => e), this.action = new Oe(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.animation = new De(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.utils = new rs(this.editorAPI, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.connector = new Ue(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.shape = new ae(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.brandKit = new Ve(this.editorAPI, this), this.next = new as(this.config, this.connection, this.editorAPI), this.configuration.setValue(X.GraFxStudioSdkVersion, gs.version), this.configuration.setValue(
2418
2423
  X.GraFxStudioDocumentType,
2419
2424
  this.config.documentType || ms.template
2420
2425
  ), this.configuration.updateStudioOptions(this.config.studioOptions || Qs), this.configuration.setValue(
@@ -2423,7 +2428,7 @@ class kn {
2423
2428
  );
2424
2429
  }, this.setConnection = (t) => {
2425
2430
  tt = t;
2426
- }, this.config = le.createRuntimeConfig(o), this.connection = tt, this.editorAPI = tt == null ? void 0 : tt.promise.then((t) => t), this.action = new Le(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.shape = new ae(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.connector = new Ue(this.editorAPI, this.localConfig), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.animation = new Oe(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.utils = new rs(this.editorAPI, this.localConfig), this.subscriber = new Tr(this.config, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.next = new as(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ve(this.editorAPI, this);
2431
+ }, this.config = le.createRuntimeConfig(o), this.connection = tt, this.editorAPI = tt == null ? void 0 : tt.promise.then((t) => t), this.action = new Oe(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.shape = new ae(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.connector = new Ue(this.editorAPI, this.localConfig), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.animation = new De(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.utils = new rs(this.editorAPI, this.localConfig), this.subscriber = new Tr(this.config, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.next = new as(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ve(this.editorAPI, this);
2427
2432
  }
2428
2433
  }
2429
2434
  var on = /* @__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))(on || {}), cn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(cn || {}), hn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(hn || {}), ln = /* @__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))(ln || {}), dn = /* @__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))(dn || {}), un = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(un || {}), gn = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(gn || {}), yn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(yn || {}), pn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(pn || {}), Cn = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(Cn || {}), mn = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(mn || {}), wn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(wn || {}), fn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Sn || {}), bn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(bn || {}), In = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(In || {}), vn = /* @__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))(vn || {}), An = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Pn || {}), Fn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(En || {}), As = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(As || {});
@@ -2446,7 +2451,7 @@ export {
2446
2451
  T as BarcodeType,
2447
2452
  sr as BarcodeValidationResult,
2448
2453
  dn as BasicAnimationsEmphasisStyles,
2449
- Or as BlendMode,
2454
+ Dr as BlendMode,
2450
2455
  fn as Case,
2451
2456
  j as ColorType,
2452
2457
  te as ColorUsageType,
@@ -2454,7 +2459,7 @@ export {
2454
2459
  pr as ConnectorConfigValueType,
2455
2460
  fr as ConnectorEventType,
2456
2461
  er as ConnectorHttpError,
2457
- Ln as ConnectorMapping,
2462
+ On as ConnectorMapping,
2458
2463
  wr as ConnectorMappingDirection,
2459
2464
  mr as ConnectorMappingSource,
2460
2465
  Mt as ConnectorRegistrationSource,
@@ -2475,7 +2480,7 @@ export {
2475
2480
  oe as EnvironmentType,
2476
2481
  Nr as FitMode,
2477
2482
  Mr as FitModePosition,
2478
- Dr as FlowDirection,
2483
+ Lr as FlowDirection,
2479
2484
  pn as FontPreviewFormat,
2480
2485
  Cn as FontWeights,
2481
2486
  Vn as FrameAnchorTarget,
@@ -2518,10 +2523,10 @@ export {
2518
2523
  Hr as VariableVisibilityOperator,
2519
2524
  _r as VariableVisibilityTargetType,
2520
2525
  xt as VariableVisibilityType,
2521
- Lr as VerticalAlign,
2526
+ Or as VerticalAlign,
2522
2527
  un as ViewMode,
2523
2528
  X as WellKnownConfigurationKeys,
2524
2529
  kn as default,
2525
- On as grafxMediaConnectorRegistration
2530
+ Dn as grafxMediaConnectorRegistration
2526
2531
  };
2527
2532
  //# sourceMappingURL=main.es.js.map