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