likec4 1.46.4 → 1.47.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.
@@ -1,4 +1,4 @@
1
- export { G as GeneratorFn, g as GeneratorFnContext, h as GeneratorFnParams, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput, l as LikeC4ProjectJsonConfig, m as LikeC4StylesConfig, n as LikeC4StylesConfigInput, d as defineConfig, b as defineGenerators, c as defineStyle, e as defineTheme, f as defineThemeColor, i as isLikeC4Config, j as isLikeC4JsonConfig, k as isLikeC4NonJsonConfig } from '../shared/likec4.6kvTI22o.mjs';
1
+ export { G as GeneratorFn, g as GeneratorFnContext, h as GeneratorFnParams, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput, l as LikeC4ProjectJsonConfig, m as LikeC4StylesConfig, n as LikeC4StylesConfigInput, d as defineConfig, b as defineGenerators, c as defineStyle, e as defineTheme, f as defineThemeColor, i as isLikeC4Config, j as isLikeC4JsonConfig, k as isLikeC4NonJsonConfig } from '../shared/likec4.DqDU0qex.mjs';
2
2
  import '@likec4/core';
3
3
  import '@likec4/core/model';
4
4
  import '@likec4/core/types';
@@ -1 +1 @@
1
- export{c as defineConfig,m as defineGenerators,u as defineStyle,d as defineTheme,p as defineThemeColor,l as isLikeC4Config,L as isLikeC4JsonConfig,x as isLikeC4NonJsonConfig}from"../shared/likec4.DASl7M77.mjs";
1
+ export{c as defineConfig,m as defineGenerators,u as defineStyle,d as defineTheme,p as defineThemeColor,l as isLikeC4Config,L as isLikeC4JsonConfig,x as isLikeC4NonJsonConfig}from"../shared/likec4.CXTvqtC-.mjs";
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
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.DobqFzmV.mjs';
3
+ import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, P as ProjectsManager, b as LikeC4Views, R as Range } from './shared/likec4.iedqayBZ.mjs';
4
4
  import { ProjectId, NonEmptyArray } from '@likec4/core';
5
5
  import { LikeC4Model } from '@likec4/core/model';
6
+ import '@likec4/core/compute-view';
6
7
  import 'type-fest';
7
- import './shared/likec4.6kvTI22o.mjs';
8
+ import './shared/likec4.DqDU0qex.mjs';
8
9
  import '@likec4/core/styles';
9
10
  import '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.2/node_modules/@types/picomatch/index.d.ts';
10
11
  import '@likec4/core/utils';
11
- import '@cfworker/json-schema';
12
12
 
13
13
  type Logger = {
14
14
  info(msg: string): void;
@@ -126,12 +126,21 @@ declare class LikeC4 {
126
126
  * Used in React components
127
127
  */
128
128
  diagrams(projectId?: ProjectId | undefined): Promise<DiagramView[]>;
129
+ /**
130
+ * Builds LikeC4Model from all documents
131
+ * Only computes view predicates {@link ComputedView} - i.e. no layout
132
+ * Not ready for rendering, but enough to traverse
133
+ *
134
+ * Sync version does not read manual layouts
135
+ * Use {@link computedModel} for a version that includes manual layouts
136
+ */
137
+ syncComputedModel(project?: ProjectId | undefined): LikeC4Model.Computed;
129
138
  /**
130
139
  * Builds LikeC4Model from all documents
131
140
  * Only computes view predicates {@link ComputedView} - i.e. no layout
132
141
  * Not ready for rendering, but enough to traverse
133
142
  */
134
- computedModel(project?: ProjectId | undefined): LikeC4Model.Computed;
143
+ computedModel(project?: ProjectId | undefined): Promise<LikeC4Model.Computed>;
135
144
  projects(): NonEmptyArray<ProjectId>;
136
145
  /**
137
146
  * Same as {@link computedModel()}, but also applies layout
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{L as LikeC4}from"./shared/likec4.BJupup6Q.mjs";
1
+ export{L as LikeC4}from"./shared/likec4.CDVXAxDx.mjs";
@@ -3,6 +3,7 @@ export { Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectio
3
3
  import * as c4 from '@likec4/core/types';
4
4
  import { ViewId, NodeId, BBox, LayoutedDynamicView } from '@likec4/core/types';
5
5
  export * from '@likec4/core/types';
6
+ export { ComputedProjectEdge, ComputedProjectNode, ComputedProjectsView, LayoutedProjectEdge, LayoutedProjectNode, LayoutedProjectsView } from '@likec4/core/compute-view';
6
7
 
7
8
  interface SequenceActorStepPort {
8
9
  id: string;