likec4 1.3.0 → 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.3.0",
3
+ "version": "1.4.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -82,8 +82,8 @@
82
82
  "@vitejs/plugin-react": "4.3.1",
83
83
  "esm-env": "1.0.0",
84
84
  "nanostores": "0.10.3",
85
- "playwright": "1.44.1",
86
- "vite": "5.3.1"
85
+ "playwright": "1.45.0",
86
+ "vite": "5.3.2"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "react": "^18.3.1",
@@ -99,20 +99,20 @@
99
99
  },
100
100
  "devDependencies": {
101
101
  "@fontsource/ibm-plex-sans": "^5.0.20",
102
- "@likec4/core": "1.3.0",
103
- "@likec4/diagram": "1.3.0",
104
- "@likec4/generators": "1.3.0",
105
- "@likec4/language-server": "1.3.0",
106
- "@likec4/layouts": "1.3.0",
107
- "@likec4/tsconfig": "1.3.0",
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
108
  "@mantine/core": "7.10.2",
109
109
  "@mantine/hooks": "7.10.2",
110
110
  "@mantine/vanilla-extract": "7.10.2",
111
111
  "@nanostores/react": "^0.7.2",
112
112
  "@react-hookz/web": "^24.0.4",
113
- "@tabler/icons-react": "^3.0.0",
114
- "@tanstack/react-router": "^1.36.3",
115
- "@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",
116
116
  "@types/mermaid": "^9.2.0",
117
117
  "@types/node": "^20.14.2",
118
118
  "@types/prop-types": "^15.7.11",
@@ -122,7 +122,7 @@
122
122
  "@types/yargs": "^17.0.32",
123
123
  "@vanilla-extract/css": "^1.15.3",
124
124
  "@vanilla-extract/dynamic": "^2.1.1",
125
- "@vanilla-extract/vite-plugin": "^4.0.11",
125
+ "@vanilla-extract/vite-plugin": "^4.0.12",
126
126
  "ci-info": "^3.9.0",
127
127
  "classnames": "^2.3.2",
128
128
  "clsx": "^2.1.1",
@@ -131,7 +131,7 @@
131
131
  "esbuild-node-externals": "^1.13.1",
132
132
  "execa": "^9.1.0",
133
133
  "fast-equals": "^5.0.1",
134
- "framer-motion": "^11.2.2",
134
+ "framer-motion": "^11.2.12",
135
135
  "get-port": "^7.1.0",
136
136
  "html-to-image": "^1.11.11",
137
137
  "json5": "^2.2.3",
@@ -149,7 +149,7 @@
149
149
  "react-dom": "^18.3.1",
150
150
  "react-error-boundary": "^4.0.13",
151
151
  "react-resizable-panels": "^2.0.19",
152
- "react-shadow": "^20.4.0",
152
+ "react-shadow": "^20.5.0",
153
153
  "remeda": "^1.61.0",
154
154
  "string-hash": "^1.1.3",
155
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 {};