likec4 1.40.0 → 1.42.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/__app__/src/likec4.js +11785 -12231
- package/__app__/src/main.js +185 -129
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +38526 -17009
- package/__app__/src/webcomponent.js +68 -0
- package/config/package.json +2 -2
- package/config/schema.json +575 -0
- package/dist/cli/index.mjs +573 -569
- package/dist/config/index.d.mts +4 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +47 -4
- package/dist/model/index.mjs +1 -1
- package/dist/shared/likec4.B5Q51Z1F.mjs +543 -0
- package/dist/shared/likec4.BCSBNe4z.d.mts +6808 -0
- package/dist/shared/likec4.CB2-Uaub.mjs +47 -0
- package/dist/shared/likec4.CJVbsoPD.mjs +256 -0
- package/dist/shared/{likec4.DDO3vjMr.d.mts → likec4.CaOUU1HJ.d.mts} +292 -201
- package/dist/shared/likec4.DOUP9ptn.mjs +1 -0
- package/dist/shared/{likec4.C8C0fF8a.mjs → likec4.DO_7oUns.mjs} +1 -1
- package/dist/shared/likec4.DdxVkEIS.mjs +4038 -0
- package/dist/vite-plugin/index.d.mts +4 -3
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal.mjs +3 -3
- package/icons/all/package.json +4 -0
- package/model/builder/package.json +4 -0
- package/model/package.json +4 -0
- package/package.json +42 -42
- package/react/index.d.ts +6655 -0
- package/react/index.js +48628 -0
- package/react/package.json +3 -2
- package/vite-plugin/package.json +2 -2
- package/vite-plugin-modules.d.ts +5 -5
- package/__app__/src/webcomponent.tsx +0 -81
- package/dist/shared/likec4.CdNNo2L4.mjs +0 -1
- package/dist/shared/likec4.CxmGAh_J.mjs +0 -144
- package/dist/shared/likec4.DX1wM3Or.d.mts +0 -1704
- package/dist/shared/likec4.P9UC3Wd_.mjs +0 -257
- package/dist/shared/likec4.hpe1blK6.mjs +0 -4173
- package/react/index.d.mts +0 -6558
- package/react/index.mjs +0 -185
package/dist/config/index.d.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export { G as GeneratorFn,
|
|
1
|
+
export { G as GeneratorFn, g as GeneratorFnContext, h as GeneratorFnParams, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput, i as LikeC4ProjectJsonConfig, j as LikeC4StylesConfig, k as LikeC4StylesConfigInput, d as defineConfig, b as defineGenerators, c as defineStyle, e as defineTheme, f as defineThemeColor } from '../shared/likec4.BCSBNe4z.mjs';
|
|
2
|
+
import '@likec4/core';
|
|
2
3
|
import '@likec4/core/model';
|
|
3
4
|
import '@likec4/core/types';
|
|
5
|
+
import 'type-fest';
|
|
6
|
+
import '@likec4/core/styles';
|
package/dist/config/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{t as defineConfig,o as defineGenerators,r as defineStyle,i as defineTheme,n as defineThemeColor}from"../shared/likec4.B5Q51Z1F.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DiagramView } from '@likec4/core/types';
|
|
2
2
|
export * from '@likec4/core/types';
|
|
3
|
-
import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, P as ProjectsManager, b as LikeC4Views, R as Range } from './shared/likec4.
|
|
3
|
+
import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, P as ProjectsManager, b as LikeC4Views, R as Range } from './shared/likec4.CaOUU1HJ.mjs';
|
|
4
4
|
import { ProjectId, NonEmptyArray } from '@likec4/core';
|
|
5
5
|
import { LikeC4Model } from '@likec4/core/model';
|
|
6
|
+
import './shared/likec4.BCSBNe4z.mjs';
|
|
6
7
|
import 'type-fest';
|
|
7
|
-
import './shared/likec4.DX1wM3Or.mjs';
|
|
8
8
|
import '@likec4/core/utils';
|
|
9
|
+
import '@likec4/core/styles';
|
|
9
10
|
|
|
10
11
|
type Logger = {
|
|
11
12
|
info(msg: string): void;
|
|
@@ -100,7 +101,6 @@ type LikeC4Options = {
|
|
|
100
101
|
declare class LikeC4 {
|
|
101
102
|
readonly workspace: string;
|
|
102
103
|
readonly langium: LikeC4Langium;
|
|
103
|
-
private isPrintErrorEnabled;
|
|
104
104
|
static fromSource(likec4SourceCode: string, opts?: LikeC4Options): Promise<LikeC4>;
|
|
105
105
|
/**
|
|
106
106
|
* Prevents multiple instances of LikeC4 for the same workspace
|
|
@@ -129,7 +129,7 @@ declare class LikeC4 {
|
|
|
129
129
|
* Not ready for rendering, but enough to traverse
|
|
130
130
|
*/
|
|
131
131
|
computedModel(project?: ProjectId | undefined): LikeC4Model.Computed;
|
|
132
|
-
projects():
|
|
132
|
+
projects(): NonEmptyArray<ProjectId>;
|
|
133
133
|
/**
|
|
134
134
|
* Same as {@link computedModel()}, but also applies layout
|
|
135
135
|
* Ready for rendering
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LikeC4}from"./shared/likec4.
|
|
1
|
+
export{L as LikeC4}from"./shared/likec4.DdxVkEIS.mjs";
|
package/dist/model/index.d.mts
CHANGED
|
@@ -1,12 +1,55 @@
|
|
|
1
1
|
import { LikeC4Model } from '@likec4/core/model';
|
|
2
|
-
export { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, NodeModel, RelationshipModel, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, mergeConnections, modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from '@likec4/core/model';
|
|
3
|
-
import * as
|
|
2
|
+
export { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationEndpoint, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4DeploymentModel, LikeC4Model, LikeC4ViewModel, NodeModel, RelationshipModel, deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, mergeConnections, modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst } from '@likec4/core/model';
|
|
3
|
+
import * as c4 from '@likec4/core/types';
|
|
4
|
+
import { ViewId, NodeId, BBox, LayoutedDynamicView } from '@likec4/core/types';
|
|
4
5
|
export * from '@likec4/core/types';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
interface SequenceActorStepPort {
|
|
8
|
+
id: string;
|
|
9
|
+
cx: number;
|
|
10
|
+
cy: number;
|
|
11
|
+
height: number;
|
|
12
|
+
type: 'target' | 'source';
|
|
13
|
+
position: 'left' | 'right' | 'top' | 'bottom';
|
|
14
|
+
}
|
|
15
|
+
interface SequenceActor {
|
|
16
|
+
id: NodeId;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
ports: Array<SequenceActorStepPort>;
|
|
22
|
+
}
|
|
23
|
+
interface SequenceCompound {
|
|
24
|
+
id: NodeId;
|
|
25
|
+
origin: NodeId;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
depth: number;
|
|
31
|
+
}
|
|
32
|
+
interface SequenceParallelArea {
|
|
33
|
+
parallelPrefix: string;
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
}
|
|
39
|
+
interface SequenceViewLayout {
|
|
40
|
+
id: ViewId;
|
|
41
|
+
actors: Array<SequenceActor>;
|
|
42
|
+
compounds: Array<SequenceCompound>;
|
|
43
|
+
parallelAreas: Array<SequenceParallelArea>;
|
|
44
|
+
bounds: BBox;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare function calcSequenceLayout(view: LayoutedDynamicView): LayoutedDynamicView.Sequence.Layout;
|
|
48
|
+
|
|
49
|
+
type UnknownLayouted = c4.UnknownLayouted;
|
|
7
50
|
/**
|
|
8
51
|
* Used by vite plugin to generate `virtual:likec4/model`
|
|
9
52
|
*/
|
|
10
53
|
declare function createLikeC4Model(model: any): LikeC4Model<UnknownLayouted>;
|
|
11
54
|
|
|
12
|
-
export { type UnknownLayouted, createLikeC4Model };
|
|
55
|
+
export { type SequenceViewLayout, type UnknownLayouted, calcSequenceLayout, createLikeC4Model };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{LikeC4Model as o}from"@likec4/core/model";export{Connection,ConnectionModel,DeployedInstanceModel,DeploymentConnectionModel,DeploymentNodeModel,DeploymentRelationModel,EdgeModel,ElementModel,LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel,NodeModel,RelationshipModel,deploymentConnection,differenceConnections,findAscendingConnections,findDeepestNestedConnection,findDescendantConnections,hasSameSource,hasSameSourceTarget,hasSameTarget,isAnyInOut,isDeployedInstanceModel,isDeploymentElementModel,
|
|
2
|
-
isDeploymentNodeModel,isDeploymentRelationModel,isEdgeModel,isElementModel,isIncoming,isLikeC4ViewModel,isNestedConnection,isNestedElementOfDeployedInstanceModel,isNodeModel,isOutgoing,isRelationModel,mergeConnections,modelConnection,sortConnectionsByBoundaryHierarchy,sortDeepestFirst}from"@likec4/core/model";function n(e){return o.create(e)}export{n as createLikeC4Model};
|
|
2
|
+
isDeploymentNodeModel,isDeploymentRelationModel,isEdgeModel,isElementModel,isIncoming,isLikeC4ViewModel,isNestedConnection,isNestedElementOfDeployedInstanceModel,isNodeModel,isOutgoing,isRelationModel,mergeConnections,modelConnection,sortConnectionsByBoundaryHierarchy,sortDeepestFirst}from"@likec4/core/model";export{c as calcSequenceLayout}from"../shared/likec4.CB2-Uaub.mjs";function n(e){return o.create(e)}export{n as createLikeC4Model};
|