likec4 1.60.0 → 1.61.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/README.md +2 -0
- package/__app__/codegen/react.mjs +4 -10
- package/__app__/codegen/webcomponent.mjs +5 -208
- package/__app__/index.html +15 -15
- package/__app__/src/aichat/index.mjs +1 -2
- package/__app__/src/chunks/AIChat.mjs +292 -117
- package/__app__/src/chunks/ErrorComponent.mjs +444 -0
- package/__app__/src/chunks/Header.mjs +269 -0
- package/__app__/src/chunks/ViewReact.mjs +438 -0
- package/__app__/src/chunks/find.mjs +38 -0
- package/__app__/src/chunks/hooks.mjs +18 -541
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +340 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +11101 -1797
- package/__app__/src/chunks/libs/@tanstack.mjs +4563 -3083
- package/__app__/src/chunks/libs/fast-equals.mjs +140 -71
- package/__app__/src/chunks/{es.mjs → libs/html-to-image.mjs} +16 -22
- package/__app__/src/chunks/libs/nanostores.mjs +4 -8
- package/__app__/src/chunks/libs/react-resizable-panels.mjs +2792 -0
- package/__app__/src/chunks/react.mjs +22 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +3 -32
- package/__app__/src/chunks/router.mjs +106 -0
- package/__app__/src/chunks/scope.mjs +106 -0
- package/__app__/src/chunks/searchParams.mjs +29 -0
- package/__app__/src/chunks/single-index.mjs +465 -0
- package/__app__/src/chunks/styled-system.mjs +1916 -2946
- package/__app__/src/chunks/useAsync.mjs +69 -0
- package/__app__/src/chunks/useSyncedRef.mjs +16 -0
- package/__app__/src/components/ColorSchemeToggle.mjs +124 -0
- package/__app__/src/components/CopyToClipboard.mjs +53 -0
- package/__app__/src/components/ErrorComponent.mjs +1 -0
- package/__app__/src/components/NavigationPanel.mjs +63 -0
- package/__app__/src/components/NotFound.mjs +155 -0
- package/__app__/src/components/ViewOutlet.mjs +9 -0
- package/__app__/src/components/model-diff/CompareModelProvider.mjs +44 -0
- package/__app__/src/components/model-diff/ModelDiffPanel.mjs +179 -0
- package/__app__/src/components/model-diff/compare-model.mjs +76 -0
- package/__app__/src/components/model-diff/state.mjs +45 -0
- package/__app__/src/components/search/OverviewSearch.mjs +92 -0
- package/__app__/src/components/search/OverviewSearchAdapter.mjs +94 -0
- package/__app__/src/components/sidebar/DiagramTree.css.mjs +48 -0
- package/__app__/src/components/sidebar/DiagramsTree.mjs +304 -0
- package/__app__/src/components/sidebar/Drawer.mjs +178 -0
- package/__app__/src/components/sidebar/SidebarBurger.mjs +28 -0
- package/__app__/src/components/sidebar/data.mjs +94 -0
- package/__app__/src/components/sidebar/state.mjs +16 -0
- package/__app__/src/components/view-page/Header.mjs +1 -0
- package/__app__/src/components/view-page/SelectProject.mjs +258 -0
- package/__app__/src/components/view-page/ShareModal.mjs +111 -0
- package/__app__/src/components/view-page/share-modal/AlertLocalhost.mjs +31 -0
- package/__app__/src/components/view-page/share-modal/CopyButtonChild.mjs +36 -0
- package/__app__/src/components/view-page/share-modal/EmbedPanel.mjs +100 -0
- package/__app__/src/components/view-page/share-modal/WebcomponentsPanel.mjs +264 -0
- package/__app__/src/components/view-page/state.mjs +17 -0
- package/__app__/src/context/LikeC4CustomizationContext.mjs +26 -0
- package/__app__/src/context/LikeC4IconRendererContext.mjs +29 -0
- package/__app__/src/context/LikeC4ModelContext.mjs +34 -0
- package/__app__/src/context/LikeC4ProjectsContext.mjs +40 -0
- package/__app__/src/context/ModelDiffsContext.mjs +33 -0
- package/__app__/src/context/safeCtx.mjs +14 -0
- package/__app__/src/hooks.mjs +1 -0
- package/__app__/src/main.mjs +4 -48126
- package/__app__/src/pages/EmbedPage.mjs +93 -0
- package/__app__/src/pages/ExportPage.mjs +691 -0
- package/__app__/src/pages/ProjectsOverview.mjs +23 -0
- package/__app__/src/pages/ViewAsD2.mjs +105 -0
- package/__app__/src/pages/ViewAsDot.mjs +65 -0
- package/__app__/src/pages/ViewAsMmd.mjs +109 -0
- package/__app__/src/pages/ViewAsPuml.mjs +105 -0
- package/__app__/src/pages/ViewEditor.mjs +220 -0
- package/__app__/src/pages/ViewReact.mjs +1 -0
- package/__app__/src/pages/export-layout.mjs +95 -0
- package/__app__/src/pages/export-page-params.mjs +9 -0
- package/__app__/src/pages/styles.css.mjs +23 -0
- package/__app__/src/routeTree.gen.mjs +105 -0
- package/__app__/src/router.mjs +1 -0
- package/__app__/src/routes/__root.mjs +65 -0
- package/__app__/src/routes/index.css.mjs +29 -0
- package/__app__/src/routes/index.mjs +32 -0
- package/__app__/src/routes/project._projectId/-components.mjs +100 -0
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +5 -0
- package/__app__/src/routes/project._projectId/export._viewId.mjs +24 -0
- package/__app__/src/routes/project._projectId/index.mjs +14 -0
- package/__app__/src/routes/project._projectId/route.mjs +93 -0
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +34 -0
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +41 -0
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +7 -0
- package/__app__/src/routes/project._projectId/view._viewId.mjs +23 -0
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +39 -0
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +34 -0
- package/__app__/src/routes/projects.mjs +36 -0
- package/__app__/src/routes/single-index.mjs +1 -0
- package/__app__/src/routes/webcomponent._.mjs +94 -0
- package/__app__/src/style.css +1156 -1147
- package/config/schema.json +26 -2
- package/dist/app/render-view-client.css +1 -1
- package/dist/app/render-view-client.js +375 -393
- package/dist/chunks/filenames.mjs +26 -20
- package/dist/chunks/generate-likec4.mjs +4 -4
- package/dist/chunks/index.d.mts +16 -15
- package/dist/chunks/index2.d.mts +7041 -3293
- package/dist/chunks/libs/@chenglou/pretext.mjs +9 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +5 -5
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +2 -4
- package/dist/chunks/libs/chevrotain.mjs +19 -19
- package/dist/chunks/libs/clone.mjs +1 -0
- package/dist/chunks/libs/eventemitter3.mjs +1 -1
- package/dist/chunks/libs/fast-equals.mjs +1 -0
- package/dist/chunks/libs/fontkit.mjs +1 -0
- package/dist/chunks/libs/langium.d.mts +80 -2933
- package/dist/chunks/libs/langium.mjs +6 -6
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/pathe.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/node.mjs +110 -77
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +183 -164
- package/dist/cli/index.mjs +157 -101
- package/dist/config/index.d.mts +65 -4
- package/dist/config/index.mjs +1 -1
- package/dist/generators/likec4.d.mts +16 -64
- package/dist/index.d.mts +2 -4
- package/dist/model/index.d.mts +0 -10
- package/dist/vite-plugin/index.d.mts +83 -61
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +1 -2
- package/dist/vite-plugin/internal/index.d.mts +91 -17
- package/dist/vite-plugin/internal/index.mjs +156 -110
- package/package.json +60 -55
- package/react/index.d.mts +3010 -4014
- package/react/index.mjs +170 -171
- package/react/rolldown-runtime-CfRud99p.js +1 -0
- package/skills/likec4-dsl/SKILL.md +71 -25
- package/skills/likec4-dsl/evals/evals-public.json +5 -0
- package/skills/likec4-dsl/evals/grading-spec.json +15 -1
- package/skills/likec4-dsl/references/cli.md +39 -10
- package/skills/likec4-dsl/references/configuration.md +5 -5
- package/skills/likec4-dsl/references/diffs.md +52 -0
- package/skills/likec4-dsl/references/examples.md +2 -2
- package/skills/likec4-dsl/references/identifier-validity.md +31 -31
- package/skills/likec4-dsl/references/include-predicates-wildcards.md +16 -15
- package/skills/likec4-dsl/references/model.md +42 -11
- package/skills/likec4-dsl/references/specification.md +11 -7
- package/skills/likec4-dsl/references/troubleshooting.md +47 -42
- package/skills/likec4-dsl/references/views.md +2 -2
- package/vite-plugin-modules.d.ts +126 -51
- package/__app__/src/chunks/LikeC4Styles.mjs +0 -4522
- package/__app__/src/chunks/ProjectsOverview.mjs +0 -827
- package/__app__/src/chunks/libs/@floating-ui.mjs +0 -3286
- package/__app__/src/chunks/libs/@mantine.mjs +0 -17731
- package/__app__/src/chunks/libs/@xstate/react.mjs +0 -3471
- package/__app__/src/chunks/libs/@xyflow/react.mjs +0 -7927
- package/__app__/src/chunks/libs/bezier-js.mjs +0 -1593
- package/__app__/src/chunks/libs/d3.mjs +0 -4531
- package/__app__/src/chunks/libs/framer.mjs +0 -11331
- package/__app__/src/chunks/libs/zod.mjs +0 -5404
- package/dist/chunks/libs/@chevrotain/types.d.mts +0 -111
- package/react/rolldown-runtime-DnkiqaRY.js +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { i as __name } from "../../rolldown-runtime.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@chevrotain+types@13.2.0/node_modules/@chevrotain/types/api.d.ts
|
|
3
|
-
type TokenPattern = RegExp | string | CustomPatternMatcherFunc | ICustomPattern;
|
|
4
|
-
/**
|
|
5
|
-
* API #1 [Custom Token Patterns](http://chevrotain.io/docs/guide/custom_token_patterns.html).
|
|
6
|
-
*/
|
|
7
|
-
declare type CustomPatternMatcherFunc = (
|
|
8
|
-
/**
|
|
9
|
-
* The full input string.
|
|
10
|
-
*/
|
|
11
|
-
text: string,
|
|
12
|
-
/**
|
|
13
|
-
* The offset at which to attempt a match
|
|
14
|
-
*/
|
|
15
|
-
offset: number,
|
|
16
|
-
/**
|
|
17
|
-
* Previously scanned Tokens
|
|
18
|
-
*/
|
|
19
|
-
tokens: IToken[],
|
|
20
|
-
/**
|
|
21
|
-
* Token Groups
|
|
22
|
-
*/
|
|
23
|
-
groups: {
|
|
24
|
-
[groupName: string]: IToken[];
|
|
25
|
-
}) => CustomPatternMatcherReturn | RegExpExecArray | null; // RegExpExecArray included for legacy reasons
|
|
26
|
-
type CustomPatternMatcherReturn = [string] & {
|
|
27
|
-
payload?: any;
|
|
28
|
-
};
|
|
29
|
-
interface TokenType {
|
|
30
|
-
name: string;
|
|
31
|
-
GROUP?: string;
|
|
32
|
-
PATTERN?: TokenPattern;
|
|
33
|
-
LABEL?: string;
|
|
34
|
-
LONGER_ALT?: TokenType | TokenType[];
|
|
35
|
-
POP_MODE?: boolean;
|
|
36
|
-
PUSH_MODE?: string;
|
|
37
|
-
LINE_BREAKS?: boolean;
|
|
38
|
-
CATEGORIES?: TokenType[];
|
|
39
|
-
tokenTypeIdx?: number;
|
|
40
|
-
categoryMatches?: number[];
|
|
41
|
-
categoryMatchesMap?: {
|
|
42
|
-
[tokType: number]: boolean;
|
|
43
|
-
};
|
|
44
|
-
isParent?: boolean;
|
|
45
|
-
START_CHARS_HINT?: (string | number)[];
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* API #2 for [Custom Token Patterns](http://chevrotain.io/docs/guide/custom_token_patterns.html).
|
|
49
|
-
*/
|
|
50
|
-
interface ICustomPattern {
|
|
51
|
-
exec: CustomPatternMatcherFunc;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Things to note:
|
|
55
|
-
* - The offset range is inclusive to exclusive.
|
|
56
|
-
*
|
|
57
|
-
* - A lineTerminator as the last character does not effect the Token's line numbering.
|
|
58
|
-
* In other words a new line only starts **after** a line terminator.
|
|
59
|
-
*
|
|
60
|
-
* - A Token's image is it's **literal** text.
|
|
61
|
-
* e.g unicode escaping is untouched.
|
|
62
|
-
*
|
|
63
|
-
* - Synthetic tokens without a source location, such as parser EOF and tokens inserted
|
|
64
|
-
* during error recovery, use `-1` for their location properties.
|
|
65
|
-
*/
|
|
66
|
-
interface IToken {
|
|
67
|
-
/** The textual representation of the Token as it appeared in the text. */
|
|
68
|
-
image: string;
|
|
69
|
-
/** Offset of the first character of the Token. 0-indexed. */
|
|
70
|
-
startOffset: number;
|
|
71
|
-
/** Line of the first character of the Token. 1-indexed. */
|
|
72
|
-
startLine?: number;
|
|
73
|
-
/**
|
|
74
|
-
* Column of the first character of the Token. 1-indexed.
|
|
75
|
-
*
|
|
76
|
-
* For token foo in the following line, startColumn will be 3 and endColumn will be 5.
|
|
77
|
-
* ```
|
|
78
|
-
* a foo
|
|
79
|
-
* 123456
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
startColumn?: number;
|
|
83
|
-
/**
|
|
84
|
-
* Offset of the last character of the Token. 0-indexed.
|
|
85
|
-
* Note that this points at the last character, not the end of the token, so the original image would be
|
|
86
|
-
* `input.substring(token.startOffset, token.endOffset + 1)`.
|
|
87
|
-
*/
|
|
88
|
-
endOffset?: number;
|
|
89
|
-
/** Line of the last character of the Token. 1-indexed. Will be the same as startLine for single-line tokens.*/
|
|
90
|
-
endLine?: number;
|
|
91
|
-
/** Column of the last character of the Token. 1-indexed. See also startColumn. */
|
|
92
|
-
endColumn?: number;
|
|
93
|
-
/** this marks if a Token does not really exist and has been inserted "artificially" during parsing in rule error recovery. */
|
|
94
|
-
isInsertedInRecovery?: boolean;
|
|
95
|
-
/** An number index representing the type of the Token use <getTokenConstructor> to get the Token Type from a token "instance" */
|
|
96
|
-
tokenTypeIdx: number;
|
|
97
|
-
/**
|
|
98
|
-
* The actual Token Type of this Token "instance"
|
|
99
|
-
* This is the same Object returned by the "createToken" API.
|
|
100
|
-
* This property is very useful for debugging the Lexing and Parsing phases.
|
|
101
|
-
*/
|
|
102
|
-
tokenType: TokenType;
|
|
103
|
-
/**
|
|
104
|
-
* Custom Payload value, this is an optional feature of Custom Token Patterns
|
|
105
|
-
* For additional details see the docs:
|
|
106
|
-
* https://chevrotain.io/docs/guide/custom_token_patterns.html#custom-payloads
|
|
107
|
-
*/
|
|
108
|
-
payload?: any;
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
export { IToken as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,__name=(e,n)=>t(e,`name`,{value:n,configurable:!0}),n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__exportAll=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},__copyProps=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},__toESM=(n,r,o)=>(o=n==null?{}:e(i(n)),__copyProps(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),o=/* @__PURE__ */ (e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{__toESM as a,o as i,__exportAll as n,__name as r,__commonJSMin as t};
|