@omnia/fx 8.0.280-dev → 8.0.281-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (16) hide show
  1. package/internal-do-not-import-from-here/ux/editorchrome/stores/EditorSettingsStore.d.ts +2 -2
  2. package/internal-do-not-import-from-here/ux/flow/editor/commands/EditorCommands.d.ts +4 -1
  3. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/HtmlNodehelper.d.ts +1 -0
  4. package/internal-do-not-import-from-here/ux/flow/editor/components/EditorSelector.css.d.ts +6 -0
  5. package/internal-do-not-import-from-here/ux/flow/editor/components/EditorSelector.d.ts +10 -0
  6. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +1 -1
  7. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/EnterHandler.d.ts +1 -1
  8. package/internal-do-not-import-from-here/ux/flow/editor/rules/EditorRules.d.ts +1 -0
  9. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +30 -2
  10. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +150 -10
  11. package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +8 -1
  12. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +5 -0
  13. package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -0
  14. package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentDescriptors.d.ts +1 -0
  15. package/internal-do-not-import-from-here/ux/velcron/renderer/components/Link.d.ts +32 -0
  16. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
1
  import { Store } from "@omnia/fx/stores";
2
- import { EditorSettings, EditorDisplayModes, EditorUserExperience, DisplayBreakpointTypes, LayoutEditorCanvasApi } from "../../../models";
2
+ import { EditorSettings, EditorDisplayModes, EditorUserExperience, DisplayBreakpointTypes, LayoutEditorCanvasApi, LayoutRendererCanvasApi } from "../../../models";
3
3
  export declare class EditorSettingsStore extends Store {
4
4
  /**
5
5
  * State
6
6
  */
7
- canvasApi: LayoutEditorCanvasApi;
7
+ canvasApi: LayoutEditorCanvasApi | LayoutRendererCanvasApi;
8
8
  editorDisplayMode: import("@omnia/fx/stores").StoreState<EditorDisplayModes>;
9
9
  editorUserExperience: import("@omnia/fx/stores").StoreState<EditorUserExperience>;
10
10
  showContentNavigation: import("@omnia/fx/stores").StoreState<boolean>;
@@ -13,7 +13,9 @@ export declare function useEditorCommands(state: {
13
13
  convert: (element: HTMLElement) => void;
14
14
  };
15
15
  ensure: {
16
- lastElement: () => void;
16
+ lastElement: {
17
+ isText: () => void;
18
+ };
17
19
  unique: {
18
20
  ids: (element: HTMLElement) => void;
19
21
  };
@@ -84,6 +86,7 @@ export declare function useEditorCommands(state: {
84
86
  };
85
87
  get: {
86
88
  topContainerForContent: (element: HTMLElement) => HTMLElement;
89
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
87
90
  nodeSelectionForRange: (range: Range) => NodeSelection;
88
91
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
89
92
  };
@@ -9,6 +9,7 @@ export declare function useHtmlNodeHelper(): {
9
9
  };
10
10
  get: {
11
11
  topContainerForContent: (element: HTMLElement) => HTMLElement;
12
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
12
13
  nodeSelectionForRange: (range: Range) => NodeSelection;
13
14
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
14
15
  };
@@ -0,0 +1,6 @@
1
+ import { useColorSchemaStore } from "internal/fx/ux/aurora";
2
+ export declare const EditorSelectorCss: {
3
+ wrapper: (colors: ReturnType<typeof useColorSchemaStore>) => string;
4
+ selectorButton: (colors: ReturnType<typeof useColorSchemaStore>) => string;
5
+ rightContainer: (colors: ReturnType<typeof useColorSchemaStore>) => string;
6
+ };
@@ -0,0 +1,10 @@
1
+ import { FlowEditorPluginContext } from "../models";
2
+ import { guid } from "@omnia/fx-models";
3
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
4
+ preSelector?: boolean;
5
+ } & {
6
+ ctx?: FlowEditorPluginContext;
7
+ } & {
8
+ selectorId?: guid;
9
+ }>) => any;
10
+ export default _default;
@@ -1,4 +1,4 @@
1
1
  import { useFlowEditorStore } from "../../../stores";
2
2
  export declare function useBackspaceHandler(): {
3
- handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
3
+ handle: (event: KeyboardEvent, store: ReturnType<typeof useFlowEditorStore>) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import { useFlowEditorStore } from "../../../stores";
2
2
  export declare function useEnterHandler(): {
3
- handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
3
+ handle: (event: KeyboardEvent, store: ReturnType<typeof useFlowEditorStore>) => void;
4
4
  };
@@ -4,5 +4,6 @@ export declare function useFlowEditorRules(): {
4
4
  topContainer: (node: HTMLElement) => boolean;
5
5
  editorNode: (node: HTMLElement) => boolean;
6
6
  clipboardContainer: (node: HTMLElement) => boolean;
7
+ emptyTextNode: (node: HTMLElement) => boolean;
7
8
  };
8
9
  };
@@ -44,6 +44,9 @@ export declare const useFlowEditorStore: () => {
44
44
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
45
45
  actions: {
46
46
  onDispatching: {
47
+ confirm: {
48
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
+ };
47
50
  selection: {
48
51
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
52
  };
@@ -70,6 +73,13 @@ export declare const useFlowEditorStore: () => {
70
73
  };
71
74
  };
72
75
  onDispatched: {
76
+ confirm: {
77
+ subscribe(fn: (result: {
78
+ delete: {
79
+ container: (element: HTMLElement) => void;
80
+ };
81
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
82
+ };
73
83
  selection: {
74
84
  subscribe(fn: (result: {
75
85
  ensure: {
@@ -122,6 +132,8 @@ export declare const useFlowEditorStore: () => {
122
132
  create: (tagName: string, dataType: string) => HTMLElement;
123
133
  createTextNode: (data: any) => Text;
124
134
  add: (element: HTMLElement) => void;
135
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
136
+ delete: (element: HTMLElement) => void;
125
137
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
126
138
  };
127
139
  commands: {
@@ -132,7 +144,9 @@ export declare const useFlowEditorStore: () => {
132
144
  convert: (element: HTMLElement) => void;
133
145
  };
134
146
  ensure: {
135
- lastElement: () => void;
147
+ lastElement: {
148
+ isText: () => void;
149
+ };
136
150
  unique: {
137
151
  ids: (element: HTMLElement) => void;
138
152
  };
@@ -203,6 +217,7 @@ export declare const useFlowEditorStore: () => {
203
217
  };
204
218
  get: {
205
219
  topContainerForContent: (element: HTMLElement) => HTMLElement;
220
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
206
221
  nodeSelectionForRange: (range: Range) => NodeSelection;
207
222
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
208
223
  };
@@ -223,6 +238,9 @@ export declare const useFlowEditorStore: () => {
223
238
  };
224
239
  };
225
240
  onFailure: {
241
+ confirm: {
242
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
243
+ };
226
244
  selection: {
227
245
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
228
246
  };
@@ -249,6 +267,11 @@ export declare const useFlowEditorStore: () => {
249
267
  };
250
268
  };
251
269
  } & {
270
+ confirm: () => {
271
+ delete: {
272
+ container: (element: HTMLElement) => void;
273
+ };
274
+ };
252
275
  selection: () => {
253
276
  ensure: {
254
277
  storedRange: () => void;
@@ -288,6 +311,8 @@ export declare const useFlowEditorStore: () => {
288
311
  create: (tagName: string, dataType: string) => HTMLElement;
289
312
  createTextNode: (data: any) => Text;
290
313
  add: (element: HTMLElement) => void;
314
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
315
+ delete: (element: HTMLElement) => void;
291
316
  };
292
317
  commands: () => {
293
318
  exec: (command: string, data: object | string) => void;
@@ -296,7 +321,9 @@ export declare const useFlowEditorStore: () => {
296
321
  convert: (element: HTMLElement) => void;
297
322
  };
298
323
  ensure: {
299
- lastElement: () => void;
324
+ lastElement: {
325
+ isText: () => void;
326
+ };
300
327
  unique: {
301
328
  ids: (element: HTMLElement) => void;
302
329
  };
@@ -367,6 +394,7 @@ export declare const useFlowEditorStore: () => {
367
394
  };
368
395
  get: {
369
396
  topContainerForContent: (element: HTMLElement) => HTMLElement;
397
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
370
398
  nodeSelectionForRange: (range: Range) => NodeSelection;
371
399
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
372
400
  };
@@ -45,6 +45,9 @@ export declare const useFlowEditorToolbarStore: () => {
45
45
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
46
46
  actions: {
47
47
  onDispatching: {
48
+ confirm: {
49
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
+ };
48
51
  selection: {
49
52
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
53
  };
@@ -71,6 +74,13 @@ export declare const useFlowEditorToolbarStore: () => {
71
74
  };
72
75
  };
73
76
  onDispatched: {
77
+ confirm: {
78
+ subscribe(fn: (result: {
79
+ delete: {
80
+ container: (element: HTMLElement) => void;
81
+ };
82
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
83
+ };
74
84
  selection: {
75
85
  subscribe(fn: (result: {
76
86
  ensure: {
@@ -123,6 +133,8 @@ export declare const useFlowEditorToolbarStore: () => {
123
133
  create: (tagName: string, dataType: string) => HTMLElement;
124
134
  createTextNode: (data: any) => Text;
125
135
  add: (element: HTMLElement) => void;
136
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
137
+ delete: (element: HTMLElement) => void;
126
138
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
127
139
  };
128
140
  commands: {
@@ -133,7 +145,9 @@ export declare const useFlowEditorToolbarStore: () => {
133
145
  convert: (element: HTMLElement) => void;
134
146
  };
135
147
  ensure: {
136
- lastElement: () => void;
148
+ lastElement: {
149
+ isText: () => void;
150
+ };
137
151
  unique: {
138
152
  ids: (element: HTMLElement) => void;
139
153
  };
@@ -204,6 +218,7 @@ export declare const useFlowEditorToolbarStore: () => {
204
218
  };
205
219
  get: {
206
220
  topContainerForContent: (element: HTMLElement) => HTMLElement;
221
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
207
222
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
208
223
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
209
224
  };
@@ -224,6 +239,9 @@ export declare const useFlowEditorToolbarStore: () => {
224
239
  };
225
240
  };
226
241
  onFailure: {
242
+ confirm: {
243
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
244
+ };
227
245
  selection: {
228
246
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
229
247
  };
@@ -250,6 +268,11 @@ export declare const useFlowEditorToolbarStore: () => {
250
268
  };
251
269
  };
252
270
  } & {
271
+ confirm: () => {
272
+ delete: {
273
+ container: (element: HTMLElement) => void;
274
+ };
275
+ };
253
276
  selection: () => {
254
277
  ensure: {
255
278
  storedRange: () => void;
@@ -289,6 +312,8 @@ export declare const useFlowEditorToolbarStore: () => {
289
312
  create: (tagName: string, dataType: string) => HTMLElement;
290
313
  createTextNode: (data: any) => Text;
291
314
  add: (element: HTMLElement) => void;
315
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
316
+ delete: (element: HTMLElement) => void;
292
317
  };
293
318
  commands: () => {
294
319
  exec: (command: string, data: object | string) => void;
@@ -297,7 +322,9 @@ export declare const useFlowEditorToolbarStore: () => {
297
322
  convert: (element: HTMLElement) => void;
298
323
  };
299
324
  ensure: {
300
- lastElement: () => void;
325
+ lastElement: {
326
+ isText: () => void;
327
+ };
301
328
  unique: {
302
329
  ids: (element: HTMLElement) => void;
303
330
  };
@@ -368,6 +395,7 @@ export declare const useFlowEditorToolbarStore: () => {
368
395
  };
369
396
  get: {
370
397
  topContainerForContent: (element: HTMLElement) => HTMLElement;
398
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
371
399
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
372
400
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
373
401
  };
@@ -457,6 +485,9 @@ export declare const useFlowEditorToolbarStore: () => {
457
485
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
458
486
  actions: {
459
487
  onDispatching: {
488
+ confirm: {
489
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
490
+ };
460
491
  selection: {
461
492
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
462
493
  };
@@ -483,6 +514,13 @@ export declare const useFlowEditorToolbarStore: () => {
483
514
  };
484
515
  };
485
516
  onDispatched: {
517
+ confirm: {
518
+ subscribe(fn: (result: {
519
+ delete: {
520
+ container: (element: HTMLElement) => void;
521
+ };
522
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
523
+ };
486
524
  selection: {
487
525
  subscribe(fn: (result: {
488
526
  ensure: {
@@ -535,6 +573,8 @@ export declare const useFlowEditorToolbarStore: () => {
535
573
  create: (tagName: string, dataType: string) => HTMLElement;
536
574
  createTextNode: (data: any) => Text;
537
575
  add: (element: HTMLElement) => void;
576
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
577
+ delete: (element: HTMLElement) => void;
538
578
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
539
579
  };
540
580
  commands: {
@@ -545,7 +585,9 @@ export declare const useFlowEditorToolbarStore: () => {
545
585
  convert: (element: HTMLElement) => void;
546
586
  };
547
587
  ensure: {
548
- lastElement: () => void;
588
+ lastElement: {
589
+ isText: () => void;
590
+ };
549
591
  unique: {
550
592
  ids: (element: HTMLElement) => void;
551
593
  };
@@ -616,6 +658,7 @@ export declare const useFlowEditorToolbarStore: () => {
616
658
  };
617
659
  get: {
618
660
  topContainerForContent: (element: HTMLElement) => HTMLElement;
661
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
619
662
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
620
663
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
621
664
  };
@@ -636,6 +679,9 @@ export declare const useFlowEditorToolbarStore: () => {
636
679
  };
637
680
  };
638
681
  onFailure: {
682
+ confirm: {
683
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
684
+ };
639
685
  selection: {
640
686
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
641
687
  };
@@ -662,6 +708,11 @@ export declare const useFlowEditorToolbarStore: () => {
662
708
  };
663
709
  };
664
710
  } & {
711
+ confirm: () => {
712
+ delete: {
713
+ container: (element: HTMLElement) => void;
714
+ };
715
+ };
665
716
  selection: () => {
666
717
  ensure: {
667
718
  storedRange: () => void;
@@ -701,6 +752,8 @@ export declare const useFlowEditorToolbarStore: () => {
701
752
  create: (tagName: string, dataType: string) => HTMLElement;
702
753
  createTextNode: (data: any) => Text;
703
754
  add: (element: HTMLElement) => void;
755
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
756
+ delete: (element: HTMLElement) => void;
704
757
  };
705
758
  commands: () => {
706
759
  exec: (command: string, data: object | string) => void;
@@ -709,7 +762,9 @@ export declare const useFlowEditorToolbarStore: () => {
709
762
  convert: (element: HTMLElement) => void;
710
763
  };
711
764
  ensure: {
712
- lastElement: () => void;
765
+ lastElement: {
766
+ isText: () => void;
767
+ };
713
768
  unique: {
714
769
  ids: (element: HTMLElement) => void;
715
770
  };
@@ -780,6 +835,7 @@ export declare const useFlowEditorToolbarStore: () => {
780
835
  };
781
836
  get: {
782
837
  topContainerForContent: (element: HTMLElement) => HTMLElement;
838
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
783
839
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
784
840
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
785
841
  };
@@ -880,6 +936,9 @@ export declare const useFlowEditorToolbarStore: () => {
880
936
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
881
937
  actions: {
882
938
  onDispatching: {
939
+ confirm: {
940
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
941
+ };
883
942
  selection: {
884
943
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
885
944
  };
@@ -906,6 +965,13 @@ export declare const useFlowEditorToolbarStore: () => {
906
965
  };
907
966
  };
908
967
  onDispatched: {
968
+ confirm: {
969
+ subscribe(fn: (result: {
970
+ delete: {
971
+ container: (element: HTMLElement) => void;
972
+ };
973
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
974
+ };
909
975
  selection: {
910
976
  subscribe(fn: (result: {
911
977
  ensure: {
@@ -958,6 +1024,8 @@ export declare const useFlowEditorToolbarStore: () => {
958
1024
  create: (tagName: string, dataType: string) => HTMLElement;
959
1025
  createTextNode: (data: any) => Text;
960
1026
  add: (element: HTMLElement) => void;
1027
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1028
+ delete: (element: HTMLElement) => void;
961
1029
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
962
1030
  };
963
1031
  commands: {
@@ -968,7 +1036,9 @@ export declare const useFlowEditorToolbarStore: () => {
968
1036
  convert: (element: HTMLElement) => void;
969
1037
  };
970
1038
  ensure: {
971
- lastElement: () => void;
1039
+ lastElement: {
1040
+ isText: () => void;
1041
+ };
972
1042
  unique: {
973
1043
  ids: (element: HTMLElement) => void;
974
1044
  };
@@ -1039,6 +1109,7 @@ export declare const useFlowEditorToolbarStore: () => {
1039
1109
  };
1040
1110
  get: {
1041
1111
  topContainerForContent: (element: HTMLElement) => HTMLElement;
1112
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
1042
1113
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
1043
1114
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1044
1115
  };
@@ -1059,6 +1130,9 @@ export declare const useFlowEditorToolbarStore: () => {
1059
1130
  };
1060
1131
  };
1061
1132
  onFailure: {
1133
+ confirm: {
1134
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1135
+ };
1062
1136
  selection: {
1063
1137
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1064
1138
  };
@@ -1085,6 +1159,11 @@ export declare const useFlowEditorToolbarStore: () => {
1085
1159
  };
1086
1160
  };
1087
1161
  } & {
1162
+ confirm: () => {
1163
+ delete: {
1164
+ container: (element: HTMLElement) => void;
1165
+ };
1166
+ };
1088
1167
  selection: () => {
1089
1168
  ensure: {
1090
1169
  storedRange: () => void;
@@ -1124,6 +1203,8 @@ export declare const useFlowEditorToolbarStore: () => {
1124
1203
  create: (tagName: string, dataType: string) => HTMLElement;
1125
1204
  createTextNode: (data: any) => Text;
1126
1205
  add: (element: HTMLElement) => void;
1206
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1207
+ delete: (element: HTMLElement) => void;
1127
1208
  };
1128
1209
  commands: () => {
1129
1210
  exec: (command: string, data: object | string) => void;
@@ -1132,7 +1213,9 @@ export declare const useFlowEditorToolbarStore: () => {
1132
1213
  convert: (element: HTMLElement) => void;
1133
1214
  };
1134
1215
  ensure: {
1135
- lastElement: () => void;
1216
+ lastElement: {
1217
+ isText: () => void;
1218
+ };
1136
1219
  unique: {
1137
1220
  ids: (element: HTMLElement) => void;
1138
1221
  };
@@ -1203,6 +1286,7 @@ export declare const useFlowEditorToolbarStore: () => {
1203
1286
  };
1204
1287
  get: {
1205
1288
  topContainerForContent: (element: HTMLElement) => HTMLElement;
1289
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
1206
1290
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
1207
1291
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1208
1292
  };
@@ -1303,6 +1387,9 @@ export declare const useFlowEditorToolbarStore: () => {
1303
1387
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1304
1388
  actions: {
1305
1389
  onDispatching: {
1390
+ confirm: {
1391
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1392
+ };
1306
1393
  selection: {
1307
1394
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1308
1395
  };
@@ -1329,6 +1416,13 @@ export declare const useFlowEditorToolbarStore: () => {
1329
1416
  };
1330
1417
  };
1331
1418
  onDispatched: {
1419
+ confirm: {
1420
+ subscribe(fn: (result: {
1421
+ delete: {
1422
+ container: (element: HTMLElement) => void;
1423
+ };
1424
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1425
+ };
1332
1426
  selection: {
1333
1427
  subscribe(fn: (result: {
1334
1428
  ensure: {
@@ -1381,6 +1475,8 @@ export declare const useFlowEditorToolbarStore: () => {
1381
1475
  create: (tagName: string, dataType: string) => HTMLElement;
1382
1476
  createTextNode: (data: any) => Text;
1383
1477
  add: (element: HTMLElement) => void;
1478
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1479
+ delete: (element: HTMLElement) => void;
1384
1480
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1385
1481
  };
1386
1482
  commands: {
@@ -1391,7 +1487,9 @@ export declare const useFlowEditorToolbarStore: () => {
1391
1487
  convert: (element: HTMLElement) => void;
1392
1488
  };
1393
1489
  ensure: {
1394
- lastElement: () => void;
1490
+ lastElement: {
1491
+ isText: () => void;
1492
+ };
1395
1493
  unique: {
1396
1494
  ids: (element: HTMLElement) => void;
1397
1495
  };
@@ -1462,6 +1560,7 @@ export declare const useFlowEditorToolbarStore: () => {
1462
1560
  };
1463
1561
  get: {
1464
1562
  topContainerForContent: (element: HTMLElement) => HTMLElement;
1563
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
1465
1564
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
1466
1565
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1467
1566
  };
@@ -1482,6 +1581,9 @@ export declare const useFlowEditorToolbarStore: () => {
1482
1581
  };
1483
1582
  };
1484
1583
  onFailure: {
1584
+ confirm: {
1585
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1586
+ };
1485
1587
  selection: {
1486
1588
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1487
1589
  };
@@ -1508,6 +1610,11 @@ export declare const useFlowEditorToolbarStore: () => {
1508
1610
  };
1509
1611
  };
1510
1612
  } & {
1613
+ confirm: () => {
1614
+ delete: {
1615
+ container: (element: HTMLElement) => void;
1616
+ };
1617
+ };
1511
1618
  selection: () => {
1512
1619
  ensure: {
1513
1620
  storedRange: () => void;
@@ -1547,6 +1654,8 @@ export declare const useFlowEditorToolbarStore: () => {
1547
1654
  create: (tagName: string, dataType: string) => HTMLElement;
1548
1655
  createTextNode: (data: any) => Text;
1549
1656
  add: (element: HTMLElement) => void;
1657
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1658
+ delete: (element: HTMLElement) => void;
1550
1659
  };
1551
1660
  commands: () => {
1552
1661
  exec: (command: string, data: object | string) => void;
@@ -1555,7 +1664,9 @@ export declare const useFlowEditorToolbarStore: () => {
1555
1664
  convert: (element: HTMLElement) => void;
1556
1665
  };
1557
1666
  ensure: {
1558
- lastElement: () => void;
1667
+ lastElement: {
1668
+ isText: () => void;
1669
+ };
1559
1670
  unique: {
1560
1671
  ids: (element: HTMLElement) => void;
1561
1672
  };
@@ -1626,6 +1737,7 @@ export declare const useFlowEditorToolbarStore: () => {
1626
1737
  };
1627
1738
  get: {
1628
1739
  topContainerForContent: (element: HTMLElement) => HTMLElement;
1740
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
1629
1741
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
1630
1742
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1631
1743
  };
@@ -1726,6 +1838,9 @@ export declare const useFlowEditorToolbarStore: () => {
1726
1838
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1727
1839
  actions: {
1728
1840
  onDispatching: {
1841
+ confirm: {
1842
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1843
+ };
1729
1844
  selection: {
1730
1845
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1731
1846
  };
@@ -1752,6 +1867,13 @@ export declare const useFlowEditorToolbarStore: () => {
1752
1867
  };
1753
1868
  };
1754
1869
  onDispatched: {
1870
+ confirm: {
1871
+ subscribe(fn: (result: {
1872
+ delete: {
1873
+ container: (element: HTMLElement) => void;
1874
+ };
1875
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1876
+ };
1755
1877
  selection: {
1756
1878
  subscribe(fn: (result: {
1757
1879
  ensure: {
@@ -1804,6 +1926,8 @@ export declare const useFlowEditorToolbarStore: () => {
1804
1926
  create: (tagName: string, dataType: string) => HTMLElement;
1805
1927
  createTextNode: (data: any) => Text;
1806
1928
  add: (element: HTMLElement) => void;
1929
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1930
+ delete: (element: HTMLElement) => void;
1807
1931
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1808
1932
  };
1809
1933
  commands: {
@@ -1814,7 +1938,9 @@ export declare const useFlowEditorToolbarStore: () => {
1814
1938
  convert: (element: HTMLElement) => void;
1815
1939
  };
1816
1940
  ensure: {
1817
- lastElement: () => void;
1941
+ lastElement: {
1942
+ isText: () => void;
1943
+ };
1818
1944
  unique: {
1819
1945
  ids: (element: HTMLElement) => void;
1820
1946
  };
@@ -1885,6 +2011,7 @@ export declare const useFlowEditorToolbarStore: () => {
1885
2011
  };
1886
2012
  get: {
1887
2013
  topContainerForContent: (element: HTMLElement) => HTMLElement;
2014
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
1888
2015
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
1889
2016
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1890
2017
  };
@@ -1905,6 +2032,9 @@ export declare const useFlowEditorToolbarStore: () => {
1905
2032
  };
1906
2033
  };
1907
2034
  onFailure: {
2035
+ confirm: {
2036
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2037
+ };
1908
2038
  selection: {
1909
2039
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1910
2040
  };
@@ -1931,6 +2061,11 @@ export declare const useFlowEditorToolbarStore: () => {
1931
2061
  };
1932
2062
  };
1933
2063
  } & {
2064
+ confirm: () => {
2065
+ delete: {
2066
+ container: (element: HTMLElement) => void;
2067
+ };
2068
+ };
1934
2069
  selection: () => {
1935
2070
  ensure: {
1936
2071
  storedRange: () => void;
@@ -1970,6 +2105,8 @@ export declare const useFlowEditorToolbarStore: () => {
1970
2105
  create: (tagName: string, dataType: string) => HTMLElement;
1971
2106
  createTextNode: (data: any) => Text;
1972
2107
  add: (element: HTMLElement) => void;
2108
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
2109
+ delete: (element: HTMLElement) => void;
1973
2110
  };
1974
2111
  commands: () => {
1975
2112
  exec: (command: string, data: object | string) => void;
@@ -1978,7 +2115,9 @@ export declare const useFlowEditorToolbarStore: () => {
1978
2115
  convert: (element: HTMLElement) => void;
1979
2116
  };
1980
2117
  ensure: {
1981
- lastElement: () => void;
2118
+ lastElement: {
2119
+ isText: () => void;
2120
+ };
1982
2121
  unique: {
1983
2122
  ids: (element: HTMLElement) => void;
1984
2123
  };
@@ -2049,6 +2188,7 @@ export declare const useFlowEditorToolbarStore: () => {
2049
2188
  };
2050
2189
  get: {
2051
2190
  topContainerForContent: (element: HTMLElement) => HTMLElement;
2191
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
2052
2192
  nodeSelectionForRange: (range: Range) => import("..").NodeSelection;
2053
2193
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
2054
2194
  };
@@ -116,12 +116,14 @@ declare const _default: {
116
116
  };
117
117
  }>> & {
118
118
  onAdd?: () => any;
119
+ onClose?: () => any;
119
120
  "onUpdate:modelValue"?: (value: boolean) => any;
120
121
  onSelected?: (resolverReference: VelcronRendererResolverReference) => any;
121
122
  "onDefinition:enter"?: (id: guid) => any;
122
123
  "onDefinition:leave"?: (id: guid) => any;
123
124
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
124
125
  selected: (resolverReference: VelcronRendererResolverReference) => any;
126
+ close: () => any;
125
127
  add: () => any;
126
128
  "update:modelValue": (value: boolean) => any;
127
129
  "definition:enter": (id: guid) => any;
@@ -240,6 +242,7 @@ declare const _default: {
240
242
  };
241
243
  }>> & {
242
244
  onAdd?: () => any;
245
+ onClose?: () => any;
243
246
  "onUpdate:modelValue"?: (value: boolean) => any;
244
247
  onSelected?: (resolverReference: VelcronRendererResolverReference) => any;
245
248
  "onDefinition:enter"?: (id: guid) => any;
@@ -367,6 +370,7 @@ declare const _default: {
367
370
  };
368
371
  }>> & {
369
372
  onAdd?: () => any;
373
+ onClose?: () => any;
370
374
  "onUpdate:modelValue"?: (value: boolean) => any;
371
375
  onSelected?: (resolverReference: VelcronRendererResolverReference) => any;
372
376
  "onDefinition:enter"?: (id: guid) => any;
@@ -491,12 +495,14 @@ declare const _default: {
491
495
  };
492
496
  }>> & {
493
497
  onAdd?: () => any;
498
+ onClose?: () => any;
494
499
  "onUpdate:modelValue"?: (value: boolean) => any;
495
500
  onSelected?: (resolverReference: VelcronRendererResolverReference) => any;
496
501
  "onDefinition:enter"?: (id: guid) => any;
497
502
  "onDefinition:leave"?: (id: guid) => any;
498
503
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
499
504
  selected: (resolverReference: VelcronRendererResolverReference) => any;
505
+ close: () => any;
500
506
  add: () => any;
501
507
  "update:modelValue": (value: boolean) => any;
502
508
  "definition:enter": (id: guid) => any;
@@ -586,7 +592,8 @@ declare const _default: {
586
592
  previewState?: VelcronState;
587
593
  exclusions?: guid[];
588
594
  allowBuiltIn?: boolean;
589
- }>, "onUpdate:modelValue" | "onAdd" | "onSelected" | "onDefinition:enter" | "onDefinition:leave"> & {
595
+ }>, "onClose" | "onUpdate:modelValue" | "onAdd" | "onSelected" | "onDefinition:enter" | "onDefinition:leave"> & {
596
+ onClose?: () => any;
590
597
  "onUpdate:modelValue"?: (value: boolean) => any;
591
598
  onAdd?: () => any;
592
599
  onSelected?: (resolverReference: VelcronRendererResolverReference) => any;
@@ -36,6 +36,7 @@ export interface BuiltInComponentRenderers {
36
36
  "lottie": unknown;
37
37
  "slide-panel": unknown;
38
38
  "editor": unknown;
39
+ "link": unknown;
39
40
  }
40
41
  export interface ColorSchemaReference {
41
42
  name: string;
@@ -380,6 +381,10 @@ export interface VelcronPropertyDefinitionValue {
380
381
  value: PropertyValue;
381
382
  configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
382
383
  }
384
+ export interface VelcronLinkDefinition extends VelcronDefinition {
385
+ type: "link";
386
+ value: VelcronBindableProp<string>;
387
+ }
383
388
  export type VelcronRenderProps<TDefinition> = {
384
389
  definition: TDefinition;
385
390
  renderContext: VelcronRenderContext;
@@ -25,6 +25,7 @@ export declare const VelcronConstants: {
25
25
  lottie: string;
26
26
  "slide-panel": string;
27
27
  editor: string;
28
+ link: string;
28
29
  };
29
30
  events: {
30
31
  idTokenStart: string;
@@ -16,3 +16,4 @@ export declare const VelcronFlowComponentDescriptor: VelcronComponentDescriptor;
16
16
  export declare const VelcronReferenceComponentDescriptor: VelcronComponentDescriptor;
17
17
  export declare const VelcronSliderComponentDescriptor: VelcronComponentDescriptor;
18
18
  export declare const VelcronEditorComponentDescriptor: VelcronComponentDescriptor;
19
+ export declare const VelcronLinkComponentDescriptor: VelcronComponentDescriptor;
@@ -0,0 +1,32 @@
1
+ import { VelcronLinkDefinition, VelcronRenderContext } from "../../core";
2
+ declare const _default: {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4
+ definition: import("vue").Prop<VelcronLinkDefinition, VelcronLinkDefinition>;
5
+ renderContext: import("vue").Prop<VelcronRenderContext, VelcronRenderContext>;
6
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
7
+ definition: import("vue").Prop<VelcronLinkDefinition, VelcronLinkDefinition>;
8
+ renderContext: import("vue").Prop<VelcronRenderContext, VelcronRenderContext>;
9
+ }>>, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
+ P: {};
11
+ B: {};
12
+ D: {};
13
+ C: {};
14
+ M: {};
15
+ Defaults: {};
16
+ }, Readonly<import("vue").ExtractPropTypes<{
17
+ definition: import("vue").Prop<VelcronLinkDefinition, VelcronLinkDefinition>;
18
+ renderContext: import("vue").Prop<VelcronRenderContext, VelcronRenderContext>;
19
+ }>>, {}, {}, {}, {}, {}>;
20
+ __isFragment?: never;
21
+ __isTeleport?: never;
22
+ __isSuspense?: never;
23
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
24
+ definition: import("vue").Prop<VelcronLinkDefinition, VelcronLinkDefinition>;
25
+ renderContext: import("vue").Prop<VelcronRenderContext, VelcronRenderContext>;
26
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
27
+ propsDefinition: Omit<Readonly<{} & {
28
+ definition?: VelcronLinkDefinition;
29
+ renderContext?: VelcronRenderContext;
30
+ }>, never>;
31
+ };
32
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.280-dev",
4
+ "version": "8.0.281-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.280-dev",
23
+ "@omnia/fx-models": "8.0.281-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",