@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,4 +1,4 @@
1
- import { FlowEditorPluginContext } from "../models";
1
+ import { FlowEditorPluginContext } from "@omnia/fx/ux";
2
2
  import { guid } from "@omnia/fx-models";
3
3
  declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
4
4
  preSelector?: boolean;
@@ -1,3 +1 @@
1
1
  export * from "./Constants";
2
- export * from "./EditorPlugin";
3
- export * from "./EditorModels";
@@ -1,5 +1,4 @@
1
- import { FlowEditorPlugin } from "../models";
2
- import { FlowContent } from "@omnia/fx/ux";
1
+ import { FlowContent, FlowEditorPlugin } from "@omnia/fx/ux";
3
2
  export declare function useHtmlParser(state: {
4
3
  editor: HTMLDivElement;
5
4
  plugins: Array<FlowEditorPlugin>;
@@ -1,5 +1,4 @@
1
- import { FlowContent } from "@omnia/fx/ux";
2
- import { FlowEditorPlugin, FlowEditorPluginContext } from "../models";
1
+ import { FlowContent, FlowEditorPlugin, FlowEditorPluginContext } from "@omnia/fx/ux";
3
2
  export declare function useJSONParser(state: {
4
3
  editor: HTMLDivElement;
5
4
  plugins: Array<FlowEditorPlugin>;
@@ -1,8 +1,8 @@
1
1
  import { SetupFactoryContext } from "@omnia/fx";
2
- import { FlowEditorContentPlugin, FlowEditorPlugin } from "../models";
2
+ import { FlowEditorContentPlugin, FlowEditorPlugin } from "@omnia/fx/ux";
3
3
  interface SetupEditorPluginContext extends SetupFactoryContext {
4
4
  }
5
- export declare function defineEditorPlugin<TArgs extends any[]>(setup: (ctx: SetupEditorPluginContext) => FlowEditorPlugin | FlowEditorContentPlugin): () => FlowEditorPlugin & {
5
+ export declare function defineEditorPlugin<TPluginType extends FlowEditorPlugin | FlowEditorContentPlugin>(setup: (ctx: SetupEditorPluginContext) => TPluginType): () => TPluginType & {
6
6
  dispose?: () => void;
7
7
  };
8
8
  export {};
@@ -1,3 +1,4 @@
1
- export declare const boldPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const boldPlugin: () => FlowEditorContentPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -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,3 @@
1
1
  import { ColorValue } from "@omnia/fx-models";
2
- import { ElementConverter, FlowEditorPluginContext } from "../../models";
2
+ import { ElementConverter, FlowEditorPluginContext } from "@omnia/fx/ux";
3
3
  export declare function useColorConverter(elementCreator: (value: ColorValue, ctx: FlowEditorPluginContext) => HTMLElement): ElementConverter;
@@ -1,3 +1,4 @@
1
- export declare const colorStylePlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const colorStylePlugin: () => FlowEditorContentPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -1,5 +1,4 @@
1
- import { FlowNode } from "@omnia/fx/ux";
2
- import { ElementConverter } from "../../models";
1
+ import { ElementConverter, FlowNode } from "@omnia/fx/ux";
3
2
  export interface ElementNode extends FlowNode {
4
3
  name: "br";
5
4
  }
@@ -1,3 +1,4 @@
1
- export declare const elementPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const elementPlugin: () => FlowEditorContentPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -1,4 +1,19 @@
1
- import { FlowEditorPlugin } from "../../models";
2
- export declare const editorEventsPlugin: () => FlowEditorPlugin & {
1
+ import { FlowEditorPluginContext } from "@omnia/fx/ux";
2
+ export declare const editorEventsPlugin: () => {
3
+ name: string;
4
+ eventListeners: ({
5
+ event: ("click" | "focus" | "input")[];
6
+ action: (event: Event, context: FlowEditorPluginContext) => void;
7
+ } | {
8
+ event: "focusout"[];
9
+ action: (event: Event, context: FlowEditorPluginContext) => void;
10
+ } | {
11
+ event: "copy";
12
+ action: (event: ClipboardEvent, context: FlowEditorPluginContext) => void;
13
+ } | {
14
+ event: "paste"[];
15
+ action: (event: ClipboardEvent, context: FlowEditorPluginContext) => void;
16
+ })[];
17
+ } & {
3
18
  dispose?: () => void;
4
19
  };
@@ -1,4 +1,10 @@
1
- import { FlowEditorPlugin } from "../../models";
2
- export declare const keyboardEventsPlugin: () => FlowEditorPlugin & {
1
+ import { FlowEditorPluginContext } from "@omnia/fx/ux";
2
+ export declare const keyboardEventsPlugin: () => {
3
+ name: string;
4
+ eventListeners: {
5
+ event: "keydown";
6
+ action: (event: KeyboardEvent, context: FlowEditorPluginContext) => void;
7
+ }[];
8
+ } & {
3
9
  dispose?: () => void;
4
10
  };
@@ -1,4 +1,4 @@
1
- import { FlowEditorPluginContext } from "../../../models";
1
+ import { FlowEditorPluginContext } from "@omnia/fx/ux";
2
2
  import { useFlowEditorStore } from "../../../stores";
3
3
  export declare function useClipboardHandler(): {
4
4
  paste: (ev: ClipboardEvent, editorStore: ReturnType<typeof useFlowEditorStore>) => void;
@@ -1,3 +1,4 @@
1
- export declare const italicPlugin: () => import("../../models").FlowEditorPlugin & {
1
+ import { FlowEditorContentPlugin } from "@omnia/fx/ux";
2
+ export declare const italicPlugin: () => FlowEditorContentPlugin & {
2
3
  dispose?: () => void;
3
4
  };