likec4 1.1.1 → 1.2.1-next
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/dist/__app__/src/lib/webcomponent.mjs +9898 -9139
- package/dist/__app__/src/{main-DvKdwZif.js → main-yVRq2dIl.js} +13107 -13927
- package/dist/__app__/src/main.js +1 -1
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/src/{view._viewId.d2.lazy-BeClYUla.js → view._viewId.d2.lazy-CaQPy48H.js} +2 -2
- package/dist/__app__/src/{view._viewId.dot.lazy-BpPRcji5.js → view._viewId.dot.lazy-6H3L1GpV.js} +2 -2
- package/dist/__app__/src/{view._viewId.mmd.lazy-DUPqzS9E.js → view._viewId.mmd.lazy-By6xPESQ.js} +2 -2
- package/dist/__app__/src/{view._viewId.react-legacy.lazy-B2RpQXJ8.js → view._viewId.react-legacy.lazy-Cxs6F284.js} +920 -1299
- package/dist/__app__/src/{view_viewId_.css-CDnAWAE5.js → view_viewId_.css-LQsQcFpp.js} +5 -9
- package/dist/cli/index.mjs +283 -283
- package/package.json +35 -31
- package/react/LikeC4Browser.d.ts +1 -4
- package/react/LikeC4ViewElement.d.ts +1 -4
- package/react/ShadowRoot.d.ts +1 -1
- package/react/index.mjs +24963 -23735
- package/react/styles.d.ts +1 -0
- package/react/types.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1-next",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -51,11 +51,15 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build
|
|
54
|
+
"turbo-build": "run -T turbo run build --filter='likec4' --log-prefix=none --log-order=grouped",
|
|
55
55
|
"typecheck:app": "tsc --noEmit -p ./app/tsconfig.json",
|
|
56
56
|
"typecheck:cli": "tsc --noEmit -p ./tsconfig.json",
|
|
57
57
|
"typecheck": "run 'typecheck:cli' && run 'typecheck:app'",
|
|
58
|
-
"build": "tsx scripts/build.ts",
|
|
58
|
+
"build:cli": "tsx scripts/build-cli.ts",
|
|
59
|
+
"build:app": "tsx scripts/bundle-app.ts",
|
|
60
|
+
"build:react": "tsx scripts/bundle-react.ts",
|
|
61
|
+
"build:webcomponent": "tsx scripts/bundle-webcomponent.ts",
|
|
62
|
+
"build": "run-p --print-label 'build:*'",
|
|
59
63
|
"prepack": "tsx scripts/prepack.ts",
|
|
60
64
|
"postpack": "tsx scripts/postpack.ts",
|
|
61
65
|
"lint": "run -T eslint src/ --fix",
|
|
@@ -77,11 +81,11 @@
|
|
|
77
81
|
},
|
|
78
82
|
"dependencies": {
|
|
79
83
|
"@hpcc-js/wasm": "^2.16.2",
|
|
80
|
-
"@vitejs/plugin-react": "^4.
|
|
84
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
81
85
|
"esm-env": "^1.0.0",
|
|
82
86
|
"nanostores": "^0.10.3",
|
|
83
87
|
"playwright": "1.44.0",
|
|
84
|
-
"vite": "
|
|
88
|
+
"vite": "5.3.0"
|
|
85
89
|
},
|
|
86
90
|
"peerDependencies": {
|
|
87
91
|
"react": "^18.3.1",
|
|
@@ -97,38 +101,37 @@
|
|
|
97
101
|
},
|
|
98
102
|
"devDependencies": {
|
|
99
103
|
"@fontsource/ibm-plex-sans": "^5.0.19",
|
|
100
|
-
"@likec4/core": "1.
|
|
101
|
-
"@likec4/diagram": "1.
|
|
102
|
-
"@likec4/diagrams": "1.
|
|
103
|
-
"@likec4/generators": "1.
|
|
104
|
-
"@likec4/language-server": "1.
|
|
105
|
-
"@likec4/layouts": "1.
|
|
106
|
-
"@
|
|
107
|
-
"@mantine/
|
|
104
|
+
"@likec4/core": "1.2.0",
|
|
105
|
+
"@likec4/diagram": "1.2.0",
|
|
106
|
+
"@likec4/diagrams": "1.2.0",
|
|
107
|
+
"@likec4/generators": "1.2.0",
|
|
108
|
+
"@likec4/language-server": "1.2.0",
|
|
109
|
+
"@likec4/layouts": "1.2.0",
|
|
110
|
+
"@likec4/tsconfig": "0.0.0",
|
|
111
|
+
"@mantine/core": "^7.10.1",
|
|
112
|
+
"@mantine/hooks": "^7.10.1",
|
|
113
|
+
"@mantine/vanilla-extract": "^7.10.1",
|
|
108
114
|
"@nanostores/react": "^0.7.2",
|
|
109
|
-
"@radix-ui/react-icons": "^1.3.0",
|
|
110
|
-
"@radix-ui/themes": "^2.0.3",
|
|
111
115
|
"@react-hookz/web": "^24.0.4",
|
|
112
|
-
"@tabler/icons": "^
|
|
113
|
-
"@tabler/icons-react": "^2.47.0",
|
|
116
|
+
"@tabler/icons-react": "^3.0.0",
|
|
114
117
|
"@tanstack/react-router": "^1.31.19",
|
|
115
118
|
"@tanstack/router-vite-plugin": "^1.31.18",
|
|
116
119
|
"@types/mermaid": "^9.2.0",
|
|
117
|
-
"@types/node": "^20.
|
|
120
|
+
"@types/node": "^20.14.2",
|
|
118
121
|
"@types/prop-types": "^15.7.11",
|
|
119
|
-
"@types/react": "18.
|
|
120
|
-
"@types/react-dom": "18.
|
|
122
|
+
"@types/react": "18.3.3",
|
|
123
|
+
"@types/react-dom": "18.3.0",
|
|
121
124
|
"@types/string-hash": "^1",
|
|
122
125
|
"@types/yargs": "^17.0.32",
|
|
123
|
-
"@vanilla-extract/css": "^1.15.
|
|
124
|
-
"@vanilla-extract/dynamic": "^2.1.
|
|
125
|
-
"@vanilla-extract/vite-plugin": "^4.0.
|
|
126
|
+
"@vanilla-extract/css": "^1.15.2",
|
|
127
|
+
"@vanilla-extract/dynamic": "^2.1.1",
|
|
128
|
+
"@vanilla-extract/vite-plugin": "^4.0.10",
|
|
126
129
|
"ci-info": "^3.9.0",
|
|
127
130
|
"classnames": "^2.3.2",
|
|
128
131
|
"clsx": "^2.1.1",
|
|
129
132
|
"consola": "^3.2.3",
|
|
130
|
-
"esbuild": "^0.21.
|
|
131
|
-
"esbuild-node-externals": "^1.13.
|
|
133
|
+
"esbuild": "^0.21.5",
|
|
134
|
+
"esbuild-node-externals": "^1.13.1",
|
|
132
135
|
"execa": "^9.1.0",
|
|
133
136
|
"fast-equals": "^5.0.1",
|
|
134
137
|
"framer-motion": "^11.2.2",
|
|
@@ -136,16 +139,17 @@
|
|
|
136
139
|
"html-to-image": "^1.11.11",
|
|
137
140
|
"json5": "^2.2.3",
|
|
138
141
|
"mkdirp": "^3.0.1",
|
|
139
|
-
"
|
|
142
|
+
"npm-run-all2": "^6.1.2",
|
|
143
|
+
"ora": "^8.0.1",
|
|
144
|
+
"p-limit": "^5.0.0",
|
|
140
145
|
"picocolors": "^1.0.0",
|
|
141
146
|
"pkg-up": "^5.0.0",
|
|
142
147
|
"postcss": "^8.4.38",
|
|
143
148
|
"postcss-preset-mantine": "^1.15.0",
|
|
144
149
|
"pretty-ms": "^9.0.0",
|
|
145
150
|
"prop-types": "^15.8.1",
|
|
146
|
-
"react": "^18.
|
|
147
|
-
"react-
|
|
148
|
-
"react-dom": "^18.2.0",
|
|
151
|
+
"react": "^18.3.1",
|
|
152
|
+
"react-dom": "^18.3.1",
|
|
149
153
|
"react-error-boundary": "^4.0.13",
|
|
150
154
|
"react-resizable-panels": "^2.0.19",
|
|
151
155
|
"react-shadow": "^20.4.0",
|
|
@@ -159,8 +163,8 @@
|
|
|
159
163
|
"ufo": "^1.5.3",
|
|
160
164
|
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
161
165
|
"vite-plugin-shadow-style": "^1.1.0",
|
|
162
|
-
"vitest": "~1.5.
|
|
166
|
+
"vitest": "~1.5.3",
|
|
163
167
|
"yargs": "^17.7.2"
|
|
164
168
|
},
|
|
165
|
-
"packageManager": "yarn@4.
|
|
169
|
+
"packageManager": "yarn@4.3.0"
|
|
166
170
|
}
|
package/react/LikeC4Browser.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '@mantine/core/styles.css';
|
|
3
|
-
import '@xyflow/react/dist/style.css';
|
|
4
1
|
import type { DiagramView, LikeC4ViewBaseProps } from './types';
|
|
5
2
|
export type LikeC4BrowserProps<ViewId extends string> = Omit<LikeC4ViewBaseProps<ViewId>, 'viewId' | 'interactive'> & {
|
|
6
3
|
view: DiagramView<ViewId>;
|
|
7
4
|
onNavigateTo: (to: ViewId) => void;
|
|
8
5
|
onClose: () => void;
|
|
9
6
|
};
|
|
10
|
-
export declare function LikeC4Browser<ViewId extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, overlay, background, ...props }: LikeC4BrowserProps<ViewId>): JSX.Element;
|
|
7
|
+
export declare function LikeC4Browser<ViewId extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, overlay, background, ...props }: LikeC4BrowserProps<ViewId>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import '@mantine/core/styles.css';
|
|
3
|
-
import '@xyflow/react/dist/style.css';
|
|
4
1
|
import type { DiagramView, LikeC4ViewBaseProps } from './types';
|
|
5
2
|
export type LikeC4ViewElementProps<ViewId extends string> = Omit<LikeC4ViewBaseProps<ViewId>, 'viewId' | 'interactive' | 'overlay'> & {
|
|
6
3
|
view: DiagramView<ViewId>;
|
|
7
4
|
onNavigateTo?: ((to: ViewId) => void) | undefined;
|
|
8
5
|
};
|
|
9
|
-
export declare function LikeC4ViewElement<ViewId extends string>({ onNavigateTo, view, injectFontCss, colorScheme, background, ...props }: LikeC4ViewElementProps<ViewId>): JSX.Element;
|
|
6
|
+
export declare function LikeC4ViewElement<ViewId extends string>({ onNavigateTo, view, injectFontCss, colorScheme, background, ...props }: LikeC4ViewElementProps<ViewId>): import("react/jsx-runtime").JSX.Element;
|
package/react/ShadowRoot.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ type ShadowRootProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
4
4
|
injectFontCss?: boolean | undefined;
|
|
5
5
|
colorScheme?: 'light' | 'dark' | undefined;
|
|
6
6
|
};
|
|
7
|
-
export declare function ShadowRoot({ children, rootClassName, colorScheme, injectFontCss, ...props }: ShadowRootProps): JSX.Element;
|
|
7
|
+
export declare function ShadowRoot({ children, rootClassName, colorScheme, injectFontCss, ...props }: ShadowRootProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|