@nodish/core 0.1.4 → 0.2.1

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.
Files changed (58) hide show
  1. package/LICENSE +661 -0
  2. package/dist/{vue.css → index.css} +1 -1
  3. package/dist/index.d.ts +519 -0
  4. package/dist/{vue.js → index.js} +608 -600
  5. package/package.json +13 -14
  6. package/dist/pack.d.ts +0 -326
  7. package/dist/pack.js +0 -43
  8. package/dist/src/components/AddNodePanel.vue.d.ts +0 -20
  9. package/dist/src/components/GraphInterfacePanel.vue.d.ts +0 -13
  10. package/dist/src/components/GraphNode.vue.d.ts +0 -26
  11. package/dist/src/components/GroupPanel.vue.d.ts +0 -13
  12. package/dist/src/components/InspectorPanel.vue.d.ts +0 -43
  13. package/dist/src/components/NodePanel.vue.d.ts +0 -18
  14. package/dist/src/components/NodePort.vue.d.ts +0 -21
  15. package/dist/src/components/NodeViewer.vue.d.ts +0 -14
  16. package/dist/src/components/WireLayer.vue.d.ts +0 -8
  17. package/dist/src/components/inspector/InspectorCheckboxField.vue.d.ts +0 -10
  18. package/dist/src/components/inspector/InspectorColorField.vue.d.ts +0 -12
  19. package/dist/src/components/inspector/InspectorError.vue.d.ts +0 -5
  20. package/dist/src/components/inspector/InspectorPositionField.vue.d.ts +0 -12
  21. package/dist/src/components/inspector/InspectorSection.vue.d.ts +0 -24
  22. package/dist/src/components/inspector/InspectorWidthField.vue.d.ts +0 -12
  23. package/dist/src/components/layout.d.ts +0 -26
  24. package/dist/src/components/types/NumberWidget.vue.d.ts +0 -15
  25. package/dist/src/components/types/PortValueWidget.vue.d.ts +0 -17
  26. package/dist/src/components/types/ReadonlyWidget.vue.d.ts +0 -9
  27. package/dist/src/components/types/TextWidget.vue.d.ts +0 -15
  28. package/dist/src/components/types/registerDefaultTypeWidgets.d.ts +0 -6
  29. package/dist/src/components/types/registry.d.ts +0 -13
  30. package/dist/src/pack/index.d.ts +0 -5
  31. package/dist/src/store/composite/editContext.d.ts +0 -14
  32. package/dist/src/store/composite/guards.d.ts +0 -7
  33. package/dist/src/store/composite/index.d.ts +0 -12
  34. package/dist/src/store/graph/connect.d.ts +0 -8
  35. package/dist/src/store/graph/createNodeMap.d.ts +0 -20
  36. package/dist/src/store/graph/document.d.ts +0 -25
  37. package/dist/src/store/graph/dynamicPorts.d.ts +0 -9
  38. package/dist/src/store/graph/evaluate.d.ts +0 -18
  39. package/dist/src/store/graph/expandIO.d.ts +0 -2
  40. package/dist/src/store/graph/instance.d.ts +0 -7
  41. package/dist/src/store/graph/pruneConnections.d.ts +0 -2
  42. package/dist/src/store/graph/removeNode.d.ts +0 -3
  43. package/dist/src/store/graph/stacking.d.ts +0 -5
  44. package/dist/src/store/graph/validateGraphTypes.d.ts +0 -2
  45. package/dist/src/store/interface/editor.d.ts +0 -5
  46. package/dist/src/store/interface/graphInterface.d.ts +0 -20
  47. package/dist/src/store/model.d.ts +0 -241
  48. package/dist/src/store/nodes/io.d.ts +0 -46
  49. package/dist/src/store/packs/installPack.d.ts +0 -4
  50. package/dist/src/store/registry/defineNode.d.ts +0 -50
  51. package/dist/src/store/registry/defineType.d.ts +0 -31
  52. package/dist/src/store/registry/groups.d.ts +0 -9
  53. package/dist/src/store/registry/index.d.ts +0 -39
  54. package/dist/src/store/types/effectiveWidget.d.ts +0 -4
  55. package/dist/src/store/utils/clonePlain.d.ts +0 -1
  56. package/dist/src/vue/attachLoadPack.d.ts +0 -2
  57. package/dist/src/vue/createNodeMap.d.ts +0 -11
  58. package/dist/src/vue/index.d.ts +0 -10
package/package.json CHANGED
@@ -1,29 +1,27 @@
1
1
  {
2
2
  "name": "@nodish/core",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
+ "license": "AGPL-3.0-or-later",
6
7
  "sideEffects": [
7
8
  "**/*.css"
8
9
  ],
9
10
  "files": [
10
11
  "dist"
11
12
  ],
13
+ "types": "./dist/index.d.ts",
12
14
  "exports": {
13
- "./pack": {
14
- "types": "./dist/pack.d.ts",
15
- "import": "./dist/pack.js"
16
- },
17
- "./vue": {
18
- "types": "./dist/src/vue/index.d.ts",
19
- "import": "./dist/vue.js",
20
- "style": "./dist/vue.css"
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "style": "./dist/index.css"
21
19
  }
22
20
  },
23
21
  "scripts": {
24
22
  "setup:local": "node scripts/copy-dev-to-local.mjs",
25
23
  "dev": "node scripts/copy-dev-to-local.mjs && vite --config vite.config.dev.ts",
26
- "build": "vite build --config vite.config.pack.ts && vite build --config vite.config.vue.ts && dts-bundle-generator --export-referenced-types --no-check -o dist/pack.d.ts src/pack/index.ts",
24
+ "build": "vite build",
27
25
  "typecheck": "tsc --noEmit",
28
26
  "typecheck:dev": "tsc --noEmit -p tsconfig.dev.json"
29
27
  },
@@ -31,14 +29,15 @@
31
29
  "vue": "^3.5.0"
32
30
  },
33
31
  "devDependencies": {
32
+ "@microsoft/api-extractor": "^7.58.9",
34
33
  "@types/node": "^26.0.1",
35
34
  "@vitejs/plugin-vue": "^6.0.7",
36
- "dts-bundle-generator": "^9.5.1",
35
+ "@vue/language-core": "^3.1.5",
37
36
  "typescript": "~6.0.2",
38
- "vite": "^8.0.12",
39
- "vite-plugin-dts": "^4.5.4",
37
+ "unplugin-dts": "^1.0.3",
38
+ "vite": "^8.1.2",
40
39
  "vite-plugin-lib-inject-css": "^2.2.2",
41
- "vue": "^3.5.35"
40
+ "vue": "^3.5.39"
42
41
  },
43
42
  "repository": {
44
43
  "type": "git",
package/dist/pack.d.ts DELETED
@@ -1,326 +0,0 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
- import { Component } from 'vue';
4
-
5
- /**
6
- * A publishable bundle of custom types and/or node types (npm package contents).
7
- * Load onto a {@link NodeMap} with {@link NodeMap.loadPack}.
8
- */
9
- export interface NodePack {
10
- /** Unique pack id (e.g. `"@my-org/my-pack"`). Recorded in {@link GraphDocument.extensions}. */
11
- id: string;
12
- /** Custom {@link PortTypeDefinition}s to register. */
13
- types?: TypeRegistry;
14
- /** Custom node definitions to register (authoring form). */
15
- nodeTypes?: NodeSpecRegistry;
16
- /**
17
- * Optional hook to register Vue widgets after types and nodes are merged.
18
- * Runs once per pack load.
19
- */
20
- setup?: (ctx: PackSetupContext) => void;
21
- }
22
- /** Context passed to {@link NodePack.setup} for widget registration. */
23
- export interface PackSetupContext {
24
- /**
25
- * Bind a Vue component to all editable ports of a type id.
26
- * Overrides the generic widget for that type.
27
- */
28
- registerTypeWidget: (typeId: string, component: Component) => void;
29
- /**
30
- * Bind a Vue component to a custom widget id
31
- * ({@link TypeWidgetSpec} `kind: "custom"`).
32
- */
33
- registerComponentWidget: (componentId: string, component: Component) => void;
34
- }
35
- export type NodeId = string;
36
- export type PortId = string;
37
- export type ConnectionId = string;
38
- export type NodeTypeId = string;
39
- export type NodeLocation = {
40
- x: number;
41
- y: number;
42
- };
43
- /** Key into the {@link TypeRegistry} (e.g. `"number"`). */
44
- export type PortTypeId = string;
45
- export type PortType = PortTypeId;
46
- /**
47
- * Serializable widget descriptor for port value editing and display. Lives on the
48
- * type definition; the Vue viewer resolves it to a concrete component.
49
- */
50
- export type TypeWidgetSpec = {
51
- kind: "number";
52
- min?: number;
53
- max?: number;
54
- step?: number;
55
- /** Port row height in px; defaults to one line (20px). */
56
- rowHeight?: number;
57
- } | {
58
- kind: "text";
59
- /** Multiline row count; height is `rows × 20px` unless `rowHeight` is set. */
60
- rows?: number;
61
- /** Port row height in px; overrides `rows`. */
62
- rowHeight?: number;
63
- } | {
64
- kind: "custom";
65
- /** Id passed to `registerComponentWidget` in a pack's `setup` hook. */
66
- componentId: string;
67
- /** Port row height in px; defaults to one line (20px). */
68
- rowHeight?: number;
69
- };
70
- /**
71
- * A registered data type. Carries validation, connection compatibility, and
72
- * optional value lifecycle hooks. Registered at startup — only {@link PortTypeId}
73
- * keys on ports are serialized in documents.
74
- */
75
- export interface PortTypeDefinition {
76
- id: PortTypeId;
77
- label: string;
78
- color: string;
79
- validate: (value: unknown) => boolean;
80
- /**
81
- * Whether an output of type `from` may connect into an input of this type.
82
- * Decided by the destination type. Omitted means strict identity (`from === id`).
83
- */
84
- accepts?: (from: PortTypeId) => boolean;
85
- /** Fallback when a port of this type omits its own default. */
86
- defaultValue?: unknown;
87
- /** Display/edit descriptor for the viewer (no functions). */
88
- widget?: TypeWidgetSpec;
89
- /** Parse a raw string (e.g. from an input field) into a value. */
90
- parse?: (raw: string) => unknown;
91
- /** Format a value for display in the viewer. */
92
- format?: (value: unknown) => string;
93
- /** Normalize or clamp a value after edit or connection. */
94
- coerce?: (value: unknown) => unknown;
95
- }
96
- /** Library of available data types, keyed by id. */
97
- export type TypeRegistry = Record<PortTypeId, PortTypeDefinition>;
98
- export type PortDirection = "input" | "output";
99
- /**
100
- * Port template declared by a node type ({@link IndefiniteNode}). Has no id and
101
- * no live value — only describes ports that instances will receive.
102
- */
103
- export type PortDefinition = {
104
- /** Stable, human-authored key; referenced inside `execute()`. */
105
- name: string;
106
- type: PortType;
107
- /** Used by an input when nothing is connected to it. */
108
- defaultValue?: unknown;
109
- description?: string;
110
- /**
111
- * Input-only. Never accepts a connection — no socket, always shows its widget.
112
- * Also feeds parameters into {@link IndefiniteNode.resolvePorts}.
113
- */
114
- userOnly?: boolean;
115
- /**
116
- * Input-only. Accepts any number of incoming connections; `execute()` receives
117
- * values as an unordered array of `type`.
118
- */
119
- multi?: boolean;
120
- /**
121
- * Widget-specific configuration merged on top of the type's widget spec.
122
- * Recognized keys: `options`, `min`, `max`, `step`, `rows`, `rowHeight`.
123
- */
124
- customProps?: Record<string, unknown>;
125
- };
126
- /**
127
- * Materialized port on a placed node ({@link DefiniteNode}). Has a unique id so
128
- * connections and the DOM can reference it directly.
129
- */
130
- export type Port = {
131
- id: PortId;
132
- /** Matches the {@link PortDefinition.name} it came from. */
133
- name: string;
134
- type: PortType;
135
- direction: PortDirection;
136
- /** Input: value when disconnected. Output: optional cache of last computed value. */
137
- value?: unknown;
138
- userOnly?: boolean;
139
- multi?: boolean;
140
- customProps?: Record<string, unknown>;
141
- };
142
- /** Port templates on a definition, keyed by name (authoring-friendly). */
143
- export type NodeIODefinition = Record<string, PortDefinition>;
144
- /** Materialized ports on an instance, keyed by id (connection/DOM-friendly). */
145
- export type NodeIO = Record<PortId, Port>;
146
- /** Reference to one port on one node. */
147
- export type PortRef = {
148
- node: NodeId;
149
- port: PortId;
150
- };
151
- /**
152
- * Node type template that {@link DefiniteNode} instances are created from. Lives
153
- * in the runtime registry only (never in a saved graph). Authors ship types via
154
- * {@link NodePack}.
155
- *
156
- * - **Primitive:** implements {@link IndefiniteNode.execute}.
157
- * - **Composite:** supplies a nested {@link IndefiniteNode.graph} instead of `execute`.
158
- */
159
- export interface IndefiniteNode {
160
- /** Unique node type id (e.g. `"my-pack/add"`). */
161
- typeId: NodeTypeId;
162
- displayName: string;
163
- color: string;
164
- description: string;
165
- /**
166
- * Hierarchical menu category, broadest first, e.g. `["Math", "Basic Operations"]`.
167
- * Empty or omitted places the node at the menu root.
168
- */
169
- group?: string[];
170
- inputs: NodeIODefinition;
171
- outputs: NodeIODefinition;
172
- /**
173
- * Runtime evaluation, keyed by port name (not id). Omit for composite types.
174
- * @returns Output values keyed by port name.
175
- */
176
- execute?: (inputs: Record<string, unknown>) => Record<string, unknown>;
177
- /** Nested subgraph for composite types (registry-only, not evaluated standalone). */
178
- graph?: NodeGraph;
179
- /**
180
- * Dynamic port count driven by user-only inputs. When present, static
181
- * `inputs`/`outputs` are initial defaults; reconciliation re-materializes
182
- * ports by name so existing ids and connections survive a recount.
183
- */
184
- resolvePorts?: (params: Record<string, unknown>) => {
185
- inputs: NodeIODefinition;
186
- outputs: NodeIODefinition;
187
- };
188
- }
189
- /**
190
- * A node placed on the workspace. Serializable data only — behaviour lives on
191
- * the {@link IndefiniteNode} referenced by {@link DefiniteNode.typeId}.
192
- */
193
- export interface DefiniteNode {
194
- id: NodeId;
195
- /** {@link IndefiniteNode} this instance was created from. */
196
- typeId: NodeTypeId;
197
- location: NodeLocation;
198
- inputs: NodeIO;
199
- outputs: NodeIO;
200
- label?: string;
201
- color?: string;
202
- /** Node width in px. Falls back to layout default when undefined. */
203
- width?: number;
204
- /**
205
- * Stacking order — higher paints on top. Stored for save/load. Undefined until
206
- * first assigned.
207
- */
208
- z?: number;
209
- /** Nested graph for composite/group instances. Serializable with the node. */
210
- composite?: CompositeState;
211
- }
212
- /** Serializable nested graph owned by a composite instance. */
213
- export interface CompositeState {
214
- graph: NodeGraph;
215
- interface: GraphInterface;
216
- }
217
- /**
218
- * Directed wire from an output port to an input port. Stored centrally on the
219
- * graph so either endpoint can be looked up uniformly.
220
- */
221
- export interface Connection {
222
- id: ConnectionId;
223
- /** Must reference an output port. */
224
- from: PortRef;
225
- /** Must reference an input port. */
226
- to: PortRef;
227
- }
228
- /** Serializable port template for boundary definitions (object key = port name). */
229
- export type GraphPortSpec = Omit<PortDefinition, "name">;
230
- /**
231
- * External signature of a graph. Parameters become the Input node's output ports;
232
- * returns become the Output node's input ports.
233
- */
234
- export interface GraphInterface {
235
- /** Graph inputs (function parameters). Key = port name. */
236
- parameters?: Record<string, GraphPortSpec>;
237
- /** Graph outputs (return values). Key = port name. */
238
- returns?: Record<string, GraphPortSpec>;
239
- }
240
- /**
241
- * Placed nodes and connections. Every graph must contain exactly one Input node
242
- * and one Output node.
243
- */
244
- export interface NodeGraph {
245
- nodes: DefiniteNode[];
246
- connections: Connection[];
247
- }
248
- /**
249
- * Port in a node spec — same as {@link GraphPortSpec}; the name comes from the
250
- * object key so authors do not repeat it.
251
- */
252
- export type PortSpec = GraphPortSpec;
253
- /** Input or output port templates keyed by port name. */
254
- export type IOSpec = Record<string, PortSpec>;
255
- /**
256
- * Authoring form of {@link IndefiniteNode.resolvePorts}. Returns ports in
257
- * {@link IOSpec} shape; normalized when registered via {@link registerNodeTypes}.
258
- */
259
- export type DynamicPortsSpec = (params: Record<string, unknown>) => {
260
- inputs?: IOSpec;
261
- outputs?: IOSpec;
262
- };
263
- /**
264
- * Authoring format for a node type. Normalized into a full {@link IndefiniteNode}
265
- * when registered on a {@link NodeMap} (via {@link NodePack} or
266
- * {@link registerNodeTypes}).
267
- */
268
- export interface NodeSpec {
269
- /** Unique node type id (e.g. `"my-pack/add"`). */
270
- typeId: NodeTypeId;
271
- displayName: string;
272
- color?: string;
273
- description?: string;
274
- /**
275
- * Hierarchical menu category, broadest first. See {@link IndefiniteNode.group}.
276
- */
277
- group?: string[];
278
- inputs?: IOSpec;
279
- outputs?: IOSpec;
280
- /**
281
- * Runtime evaluation, keyed by port name. Omit for composite node packs.
282
- * @returns Output values keyed by port name.
283
- */
284
- execute?: (inputs: Record<string, unknown>) => Record<string, unknown>;
285
- /** Nested subgraph for composite types in a published pack. Not evaluated yet. */
286
- graph?: NodeGraph;
287
- /**
288
- * Dynamic port count driven by user-only inputs. Static `inputs`/`outputs`
289
- * act as initial defaults when present.
290
- */
291
- resolvePorts?: DynamicPortsSpec;
292
- }
293
- /** Node types in authoring form, keyed by {@link NodeTypeId}. */
294
- export type NodeSpecRegistry = Record<NodeTypeId, NodeSpec>;
295
- /**
296
- * Authoring format for a data type. {@link defineType} expands this into a full
297
- * {@link PortTypeDefinition} (default label, color, and widget lifecycle hooks).
298
- */
299
- export interface TypeSpec {
300
- /** Unique type id (e.g. `"number"`, `"my-pack/label"`). */
301
- id: PortTypeId;
302
- label?: string;
303
- color?: string;
304
- validate: (value: unknown) => boolean;
305
- /**
306
- * Whether an output of type `from` may connect into ports of this type.
307
- * Omitted means strict identity.
308
- */
309
- accepts?: (from: PortTypeId) => boolean;
310
- /** Fallback when a port of this type omits its own default. */
311
- defaultValue?: unknown;
312
- /** Viewer widget descriptor for ports of this type. */
313
- widget?: TypeWidgetSpec;
314
- /** Override default parse behaviour for this type's widget. */
315
- parse?: (raw: string) => unknown;
316
- /** Override default format behaviour for this type's widget. */
317
- format?: (value: unknown) => string;
318
- /** Override default coerce behaviour for this type's widget. */
319
- coerce?: (value: unknown) => unknown;
320
- }
321
- /**
322
- * Turn a {@link TypeSpec} into a complete {@link PortTypeDefinition}.
323
- */
324
- export declare function defineType(spec: TypeSpec): PortTypeDefinition;
325
-
326
- export {};
package/dist/pack.js DELETED
@@ -1,43 +0,0 @@
1
- //#region src/store/registry/defineType.ts
2
- function e(e) {
3
- let n = e.widget, i = r(n);
4
- return {
5
- id: e.id,
6
- label: e.label ?? t(e.id),
7
- color: e.color ?? "#888",
8
- validate: e.validate,
9
- accepts: e.accepts,
10
- defaultValue: e.defaultValue,
11
- widget: n,
12
- parse: e.parse ?? i.parse,
13
- format: e.format ?? i.format,
14
- coerce: e.coerce ?? i.coerce
15
- };
16
- }
17
- function t(e) {
18
- return e.charAt(0).toUpperCase() + e.slice(1);
19
- }
20
- function n(e, t, n) {
21
- let r = Number(e);
22
- return Number.isNaN(r) && (r = 0), t !== void 0 && (r = Math.max(t, r)), n !== void 0 && (r = Math.min(n, r)), r;
23
- }
24
- function r(e) {
25
- if (!e) return {
26
- parse: (e) => e,
27
- format: (e) => e == null ? "" : String(e)
28
- };
29
- switch (e.kind) {
30
- case "number": return {
31
- parse: (e) => Number(e),
32
- format: (e) => e == null ? "" : String(e),
33
- coerce: (t) => n(t, e.min, e.max)
34
- };
35
- case "text": return {
36
- parse: (e) => e,
37
- format: (e) => e == null ? "" : String(e)
38
- };
39
- case "custom": return { format: (e) => e == null ? "" : String(e) };
40
- }
41
- }
42
- //#endregion
43
- export { e as defineType };
@@ -1,20 +0,0 @@
1
- import { NodeMap } from '../store/model';
2
- type __VLS_Props = {
3
- map: NodeMap;
4
- screen: {
5
- x: number;
6
- y: number;
7
- };
8
- };
9
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- select: (typeId: string) => any;
11
- close: () => any;
12
- addComposite: () => any;
13
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onSelect?: ((typeId: string) => any) | undefined;
15
- onClose?: (() => any) | undefined;
16
- onAddComposite?: (() => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
- searchEl: HTMLInputElement;
19
- }, HTMLDivElement>;
20
- export default _default;
@@ -1,13 +0,0 @@
1
- import { GraphInterface, TypeRegistry } from '../store/model';
2
- import { InterfaceMutator } from '../store/interface/editor';
3
- type __VLS_Props = {
4
- graphInterface: GraphInterface;
5
- mode: "parameters" | "returns";
6
- revision: number;
7
- typeIds: string[];
8
- types: TypeRegistry;
9
- commitError?: string;
10
- applyMutation: (mutate: InterfaceMutator) => string[];
11
- };
12
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
- export default _default;
@@ -1,26 +0,0 @@
1
- import { DefiniteNode, NodeMap, Port, PortRef } from '../store/model';
2
- import { Values } from '../store/graph/evaluate';
3
- type __VLS_Props = {
4
- node: DefiniteNode;
5
- map: NodeMap;
6
- zoom?: number;
7
- ioWidgets?: boolean;
8
- ioResults?: Values;
9
- selected?: boolean;
10
- selectedIds?: ReadonlySet<string>;
11
- error?: string;
12
- };
13
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- select: (id: string, shiftKey: boolean) => any;
15
- connectStart: (ref: PortRef, port: Port, ev: PointerEvent) => any;
16
- drillIn: (id: string) => any;
17
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onSelect?: ((id: string, shiftKey: boolean) => any) | undefined;
19
- onConnectStart?: ((ref: PortRef, port: Port, ev: PointerEvent) => any) | undefined;
20
- onDrillIn?: ((id: string) => any) | undefined;
21
- }>, {
22
- zoom: number;
23
- ioWidgets: boolean;
24
- selected: boolean;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
- export default _default;
@@ -1,13 +0,0 @@
1
- import { DefiniteNode } from '../store/model';
2
- type __VLS_Props = {
3
- composite: DefiniteNode | null;
4
- ioWidgets: boolean;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- up: () => any;
8
- "update:ioWidgets": (value: boolean) => any;
9
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onUp?: (() => any) | undefined;
11
- "onUpdate:ioWidgets"?: ((value: boolean) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
- export default _default;
@@ -1,43 +0,0 @@
1
- type __VLS_Props = {
2
- title: string;
3
- titlePlaceholder?: string;
4
- headerColor?: string;
5
- showUp?: boolean;
6
- staticTitle?: boolean;
7
- /** Remove body padding (e.g. scrollable lists). */
8
- flush?: boolean;
9
- /** Constrain height and let the body scroll internally. */
10
- fill?: boolean;
11
- };
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- title?(_: {}): any;
16
- 'header-actions'?(_: {}): any;
17
- default?(_: {}): any;
18
- };
19
- refs: {};
20
- rootEl: HTMLDivElement;
21
- };
22
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- "update:title": (value: string) => any;
25
- up: () => any;
26
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
- "onUpdate:title"?: ((value: string) => any) | undefined;
28
- onUp?: (() => any) | undefined;
29
- }>, {
30
- fill: boolean;
31
- headerColor: string;
32
- titlePlaceholder: string;
33
- showUp: boolean;
34
- staticTitle: boolean;
35
- flush: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
37
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
- export default _default;
39
- type __VLS_WithTemplateSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,18 +0,0 @@
1
- import { DefiniteNode, GraphInterface, IndefiniteNode, NodeMap } from '../store/model';
2
- import { InterfaceMutator } from '../store/interface/editor';
3
- type __VLS_Props = {
4
- map: NodeMap;
5
- nodes: DefiniteNode[];
6
- def: IndefiniteNode | null;
7
- error?: string;
8
- graphInterface: GraphInterface;
9
- interfaceRevision: number;
10
- interfaceCommitError?: string;
11
- applyInterfaceMutation: (mutate: InterfaceMutator) => string[];
12
- };
13
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- "update:label": (value: string) => any;
15
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- "onUpdate:label"?: ((value: string) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
- export default _default;
@@ -1,21 +0,0 @@
1
- import { Port, PortTypeDefinition } from '../store/model';
2
- type __VLS_Props = {
3
- port: Port;
4
- typeDef?: PortTypeDefinition;
5
- color: string;
6
- side: "in" | "out";
7
- connected?: boolean;
8
- widgetMode?: "auto" | "editable" | "readonly";
9
- displayValue?: unknown;
10
- };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- connectStart: (port: Port, ev: PointerEvent) => any;
13
- valueChange: (port: Port) => any;
14
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onConnectStart?: ((port: Port, ev: PointerEvent) => any) | undefined;
16
- onValueChange?: ((port: Port) => any) | undefined;
17
- }>, {
18
- connected: boolean;
19
- widgetMode: "auto" | "editable" | "readonly";
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
- export default _default;
@@ -1,14 +0,0 @@
1
- import { NodeMap } from '../store/model';
2
- type __VLS_Props = {
3
- map: NodeMap;
4
- ioWidgets?: boolean;
5
- };
6
- declare function resetView(): void;
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
- resetView: typeof resetView;
9
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
- ioWidgets: boolean;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
- viewerEl: HTMLDivElement;
13
- }, HTMLDivElement>;
14
- export default _default;
@@ -1,8 +0,0 @@
1
- import { NodeMap } from '../store/model';
2
- type __VLS_Props = {
3
- map: NodeMap;
4
- pendingPath?: string | null;
5
- slicePath?: string | null;
6
- };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
8
- export default _default;
@@ -1,10 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue: boolean;
3
- label: string;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: boolean) => any;
7
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
10
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue: string;
3
- label?: string;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: string) => any;
7
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
9
- }>, {
10
- label: string;
11
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
12
- export default _default;
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- message: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLParagraphElement>;
5
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- x: number;
3
- y: number;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:x": (value: number) => any;
7
- "update:y": (value: number) => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- "onUpdate:x"?: ((value: number) => any) | undefined;
10
- "onUpdate:y"?: ((value: number) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- export default _default;