likec4 1.2.2 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "likec4",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -63,8 +63,6 @@
63
63
  "prepack": "tsx scripts/prepack.ts",
64
64
  "postpack": "tsx scripts/postpack.ts",
65
65
  "lint": "run -T eslint src/ --fix",
66
- "test": "run -T vitest run",
67
- "test:watch": "run -T vitest",
68
66
  "clean": "run -T rimraf dist app/dist dev/.export dev/dist node_modules/.vite",
69
67
  "dev": "tsx watch src/cli/index.ts serve dev",
70
68
  "dev:bigbank": "tsx watch src/cli/index.ts serve ../../docs/likec4/bigbank",
@@ -84,8 +82,8 @@
84
82
  "@vitejs/plugin-react": "4.3.1",
85
83
  "esm-env": "1.0.0",
86
84
  "nanostores": "0.10.3",
87
- "playwright": "1.44.1",
88
- "vite": "5.3.0"
85
+ "playwright": "1.45.0",
86
+ "vite": "5.3.2"
89
87
  },
90
88
  "peerDependencies": {
91
89
  "react": "^18.3.1",
@@ -100,32 +98,31 @@
100
98
  }
101
99
  },
102
100
  "devDependencies": {
103
- "@fontsource/ibm-plex-sans": "^5.0.19",
104
- "@likec4/core": "1.2.2",
105
- "@likec4/diagram": "1.2.2",
106
- "@likec4/diagrams": "1.2.2",
107
- "@likec4/generators": "1.2.2",
108
- "@likec4/language-server": "1.2.2",
109
- "@likec4/layouts": "1.2.2",
110
- "@likec4/tsconfig": "1.2.2",
111
- "@mantine/core": "^7.10.1",
112
- "@mantine/hooks": "^7.10.1",
113
- "@mantine/vanilla-extract": "^7.10.1",
101
+ "@fontsource/ibm-plex-sans": "^5.0.20",
102
+ "@likec4/core": "1.4.0",
103
+ "@likec4/diagram": "1.4.0",
104
+ "@likec4/generators": "1.4.0",
105
+ "@likec4/language-server": "1.4.0",
106
+ "@likec4/layouts": "1.4.0",
107
+ "@likec4/tsconfig": "1.4.0",
108
+ "@mantine/core": "7.10.2",
109
+ "@mantine/hooks": "7.10.2",
110
+ "@mantine/vanilla-extract": "7.10.2",
114
111
  "@nanostores/react": "^0.7.2",
115
112
  "@react-hookz/web": "^24.0.4",
116
- "@tabler/icons-react": "^3.0.0",
117
- "@tanstack/react-router": "^1.36.3",
118
- "@tanstack/router-vite-plugin": "^1.37.0",
113
+ "@tabler/icons-react": "^3.7.0",
114
+ "@tanstack/react-router": "^1.40.0",
115
+ "@tanstack/router-vite-plugin": "^1.40.3",
119
116
  "@types/mermaid": "^9.2.0",
120
117
  "@types/node": "^20.14.2",
121
118
  "@types/prop-types": "^15.7.11",
122
119
  "@types/react": "18.3.3",
123
120
  "@types/react-dom": "18.3.0",
124
- "@types/string-hash": "^1",
121
+ "@types/string-hash": "^1.1.3",
125
122
  "@types/yargs": "^17.0.32",
126
- "@vanilla-extract/css": "^1.15.2",
123
+ "@vanilla-extract/css": "^1.15.3",
127
124
  "@vanilla-extract/dynamic": "^2.1.1",
128
- "@vanilla-extract/vite-plugin": "^4.0.10",
125
+ "@vanilla-extract/vite-plugin": "^4.0.12",
129
126
  "ci-info": "^3.9.0",
130
127
  "classnames": "^2.3.2",
131
128
  "clsx": "^2.1.1",
@@ -134,10 +131,11 @@
134
131
  "esbuild-node-externals": "^1.13.1",
135
132
  "execa": "^9.1.0",
136
133
  "fast-equals": "^5.0.1",
137
- "framer-motion": "^11.2.2",
134
+ "framer-motion": "^11.2.12",
138
135
  "get-port": "^7.1.0",
139
136
  "html-to-image": "^1.11.11",
140
137
  "json5": "^2.2.3",
138
+ "langium": "3.1.0",
141
139
  "mkdirp": "^3.0.1",
142
140
  "npm-run-all2": "^6.1.2",
143
141
  "p-limit": "^5.0.0",
@@ -151,7 +149,7 @@
151
149
  "react-dom": "^18.3.1",
152
150
  "react-error-boundary": "^4.0.13",
153
151
  "react-resizable-panels": "^2.0.19",
154
- "react-shadow": "^20.4.0",
152
+ "react-shadow": "^20.5.0",
155
153
  "remeda": "^1.61.0",
156
154
  "string-hash": "^1.1.3",
157
155
  "strip-indent": "^4.0.0",
@@ -1,5 +1,4 @@
1
1
  export declare const modalContent: string;
2
2
  export declare const modalBody: string;
3
3
  export declare const cssDiagram: string;
4
- export declare const modalCloseButton: string;
5
- export declare const historyButtons: string;
4
+ export declare const closeButton: string;
@@ -4,4 +4,4 @@ export type LikeC4BrowserProps<ViewId extends string> = Omit<LikeC4ViewBaseProps
4
4
  onNavigateTo: (to: ViewId) => void;
5
5
  onClose: () => void;
6
6
  };
7
- export declare function LikeC4Browser<ViewId extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, overlay, background, ...props }: LikeC4BrowserProps<ViewId>): import("react/jsx-runtime").JSX.Element;
7
+ export declare function LikeC4Browser<ViewId extends string>({ colorScheme, view, injectFontCss, onNavigateTo, onClose, background }: LikeC4BrowserProps<ViewId>): import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ export type LikeC4ViewElementProps<ViewId extends string> = Omit<LikeC4ViewBaseP
3
3
  view: DiagramView<ViewId>;
4
4
  onNavigateTo?: ((to: ViewId) => void) | undefined;
5
5
  };
6
- export declare function LikeC4ViewElement<ViewId extends string>({ onNavigateTo, view, injectFontCss, colorScheme, background, ...props }: LikeC4ViewElementProps<ViewId>): import("react/jsx-runtime").JSX.Element;
6
+ export declare function LikeC4ViewElement<ViewId extends string>({ onNavigateTo, className, view, injectFontCss, colorScheme, background, ...props }: LikeC4ViewElementProps<ViewId>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,6 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  type ShadowRootProps = HTMLAttributes<HTMLDivElement> & {
3
- rootClassName?: string;
4
3
  injectFontCss?: boolean | undefined;
5
- colorScheme?: 'light' | 'dark' | undefined;
6
4
  };
7
- export declare function ShadowRoot({ children, rootClassName, colorScheme, injectFontCss, ...props }: ShadowRootProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ShadowRoot({ children, injectFontCss, ...props }: ShadowRootProps): import("react/jsx-runtime").JSX.Element;
8
6
  export {};
@@ -0,0 +1,7 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ type ShadowRootMantineProps = PropsWithChildren<{
3
+ className?: string | undefined;
4
+ colorScheme?: 'light' | 'dark' | undefined;
5
+ }>;
6
+ export declare function ShadowRootMantineProvider({ children, className, colorScheme }: ShadowRootMantineProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};