likec4 1.36.1 → 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/__app__/src/{index-iX7kahqQ.js → index-CIsxIzOH.js} +23 -53
- package/__app__/src/main.js +2052 -1804
- package/__app__/src/style.css +1 -1
- package/__app__/src/webcomponent.tsx +0 -22
- package/dist/cli/index.mjs +255 -255
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.B6V1NOky.mjs +258 -0
- package/dist/shared/likec4.B7noVoso.mjs +2 -0
- package/dist/shared/{likec4.C9tWFblu.mjs → likec4.BKp9_9LQ.mjs} +1729 -1714
- package/dist/shared/{likec4.CoVNuZKl.d.mts → likec4.cqC6tNHO.d.mts} +2108 -2038
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/index.mjs +2 -2
- package/dist/vite-plugin/internal.mjs +7 -9
- package/package.json +15 -15
- package/react/index.d.mts +2145 -72
- package/react/index.mjs +37 -50
- package/vite-plugin-modules.d.ts +2 -1
- package/dist/shared/likec4.0TN5MWXf.mjs +0 -239
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as LikeC4LanguageServices } from '../shared/likec4.
|
|
1
|
+
import { L as LikeC4LanguageServices } from '../shared/likec4.cqC6tNHO.mjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
import '@likec4/core';
|
|
4
4
|
import '@likec4/core/model';
|
|
5
|
-
import '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.2/node_modules/@types/picomatch/
|
|
5
|
+
import '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.2/node_modules/@types/picomatch/index.d.ts';
|
|
6
6
|
import '@likec4/core/types';
|
|
7
7
|
import '@likec4/core/utils';
|
|
8
8
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{L as LikeC4VitePlugin}from"../shared/likec4.
|
|
2
|
-
import"@likec4/core/utils";import"node:process";import"boxen";import"node:child_process";import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:readline/promises";import"node:os";import"fs/promises";
|
|
1
|
+
export{L as LikeC4VitePlugin}from"../shared/likec4.B6V1NOky.mjs";import"@likec4/core";import"node:path";import"../shared/likec4.B7noVoso.mjs";import"../shared/likec4.BeWJWU7_.mjs";import"../shared/likec4.BKp9_9LQ.mjs";import"node:fs";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core/types";import"events";import"@hpcc-js/wasm-graphviz";import"@likec4/core/model";import"buffer";
|
|
2
|
+
import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";import"boxen";import"node:child_process";import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:readline/promises";import"node:os";import"fs/promises";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import{LikeC4Model as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
s));function n(s){const d=e.get();if(L(d,s))return;const p={...s,views:V(s.views,o=>{const f=d.views[o.id];return L(f,o)?f:o})};e.set(p)}const r=M(e,s=>[...Object.values(s.views)]);function i(){return N(t)}function l(){return N(r)}function u(s){const[d,p]=y(e.value?.views[s]??null);return A(()=>e.subscribe(o=>{p(o.views[s]??null)}),[s]),d}return{updateModel:n,$likec4model:t,useLikeC4Model:i,useLikeC4Views:l,useLikeC4View:u}};export{T as atom,F as batched,M as computed,B as createHooksForModel,Y as map,
|
|
9
|
-
N as useStore};
|
|
1
|
+
import{LikeC4Model as U}from"@likec4/core/model";import{useRef as _,useCallback as x,useSyncExternalStore as R,useState as A,useEffect as V}from"react";import{i as C}from"../shared/likec4.BeWJWU7_.mjs";import{k as L}from"../shared/likec4.B7noVoso.mjs";let T=Symbol("clean"),a=[],o=0;const m=4;let g=0,M=e=>{let n=[],t={get(){return t.lc||t.listen(()=>{})(),t.value},lc:0,listen(l){return t.lc=n.push(l),()=>{for(let u=o+m;u<a.length;)a[u]===l?a.splice(u,m):u+=m;let i=n.indexOf(l);~i&&(n.splice(i,1),
|
|
2
|
+
--t.lc||t.off())}},notify(l,i){g++;let u=!a.length;for(let r of n)a.push(r,t.value,l,i);if(u){for(o=0;o<a.length;o+=m)a[o](a[o+1],a[o+2],a[o+3]);a.length=0}},off(){},set(l){let i=t.value;i!==l&&(t.value=l,t.notify(i))},subscribe(l){let i=t.listen(l);return l(t.value),i},value:e};return process.env.NODE_ENV!=="production"&&(t[T]=()=>{n=[],t.lc=0,t.off()}),t};const I=5,v=6,E=10;let D=(e,n,t,l)=>(e.events=e.events||{},e.events[t+E]||(e.events[t+E]=l(i=>{e.events[t].reduceRight((u,r)=>(r(u),u),{shared:{},
|
|
3
|
+
...i})})),e.events[t]=e.events[t]||[],e.events[t].push(n),()=>{let i=e.events[t],u=i.indexOf(n);i.splice(u,1),i.length||(delete e.events[t],e.events[t+E](),delete e.events[t+E])}),Q=1e3,b=(e,n)=>D(e,l=>{let i=n(l);i&&e.events[v].push(i)},I,l=>{let i=e.listen;e.listen=(...r)=>(!e.lc&&!e.active&&(e.active=!0,l()),i(...r));let u=e.off;if(e.events[v]=[],e.off=()=>{u(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let r of e.events[v])r();e.events[v]=[]}},Q)},process.env.NODE_ENV!=="production"){
|
|
4
|
+
let r=e[T];e[T]=()=>{for(let s of e.events[v])s();e.events[v]=[],e.active=!1,r()}}return()=>{e.listen=i,e.off=u}}),w=(e,n,t)=>{Array.isArray(e)||(e=[e]);let l,i,u=()=>{if(i===g)return;i=g;let c=e.map(f=>f.get());if(!l||c.some((f,h)=>f!==l[h])){l=c;let f=n(...c);f&&f.then&&f.t?f.then(h=>{l===c&&r.set(h)}):(r.set(f),i=g)}},r=M(void 0),s=r.get;r.get=()=>(u(),s());let d,p=t?()=>{clearTimeout(d),d=setTimeout(u)}:u;return b(r,()=>{let c=e.map(f=>f.listen(p));return u(),()=>{for(let f of c)f()}}),r},N=(e,n)=>w(
|
|
5
|
+
e,n),k=(e,n)=>w(e,n,!0);function q(e,n,t){let l=new Set(n).add(void 0);return e.listen((i,u,r)=>{l.has(r)&&t(i,u,r)})}let F=(e={})=>{let n=M(e);return n.setKey=function(t,l){let i=n.value;typeof l>"u"&&t in n.value?(n.value={...n.value},delete n.value[t],n.notify(i,t)):n.value[t]!==l&&(n.value={...n.value,[t]:l},n.notify(i,t))},n},O=(e,n)=>t=>{e.current!==t&&(e.current=t,n())};function S(e,{keys:n,deps:t=[e,n]}={}){let l=_();l.current=e.get();let i=x(r=>(O(l,r)(e.value),n?.length>0?q(e,n,O(l,r)):
|
|
6
|
+
e.listen(O(l,r))),t),u=()=>l.current;return R(i,u,u)}const H=e=>{const n=N(e,s=>U.create(s));function t(s){const d=e.get();if(L(d,s))return;const p={...s,views:C(s.views,c=>{const f=d.views[c.id];return L(f,c)?f:c})};e.set(p)}const l=N(e,s=>[...Object.values(s.views)]);function i(){return S(n)}function u(){return S(l)}function r(s){const[d,p]=A(e.value?.views[s]??null);return V(()=>e.subscribe(c=>{p(c.views[s]??null)}),[s]),d}return{updateModel:t,$likec4model:n,useLikeC4Model:i,useLikeC4Views:u,
|
|
7
|
+
useLikeC4View:r}};export{M as atom,k as batched,N as computed,H as createHooksForModel,F as map,S as useStore};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
3
|
"description": "Toolchain for your architecture diagrams",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.37.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"rollup": "^4.44.0",
|
|
98
98
|
"type-fest": "^4.41.0",
|
|
99
99
|
"vite": "^6.3.5",
|
|
100
|
-
"@likec4/core": "1.
|
|
100
|
+
"@likec4/core": "1.37.0"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": "^18.x || ^19.x",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"@types/react-dom": "19.1.7",
|
|
122
122
|
"@types/semver": "^7.7.0",
|
|
123
123
|
"@types/yargs": "^17.0.33",
|
|
124
|
-
"@xyflow/react": "12.
|
|
125
|
-
"@xyflow/system": "0.0.
|
|
124
|
+
"@xyflow/react": "12.8.3",
|
|
125
|
+
"@xyflow/system": "0.0.67",
|
|
126
126
|
"autoprefixer": "^10.4.21",
|
|
127
127
|
"classnames": "^2.5.1",
|
|
128
128
|
"clsx": "^2.1.1",
|
|
@@ -136,14 +136,14 @@
|
|
|
136
136
|
"fast-equals": "^5.2.2",
|
|
137
137
|
"fdir": "6.4.6",
|
|
138
138
|
"get-port": "^7.1.0",
|
|
139
|
-
"html-to-image": "
|
|
139
|
+
"html-to-image": "1.11.11",
|
|
140
140
|
"is-inside-container": "^1.0.0",
|
|
141
141
|
"json5": "^2.2.3",
|
|
142
142
|
"ky": "^1.8.1",
|
|
143
143
|
"langium": "3.5.0",
|
|
144
144
|
"merge-error-cause": "^5.0.2",
|
|
145
145
|
"mkdirp": "^3.0.1",
|
|
146
|
-
"motion": "^12.23.
|
|
146
|
+
"motion": "^12.23.12",
|
|
147
147
|
"nano-spawn": "^1.0.2",
|
|
148
148
|
"nanostores": "1.0.1",
|
|
149
149
|
"npm-run-all2": "^8.0.4",
|
|
@@ -179,15 +179,15 @@
|
|
|
179
179
|
"which": "^5.0.0",
|
|
180
180
|
"wireit": "0.14.12",
|
|
181
181
|
"yargs": "17.7.2",
|
|
182
|
-
"@likec4/diagram": "1.
|
|
183
|
-
"@likec4/
|
|
184
|
-
"@likec4/
|
|
185
|
-
"@likec4/
|
|
186
|
-
"@likec4/
|
|
187
|
-
"@likec4/
|
|
188
|
-
"@likec4/
|
|
189
|
-
"@likec4/
|
|
190
|
-
"@likec4/
|
|
182
|
+
"@likec4/diagram": "1.37.0",
|
|
183
|
+
"@likec4/generators": "1.37.0",
|
|
184
|
+
"@likec4/language-server": "1.37.0",
|
|
185
|
+
"@likec4/layouts": "1.37.0",
|
|
186
|
+
"@likec4/log": "1.37.0",
|
|
187
|
+
"@likec4/style-preset": "1.37.0",
|
|
188
|
+
"@likec4/icons": "1.37.0",
|
|
189
|
+
"@likec4/styles": "1.37.0",
|
|
190
|
+
"@likec4/tsconfig": "1.37.0"
|
|
191
191
|
},
|
|
192
192
|
"scripts": {
|
|
193
193
|
"typecheck": "tsc --build --verbose",
|