@omnia/fx 8.0.287-dev → 8.0.289-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/internal-do-not-import-from-here/ux/aurora/admin/DesignAppJourney.d.ts +2 -0
  2. package/internal-do-not-import-from-here/ux/aurora/admin/DesignBPJourney.d.ts +2 -0
  3. package/internal-do-not-import-from-here/ux/aurora/admin/DesignJourney.d.ts +3 -15
  4. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themes/ThemesJourney.d.ts +3 -15
  5. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themes/blades/SelectionThemeBlade.d.ts +14 -0
  6. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themes/models/Theme.d.ts +9 -0
  7. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themes/models/index.d.ts +1 -0
  8. package/internal-do-not-import-from-here/ux/aurora/components/textstylepicker/TextStylePicker.d.ts +2 -0
  9. package/internal-do-not-import-from-here/ux/aurora/components/themepicker/ThemePicker.d.ts +15 -501
  10. package/internal-do-not-import-from-here/ux/flow/editor/commands/EditorCommands.d.ts +3 -6
  11. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/EditorHelper.d.ts +1 -3
  12. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/HtmlNodehelper.d.ts +1 -1
  13. package/internal-do-not-import-from-here/ux/flow/editor/models/EditorModels.d.ts +1 -1
  14. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorButton.d.ts +440 -1
  15. package/internal-do-not-import-from-here/ux/flow/editor/plugins/spacing/SpacingButton.d.ts +440 -1
  16. package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +440 -1
  17. package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/DeleteButton.d.ts +2 -0
  18. package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/SwapButton.d.ts +2 -0
  19. package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/VelcronPlugin.d.ts +1 -7
  20. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +20 -19
  21. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +110 -95
  22. package/internal-do-not-import-from-here/ux/flow/editor/stores/VelcronPluginStore.d.ts +53 -0
  23. package/internal-do-not-import-from-here/ux/flow/editor/stores/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/ux/layoutcanvas/renderer/LayoutRendererCanvas.d.ts +13 -0
  25. package/internal-do-not-import-from-here/ux/models/Velcron.d.ts +8 -1
  26. package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanels.d.ts +1 -1
  27. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +9 -0
  28. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +6 -1
  29. package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronRenderers.d.ts +4 -4
  30. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/ReferenceEditor.d.ts +6 -4
  31. package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +6 -1
  32. package/internal-do-not-import-from-here/wctypings.d.ts +48 -20
  33. package/package.json +3 -3
@@ -1,2 +1,441 @@
1
- declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
1
+ import { guid } from "@omnia/fx-models";
2
+ import { FlowNodeReference } from "../../models";
3
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
4
+ store?: {
5
+ state: {
6
+ editorContent: import("@omnia/fx/ux").FlowContent;
7
+ plugins: import("../../models").FlowEditorPlugin[];
8
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
9
+ hideToolbar: boolean;
10
+ toolbarActions: import("@omnia/fx-models").FlowEditorActionRegistration[];
11
+ editor: HTMLDivElement;
12
+ nodeSelection: import("../../models").NodeSelection;
13
+ telePorts: JSX.Element[];
14
+ id: string;
15
+ pluginContext: import("../../models").FlowEditorPluginContext;
16
+ selectedRange: Range;
17
+ storedRange: Range;
18
+ showPlaceHolder: boolean;
19
+ definitionSelector: {
20
+ show: boolean;
21
+ categoryFilters: guid[];
22
+ rendererTypeFilters: guid[];
23
+ };
24
+ };
25
+ events: {
26
+ onMutatedEditorContent: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx/ux").FlowContent>;
27
+ onMutatedPlugins: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").FlowEditorPlugin[]>;
28
+ onMutatedPluginsLoadedPromise: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
29
+ onMutatedHideToolbar: import("../../../../..").MessageBusExposeOnlySubscription<boolean>;
30
+ onMutatedToolbarActions: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").FlowEditorActionRegistration[]>;
31
+ onMutatedEditor: import("../../../../..").MessageBusExposeOnlySubscription<HTMLDivElement>;
32
+ onMutatedNodeSelection: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").NodeSelection>;
33
+ onMutatedTelePorts: import("../../../../..").MessageBusExposeOnlySubscription<JSX.Element[]>;
34
+ onMutatedId: import("../../../../..").MessageBusExposeOnlySubscription<string>;
35
+ onMutatedPluginContext: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").FlowEditorPluginContext>;
36
+ onMutatedSelectedRange: import("../../../../..").MessageBusExposeOnlySubscription<Range>;
37
+ onMutatedStoredRange: import("../../../../..").MessageBusExposeOnlySubscription<Range>;
38
+ onMutatedShowPlaceHolder: import("../../../../..").MessageBusExposeOnlySubscription<boolean>;
39
+ onMutatedDefinitionSelector: import("../../../../..").MessageBusExposeOnlySubscription<{
40
+ show: boolean;
41
+ categoryFilters: guid[];
42
+ rendererTypeFilters: guid[];
43
+ }>;
44
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
45
+ actions: {
46
+ onDispatching: {
47
+ confirm: {
48
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
+ };
50
+ selection: {
51
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
52
+ };
53
+ plugin: {
54
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
55
+ };
56
+ content: {
57
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
58
+ };
59
+ set: {
60
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
61
+ };
62
+ toolbarAction: {
63
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
64
+ };
65
+ formatting: {
66
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
67
+ };
68
+ element: {
69
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
70
+ };
71
+ commands: {
72
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
73
+ };
74
+ };
75
+ onDispatched: {
76
+ confirm: {
77
+ subscribe(fn: (result: {
78
+ delete: {
79
+ container: (element: HTMLElement) => void;
80
+ };
81
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
82
+ };
83
+ selection: {
84
+ subscribe(fn: (result: {
85
+ set: (elements: Node | Array<Node>) => void;
86
+ capture: () => void;
87
+ store: () => void;
88
+ revertToStored: () => void;
89
+ ensure: () => void;
90
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
91
+ };
92
+ plugin: {
93
+ subscribe(fn: (result: {
94
+ register: {
95
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
96
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
97
+ context: (ctx: import("../../models").FlowEditorPluginContext) => void;
98
+ };
99
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
100
+ };
101
+ content: {
102
+ subscribe(fn: (result: {
103
+ sync: () => void;
104
+ set: {
105
+ byObject: (content: import("@omnia/fx/ux").FlowContent) => void;
106
+ byString: (content: string) => void;
107
+ };
108
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
109
+ };
110
+ set: {
111
+ subscribe(fn: (result: {
112
+ container: (el: HTMLDivElement) => void;
113
+ focus: () => void;
114
+ placeHolderVisibility: () => void;
115
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
116
+ };
117
+ toolbarAction: {
118
+ subscribe(fn: (result: {
119
+ add: (action: import("@omnia/fx-models").FlowEditorActionRegistration | import("@omnia/fx-models").FlowEditorActionRegistration[]) => void;
120
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
121
+ };
122
+ formatting: {
123
+ subscribe(fn: (result: {
124
+ wrapLine: (element: HTMLElement) => void;
125
+ add: (element: HTMLElement) => void;
126
+ toggle: (element: HTMLElement) => void;
127
+ remove: (dataType: string) => void;
128
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
129
+ };
130
+ element: {
131
+ subscribe(fn: (result: {
132
+ createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
133
+ createText: () => HTMLParagraphElement;
134
+ create: (tagName: string, dataType: string) => HTMLElement;
135
+ createTextNode: (data: any) => Text;
136
+ add: (element: HTMLElement) => void;
137
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
138
+ delete: (element: HTMLElement) => void;
139
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
140
+ };
141
+ commands: {
142
+ subscribe(fn: (result: {
143
+ exec: (command: string, data: object | string) => void;
144
+ builtIn: {
145
+ content: {
146
+ convert: (element: HTMLElement) => void;
147
+ };
148
+ ensure: {
149
+ lastElement: {
150
+ isText: () => void;
151
+ };
152
+ unique: {
153
+ ids: (element: HTMLElement) => void;
154
+ };
155
+ };
156
+ selection: {
157
+ get: {
158
+ byPluginType: (pluginType: string) => FlowNodeReference[];
159
+ };
160
+ ensure: {
161
+ storedRange: () => void;
162
+ };
163
+ };
164
+ cursor: {
165
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
166
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
167
+ };
168
+ actions: {
169
+ captureSelection: () => void;
170
+ };
171
+ formatting: {
172
+ add: (element: HTMLElement) => void;
173
+ wrapLine: (element: HTMLElement) => void;
174
+ remove: (dataType: string | HTMLElement) => void;
175
+ has: (dataType: string | HTMLElement) => boolean;
176
+ };
177
+ element: {
178
+ clean: (element: HTMLElement) => void;
179
+ add: (element: HTMLElement) => void;
180
+ create: (tagName: string, dataType: string) => HTMLElement;
181
+ createText: () => HTMLParagraphElement;
182
+ createTextNode: (data: any) => Text;
183
+ createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
184
+ insert: {
185
+ text: (element: Node, text: string, offset: any) => void;
186
+ };
187
+ ids: {
188
+ unique: (element: HTMLElement) => void;
189
+ };
190
+ };
191
+ helpers: {
192
+ editor: {
193
+ ensure: {
194
+ uniqueIds: (element: HTMLElement) => HTMLElement;
195
+ selectionIsInEditor: (range: Range) => void;
196
+ };
197
+ cursor: {
198
+ storePosition: (state: {
199
+ selectedRange: Range;
200
+ }) => void;
201
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
202
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
203
+ };
204
+ };
205
+ editorNode: {
206
+ get: {
207
+ nodesInArrayByPluginType: (nodes: Array<FlowNodeReference>, dataType: string) => Array<FlowNodeReference>;
208
+ };
209
+ };
210
+ htmlNode: {
211
+ copy: {
212
+ children: (from: HTMLElement, to: HTMLElement) => void;
213
+ };
214
+ insert: {
215
+ text: (element: Node, text: string, offset: any) => void;
216
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
217
+ };
218
+ get: {
219
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
220
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
221
+ nodeSelectionForRange: (range: Range) => import("../../models").NodeSelection;
222
+ htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
223
+ };
224
+ remove: {
225
+ nodes: (nodes2Remove: Array<FlowNodeReference>, editor: HTMLElement) => void;
226
+ };
227
+ strip: {
228
+ after: (element: HTMLElement, splitter: string) => void;
229
+ before: (element: HTMLElement, splitter: string) => void;
230
+ };
231
+ surround: {
232
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
233
+ };
234
+ };
235
+ };
236
+ };
237
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
238
+ };
239
+ };
240
+ onFailure: {
241
+ confirm: {
242
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
243
+ };
244
+ selection: {
245
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
246
+ };
247
+ plugin: {
248
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
249
+ };
250
+ content: {
251
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
252
+ };
253
+ set: {
254
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
255
+ };
256
+ toolbarAction: {
257
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
258
+ };
259
+ formatting: {
260
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
261
+ };
262
+ element: {
263
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
264
+ };
265
+ commands: {
266
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
267
+ };
268
+ };
269
+ } & {
270
+ confirm: () => {
271
+ delete: {
272
+ container: (element: HTMLElement) => void;
273
+ };
274
+ };
275
+ selection: () => {
276
+ set: (elements: Node | Array<Node>) => void;
277
+ capture: () => void;
278
+ store: () => void;
279
+ revertToStored: () => void;
280
+ ensure: () => void;
281
+ };
282
+ plugin: () => {
283
+ register: {
284
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
285
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
286
+ context: (ctx: import("../../models").FlowEditorPluginContext) => void;
287
+ };
288
+ };
289
+ content: () => {
290
+ sync: () => void;
291
+ set: {
292
+ byObject: (content: import("@omnia/fx/ux").FlowContent) => void;
293
+ byString: (content: string) => void;
294
+ };
295
+ };
296
+ set: () => {
297
+ container: (el: HTMLDivElement) => void;
298
+ focus: () => void;
299
+ placeHolderVisibility: () => void;
300
+ };
301
+ toolbarAction: () => {
302
+ add: (action: import("@omnia/fx-models").FlowEditorActionRegistration | import("@omnia/fx-models").FlowEditorActionRegistration[]) => void;
303
+ };
304
+ formatting: () => {
305
+ wrapLine: (element: HTMLElement) => void;
306
+ add: (element: HTMLElement) => void;
307
+ toggle: (element: HTMLElement) => void;
308
+ remove: (dataType: string) => void;
309
+ };
310
+ element: () => {
311
+ createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
312
+ createText: () => HTMLParagraphElement;
313
+ create: (tagName: string, dataType: string) => HTMLElement;
314
+ createTextNode: (data: any) => Text;
315
+ add: (element: HTMLElement) => void;
316
+ insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
317
+ delete: (element: HTMLElement) => void;
318
+ };
319
+ commands: () => {
320
+ exec: (command: string, data: object | string) => void;
321
+ builtIn: {
322
+ content: {
323
+ convert: (element: HTMLElement) => void;
324
+ };
325
+ ensure: {
326
+ lastElement: {
327
+ isText: () => void;
328
+ };
329
+ unique: {
330
+ ids: (element: HTMLElement) => void;
331
+ };
332
+ };
333
+ selection: {
334
+ get: {
335
+ byPluginType: (pluginType: string) => FlowNodeReference[];
336
+ };
337
+ ensure: {
338
+ storedRange: () => void;
339
+ };
340
+ };
341
+ cursor: {
342
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
343
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
344
+ };
345
+ actions: {
346
+ captureSelection: () => void;
347
+ };
348
+ formatting: {
349
+ add: (element: HTMLElement) => void;
350
+ wrapLine: (element: HTMLElement) => void;
351
+ remove: (dataType: string | HTMLElement) => void;
352
+ has: (dataType: string | HTMLElement) => boolean;
353
+ };
354
+ element: {
355
+ clean: (element: HTMLElement) => void;
356
+ add: (element: HTMLElement) => void;
357
+ create: (tagName: string, dataType: string) => HTMLElement;
358
+ createText: () => HTMLParagraphElement;
359
+ createTextNode: (data: any) => Text;
360
+ createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
361
+ insert: {
362
+ text: (element: Node, text: string, offset: any) => void;
363
+ };
364
+ ids: {
365
+ unique: (element: HTMLElement) => void;
366
+ };
367
+ };
368
+ helpers: {
369
+ editor: {
370
+ ensure: {
371
+ uniqueIds: (element: HTMLElement) => HTMLElement;
372
+ selectionIsInEditor: (range: Range) => void;
373
+ };
374
+ cursor: {
375
+ storePosition: (state: {
376
+ selectedRange: Range;
377
+ }) => void;
378
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
379
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
380
+ };
381
+ };
382
+ editorNode: {
383
+ get: {
384
+ nodesInArrayByPluginType: (nodes: Array<FlowNodeReference>, dataType: string) => Array<FlowNodeReference>;
385
+ };
386
+ };
387
+ htmlNode: {
388
+ copy: {
389
+ children: (from: HTMLElement, to: HTMLElement) => void;
390
+ };
391
+ insert: {
392
+ text: (element: Node, text: string, offset: any) => void;
393
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
394
+ };
395
+ get: {
396
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
397
+ topContainerForComponent: (element: HTMLElement) => HTMLElement;
398
+ nodeSelectionForRange: (range: Range) => import("../../models").NodeSelection;
399
+ htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
400
+ };
401
+ remove: {
402
+ nodes: (nodes2Remove: Array<FlowNodeReference>, editor: HTMLElement) => void;
403
+ };
404
+ strip: {
405
+ after: (element: HTMLElement, splitter: string) => void;
406
+ before: (element: HTMLElement, splitter: string) => void;
407
+ };
408
+ surround: {
409
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ };
415
+ };
416
+ get: {
417
+ plugins: import("../../models").FlowEditorPlugin[];
418
+ content: {
419
+ isEmpty: () => boolean;
420
+ asObject: () => import("@omnia/fx/ux").FlowContent;
421
+ asString: () => string;
422
+ };
423
+ selection: {
424
+ has: {
425
+ type: (pluginType: string) => boolean;
426
+ };
427
+ get: {
428
+ byType: (pluginType: string) => FlowNodeReference[];
429
+ all: () => import("../../models").NodeSelection;
430
+ };
431
+ };
432
+ element: {
433
+ byId: (id: string) => HTMLElement;
434
+ byRef: (ref: HTMLElement) => HTMLElement;
435
+ };
436
+ };
437
+ } & {
438
+ dispose?: () => void;
439
+ };
440
+ }>) => any;
2
441
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -1,9 +1,3 @@
1
- import { DynamicState, VelcronAppDefinition, VelcronDefinitionRegistrationWithoutApp } from "@omnia/fx-models";
2
- export type VelcronHtmlDivElement = HTMLDivElement & {
3
- velcron: VelcronAppDefinition;
4
- velcronRegistration: VelcronDefinitionRegistrationWithoutApp;
5
- state: DynamicState;
6
- };
7
- export declare const velcronRendererPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ export declare const velcronRendererPlugin: () => import("../..").FlowEditorPlugin & {
8
2
  dispose?: () => void;
9
3
  };
@@ -7,7 +7,6 @@ export declare const useFlowEditorStore: () => {
7
7
  plugins: FlowEditorPlugin[];
8
8
  pluginsLoadedPromise: Future<void>;
9
9
  hideToolbar: boolean;
10
- maxNodeId: number;
11
10
  toolbarActions: FlowEditorActionRegistration[];
12
11
  editor: HTMLDivElement;
13
12
  nodeSelection: NodeSelection;
@@ -15,6 +14,7 @@ export declare const useFlowEditorStore: () => {
15
14
  id: string;
16
15
  pluginContext: FlowEditorPluginContext;
17
16
  selectedRange: Range;
17
+ storedRange: Range;
18
18
  showPlaceHolder: boolean;
19
19
  definitionSelector: {
20
20
  show: boolean;
@@ -27,7 +27,6 @@ export declare const useFlowEditorStore: () => {
27
27
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPlugin[]>;
28
28
  onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<Future<void>>;
29
29
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
30
- onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
31
30
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
32
31
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
33
32
  onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<NodeSelection>;
@@ -35,6 +34,7 @@ export declare const useFlowEditorStore: () => {
35
34
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
36
35
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
37
36
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
37
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
38
38
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
39
39
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
40
40
  show: boolean;
@@ -82,9 +82,11 @@ export declare const useFlowEditorStore: () => {
82
82
  };
83
83
  selection: {
84
84
  subscribe(fn: (result: {
85
- ensure: {
86
- storedRange: () => void;
87
- };
85
+ set: (elements: Node | Array<Node>) => void;
86
+ capture: () => void;
87
+ store: () => void;
88
+ revertToStored: () => void;
89
+ ensure: () => void;
88
90
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
89
91
  };
90
92
  plugin: {
@@ -164,7 +166,7 @@ export declare const useFlowEditorStore: () => {
164
166
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
165
167
  };
166
168
  actions: {
167
- setSelection: () => void;
169
+ captureSelection: () => void;
168
170
  };
169
171
  formatting: {
170
172
  add: (element: HTMLElement) => void;
@@ -189,9 +191,7 @@ export declare const useFlowEditorStore: () => {
189
191
  helpers: {
190
192
  editor: {
191
193
  ensure: {
192
- uniqueIds: (element: HTMLElement, state: {
193
- maxNodeId: number;
194
- }) => HTMLElement;
194
+ uniqueIds: (element: HTMLElement) => HTMLElement;
195
195
  selectionIsInEditor: (range: Range) => void;
196
196
  };
197
197
  cursor: {
@@ -219,7 +219,7 @@ export declare const useFlowEditorStore: () => {
219
219
  topContainerForContent: (element: HTMLElement) => HTMLElement;
220
220
  topContainerForComponent: (element: HTMLElement) => HTMLElement;
221
221
  nodeSelectionForRange: (range: Range) => NodeSelection;
222
- htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
222
+ htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
223
223
  };
224
224
  remove: {
225
225
  nodes: (nodes2Remove: Array<import("../models").FlowNodeReference>, editor: HTMLElement) => void;
@@ -273,9 +273,11 @@ export declare const useFlowEditorStore: () => {
273
273
  };
274
274
  };
275
275
  selection: () => {
276
- ensure: {
277
- storedRange: () => void;
278
- };
276
+ set: (elements: Node | Array<Node>) => void;
277
+ capture: () => void;
278
+ store: () => void;
279
+ revertToStored: () => void;
280
+ ensure: () => void;
279
281
  };
280
282
  plugin: () => {
281
283
  register: {
@@ -341,7 +343,7 @@ export declare const useFlowEditorStore: () => {
341
343
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
342
344
  };
343
345
  actions: {
344
- setSelection: () => void;
346
+ captureSelection: () => void;
345
347
  };
346
348
  formatting: {
347
349
  add: (element: HTMLElement) => void;
@@ -366,9 +368,7 @@ export declare const useFlowEditorStore: () => {
366
368
  helpers: {
367
369
  editor: {
368
370
  ensure: {
369
- uniqueIds: (element: HTMLElement, state: {
370
- maxNodeId: number;
371
- }) => HTMLElement;
371
+ uniqueIds: (element: HTMLElement) => HTMLElement;
372
372
  selectionIsInEditor: (range: Range) => void;
373
373
  };
374
374
  cursor: {
@@ -396,7 +396,7 @@ export declare const useFlowEditorStore: () => {
396
396
  topContainerForContent: (element: HTMLElement) => HTMLElement;
397
397
  topContainerForComponent: (element: HTMLElement) => HTMLElement;
398
398
  nodeSelectionForRange: (range: Range) => NodeSelection;
399
- htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
399
+ htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
400
400
  };
401
401
  remove: {
402
402
  nodes: (nodes2Remove: Array<import("../models").FlowNodeReference>, editor: HTMLElement) => void;
@@ -430,7 +430,8 @@ export declare const useFlowEditorStore: () => {
430
430
  };
431
431
  };
432
432
  element: {
433
- byId: (id: number) => HTMLElement;
433
+ byId: (id: string) => HTMLElement;
434
+ byRef: (ref: HTMLElement) => HTMLElement;
434
435
  };
435
436
  };
436
437
  } & {