@stackmango/graff 0.1.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.
Files changed (108) hide show
  1. package/README.md +73 -0
  2. package/dist/js/graff.css +1 -0
  3. package/dist/js/index.cjs +213 -0
  4. package/dist/js/index.js +43125 -0
  5. package/dist/js/vite.svg +1 -0
  6. package/dist/types/App.d.ts +1 -0
  7. package/dist/types/App.d.ts.map +1 -0
  8. package/dist/types/Document/Document.d.ts +7 -0
  9. package/dist/types/Document/Document.d.ts.map +1 -0
  10. package/dist/types/Document/index.d.ts +3 -0
  11. package/dist/types/Document/index.d.ts.map +1 -0
  12. package/dist/types/Utils/Connection.d.ts +5 -0
  13. package/dist/types/Utils/Connection.d.ts.map +1 -0
  14. package/dist/types/Utils/Draggable.d.ts +13 -0
  15. package/dist/types/Utils/Draggable.d.ts.map +1 -0
  16. package/dist/types/Utils/Form.d.ts +4 -0
  17. package/dist/types/Utils/Form.d.ts.map +1 -0
  18. package/dist/types/Utils/index.d.ts +6 -0
  19. package/dist/types/Utils/index.d.ts.map +1 -0
  20. package/dist/types/Utils/misc.d.ts +9 -0
  21. package/dist/types/Utils/misc.d.ts.map +1 -0
  22. package/dist/types/Workspace/Workspace.d.ts +4 -0
  23. package/dist/types/Workspace/Workspace.d.ts.map +1 -0
  24. package/dist/types/Workspace/index.d.ts +3 -0
  25. package/dist/types/Workspace/index.d.ts.map +1 -0
  26. package/dist/types/components/Document/Document.d.ts +7 -0
  27. package/dist/types/components/Document/Document.d.ts.map +1 -0
  28. package/dist/types/components/Document/index.d.ts +3 -0
  29. package/dist/types/components/Document/index.d.ts.map +1 -0
  30. package/dist/types/components/UIElements/Dropdown.d.ts +4 -0
  31. package/dist/types/components/UIElements/Dropdown.d.ts.map +1 -0
  32. package/dist/types/components/UIElements/Textbox.d.ts +4 -0
  33. package/dist/types/components/UIElements/Textbox.d.ts.map +1 -0
  34. package/dist/types/components/UIElements/Toggle.d.ts +4 -0
  35. package/dist/types/components/UIElements/Toggle.d.ts.map +1 -0
  36. package/dist/types/components/UIElements/index.d.ts +5 -0
  37. package/dist/types/components/UIElements/index.d.ts.map +1 -0
  38. package/dist/types/components/Utils/Connection.d.ts +5 -0
  39. package/dist/types/components/Utils/Connection.d.ts.map +1 -0
  40. package/dist/types/components/Utils/Draggable.d.ts +13 -0
  41. package/dist/types/components/Utils/Draggable.d.ts.map +1 -0
  42. package/dist/types/components/Utils/Form.d.ts +4 -0
  43. package/dist/types/components/Utils/Form.d.ts.map +1 -0
  44. package/dist/types/components/Utils/index.d.ts +6 -0
  45. package/dist/types/components/Utils/index.d.ts.map +1 -0
  46. package/dist/types/components/Utils/misc.d.ts +9 -0
  47. package/dist/types/components/Utils/misc.d.ts.map +1 -0
  48. package/dist/types/components/Workspace/Workspace.d.ts +4 -0
  49. package/dist/types/components/Workspace/Workspace.d.ts.map +1 -0
  50. package/dist/types/components/Workspace/index.d.ts +3 -0
  51. package/dist/types/components/Workspace/index.d.ts.map +1 -0
  52. package/dist/types/components/index.d.ts +11 -0
  53. package/dist/types/components/index.d.ts.map +1 -0
  54. package/dist/types/components/type.d.ts +5 -0
  55. package/dist/types/components/type.d.ts.map +1 -0
  56. package/dist/types/contexts/Formcontext.d.ts +32 -0
  57. package/dist/types/contexts/Formcontext.d.ts.map +1 -0
  58. package/dist/types/contexts/Graphcontext.d.ts +3 -0
  59. package/dist/types/contexts/Graphcontext.d.ts.map +1 -0
  60. package/dist/types/hooks/useForm.d.ts +3 -0
  61. package/dist/types/hooks/useForm.d.ts.map +1 -0
  62. package/dist/types/hooks/useGraph.d.ts +1 -0
  63. package/dist/types/hooks/useGraph.d.ts.map +1 -0
  64. package/dist/types/hooks/useWorkspace.d.ts +37 -0
  65. package/dist/types/hooks/useWorkspace.d.ts.map +1 -0
  66. package/dist/types/index.d.ts +5 -0
  67. package/dist/types/index.d.ts.map +1 -0
  68. package/dist/types/library/Input.d.ts +77 -0
  69. package/dist/types/library/Input.d.ts.map +1 -0
  70. package/dist/types/library/JSONForms.d.ts +233 -0
  71. package/dist/types/library/JSONForms.d.ts.map +1 -0
  72. package/dist/types/library/NodeTemplates.d.ts +41 -0
  73. package/dist/types/library/NodeTemplates.d.ts.map +1 -0
  74. package/dist/types/library/coordinateSystemUtils.d.ts +29 -0
  75. package/dist/types/library/coordinateSystemUtils.d.ts.map +1 -0
  76. package/dist/types/library/form.d.ts +66 -0
  77. package/dist/types/library/form.d.ts.map +1 -0
  78. package/dist/types/library/misc.d.ts +47 -0
  79. package/dist/types/library/misc.d.ts.map +1 -0
  80. package/dist/types/library/utils.d.ts +104 -0
  81. package/dist/types/library/utils.d.ts.map +1 -0
  82. package/dist/types/library/vectorApi.d.ts +31 -0
  83. package/dist/types/library/vectorApi.d.ts.map +1 -0
  84. package/dist/types/main.d.ts +1 -0
  85. package/dist/types/main.d.ts.map +1 -0
  86. package/dist/types/reducers/form.d.ts +14 -0
  87. package/dist/types/reducers/form.d.ts.map +1 -0
  88. package/dist/types/reducers/graph.d.ts +90 -0
  89. package/dist/types/reducers/graph.d.ts.map +1 -0
  90. package/dist/types/reducers/graph_data.d.ts +1 -0
  91. package/dist/types/reducers/graph_data.d.ts.map +1 -0
  92. package/dist/types/reducers/uiElements.d.ts +5 -0
  93. package/dist/types/reducers/uiElements.d.ts.map +1 -0
  94. package/dist/types/type.d.ts +5 -0
  95. package/dist/types/type.d.ts.map +1 -0
  96. package/dist/types/types/Dataflow.d.ts +1 -0
  97. package/dist/types/types/Dataflow.d.ts.map +1 -0
  98. package/dist/types/types/Execution.d.ts +24 -0
  99. package/dist/types/types/Execution.d.ts.map +1 -0
  100. package/dist/types/types/Form.d.ts +115 -0
  101. package/dist/types/types/Form.d.ts.map +1 -0
  102. package/dist/types/types/Schema.d.ts +23 -0
  103. package/dist/types/types/Schema.d.ts.map +1 -0
  104. package/dist/types/types/UIElements.d.ts +55 -0
  105. package/dist/types/types/UIElements.d.ts.map +1 -0
  106. package/dist/types/types/index.d.ts +564 -0
  107. package/dist/types/types/index.d.ts.map +1 -0
  108. package/package.json +56 -0
@@ -0,0 +1,564 @@
1
+ import type { FormcomponentState } from "@stackmango/formact";
2
+ import type React from "react";
3
+ import type { RefObject } from "react";
4
+ export type Listitem = {
5
+ label: any;
6
+ value: any;
7
+ };
8
+ export type StyleConfig = {
9
+ class?: string;
10
+ style?: string;
11
+ };
12
+ export type Document_Config<node_core> = {
13
+ stateFetcher: () => (Context_Workspace_Generic<any>);
14
+ nodeComponent: React.FC<Node_Props<node_core>>;
15
+ connectionComponent: React.FC<Connection_Props>;
16
+ };
17
+ export type Workspace_Config<node_core> = {
18
+ document: Document_Config<node_core>;
19
+ };
20
+ export type Workspace_Props<node_core> = {
21
+ id: string;
22
+ state: Omit<Context_Workspace_Data_Generic<node_core>, "dragSession">;
23
+ config: Workspace_Config<node_core>;
24
+ };
25
+ export type Node_Props<node_core> = {
26
+ id: string;
27
+ skeleton: Node_Generic_Skeleton_Draft<node_core>;
28
+ design: Node_Generic_Design_Draft;
29
+ config: {
30
+ stateFetcher: <node_core>() => (Context_Workspace_Generic<node_core>);
31
+ };
32
+ };
33
+ export type Connection_Props = {
34
+ id: string;
35
+ skeleton: Connection_Skeleton_Draft;
36
+ design: Connection_Design_Draft & {
37
+ previewStatus: "NORMAL" | "COMPATIBLE" | "INCOMPATIBLE";
38
+ };
39
+ config: {
40
+ stateFetcher: <node_core>() => (Context_Workspace_Generic<node_core>);
41
+ };
42
+ };
43
+ export type Node_Generic_Skeleton<core> = {
44
+ id: string;
45
+ ports: {
46
+ input: Record<string, Port_Generic_Draft>;
47
+ output: Record<string, Port_Generic_Draft>;
48
+ };
49
+ core: core;
50
+ meta: {
51
+ label: string;
52
+ type: "trigger" | "task" | "conditional";
53
+ };
54
+ };
55
+ export type Node_Generic_Design = {
56
+ id: string;
57
+ position: Coordinate;
58
+ isSelected: boolean;
59
+ };
60
+ export type Node_Generic_Skeleton_Draft<core> = Omit<Node_Generic_Skeleton<core>, "id">;
61
+ export type Node_Generic_Design_Draft = Omit<Node_Generic_Design, "id">;
62
+ export type Node_Generic_Skeleton_Action<node_core> = {
63
+ type: "add-node";
64
+ payload: Node_Generic_Skeleton_Draft<node_core>;
65
+ } | {
66
+ type: "add-node-byId";
67
+ payload: Node_Generic_Skeleton<node_core>;
68
+ } | {
69
+ type: "update-node";
70
+ payload: {
71
+ id: string;
72
+ updatedNode: Node_Generic_Skeleton_Draft<node_core>;
73
+ };
74
+ } | {
75
+ type: "remove-node";
76
+ payload: string;
77
+ } | {
78
+ type: "freenode-connected";
79
+ payload: string;
80
+ } | {
81
+ type: "connectednode-free";
82
+ payload: string;
83
+ } | {
84
+ type: "add-node-port";
85
+ payload: {
86
+ nodeId: string;
87
+ type: "input" | "output";
88
+ port: Port_Generic;
89
+ };
90
+ } | {
91
+ type: "update-node-port-index";
92
+ payload: {
93
+ nodeId: string;
94
+ index: number;
95
+ };
96
+ } | {
97
+ type: "update-node-port-label";
98
+ payload: {
99
+ nodeId: string;
100
+ label: string;
101
+ };
102
+ } | {
103
+ type: "update-node-port-schema";
104
+ payload: {
105
+ nodeId: string;
106
+ schema: JSONSchema | null;
107
+ };
108
+ } | {
109
+ /** Remove a port by its ID */
110
+ type: "remove-node-port";
111
+ payload: {
112
+ nodeId: string;
113
+ portId: string;
114
+ };
115
+ } | {
116
+ /** Set core config data schema (JSON Schema) */
117
+ type: "set-node-core";
118
+ payload: {
119
+ nodeId: string;
120
+ data: node_core;
121
+ };
122
+ } | {
123
+ /** Set node label*/
124
+ type: "set-node-label";
125
+ payload: {
126
+ nodeId: string;
127
+ label: string;
128
+ };
129
+ } | {
130
+ /** Set node type*/
131
+ type: "set-node-type";
132
+ payload: {
133
+ nodeId: string;
134
+ type: "trigger" | "task" | "conditional";
135
+ };
136
+ } | {
137
+ /** Set node type*/
138
+ type: "set-node-ports";
139
+ payload: {
140
+ nodeId: string;
141
+ ports: {
142
+ input: Record<string, Port_Generic_Draft>;
143
+ output: Record<string, Port_Generic_Draft>;
144
+ };
145
+ };
146
+ } | {
147
+ type: "set-node-ports-input";
148
+ payload: {
149
+ nodeId: string;
150
+ ports: Record<string, Port_Generic_Draft>;
151
+ };
152
+ } | {
153
+ type: "set-node-ports-output";
154
+ payload: {
155
+ nodeId: string;
156
+ ports: Record<string, Port_Generic_Draft>;
157
+ };
158
+ } | {
159
+ type: "add-node-ports-output";
160
+ payload: {
161
+ nodeId: string;
162
+ ports: Record<string, Port_Generic_Draft>;
163
+ };
164
+ } | {
165
+ type: "remove-node-ports-output";
166
+ payload: {
167
+ nodeId: string;
168
+ ports: string[];
169
+ };
170
+ };
171
+ export type Node_Generic_Design_Action = {
172
+ type: "set-node-selection";
173
+ payload: {
174
+ nodeId: string;
175
+ isSelected: boolean;
176
+ };
177
+ } | {
178
+ type: "move-node";
179
+ payload: {
180
+ nodeId: string;
181
+ motionVector: Coordinate;
182
+ };
183
+ } | {
184
+ type: "init-node-view";
185
+ payload: {
186
+ nodeId: string;
187
+ position: Coordinate;
188
+ isSelected?: boolean;
189
+ };
190
+ };
191
+ export type Port_Generic = {
192
+ id: string;
193
+ meta: {
194
+ index: number;
195
+ };
196
+ label?: string;
197
+ schema?: JSONSchema | null;
198
+ };
199
+ export type Port_Generic_Draft = Omit<Port_Generic, "id">;
200
+ export type Document_Design = {
201
+ position: Coordinate;
202
+ scale: number;
203
+ boundaryThickness: number;
204
+ };
205
+ export type DragSession = {
206
+ startPosition: Coordinate;
207
+ elementDragged: {
208
+ type: string;
209
+ id: string;
210
+ };
211
+ currentPosition: Coordinate;
212
+ };
213
+ export type Dimensions = {
214
+ width: number;
215
+ height: number;
216
+ };
217
+ export type CursorState = {
218
+ position: Coordinate;
219
+ velocity: Coordinate;
220
+ acceleration: Coordinate;
221
+ };
222
+ export type CoordinateSystemType = "viewport" | "workspace" | "viewspace";
223
+ export type CoordinateSystem = {
224
+ viewport: Coordinate;
225
+ workspace: Coordinate;
226
+ viewspace: Coordinate;
227
+ };
228
+ export type CoordinatePosition = {
229
+ position: Coordinate;
230
+ type: CoordinateSystemType;
231
+ };
232
+ export type SelectionBox = {
233
+ start: Coordinate;
234
+ end: Coordinate;
235
+ } | null;
236
+ export type Connection_Skeleton = {
237
+ id: string;
238
+ from: string;
239
+ to: string;
240
+ };
241
+ export type Connection_Design = {
242
+ id: string;
243
+ from: {
244
+ position: Coordinate;
245
+ };
246
+ to: {
247
+ position: Coordinate;
248
+ };
249
+ };
250
+ export type Connection_Skeleton_Draft = Omit<Connection_Skeleton, "id">;
251
+ export type Connection_Design_Draft = Omit<Connection_Design, "id">;
252
+ export type Asset_Generic<node_core> = {
253
+ nodes: Record<string, Node_Generic_Skeleton_Draft<node_core>>;
254
+ connections: Record<string, Connection_Skeleton_Draft>;
255
+ };
256
+ export type View_Generic = {
257
+ nodes: Record<string, Node_Generic_Design_Draft>;
258
+ connections: Record<string, Connection_Design_Draft>;
259
+ documentPosition: Coordinate;
260
+ viewportPosition: Coordinate;
261
+ };
262
+ export type Config = {
263
+ nodeDimensions: {
264
+ width: number;
265
+ height: number;
266
+ };
267
+ portRadius: number;
268
+ portSlabHeight: number;
269
+ connectionTipRadius: number;
270
+ connectionThickness: number;
271
+ connectionCurveLevel: number;
272
+ documentDimension: {
273
+ width: number;
274
+ height: number;
275
+ };
276
+ documentBoundaryThickness: number;
277
+ defaultNodeView: Node_Generic_Design_Draft;
278
+ defaultConnectionView: Connection_Design_Draft;
279
+ };
280
+ export type Interaction = {
281
+ connections: Record<string, {
282
+ portStatus: "NO_PORT" | "COMPATIBLE_PORT" | "INCOMPATIBLE_PORT";
283
+ skeleton: Connection_Skeleton_Draft;
284
+ design: Connection_Design_Draft;
285
+ }>;
286
+ selection: {
287
+ start: Coordinate;
288
+ end: Coordinate;
289
+ } | null;
290
+ };
291
+ export type FreeConnectionsAction = {
292
+ type: "add-connection";
293
+ payload: {
294
+ skeleton: Connection_Skeleton_Draft;
295
+ design: Connection_Design_Draft;
296
+ };
297
+ } | {
298
+ type: "add-connection-byId";
299
+ payload: {
300
+ id: string;
301
+ skeleton: Connection_Skeleton_Draft;
302
+ design: Connection_Design_Draft;
303
+ };
304
+ } | {
305
+ type: "set-connection-from-port";
306
+ payload: {
307
+ connectionId: string;
308
+ portId: string;
309
+ };
310
+ } | {
311
+ type: "set-connection-to-port";
312
+ payload: {
313
+ connectionId: string;
314
+ portId: string;
315
+ };
316
+ } | {
317
+ type: "init-connection-position";
318
+ payload: {
319
+ connectionId: string;
320
+ from: Coordinate;
321
+ to: Coordinate;
322
+ };
323
+ } | {
324
+ type: "set-connection-from-position";
325
+ payload: {
326
+ connectionId: string;
327
+ position: Coordinate;
328
+ };
329
+ } | {
330
+ type: "set-connection-to-position";
331
+ payload: {
332
+ connectionId: string;
333
+ position: Coordinate;
334
+ };
335
+ } | {
336
+ type: "move-connectiontip";
337
+ payload: {
338
+ connectionId: string;
339
+ type: "from" | "to";
340
+ offset: Coordinate;
341
+ };
342
+ } | {
343
+ type: "set-port_status";
344
+ payload: {
345
+ connectionId: string;
346
+ status: "NO_PORT" | "COMPATIBLE_PORT" | "INCOMPATIBLE_PORT";
347
+ };
348
+ } | {
349
+ type: "remove-connection";
350
+ payload: {
351
+ connectionId: string;
352
+ };
353
+ } | {
354
+ type: "remove-connections";
355
+ payload: {
356
+ connectionId: string[];
357
+ };
358
+ };
359
+ export type Connection_Skeleton_Action = {
360
+ type: "add-connection";
361
+ payload: Connection_Skeleton_Draft;
362
+ } | {
363
+ type: "add-connection-byId";
364
+ payload: Connection_Skeleton;
365
+ } | {
366
+ type: "set-connection-from-port";
367
+ payload: {
368
+ connectionId: string;
369
+ portId: string;
370
+ };
371
+ } | {
372
+ type: "set-connection-to-port";
373
+ payload: {
374
+ connectionId: string;
375
+ portId: string;
376
+ };
377
+ };
378
+ export type Connection_Design_Action = {
379
+ type: "init-connection";
380
+ payload: {
381
+ connectionId: string;
382
+ from: Coordinate;
383
+ to: Coordinate;
384
+ };
385
+ } | {
386
+ type: "set-connection-from-position";
387
+ payload: {
388
+ connectionId: string;
389
+ position: Coordinate;
390
+ };
391
+ } | {
392
+ type: "set-connections-from-position";
393
+ payload: Record<string, Coordinate>;
394
+ } | {
395
+ type: "set-connection-to-position";
396
+ payload: {
397
+ connectionId: string;
398
+ position: Coordinate;
399
+ };
400
+ } | {
401
+ type: "move-connectiontip";
402
+ payload: {
403
+ connectionId: string;
404
+ type: "from" | "to";
405
+ offset: Coordinate;
406
+ };
407
+ };
408
+ export type Viewport_Action = {
409
+ type: "set-viewport-position";
410
+ payload: Coordinate;
411
+ };
412
+ export type Document_Action = {
413
+ type: "set-document-position";
414
+ payload: Coordinate;
415
+ } | {
416
+ type: "move-document";
417
+ payload: {
418
+ speed: number;
419
+ direction: Coordinate;
420
+ };
421
+ };
422
+ export type Execution = {
423
+ nodes: Record<string, {
424
+ ports: {
425
+ input: Record<string, {
426
+ value: any;
427
+ }>;
428
+ output: Record<string, {
429
+ value: any;
430
+ }>;
431
+ };
432
+ }>;
433
+ };
434
+ export type SelectionBox_Action = {
435
+ type: "set";
436
+ payload: {
437
+ start: Coordinate;
438
+ end: Coordinate;
439
+ } | null;
440
+ };
441
+ export type Context_Workspace_Data_Generic<node_core> = {
442
+ assets: {
443
+ data: Asset_Generic<node_core>;
444
+ dispatch: React.Dispatch<Node_Generic_Skeleton_Action<node_core> | Connection_Skeleton_Action>;
445
+ };
446
+ view: {
447
+ data: View_Generic;
448
+ dispatch: React.Dispatch<Node_Generic_Design_Action | Connection_Design_Action | Document_Action | Viewport_Action>;
449
+ };
450
+ config: {
451
+ data: Config;
452
+ };
453
+ interaction: {
454
+ data: Interaction;
455
+ dispatch: React.Dispatch<FreeConnectionsAction | SelectionBox_Action>;
456
+ };
457
+ dragSession: {
458
+ data: RefObject<DragSession | null>;
459
+ dispatch: any;
460
+ };
461
+ };
462
+ export type Context_Workspace_Generic<node_core> = Context_Workspace_Data_Generic<node_core> | null;
463
+ export type Coordinate = {
464
+ x: number;
465
+ y: number;
466
+ };
467
+ export type JSONSchema = JSONSchemaObject | JSONSchemaArray | JSONSchemaString | JSONSchemaNumber | JSONSchemaBoolean | JSONSchemaNull;
468
+ export interface JSONSchemaValidation {
469
+ enum?: any[];
470
+ const?: any;
471
+ }
472
+ export interface JSONSchemaComposition {
473
+ allOf?: JSONSchema[];
474
+ anyOf?: JSONSchema[];
475
+ oneOf?: JSONSchema[];
476
+ not?: JSONSchema;
477
+ if?: JSONSchema;
478
+ then?: JSONSchema;
479
+ else?: JSONSchema;
480
+ }
481
+ export interface JSONSchemaAnnotations {
482
+ title?: string;
483
+ description?: string;
484
+ default?: any;
485
+ examples?: any[];
486
+ deprecated?: boolean;
487
+ readOnly?: boolean;
488
+ writeOnly?: boolean;
489
+ }
490
+ export interface JSONSchemaBase extends JSONSchemaAnnotations, JSONSchemaComposition, JSONSchemaValidation {
491
+ $id?: string;
492
+ $ref?: string;
493
+ $defs?: Record<string, JSONSchema>;
494
+ }
495
+ export interface JSONSchemaObject extends JSONSchemaBase {
496
+ type: "object";
497
+ properties?: Record<string, JSONSchema>;
498
+ patternProperties?: Record<string, JSONSchema>;
499
+ required?: string[];
500
+ additionalProperties?: boolean | JSONSchema;
501
+ minProperties?: number;
502
+ maxProperties?: number;
503
+ dependentRequired?: Record<string, string[]>;
504
+ dependentSchemas?: Record<string, JSONSchema>;
505
+ propertyNames?: JSONSchemaString;
506
+ }
507
+ export interface JSONSchemaArray extends JSONSchemaBase {
508
+ type: "array";
509
+ items?: JSONSchema | JSONSchema[];
510
+ prefixItems?: JSONSchema[];
511
+ minItems?: number;
512
+ maxItems?: number;
513
+ uniqueItems?: boolean;
514
+ contains?: JSONSchema;
515
+ minContains?: number;
516
+ maxContains?: number;
517
+ }
518
+ export interface JSONSchemaString extends JSONSchemaBase {
519
+ type: "string";
520
+ minLength?: number;
521
+ maxLength?: number;
522
+ pattern?: string;
523
+ format?: "date-time" | "date" | "time" | "duration" | "email" | "idn-email" | "hostname" | "idn-hostname" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "uuid" | string;
524
+ contentEncoding?: string;
525
+ contentMediaType?: string;
526
+ }
527
+ export interface JSONSchemaNumber extends JSONSchemaBase {
528
+ type: "number" | "integer";
529
+ minimum?: number;
530
+ maximum?: number;
531
+ exclusiveMinimum?: number;
532
+ exclusiveMaximum?: number;
533
+ multipleOf?: number;
534
+ }
535
+ export interface JSONSchemaBoolean extends JSONSchemaBase {
536
+ type: "boolean";
537
+ }
538
+ export interface JSONSchemaNull extends JSONSchemaBase {
539
+ type: "null";
540
+ }
541
+ export type FormActions = {
542
+ type: "set-state";
543
+ payload: FormcomponentState;
544
+ };
545
+ export type CoordinateSystemAction = {
546
+ type: "set";
547
+ payload: CoordinateSystem;
548
+ } | {
549
+ type: "set-workspace";
550
+ payload: Coordinate;
551
+ } | {
552
+ type: "set-viewspace";
553
+ payload: Coordinate;
554
+ } | {
555
+ type: "set-viewport";
556
+ payload: Coordinate;
557
+ } | {
558
+ type: "move-viewspace";
559
+ payload: {
560
+ direction: Coordinate;
561
+ viewPortPointer: Coordinate;
562
+ };
563
+ };
564
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,QAAQ,GAAC;IACnB,KAAK,EAAC,GAAG,CAAC;IACV,KAAK,EAAC,GAAG,CAAA;CACV,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,SAAS,IAAE;IACrC,YAAY,EAAC,MAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC;IACl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,gBAAiB,SAAQ,cAAc;IACtD,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,WAAW,GAAC;IACtB,IAAI,EAAC,WAAW,CAAC;IACjB,OAAO,EAAC,kBAAkB,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAC;IAC/B,IAAI,EAAC,KAAK,CAAC;IACX,OAAO,EAAC,gBAAgB,CAAA;CAC3B,GAAC;IACE,IAAI,EAAC,eAAe,CAAC;IACrB,OAAO,EAAC,UAAU,CAAA;CACrB,GAAC;IACE,IAAI,EAAC,eAAe,CAAC;IACrB,OAAO,EAAC,UAAU,CAAA;CACrB,GAAC;IACE,IAAI,EAAC,cAAc,CAAC;IACpB,OAAO,EAAC,UAAU,CAAA;CACrB,GAAC;IACE,IAAI,EAAC,gBAAgB,CAAC;IACtB,OAAO,EAAC;QACJ,SAAS,EAAC,UAAU,CAAC;QACrB,eAAe,EAAC,UAAU,CAAA;KAC7B,CAAA;CACJ,CAAA"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@stackmango/graff",
3
+ "version": "0.1.0",
4
+ "main": "./dist/js/index.cjs",
5
+ "module": "./dist/js/index.js",
6
+ "types": "./dist/types/components/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/types/components/index.d.ts",
10
+ "import": "./dist/js/index.js",
11
+ "require":"./dist/js/index.cjs"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "description": "A lightweight, JSON-powered graph builder for developers.",
21
+ "scripts": {
22
+ "dev": "vite",
23
+ "build": "tsc && vite build && npm run copy-css",
24
+ "build-typeonly": "tsc",
25
+ "build-viteonly": "vite build",
26
+ "copy-css": "find src -name '*.css' -exec cp {} dist/ \\;",
27
+ "lint": "eslint .",
28
+ "preview": "vite preview"
29
+ },
30
+ "dependencies": {
31
+ "@reduxjs/toolkit": "^2.11.2",
32
+ "@stackmango/formact": "^0.0.66",
33
+ "@use-gesture/react": "^10.3.1",
34
+ "react": "^19.1.1",
35
+ "react-dom": "^19.1.1",
36
+ "react-router-dom": "^7.12.0",
37
+ "redux": "^5.0.1"
38
+ },
39
+ "devDependencies": {
40
+ "@eslint/js": "^9.39.2",
41
+ "@types/node": "^24.6.0",
42
+ "@types/react": "^19.1.16",
43
+ "@types/react-dom": "^19.1.9",
44
+ "@vitejs/plugin-react": "^5.1.2",
45
+ "eslint": "^9.39.2",
46
+ "eslint-plugin-react": "^7.37.5",
47
+ "eslint-plugin-react-hooks": "^5.2.0",
48
+ "eslint-plugin-react-refresh": "^0.4.22",
49
+ "globals": "^16.5.0",
50
+ "typescript": "~5.9.3",
51
+ "typescript-eslint": "^8.52.0",
52
+ "vite": "^7.1.7"
53
+ },
54
+ "author": "",
55
+ "license": "ISC"
56
+ }