@bemedev/mind-flow 0.0.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 (50) hide show
  1. package/lib/helpers/createContext.d.ts +21 -0
  2. package/lib/helpers/createContext.d.ts.map +1 -0
  3. package/lib/index.cjs.js +1 -0
  4. package/lib/index.d.ts +4 -0
  5. package/lib/index.d.ts.map +1 -0
  6. package/lib/index.es.js +859 -0
  7. package/lib/output.css +2 -0
  8. package/lib/server.cjs.js +1058 -0
  9. package/lib/server.es.js +1056 -0
  10. package/lib/services/main.machine.d.ts +1198 -0
  11. package/lib/services/main.machine.d.ts.map +1 -0
  12. package/lib/services/main.typings.d.ts +68 -0
  13. package/lib/services/main.typings.d.ts.map +1 -0
  14. package/lib/ui/Flow.d.ts +13 -0
  15. package/lib/ui/Flow.d.ts.map +1 -0
  16. package/lib/ui/components/Bounds.d.ts +10 -0
  17. package/lib/ui/components/Bounds.d.ts.map +1 -0
  18. package/lib/ui/components/EdgeComponent.d.ts +20 -0
  19. package/lib/ui/components/EdgeComponent.d.ts.map +1 -0
  20. package/lib/ui/components/EdgesBoard.d.ts +9 -0
  21. package/lib/ui/components/EdgesBoard.d.ts.map +1 -0
  22. package/lib/ui/components/FlowChart.context.d.ts +1228 -0
  23. package/lib/ui/components/FlowChart.context.d.ts.map +1 -0
  24. package/lib/ui/components/FlowChart.d.ts +63 -0
  25. package/lib/ui/components/FlowChart.d.ts.map +1 -0
  26. package/lib/ui/components/FlowChart.data.d.ts +67 -0
  27. package/lib/ui/components/FlowChart.data.d.ts.map +1 -0
  28. package/lib/ui/components/NodeComponent.d.ts +34 -0
  29. package/lib/ui/components/NodeComponent.d.ts.map +1 -0
  30. package/lib/ui/components/NodesBoard.d.ts +9 -0
  31. package/lib/ui/components/NodesBoard.d.ts.map +1 -0
  32. package/lib/ui/components/classes.d.ts +6 -0
  33. package/lib/ui/components/classes.d.ts.map +1 -0
  34. package/package.json +146 -0
  35. package/src/README.md +36 -0
  36. package/src/helpers/createContext.ts +37 -0
  37. package/src/index.ts +3 -0
  38. package/src/input.css +15 -0
  39. package/src/services/main.machine.ts +247 -0
  40. package/src/services/main.typings.ts +50 -0
  41. package/src/ui/Flow.tsx +18 -0
  42. package/src/ui/components/Bounds.tsx +87 -0
  43. package/src/ui/components/EdgeComponent.tsx +106 -0
  44. package/src/ui/components/EdgesBoard.tsx +56 -0
  45. package/src/ui/components/FlowChart.context.ts +373 -0
  46. package/src/ui/components/FlowChart.data.ts +89 -0
  47. package/src/ui/components/FlowChart.tsx +112 -0
  48. package/src/ui/components/NodeComponent.tsx +288 -0
  49. package/src/ui/components/NodesBoard.tsx +298 -0
  50. package/src/ui/components/classes.ts +85 -0
@@ -0,0 +1,1228 @@
1
+ import { Point } from '../../services/main.typings';
2
+ /** Layout dimensions and handle offset coordinates for a flowchart node. */
3
+ type Dimensions = {
4
+ /** Node width in pixels. */
5
+ width: number;
6
+ /** Node height in pixels. */
7
+ height: number;
8
+ /** Output handle point coordinates of type {@linkcode Point}. */
9
+ output: Point;
10
+ /** Input handle point coordinates of type {@linkcode Point}. */
11
+ input?: Point;
12
+ /** Output handle relative offset point of type {@linkcode Point}. */
13
+ outputOffset?: Point;
14
+ /** Input handle relative offset point of type {@linkcode Point}. */
15
+ inputOffset?: Point;
16
+ };
17
+ /** Connection edge coordinate representation between two endpoints. */
18
+ export type Edge = {
19
+ /** Source node identifier. */
20
+ from: string;
21
+ /** Starting X-coordinate. */
22
+ x0: number;
23
+ /** Starting Y-coordinate. */
24
+ y0: number;
25
+ /** Ending X-coordinate. */
26
+ x1: number;
27
+ /** Ending Y-coordinate. */
28
+ y1: number;
29
+ };
30
+ /**
31
+ * Solid Context Provider component and hook for accessing flowchart board
32
+ * state, services, and zoom.
33
+ */
34
+ export declare const Provider: import('solid-js').ParentComponent, useFlow: () => {
35
+ readonly dimensions: readonly [import('solid-js').Accessor<Record<string, Dimensions>>, import('solid-js').Setter<Record<string, Dimensions>>];
36
+ readonly newEdge: import('solid-js').Signal<Edge | undefined>;
37
+ readonly board: readonly [import('solid-js').Accessor<HTMLDivElement | undefined>, import('solid-js').Setter<HTMLDivElement | undefined>];
38
+ readonly getBoardPoint: (clientX: number, clientY: number) => Point;
39
+ readonly edgesPositions: readonly [import('solid-js').Accessor<Record<string, {
40
+ x0: number;
41
+ y0: number;
42
+ x1: number;
43
+ y1: number;
44
+ }>>, import('solid-js').Setter<Record<string, {
45
+ x0: number;
46
+ y0: number;
47
+ x1: number;
48
+ y1: number;
49
+ }>>];
50
+ readonly service: import('@bemedev/app').SyncInterpreterFrom<import('@bemedev/app').SyncMachine<{
51
+ readonly initial: "idle";
52
+ readonly states: {
53
+ readonly idle: {
54
+ readonly on: {
55
+ readonly CONFIGURE: {
56
+ readonly actions: readonly ["configure"];
57
+ readonly target: "/working";
58
+ };
59
+ readonly CONFIGURE_EMPTY: "/working";
60
+ };
61
+ };
62
+ readonly construction: {
63
+ readonly always: {
64
+ readonly actions: ["buildUI"];
65
+ readonly target: "/working";
66
+ };
67
+ };
68
+ readonly working: {
69
+ readonly on: {
70
+ readonly MOVE: {
71
+ readonly actions: readonly ["moveNode", "buildUI"];
72
+ readonly target: "/construction";
73
+ };
74
+ readonly MOVE_IMMEDIATE: {
75
+ readonly actions: readonly [{
76
+ readonly name: "buildImmediateUI";
77
+ readonly description: "Must be in the ui";
78
+ }];
79
+ };
80
+ readonly UPDATE_UI: "/construction";
81
+ readonly ADD_CHILD: {
82
+ readonly actions: readonly ["generateID", {
83
+ readonly name: "placeChild";
84
+ readonly description: "Must be in the ui";
85
+ }, "linkChild"];
86
+ readonly target: "/construction";
87
+ };
88
+ readonly ADD_PARENT: {
89
+ readonly actions: readonly ["generateID", {
90
+ readonly name: "placeParent";
91
+ readonly description: "Must be in the ui";
92
+ }, "selectParent"];
93
+ readonly target: "/construction";
94
+ };
95
+ readonly ADD_SIBLING: {
96
+ readonly actions: readonly ["generateID", {
97
+ readonly name: "placeSibling";
98
+ readonly description: "Must be in the ui";
99
+ }, "linkSibling"];
100
+ readonly target: "/construction";
101
+ };
102
+ readonly ADD_EDGE: {
103
+ readonly actions: readonly ["addEdge"];
104
+ readonly target: "/construction";
105
+ };
106
+ readonly DELETE: {
107
+ readonly actions: readonly ["delete"];
108
+ readonly target: "/construction";
109
+ };
110
+ readonly SELECT: {
111
+ readonly actions: readonly ["select"];
112
+ };
113
+ readonly DESELECT: {
114
+ readonly actions: readonly ["deselect"];
115
+ };
116
+ };
117
+ };
118
+ };
119
+ }, {
120
+ generatedId: string | null;
121
+ }, {
122
+ data?: {
123
+ nodes: {
124
+ id: string;
125
+ position: {
126
+ x: number;
127
+ y: number;
128
+ };
129
+ data: {
130
+ content: string;
131
+ label?: string | undefined;
132
+ };
133
+ input: boolean;
134
+ }[];
135
+ edges: {
136
+ id: string;
137
+ from: string;
138
+ to: string;
139
+ }[];
140
+ } | undefined;
141
+ selected?: string | undefined;
142
+ updatingUI?: boolean | undefined;
143
+ }, {
144
+ CONFIGURE: {
145
+ nodes: {
146
+ position: {
147
+ x: number;
148
+ y: number;
149
+ };
150
+ data: {
151
+ content: string;
152
+ label?: string | undefined;
153
+ };
154
+ input: boolean;
155
+ id: string;
156
+ }[];
157
+ edges: {
158
+ from: string;
159
+ to: string;
160
+ id: string;
161
+ }[];
162
+ };
163
+ CONFIGURE_EMPTY: never;
164
+ MOVE: {
165
+ id: string;
166
+ x: number;
167
+ y: number;
168
+ };
169
+ MOVE_IMMEDIATE: {
170
+ id: string;
171
+ x: number;
172
+ y: number;
173
+ };
174
+ ADD_CHILD: string;
175
+ ADD_PARENT: never;
176
+ ADD_SIBLING: string;
177
+ DELETE: string;
178
+ SELECT: string;
179
+ DESELECT: never;
180
+ ADD_EDGE: {
181
+ from: string;
182
+ to: string;
183
+ };
184
+ }, import('@bemedev/app').ActorsConfigMap, string, import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
185
+ CONFIGURE: {
186
+ nodes: {
187
+ position: {
188
+ x: number;
189
+ y: number;
190
+ };
191
+ data: {
192
+ content: string;
193
+ label?: string | undefined;
194
+ };
195
+ input: boolean;
196
+ id: string;
197
+ }[];
198
+ edges: {
199
+ from: string;
200
+ to: string;
201
+ id: string;
202
+ }[];
203
+ };
204
+ CONFIGURE_EMPTY: never;
205
+ MOVE: {
206
+ id: string;
207
+ x: number;
208
+ y: number;
209
+ };
210
+ MOVE_IMMEDIATE: {
211
+ id: string;
212
+ x: number;
213
+ y: number;
214
+ };
215
+ ADD_CHILD: string;
216
+ ADD_PARENT: never;
217
+ ADD_SIBLING: string;
218
+ DELETE: string;
219
+ SELECT: string;
220
+ DESELECT: never;
221
+ ADD_EDGE: {
222
+ from: string;
223
+ to: string;
224
+ };
225
+ }, import('@bemedev/app').ActorsConfigMap>>, string, Partial<{
226
+ actions: Partial<Record<string, import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
227
+ CONFIGURE: {
228
+ nodes: {
229
+ position: {
230
+ x: number;
231
+ y: number;
232
+ };
233
+ data: {
234
+ content: string;
235
+ label?: string | undefined;
236
+ };
237
+ input: boolean;
238
+ id: string;
239
+ }[];
240
+ edges: {
241
+ from: string;
242
+ to: string;
243
+ id: string;
244
+ }[];
245
+ };
246
+ CONFIGURE_EMPTY: never;
247
+ MOVE: {
248
+ id: string;
249
+ x: number;
250
+ y: number;
251
+ };
252
+ MOVE_IMMEDIATE: {
253
+ id: string;
254
+ x: number;
255
+ y: number;
256
+ };
257
+ ADD_CHILD: string;
258
+ ADD_PARENT: never;
259
+ ADD_SIBLING: string;
260
+ DELETE: string;
261
+ SELECT: string;
262
+ DESELECT: never;
263
+ ADD_EDGE: {
264
+ from: string;
265
+ to: string;
266
+ };
267
+ }, import('@bemedev/app').ActorsConfigMap>>, {
268
+ generatedId: string | null;
269
+ }, {
270
+ data?: {
271
+ nodes: {
272
+ id: string;
273
+ position: {
274
+ x: number;
275
+ y: number;
276
+ };
277
+ data: {
278
+ content: string;
279
+ label?: string | undefined;
280
+ };
281
+ input: boolean;
282
+ }[];
283
+ edges: {
284
+ id: string;
285
+ from: string;
286
+ to: string;
287
+ }[];
288
+ } | undefined;
289
+ selected?: string | undefined;
290
+ updatingUI?: boolean | undefined;
291
+ }, string>>>;
292
+ guards: Partial<Record<string, import('@bemedev/app').SyncPredicateS<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
293
+ CONFIGURE: {
294
+ nodes: {
295
+ position: {
296
+ x: number;
297
+ y: number;
298
+ };
299
+ data: {
300
+ content: string;
301
+ label?: string | undefined;
302
+ };
303
+ input: boolean;
304
+ id: string;
305
+ }[];
306
+ edges: {
307
+ from: string;
308
+ to: string;
309
+ id: string;
310
+ }[];
311
+ };
312
+ CONFIGURE_EMPTY: never;
313
+ MOVE: {
314
+ id: string;
315
+ x: number;
316
+ y: number;
317
+ };
318
+ MOVE_IMMEDIATE: {
319
+ id: string;
320
+ x: number;
321
+ y: number;
322
+ };
323
+ ADD_CHILD: string;
324
+ ADD_PARENT: never;
325
+ ADD_SIBLING: string;
326
+ DELETE: string;
327
+ SELECT: string;
328
+ DESELECT: never;
329
+ ADD_EDGE: {
330
+ from: string;
331
+ to: string;
332
+ };
333
+ }, import('@bemedev/app').ActorsConfigMap>>, {
334
+ generatedId: string | null;
335
+ }, {
336
+ data?: {
337
+ nodes: {
338
+ id: string;
339
+ position: {
340
+ x: number;
341
+ y: number;
342
+ };
343
+ data: {
344
+ content: string;
345
+ label?: string | undefined;
346
+ };
347
+ input: boolean;
348
+ }[];
349
+ edges: {
350
+ id: string;
351
+ from: string;
352
+ to: string;
353
+ }[];
354
+ } | undefined;
355
+ selected?: string | undefined;
356
+ updatingUI?: boolean | undefined;
357
+ }, string>>>;
358
+ delays: Partial<Record<string, import('@bemedev/app').SyncDelayFunction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
359
+ CONFIGURE: {
360
+ nodes: {
361
+ position: {
362
+ x: number;
363
+ y: number;
364
+ };
365
+ data: {
366
+ content: string;
367
+ label?: string | undefined;
368
+ };
369
+ input: boolean;
370
+ id: string;
371
+ }[];
372
+ edges: {
373
+ from: string;
374
+ to: string;
375
+ id: string;
376
+ }[];
377
+ };
378
+ CONFIGURE_EMPTY: never;
379
+ MOVE: {
380
+ id: string;
381
+ x: number;
382
+ y: number;
383
+ };
384
+ MOVE_IMMEDIATE: {
385
+ id: string;
386
+ x: number;
387
+ y: number;
388
+ };
389
+ ADD_CHILD: string;
390
+ ADD_PARENT: never;
391
+ ADD_SIBLING: string;
392
+ DELETE: string;
393
+ SELECT: string;
394
+ DESELECT: never;
395
+ ADD_EDGE: {
396
+ from: string;
397
+ to: string;
398
+ };
399
+ }, import('@bemedev/app').ActorsConfigMap>>, {
400
+ generatedId: string | null;
401
+ }, {
402
+ data?: {
403
+ nodes: {
404
+ id: string;
405
+ position: {
406
+ x: number;
407
+ y: number;
408
+ };
409
+ data: {
410
+ content: string;
411
+ label?: string | undefined;
412
+ };
413
+ input: boolean;
414
+ }[];
415
+ edges: {
416
+ id: string;
417
+ from: string;
418
+ to: string;
419
+ }[];
420
+ } | undefined;
421
+ selected?: string | undefined;
422
+ updatingUI?: boolean | undefined;
423
+ }, string>>>;
424
+ actors: Partial<{
425
+ children: Partial<Record<string, import('@bemedev/app').SyncChildFunction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
426
+ CONFIGURE: {
427
+ nodes: {
428
+ position: {
429
+ x: number;
430
+ y: number;
431
+ };
432
+ data: {
433
+ content: string;
434
+ label?: string | undefined;
435
+ };
436
+ input: boolean;
437
+ id: string;
438
+ }[];
439
+ edges: {
440
+ from: string;
441
+ to: string;
442
+ id: string;
443
+ }[];
444
+ };
445
+ CONFIGURE_EMPTY: never;
446
+ MOVE: {
447
+ id: string;
448
+ x: number;
449
+ y: number;
450
+ };
451
+ MOVE_IMMEDIATE: {
452
+ id: string;
453
+ x: number;
454
+ y: number;
455
+ };
456
+ ADD_CHILD: string;
457
+ ADD_PARENT: never;
458
+ ADD_SIBLING: string;
459
+ DELETE: string;
460
+ SELECT: string;
461
+ DESELECT: never;
462
+ ADD_EDGE: {
463
+ from: string;
464
+ to: string;
465
+ };
466
+ }, import('@bemedev/app').ActorsConfigMap>>, {
467
+ generatedId: string | null;
468
+ }, {
469
+ data?: {
470
+ nodes: {
471
+ id: string;
472
+ position: {
473
+ x: number;
474
+ y: number;
475
+ };
476
+ data: {
477
+ content: string;
478
+ label?: string | undefined;
479
+ };
480
+ input: boolean;
481
+ }[];
482
+ edges: {
483
+ id: string;
484
+ from: string;
485
+ to: string;
486
+ }[];
487
+ } | undefined;
488
+ selected?: string | undefined;
489
+ updatingUI?: boolean | undefined;
490
+ }, string, any>>>;
491
+ emitters: Partial<Record<string, import('@bemedev/app').SyncEmitterFunction<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
492
+ CONFIGURE: {
493
+ nodes: {
494
+ position: {
495
+ x: number;
496
+ y: number;
497
+ };
498
+ data: {
499
+ content: string;
500
+ label?: string | undefined;
501
+ };
502
+ input: boolean;
503
+ id: string;
504
+ }[];
505
+ edges: {
506
+ from: string;
507
+ to: string;
508
+ id: string;
509
+ }[];
510
+ };
511
+ CONFIGURE_EMPTY: never;
512
+ MOVE: {
513
+ id: string;
514
+ x: number;
515
+ y: number;
516
+ };
517
+ MOVE_IMMEDIATE: {
518
+ id: string;
519
+ x: number;
520
+ y: number;
521
+ };
522
+ ADD_CHILD: string;
523
+ ADD_PARENT: never;
524
+ ADD_SIBLING: string;
525
+ DELETE: string;
526
+ SELECT: string;
527
+ DESELECT: never;
528
+ ADD_EDGE: {
529
+ from: string;
530
+ to: string;
531
+ };
532
+ }, import('@bemedev/app').ActorsConfigMap>>, {
533
+ generatedId: string | null;
534
+ }, {
535
+ data?: {
536
+ nodes: {
537
+ id: string;
538
+ position: {
539
+ x: number;
540
+ y: number;
541
+ };
542
+ data: {
543
+ content: string;
544
+ label?: string | undefined;
545
+ };
546
+ input: boolean;
547
+ }[];
548
+ edges: {
549
+ id: string;
550
+ from: string;
551
+ to: string;
552
+ }[];
553
+ } | undefined;
554
+ selected?: string | undefined;
555
+ updatingUI?: boolean | undefined;
556
+ }, string, any>>>;
557
+ }>;
558
+ }>, Partial<Record<"actions" | "guards" | "delays", any> & Record<"actors", {
559
+ children?: import('@bemedev/app').RecordS<any>;
560
+ emitters?: import('@bemedev/app').RecordS<any>;
561
+ }>> & {
562
+ readonly actions: {
563
+ readonly configure: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
564
+ CONFIGURE: {
565
+ nodes: {
566
+ position: {
567
+ x: number;
568
+ y: number;
569
+ };
570
+ data: {
571
+ content: string;
572
+ label?: string | undefined;
573
+ };
574
+ input: boolean;
575
+ id: string;
576
+ }[];
577
+ edges: {
578
+ from: string;
579
+ to: string;
580
+ id: string;
581
+ }[];
582
+ };
583
+ CONFIGURE_EMPTY: never;
584
+ MOVE: {
585
+ id: string;
586
+ x: number;
587
+ y: number;
588
+ };
589
+ MOVE_IMMEDIATE: {
590
+ id: string;
591
+ x: number;
592
+ y: number;
593
+ };
594
+ ADD_CHILD: string;
595
+ ADD_PARENT: never;
596
+ ADD_SIBLING: string;
597
+ DELETE: string;
598
+ SELECT: string;
599
+ DESELECT: never;
600
+ ADD_EDGE: {
601
+ from: string;
602
+ to: string;
603
+ };
604
+ }, import('@bemedev/app').ActorsConfigMap>>, {
605
+ generatedId: string | null;
606
+ }, {
607
+ data?: {
608
+ nodes: {
609
+ id: string;
610
+ position: {
611
+ x: number;
612
+ y: number;
613
+ };
614
+ data: {
615
+ content: string;
616
+ label?: string | undefined;
617
+ };
618
+ input: boolean;
619
+ }[];
620
+ edges: {
621
+ id: string;
622
+ from: string;
623
+ to: string;
624
+ }[];
625
+ } | undefined;
626
+ selected?: string | undefined;
627
+ updatingUI?: boolean | undefined;
628
+ }, string>;
629
+ readonly generateID: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
630
+ CONFIGURE: {
631
+ nodes: {
632
+ position: {
633
+ x: number;
634
+ y: number;
635
+ };
636
+ data: {
637
+ content: string;
638
+ label?: string | undefined;
639
+ };
640
+ input: boolean;
641
+ id: string;
642
+ }[];
643
+ edges: {
644
+ from: string;
645
+ to: string;
646
+ id: string;
647
+ }[];
648
+ };
649
+ CONFIGURE_EMPTY: never;
650
+ MOVE: {
651
+ id: string;
652
+ x: number;
653
+ y: number;
654
+ };
655
+ MOVE_IMMEDIATE: {
656
+ id: string;
657
+ x: number;
658
+ y: number;
659
+ };
660
+ ADD_CHILD: string;
661
+ ADD_PARENT: never;
662
+ ADD_SIBLING: string;
663
+ DELETE: string;
664
+ SELECT: string;
665
+ DESELECT: never;
666
+ ADD_EDGE: {
667
+ from: string;
668
+ to: string;
669
+ };
670
+ }, import('@bemedev/app').ActorsConfigMap>>, {
671
+ generatedId: string | null;
672
+ }, {
673
+ data?: {
674
+ nodes: {
675
+ id: string;
676
+ position: {
677
+ x: number;
678
+ y: number;
679
+ };
680
+ data: {
681
+ content: string;
682
+ label?: string | undefined;
683
+ };
684
+ input: boolean;
685
+ }[];
686
+ edges: {
687
+ id: string;
688
+ from: string;
689
+ to: string;
690
+ }[];
691
+ } | undefined;
692
+ selected?: string | undefined;
693
+ updatingUI?: boolean | undefined;
694
+ }, string>;
695
+ readonly linkChild: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
696
+ CONFIGURE: {
697
+ nodes: {
698
+ position: {
699
+ x: number;
700
+ y: number;
701
+ };
702
+ data: {
703
+ content: string;
704
+ label?: string | undefined;
705
+ };
706
+ input: boolean;
707
+ id: string;
708
+ }[];
709
+ edges: {
710
+ from: string;
711
+ to: string;
712
+ id: string;
713
+ }[];
714
+ };
715
+ CONFIGURE_EMPTY: never;
716
+ MOVE: {
717
+ id: string;
718
+ x: number;
719
+ y: number;
720
+ };
721
+ MOVE_IMMEDIATE: {
722
+ id: string;
723
+ x: number;
724
+ y: number;
725
+ };
726
+ ADD_CHILD: string;
727
+ ADD_PARENT: never;
728
+ ADD_SIBLING: string;
729
+ DELETE: string;
730
+ SELECT: string;
731
+ DESELECT: never;
732
+ ADD_EDGE: {
733
+ from: string;
734
+ to: string;
735
+ };
736
+ }, import('@bemedev/app').ActorsConfigMap>>, {
737
+ generatedId: string | null;
738
+ }, {
739
+ data?: {
740
+ nodes: {
741
+ id: string;
742
+ position: {
743
+ x: number;
744
+ y: number;
745
+ };
746
+ data: {
747
+ content: string;
748
+ label?: string | undefined;
749
+ };
750
+ input: boolean;
751
+ }[];
752
+ edges: {
753
+ id: string;
754
+ from: string;
755
+ to: string;
756
+ }[];
757
+ } | undefined;
758
+ selected?: string | undefined;
759
+ updatingUI?: boolean | undefined;
760
+ }, string>;
761
+ readonly linkSibling: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
762
+ CONFIGURE: {
763
+ nodes: {
764
+ position: {
765
+ x: number;
766
+ y: number;
767
+ };
768
+ data: {
769
+ content: string;
770
+ label?: string | undefined;
771
+ };
772
+ input: boolean;
773
+ id: string;
774
+ }[];
775
+ edges: {
776
+ from: string;
777
+ to: string;
778
+ id: string;
779
+ }[];
780
+ };
781
+ CONFIGURE_EMPTY: never;
782
+ MOVE: {
783
+ id: string;
784
+ x: number;
785
+ y: number;
786
+ };
787
+ MOVE_IMMEDIATE: {
788
+ id: string;
789
+ x: number;
790
+ y: number;
791
+ };
792
+ ADD_CHILD: string;
793
+ ADD_PARENT: never;
794
+ ADD_SIBLING: string;
795
+ DELETE: string;
796
+ SELECT: string;
797
+ DESELECT: never;
798
+ ADD_EDGE: {
799
+ from: string;
800
+ to: string;
801
+ };
802
+ }, import('@bemedev/app').ActorsConfigMap>>, {
803
+ generatedId: string | null;
804
+ }, {
805
+ data?: {
806
+ nodes: {
807
+ id: string;
808
+ position: {
809
+ x: number;
810
+ y: number;
811
+ };
812
+ data: {
813
+ content: string;
814
+ label?: string | undefined;
815
+ };
816
+ input: boolean;
817
+ }[];
818
+ edges: {
819
+ id: string;
820
+ from: string;
821
+ to: string;
822
+ }[];
823
+ } | undefined;
824
+ selected?: string | undefined;
825
+ updatingUI?: boolean | undefined;
826
+ }, string>;
827
+ readonly selectParent: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
828
+ CONFIGURE: {
829
+ nodes: {
830
+ position: {
831
+ x: number;
832
+ y: number;
833
+ };
834
+ data: {
835
+ content: string;
836
+ label?: string | undefined;
837
+ };
838
+ input: boolean;
839
+ id: string;
840
+ }[];
841
+ edges: {
842
+ from: string;
843
+ to: string;
844
+ id: string;
845
+ }[];
846
+ };
847
+ CONFIGURE_EMPTY: never;
848
+ MOVE: {
849
+ id: string;
850
+ x: number;
851
+ y: number;
852
+ };
853
+ MOVE_IMMEDIATE: {
854
+ id: string;
855
+ x: number;
856
+ y: number;
857
+ };
858
+ ADD_CHILD: string;
859
+ ADD_PARENT: never;
860
+ ADD_SIBLING: string;
861
+ DELETE: string;
862
+ SELECT: string;
863
+ DESELECT: never;
864
+ ADD_EDGE: {
865
+ from: string;
866
+ to: string;
867
+ };
868
+ }, import('@bemedev/app').ActorsConfigMap>>, {
869
+ generatedId: string | null;
870
+ }, {
871
+ data?: {
872
+ nodes: {
873
+ id: string;
874
+ position: {
875
+ x: number;
876
+ y: number;
877
+ };
878
+ data: {
879
+ content: string;
880
+ label?: string | undefined;
881
+ };
882
+ input: boolean;
883
+ }[];
884
+ edges: {
885
+ id: string;
886
+ from: string;
887
+ to: string;
888
+ }[];
889
+ } | undefined;
890
+ selected?: string | undefined;
891
+ updatingUI?: boolean | undefined;
892
+ }, string>;
893
+ readonly moveNode: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
894
+ CONFIGURE: {
895
+ nodes: {
896
+ position: {
897
+ x: number;
898
+ y: number;
899
+ };
900
+ data: {
901
+ content: string;
902
+ label?: string | undefined;
903
+ };
904
+ input: boolean;
905
+ id: string;
906
+ }[];
907
+ edges: {
908
+ from: string;
909
+ to: string;
910
+ id: string;
911
+ }[];
912
+ };
913
+ CONFIGURE_EMPTY: never;
914
+ MOVE: {
915
+ id: string;
916
+ x: number;
917
+ y: number;
918
+ };
919
+ MOVE_IMMEDIATE: {
920
+ id: string;
921
+ x: number;
922
+ y: number;
923
+ };
924
+ ADD_CHILD: string;
925
+ ADD_PARENT: never;
926
+ ADD_SIBLING: string;
927
+ DELETE: string;
928
+ SELECT: string;
929
+ DESELECT: never;
930
+ ADD_EDGE: {
931
+ from: string;
932
+ to: string;
933
+ };
934
+ }, import('@bemedev/app').ActorsConfigMap>>, {
935
+ generatedId: string | null;
936
+ }, {
937
+ data?: {
938
+ nodes: {
939
+ id: string;
940
+ position: {
941
+ x: number;
942
+ y: number;
943
+ };
944
+ data: {
945
+ content: string;
946
+ label?: string | undefined;
947
+ };
948
+ input: boolean;
949
+ }[];
950
+ edges: {
951
+ id: string;
952
+ from: string;
953
+ to: string;
954
+ }[];
955
+ } | undefined;
956
+ selected?: string | undefined;
957
+ updatingUI?: boolean | undefined;
958
+ }, string>;
959
+ readonly select: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
960
+ CONFIGURE: {
961
+ nodes: {
962
+ position: {
963
+ x: number;
964
+ y: number;
965
+ };
966
+ data: {
967
+ content: string;
968
+ label?: string | undefined;
969
+ };
970
+ input: boolean;
971
+ id: string;
972
+ }[];
973
+ edges: {
974
+ from: string;
975
+ to: string;
976
+ id: string;
977
+ }[];
978
+ };
979
+ CONFIGURE_EMPTY: never;
980
+ MOVE: {
981
+ id: string;
982
+ x: number;
983
+ y: number;
984
+ };
985
+ MOVE_IMMEDIATE: {
986
+ id: string;
987
+ x: number;
988
+ y: number;
989
+ };
990
+ ADD_CHILD: string;
991
+ ADD_PARENT: never;
992
+ ADD_SIBLING: string;
993
+ DELETE: string;
994
+ SELECT: string;
995
+ DESELECT: never;
996
+ ADD_EDGE: {
997
+ from: string;
998
+ to: string;
999
+ };
1000
+ }, import('@bemedev/app').ActorsConfigMap>>, {
1001
+ generatedId: string | null;
1002
+ }, {
1003
+ data?: {
1004
+ nodes: {
1005
+ id: string;
1006
+ position: {
1007
+ x: number;
1008
+ y: number;
1009
+ };
1010
+ data: {
1011
+ content: string;
1012
+ label?: string | undefined;
1013
+ };
1014
+ input: boolean;
1015
+ }[];
1016
+ edges: {
1017
+ id: string;
1018
+ from: string;
1019
+ to: string;
1020
+ }[];
1021
+ } | undefined;
1022
+ selected?: string | undefined;
1023
+ updatingUI?: boolean | undefined;
1024
+ }, string>;
1025
+ readonly delete: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
1026
+ CONFIGURE: {
1027
+ nodes: {
1028
+ position: {
1029
+ x: number;
1030
+ y: number;
1031
+ };
1032
+ data: {
1033
+ content: string;
1034
+ label?: string | undefined;
1035
+ };
1036
+ input: boolean;
1037
+ id: string;
1038
+ }[];
1039
+ edges: {
1040
+ from: string;
1041
+ to: string;
1042
+ id: string;
1043
+ }[];
1044
+ };
1045
+ CONFIGURE_EMPTY: never;
1046
+ MOVE: {
1047
+ id: string;
1048
+ x: number;
1049
+ y: number;
1050
+ };
1051
+ MOVE_IMMEDIATE: {
1052
+ id: string;
1053
+ x: number;
1054
+ y: number;
1055
+ };
1056
+ ADD_CHILD: string;
1057
+ ADD_PARENT: never;
1058
+ ADD_SIBLING: string;
1059
+ DELETE: string;
1060
+ SELECT: string;
1061
+ DESELECT: never;
1062
+ ADD_EDGE: {
1063
+ from: string;
1064
+ to: string;
1065
+ };
1066
+ }, import('@bemedev/app').ActorsConfigMap>>, {
1067
+ generatedId: string | null;
1068
+ }, {
1069
+ data?: {
1070
+ nodes: {
1071
+ id: string;
1072
+ position: {
1073
+ x: number;
1074
+ y: number;
1075
+ };
1076
+ data: {
1077
+ content: string;
1078
+ label?: string | undefined;
1079
+ };
1080
+ input: boolean;
1081
+ }[];
1082
+ edges: {
1083
+ id: string;
1084
+ from: string;
1085
+ to: string;
1086
+ }[];
1087
+ } | undefined;
1088
+ selected?: string | undefined;
1089
+ updatingUI?: boolean | undefined;
1090
+ }, string>;
1091
+ readonly addEdge: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
1092
+ CONFIGURE: {
1093
+ nodes: {
1094
+ position: {
1095
+ x: number;
1096
+ y: number;
1097
+ };
1098
+ data: {
1099
+ content: string;
1100
+ label?: string | undefined;
1101
+ };
1102
+ input: boolean;
1103
+ id: string;
1104
+ }[];
1105
+ edges: {
1106
+ from: string;
1107
+ to: string;
1108
+ id: string;
1109
+ }[];
1110
+ };
1111
+ CONFIGURE_EMPTY: never;
1112
+ MOVE: {
1113
+ id: string;
1114
+ x: number;
1115
+ y: number;
1116
+ };
1117
+ MOVE_IMMEDIATE: {
1118
+ id: string;
1119
+ x: number;
1120
+ y: number;
1121
+ };
1122
+ ADD_CHILD: string;
1123
+ ADD_PARENT: never;
1124
+ ADD_SIBLING: string;
1125
+ DELETE: string;
1126
+ SELECT: string;
1127
+ DESELECT: never;
1128
+ ADD_EDGE: {
1129
+ from: string;
1130
+ to: string;
1131
+ };
1132
+ }, import('@bemedev/app').ActorsConfigMap>>, {
1133
+ generatedId: string | null;
1134
+ }, {
1135
+ data?: {
1136
+ nodes: {
1137
+ id: string;
1138
+ position: {
1139
+ x: number;
1140
+ y: number;
1141
+ };
1142
+ data: {
1143
+ content: string;
1144
+ label?: string | undefined;
1145
+ };
1146
+ input: boolean;
1147
+ }[];
1148
+ edges: {
1149
+ id: string;
1150
+ from: string;
1151
+ to: string;
1152
+ }[];
1153
+ } | undefined;
1154
+ selected?: string | undefined;
1155
+ updatingUI?: boolean | undefined;
1156
+ }, string>;
1157
+ readonly deselect: import('@bemedev/app').SyncAction2<import('@bemedev/app').ToEventObject<import('@bemedev/app').ToEvents<{
1158
+ CONFIGURE: {
1159
+ nodes: {
1160
+ position: {
1161
+ x: number;
1162
+ y: number;
1163
+ };
1164
+ data: {
1165
+ content: string;
1166
+ label?: string | undefined;
1167
+ };
1168
+ input: boolean;
1169
+ id: string;
1170
+ }[];
1171
+ edges: {
1172
+ from: string;
1173
+ to: string;
1174
+ id: string;
1175
+ }[];
1176
+ };
1177
+ CONFIGURE_EMPTY: never;
1178
+ MOVE: {
1179
+ id: string;
1180
+ x: number;
1181
+ y: number;
1182
+ };
1183
+ MOVE_IMMEDIATE: {
1184
+ id: string;
1185
+ x: number;
1186
+ y: number;
1187
+ };
1188
+ ADD_CHILD: string;
1189
+ ADD_PARENT: never;
1190
+ ADD_SIBLING: string;
1191
+ DELETE: string;
1192
+ SELECT: string;
1193
+ DESELECT: never;
1194
+ ADD_EDGE: {
1195
+ from: string;
1196
+ to: string;
1197
+ };
1198
+ }, import('@bemedev/app').ActorsConfigMap>>, {
1199
+ generatedId: string | null;
1200
+ }, {
1201
+ data?: {
1202
+ nodes: {
1203
+ id: string;
1204
+ position: {
1205
+ x: number;
1206
+ y: number;
1207
+ };
1208
+ data: {
1209
+ content: string;
1210
+ label?: string | undefined;
1211
+ };
1212
+ input: boolean;
1213
+ }[];
1214
+ edges: {
1215
+ id: string;
1216
+ from: string;
1217
+ to: string;
1218
+ }[];
1219
+ } | undefined;
1220
+ selected?: string | undefined;
1221
+ updatingUI?: boolean | undefined;
1222
+ }, string>;
1223
+ };
1224
+ }>>;
1225
+ readonly zoom: import('solid-js').Signal<number>;
1226
+ };
1227
+ export {};
1228
+ //# sourceMappingURL=FlowChart.context.d.ts.map