likec4 1.56.0 → 1.58.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__/codegen/react.mjs +7 -8
- package/__app__/codegen/webcomponent.mjs +77 -736
- package/__app__/src/aichat/index.mjs +8 -0
- package/__app__/src/chunks/AIChat.mjs +959 -0
- package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
- package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
- package/__app__/src/chunks/Markdown.mjs +146 -0
- package/__app__/src/chunks/NavigationPanel.mjs +61 -0
- package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
- package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
- package/__app__/src/chunks/es.mjs +439 -0
- package/__app__/src/chunks/hooks.mjs +145 -0
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
- package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
- package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
- package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
- package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
- package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
- package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
- package/__app__/src/chunks/libs/d3.mjs +2842 -0
- package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
- package/__app__/src/chunks/libs/framer.mjs +5872 -0
- package/__app__/src/chunks/libs/remeda.mjs +642 -0
- package/__app__/src/chunks/libs/zod.mjs +3170 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
- package/__app__/src/chunks/styled-system.mjs +1040 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +14847 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/filenames.mjs +2 -2
- package/dist/chunks/index2.d.mts +2057 -722
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +26 -26
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/libs/zod.mjs +65 -0
- package/dist/chunks/node.mjs +84 -56
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +593 -0
- package/dist/cli/index.mjs +184 -141
- package/dist/index.d.mts +2 -131
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +2 -2
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +327 -4
- package/dist/vite-plugin/internal/index.mjs +946 -1
- package/package.json +85 -72
- package/react/index.d.mts +174 -73
- package/react/index.mjs +42468 -38926
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/DiagramActorProvider.mjs +0 -10
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4Diagram.mjs +0 -19
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/LikeC4Styles.mjs +0 -48
- package/__app__/chunks/NavigationPanel.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/ViewReact.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/adhoc-editor.mjs +0 -1
- package/__app__/chunks/hooks.mjs +0 -1
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
- package/__app__/chunks/libs/@mantine/core.mjs +0 -41
- package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
- package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
- package/__app__/chunks/libs/@xstate/react.mjs +0 -1
- package/__app__/chunks/libs/@xstate/store.mjs +0 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
- package/__app__/chunks/libs/bezier-js.mjs +0 -1
- package/__app__/chunks/libs/d3-path.mjs +0 -1
- package/__app__/chunks/libs/d3-shape.mjs +0 -1
- package/__app__/chunks/libs/fast-equals.mjs +0 -1
- package/__app__/chunks/libs/framer-motion.mjs +0 -9
- package/__app__/chunks/libs/html-to-image.mjs +0 -2
- package/__app__/chunks/libs/motion-dom.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/nanostores.mjs +0 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
- package/__app__/chunks/libs/remeda.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/libs/zod.mjs +0 -39
- package/__app__/chunks/rolldown-runtime.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/styles.css.mjs +0 -1
- package/__app__/chunks/useLikeC4Project.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
- package/__app__/src/pages/EmbedPage.mjs +0 -1
- package/__app__/src/pages/ExportPage.mjs +0 -1
- package/__app__/src/pages/ProjectsOverview.mjs +0 -1
- package/__app__/src/pages/ViewAsD2.mjs +0 -1
- package/__app__/src/pages/ViewAsDot.mjs +0 -1
- package/__app__/src/pages/ViewAsMmd.mjs +0 -1
- package/__app__/src/pages/ViewAsPuml.mjs +0 -1
- package/__app__/src/pages/ViewEditor.mjs +0 -1
- package/__app__/src/pages/ViewReact.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
- package/dist/chunks/libs/@hono/mcp.mjs +0 -45
- package/dist/chunks/libs/@hono/node-server.mjs +0 -1
- package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/chunks/libs/ajv.mjs +0 -1
- package/dist/chunks/libs/ansi-align.mjs +0 -2
- package/dist/chunks/libs/ansi-regex.mjs +0 -1
- package/dist/chunks/libs/ansi-styles.mjs +0 -1
- package/dist/chunks/libs/atomically.mjs +0 -1
- package/dist/chunks/libs/boxen.mjs +0 -22
- package/dist/chunks/libs/conf.mjs +0 -1
- package/dist/chunks/libs/defu.mjs +0 -1
- package/dist/chunks/libs/destr.mjs +0 -1
- package/dist/chunks/libs/find-up-simple.mjs +0 -1
- package/dist/chunks/libs/get-port.mjs +0 -1
- package/dist/chunks/libs/hono.mjs +0 -1
- package/dist/chunks/libs/is-docker.mjs +0 -1
- package/dist/chunks/libs/is-error-instance.mjs +0 -1
- package/dist/chunks/libs/is-inside-container.mjs +0 -1
- package/dist/chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/chunks/libs/isexe.mjs +0 -1
- package/dist/chunks/libs/ky.mjs +0 -3
- package/dist/chunks/libs/p-debounce.mjs +0 -1
- package/dist/chunks/libs/p-limit.mjs +0 -1
- package/dist/chunks/libs/p-timeout.mjs +0 -1
- package/dist/chunks/libs/package-up.mjs +0 -1
- package/dist/chunks/libs/parse-ms.mjs +0 -1
- package/dist/chunks/libs/safe-stringify.mjs +0 -1
- package/dist/chunks/libs/strip-indent.mjs +0 -1
- package/dist/chunks/libs/tinyrainbow.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/chunks/libs/ts-graphviz.mjs +0 -4
- package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/chunks/libs/word-wrap.mjs +0 -12
- package/dist/chunks/plugin.mjs +0 -400
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
package/react/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import { Color } from '@likec4/core/types';
|
|
|
9
9
|
import { ComputedNodeStyle } from '@likec4/core/types';
|
|
10
10
|
import { ComputedNodeStyle as ComputedNodeStyle_2 } from '@likec4/core';
|
|
11
11
|
import { Context as Context_4 } from 'react';
|
|
12
|
+
import { ControlButton } from '@xyflow/react';
|
|
12
13
|
import { CSSProperties } from 'react';
|
|
13
14
|
import { DependencyList } from 'react';
|
|
14
15
|
import { DeploymentFqn } from '@likec4/core/types';
|
|
@@ -41,8 +42,9 @@ import { FunctionComponent } from 'react';
|
|
|
41
42
|
import { HTMLAttributes } from 'react';
|
|
42
43
|
import { HTMLMotionProps } from 'motion/react';
|
|
43
44
|
import { IconUrl } from '@likec4/core/types';
|
|
44
|
-
import { JSX } from 'react
|
|
45
|
-
import {
|
|
45
|
+
import { JSX } from 'react';
|
|
46
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
47
|
+
import { JsxStyleProps } from '../../styled-system/types';
|
|
46
48
|
import { LayoutedProjectsView } from '@likec4/core/compute-view';
|
|
47
49
|
import { LayoutedView } from '@likec4/core/types';
|
|
48
50
|
import { LayoutType } from '@likec4/core/types';
|
|
@@ -50,13 +52,16 @@ import { LikeC4Model } from '@likec4/core/model';
|
|
|
50
52
|
import { LikeC4Project } from '@likec4/core/types';
|
|
51
53
|
import { LikeC4Styles } from '@likec4/core/styles';
|
|
52
54
|
import { LikeC4ViewModel } from '@likec4/core/model';
|
|
55
|
+
import { MantineProviderProps } from '@mantine/core';
|
|
53
56
|
import { MarkdownOrString } from '@likec4/core/types';
|
|
54
57
|
import { MarkdownOrString as MarkdownOrString_2 } from '@likec4/core';
|
|
55
58
|
import { MemoExoticComponent } from 'react';
|
|
59
|
+
import { MiniMapNodeProps } from '@xyflow/react';
|
|
60
|
+
import { MiniMapProps } from '@xyflow/react';
|
|
56
61
|
import { MotionNodeLayoutOptions } from 'motion/react';
|
|
57
62
|
import { MotionStyle } from 'motion/react';
|
|
58
63
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
59
|
-
import { NavigationPanelRecipe } from '
|
|
64
|
+
import { NavigationPanelRecipe } from '../../styled-system/recipes';
|
|
60
65
|
import { Node as Node_2 } from '@xyflow/react';
|
|
61
66
|
import { NodeChange } from '@xyflow/system';
|
|
62
67
|
import { NodeChange as NodeChange_2 } from '@xyflow/react';
|
|
@@ -65,12 +70,15 @@ import { NodeId as NodeId_3 } from '@likec4/core';
|
|
|
65
70
|
import { NodeModel } from '@likec4/core/model';
|
|
66
71
|
import { NodeNotation } from '@likec4/core/types';
|
|
67
72
|
import { NodeProps } from '@xyflow/react';
|
|
73
|
+
import { NodeToolbar } from '@xyflow/react';
|
|
68
74
|
import { NodeToolbarProps } from '@xyflow/react';
|
|
69
75
|
import { NonEmptyArray } from '@likec4/core/types';
|
|
70
76
|
import { NonEmptyObject } from 'type-fest';
|
|
71
77
|
import { NonEmptyReadonlyArray } from '@likec4/core/types';
|
|
72
78
|
import { OptionalKeysOf } from 'type-fest';
|
|
79
|
+
import { PanelPosition } from '@xyflow/system';
|
|
73
80
|
import { PartialDeep } from 'type-fest';
|
|
81
|
+
import { Position } from '@xyflow/react';
|
|
74
82
|
import { ProjectId } from '@likec4/core/types';
|
|
75
83
|
import { ProjectId as ProjectId_2 } from '@likec4/core';
|
|
76
84
|
import { PropsWithChildren } from 'react';
|
|
@@ -89,8 +97,8 @@ import { SetRequired } from 'type-fest';
|
|
|
89
97
|
import { Simplify } from 'type-fest';
|
|
90
98
|
import { SimplifyDeep } from 'type-fest';
|
|
91
99
|
import { StepEdgeId } from '@likec4/core/types';
|
|
92
|
-
import { StyleContextConsumer } from '
|
|
93
|
-
import { StyleContextProvider } from '
|
|
100
|
+
import { StyleContextConsumer } from '../../styled-system/jsx';
|
|
101
|
+
import { StyleContextProvider } from '../../styled-system/jsx';
|
|
94
102
|
import type * as t from '@likec4/core/types';
|
|
95
103
|
import { UnknownLayouted as UnknownLayouted_2 } from '@likec4/core/types';
|
|
96
104
|
import { UnstyledButtonProps } from '@mantine/core';
|
|
@@ -98,6 +106,7 @@ import { ViewChange } from '@likec4/core/types';
|
|
|
98
106
|
import { ViewId } from '@likec4/core/types';
|
|
99
107
|
import { ViewId as ViewId_3 } from '@likec4/core';
|
|
100
108
|
import { Viewport } from '@xyflow/system';
|
|
109
|
+
import { ViewportPortal } from '@xyflow/react';
|
|
101
110
|
import { WhereOperator } from '@likec4/core/types';
|
|
102
111
|
import { Without } from 'type-fest/source/merge-exclusive';
|
|
103
112
|
import { XYPosition } from '@xyflow/system';
|
|
@@ -525,7 +534,7 @@ declare interface ActorSystem<T extends ActorSystemInfo> {
|
|
|
525
534
|
get: <K extends keyof T['actors']>(key: K) => T['actors'][K] | undefined;
|
|
526
535
|
getAll: () => Partial<T['actors']>;
|
|
527
536
|
inspect: (observer: Observer<InspectionEvent> | ((inspectionEvent: InspectionEvent) => void)) => Subscription;
|
|
528
|
-
scheduler:
|
|
537
|
+
scheduler: Scheduler_2;
|
|
529
538
|
getSnapshot: () => {
|
|
530
539
|
_scheduledEvents: Record<string, ScheduledEvent>;
|
|
531
540
|
};
|
|
@@ -856,6 +865,8 @@ export declare function DefaultHandles({ direction }: {
|
|
|
856
865
|
direction?: AutoLayoutDirection | undefined;
|
|
857
866
|
}): JSX.Element;
|
|
858
867
|
|
|
868
|
+
export declare function DefaultMantineProvider({ children, theme, ...props }: MantineProviderProps): JSX.Element;
|
|
869
|
+
|
|
859
870
|
declare type Delay<TDelay extends string> = TDelay | number;
|
|
860
871
|
|
|
861
872
|
declare type DelayConfig<TContext extends MachineContext, TExpressionEvent extends EventObject, TParams extends ParameterizedObject['params'] | undefined, TEvent extends EventObject> = number | DelayExpr<TContext, TExpressionEvent, TParams, TEvent>;
|
|
@@ -991,7 +1002,21 @@ export declare interface DiagramApi<A extends Any_3 = Unknown_2> {
|
|
|
991
1002
|
* @warning Do not use in render phase
|
|
992
1003
|
*/
|
|
993
1004
|
readonly currentView: t.DiagramView<A>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Editor actor reference
|
|
1007
|
+
* @warning Do not use in render phase
|
|
1008
|
+
*/
|
|
1009
|
+
editorActor(): EditorActorRef;
|
|
1010
|
+
/**
|
|
1011
|
+
* Overlays actor reference
|
|
1012
|
+
* @warning Do not use in render phase
|
|
1013
|
+
*/
|
|
994
1014
|
overlays(): OverlaysActorRef;
|
|
1015
|
+
/**
|
|
1016
|
+
* Search actor reference
|
|
1017
|
+
* @warning Do not use in render phase
|
|
1018
|
+
*/
|
|
1019
|
+
searchActor(): SearchActorRef;
|
|
995
1020
|
/**
|
|
996
1021
|
* Send event to diagram actor
|
|
997
1022
|
*/
|
|
@@ -1425,16 +1450,20 @@ declare type EdgeId_3 = t.aux.EdgeId;
|
|
|
1425
1450
|
|
|
1426
1451
|
declare interface EditorActorContext {
|
|
1427
1452
|
viewId: t.ViewId;
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1453
|
+
history: LinkedSnapshot | null;
|
|
1454
|
+
redo: LinkedSnapshot | null;
|
|
1455
|
+
editing: null | {
|
|
1456
|
+
/**
|
|
1457
|
+
* The subject of the edit
|
|
1458
|
+
*/
|
|
1459
|
+
subject: 'node' | 'edge';
|
|
1460
|
+
/**
|
|
1461
|
+
* The state before editing started
|
|
1462
|
+
*/
|
|
1463
|
+
before: Snapshot_2;
|
|
1464
|
+
};
|
|
1465
|
+
syncQueue: Array<SyncOp>;
|
|
1466
|
+
processing: Exclude<SyncOp, 'sync-snapshot'> | null;
|
|
1438
1467
|
}
|
|
1439
1468
|
|
|
1440
1469
|
declare type EditorActorEmitedEvent = {
|
|
@@ -1442,31 +1471,39 @@ declare type EditorActorEmitedEvent = {
|
|
|
1442
1471
|
};
|
|
1443
1472
|
|
|
1444
1473
|
declare type EditorActorEvent = {
|
|
1445
|
-
type: '
|
|
1446
|
-
} | {
|
|
1447
|
-
type: 'change';
|
|
1474
|
+
type: 'change.view';
|
|
1448
1475
|
change: t.ViewChange;
|
|
1449
1476
|
} | {
|
|
1450
|
-
type: '
|
|
1451
|
-
|
|
1477
|
+
type: 'change.semantic-layout';
|
|
1478
|
+
} | {
|
|
1479
|
+
type: 'change.latest-to-manual';
|
|
1452
1480
|
} | {
|
|
1453
|
-
type: '
|
|
1454
|
-
wasChanged?: boolean;
|
|
1481
|
+
type: 'change.sync-snapshot';
|
|
1455
1482
|
} | {
|
|
1456
|
-
type: '
|
|
1483
|
+
type: 'delete.nodes-edges';
|
|
1484
|
+
nodeIds: t.NodeId[];
|
|
1485
|
+
edgeIds: t.EdgeId[];
|
|
1457
1486
|
} | {
|
|
1458
|
-
type: '
|
|
1487
|
+
type: 'view.synched';
|
|
1459
1488
|
} | {
|
|
1460
1489
|
type: 'cancel';
|
|
1461
1490
|
} | {
|
|
1462
|
-
type: '
|
|
1491
|
+
type: 'edit.move.start';
|
|
1492
|
+
subject: 'node' | 'edge';
|
|
1493
|
+
} | {
|
|
1494
|
+
type: 'edit.move.end';
|
|
1495
|
+
} | {
|
|
1496
|
+
type: 'edit.move.cancel';
|
|
1463
1497
|
} | HotKeyEvent_2;
|
|
1464
1498
|
|
|
1465
1499
|
declare interface EditorActorInput {
|
|
1466
1500
|
viewId: t.ViewId;
|
|
1467
1501
|
}
|
|
1468
1502
|
|
|
1469
|
-
declare interface EditorActorLogic extends StateMachine<EditorActorContext, EditorActorEvent, any, any, any, any, any,
|
|
1503
|
+
declare interface EditorActorLogic extends StateMachine<EditorActorContext, EditorActorEvent, any, any, any, any, any, {
|
|
1504
|
+
editor: 'idle' | 'moving';
|
|
1505
|
+
syncQueue: 'idle' | 'pending' | 'suspended' | 'process';
|
|
1506
|
+
}, EditorActorStateTag, EditorActorInput, any, EditorActorEmitedEvent, any, any> {
|
|
1470
1507
|
}
|
|
1471
1508
|
|
|
1472
1509
|
declare interface EditorActorRef extends ActorRef<EditorActorSnapshot, EditorActorEvent, EditorActorEmitedEvent> {
|
|
@@ -1474,6 +1511,8 @@ declare interface EditorActorRef extends ActorRef<EditorActorSnapshot, EditorAct
|
|
|
1474
1511
|
|
|
1475
1512
|
declare type EditorActorSnapshot = SnapshotFrom<EditorActorLogic>;
|
|
1476
1513
|
|
|
1514
|
+
declare type EditorActorStateTag = 'pending' | 'busy' | 'ai-semantic-layout';
|
|
1515
|
+
|
|
1477
1516
|
declare type EffectCallback_2 = (...args: any[]) => any;
|
|
1478
1517
|
|
|
1479
1518
|
declare type EffectHook<Callback extends EffectCallback_2 = EffectCallback_2, Deps extends DependencyList | undefined = DependencyList | undefined, RestArgs extends any[] = any[]> = ((...args: [Callback, Deps, ...RestArgs]) => void) | ((...args: [Callback, Deps]) => void);
|
|
@@ -1912,19 +1951,19 @@ declare type ExtractEvent<TEvent extends EventObject, TDescriptor extends EventD
|
|
|
1912
1951
|
|
|
1913
1952
|
export declare type FeatureName = typeof FeatureNames[number];
|
|
1914
1953
|
|
|
1915
|
-
declare const FeatureNames: readonly ["Controls", "Editor", "ReadOnly", "FocusMode", "NavigateTo", "ElementDetails", "RelationshipDetails", "RelationshipBrowser", "Search", "NavigationButtons", "Notations", "DynamicViewWalkthrough", "FitView", "CompareWithLatest", "Notes", "Vscode", "ElementTags"];
|
|
1954
|
+
declare const FeatureNames: readonly ["Controls", "Editor", "AISemanticLayout", "ReadOnly", "FocusMode", "NavigateTo", "ElementDetails", "RelationshipDetails", "RelationshipBrowser", "Search", "NavigationButtons", "Notations", "DynamicViewWalkthrough", "FitView", "CompareWithLatest", "Notes", "Vscode", "ElementTags"];
|
|
1916
1955
|
|
|
1917
1956
|
declare type Fqn_2<A> = t.aux.Fqn<A>;
|
|
1918
1957
|
|
|
1919
1958
|
declare type Fqn_4<A> = t.aux.Fqn<A>;
|
|
1920
1959
|
|
|
1921
|
-
export declare
|
|
1960
|
+
export declare function FramerMotionConfig({ reducedMotion, children, }: PropsWithChildren<{
|
|
1922
1961
|
/**
|
|
1923
1962
|
* If true, will respect the device prefersReducedMotion setting by switching
|
|
1924
1963
|
* transform animations off.
|
|
1925
1964
|
*/
|
|
1926
|
-
reducedMotion?:
|
|
1927
|
-
}>)
|
|
1965
|
+
reducedMotion?: 'always' | 'never' | 'user' | undefined;
|
|
1966
|
+
}>): JSX.Element;
|
|
1928
1967
|
|
|
1929
1968
|
declare type GetConcreteByKey<T, TKey extends keyof T, TValue extends T[TKey]> = T & Record<TKey, TValue>;
|
|
1930
1969
|
|
|
@@ -1950,14 +1989,6 @@ declare type GuardPredicate<TContext extends MachineContext, TExpressionEvent ex
|
|
|
1950
1989
|
_out_TGuard?: TGuard;
|
|
1951
1990
|
};
|
|
1952
1991
|
|
|
1953
|
-
declare type HistorySnapshot = {
|
|
1954
|
-
view: t.LayoutedView;
|
|
1955
|
-
change: t.ViewChange.SaveViewSnapshot;
|
|
1956
|
-
xynodes: Types.Node[];
|
|
1957
|
-
xyedges: Types.Edge[];
|
|
1958
|
-
synched: boolean;
|
|
1959
|
-
};
|
|
1960
|
-
|
|
1961
1992
|
declare type HistoryValue<TContext extends MachineContext, TEvent extends EventObject> = Record<string, Array<StateNode<TContext, TEvent>>>;
|
|
1962
1993
|
|
|
1963
1994
|
declare type HotKeyEvent = {
|
|
@@ -1965,7 +1996,7 @@ declare type HotKeyEvent = {
|
|
|
1965
1996
|
};
|
|
1966
1997
|
|
|
1967
1998
|
declare type HotKeyEvent_2 = {
|
|
1968
|
-
type: 'undo';
|
|
1999
|
+
type: 'undo' | 'redo';
|
|
1969
2000
|
};
|
|
1970
2001
|
|
|
1971
2002
|
declare type IconProps = {
|
|
@@ -2008,15 +2039,15 @@ export declare function IconRendererProvider({ value, children, }: PropsWithChil
|
|
|
2008
2039
|
export declare function IfEnabled({ feature, children, and, }: PropsWithChildren<{
|
|
2009
2040
|
feature: FeatureName;
|
|
2010
2041
|
and?: boolean;
|
|
2011
|
-
}>):
|
|
2042
|
+
}>): JSX_2.Element | null;
|
|
2012
2043
|
|
|
2013
2044
|
export declare function IfNotEnabled({ feature, children }: PropsWithChildren<{
|
|
2014
2045
|
feature: FeatureName;
|
|
2015
|
-
}>):
|
|
2046
|
+
}>): JSX_2.Element | null;
|
|
2016
2047
|
|
|
2017
|
-
export declare function IfNotReadOnly({ children }: PropsWithChildren):
|
|
2048
|
+
export declare function IfNotReadOnly({ children }: PropsWithChildren): JSX_2.Element | null;
|
|
2018
2049
|
|
|
2019
|
-
export declare function IfReadOnly({ children }: PropsWithChildren):
|
|
2050
|
+
export declare function IfReadOnly({ children }: PropsWithChildren): JSX_2.Element | null;
|
|
2020
2051
|
|
|
2021
2052
|
declare type InitialContext<TContext extends MachineContext, TActor extends ProvidedActor, TInput, TEvent extends EventObject> = TContext | ContextFactory<TContext, TActor, TInput, TEvent>;
|
|
2022
2053
|
|
|
@@ -2106,7 +2137,13 @@ declare interface InspectedSnapshotEvent extends BaseInspectionEventProperties {
|
|
|
2106
2137
|
snapshot: Snapshot<unknown>;
|
|
2107
2138
|
}
|
|
2108
2139
|
|
|
2109
|
-
declare
|
|
2140
|
+
declare interface InspectedTransitionEvent extends BaseInspectionEventProperties {
|
|
2141
|
+
type: '@xstate.transition';
|
|
2142
|
+
event: AnyEventObject;
|
|
2143
|
+
snapshot: Snapshot<unknown>;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
declare type InspectionEvent = InspectedSnapshotEvent | InspectedEventEvent | InspectedActorEvent | InspectedTransitionEvent | InspectedMicrostepEvent | InspectedActionEvent;
|
|
2110
2147
|
|
|
2111
2148
|
declare type InternalMachineImplementations<TTypes extends StateMachineTypes> = {
|
|
2112
2149
|
actions?: MachineImplementationsActions<TTypes>;
|
|
@@ -2325,7 +2362,7 @@ export declare type LikeC4ColorScheme = 'light' | 'dark';
|
|
|
2325
2362
|
*
|
|
2326
2363
|
* Use {@link ReactLikeC4} or {@link LikeC4View} for ready-to-use component
|
|
2327
2364
|
*/
|
|
2328
|
-
export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onLogoClick, onLayoutTypeChange, onInitialized, view, className, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableCompareWithLatest, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, enableNotes, initialWidth, initialHeight, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>):
|
|
2365
|
+
export declare function LikeC4Diagram<A extends Any = Any>({ onCanvasClick, onCanvasContextMenu, onCanvasDblClick, onEdgeClick, onEdgeContextMenu, onNavigateTo, onNodeClick, onNodeContextMenu, onOpenSource, onLogoClick, onLayoutTypeChange, onInitialized, view, className, controls, fitView, fitViewPadding: _fitViewPadding, pannable, zoomable, background, enableElementTags, enableFocusMode, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableCompareWithLatest, nodesSelectable, enableNotations, showNavigationButtons, enableDynamicViewWalkthrough, dynamicViewVariant, enableSearch, enableNotes, initialWidth, initialHeight, reduceGraphics, renderIcon, where, reactFlowProps, renderNodes, children, }: LikeC4DiagramProps<A>): JSX_2.Element;
|
|
2329
2366
|
|
|
2330
2367
|
export declare interface LikeC4DiagramEventHandlers<A extends Any_2 = Unknown> {
|
|
2331
2368
|
onNavigateTo?: OnNavigateTo<A> | null | undefined;
|
|
@@ -2518,6 +2555,11 @@ export declare type LikeC4DiagramProps<A extends Any = Any> = PropsWithChildren<
|
|
|
2518
2555
|
* Callbacks from LikeC4 Editor.
|
|
2519
2556
|
*/
|
|
2520
2557
|
export declare interface LikeC4EditorCallbacks {
|
|
2558
|
+
/**
|
|
2559
|
+
* Apply semantic layout to a view (if AI is available)
|
|
2560
|
+
* See vite-plugin settings for more details
|
|
2561
|
+
*/
|
|
2562
|
+
applySemanticLayout?: undefined | ((viewId: t.ViewId) => Promise<void>);
|
|
2521
2563
|
/**
|
|
2522
2564
|
* Fetch a view by its ID and layout type.
|
|
2523
2565
|
*
|
|
@@ -2561,7 +2603,7 @@ export declare type LikeC4EditorProviderProps = PropsWithChildren<{
|
|
|
2561
2603
|
/**
|
|
2562
2604
|
* Ensures LikeC4Model context
|
|
2563
2605
|
*/
|
|
2564
|
-
export declare function LikeC4ModelProvider({ children, likec4model, }: PropsWithChildren<LikeC4ModelProviderProps>):
|
|
2606
|
+
export declare function LikeC4ModelProvider({ children, likec4model, }: PropsWithChildren<LikeC4ModelProviderProps>): JSX_2.Element;
|
|
2565
2607
|
|
|
2566
2608
|
export declare interface LikeC4ModelProviderProps {
|
|
2567
2609
|
likec4model: LikeC4Model<any>;
|
|
@@ -2572,7 +2614,7 @@ declare type LikeC4ProjectsContext = {
|
|
|
2572
2614
|
onProjectChange: (id: ProjectId) => void;
|
|
2573
2615
|
};
|
|
2574
2616
|
|
|
2575
|
-
export declare function LikeC4ProjectsOverview({ view, className, onNavigateToProject, ...props }: LikeC4ProjectsOverviewProps):
|
|
2617
|
+
export declare function LikeC4ProjectsOverview({ view, className, onNavigateToProject, ...props }: LikeC4ProjectsOverviewProps): JSX_2.Element;
|
|
2576
2618
|
|
|
2577
2619
|
export declare type LikeC4ProjectsOverviewProps = Simplify<ProjectsOverviewProps & {
|
|
2578
2620
|
className?: string;
|
|
@@ -2582,7 +2624,7 @@ export declare type LikeC4ProjectsOverviewProps = Simplify<ProjectsOverviewProps
|
|
|
2582
2624
|
/**
|
|
2583
2625
|
* Ensures LikeC4Projects context
|
|
2584
2626
|
*/
|
|
2585
|
-
export declare function LikeC4ProjectsProvider({ children, projects, onProjectChange: _onProjectChange, }: PropsWithChildren<LikeC4ProjectsProviderProps>):
|
|
2627
|
+
export declare function LikeC4ProjectsProvider({ children, projects, onProjectChange: _onProjectChange, }: PropsWithChildren<LikeC4ProjectsProviderProps>): JSX_2.Element;
|
|
2586
2628
|
|
|
2587
2629
|
export declare interface LikeC4ProjectsProviderProps {
|
|
2588
2630
|
/**
|
|
@@ -2604,7 +2646,7 @@ export declare interface LikeC4ProjectsProviderProps {
|
|
|
2604
2646
|
*
|
|
2605
2647
|
* Component is wrapped in ShadowRoot to isolate styles.
|
|
2606
2648
|
*/
|
|
2607
|
-
export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, layoutType: initialLayoutType, background, browser, showNavigationButtons, enableNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableNotes, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>):
|
|
2649
|
+
export declare function LikeC4View<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, className, pannable, zoomable, keepAspectRatio, colorScheme, injectFontCss, controls, layoutType: initialLayoutType, background, browser, showNavigationButtons, enableNotations, enableFocusMode, enableDynamicViewWalkthrough, enableElementDetails, enableRelationshipDetails, enableRelationshipBrowser, enableNotes, reduceGraphics, mantineTheme, styleNonce, style, reactFlowProps, renderNodes, children, ...props }: LikeC4ViewProps<A>): JSX_2.Element;
|
|
2608
2650
|
|
|
2609
2651
|
export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayouted> {
|
|
2610
2652
|
/**
|
|
@@ -2783,6 +2825,11 @@ export declare interface LikeC4ViewProps<A extends t.aux.Any = t.aux.UnknownLayo
|
|
|
2783
2825
|
|
|
2784
2826
|
declare type LinearAlignmentMode = 'Left' | 'Center' | 'Right' | 'Top' | 'Middle' | 'Bottom';
|
|
2785
2827
|
|
|
2828
|
+
declare type LinkedSnapshot = {
|
|
2829
|
+
head: Snapshot_2;
|
|
2830
|
+
tail: LinkedSnapshot | null;
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2786
2833
|
declare type LowInfer<T> = T & NonNullable<unknown>;
|
|
2787
2834
|
|
|
2788
2835
|
declare type MachineConfig<TContext extends MachineContext, TEvent extends EventObject, TActor extends ProvidedActor = ProvidedActor, TAction extends ParameterizedObject = ParameterizedObject, TGuard extends ParameterizedObject = ParameterizedObject, TDelay extends string = string, TTag extends string = string, TInput = any, TOutput = unknown, TEmitted extends EventObject = EventObject, TMeta extends MetaObject = MetaObject> = (Omit<StateNodeConfig<DoNotInfer<TContext>, DoNotInfer<TEvent>, DoNotInfer<TActor>, DoNotInfer<TAction>, DoNotInfer<TGuard>, DoNotInfer<TDelay>, DoNotInfer<TTag>, DoNotInfer<TOutput>, DoNotInfer<TEmitted>, DoNotInfer<TMeta>>, 'output'> & {
|
|
@@ -2790,6 +2837,8 @@ declare type MachineConfig<TContext extends MachineContext, TEvent extends Event
|
|
|
2790
2837
|
/** The machine's own version. */
|
|
2791
2838
|
version?: string;
|
|
2792
2839
|
output?: Mapper<TContext, DoneStateEvent, TOutput, TEvent> | TOutput;
|
|
2840
|
+
/** Runtime options for machine execution. */
|
|
2841
|
+
options?: MachineOptions;
|
|
2793
2842
|
}) & (MachineContext extends TContext ? {
|
|
2794
2843
|
context?: InitialContext<LowInfer<TContext>, TActor, TInput, TEvent>;
|
|
2795
2844
|
} : {
|
|
@@ -2825,6 +2874,32 @@ declare interface MachineImplementationsSimplified<TContext extends MachineConte
|
|
|
2825
2874
|
delays: DelayFunctionMap<TContext, TEvent, TAction>;
|
|
2826
2875
|
}
|
|
2827
2876
|
|
|
2877
|
+
/**
|
|
2878
|
+
* Runtime options for state machine execution.
|
|
2879
|
+
*
|
|
2880
|
+
* @example
|
|
2881
|
+
*
|
|
2882
|
+
* ```ts
|
|
2883
|
+
* const machine = createMachine({
|
|
2884
|
+
* // ... machine config
|
|
2885
|
+
* options: {
|
|
2886
|
+
* maxIterations: 5000
|
|
2887
|
+
* // other runtime options can be added here
|
|
2888
|
+
* }
|
|
2889
|
+
* });
|
|
2890
|
+
* ```
|
|
2891
|
+
*/
|
|
2892
|
+
declare interface MachineOptions {
|
|
2893
|
+
/**
|
|
2894
|
+
* Maximum number of microsteps allowed before throwing an infinite loop
|
|
2895
|
+
* error. Defaults to `Infinity` (no limit). Set to a finite number to enable
|
|
2896
|
+
* infinite loop detection.
|
|
2897
|
+
*
|
|
2898
|
+
* @default Infinity
|
|
2899
|
+
*/
|
|
2900
|
+
maxIterations?: number;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2828
2903
|
declare type MachineSnapshot<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput, TMeta extends MetaObject, TStateSchema extends StateSchema> = ActiveMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | DoneMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | ErrorMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema> | StoppedMachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput, TMeta, TStateSchema>;
|
|
2829
2904
|
|
|
2830
2905
|
declare interface MachineSnapshotBase<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput, TMeta, TStateSchema extends StateSchema = StateSchema> {
|
|
@@ -3089,7 +3164,15 @@ export declare const Overlay: ForwardRefExoticComponent<{
|
|
|
3089
3164
|
backdrop?: {
|
|
3090
3165
|
opacity?: number;
|
|
3091
3166
|
};
|
|
3167
|
+
/**
|
|
3168
|
+
* Delay before showing the overlay content (in milliseconds) - helps to avoid flickering
|
|
3169
|
+
* Default: `130ms`
|
|
3170
|
+
* If set to `0`, the content will be shown immediately
|
|
3171
|
+
*/
|
|
3092
3172
|
openDelay?: number;
|
|
3173
|
+
/**
|
|
3174
|
+
* Called when the overlay is closed by outside click or escape key
|
|
3175
|
+
*/
|
|
3093
3176
|
onClose: () => void;
|
|
3094
3177
|
onClick?: never;
|
|
3095
3178
|
} & {
|
|
@@ -3131,7 +3214,15 @@ export declare type OverlayProps = PropsWithChildren<{
|
|
|
3131
3214
|
backdrop?: {
|
|
3132
3215
|
opacity?: number;
|
|
3133
3216
|
};
|
|
3217
|
+
/**
|
|
3218
|
+
* Delay before showing the overlay content (in milliseconds) - helps to avoid flickering
|
|
3219
|
+
* Default: `130ms`
|
|
3220
|
+
* If set to `0`, the content will be shown immediately
|
|
3221
|
+
*/
|
|
3134
3222
|
openDelay?: number;
|
|
3223
|
+
/**
|
|
3224
|
+
* Called when the overlay is closed by outside click or escape key
|
|
3225
|
+
*/
|
|
3135
3226
|
onClose: () => void;
|
|
3136
3227
|
onClick?: never;
|
|
3137
3228
|
}>;
|
|
@@ -3252,7 +3343,7 @@ declare interface ProvidedActor {
|
|
|
3252
3343
|
*
|
|
3253
3344
|
* Component is wrapped in ShadowRoot to isolate styles.
|
|
3254
3345
|
*/
|
|
3255
|
-
export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, layoutType: initialLayoutType, className, colorScheme, injectFontCss, enableNotations, keepAspectRatio, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>):
|
|
3346
|
+
export declare function ReactLikeC4<A extends t.aux.Any = t.aux.UnknownLayouted>({ viewId, layoutType: initialLayoutType, className, colorScheme, injectFontCss, enableNotations, keepAspectRatio, style, mantineTheme, styleNonce, ...props }: ReactLikeC4Props<A>): JSX_2.Element;
|
|
3256
3347
|
|
|
3257
3348
|
export declare type ReactLikeC4Props<A extends t.aux.Any = t.aux.UnknownLayouted> = {
|
|
3258
3349
|
viewId: t.aux.ViewId<A>;
|
|
@@ -3503,7 +3594,7 @@ declare interface ScheduledEvent {
|
|
|
3503
3594
|
target: AnyActorRef;
|
|
3504
3595
|
}
|
|
3505
3596
|
|
|
3506
|
-
declare interface
|
|
3597
|
+
declare interface Scheduler_2 {
|
|
3507
3598
|
schedule(source: AnyActorRef, target: AnyActorRef, event: EventObject, delay: number, id: string | undefined): void;
|
|
3508
3599
|
cancel(source: AnyActorRef, id: string): void;
|
|
3509
3600
|
cancelAll(actorRef: AnyActorRef): void;
|
|
@@ -3567,7 +3658,7 @@ export declare interface SearchContextValue {
|
|
|
3567
3658
|
|
|
3568
3659
|
export declare function SearchControl({ className, ...others }: SearchControlProps): JSX.Element;
|
|
3569
3660
|
|
|
3570
|
-
declare interface SearchControlProps extends UnstyledButtonProps, ElementProps<'button'> {
|
|
3661
|
+
declare interface SearchControlProps extends Omit<UnstyledButtonProps, 'className'>, ElementProps<'button'> {
|
|
3571
3662
|
}
|
|
3572
3663
|
|
|
3573
3664
|
export declare const searchDialogCss: string;
|
|
@@ -3576,7 +3667,7 @@ export declare const searchDialogCss: string;
|
|
|
3576
3667
|
* The shared search panel content used by both diagram and overview search.
|
|
3577
3668
|
* Must be rendered inside a SearchContext.Provider.
|
|
3578
3669
|
*/
|
|
3579
|
-
export declare const SearchPanelContent:
|
|
3670
|
+
export declare const SearchPanelContent: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
|
|
3580
3671
|
|
|
3581
3672
|
export declare function SequenceActorNode(props: Types.NodeProps<'seq-actor'>): JSX.Element;
|
|
3582
3673
|
|
|
@@ -3601,24 +3692,6 @@ declare function setHovered<T extends WithHovered>(value: T, hovered: boolean):
|
|
|
3601
3692
|
|
|
3602
3693
|
declare function setHovered(hovered: boolean): <T extends WithHovered>(value: T) => T;
|
|
3603
3694
|
|
|
3604
|
-
declare const ShadowRoot_2: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3605
|
-
injectFontCss?: boolean | undefined;
|
|
3606
|
-
styleNonce?: string | (() => string) | undefined;
|
|
3607
|
-
mode?: "open" | "closed";
|
|
3608
|
-
delegatesFocus?: boolean;
|
|
3609
|
-
colorScheme?: "light" | "dark" | undefined;
|
|
3610
|
-
keepAspectRatio?: false | undefined | {
|
|
3611
|
-
width: number;
|
|
3612
|
-
height: number;
|
|
3613
|
-
};
|
|
3614
|
-
/**
|
|
3615
|
-
* Mantine theme override to apply within the shadow root
|
|
3616
|
-
* @see https://mantine.dev/theming/mantine-provider/#theme-prop
|
|
3617
|
-
*/
|
|
3618
|
-
theme?: any;
|
|
3619
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
3620
|
-
export { ShadowRoot_2 as ShadowRoot }
|
|
3621
|
-
|
|
3622
3695
|
declare type SingleOrArray<T> = readonly T[] | T;
|
|
3623
3696
|
|
|
3624
3697
|
declare type SlotProps = {
|
|
@@ -3646,6 +3719,13 @@ declare type Snapshot<TOutput> = {
|
|
|
3646
3719
|
error: undefined;
|
|
3647
3720
|
};
|
|
3648
3721
|
|
|
3722
|
+
declare type Snapshot_2 = {
|
|
3723
|
+
view: t.LayoutedView;
|
|
3724
|
+
change: t.ViewChange.SaveViewSnapshot;
|
|
3725
|
+
xynodes: Types.Node[];
|
|
3726
|
+
xyedges: Types.Edge[];
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3649
3729
|
declare interface SnapshotEvent<TSnapshot extends Snapshot<unknown> = Snapshot<unknown>> extends EventObject {
|
|
3650
3730
|
type: `xstate.snapshot.${string}`;
|
|
3651
3731
|
snapshot: TSnapshot;
|
|
@@ -3707,6 +3787,8 @@ declare class StateMachine<TContext extends MachineContext, TEvent extends Event
|
|
|
3707
3787
|
version?: string;
|
|
3708
3788
|
schemas: unknown;
|
|
3709
3789
|
implementations: MachineImplementationsSimplified<TContext, TEvent>;
|
|
3790
|
+
/** Runtime options for machine execution. */
|
|
3791
|
+
options: MachineOptions;
|
|
3710
3792
|
root: StateNode<TContext, TEvent>;
|
|
3711
3793
|
id: string;
|
|
3712
3794
|
states: StateNode<TContext, TEvent>['states'];
|
|
@@ -4079,6 +4161,8 @@ declare interface Subscription {
|
|
|
4079
4161
|
|
|
4080
4162
|
declare const symbolObservable: typeof Symbol.observable;
|
|
4081
4163
|
|
|
4164
|
+
declare type SyncOp = t.ViewChange | 'sync-snapshot' | 'apply-semantic-layout' | 'apply-latest-to-manual';
|
|
4165
|
+
|
|
4082
4166
|
declare type System = ActorSystem<{
|
|
4083
4167
|
actors: {
|
|
4084
4168
|
diagram: DiagramMachineRef;
|
|
@@ -4262,12 +4346,14 @@ export declare namespace Types {
|
|
|
4262
4346
|
export type RelationshipEdgeData = Simplify<BaseEdgeData & NonOptional<Pick<DiagramEdge, 'id' | 'label' | 'labelBBox' | 'technology' | 'points' | 'dir' | 'color' | 'line' | 'head' | 'tail' | 'navigateTo' | 'astPath' | 'drifts'>> & {
|
|
4263
4347
|
notes: MarkdownOrString | null;
|
|
4264
4348
|
labelXY: XYPosition | null;
|
|
4349
|
+
isLabelCustomized?: boolean | undefined;
|
|
4265
4350
|
controlPoints: XYPosition[] | undefined | null;
|
|
4266
4351
|
}>;
|
|
4267
4352
|
export type SequenceStepEdgeData = Simplify<BaseEdgeData & NonOptional<Pick<DiagramEdge, 'id' | 'label' | 'technology' | 'points' | 'dir' | 'color' | 'line' | 'head' | 'tail' | 'navigateTo' | 'astPath' | 'drifts'>> & {
|
|
4268
4353
|
notes: MarkdownOrString | null;
|
|
4269
4354
|
labelXY: XYPosition | null;
|
|
4270
4355
|
labelBBox: BBox;
|
|
4356
|
+
isLabelCustomized?: boolean | undefined;
|
|
4271
4357
|
controlPoints: XYPosition[] | undefined | null;
|
|
4272
4358
|
}>;
|
|
4273
4359
|
export type RelationshipEdge = BaseEdge<RelationshipEdgeData, 'relationship'>;
|
|
@@ -4543,6 +4629,21 @@ declare type WithHovered = {
|
|
|
4543
4629
|
};
|
|
4544
4630
|
};
|
|
4545
4631
|
|
|
4632
|
+
export declare const xyflow: {
|
|
4633
|
+
readonly ControlButton: typeof ControlButton;
|
|
4634
|
+
readonly MiniMap: {
|
|
4635
|
+
({ style, className, nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position, onClick, onNodeClick, pannable, zoomable, ariaLabel, inversePan, zoomStep, offsetScale, }: MiniMapProps<Types.AnyNode>): JSX.Element;
|
|
4636
|
+
displayName: string;
|
|
4637
|
+
};
|
|
4638
|
+
readonly MiniMapNode: MemoExoticComponent<({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected, onClick, }: MiniMapNodeProps) => JSX.Element>;
|
|
4639
|
+
readonly NodeToolbar: typeof NodeToolbar;
|
|
4640
|
+
readonly Panel: ForwardRefExoticComponent< HTMLAttributes<HTMLDivElement> & {
|
|
4641
|
+
position?: PanelPosition;
|
|
4642
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
4643
|
+
readonly Position: typeof Position;
|
|
4644
|
+
readonly ViewportPortal: typeof ViewportPortal;
|
|
4645
|
+
};
|
|
4646
|
+
|
|
4546
4647
|
declare type XYFLowInstance = ReactFlowInstance<RelationshipsBrowserTypes.AnyNode, RelationshipsBrowserTypes.Edge>;
|
|
4547
4648
|
|
|
4548
4649
|
declare type XYFlowInstance = ReactFlowInstance<Types.AnyNode, Types.AnyEdge>;
|
|
@@ -4564,7 +4665,7 @@ declare type XYStoreApi_3 = {
|
|
|
4564
4665
|
getState: () => XYStoreState_3;
|
|
4565
4666
|
};
|
|
4566
4667
|
|
|
4567
|
-
declare type XYStoreState = ReactFlowState<Types.AnyNode, Types.AnyEdge>;
|
|
4668
|
+
export declare type XYStoreState = ReactFlowState<Types.AnyNode, Types.AnyEdge>;
|
|
4568
4669
|
|
|
4569
4670
|
declare type XYStoreState_2 = ReactFlowState<RelationshipsBrowserTypes.AnyNode, RelationshipsBrowserTypes.Edge>;
|
|
4570
4671
|
|