@omnia/fx 8.0.289-dev → 8.0.291-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) 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/docs/Docs.d.ts +4 -0
  5. package/internal-do-not-import-from-here/ux/docs/bestpractices/index.d.ts +1 -0
  6. package/internal-do-not-import-from-here/ux/docs/bestpractices/typescript/index.md.d.ts +1 -0
  7. package/internal-do-not-import-from-here/ux/docs/imports.d.ts +1 -0
  8. package/internal-do-not-import-from-here/ux/documenticon/DocumentIcon.d.ts +7 -14
  9. package/internal-do-not-import-from-here/ux/flow/editor/FlowEditor.d.ts +5 -2
  10. package/internal-do-not-import-from-here/ux/flow/editor/commands/EditorCommands.d.ts +5 -5
  11. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/EditorNodeHelper.d.ts +1 -1
  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/components/EditorSelector.d.ts +1 -1
  14. package/internal-do-not-import-from-here/ux/flow/editor/models/index.d.ts +0 -2
  15. package/internal-do-not-import-from-here/ux/flow/editor/parsers/HtmlParser.d.ts +1 -2
  16. package/internal-do-not-import-from-here/ux/flow/editor/parsers/JSONParser.d.ts +1 -2
  17. package/internal-do-not-import-from-here/ux/flow/editor/plugins/DefineEditorPlugin.d.ts +2 -2
  18. package/internal-do-not-import-from-here/ux/flow/editor/plugins/bold/BoldPlugin.d.ts +2 -1
  19. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorButton.d.ts +23 -13
  20. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorConverter.d.ts +1 -1
  21. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorStylePlugin.d.ts +2 -1
  22. package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementConverter.d.ts +1 -2
  23. package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementPlugin.d.ts +2 -1
  24. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/EditorEvents.d.ts +17 -2
  25. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/KeyboardEvents.d.ts +8 -2
  26. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +1 -1
  27. package/internal-do-not-import-from-here/ux/flow/editor/plugins/italic/ItalicPlugin.d.ts +2 -1
  28. package/internal-do-not-import-from-here/ux/flow/editor/plugins/link/LinkButton.d.ts +451 -0
  29. package/internal-do-not-import-from-here/ux/flow/editor/plugins/link/LinkConverter.d.ts +3 -0
  30. package/internal-do-not-import-from-here/ux/flow/editor/plugins/link/LinkPlugin.d.ts +4 -0
  31. package/internal-do-not-import-from-here/ux/flow/editor/plugins/sourceeditor/SourceEditorPlugin.d.ts +5 -2
  32. package/internal-do-not-import-from-here/ux/flow/editor/plugins/spacing/SpacingButton.d.ts +23 -13
  33. package/internal-do-not-import-from-here/ux/flow/editor/plugins/spacing/SpacingPlugin.d.ts +2 -1
  34. package/internal-do-not-import-from-here/ux/flow/editor/plugins/testdata/TestDataPlugin.d.ts +5 -2
  35. package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextConverter.d.ts +1 -1
  36. package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextPlugin.d.ts +2 -1
  37. package/internal-do-not-import-from-here/ux/flow/editor/plugins/textalign/TextAlignPlugin.d.ts +2 -1
  38. package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +23 -13
  39. package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyPlugin.d.ts +2 -1
  40. package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/VelcronPlugin.d.ts +2 -1
  41. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +18 -8
  42. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +145 -95
  43. package/internal-do-not-import-from-here/ux/flow/editor/stores/VelcronPluginStore.d.ts +1 -1
  44. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/link/LinkPlugin.d.ts +3 -0
  45. package/internal-do-not-import-from-here/ux/flow/renderer/stores/FlowRendererStore.d.ts +6 -0
  46. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/breakpoints/BreakPointBlockSettingsComponent.d.ts +2 -20
  47. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/breakpoints/BreakPointSectionSettingsComponent.d.ts +2 -28
  48. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/breakpoints/BreakPointSettingsComponent.d.ts +6 -25
  49. package/internal-do-not-import-from-here/ux/layoutcanvas/shared/BreakPointManager.d.ts +1 -1
  50. package/internal-do-not-import-from-here/ux/linkpicker/LinkPicker.d.ts +3 -5
  51. package/internal-do-not-import-from-here/ux/linkpicker/LinkRenderer.d.ts +2 -2
  52. package/internal-do-not-import-from-here/ux/linkpicker/factory/LinkItemFactory.d.ts +2 -7
  53. package/internal-do-not-import-from-here/ux/markdown/plugins/CodeComponent.d.ts +34 -0
  54. package/internal-do-not-import-from-here/ux/markdown/plugins/CodeMarkdownPlugin.d.ts +3 -0
  55. package/internal-do-not-import-from-here/ux/models/flow/LinkNode.d.ts +13 -0
  56. package/internal-do-not-import-from-here/ux/models/flow/index.d.ts +3 -0
  57. package/internal-do-not-import-from-here/ux/models/linkpicker/ILinkPickerProvider.d.ts +1 -2
  58. package/internal-do-not-import-from-here/ux/models/linkpicker/ILinkRenderer.d.ts +1 -1
  59. package/internal-do-not-import-from-here/ux/models/linkpicker/LinkItemHandler.d.ts +2 -3
  60. package/internal-do-not-import-from-here/ux/models/linkpicker/LinkPickerRegistration.d.ts +10 -10
  61. package/internal-do-not-import-from-here/ux/models/linkpicker/index.d.ts +0 -1
  62. package/internal-do-not-import-from-here/ux/oxide/datatable/RowRenderer.d.ts +2 -2
  63. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +8 -0
  64. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +5 -0
  65. package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -0
  66. package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -0
  67. package/internal-do-not-import-from-here/ux/velcron/editor/models/VelcronEditorDescriptors.d.ts +1 -0
  68. package/internal-do-not-import-from-here/ux/velcron/editor/templates/EditorTemplates.d.ts +1 -0
  69. package/internal-do-not-import-from-here/ux/velcron/renderer/components/Grid.d.ts +32 -0
  70. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/LinkResolverEditor.d.ts +5 -0
  71. package/internal-do-not-import-from-here/ux/versionedlayout/renderer/InternalVersionedLayoutRenderer.d.ts +13 -0
  72. package/internal-do-not-import-from-here/vue/vuecustomelement/Slots.d.ts +1 -0
  73. package/internal-do-not-import-from-here/wctypings.d.ts +10 -0
  74. package/package.json +4 -4
  75. package/internal-do-not-import-from-here/ux/markdown/plugins/CodeMarkdownRenderer.d.ts +0 -0
  76. package/internal-do-not-import-from-here/ux/models/linkpicker/LinkItem.d.ts +0 -8
  77. /package/internal-do-not-import-from-here/ux/{flow/editor/models → models/flow}/EditorModels.d.ts +0 -0
  78. /package/internal-do-not-import-from-here/ux/{flow/editor/models → models/flow}/EditorPlugin.d.ts +0 -0
@@ -0,0 +1,451 @@
1
+ import { DefineProp, FlowEditorStore, FlowNodeReference } from "@omnia/fx/ux";
2
+ export type LinkBtn = DefineProp<"store", FlowEditorStore>;
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: import("@omnia/fx-models").guid[];
22
+ rendererTypeFilters: import("@omnia/fx-models").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: import("@omnia/fx-models").guid[];
45
+ rendererTypeFilters: import("@omnia/fx-models").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;
451
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ElementConverter, FlowEditorPluginContext } from "@omnia/fx/ux";
2
+ import { LinkItem } from "@omnia/fx-models";
3
+ export declare function useLinkConverter(elementCreator: (value: LinkItem, ctx: FlowEditorPluginContext) => HTMLElement): ElementConverter;
@@ -0,0 +1,4 @@
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const linkPlugin: () => FlowEditorContentPlugin & {
3
+ dispose?: () => void;
4
+ };
@@ -1,4 +1,7 @@
1
- import { FlowEditorPlugin } from "../../models";
2
- export declare const sourceEditorPlugin: () => FlowEditorPlugin & {
1
+ import { FlowEditorActionRegistration } from "@omnia/fx-models";
2
+ export declare const sourceEditorPlugin: () => {
3
+ name: string;
4
+ actions: FlowEditorActionRegistration[];
5
+ } & {
3
6
  dispose?: () => void;
4
7
  };
@@ -1,18 +1,18 @@
1
+ import { FlowNodeReference } from "@omnia/fx/ux";
1
2
  import { guid } from "@omnia/fx-models";
2
- import { FlowNodeReference } from "../../models";
3
3
  declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
4
4
  store?: {
5
5
  state: {
6
6
  editorContent: import("@omnia/fx/ux").FlowContent;
7
- plugins: import("../../models").FlowEditorPlugin[];
7
+ plugins: import("@omnia/fx/ux").FlowEditorPlugin[];
8
8
  pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
9
9
  hideToolbar: boolean;
10
10
  toolbarActions: import("@omnia/fx-models").FlowEditorActionRegistration[];
11
11
  editor: HTMLDivElement;
12
- nodeSelection: import("../../models").NodeSelection;
12
+ nodeSelection: import("@omnia/fx/ux").NodeSelection;
13
13
  telePorts: JSX.Element[];
14
14
  id: string;
15
- pluginContext: import("../../models").FlowEditorPluginContext;
15
+ pluginContext: import("@omnia/fx/ux").FlowEditorPluginContext;
16
16
  selectedRange: Range;
17
17
  storedRange: Range;
18
18
  showPlaceHolder: boolean;
@@ -21,18 +21,21 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
21
21
  categoryFilters: guid[];
22
22
  rendererTypeFilters: guid[];
23
23
  };
24
+ settings: {
25
+ gridWidth: number;
26
+ };
24
27
  };
25
28
  events: {
26
29
  onMutatedEditorContent: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx/ux").FlowContent>;
27
- onMutatedPlugins: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").FlowEditorPlugin[]>;
30
+ onMutatedPlugins: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx/ux").FlowEditorPlugin[]>;
28
31
  onMutatedPluginsLoadedPromise: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
29
32
  onMutatedHideToolbar: import("../../../../..").MessageBusExposeOnlySubscription<boolean>;
30
33
  onMutatedToolbarActions: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").FlowEditorActionRegistration[]>;
31
34
  onMutatedEditor: import("../../../../..").MessageBusExposeOnlySubscription<HTMLDivElement>;
32
- onMutatedNodeSelection: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").NodeSelection>;
35
+ onMutatedNodeSelection: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx/ux").NodeSelection>;
33
36
  onMutatedTelePorts: import("../../../../..").MessageBusExposeOnlySubscription<JSX.Element[]>;
34
37
  onMutatedId: import("../../../../..").MessageBusExposeOnlySubscription<string>;
35
- onMutatedPluginContext: import("../../../../..").MessageBusExposeOnlySubscription<import("../../models").FlowEditorPluginContext>;
38
+ onMutatedPluginContext: import("../../../../..").MessageBusExposeOnlySubscription<import("@omnia/fx/ux").FlowEditorPluginContext>;
36
39
  onMutatedSelectedRange: import("../../../../..").MessageBusExposeOnlySubscription<Range>;
37
40
  onMutatedStoredRange: import("../../../../..").MessageBusExposeOnlySubscription<Range>;
38
41
  onMutatedShowPlaceHolder: import("../../../../..").MessageBusExposeOnlySubscription<boolean>;
@@ -41,6 +44,9 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
41
44
  categoryFilters: guid[];
42
45
  rendererTypeFilters: guid[];
43
46
  }>;
47
+ onMutatedSettings: import("../../../../..").MessageBusExposeOnlySubscription<{
48
+ gridWidth: number;
49
+ }>;
44
50
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
45
51
  actions: {
46
52
  onDispatching: {
@@ -94,7 +100,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
94
100
  register: {
95
101
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
96
102
  plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
97
- context: (ctx: import("../../models").FlowEditorPluginContext) => void;
103
+ context: (ctx: import("@omnia/fx/ux").FlowEditorPluginContext) => void;
98
104
  };
99
105
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
100
106
  };
@@ -123,6 +129,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
123
129
  subscribe(fn: (result: {
124
130
  wrapLine: (element: HTMLElement) => void;
125
131
  add: (element: HTMLElement) => void;
132
+ addWithText: (element: HTMLElement, text: any) => void;
126
133
  toggle: (element: HTMLElement) => void;
127
134
  remove: (dataType: string) => void;
128
135
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -170,6 +177,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
170
177
  };
171
178
  formatting: {
172
179
  add: (element: HTMLElement) => void;
180
+ addWithTxt: (element: HTMLElement, text?: string) => void;
173
181
  wrapLine: (element: HTMLElement) => void;
174
182
  remove: (dataType: string | HTMLElement) => void;
175
183
  has: (dataType: string | HTMLElement) => boolean;
@@ -218,7 +226,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
218
226
  get: {
219
227
  topContainerForContent: (element: HTMLElement) => HTMLElement;
220
228
  topContainerForComponent: (element: HTMLElement) => HTMLElement;
221
- nodeSelectionForRange: (range: Range) => import("../../models").NodeSelection;
229
+ nodeSelectionForRange: (range: Range) => import("@omnia/fx/ux").NodeSelection;
222
230
  htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
223
231
  };
224
232
  remove: {
@@ -283,7 +291,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
283
291
  register: {
284
292
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
285
293
  plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
286
- context: (ctx: import("../../models").FlowEditorPluginContext) => void;
294
+ context: (ctx: import("@omnia/fx/ux").FlowEditorPluginContext) => void;
287
295
  };
288
296
  };
289
297
  content: () => {
@@ -304,6 +312,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
304
312
  formatting: () => {
305
313
  wrapLine: (element: HTMLElement) => void;
306
314
  add: (element: HTMLElement) => void;
315
+ addWithText: (element: HTMLElement, text: any) => void;
307
316
  toggle: (element: HTMLElement) => void;
308
317
  remove: (dataType: string) => void;
309
318
  };
@@ -347,6 +356,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
347
356
  };
348
357
  formatting: {
349
358
  add: (element: HTMLElement) => void;
359
+ addWithTxt: (element: HTMLElement, text?: string) => void;
350
360
  wrapLine: (element: HTMLElement) => void;
351
361
  remove: (dataType: string | HTMLElement) => void;
352
362
  has: (dataType: string | HTMLElement) => boolean;
@@ -395,7 +405,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
395
405
  get: {
396
406
  topContainerForContent: (element: HTMLElement) => HTMLElement;
397
407
  topContainerForComponent: (element: HTMLElement) => HTMLElement;
398
- nodeSelectionForRange: (range: Range) => import("../../models").NodeSelection;
408
+ nodeSelectionForRange: (range: Range) => import("@omnia/fx/ux").NodeSelection;
399
409
  htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
400
410
  };
401
411
  remove: {
@@ -414,7 +424,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
414
424
  };
415
425
  };
416
426
  get: {
417
- plugins: import("../../models").FlowEditorPlugin[];
427
+ plugins: import("@omnia/fx/ux").FlowEditorPlugin[];
418
428
  content: {
419
429
  isEmpty: () => boolean;
420
430
  asObject: () => import("@omnia/fx/ux").FlowContent;
@@ -426,7 +436,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
426
436
  };
427
437
  get: {
428
438
  byType: (pluginType: string) => FlowNodeReference[];
429
- all: () => import("../../models").NodeSelection;
439
+ all: () => import("@omnia/fx/ux").NodeSelection;
430
440
  };
431
441
  };
432
442
  element: {
@@ -1,3 +1,4 @@
1
- export declare const spacingPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorPluginHook } from "@omnia/fx/ux";
2
+ export declare const spacingPlugin: () => FlowEditorPluginHook & {
2
3
  dispose?: () => void;
3
4
  };
@@ -1,4 +1,7 @@
1
- import { FlowEditorPlugin } from "../../models";
2
- export declare const testDataPlugin: () => FlowEditorPlugin & {
1
+ import { FlowEditorActionRegistration } from "@omnia/fx-models";
2
+ export declare const testDataPlugin: () => {
3
+ name: string;
4
+ actions: FlowEditorActionRegistration[];
5
+ } & {
3
6
  dispose?: () => void;
4
7
  };
@@ -1,2 +1,2 @@
1
- import { ElementConverter } from "../../models";
1
+ import { ElementConverter } from "@omnia/fx/ux";
2
2
  export declare function useTextConverter(): ElementConverter;
@@ -1,3 +1,4 @@
1
- export declare const textPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const textPlugin: () => FlowEditorContentPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -1,3 +1,4 @@
1
- export declare const textAlignPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorPluginHook } from "@omnia/fx/ux";
2
+ export declare const textAlignPlugin: () => FlowEditorPluginHook & {
2
3
  dispose?: () => void;
3
4
  };