likec4 1.15.0 → 1.16.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/dist/__app__/src/chunks/{-index-overview-BwT9t8VB.js → -index-overview-BRH5n7M1.js} +1 -1
- package/dist/__app__/src/chunks/{main-Q7z-4OPp.js → main-DejpCNPJ.js} +126 -127
- package/dist/__app__/src/main.js +1 -1
- package/dist/__app__/src/style.css +1 -1
- package/dist/__app__/webcomponent/webcomponent.js +89 -97
- package/dist/chunks/prompt.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +56 -18
- package/dist/index.d.ts +56 -18
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.DLr42w54.mjs +1824 -0
- package/package.json +15 -14
- package/react/index.d.ts +15 -9
- package/react/index.mjs +91 -98
- package/react/style.css +1 -1
- package/dist/shared/likec4.CozyJbyo.mjs +0 -1824
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@hpcc-js/wasm-graphviz": "1.6.1",
|
|
100
100
|
"@vitejs/plugin-react-swc": "3.7.1",
|
|
101
|
-
"playwright": "1.
|
|
101
|
+
"playwright": "1.48.2",
|
|
102
102
|
"react": "^18.3.1",
|
|
103
103
|
"react-dom": "^18.3.1",
|
|
104
104
|
"type-fest": "4.26.1",
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@fontsource/ibm-plex-sans": "^5.1.0",
|
|
109
|
-
"@likec4/core": "1.
|
|
110
|
-
"@likec4/diagram": "1.
|
|
111
|
-
"@likec4/generators": "1.
|
|
112
|
-
"@likec4/icons": "1.
|
|
113
|
-
"@likec4/language-server": "1.
|
|
114
|
-
"@likec4/layouts": "1.
|
|
115
|
-
"@likec4/log": "1.
|
|
116
|
-
"@likec4/tsconfig": "1.
|
|
109
|
+
"@likec4/core": "1.16.0",
|
|
110
|
+
"@likec4/diagram": "1.16.0",
|
|
111
|
+
"@likec4/generators": "1.16.0",
|
|
112
|
+
"@likec4/icons": "1.16.0",
|
|
113
|
+
"@likec4/language-server": "1.16.0",
|
|
114
|
+
"@likec4/layouts": "1.16.0",
|
|
115
|
+
"@likec4/log": "1.16.0",
|
|
116
|
+
"@likec4/tsconfig": "1.16.0",
|
|
117
117
|
"@mantine/core": "7.13.4",
|
|
118
118
|
"@mantine/hooks": "7.13.4",
|
|
119
119
|
"@mantine/vanilla-extract": "7.13.4",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"execa": "^9.3.1",
|
|
145
145
|
"fast-equals": "^5.0.1",
|
|
146
146
|
"fdir": "^6.4.2",
|
|
147
|
-
"framer-motion": "^11.11.
|
|
147
|
+
"framer-motion": "^11.11.10",
|
|
148
148
|
"get-port": "^7.1.0",
|
|
149
149
|
"glob": "^11.0.0",
|
|
150
150
|
"html-to-image": "^1.11.11",
|
|
@@ -158,10 +158,11 @@
|
|
|
158
158
|
"postcss": "^8.4.47",
|
|
159
159
|
"postcss-preset-mantine": "^1.17.0",
|
|
160
160
|
"pretty-ms": "^9.1.0",
|
|
161
|
+
"prop-types": "^15.8.1",
|
|
161
162
|
"react-error-boundary": "^4.1.2",
|
|
162
|
-
"react-resizable-panels": "^2.1.
|
|
163
|
+
"react-resizable-panels": "^2.1.6",
|
|
163
164
|
"react-shadow": "^20.5.0",
|
|
164
|
-
"remeda": "^2.
|
|
165
|
+
"remeda": "^2.16.0",
|
|
165
166
|
"std-env": "^3.7.0",
|
|
166
167
|
"string-hash": "^1.1.3",
|
|
167
168
|
"strip-indent": "^4.0.0",
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
"unbuild": "^3.0.0-rc.11",
|
|
175
176
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
176
177
|
"vite-plugin-shadow-style": "^1.1.1",
|
|
177
|
-
"vitest": "^2.1.
|
|
178
|
+
"vitest": "^2.1.4",
|
|
178
179
|
"yargs": "17.7.2"
|
|
179
180
|
},
|
|
180
181
|
"packageManager": "yarn@4.5.1"
|
package/react/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { CSSProperties, DependencyList, HTMLAttributes, MouseEvent as ReactMouseEvent, PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { Class, LiteralUnion, OverrideProperties, PartialDeep, Tagged, TupleToUnion } from 'type-fest';
|
|
4
|
+
import { Class, LiteralUnion, NonEmptyTuple, OverrideProperties, PartialDeep, Tagged, TupleToUnion } from 'type-fest';
|
|
5
5
|
|
|
6
6
|
type NonEmptyArray<T> = [
|
|
7
7
|
T,
|
|
@@ -139,10 +139,15 @@ type OrOperator<Tag, Kind> = Omit<AllNever, "or"> & {
|
|
|
139
139
|
or: NonEmptyArray<WhereOperator<Tag, Kind>>;
|
|
140
140
|
};
|
|
141
141
|
type WhereOperator<Tag, Kind> = TagEqual<Tag> | KindEqual<Kind> | NotOperator<Tag, Kind> | AndOperator<Tag, Kind> | OrOperator<Tag, Kind>;
|
|
142
|
+
type GlobalPredicateId = Tagged<string, "GlobalPredicateId">;
|
|
143
|
+
type GlobalPredicates = NonEmptyArray<ViewRulePredicate>;
|
|
144
|
+
type GlobalDynamicPredicates = NonEmptyArray<DynamicViewIncludeRule>;
|
|
142
145
|
type GlobalStyleID = Tagged<string, "GlobalStyleID">;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
type GlobalStyles = NonEmptyTuple<ViewRuleStyle>;
|
|
147
|
+
interface ModelGlobals {
|
|
148
|
+
predicates: Record<GlobalPredicateId, GlobalPredicates>;
|
|
149
|
+
dynamicPredicates: Record<GlobalPredicateId, GlobalDynamicPredicates>;
|
|
150
|
+
styles: Record<GlobalStyleID, GlobalStyles>;
|
|
146
151
|
}
|
|
147
152
|
type ElementNotation = {
|
|
148
153
|
kinds: ElementKind[];
|
|
@@ -158,6 +163,9 @@ type ViewRulePredicate = {
|
|
|
158
163
|
include?: never;
|
|
159
164
|
exclude: Expression[];
|
|
160
165
|
};
|
|
166
|
+
interface ViewRuleGlobalPredicateRef {
|
|
167
|
+
predicateId: GlobalPredicateId;
|
|
168
|
+
}
|
|
161
169
|
interface ViewRuleStyle {
|
|
162
170
|
targets: ElementExpression[];
|
|
163
171
|
notation?: string;
|
|
@@ -183,7 +191,7 @@ interface ViewRuleGroup {
|
|
|
183
191
|
border?: BorderStyle;
|
|
184
192
|
opacity?: number;
|
|
185
193
|
}
|
|
186
|
-
type ViewRule = ViewRulePredicate | ViewRuleGroup | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
194
|
+
type ViewRule = ViewRulePredicate | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
187
195
|
interface BasicView<ViewType extends "element" | "dynamic", ViewIDs extends string, Tags extends string> {
|
|
188
196
|
readonly __?: ViewType;
|
|
189
197
|
readonly id: ViewID<ViewIDs>;
|
|
@@ -245,7 +253,7 @@ type DynamicViewStepOrParallel = DynamicViewStep | DynamicViewParallelSteps;
|
|
|
245
253
|
type DynamicViewIncludeRule = {
|
|
246
254
|
include: ElementPredicateExpression[];
|
|
247
255
|
};
|
|
248
|
-
type DynamicViewRule = DynamicViewIncludeRule | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
256
|
+
type DynamicViewRule = DynamicViewIncludeRule | ViewRuleGlobalPredicateRef | ViewRuleStyle | ViewRuleGlobalStyle | ViewRuleAutoLayout;
|
|
249
257
|
interface DynamicView<ViewIDs extends string = string, Tags extends string = string> extends BasicView<"dynamic", ViewIDs, Tags> {
|
|
250
258
|
readonly __: "dynamic";
|
|
251
259
|
readonly steps: DynamicViewStepOrParallel[];
|
|
@@ -547,9 +555,7 @@ interface ParsedLikeC4Model<ElementKinds extends string = string, RelationKinds
|
|
|
547
555
|
};
|
|
548
556
|
elements: Record<Fqns, TypedElement<Fqns, ElementKinds, Tags>>;
|
|
549
557
|
relations: Record<RelationID, Relation>;
|
|
550
|
-
globals:
|
|
551
|
-
styles: Record<GlobalStyleID, GlobalStyle>;
|
|
552
|
-
};
|
|
558
|
+
globals: ModelGlobals;
|
|
553
559
|
views: Record<Views, LikeC4View<Views, Tags>>;
|
|
554
560
|
}
|
|
555
561
|
interface ComputedLikeC4Model extends Omit<ParsedLikeC4Model, "views"> {
|