likec4 1.7.2 → 1.7.4

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/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "likec4",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
7
+ "sponsor": {
8
+ "url": "https://github.com/sponsors/davydkov"
9
+ },
7
10
  "repository": {
8
11
  "type": "git",
9
12
  "url": "https://github.com/likec4/likec4.git",
@@ -91,7 +94,7 @@
91
94
  "@nanostores/react": "0.7.2",
92
95
  "@vitejs/plugin-react": "4.3.1",
93
96
  "nanostores": "0.10.3",
94
- "playwright": "1.45.2",
97
+ "playwright": "1.46.0",
95
98
  "react": "18.3.1",
96
99
  "react-dom": "18.3.1",
97
100
  "vite": "5.3.4",
@@ -99,14 +102,14 @@
99
102
  },
100
103
  "devDependencies": {
101
104
  "@fontsource/ibm-plex-sans": "^5.0.20",
102
- "@likec4/core": "1.7.2",
103
- "@likec4/diagram": "1.7.2",
104
- "@likec4/generators": "1.7.2",
105
- "@likec4/icons": "1.7.2",
106
- "@likec4/language-server": "1.7.2",
107
- "@likec4/layouts": "1.7.2",
108
- "@likec4/log": "1.7.2",
109
- "@likec4/tsconfig": "1.7.2",
105
+ "@likec4/core": "1.7.4",
106
+ "@likec4/diagram": "1.7.4",
107
+ "@likec4/generators": "1.7.4",
108
+ "@likec4/icons": "1.7.4",
109
+ "@likec4/language-server": "1.7.4",
110
+ "@likec4/layouts": "1.7.4",
111
+ "@likec4/log": "1.7.4",
112
+ "@likec4/tsconfig": "1.7.4",
110
113
  "@mantine/core": "7.11.2",
111
114
  "@mantine/hooks": "7.11.2",
112
115
  "@mantine/vanilla-extract": "7.11.2",
@@ -115,16 +118,16 @@
115
118
  "@tanstack/react-router": "1.45.13",
116
119
  "@tanstack/router-cli": "1.45.13",
117
120
  "@tanstack/router-vite-plugin": "1.45.13",
118
- "@types/node": "^20.14.13",
121
+ "@types/node": "^20.14.14",
119
122
  "@types/prop-types": "^15.7.11",
120
123
  "@types/react": "18.3.3",
121
124
  "@types/react-dom": "18.3.0",
122
125
  "@types/string-hash": "^1.1.3",
123
- "@types/yargs": "^17.0.32",
126
+ "@types/yargs": "^17.0.33",
124
127
  "@vanilla-extract/css": "^1.15.3",
125
128
  "@vanilla-extract/dynamic": "^2.1.1",
126
129
  "@vanilla-extract/vite-plugin": "^4.0.13",
127
- "autoprefixer": "^10.4.19",
130
+ "autoprefixer": "^10.4.20",
128
131
  "ci-info": "^3.9.0",
129
132
  "classnames": "^2.3.2",
130
133
  "clsx": "^2.1.1",
@@ -133,7 +136,7 @@
133
136
  "esm-env": "^1.0.0",
134
137
  "execa": "^9.3.0",
135
138
  "fast-equals": "^5.0.1",
136
- "framer-motion": "^11.3.19",
139
+ "framer-motion": "^11.3.24",
137
140
  "get-port": "^7.1.0",
138
141
  "glob": "^11.0.0",
139
142
  "html-to-image": "^1.11.11",
@@ -141,19 +144,19 @@
141
144
  "langium": "3.1.3",
142
145
  "mkdirp": "^3.0.1",
143
146
  "npm-run-all2": "^6.2.2",
144
- "p-limit": "^6.0.0",
147
+ "p-limit": "^6.1.0",
145
148
  "package-up": "^5.0.0",
146
149
  "picocolors": "^1.0.1",
147
- "postcss": "^8.4.40",
150
+ "postcss": "^8.4.41",
148
151
  "postcss-preset-mantine": "^1.17.0",
149
152
  "pretty-ms": "^9.0.0",
150
153
  "react-error-boundary": "^4.0.13",
151
- "react-resizable-panels": "^2.0.22",
154
+ "react-resizable-panels": "^2.0.23",
152
155
  "react-shadow": "^20.5.0",
153
156
  "remeda": "^2.3.0",
154
157
  "string-hash": "^1.1.3",
155
158
  "strip-indent": "^4.0.0",
156
- "terser": "^5.31.3",
159
+ "terser": "^5.31.5",
157
160
  "tsx": "~4.9.3",
158
161
  "type-fest": "^4.21.0",
159
162
  "typescript": "^5.5.4",
@@ -1,5 +1,6 @@
1
1
  import type { DiagramView, ElementIconRenderer } from './types';
2
- export type LikeC4BrowserProps<ViewId extends string> = {
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
- export type LikeC4ViewElementProps<ViewId extends string> = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
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
@@ -6,3 +6,4 @@ export { useColorScheme, useCreateStyleSheet } from './styles';
6
6
  export type * from './LikeC4Browser';
7
7
  export type * from './LikeC4ViewElement';
8
8
  export type * from './types';
9
+ export type * from './types-filter';