@omnia/fx 8.0.265-dev → 8.0.266-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/internal-do-not-import-from-here/stores/floweditor/FlowEditorPluginStore.d.ts +1 -0
  2. package/internal-do-not-import-from-here/ux/appprovisioning/appimageinput/AppImageInput.d.ts +4 -0
  3. package/internal-do-not-import-from-here/ux/aurora/designkits/default/DefinitionRegistrations.d.ts +0 -1
  4. package/internal-do-not-import-from-here/ux/aurora/designkits/pages/DefinitionRegistrations.d.ts +0 -1
  5. package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +36 -0
  6. package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +36 -0
  7. package/internal-do-not-import-from-here/ux/features/FeatureActivation.d.ts +1 -1
  8. package/internal-do-not-import-from-here/ux/floweditor/FlowEditor.css.d.ts +5 -5
  9. package/internal-do-not-import-from-here/ux/floweditor/commands/EditorCommands.d.ts +62 -16
  10. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/EditorNodeHelper.d.ts +3 -2
  11. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/Editorhelper.d.ts +13 -5
  12. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/HtmlNodehelper.d.ts +22 -6
  13. package/internal-do-not-import-from-here/ux/floweditor/models/Constants.d.ts +14 -0
  14. package/internal-do-not-import-from-here/ux/floweditor/models/EditorPlugin.d.ts +10 -0
  15. package/internal-do-not-import-from-here/ux/floweditor/plugins/elements/ElementPlugin.d.ts +7 -0
  16. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/EditorEvents.d.ts +4 -0
  17. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/KeyboardEvents.d.ts +4 -0
  18. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +4 -0
  19. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +4 -0
  20. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/EnterHandler.d.ts +4 -0
  21. package/internal-do-not-import-from-here/ux/floweditor/plugins/sourceeditor/SourceEditorPlugin.d.ts +2 -1
  22. package/internal-do-not-import-from-here/ux/floweditor/plugins/testdata/TestDataPlugin.d.ts +2 -1
  23. package/internal-do-not-import-from-here/ux/floweditor/rules/EditorRules.d.ts +7 -0
  24. package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorStore.d.ts +197 -27
  25. package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorToolbarStore.d.ts +985 -135
  26. package/internal-do-not-import-from-here/ux/hub/feed/definitions/CommunityUpdate.d.ts +0 -2
  27. package/internal-do-not-import-from-here/ux/hub/feed/definitions/DefinitionRegistrations.d.ts +0 -1
  28. package/internal-do-not-import-from-here/ux/hub/feed/definitions/DocumentReview.d.ts +0 -2
  29. package/internal-do-not-import-from-here/ux/hub/feed/definitions/NewsArticleTemplate.d.ts +0 -2
  30. package/internal-do-not-import-from-here/ux/hub/feed/definitions/QuickPoll.d.ts +0 -2
  31. package/internal-do-not-import-from-here/ux/hub/feed/definitions/Reach.d.ts +0 -2
  32. package/internal-do-not-import-from-here/ux/hub/feed/definitions/UpdatedProcess.d.ts +0 -2
  33. package/internal-do-not-import-from-here/ux/identities/loc/Localize.d.ts +1 -0
  34. package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +1 -1
  35. package/internal-do-not-import-from-here/ux/properties/property-picker/PropertyPicker.d.ts +18 -1
  36. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +3 -3
  37. package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +5 -1
  38. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +3 -3
  39. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +3 -3
  40. package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -1
  41. package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
  42. package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/models → definitions}/VelcronDefinitionIds.d.ts +1 -1
  43. package/internal-do-not-import-from-here/ux/velcron/definitions/index.d.ts +1 -1
  44. package/internal-do-not-import-from-here/ux/velcron/definitions/social/index.d.ts +0 -0
  45. package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentDescriptors.d.ts +1 -1
  46. package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronEditorStore.d.ts +7 -7
  47. package/internal-do-not-import-from-here/ux/velcron/renderer/components/{Markdown.d.ts → Flow.d.ts} +6 -6
  48. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/MarkdownEditor.d.ts +6 -6
  49. package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +47 -7
  50. package/internal-do-not-import-from-here/wctypings.d.ts +0 -16
  51. package/package.json +2 -2
  52. package/internal-do-not-import-from-here/ux/floweditor/commands/ClipboardCommands.d.ts +0 -4
  53. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.css.d.ts +0 -6
  54. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.d.ts +0 -949
  55. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/content/Quote.d.ts +0 -2
  56. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/index.d.ts +0 -2
  57. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Image.d.ts +0 -2
  58. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog.d.ts +0 -3
  59. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog2.d.ts +0 -3
  60. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Praise.d.ts +0 -2
  61. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/SocialText.d.ts +0 -2
  62. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/index.d.ts +0 -4
  63. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/ContentDefinitionRegistration.d.ts +0 -9
  64. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/index.d.ts +0 -2
  65. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/stores/ContentEditorStore.d.ts +0 -180
  66. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/definitions/index.d.ts +0 -1
  67. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.css.d.ts +0 -5
  68. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.d.ts +0 -1133
  69. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentRenderer.d.ts +0 -80
  70. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.css.d.ts +0 -4
  71. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.d.ts +0 -11
  72. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector copy.d.ts +0 -11
  73. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.css.d.ts +0 -12
  74. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.d.ts +0 -11
  75. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar copy.d.ts +0 -14
  76. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.css.d.ts +0 -4
  77. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.d.ts +0 -14
  78. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/DefinitionRegistrations.d.ts +0 -1
  79. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/index.d.ts +0 -1
  80. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.css.d.ts +0 -6
  81. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.d.ts +0 -2
  82. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/EditorRenderingHooks.d.ts +0 -24
  83. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/index.d.ts +0 -1
  84. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/stores/ContentEditorStore.d.ts +0 -222
  85. /package/internal-do-not-import-from-here/ux/{aurora/RegistrationHandlerDefinitions.d.ts → velcron/apis/VelcronCategoriesHandler.d.ts} +0 -0
  86. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/DefinitionRegistrations.d.ts → apis/VelcronDefinitionsHandler.d.ts} +0 -0
  87. /package/internal-do-not-import-from-here/ux/velcron/{registrations → definitions}/CategoryRegistrations.d.ts +0 -0
  88. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Image.d.ts +0 -0
  89. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/ImageText.d.ts +0 -0
  90. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditorNew/definitions/DefinitionRegistrations.d.ts → definitions/content/Quote.d.ts} +0 -0
  91. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Text.d.ts +0 -0
  92. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/index.d.ts +0 -0
  93. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content → velcron/definitions/social}/Image.d.ts +0 -0
  94. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/ImageText.d.ts → velcron/definitions/social/MicroBlog.d.ts} +0 -0
  95. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Quote.d.ts → velcron/definitions/social/MicroBlog2.d.ts} +0 -0
  96. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Text.d.ts → velcron/definitions/social/Praise.d.ts} +0 -0
  97. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/index.d.ts → velcron/definitions/social/SocialText.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ import { FlowNode } from "../../models/EditorModels";
2
+ export interface ElementNode extends FlowNode {
3
+ name: "br";
4
+ }
5
+ export declare const elementPlugin: () => import("../../models/EditorPlugin").FlowEditorPlugin & {
6
+ dispose?: () => void;
7
+ };
@@ -0,0 +1,4 @@
1
+ import { FlowEditorPlugin } from "../../models/EditorPlugin";
2
+ export declare const editorEventsPlugin: () => FlowEditorPlugin & {
3
+ dispose?: () => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { FlowEditorPlugin } from "../../models/EditorPlugin";
2
+ export declare const keyboardEventsPlugin: () => FlowEditorPlugin & {
3
+ dispose?: () => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { useFlowEditorStore } from "../../../stores/FlowEditorStore";
2
+ export declare function useBackspaceHandler(): {
3
+ handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { useFlowEditorStore } from "../../../stores/FlowEditorStore";
2
+ export declare function useClipboardHandler(): {
3
+ paste: (ev: ClipboardEvent, editorStore: ReturnType<typeof useFlowEditorStore>) => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { useFlowEditorStore } from "../../../stores/FlowEditorStore";
2
+ export declare function useEnterHandler(): {
3
+ handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
4
+ };
@@ -1,3 +1,4 @@
1
- export declare const sourceEditorPlugin: () => import("../../models/EditorPlugin").FlowEditorPlugin & {
1
+ import { FlowEditorPlugin } from "../../models/EditorPlugin";
2
+ export declare const sourceEditorPlugin: () => FlowEditorPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -1,3 +1,4 @@
1
- export declare const testDataPlugin: () => import("../../models/EditorPlugin").FlowEditorPlugin & {
1
+ import { FlowEditorPlugin } from "../../models/EditorPlugin";
2
+ export declare const testDataPlugin: () => FlowEditorPlugin & {
2
3
  dispose?: () => void;
3
4
  };
@@ -0,0 +1,7 @@
1
+ export declare function useFlowEditorRules(): {
2
+ is: {
3
+ topContainer: (node: HTMLElement) => boolean;
4
+ editorNode: (node: HTMLElement) => boolean;
5
+ clipboardContainer: (node: HTMLElement) => boolean;
6
+ };
7
+ };
@@ -13,6 +13,7 @@ export declare const useFlowEditorStore: () => {
13
13
  nodeSelection: NodeSelection;
14
14
  telePorts: JSX.Element[];
15
15
  id: string;
16
+ pluginContext: FlowEditorPluginContext;
16
17
  selectedRange: Range;
17
18
  showPlaceHolder: boolean;
18
19
  };
@@ -27,6 +28,7 @@ export declare const useFlowEditorStore: () => {
27
28
  onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<NodeSelection>;
28
29
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
29
30
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
31
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
30
32
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
31
33
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
32
34
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
@@ -38,13 +40,7 @@ export declare const useFlowEditorStore: () => {
38
40
  content: {
39
41
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
40
42
  };
41
- setEditorMode: {
42
- subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
43
- };
44
- setEditorContainer: {
45
- subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
46
- };
47
- focusEditor: {
43
+ set: {
48
44
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
45
  };
50
46
  toolbarAction: {
@@ -72,20 +68,20 @@ export declare const useFlowEditorStore: () => {
72
68
  };
73
69
  content: {
74
70
  subscribe(fn: (result: {
71
+ sync: () => FlowContent;
75
72
  set: {
76
73
  byJSON: (content: FlowContent) => void;
77
74
  byString: (content: string) => void;
78
75
  };
79
76
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
80
77
  };
81
- setEditorMode: {
82
- subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
83
- };
84
- setEditorContainer: {
85
- subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
86
- };
87
- focusEditor: {
88
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
78
+ set: {
79
+ subscribe(fn: (result: {
80
+ mode: (editMode: boolean) => void;
81
+ container: (el: HTMLDivElement) => void;
82
+ focus: () => void;
83
+ placeHolderVisibility: () => void;
84
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
89
85
  };
90
86
  toolbarAction: {
91
87
  subscribe(fn: (result: {
@@ -111,6 +107,94 @@ export declare const useFlowEditorStore: () => {
111
107
  commands: {
112
108
  subscribe(fn: (result: {
113
109
  exec: (command: string, data: object) => void;
110
+ builtIn: {
111
+ content: {
112
+ convert: (element: HTMLElement) => void;
113
+ };
114
+ ensure: {
115
+ lastElement: () => void;
116
+ unique: {
117
+ ids: (element: HTMLElement) => void;
118
+ };
119
+ };
120
+ selection: {
121
+ get: {
122
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
123
+ };
124
+ };
125
+ cursor: {
126
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
127
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
128
+ };
129
+ actions: {
130
+ setSelection: () => void;
131
+ };
132
+ formatting: {
133
+ add: (element: HTMLElement) => void;
134
+ remove: (dataType: string | HTMLElement) => void;
135
+ has: (dataType: string | HTMLElement) => boolean;
136
+ };
137
+ element: {
138
+ clean: (element: HTMLElement) => void;
139
+ add: (element: HTMLElement) => void;
140
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
141
+ createText: () => HTMLParagraphElement;
142
+ createTextNode: (data: any) => Text;
143
+ createComponent: (componentName: string) => HTMLDivElement;
144
+ insert: {
145
+ text: (element: Node, text: string, offset: any) => void;
146
+ };
147
+ ids: {
148
+ unique: (element: HTMLElement) => void;
149
+ };
150
+ };
151
+ helpers: {
152
+ editor: {
153
+ ensure: {
154
+ uniqueIds: (element: HTMLElement, state: {
155
+ maxNodeId: number;
156
+ }) => HTMLElement;
157
+ selectionIsInEditor: (range: Range) => void;
158
+ };
159
+ cursor: {
160
+ storePosition: (state: {
161
+ selectedRange: Range;
162
+ }) => void;
163
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
164
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
165
+ };
166
+ };
167
+ editorNode: {
168
+ get: {
169
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
170
+ };
171
+ };
172
+ htmlNode: {
173
+ copy: {
174
+ children: (from: HTMLElement, to: HTMLElement) => void;
175
+ };
176
+ insert: {
177
+ text: (element: Node, text: string, offset: any) => void;
178
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
179
+ };
180
+ get: {
181
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
182
+ nodeSelectionForRange: (range: Range) => NodeSelection;
183
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
184
+ };
185
+ remove: {
186
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
187
+ };
188
+ strip: {
189
+ after: (element: HTMLElement, splitter: string) => void;
190
+ before: (element: HTMLElement, splitter: string) => void;
191
+ };
192
+ surround: {
193
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
194
+ };
195
+ };
196
+ };
197
+ };
114
198
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
115
199
  };
116
200
  };
@@ -121,13 +205,7 @@ export declare const useFlowEditorStore: () => {
121
205
  content: {
122
206
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
123
207
  };
124
- setEditorMode: {
125
- subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
126
- };
127
- setEditorContainer: {
128
- subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
129
- };
130
- focusEditor: {
208
+ set: {
131
209
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
132
210
  };
133
211
  toolbarAction: {
@@ -152,14 +230,18 @@ export declare const useFlowEditorStore: () => {
152
230
  };
153
231
  };
154
232
  content: () => {
233
+ sync: () => FlowContent;
155
234
  set: {
156
235
  byJSON: (content: FlowContent) => void;
157
236
  byString: (content: string) => void;
158
237
  };
159
238
  };
160
- setEditorMode: (editMode: boolean) => void;
161
- setEditorContainer: (el: HTMLDivElement) => void;
162
- focusEditor: () => void;
239
+ set: () => {
240
+ mode: (editMode: boolean) => void;
241
+ container: (el: HTMLDivElement) => void;
242
+ focus: () => void;
243
+ placeHolderVisibility: () => void;
244
+ };
163
245
  toolbarAction: () => {
164
246
  add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
165
247
  };
@@ -177,6 +259,94 @@ export declare const useFlowEditorStore: () => {
177
259
  };
178
260
  commands: () => {
179
261
  exec: (command: string, data: object) => void;
262
+ builtIn: {
263
+ content: {
264
+ convert: (element: HTMLElement) => void;
265
+ };
266
+ ensure: {
267
+ lastElement: () => void;
268
+ unique: {
269
+ ids: (element: HTMLElement) => void;
270
+ };
271
+ };
272
+ selection: {
273
+ get: {
274
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
275
+ };
276
+ };
277
+ cursor: {
278
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
279
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
280
+ };
281
+ actions: {
282
+ setSelection: () => void;
283
+ };
284
+ formatting: {
285
+ add: (element: HTMLElement) => void;
286
+ remove: (dataType: string | HTMLElement) => void;
287
+ has: (dataType: string | HTMLElement) => boolean;
288
+ };
289
+ element: {
290
+ clean: (element: HTMLElement) => void;
291
+ add: (element: HTMLElement) => void;
292
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
293
+ createText: () => HTMLParagraphElement;
294
+ createTextNode: (data: any) => Text;
295
+ createComponent: (componentName: string) => HTMLDivElement;
296
+ insert: {
297
+ text: (element: Node, text: string, offset: any) => void;
298
+ };
299
+ ids: {
300
+ unique: (element: HTMLElement) => void;
301
+ };
302
+ };
303
+ helpers: {
304
+ editor: {
305
+ ensure: {
306
+ uniqueIds: (element: HTMLElement, state: {
307
+ maxNodeId: number;
308
+ }) => HTMLElement;
309
+ selectionIsInEditor: (range: Range) => void;
310
+ };
311
+ cursor: {
312
+ storePosition: (state: {
313
+ selectedRange: Range;
314
+ }) => void;
315
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
316
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
317
+ };
318
+ };
319
+ editorNode: {
320
+ get: {
321
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
322
+ };
323
+ };
324
+ htmlNode: {
325
+ copy: {
326
+ children: (from: HTMLElement, to: HTMLElement) => void;
327
+ };
328
+ insert: {
329
+ text: (element: Node, text: string, offset: any) => void;
330
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
331
+ };
332
+ get: {
333
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
334
+ nodeSelectionForRange: (range: Range) => NodeSelection;
335
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
336
+ };
337
+ remove: {
338
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
339
+ };
340
+ strip: {
341
+ after: (element: HTMLElement, splitter: string) => void;
342
+ before: (element: HTMLElement, splitter: string) => void;
343
+ };
344
+ surround: {
345
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
346
+ };
347
+ };
348
+ };
349
+ };
180
350
  };
181
351
  };
182
352
  get: {
@@ -188,10 +358,10 @@ export declare const useFlowEditorStore: () => {
188
358
  };
189
359
  selection: {
190
360
  has: {
191
- dataType: (dataType: string) => boolean;
361
+ type: (pluginType: string) => boolean;
192
362
  };
193
363
  get: {
194
- byDataType: (dataType: string) => import("../models/EditorModels").FlowNodeReference[];
364
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
195
365
  };
196
366
  };
197
367
  };