likec4 1.7.1 → 1.7.3
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__/index.html +1 -0
- package/dist/__app__/react/likec4.tsx +13 -4
- package/dist/__app__/src/chunks/{index-CsouX5P7.js → index-CIsxIzOH.js} +17 -4
- package/dist/__app__/src/chunks/{likec4-5Tyb70uB.js → likec4-DA506XqP.js} +13 -10
- package/dist/__app__/src/chunks/{mantine-l9Camp3k.js → mantine-B6zTvdIg.js} +570 -425
- package/dist/__app__/src/chunks/{tanstack-router-BgNzIYOs.js → tanstack-router-C3bHLsEH.js} +71 -25
- package/dist/__app__/src/main.js +2977 -2442
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/tsconfig.tsbuildinfo +1 -1
- package/dist/__app__/webcomponent/webcomponent.js +15097 -14519
- package/dist/cli/index.mjs +239 -348
- package/package.json +18 -18
- package/react/LikeC4Browser.d.ts +4 -2
- package/react/LikeC4ViewElement.d.ts +4 -2
- package/react/index.d.ts +1 -0
- package/react/index.mjs +14147 -13599
- package/react/types-filter.d.ts +33 -0
- package/react/types.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@nanostores/react": "0.7.2",
|
|
92
92
|
"@vitejs/plugin-react": "4.3.1",
|
|
93
93
|
"nanostores": "0.10.3",
|
|
94
|
-
"playwright": "1.
|
|
94
|
+
"playwright": "1.46.0",
|
|
95
95
|
"react": "18.3.1",
|
|
96
96
|
"react-dom": "18.3.1",
|
|
97
97
|
"vite": "5.3.4",
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@fontsource/ibm-plex-sans": "^5.0.20",
|
|
102
|
-
"@likec4/core": "1.7.
|
|
103
|
-
"@likec4/diagram": "1.7.
|
|
104
|
-
"@likec4/generators": "1.7.
|
|
105
|
-
"@likec4/icons": "1.7.
|
|
106
|
-
"@likec4/language-server": "1.7.
|
|
107
|
-
"@likec4/layouts": "1.7.
|
|
108
|
-
"@likec4/log": "1.7.
|
|
109
|
-
"@likec4/tsconfig": "1.7.
|
|
102
|
+
"@likec4/core": "1.7.3",
|
|
103
|
+
"@likec4/diagram": "1.7.3",
|
|
104
|
+
"@likec4/generators": "1.7.3",
|
|
105
|
+
"@likec4/icons": "1.7.3",
|
|
106
|
+
"@likec4/language-server": "1.7.3",
|
|
107
|
+
"@likec4/layouts": "1.7.3",
|
|
108
|
+
"@likec4/log": "1.7.3",
|
|
109
|
+
"@likec4/tsconfig": "1.7.3",
|
|
110
110
|
"@mantine/core": "7.11.2",
|
|
111
111
|
"@mantine/hooks": "7.11.2",
|
|
112
112
|
"@mantine/vanilla-extract": "7.11.2",
|
|
@@ -115,16 +115,16 @@
|
|
|
115
115
|
"@tanstack/react-router": "1.45.13",
|
|
116
116
|
"@tanstack/router-cli": "1.45.13",
|
|
117
117
|
"@tanstack/router-vite-plugin": "1.45.13",
|
|
118
|
-
"@types/node": "^20.14.
|
|
118
|
+
"@types/node": "^20.14.14",
|
|
119
119
|
"@types/prop-types": "^15.7.11",
|
|
120
120
|
"@types/react": "18.3.3",
|
|
121
121
|
"@types/react-dom": "18.3.0",
|
|
122
122
|
"@types/string-hash": "^1.1.3",
|
|
123
|
-
"@types/yargs": "^17.0.
|
|
123
|
+
"@types/yargs": "^17.0.33",
|
|
124
124
|
"@vanilla-extract/css": "^1.15.3",
|
|
125
125
|
"@vanilla-extract/dynamic": "^2.1.1",
|
|
126
126
|
"@vanilla-extract/vite-plugin": "^4.0.13",
|
|
127
|
-
"autoprefixer": "^10.4.
|
|
127
|
+
"autoprefixer": "^10.4.20",
|
|
128
128
|
"ci-info": "^3.9.0",
|
|
129
129
|
"classnames": "^2.3.2",
|
|
130
130
|
"clsx": "^2.1.1",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"esm-env": "^1.0.0",
|
|
134
134
|
"execa": "^9.3.0",
|
|
135
135
|
"fast-equals": "^5.0.1",
|
|
136
|
-
"framer-motion": "^11.3.
|
|
136
|
+
"framer-motion": "^11.3.24",
|
|
137
137
|
"get-port": "^7.1.0",
|
|
138
138
|
"glob": "^11.0.0",
|
|
139
139
|
"html-to-image": "^1.11.11",
|
|
@@ -141,19 +141,19 @@
|
|
|
141
141
|
"langium": "3.1.3",
|
|
142
142
|
"mkdirp": "^3.0.1",
|
|
143
143
|
"npm-run-all2": "^6.2.2",
|
|
144
|
-
"p-limit": "^6.
|
|
144
|
+
"p-limit": "^6.1.0",
|
|
145
145
|
"package-up": "^5.0.0",
|
|
146
146
|
"picocolors": "^1.0.1",
|
|
147
|
-
"postcss": "^8.4.
|
|
147
|
+
"postcss": "^8.4.41",
|
|
148
148
|
"postcss-preset-mantine": "^1.17.0",
|
|
149
149
|
"pretty-ms": "^9.0.0",
|
|
150
150
|
"react-error-boundary": "^4.0.13",
|
|
151
|
-
"react-resizable-panels": "^2.0.
|
|
151
|
+
"react-resizable-panels": "^2.0.23",
|
|
152
152
|
"react-shadow": "^20.5.0",
|
|
153
153
|
"remeda": "^2.3.0",
|
|
154
154
|
"string-hash": "^1.1.3",
|
|
155
155
|
"strip-indent": "^4.0.0",
|
|
156
|
-
"terser": "^5.31.
|
|
156
|
+
"terser": "^5.31.5",
|
|
157
157
|
"tsx": "~4.9.3",
|
|
158
158
|
"type-fest": "^4.21.0",
|
|
159
159
|
"typescript": "^5.5.4",
|
package/react/LikeC4Browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DiagramView, ElementIconRenderer } from './types';
|
|
2
|
-
|
|
2
|
+
import type { WhereOperator } from './types-filter';
|
|
3
|
+
export type LikeC4BrowserProps<ViewId extends string, Tag extends string, Kind extends string> = {
|
|
3
4
|
view: DiagramView<ViewId>;
|
|
4
5
|
/**
|
|
5
6
|
* By default determined by the user's system preferences.
|
|
@@ -25,5 +26,6 @@ export type LikeC4BrowserProps<ViewId extends string> = {
|
|
|
25
26
|
* By default, if icon is http:// or https://, it will be rendered as an image
|
|
26
27
|
*/
|
|
27
28
|
renderIcon?: ElementIconRenderer | undefined;
|
|
29
|
+
where?: WhereOperator<Tag, Kind> | undefined;
|
|
28
30
|
};
|
|
29
|
-
export declare function LikeC4Browser<ViewId extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, renderIcon, background }: LikeC4BrowserProps<ViewId>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function LikeC4Browser<ViewId extends string, Tag extends string, Kind extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, renderIcon, where, background }: LikeC4BrowserProps<ViewId, Tag, Kind>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { DiagramView, ElementIconRenderer } from './types';
|
|
3
|
-
|
|
3
|
+
import type { WhereOperator } from './types-filter';
|
|
4
|
+
export type LikeC4ViewElementProps<ViewId extends string, Tag extends string, Kind extends string> = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
4
5
|
view: DiagramView<ViewId>;
|
|
5
6
|
/**
|
|
6
7
|
* By default determined by the user's system preferences.
|
|
@@ -27,5 +28,6 @@ export type LikeC4ViewElementProps<ViewId extends string> = Omit<HTMLAttributes<
|
|
|
27
28
|
renderIcon?: ElementIconRenderer | undefined;
|
|
28
29
|
showElementLinks?: boolean | undefined;
|
|
29
30
|
enableFocusMode?: boolean | undefined;
|
|
31
|
+
where?: WhereOperator<Tag, Kind> | undefined;
|
|
30
32
|
};
|
|
31
|
-
export declare function LikeC4ViewElement<ViewId extends string>({ onNavigateTo: _onNavigateTo, className, view, injectFontCss, colorScheme, background, renderIcon, showElementLinks, enableFocusMode, ...props }: LikeC4ViewElementProps<ViewId>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function LikeC4ViewElement<ViewId extends string, Tag extends string, Kind extends string>({ onNavigateTo: _onNavigateTo, className, view, injectFontCss, colorScheme, background, renderIcon, showElementLinks, enableFocusMode, where, ...props }: LikeC4ViewElementProps<ViewId, Tag, Kind>): import("react/jsx-runtime").JSX.Element;
|
package/react/index.d.ts
CHANGED