@zenuml/core 3.16.1 → 3.16.2

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.
@@ -1,4 +1,4 @@
1
- import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as Se, l as ct, T as ut, q as ft, v as dt, x as mt, y as pt, P as gt, o as Te, z as ht, A as vt, a as he, c as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.50792979.js";
1
+ import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as Se, l as ct, T as ut, q as ft, v as dt, x as mt, y as pt, P as gt, o as Te, z as ht, A as vt, a as he, c as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.eca73dbe.js";
2
2
  const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @__PURE__ */ ze.reduce((e, t) => e.concat(t, t + "-" + Re[0], t + "-" + Re[1]), []), J = Math.min, Y = Math.max, le = Math.round, se = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -1713,4 +1713,4 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Sn = ["onCl
1713
1713
  export {
1714
1714
  Rn as default
1715
1715
  };
1716
- //# sourceMappingURL=StylePanel.9d0b732b.js.map
1716
+ //# sourceMappingURL=StylePanel.6cc6af50.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.50792979.js";
1
+ import { o as e, c as o, a as t } from "./core.eca73dbe.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -21,4 +21,4 @@ export {
21
21
  i as default,
22
22
  c as render
23
23
  };
24
- //# sourceMappingURL=close.90d091e8.js.map
24
+ //# sourceMappingURL=close.286a862b.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.50792979.js";
1
+ import { o as e, c as o, a as t } from "./core.eca73dbe.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -16,4 +16,4 @@ export {
16
16
  h as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=collapse-expanded.eb9a3ba5.js.map
19
+ //# sourceMappingURL=collapse-expanded.3a7239a3.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.50792979.js";
1
+ import { o, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "currentColor",
@@ -29,4 +29,4 @@ export {
29
29
  i as default,
30
30
  s as render
31
31
  };
32
- //# sourceMappingURL=collapse-unexpanded.8d026d8d.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.bd1cf90c.js.map
@@ -25295,7 +25295,7 @@ const uh = () => (ch = Y9(), {
25295
25295
  }
25296
25296
  },
25297
25297
  setup(t) {
25298
- const e = t, n = cs(() => Lv(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.90d091e8.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.eb9a3ba5.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.8d026d8d.js"), "./icons/debug.svg": () => import("./debug.23f6d4bc.js"), "./icons/message-arrow.svg": () => import("./message-arrow.8c08ef8c.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.c3e29d31.js"), "./icons/numbering.svg": () => import("./numbering.dccc49de.js"), "./icons/privacy.svg": () => import("./privacy.a3d6717f.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.370422da.js"), "./icons/theme.svg": () => import("./theme.1e951585.js"), "./icons/tip.svg": () => import("./tip.1aa8e520.js"), "./icons/zoom-in.svg": () => import("./zoom-in.00a1db1c.js"), "./icons/zoom-out.svg": () => import("./zoom-out.eeb65c14.js") }), `./icons/${e.name}.svg`));
25298
+ const e = t, n = cs(() => Lv(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.286a862b.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.3a7239a3.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.bd1cf90c.js"), "./icons/debug.svg": () => import("./debug.6d6e1cb6.js"), "./icons/message-arrow.svg": () => import("./message-arrow.8e347c2e.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.b78af6c7.js"), "./icons/numbering.svg": () => import("./numbering.4924288e.js"), "./icons/privacy.svg": () => import("./privacy.19bd6b90.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.d0eb0a1f.js"), "./icons/theme.svg": () => import("./theme.2c7d4efd.js"), "./icons/tip.svg": () => import("./tip.1447e37d.js"), "./icons/zoom-in.svg": () => import("./zoom-in.955b4413.js"), "./icons/zoom-out.svg": () => import("./zoom-out.a375d182.js") }), `./icons/${e.name}.svg`));
25299
25299
  return (r, s) => (R(), K("span", {
25300
25300
  class: be(["flex items-center justify-center", t.iconClass]),
25301
25301
  onClick: s[0] || (s[0] = (i) => r.$emit("icon-click"))
@@ -26842,7 +26842,7 @@ const Ew = /* @__PURE__ */ Ge(vw, [["render", ww]]), ru = b0.child({ name: "Life
26842
26842
  let i = n.value + r.value;
26843
26843
  n.value > Sw && (e == null ? void 0 : e.state.stickyOffset) && (i += e == null ? void 0 : e.state.stickyOffset);
26844
26844
  const o = ((a = e == null ? void 0 : e.state.diagramElement) == null ? void 0 : a.clientHeight) || 0, l = e != null && e.state.diagramElement ? xh(e == null ? void 0 : e.state.diagramElement) : 0;
26845
- return i < 0 + l ? 0 : Math.min(i - l, o - Tw) - 0;
26845
+ return i <= 0 + l ? 0 : Math.min(i - l, o - Tw) - 0;
26846
26846
  }) };
26847
26847
  },
26848
26848
  computed: {
@@ -26930,7 +26930,7 @@ const su = /* @__PURE__ */ Ge(Aw, [["render", kw]]), Ow = { class: "message-laye
26930
26930
  context: null
26931
26931
  },
26932
26932
  setup(t) {
26933
- const e = t, n = cs(() => import("./StylePanel.9d0b732b.js")), r = b0.child({ name: "MessageLayer" }), s = zr(), i = ne(() => s.getters.participants), o = ne(() => s.getters.centerOf), l = ne(() => {
26933
+ const e = t, n = cs(() => import("./StylePanel.6cc6af50.js")), r = b0.child({ name: "MessageLayer" }), s = zr(), i = ne(() => s.getters.participants), o = ne(() => s.getters.centerOf), l = ne(() => {
26934
26934
  var x, y;
26935
26935
  const c = (x = e.context) == null ? void 0 : x.stat()[0].message();
26936
26936
  if (!c)
@@ -34231,6 +34231,7 @@ class KO {
34231
34231
  Z(this, "app");
34232
34232
  Z(this, "_currentTimeout");
34233
34233
  Z(this, "_lastRenderingCostMilliseconds", 0);
34234
+ Z(this, "initialRender", !0);
34234
34235
  this.el = e, this.store = H5(uh()), this.app = P0(n ? hc : n6), this.app.component("Comment", q0), this.app.component("Block", VO), this.app.use(this.store), this.app.mount(this.el), this.addPortalRootElement();
34235
34236
  }
34236
34237
  addPortalRootElement() {
@@ -34238,18 +34239,19 @@ class KO {
34238
34239
  e.id = "headlessui-portal-root", e.className = "zenuml", e.append(document.createElement("div")), document.body.append(e);
34239
34240
  }
34240
34241
  async render(e, n) {
34241
- return this._currentTimeout && (console.debug("rendering clearTimeout"), clearTimeout(this._currentTimeout)), jO.debug("rendering", e, n), this._code = e || this._code, this._theme = (n == null ? void 0 : n.theme) || this._theme, this.store.state.stickyOffset = (n == null ? void 0 : n.stickyOffset) || 0, this.store.state.theme = this._theme || "default", this._currentTimeout = setTimeout(async () => {
34242
- console.debug("rendering start");
34243
- const r = y6();
34244
- ev(), this.store.commit(
34245
- "onContentChange",
34246
- (n == null ? void 0 : n.onContentChange) || (() => {
34247
- })
34248
- ), (n == null ? void 0 : n.enableMultiTheme) !== void 0 && (this.store.state.enableMultiTheme = n == null ? void 0 : n.enableMultiTheme), await this.store.dispatch("updateCode", { code: this._code }), this._lastRenderingCostMilliseconds = GO(
34249
- "rendering end",
34250
- r
34251
- );
34252
- }, this.calculateDebounceMilliseconds()), Promise.resolve(this);
34242
+ return this._currentTimeout && (console.debug("rendering clearTimeout"), clearTimeout(this._currentTimeout)), jO.debug("rendering", e, n), this._code = e || this._code, this._theme = (n == null ? void 0 : n.theme) || this._theme, this.store.state.stickyOffset = (n == null ? void 0 : n.stickyOffset) || 0, this.store.state.theme = this._theme || "default", this.initialRender ? (this.initialRender = !1, await this.doRender(n)) : this._currentTimeout = setTimeout(
34243
+ async () => await this.doRender(n),
34244
+ this.calculateDebounceMilliseconds()
34245
+ ), this;
34246
+ }
34247
+ async doRender(e) {
34248
+ console.debug("rendering start");
34249
+ const n = y6();
34250
+ ev(), this.store.commit("onContentChange", (e == null ? void 0 : e.onContentChange) || (() => {
34251
+ })), (e == null ? void 0 : e.enableMultiTheme) !== void 0 && (this.store.state.enableMultiTheme = e == null ? void 0 : e.enableMultiTheme), await this.store.dispatch("updateCode", { code: this._code }), this._lastRenderingCostMilliseconds = GO(
34252
+ "rendering end",
34253
+ n
34254
+ );
34253
34255
  }
34254
34256
  calculateDebounceMilliseconds() {
34255
34257
  let e = this._lastRenderingCostMilliseconds;
@@ -34313,4 +34315,4 @@ export {
34313
34315
  xh as y,
34314
34316
  ke as z
34315
34317
  };
34316
- //# sourceMappingURL=core.50792979.js.map
34318
+ //# sourceMappingURL=core.eca73dbe.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.50792979.js";
1
+ import { o, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const c = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -30,4 +30,4 @@ export {
30
30
  u as default,
31
31
  i as render
32
32
  };
33
- //# sourceMappingURL=debug.23f6d4bc.js.map
33
+ //# sourceMappingURL=debug.6d6e1cb6.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as s, a as e } from "./core.50792979.js";
1
+ import { o as t, c as s, a as e } from "./core.eca73dbe.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "30",
@@ -22,4 +22,4 @@ export {
22
22
  i as default,
23
23
  c as render
24
24
  };
25
- //# sourceMappingURL=message-arrow.8c08ef8c.js.map
25
+ //# sourceMappingURL=message-arrow.8e347c2e.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c, a as o } from "./core.50792979.js";
1
+ import { o as e, c, a as o } from "./core.eca73dbe.js";
2
2
  const t = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -21,4 +21,4 @@ export {
21
21
  d as default,
22
22
  s as render
23
23
  };
24
- //# sourceMappingURL=non-selected-cycle.c3e29d31.js.map
24
+ //# sourceMappingURL=non-selected-cycle.b78af6c7.js.map
@@ -1,4 +1,4 @@
1
- import { o as Z, c, a as m } from "./core.50792979.js";
1
+ import { o as Z, c, a as m } from "./core.eca73dbe.js";
2
2
  const l = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "24",
@@ -23,4 +23,4 @@ export {
23
23
  s as default,
24
24
  e as render
25
25
  };
26
- //# sourceMappingURL=numbering.dccc49de.js.map
26
+ //# sourceMappingURL=numbering.4924288e.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as t, a as e } from "./core.50792979.js";
1
+ import { o as c, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const a = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -15,4 +15,4 @@ export {
15
15
  p as default,
16
16
  r as render
17
17
  };
18
- //# sourceMappingURL=privacy.a3d6717f.js.map
18
+ //# sourceMappingURL=privacy.19bd6b90.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as o, a as e } from "./core.50792979.js";
1
+ import { o as t, c as o, a as e } from "./core.eca73dbe.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -29,4 +29,4 @@ export {
29
29
  f as default,
30
30
  r as render
31
31
  };
32
- //# sourceMappingURL=selected-cycle.370422da.js.map
32
+ //# sourceMappingURL=selected-cycle.d0eb0a1f.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as t } from "./core.50792979.js";
1
+ import { o as c, c as e, a as t } from "./core.eca73dbe.js";
2
2
  const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  class: "grayscale h-4 w-4",
@@ -17,4 +17,4 @@ export {
17
17
  h as default,
18
18
  a as render
19
19
  };
20
- //# sourceMappingURL=theme.1e951585.js.map
20
+ //# sourceMappingURL=theme.2c7d4efd.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as t, a as o } from "./core.50792979.js";
1
+ import { o as e, c as t, a as o } from "./core.eca73dbe.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -16,4 +16,4 @@ export {
16
16
  i as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=tip.1aa8e520.js.map
19
+ //# sourceMappingURL=tip.1447e37d.js.map