@omnia/fx 8.0.288-dev → 8.0.290-dev

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