likec4 1.46.4 → 1.47.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/ProjectsOverview.js +16 -0
- package/__app__/src/likec4.js +1301 -502
- package/__app__/src/main.js +249 -219
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +2690 -2349
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +3 -1
- package/dist/cli/index.mjs +339 -339
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +1 -0
- package/dist/shared/likec4.CDVXAxDx.mjs +3573 -0
- package/dist/shared/likec4.CRP-WAuw.mjs +330 -0
- package/dist/shared/likec4.CXTvqtC-.mjs +207 -0
- package/dist/shared/{likec4.6kvTI22o.d.mts → likec4.DqDU0qex.d.mts} +648 -57
- package/dist/shared/{likec4.DobqFzmV.d.mts → likec4.iedqayBZ.d.mts} +6958 -11665
- package/dist/vite-plugin/index.d.mts +3 -3
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +17 -20
- package/react/index.d.ts +41 -5
- package/react/index.js +1441 -497
- package/vite-plugin-modules.d.ts +8 -0
- package/dist/shared/likec4.BJupup6Q.mjs +0 -4211
- package/dist/shared/likec4.DASl7M77.mjs +0 -183
- package/dist/shared/likec4.DwZEQeLv.mjs +0 -272
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { L as LikeC4LanguageServices } from '../shared/likec4.
|
|
1
|
+
import { L as LikeC4LanguageServices } from '../shared/likec4.iedqayBZ.mjs';
|
|
2
2
|
import '@likec4/core';
|
|
3
|
+
import '@likec4/core/compute-view';
|
|
3
4
|
import 'type-fest';
|
|
4
|
-
import '../shared/likec4.
|
|
5
|
+
import '../shared/likec4.DqDU0qex.mjs';
|
|
5
6
|
import '@likec4/core/model';
|
|
6
7
|
import '@likec4/core/types';
|
|
7
8
|
import '@likec4/core/styles';
|
|
8
9
|
import '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.2/node_modules/@types/picomatch/index.d.ts';
|
|
9
10
|
import '@likec4/core/utils';
|
|
10
|
-
import '@cfworker/json-schema';
|
|
11
11
|
|
|
12
12
|
type LikeC4VitePluginOptions = {
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LikeC4VitePlugin}from"../shared/likec4.
|
|
1
|
+
export{L as LikeC4VitePlugin}from"../shared/likec4.CRP-WAuw.mjs";
|
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.47.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@vitejs/plugin-react": "^5.1.2",
|
|
104
104
|
"boxen": "^8.0.1",
|
|
105
105
|
"bundle-require": "^5.1.0",
|
|
106
|
-
"esbuild": "0.27.
|
|
106
|
+
"esbuild": "0.27.2",
|
|
107
107
|
"fdir": "6.4.0",
|
|
108
108
|
"playwright": "1.56.1",
|
|
109
109
|
"rollup": "^4.53.5",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@xyflow/react": "12.10.0",
|
|
114
114
|
"@xyflow/system": "0.0.74",
|
|
115
115
|
"yargs": "17.7.2",
|
|
116
|
-
"@likec4/core": "1.
|
|
116
|
+
"@likec4/core": "1.47.0"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"react": "^18.x || ^19.x",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@mantine/core": "8.3.10",
|
|
126
126
|
"@mantine/hooks": "8.3.10",
|
|
127
127
|
"@nanostores/react": "1.0.0",
|
|
128
|
-
"@pandacss/dev": "^1.7.
|
|
128
|
+
"@pandacss/dev": "^1.7.2",
|
|
129
129
|
"@react-hookz/web": "^25.2.0",
|
|
130
130
|
"@tabler/icons-react": "3.36.0",
|
|
131
131
|
"@tanstack/react-router": "^1.114.13",
|
|
@@ -138,14 +138,14 @@
|
|
|
138
138
|
"@types/semver": "^7.7.1",
|
|
139
139
|
"@types/yargs": "^17.0.33",
|
|
140
140
|
"@xstate/react": "6.0.0",
|
|
141
|
+
"@xstate/store": "3.14.0",
|
|
141
142
|
"autoprefixer": "^10.4.23",
|
|
142
143
|
"clsx": "^2.1.1",
|
|
143
144
|
"conf": "^15.0.2",
|
|
144
145
|
"defu": "^6.1.4",
|
|
145
|
-
"dts-bundle-generator": "^9.5.1",
|
|
146
146
|
"esbuild-node-externals": "1.20.1",
|
|
147
147
|
"esm-env": "^1.2.2",
|
|
148
|
-
"fast-equals": "^
|
|
148
|
+
"fast-equals": "^6.0.0",
|
|
149
149
|
"get-port": "^7.1.0",
|
|
150
150
|
"html-to-image": "1.11.11",
|
|
151
151
|
"is-inside-container": "^1.0.0",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"nano-spawn": "^2.0.0",
|
|
159
159
|
"nanostores": "1.1.0",
|
|
160
160
|
"npm-run-all2": "^8.0.4",
|
|
161
|
-
"p-limit": "
|
|
161
|
+
"p-limit": "7.2.0",
|
|
162
162
|
"picomatch": "^4.0.3",
|
|
163
163
|
"package-manager-detector": "1.6.0",
|
|
164
164
|
"package-up": "^5.0.0",
|
|
@@ -167,14 +167,14 @@
|
|
|
167
167
|
"react": "19.2.3",
|
|
168
168
|
"react-dom": "19.2.3",
|
|
169
169
|
"react-error-boundary": "^6.0.0",
|
|
170
|
-
"react-resizable-panels": "^
|
|
170
|
+
"react-resizable-panels": "^4.0.11",
|
|
171
171
|
"react-shadow": "^20.6.0",
|
|
172
172
|
"remeda": "^2.32.0",
|
|
173
173
|
"semver": "^7.7.3",
|
|
174
174
|
"strip-indent": "^4.1.1",
|
|
175
175
|
"tinyrainbow": "^2.0.0",
|
|
176
176
|
"tsx": "4.21.0",
|
|
177
|
-
"turbo": "2.
|
|
177
|
+
"turbo": "2.7.2",
|
|
178
178
|
"typescript": "5.9.3",
|
|
179
179
|
"ufo": "1.6.1",
|
|
180
180
|
"unbuild": "3.5.0",
|
|
@@ -190,16 +190,16 @@
|
|
|
190
190
|
"wireit": "0.14.12",
|
|
191
191
|
"zod": "^3.25.76",
|
|
192
192
|
"xstate": "5.24.0",
|
|
193
|
-
"@likec4/config": "1.
|
|
193
|
+
"@likec4/config": "1.47.0",
|
|
194
|
+
"@likec4/diagram": "1.47.0",
|
|
194
195
|
"@likec4/devops": "1.42.0",
|
|
195
|
-
"@likec4/
|
|
196
|
-
"@likec4/language-server": "1.46.4",
|
|
197
|
-
"@likec4/generators": "1.46.4",
|
|
196
|
+
"@likec4/generators": "1.47.0",
|
|
198
197
|
"@likec4/icons": "1.46.4",
|
|
198
|
+
"@likec4/language-server": "1.47.0",
|
|
199
|
+
"@likec4/layouts": "1.47.0",
|
|
199
200
|
"@likec4/log": "1.46.1",
|
|
200
|
-
"@likec4/
|
|
201
|
-
"@likec4/
|
|
202
|
-
"@likec4/styles": "1.46.4",
|
|
201
|
+
"@likec4/style-preset": "1.47.0",
|
|
202
|
+
"@likec4/styles": "1.47.0",
|
|
203
203
|
"@likec4/tsconfig": "1.46.1"
|
|
204
204
|
},
|
|
205
205
|
"scripts": {
|
|
@@ -216,10 +216,7 @@
|
|
|
216
216
|
"clean": "pnpm rimraf --glob lib dist app/dist dev/.export dev/dist node_modules/.vite react/*.mjs react/*.d.mts icons",
|
|
217
217
|
"start": "tsx --conditions=sources src/cli/index.ts",
|
|
218
218
|
"dev": "pnpm cli:serve dev",
|
|
219
|
-
"dev:docs
|
|
220
|
-
"dev:docs:dynamic-view": "pnpm cli:serve ../../apps/docs/src/components/dynamic-view",
|
|
221
|
-
"dev:docs:index-page": "pnpm cli:serve ../../apps/docs/src/components/index-page",
|
|
222
|
-
"dev:docs:theme": "pnpm cli:serve ../../apps/docs/src/components/likec4-theme",
|
|
219
|
+
"dev:docs": "pnpm cli:serve ../../apps/docs/src",
|
|
223
220
|
"dev:playground:deployment": "pnpm cli:serve ../../apps/playground/src/examples/deployment",
|
|
224
221
|
"dev:playground:dynamic": "pnpm cli:serve ../../apps/playground/src/examples/dynamic",
|
|
225
222
|
"dev:template": "pnpm cli:serve ../create-likec4/template",
|
package/react/index.d.ts
CHANGED
|
@@ -38,10 +38,10 @@ import { Fqn } from '@likec4/core/types';
|
|
|
38
38
|
import { Fqn as Fqn_3 } from '@likec4/core';
|
|
39
39
|
import { FunctionComponent } from 'react';
|
|
40
40
|
import { HTMLAttributes } from 'react';
|
|
41
|
-
import { HTMLMotionProps } from 'motion/react';
|
|
42
41
|
import { IconUrl } from '@likec4/core/types';
|
|
43
42
|
import { JSX } from 'react/jsx-runtime';
|
|
44
|
-
import { JsxStyleProps } from '
|
|
43
|
+
import { JsxStyleProps } from '../../styled-system/types';
|
|
44
|
+
import { LayoutedProjectsView } from '@likec4/core/compute-view';
|
|
45
45
|
import { LayoutedView } from '@likec4/core/types';
|
|
46
46
|
import { LayoutType } from '@likec4/core/types';
|
|
47
47
|
import { LikeC4Model } from '@likec4/core/model';
|
|
@@ -77,6 +77,7 @@ import { Panel } from '@xyflow/react';
|
|
|
77
77
|
import { PartialDeep } from 'type-fest';
|
|
78
78
|
import { Position } from '@xyflow/react';
|
|
79
79
|
import { ProjectId } from '@likec4/core/types';
|
|
80
|
+
import { ProjectId as ProjectId_2 } from '@likec4/core';
|
|
80
81
|
import { PropsWithChildren } from 'react';
|
|
81
82
|
import { ReactFlowInstance } from '@xyflow/react';
|
|
82
83
|
import { ReactFlowProps } from '@xyflow/react';
|
|
@@ -791,7 +792,9 @@ export declare function CompoundElementToolbar(props: Types.NodeProps<'compound-
|
|
|
791
792
|
|
|
792
793
|
export declare function CompoundNodeContainer({ nodeProps: { data: { hovered: isHovered, dimmed: isDimmed, ...data }, }, className, children, style, ...rest }: CompoundNodeContainerProps): JSX.Element;
|
|
793
794
|
|
|
794
|
-
declare type CompoundNodeContainerProps =
|
|
795
|
+
declare type CompoundNodeContainerProps = PropsWithChildren<HTMLAttributes<HTMLDivElement> & {
|
|
796
|
+
layout?: boolean | 'position' | 'size' | 'preserve-aspect';
|
|
797
|
+
layoutId?: string | undefined;
|
|
795
798
|
nodeProps: BaseNodeProps<BaseNode<RequiredData>>;
|
|
796
799
|
}>;
|
|
797
800
|
|
|
@@ -2880,7 +2883,7 @@ export declare type LikeC4ColorScheme = 'light' | 'dark';
|
|
|
2880
2883
|
*
|
|
2881
2884
|
* Use {@link ReactLikeC4} or {@link LikeC4View} for ready-to-use component
|
|
2882
2885
|
*/
|
|
2883
|
-
export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource,
|
|
2886
|
+
export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onLogoClick, onLayoutTypeChange, onInitialized, view, className, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableCompareWithLatest, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, initialWidth, initialHeight, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX.Element;
|
|
2884
2887
|
|
|
2885
2888
|
export declare interface LikeC4DiagramEventHandlers<A extends Any_2 = Unknown> {
|
|
2886
2889
|
onNavigateTo?: OnNavigateTo<A> | null | undefined;
|
|
@@ -2891,7 +2894,7 @@ export declare interface LikeC4DiagramEventHandlers<A extends Any_2 = Unknown> {
|
|
|
2891
2894
|
onEdgeContextMenu?: OnEdgeClick<A> | null | undefined;
|
|
2892
2895
|
onCanvasClick?: OnCanvasClick | null | undefined;
|
|
2893
2896
|
onCanvasDblClick?: OnCanvasClick | null | undefined;
|
|
2894
|
-
|
|
2897
|
+
onLogoClick?: null | undefined | (() => void);
|
|
2895
2898
|
onOpenSource?: OnOpenSource<A> | null | undefined;
|
|
2896
2899
|
onInitialized?: OnInitialized | null | undefined;
|
|
2897
2900
|
/**
|
|
@@ -3097,6 +3100,13 @@ declare type LikeC4ProjectsContext = {
|
|
|
3097
3100
|
|
|
3098
3101
|
declare const LikeC4ProjectsContext: Context_4<LikeC4ProjectsContext | null>;
|
|
3099
3102
|
|
|
3103
|
+
export declare function LikeC4ProjectsOverview({ view, className, onNavigateToProject, ...props }: LikeC4ProjectsOverviewProps): JSX.Element;
|
|
3104
|
+
|
|
3105
|
+
export declare type LikeC4ProjectsOverviewProps = Simplify<Omit<ProjectsOverviewProps, 'id'> & {
|
|
3106
|
+
className?: string;
|
|
3107
|
+
onSelectProject?: ProjectsOverviewProps['onNavigateToProject'];
|
|
3108
|
+
}>;
|
|
3109
|
+
|
|
3100
3110
|
/**
|
|
3101
3111
|
* Ensures LikeC4Projects context
|
|
3102
3112
|
*/
|
|
@@ -3719,6 +3729,27 @@ export declare function pickViewBounds(view: LayoutedView, dynamicVariant?: Dyna
|
|
|
3719
3729
|
*/
|
|
3720
3730
|
export declare function PortalToContainer({ children }: PropsWithChildren): JSX.Element;
|
|
3721
3731
|
|
|
3732
|
+
declare type ProjectsOverviewProps = {
|
|
3733
|
+
view: LayoutedProjectsView;
|
|
3734
|
+
/**
|
|
3735
|
+
* Callback when project is selected (e.g. clicked)
|
|
3736
|
+
*/
|
|
3737
|
+
onNavigateToProject?: undefined | ((projectId: ProjectId_2) => void);
|
|
3738
|
+
fitViewPadding?: ViewPadding | undefined;
|
|
3739
|
+
} & ProjectsOverviewXYProps;
|
|
3740
|
+
|
|
3741
|
+
declare type ProjectsOverviewXYProps = {
|
|
3742
|
+
/**
|
|
3743
|
+
* Background pattern
|
|
3744
|
+
* @default 'dots'
|
|
3745
|
+
*/
|
|
3746
|
+
background?: 'dots' | 'lines' | 'cross' | 'transparent' | 'solid' | undefined;
|
|
3747
|
+
/**
|
|
3748
|
+
* @default - determined by the user's system preferences.
|
|
3749
|
+
*/
|
|
3750
|
+
colorScheme?: 'light' | 'dark' | undefined;
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3722
3753
|
declare type PromiseActorLogic<TOutput, TInput = unknown, TEmitted extends EventObject = EventObject> = ActorLogic<PromiseSnapshot<TOutput, TInput>, {
|
|
3723
3754
|
type: string;
|
|
3724
3755
|
[k: string]: unknown;
|
|
@@ -4739,6 +4770,11 @@ declare type UnknownLayouted_2 = t.aux.UnknownLayouted;
|
|
|
4739
4770
|
|
|
4740
4771
|
declare type UnknownReferencedGuard = Guard<MachineContext, EventObject, ParameterizedObject['params'], ParameterizedObject>;
|
|
4741
4772
|
|
|
4773
|
+
/**
|
|
4774
|
+
* @returns The callback to change current project.
|
|
4775
|
+
*/
|
|
4776
|
+
export declare function useChangeLikeC4Project(): (id: ProjectId) => void;
|
|
4777
|
+
|
|
4742
4778
|
/**
|
|
4743
4779
|
* Returns current view
|
|
4744
4780
|
* Should be used only inside LikeC4Diagram
|