@zenuml/core 3.24.2 → 3.24.4

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/.dockerignore ADDED
@@ -0,0 +1,19 @@
1
+ node_modules
2
+ .git
3
+ .gitignore
4
+ .github
5
+ *.md
6
+ dist
7
+ .watchmanconfig
8
+ .prettierrc
9
+ .prettierignore
10
+ .editorconfig
11
+ .eslintignore
12
+ .eslintrc.js
13
+ .git-blame-ignore-revs
14
+ .vscode
15
+ cypress
16
+ cypress.config.ts
17
+ docs
18
+ test
19
+ vite.config.lib.js
package/Dockerfile ADDED
@@ -0,0 +1,36 @@
1
+ FROM node:20-slim AS base
2
+
3
+ # Set environment variables for pnpm
4
+ ENV PNPM_HOME="/pnpm"
5
+ ENV PATH="$PNPM_HOME:$PATH"
6
+ ENV DOCKER=true
7
+
8
+ # Enable corepack to use pnpm
9
+ RUN corepack enable
10
+
11
+ # Set the working directory
12
+ WORKDIR /app
13
+
14
+ # Copy the project files to the working directory
15
+ COPY . .
16
+
17
+ RUN pnpm add -g serve
18
+
19
+ FROM base As prod-deps
20
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prod --ignore-scripts
21
+ FROM base AS deps
22
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
23
+
24
+ FROM base AS build
25
+ COPY --from=deps /app/node_modules /app/node_modules
26
+ RUN pnpm build:site
27
+
28
+ FROM base
29
+ COPY --from=prod-deps /app/node_modules /app/node_modules
30
+ COPY --from=build /app/dist /app/dist
31
+
32
+ # Expose the port the app runs on
33
+ EXPOSE 8080
34
+
35
+ # Command to run the application
36
+ CMD ["serve", "-s", "dist", "-l", "8080"]
package/README.md CHANGED
@@ -90,6 +90,31 @@ tunnels for this.
90
90
  3. You will be given a command that install a service locally. Run it.
91
91
  4. Your localhost:8080 will be available at `air.zenuml.com`.
92
92
 
93
+ ### Docker
94
+
95
+ To run the application using Docker, follow these steps:
96
+
97
+ 1. **Build the Docker image**:
98
+ Navigate to the root directory of the project and run the following command to build the Docker image:
99
+
100
+ ```bash
101
+ docker build -t zenuml-core .
102
+ ```
103
+
104
+ 2. **Run the Docker container**:
105
+ After building the image, you can run the Docker container with the following command:
106
+
107
+ ```bash
108
+ docker run -p 8080:8080 zenuml-core
109
+ ```
110
+
111
+ This will start the application and map port 8080 of the container to port 8080 on your local machine.
112
+
113
+ 3. **Access the application**:
114
+ Open your web browser and navigate to `http://localhost:8080` to access the application.
115
+
116
+ Make sure Docker is installed and running on your machine before executing these commands.
117
+
93
118
  # Code Structure
94
119
 
95
120
  This repository contains both the DSL parser and the renderer.
@@ -1,4 +1,4 @@
1
- import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.a4f74b20.js";
1
+ import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.b22e75a0.js";
2
2
  const Ie = ["top", "right", "bottom", "left"], Le = ["start", "end"], Fe = /* @__PURE__ */ Ie.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -1821,4 +1821,4 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1821
1821
  export {
1822
1822
  Un as default
1823
1823
  };
1824
- //# sourceMappingURL=StylePanel.1da89652.js.map
1824
+ //# sourceMappingURL=StylePanel.415cc2b8.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.a4f74b20.js";
1
+ import { o as e, c as o, a as t } from "./core.b22e75a0.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.56231193.js.map
24
+ //# sourceMappingURL=close.c035f527.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.a4f74b20.js";
1
+ import { o as e, c as o, a as t } from "./core.b22e75a0.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.6fe2e173.js.map
19
+ //# sourceMappingURL=collapse-expanded.e6ed2b18.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.a4f74b20.js";
1
+ import { o, c as t, a as e } from "./core.b22e75a0.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.6b5b7eda.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.0873f304.js.map
@@ -26103,7 +26103,7 @@ const zf = () => (Bf = Fk(), {
26103
26103
  }
26104
26104
  },
26105
26105
  setup(n) {
26106
- const e = n, t = K5(() => iP(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.56231193.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.6fe2e173.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.6b5b7eda.js"), "./icons/debug.svg": () => import("./debug.09ed4ddb.js"), "./icons/message-arrow.svg": () => import("./message-arrow.407fc8d2.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.fd949584.js"), "./icons/numbering.svg": () => import("./numbering.4db2a0c8.js"), "./icons/privacy.svg": () => import("./privacy.644ac204.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.156e3cdd.js"), "./icons/theme.svg": () => import("./theme.193d1a8f.js"), "./icons/tip.svg": () => import("./tip.c1b09317.js"), "./icons/zoom-in.svg": () => import("./zoom-in.7e6c30e9.js"), "./icons/zoom-out.svg": () => import("./zoom-out.dc5bf527.js") }), `./icons/${e.name}.svg`));
26106
+ const e = n, t = K5(() => iP(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.c035f527.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.e6ed2b18.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.0873f304.js"), "./icons/debug.svg": () => import("./debug.c7416482.js"), "./icons/message-arrow.svg": () => import("./message-arrow.5b3a410c.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.55bd2032.js"), "./icons/numbering.svg": () => import("./numbering.d2ad2adb.js"), "./icons/privacy.svg": () => import("./privacy.a0376905.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.0591e95f.js"), "./icons/theme.svg": () => import("./theme.6efd46bb.js"), "./icons/tip.svg": () => import("./tip.d7685692.js"), "./icons/zoom-in.svg": () => import("./zoom-in.3e1d7bfe.js"), "./icons/zoom-out.svg": () => import("./zoom-out.4d30ed48.js") }), `./icons/${e.name}.svg`));
26107
26107
  return (i, r) => (W(), a2("span", {
26108
26108
  class: $2(["flex items-center justify-center", n.iconClass]),
26109
26109
  onClick: r[0] || (r[0] = (s) => i.$emit("icon-click"))
@@ -30656,7 +30656,7 @@ const Ni = /* @__PURE__ */ T1(Gj, [["render", jj]]), qj = { class: "message-laye
30656
30656
  context: null
30657
30657
  },
30658
30658
  setup(n) {
30659
- const e = K5(() => import("./StylePanel.1da89652.js")), t = E7.child({ name: "MessageLayer" }), i = j3(), r = j(() => i.getters.participants), s = j(() => i.getters.centerOf), L = j(() => {
30659
+ const e = K5(() => import("./StylePanel.415cc2b8.js")), t = E7.child({ name: "MessageLayer" }), i = j3(), r = j(() => i.getters.participants), s = j(() => i.getters.centerOf), L = j(() => {
30660
30660
  if (r.value.Array().length >= 1) {
30661
30661
  const a = r.value.Array().slice(0)[0].name;
30662
30662
  return s.value(a) + 1;
@@ -41899,7 +41899,7 @@ const c12 = {
41899
41899
  return (u = r.value) == null ? void 0 : u.braceBlock();
41900
41900
  }), L = j(() => {
41901
41901
  var u, d;
41902
- return (d = (u = r.value) == null ? void 0 : u.atom()) == null ? void 0 : d.getText();
41902
+ return (d = (u = r.value) == null ? void 0 : u.atom()) == null ? void 0 : d.getFormattedText();
41903
41903
  }), a = j(() => {
41904
41904
  var u;
41905
41905
  return (u = s.value) == null ? void 0 : u.block();
@@ -41919,7 +41919,7 @@ const c12 = {
41919
41919
  blockInSection: a
41920
41920
  };
41921
41921
  }
41922
- }, C12 = (n) => (k0("data-v-c39b16f1"), n = n(), Z0(), n), u12 = { class: "segment" }, h12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, d12 = {
41922
+ }, C12 = (n) => (k0("data-v-4bc3f6cf"), n = n(), Z0(), n), u12 = { class: "segment" }, h12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, d12 = {
41923
41923
  key: 0,
41924
41924
  class: "absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"
41925
41925
  }, f12 = { class: "name font-semibold p-1 border-b" }, g12 = { class: "p-0" }, p12 = { class: "segment" }, m12 = /* @__PURE__ */ C12(() => /* @__PURE__ */ B("div", { class: "text-skin-fragment flex" }, null, -1));
@@ -41966,7 +41966,7 @@ function w12(n, e, t, i, r, s) {
41966
41966
  ], 2)
41967
41967
  ], 4);
41968
41968
  }
41969
- const x12 = /* @__PURE__ */ T1(c12, [["render", w12], ["__scopeId", "data-v-c39b16f1"]]);
41969
+ const x12 = /* @__PURE__ */ T1(c12, [["render", w12], ["__scopeId", "data-v-4bc3f6cf"]]);
41970
41970
  const _12 = {
41971
41971
  name: "fragment-section",
41972
41972
  props: ["context", "comment", "selfCallIndent", "commentObj", "number"],
@@ -41977,7 +41977,7 @@ const _12 = {
41977
41977
  return (u = r.value) == null ? void 0 : u.braceBlock();
41978
41978
  }), L = j(() => {
41979
41979
  var u, d;
41980
- return (d = (u = r.value) == null ? void 0 : u.atom()) == null ? void 0 : d.getText();
41980
+ return (d = (u = r.value) == null ? void 0 : u.atom()) == null ? void 0 : d.getFormattedText();
41981
41981
  }), a = j(() => {
41982
41982
  var u;
41983
41983
  return (u = s.value) == null ? void 0 : u.block();
@@ -41992,7 +41992,7 @@ const _12 = {
41992
41992
  blockInCritical: a
41993
41993
  };
41994
41994
  }
41995
- }, v12 = (n) => (k0("data-v-206bdc21"), n = n(), Z0(), n), M12 = { class: "segment" }, y12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, A12 = {
41995
+ }, v12 = (n) => (k0("data-v-f166194f"), n = n(), Z0(), n), M12 = { class: "segment" }, y12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, A12 = {
41996
41996
  key: 0,
41997
41997
  class: "absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"
41998
41998
  }, R12 = { class: "name font-semibold p-1 border-b" }, T12 = { class: "p-0" }, k12 = { class: "segment" }, Z12 = /* @__PURE__ */ v12(() => /* @__PURE__ */ B("div", { class: "text-skin-fragment flex" }, null, -1));
@@ -42039,7 +42039,7 @@ function S12(n, e, t, i, r, s) {
42039
42039
  ], 2)
42040
42040
  ], 4);
42041
42041
  }
42042
- const b12 = /* @__PURE__ */ T1(_12, [["render", S12], ["__scopeId", "data-v-206bdc21"]]);
42042
+ const b12 = /* @__PURE__ */ T1(_12, [["render", S12], ["__scopeId", "data-v-f166194f"]]);
42043
42043
  const I12 = {
42044
42044
  name: "fragment-tcf",
42045
42045
  props: ["context", "comment", "commentObj", "selfCallIndent", "number"],
@@ -42073,14 +42073,14 @@ const I12 = {
42073
42073
  methods: {
42074
42074
  exception(n) {
42075
42075
  var e;
42076
- return (e = n == null ? void 0 : n.invocation()) == null ? void 0 : e.parameters().getText();
42076
+ return (e = n == null ? void 0 : n.invocation()) == null ? void 0 : e.parameters().getFormattedText();
42077
42077
  },
42078
42078
  blockInCatchBlock(n) {
42079
42079
  var e;
42080
42080
  return (e = n == null ? void 0 : n.braceBlock()) == null ? void 0 : e.block();
42081
42081
  }
42082
42082
  }
42083
- }, Jg = (n) => (k0("data-v-be6517af"), n = n(), Z0(), n), E12 = { class: "segment" }, O12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, F12 = {
42083
+ }, Jg = (n) => (k0("data-v-1ab81f63"), n = n(), Z0(), n), E12 = { class: "segment" }, O12 = { class: "header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative" }, F12 = {
42084
42084
  key: 0,
42085
42085
  class: "absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"
42086
42086
  }, D12 = { class: "name font-semibold p-1 border-b" }, N12 = { class: "segment" }, P12 = /* @__PURE__ */ Jg(() => /* @__PURE__ */ B("label", { class: "keyword catch p-1" }, "catch", -1)), B12 = { class: "exception p-1" }, z12 = {
@@ -42158,7 +42158,7 @@ function W12(n, e, t, i, r, s) {
42158
42158
  ], 2)
42159
42159
  ], 4);
42160
42160
  }
42161
- const H12 = /* @__PURE__ */ T1(I12, [["render", W12], ["__scopeId", "data-v-be6517af"]]), $12 = {
42161
+ const H12 = /* @__PURE__ */ T1(I12, [["render", W12], ["__scopeId", "data-v-1ab81f63"]]), $12 = {
42162
42162
  name: "return",
42163
42163
  props: ["context", "comment", "commentObj", "number"],
42164
42164
  computed: {
@@ -42726,4 +42726,4 @@ export {
42726
42726
  Vf as y,
42727
42727
  l1 as z
42728
42728
  };
42729
- //# sourceMappingURL=core.a4f74b20.js.map
42729
+ //# sourceMappingURL=core.b22e75a0.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.a4f74b20.js";
1
+ import { o, c as t, a as e } from "./core.b22e75a0.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.09ed4ddb.js.map
33
+ //# sourceMappingURL=debug.c7416482.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as s, a as e } from "./core.a4f74b20.js";
1
+ import { o as t, c as s, a as e } from "./core.b22e75a0.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.407fc8d2.js.map
25
+ //# sourceMappingURL=message-arrow.5b3a410c.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c, a as o } from "./core.a4f74b20.js";
1
+ import { o as e, c, a as o } from "./core.b22e75a0.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.fd949584.js.map
24
+ //# sourceMappingURL=non-selected-cycle.55bd2032.js.map
@@ -1,4 +1,4 @@
1
- import { o as Z, c, a as m } from "./core.a4f74b20.js";
1
+ import { o as Z, c, a as m } from "./core.b22e75a0.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.4db2a0c8.js.map
26
+ //# sourceMappingURL=numbering.d2ad2adb.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as t, a as e } from "./core.a4f74b20.js";
1
+ import { o as c, c as t, a as e } from "./core.b22e75a0.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.644ac204.js.map
18
+ //# sourceMappingURL=privacy.a0376905.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as o, a as e } from "./core.a4f74b20.js";
1
+ import { o as t, c as o, a as e } from "./core.b22e75a0.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.156e3cdd.js.map
32
+ //# sourceMappingURL=selected-cycle.0591e95f.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as t } from "./core.a4f74b20.js";
1
+ import { o as c, c as e, a as t } from "./core.b22e75a0.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.193d1a8f.js.map
20
+ //# sourceMappingURL=theme.6efd46bb.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as t, a as o } from "./core.a4f74b20.js";
1
+ import { o as e, c as t, a as o } from "./core.b22e75a0.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.c1b09317.js.map
19
+ //# sourceMappingURL=tip.d7685692.js.map