likec4 1.42.0 → 1.43.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.
@@ -2,7 +2,7 @@ import * as _likec4_core from '@likec4/core';
2
2
  import { Fqn, EdgeId, AnyAux, aux, ComputedView, LikeC4Styles, DiagramView, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
3
3
  import * as type_fest from 'type-fest';
4
4
  import { Tagged, ValueOf, ConditionalPick, Writable, Simplify, MergeExclusive } from 'type-fest';
5
- import { U as URI$1, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput } from './likec4.BCSBNe4z.mjs';
5
+ import { U as URI$1, L as LikeC4ProjectConfig, a as LikeC4ProjectConfigInput } from './likec4.CQWzqezS.mjs';
6
6
  import { LikeC4Model } from '@likec4/core/model';
7
7
  import * as c4 from '@likec4/core/types';
8
8
  import { scalar, ProjectId as ProjectId$1, Fqn as Fqn$1 } from '@likec4/core/types';
@@ -14081,6 +14081,8 @@ declare class LikeC4DocumentationProvider implements DocumentationProvider {
14081
14081
  * DO NOT EDIT MANUALLY!
14082
14082
  ******************************************************************************/
14083
14083
 
14084
+ type AnyProperty = DynamicViewProperty | ElementProperty | RelationProperty | StringProperty | ViewProperty;
14085
+ declare const AnyProperty = "AnyProperty";
14084
14086
  type ArrowType = 'crow' | 'diamond' | 'dot' | 'none' | 'normal' | 'odiamond' | 'odot' | 'onormal' | 'open' | 'vee';
14085
14087
  type BorderStyleValue = 'none' | LineOptions;
14086
14088
  type ColorLiteral = HexColor | RGBAColor;
@@ -14121,6 +14123,8 @@ declare const LikeC4View = "LikeC4View";
14121
14123
  type LineOptions = 'dashed' | 'dotted' | 'solid';
14122
14124
  type MetadataProperty = MetadataBody;
14123
14125
  declare const MetadataProperty = "MetadataProperty";
14126
+ type MetadataValue = MarkdownOrString | MetadataArray;
14127
+ declare const MetadataValue = "MetadataValue";
14124
14128
  type ModelReferenceable = Element | Imported;
14125
14129
  declare const ModelReferenceable = "ModelReferenceable";
14126
14130
  type Participant = 'source' | 'target';
@@ -14636,17 +14640,23 @@ interface LinkProperty extends AstNode {
14636
14640
  }
14637
14641
  declare const LinkProperty = "LinkProperty";
14638
14642
  interface MarkdownOrString extends AstNode {
14639
- readonly $container: ElementStringProperty | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
14643
+ readonly $container: ElementStringProperty | MetadataArray | MetadataAttribute | NotationProperty | NotesProperty | RelationStringProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty;
14640
14644
  readonly $type: 'MarkdownOrString';
14641
14645
  markdown?: string;
14642
14646
  text?: string;
14643
14647
  }
14644
14648
  declare const MarkdownOrString = "MarkdownOrString";
14649
+ interface MetadataArray extends AstNode {
14650
+ readonly $container: MetadataAttribute;
14651
+ readonly $type: 'MetadataArray';
14652
+ values: Array<MarkdownOrString>;
14653
+ }
14654
+ declare const MetadataArray = "MetadataArray";
14645
14655
  interface MetadataAttribute extends AstNode {
14646
14656
  readonly $container: MetadataBody;
14647
14657
  readonly $type: 'MetadataAttribute';
14648
14658
  key: string;
14649
- value: MarkdownOrString;
14659
+ value: MetadataValue;
14650
14660
  }
14651
14661
  declare const MetadataAttribute = "MetadataAttribute";
14652
14662
  interface MetadataBody extends AstNode {
@@ -15068,6 +15078,7 @@ interface DynamicStepSingle extends AbstractDynamicStep {
15068
15078
  declare const DynamicStepSingle = "DynamicStepSingle";
15069
15079
  type LikeC4AstType = {
15070
15080
  AbstractDynamicStep: AbstractDynamicStep;
15081
+ AnyProperty: AnyProperty;
15071
15082
  ArrowProperty: ArrowProperty;
15072
15083
  BorderProperty: BorderProperty;
15073
15084
  ColorLiteral: ColorLiteral;
@@ -15149,9 +15160,11 @@ type LikeC4AstType = {
15149
15160
  LineProperty: LineProperty;
15150
15161
  LinkProperty: LinkProperty;
15151
15162
  MarkdownOrString: MarkdownOrString;
15163
+ MetadataArray: MetadataArray;
15152
15164
  MetadataAttribute: MetadataAttribute;
15153
15165
  MetadataBody: MetadataBody;
15154
15166
  MetadataProperty: MetadataProperty;
15167
+ MetadataValue: MetadataValue;
15155
15168
  Model: Model;
15156
15169
  ModelDeployments: ModelDeployments;
15157
15170
  ModelReferenceable: ModelReferenceable;
@@ -15239,7 +15252,7 @@ declare class LikeC4DocumentValidator extends DefaultDocumentValidator {
15239
15252
 
15240
15253
  type Guard<N extends AstNode> = (n: AstNode) => n is N;
15241
15254
  type Guarded<G> = G extends Guard<infer N> ? N : never;
15242
- declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | DynamicStepChain | DynamicStepSingle | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | DynamicViewParallelSteps | ElementRef | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
15255
+ declare const isValidatableAstNode: (n: AstNode) => n is DynamicViewDisplayVariantProperty | LinkProperty | ViewStringProperty | ElementStringProperty | ElementStyleProperty | IconProperty | MetadataBody | RelationStringProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | DynamicStepChain | DynamicStepSingle | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | DynamicViewParallelSteps | ElementRef | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
15243
15256
  type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
15244
15257
  declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
15245
15258
  isValid: (n: ValidatableAstNode) => boolean;
@@ -15319,16 +15332,16 @@ interface ParsedAstElement {
15319
15332
  links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
15320
15333
  style: ParsedElementStyle;
15321
15334
  metadata?: {
15322
- [key: string]: string;
15335
+ [key: string]: string | string[];
15323
15336
  };
15324
15337
  }
15325
15338
  interface ParsedAstExtend {
15326
15339
  id: _likec4_core.Fqn;
15327
15340
  astPath: string;
15328
- tags: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15329
- links: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15341
+ tags?: _likec4_core.NonEmptyArray<_likec4_core.Tag> | null;
15342
+ links?: _likec4_core.NonEmptyArray<_likec4_core.Link> | null;
15330
15343
  metadata?: {
15331
- [key: string]: string;
15344
+ [key: string]: string | string[];
15332
15345
  };
15333
15346
  }
15334
15347
  interface ParsedAstRelation {
@@ -15348,7 +15361,7 @@ interface ParsedAstRelation {
15348
15361
  links?: _likec4_core.NonEmptyArray<_likec4_core.Link>;
15349
15362
  navigateTo?: _likec4_core.ViewId;
15350
15363
  metadata?: {
15351
- [key: string]: string;
15364
+ [key: string]: string | string[];
15352
15365
  };
15353
15366
  }
15354
15367
  type ParsedAstDeployment = Simplify<MergeExclusive<ParsedAstDeployment.Node, ParsedAstDeployment.Instance>>;
@@ -15732,7 +15745,7 @@ declare class BaseParser {
15732
15745
  resolveFqn(node: FqnReferenceable): _likec4_core.Fqn;
15733
15746
  getAstNodePath(node: AstNode): any;
15734
15747
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15735
- [key: string]: string;
15748
+ [key: string]: string | string[];
15736
15749
  } | undefined;
15737
15750
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): _likec4_core.MarkdownOrString | undefined;
15738
15751
  convertTags<E extends {
@@ -15834,7 +15847,7 @@ declare const DocumentParserFromMixins: {
15834
15847
  resolveFqn(node: FqnReferenceable): ProjectId;
15835
15848
  getAstNodePath(node: ProjectId): any;
15836
15849
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15837
- [key: string]: string;
15850
+ [key: string]: string | string[];
15838
15851
  } | undefined;
15839
15852
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
15840
15853
  convertTags<E extends {
@@ -15933,7 +15946,7 @@ declare const DocumentParserFromMixins: {
15933
15946
  resolveFqn(node: FqnReferenceable): ProjectId;
15934
15947
  getAstNodePath(node: ProjectId): any;
15935
15948
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15936
- [key: string]: string;
15949
+ [key: string]: string | string[];
15937
15950
  } | undefined;
15938
15951
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
15939
15952
  convertTags<E extends {
@@ -15988,7 +16001,7 @@ declare const DocumentParserFromMixins: {
15988
16001
  resolveFqn(node: FqnReferenceable): ProjectId;
15989
16002
  getAstNodePath(node: ProjectId): any;
15990
16003
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
15991
- [key: string]: string;
16004
+ [key: string]: string | string[];
15992
16005
  } | undefined;
15993
16006
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
15994
16007
  convertTags<E extends {
@@ -16058,7 +16071,7 @@ declare const DocumentParserFromMixins: {
16058
16071
  resolveFqn(node: FqnReferenceable): ProjectId;
16059
16072
  getAstNodePath(node: ProjectId): any;
16060
16073
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16061
- [key: string]: string;
16074
+ [key: string]: string | string[];
16062
16075
  } | undefined;
16063
16076
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16064
16077
  convertTags<E extends {
@@ -16121,7 +16134,7 @@ declare const DocumentParserFromMixins: {
16121
16134
  resolveFqn(node: FqnReferenceable): ProjectId;
16122
16135
  getAstNodePath(node: ProjectId): any;
16123
16136
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16124
- [key: string]: string;
16137
+ [key: string]: string | string[];
16125
16138
  } | undefined;
16126
16139
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16127
16140
  convertTags<E extends {
@@ -16192,7 +16205,7 @@ declare const DocumentParserFromMixins: {
16192
16205
  resolveFqn(node: FqnReferenceable): ProjectId;
16193
16206
  getAstNodePath(node: ProjectId): any;
16194
16207
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16195
- [key: string]: string;
16208
+ [key: string]: string | string[];
16196
16209
  } | undefined;
16197
16210
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16198
16211
  convertTags<E extends {
@@ -16256,7 +16269,7 @@ declare const DocumentParserFromMixins: {
16256
16269
  resolveFqn(node: FqnReferenceable): ProjectId;
16257
16270
  getAstNodePath(node: ProjectId): any;
16258
16271
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16259
- [key: string]: string;
16272
+ [key: string]: string | string[];
16260
16273
  } | undefined;
16261
16274
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16262
16275
  convertTags<E extends {
@@ -16299,7 +16312,7 @@ declare const DocumentParserFromMixins: {
16299
16312
  resolveFqn(node: FqnReferenceable): ProjectId;
16300
16313
  getAstNodePath(node: ProjectId): any;
16301
16314
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16302
- [key: string]: string;
16315
+ [key: string]: string | string[];
16303
16316
  } | undefined;
16304
16317
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16305
16318
  convertTags<E extends {
@@ -16358,7 +16371,7 @@ declare const DocumentParserFromMixins: {
16358
16371
  resolveFqn(node: FqnReferenceable): ProjectId;
16359
16372
  getAstNodePath(node: ProjectId): any;
16360
16373
  getMetadata(metadataAstNode: MetadataProperty | undefined): {
16361
- [key: string]: string;
16374
+ [key: string]: string | string[];
16362
16375
  } | undefined;
16363
16376
  parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
16364
16377
  convertTags<E extends {
@@ -16644,9 +16657,13 @@ declare class LikeC4HoverProvider extends AstNodeHoverProvider {
16644
16657
  }
16645
16658
 
16646
16659
  declare class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider {
16660
+ private rules;
16661
+ constructor(services: LikeC4Services);
16662
+ protected initRules(): void;
16647
16663
  protected highlightElement(node: AstNode, acceptor: SemanticTokenAcceptor): void | undefined | 'prune';
16648
16664
  private highlightNameAndKind;
16649
16665
  private highlightView;
16666
+ private mark;
16650
16667
  }
16651
16668
 
16652
16669
  type Primitive$1 = string | number | symbol | bigint | boolean | null | undefined;
@@ -1,5 +1,5 @@
1
- import '../shared/likec4.BCSBNe4z.mjs';
2
- import { L as LikeC4LanguageServices } from '../shared/likec4.CaOUU1HJ.mjs';
1
+ import '../shared/likec4.CQWzqezS.mjs';
2
+ import { L as LikeC4LanguageServices } from '../shared/likec4.VWjIqhhl.mjs';
3
3
  import '@likec4/core';
4
4
  import '@likec4/core/model';
5
5
  import '@likec4/core/types';
@@ -1 +1 @@
1
- export{L as LikeC4VitePlugin}from"../shared/likec4.CJVbsoPD.mjs";
1
+ export{L as LikeC4VitePlugin}from"../shared/likec4.CWfMOOnG.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "likec4",
3
3
  "description": "Toolchain for your architecture diagrams",
4
- "version": "1.42.0",
4
+ "version": "1.43.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://likec4.dev",
7
7
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -99,21 +99,21 @@
99
99
  "access": "public"
100
100
  },
101
101
  "dependencies": {
102
- "@hpcc-js/wasm-graphviz": "1.12.1",
102
+ "@hpcc-js/wasm-graphviz": "1.12.0",
103
103
  "@vitejs/plugin-react": "^5.0.4",
104
104
  "boxen": "^8.0.1",
105
105
  "bundle-require": "^5.1.0",
106
- "esbuild": "0.25.9",
106
+ "esbuild": "0.25.11",
107
107
  "fdir": "6.4.0",
108
- "playwright": "1.54.2",
108
+ "playwright": "1.56.1",
109
109
  "rollup": "^4.52.3",
110
110
  "std-env": "^3.9.0",
111
111
  "type-fest": "^4.41.0",
112
- "vite": "^7.1.7",
113
- "@xyflow/react": "12.8.4",
114
- "@xyflow/system": "0.0.68",
112
+ "vite": "^7.1.11",
113
+ "@xyflow/react": "12.9.0",
114
+ "@xyflow/system": "0.0.71",
115
115
  "yargs": "17.7.2",
116
- "@likec4/core": "1.42.0"
116
+ "@likec4/core": "1.43.0"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "react": "^18.x || ^19.x",
@@ -121,17 +121,17 @@
121
121
  },
122
122
  "devDependencies": {
123
123
  "@dagrejs/dagre": "1.1.5",
124
- "@fontsource/ibm-plex-sans": "^5.2.7",
125
- "@mantine/core": "8.3.1",
126
- "@mantine/hooks": "8.3.1",
124
+ "@fontsource/ibm-plex-sans": "^5.2.8",
125
+ "@mantine/core": "8.3.5",
126
+ "@mantine/hooks": "8.3.5",
127
127
  "@nanostores/react": "1.0.0",
128
- "@pandacss/dev": "^1.4.1",
128
+ "@pandacss/dev": "^1.4.3",
129
129
  "@react-hookz/web": "^25.1.1",
130
130
  "@tabler/icons-react": "3.35.0",
131
131
  "@tanstack/react-router": "^1.114.13",
132
132
  "@tanstack/router-cli": "^1.114.13",
133
133
  "@tanstack/router-vite-plugin": "^1.114.13",
134
- "@types/node": "~20.19.11",
134
+ "@types/node": "~20.19.22",
135
135
  "@types/picomatch": "^4.0.2",
136
136
  "@types/react": "19.1.16",
137
137
  "@types/react-dom": "19.1.9",
@@ -144,7 +144,7 @@
144
144
  "dts-bundle-generator": "^9.5.1",
145
145
  "esbuild-node-externals": "1.18.0",
146
146
  "esm-env": "^1.2.2",
147
- "fast-equals": "^5.2.2",
147
+ "fast-equals": "^5.3.2",
148
148
  "get-port": "^7.1.0",
149
149
  "html-to-image": "1.11.11",
150
150
  "is-inside-container": "^1.0.0",
@@ -153,7 +153,7 @@
153
153
  "langium": "3.5.0",
154
154
  "merge-error-cause": "^5.0.2",
155
155
  "mkdirp": "^3.0.1",
156
- "motion": "^12.23.22",
156
+ "motion": "^12.23.24",
157
157
  "nano-spawn": "^1.0.3",
158
158
  "nanostores": "1.0.1",
159
159
  "npm-run-all2": "^8.0.4",
@@ -168,13 +168,13 @@
168
168
  "react-error-boundary": "^6.0.0",
169
169
  "react-resizable-panels": "^3.0.5",
170
170
  "react-shadow": "^20.6.0",
171
- "remeda": "^2.31.1",
172
- "semver": "^7.7.2",
173
- "strip-indent": "^4.0.0",
171
+ "remeda": "^2.32.0",
172
+ "semver": "^7.7.3",
173
+ "strip-indent": "^4.1.1",
174
174
  "tinyrainbow": "^2.0.0",
175
175
  "tsx": "4.20.6",
176
176
  "turbo": "2.5.8",
177
- "typescript": "5.9.2",
177
+ "typescript": "5.9.3",
178
178
  "ufo": "1.6.1",
179
179
  "unbuild": "3.5.0",
180
180
  "vite-plugin-dts": "^4.5.4",
@@ -188,17 +188,17 @@
188
188
  "which": "^5.0.0",
189
189
  "wireit": "0.14.12",
190
190
  "zod": "^3.25.76",
191
- "@likec4/config": "1.42.0",
191
+ "@likec4/config": "1.43.0",
192
192
  "@likec4/devops": "1.42.0",
193
- "@likec4/diagram": "1.42.0",
194
- "@likec4/generators": "1.42.0",
195
- "@likec4/icons": "1.42.0",
196
- "@likec4/language-server": "1.42.0",
197
- "@likec4/layouts": "1.42.0",
198
- "@likec4/log": "1.42.0",
199
- "@likec4/style-preset": "1.42.0",
200
- "@likec4/tsconfig": "1.42.0",
201
- "@likec4/styles": "1.42.0"
193
+ "@likec4/diagram": "1.43.0",
194
+ "@likec4/generators": "1.43.0",
195
+ "@likec4/icons": "1.43.0",
196
+ "@likec4/language-server": "1.43.0",
197
+ "@likec4/layouts": "1.43.0",
198
+ "@likec4/log": "1.43.0",
199
+ "@likec4/style-preset": "1.43.0",
200
+ "@likec4/styles": "1.43.0",
201
+ "@likec4/tsconfig": "1.43.0"
202
202
  },
203
203
  "scripts": {
204
204
  "typecheck": "tsc --build --verbose",
package/react/index.d.ts CHANGED
@@ -358,15 +358,6 @@ declare interface Context_2 {
358
358
  xyedges: RelationshipsBrowserTypes.Edge[];
359
359
  }
360
360
 
361
- export declare type ControlsCustomLayout = (props: ControlsCustomLayoutProps) => ReactNode;
362
-
363
- export declare type ControlsCustomLayoutProps = {
364
- burgerMenu: ReactNode;
365
- navigationButtons: ReactNode;
366
- search: ReactNode;
367
- actionsGroup: ReactNode;
368
- };
369
-
370
361
  declare type CurrentViewModel = LikeC4ViewModel<UnknownLayouted, DiagramView<UnknownLayouted>>;
371
362
 
372
363
  declare type CustomFeatures = {
@@ -3833,7 +3824,7 @@ export declare interface LikeC4BrowserProps {
3833
3824
  * Display notations of the view
3834
3825
  * @default true
3835
3826
  */
3836
- showNotations?: boolean | undefined;
3827
+ enableNotations?: boolean | undefined;
3837
3828
  /**
3838
3829
  * Improve performance by hiding certain elements and reducing visual effects (disable mix-blend, shadows, animations)
3839
3830
  *
@@ -3860,7 +3851,7 @@ export declare type LikeC4ColorScheme = 'light' | 'dark';
3860
3851
  *
3861
3852
  * Use {@link ReactLikeC4} or {@link LikeC4View} for ready-to-use component
3862
3853
  */
3863
- export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onChange, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onBurgerMenuClick, onInitialized, view, className, readonly, controls, fitView, fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, nodesDraggable, nodesSelectable, showNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, initialWidth, initialHeight, experimentalEdgeEditing, reduceGraphics, renderIcon, renderControls, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX.Element;
3854
+ export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onChange, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onBurgerMenuClick, onInitialized, view, className, readonly, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, nodesDraggable, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, initialWidth, initialHeight, experimentalEdgeEditing, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX.Element;
3864
3855
 
3865
3856
  export declare interface LikeC4DiagramEventHandlers<A extends Any_2 = Unknown> {
3866
3857
  onChange?: OnChange | null | undefined;
@@ -3907,8 +3898,8 @@ export declare interface LikeC4DiagramProperties<A extends Any_2 = Unknown> {
3907
3898
  */
3908
3899
  fitView?: boolean | undefined;
3909
3900
  /**
3910
- * Padding around the diagram
3911
- * @default '8px'
3901
+ * Padding around the diagram (number - pixels)
3902
+ * @default 16 - 16px
3912
3903
  *
3913
3904
  * @see {@link ViewPadding}
3914
3905
  *
@@ -3917,15 +3908,15 @@ export declare interface LikeC4DiagramProperties<A extends Any_2 = Unknown> {
3917
3908
  * <LikeC4Diagram
3918
3909
  * fitViewPadding={{
3919
3910
  * x: '16px',
3920
- * y: '16px',
3911
+ * y: 16,
3921
3912
  * }}
3922
3913
  * />
3923
3914
  *
3924
3915
  * <LikeC4Diagram
3925
3916
  * fitViewPadding={{
3926
- * top: '8px',
3917
+ * top: 8,
3927
3918
  * right: '8px',
3928
- * bottom: '8px',
3919
+ * bottom: '1px',
3929
3920
  * left: '8px',
3930
3921
  * }}
3931
3922
  * />
@@ -3964,9 +3955,9 @@ export declare interface LikeC4DiagramProperties<A extends Any_2 = Unknown> {
3964
3955
  * Display notations in the bottom right corner
3965
3956
  * (Active if only notations are present)
3966
3957
  *
3967
- * @default true
3958
+ * @default false
3968
3959
  */
3969
- showNotations?: boolean | undefined;
3960
+ enableNotations?: boolean | undefined;
3970
3961
  /**
3971
3962
  * Display dropdown with details on relationship's label click
3972
3963
  * @default false
@@ -4026,15 +4017,6 @@ export declare interface LikeC4DiagramProperties<A extends Any_2 = Unknown> {
4026
4017
  * By default, if icon is http:// or https://, it will be rendered as an image
4027
4018
  */
4028
4019
  renderIcon?: ElementIconRenderer | undefined;
4029
- /**
4030
- * Customize layout of the controls on the top left
4031
- *
4032
- * @note
4033
- * Ignored if `controls="next"`
4034
- *
4035
- * @see {@link controls}
4036
- */
4037
- renderControls?: ControlsCustomLayout | undefined;
4038
4020
  /**
4039
4021
  * Override node renderers
4040
4022
  */
@@ -4092,7 +4074,7 @@ export declare interface LikeC4ProjectsProviderProps {
4092
4074
  *
4093
4075
  * Component is wrapped in ShadowRoot to isolate styles.
4094
4076
  */
4095
- export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, background, browser, showNavigationButtons, showNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>): JSX.Element;
4077
+ export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, background, browser, showNavigationButtons, enableNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>): JSX.Element;
4096
4078
 
4097
4079
  export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayouted> {
4098
4080
  /**
@@ -4149,9 +4131,28 @@ export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayo
4149
4131
  fitView?: boolean | undefined;
4150
4132
  /**
4151
4133
  * Padding around the diagram
4152
- * @default '8px'
4134
+ * @default '16px'
4153
4135
  *
4154
4136
  * @see {@link ViewPadding}
4137
+ *
4138
+ * @example
4139
+ * ```tsx
4140
+ * <LikeC4View
4141
+ * fitViewPadding={{
4142
+ * x: '16px',
4143
+ * y: 16,
4144
+ * }}
4145
+ * />
4146
+ *
4147
+ * <LikeC4View
4148
+ * fitViewPadding={{
4149
+ * top: 8,
4150
+ * right: '8px',
4151
+ * bottom: '1px',
4152
+ * left: '8px',
4153
+ * }}
4154
+ * />
4155
+ * ```
4155
4156
  */
4156
4157
  fitViewPadding?: ViewPadding | undefined;
4157
4158
  /**
@@ -4163,7 +4164,7 @@ export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayo
4163
4164
  * Display notations of the view
4164
4165
  * @default false
4165
4166
  */
4166
- showNotations?: boolean | undefined;
4167
+ enableNotations?: boolean | undefined;
4167
4168
  /**
4168
4169
  * If double click on a node should enable focus mode, i.e. highlight incoming/outgoing edges
4169
4170
  * Conflicts with `browser` prop
@@ -4626,7 +4627,7 @@ export declare function PortalToContainer({ children }: PropsWithChildren): JSX.
4626
4627
  *
4627
4628
  * Component is wrapped in ShadowRoot to isolate styles.
4628
4629
  */
4629
- export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, colorScheme, injectFontCss, keepAspectRatio, showNotations, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>): JSX.Element;
4630
+ export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, colorScheme, injectFontCss, enableNotations, keepAspectRatio, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>): JSX.Element;
4630
4631
 
4631
4632
  export declare type ReactLikeC4Props<A extends t.aux.Any = t.aux.UnknownLayouted> = {
4632
4633
  viewId: t.aux.ViewId<A>;
@@ -6558,6 +6559,11 @@ declare type ViewId_4<A> = t.aux.ViewId<A>;
6558
6559
  * bottom: '8px',
6559
6560
  * left: '8px',
6560
6561
  * }
6562
+ *
6563
+ * {
6564
+ * x: '16px',
6565
+ * y: '16px',
6566
+ * }
6561
6567
  */
6562
6568
  export declare type ViewPadding = PaddingWithUnit | {
6563
6569
  top?: PaddingWithUnit;