likec4 1.56.0 → 1.57.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__/chunks/AIChat2.mjs +2 -0
- package/__app__/chunks/DiagramActorProvider.mjs +4 -4
- package/__app__/chunks/EmbedPage.mjs +1 -0
- package/__app__/chunks/ExportPage.mjs +2 -0
- package/__app__/chunks/LikeC4Diagram.mjs +5 -5
- package/__app__/chunks/LikeC4Styles.mjs +11 -11
- package/__app__/chunks/Markdown.mjs +1 -0
- package/__app__/chunks/NavigationPanel.mjs +1 -1
- package/__app__/chunks/ViewReact.mjs +1 -1
- package/__app__/chunks/adhoc-editor.mjs +1 -1
- package/__app__/chunks/aichat.mjs +1 -0
- package/__app__/chunks/box.mjs +1 -0
- package/__app__/chunks/create-style-context.mjs +1 -0
- package/__app__/chunks/css.mjs +1 -0
- package/__app__/chunks/factory.mjs +1 -0
- package/__app__/chunks/hooks.mjs +1 -1
- package/__app__/chunks/hstack.mjs +1 -0
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +1 -1
- package/__app__/chunks/libs/@mantine/core.mjs +24 -24
- package/__app__/chunks/libs/@mantine/hooks.mjs +1 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +1 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +1 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +347 -4
- package/__app__/chunks/libs/@tanstack/ai-client.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai-react.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/history.mjs +1 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +3 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +1 -1
- package/__app__/chunks/libs/@xstate/react.mjs +1 -1
- package/__app__/chunks/libs/@xstate/store.mjs +1 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +3 -3
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +1 -1
- package/__app__/chunks/libs/bezier-js.mjs +1 -1
- package/__app__/chunks/libs/copy-anything.mjs +1 -0
- package/__app__/chunks/libs/d3-path.mjs +1 -1
- package/__app__/chunks/libs/d3-shape.mjs +1 -1
- package/__app__/chunks/libs/fast-equals.mjs +1 -1
- package/__app__/chunks/libs/framer-motion.mjs +3 -3
- package/__app__/chunks/libs/html-to-image.mjs +2 -2
- package/__app__/chunks/libs/motion-dom.mjs +1 -1
- package/__app__/chunks/libs/nanostores.mjs +1 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +1 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +1 -1
- package/__app__/chunks/libs/remeda.mjs +1 -1
- package/__app__/chunks/libs/superjson.mjs +1 -0
- package/__app__/chunks/libs/zod.mjs +39 -14
- package/__app__/chunks/rolldown-runtime.mjs +1 -1
- package/__app__/chunks/styles.css.mjs +1 -1
- package/__app__/chunks/txt.mjs +1 -0
- package/__app__/chunks/useLikeC4Project.mjs +1 -1
- package/__app__/codegen/webcomponent.mjs +221 -69
- package/__app__/src/aichat/index.mjs +1 -0
- package/__app__/src/main.mjs +45 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +1 -1
- package/__app__/src/pages/EmbedPage.mjs +1 -1
- package/__app__/src/pages/ExportPage.mjs +1 -1
- package/__app__/src/pages/ProjectsOverview.mjs +1 -1
- package/__app__/src/pages/ViewAsD2.mjs +1 -1
- package/__app__/src/pages/ViewAsDot.mjs +1 -1
- package/__app__/src/pages/ViewAsMmd.mjs +1 -1
- package/__app__/src/pages/ViewAsPuml.mjs +1 -1
- package/__app__/src/pages/ViewEditor.mjs +1 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/index2.d.mts +569 -377
- package/dist/chunks/libs/@hono/mcp.mjs +33 -8
- package/dist/chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/ajv.mjs +1 -1
- package/dist/chunks/libs/ansi-styles.mjs +1 -1
- package/dist/chunks/libs/boxen.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +2 -2
- package/dist/chunks/libs/conf.mjs +1 -1
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ts-graphviz.mjs +1 -4
- package/dist/chunks/libs/unctx.mjs +1 -0
- package/dist/chunks/libs/vscode-languageserver.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/node.mjs +62 -45
- package/dist/chunks/plugin.mjs +234 -41
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/cli/index.mjs +142 -139
- package/dist/index.d.mts +1 -130
- package/dist/model/index.d.mts +1 -1
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/internal/index.d.mts +331 -3
- package/dist/vite-plugin/internal/index.mjs +1 -1
- package/package.json +65 -51
- package/react/index.d.mts +82 -50
- package/react/index.mjs +34017 -32421
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useCallback as e,useRef as t,useSyncExternalStore as n}from"react";let r=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function i({update:e,notify:t,unwatched:n}){return{link:i,unlink:a,propagate:o,checkDirty:s,shallowPropagate:c};function i(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function a(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function o(e){let n=e.nextSub,i;top:do{let a=e.sub,o=a.flags;if(o&(r.RecursedCheck|r.Recursed|r.Dirty|r.Pending)?o&(r.RecursedCheck|r.Recursed)?o&r.RecursedCheck?!(o&(r.Dirty|r.Pending))&&l(e,a)?(a.flags=o|(r.Recursed|r.Pending),o&=r.Mutable):o=r.None:a.flags=o&~r.Recursed|r.Pending:o=r.None:a.flags=o|r.Pending,o&r.Watching&&t(a),o&r.Mutable){let t=a.subs;if(t!==void 0){let r=(e=t).nextSub;r!==void 0&&(i={value:n,prev:i},n=r);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;i!==void 0;)if(e=i.value,i=i.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function s(t,n){let i,a=0,o=!1;top:do{let s=t.dep,l=s.flags;if(n.flags&r.Dirty)o=!0;else if((l&(r.Mutable|r.Dirty))===(r.Mutable|r.Dirty)){if(e(s)){let e=s.subs;e.nextSub!==void 0&&c(e),o=!0}}else if((l&(r.Mutable|r.Pending))===(r.Mutable|r.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(i={value:t,prev:i}),t=s.deps,n=s,++a;continue}if(!o){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;a--;){let a=n.subs,s=a.nextSub!==void 0;if(s?(t=i.value,i=i.prev):t=a,o){if(e(n)){s&&c(a),n=t.sub;continue}o=!1}else n.flags&=~r.Pending;n=t.sub;let l=t.nextDep;if(l!==void 0){t=l;continue top}}return o}while(!0)}function c(e){do{let n=e.sub,i=n.flags;(i&(r.Pending|r.Dirty))===r.Pending&&(n.flags=i|r.Dirty,(i&(r.Watching|r.RecursedCheck))===r.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function l(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function a(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}const o=[];let s=0;const{link:c,unlink:l,propagate:u,checkDirty:d,shallowPropagate:f}=i({update(e){return e._update()},notify(e){o[m++]=e,e.flags&=~r.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=r.Mutable|r.Dirty,g(e))}});let p=0,m=0,h;function g(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=l(n,e)}function _(){for(;p<m;){let e=o[p];o[p++]=void 0,e.notify()}p=0,m=0}function v(e,t){let n=typeof e==`function`,i=e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?r.None:r.Mutable,get(){return h!==void 0&&c(o,h,s),o._snapshot},subscribe(e){let t=a(e),n={current:!1},r=y(()=>{o.get(),n.current?t.next?.(o._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=h,c=t?.compare??Object.is;h=o,++s,o.depsTail=void 0,n&&(o.flags=r.Mutable|r.RecursedCheck);try{let t=o._snapshot,r=typeof e==`function`?e(t):e===void 0&&n?i(e=>e.get(),t):e;return t===void 0||!c(t,r)?(o._snapshot=r,!0):!1}finally{h=a,n&&(o.flags&=~r.RecursedCheck),g(o)}}};return n?(o.flags=r.Mutable|r.Dirty,o.get=function(){let e=o.flags;if(e&r.Dirty||e&r.Pending&&d(o.deps,o)){if(o._update()){let e=o.subs;e!==void 0&&f(e)}}else e&r.Pending&&(o.flags=e&~r.Pending);return h!==void 0&&c(o,h,s),o._snapshot}):o.set=function(e){if(o._update(e)){let e=o.subs;e!==void 0&&(u(e),f(e),_())}},o}function y(e){let t=()=>{let t=h;h=n,++s,n.depsTail=void 0,n.flags=r.Watching|r.RecursedCheck;try{return e()}finally{h=t,n.flags&=~r.RecursedCheck,g(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:r.Watching|r.RecursedCheck,notify(){let e=this.flags;e&r.Dirty||e&r.Pending&&d(this.deps,this)?t():this.flags=r.Watching},stop(){this.flags=r.None,this.depsTail=void 0,g(this)}};return t(),n}const b=typeof Symbol==`function`&&Symbol.observable||`@@observable`,x=new WeakMap;function S(e,t){let n,r=e.getInitialSnapshot(),i=r,o=v(i),s=e=>{if(!n)return;let t=e.type,r=n.get(t);r&&r.forEach(t=>t(e));let i=n.get(`*`);i&&i.forEach(t=>t(e))},c=e.transition;function l(e){let[n,r]=c(i,e);i=n,x.get(u)?.forEach(t=>{t.next?.({type:`@xstate.snapshot`,event:e,snapshot:n,actorRef:u,rootId:u.sessionId})}),o.set(n);for(let e of r)typeof e==`function`?e():(t?.[e.type]?.(e),s(e))}let u={get _snapshot(){return o._snapshot},on(e,t){n||=new Map;let r=n.get(e);r||(r=new Set,n.set(e,r));let i=t.bind(void 0);return r.add(i),{unsubscribe(){r.delete(i)}}},transition:e.transition,sessionId:T(),send(e){x.get(u)?.forEach(t=>{t.next?.({type:`@xstate.event`,event:e,sourceRef:void 0,actorRef:u,rootId:u.sessionId})}),l(e)},getSnapshot(){return i},get(){return o.get()},getInitialSnapshot(){return r},subscribe:o.subscribe.bind(o),[b](){return this},inspect:e=>{let t=a(e);return x.set(u,x.get(u)??new Set),x.get(u).add(t),t.next?.({type:`@xstate.actor`,actorRef:u,rootId:u.sessionId}),t.next?.({type:`@xstate.snapshot`,snapshot:r,event:{type:`@xstate.init`},actorRef:u,rootId:u.sessionId}),{unsubscribe(){return x.get(u)?.delete(t)}}},trigger:new Proxy({},{get:(e,t)=>e=>{u.send({...e,type:t})}}),select(e,t=Object.is){return v(()=>e(u.get().context),{compare:t})},with(n){return S(n(e),t)}};return u}function C(e){return`transition`in e?S(e):S({getInitialSnapshot:()=>({status:`active`,context:e.context,output:void 0,error:void 0}),transition:w(e.on)},e.emits)}function w(e,t){return(n,r)=>{let i=n.context,a=e?.[r.type],o=[],s={emit:new Proxy({},{get:(e,t)=>e=>{o.push({...e,type:t})}}),effect:e=>{o.push(e)}};if(!a)return[n,o];let c=t?t(i,e=>a(e,r,s)):a(i,r,s)??i;return[c===i?n:{...n,context:c},o]}}function T(){return Math.random().toString(36).slice(6)}function E(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function D(e,t){if(E(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!E(e[n[r]],t[n[r]]))return!1;return!0}function O(e,t){return e===t}function k(e){return e}function A(e,n){let r=t(void 0);return t=>{let i=e(t);return r.current&&n(r.current,i)?r.current:r.current=i}}function j(t,r=k,i=O){let a=A(r,i);return n(e(e=>t.subscribe(e).unsubscribe,[t]),()=>a(t.get()),()=>a(t.get()))}export{D as n,C as r,j as t};
|