@omnia/fx 8.0.265-dev → 8.0.266-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internal-do-not-import-from-here/stores/floweditor/FlowEditorPluginStore.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/appprovisioning/appimageinput/AppImageInput.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/aurora/designkits/default/DefinitionRegistrations.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/aurora/designkits/pages/DefinitionRegistrations.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +36 -0
- package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +36 -0
- package/internal-do-not-import-from-here/ux/features/FeatureActivation.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/floweditor/FlowEditor.css.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/floweditor/commands/EditorCommands.d.ts +62 -16
- package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/EditorNodeHelper.d.ts +3 -2
- package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/Editorhelper.d.ts +13 -5
- package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/HtmlNodehelper.d.ts +22 -6
- package/internal-do-not-import-from-here/ux/floweditor/models/Constants.d.ts +14 -0
- package/internal-do-not-import-from-here/ux/floweditor/models/EditorPlugin.d.ts +10 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/elements/ElementPlugin.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/EditorEvents.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/KeyboardEvents.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/EnterHandler.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/floweditor/plugins/sourceeditor/SourceEditorPlugin.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/floweditor/plugins/testdata/TestDataPlugin.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/floweditor/rules/EditorRules.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorStore.d.ts +197 -27
- package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorToolbarStore.d.ts +985 -135
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/CommunityUpdate.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/DefinitionRegistrations.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/DocumentReview.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/NewsArticleTemplate.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/QuickPoll.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/Reach.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/hub/feed/definitions/UpdatedProcess.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/identities/loc/Localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/property-picker/PropertyPicker.d.ts +18 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/models → definitions}/VelcronDefinitionIds.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/definitions/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/definitions/social/index.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentDescriptors.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronEditorStore.d.ts +7 -7
- package/internal-do-not-import-from-here/ux/velcron/renderer/components/{Markdown.d.ts → Flow.d.ts} +6 -6
- package/internal-do-not-import-from-here/ux/velcron/renderer/editors/MarkdownEditor.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +47 -7
- package/internal-do-not-import-from-here/wctypings.d.ts +0 -16
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/floweditor/commands/ClipboardCommands.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.css.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.d.ts +0 -949
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/content/Quote.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/index.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Image.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog.d.ts +0 -3
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog2.d.ts +0 -3
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Praise.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/SocialText.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/index.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/ContentDefinitionRegistration.d.ts +0 -9
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/index.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/stores/ContentEditorStore.d.ts +0 -180
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/definitions/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.css.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.d.ts +0 -1133
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentRenderer.d.ts +0 -80
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.css.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector copy.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.css.d.ts +0 -12
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar copy.d.ts +0 -14
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.css.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.d.ts +0 -14
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/DefinitionRegistrations.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.css.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/EditorRenderingHooks.d.ts +0 -24
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/stores/ContentEditorStore.d.ts +0 -222
- /package/internal-do-not-import-from-here/ux/{aurora/RegistrationHandlerDefinitions.d.ts → velcron/apis/VelcronCategoriesHandler.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/DefinitionRegistrations.d.ts → apis/VelcronDefinitionsHandler.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{registrations → definitions}/CategoryRegistrations.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Image.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/ImageText.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditorNew/definitions/DefinitionRegistrations.d.ts → definitions/content/Quote.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Text.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content → velcron/definitions/social}/Image.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/ImageText.d.ts → velcron/definitions/social/MicroBlog.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Quote.d.ts → velcron/definitions/social/MicroBlog2.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Text.d.ts → velcron/definitions/social/Praise.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/index.d.ts → velcron/definitions/social/SocialText.d.ts} +0 -0
@@ -14,6 +14,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
14
14
|
nodeSelection: import("../models/EditorModels").NodeSelection;
|
15
15
|
telePorts: JSX.Element[];
|
16
16
|
id: string;
|
17
|
+
pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
|
17
18
|
selectedRange: Range;
|
18
19
|
showPlaceHolder: boolean;
|
19
20
|
};
|
@@ -28,6 +29,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
28
29
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
29
30
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
30
31
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
32
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
|
31
33
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
32
34
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
33
35
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -39,13 +41,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
39
41
|
content: {
|
40
42
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
41
43
|
};
|
42
|
-
|
43
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
44
|
-
};
|
45
|
-
setEditorContainer: {
|
46
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
47
|
-
};
|
48
|
-
focusEditor: {
|
44
|
+
set: {
|
49
45
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
50
46
|
};
|
51
47
|
toolbarAction: {
|
@@ -73,20 +69,20 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
73
69
|
};
|
74
70
|
content: {
|
75
71
|
subscribe(fn: (result: {
|
72
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
76
73
|
set: {
|
77
74
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
78
75
|
byString: (content: string) => void;
|
79
76
|
};
|
80
77
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
81
78
|
};
|
82
|
-
|
83
|
-
subscribe(fn: (result:
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
79
|
+
set: {
|
80
|
+
subscribe(fn: (result: {
|
81
|
+
mode: (editMode: boolean) => void;
|
82
|
+
container: (el: HTMLDivElement) => void;
|
83
|
+
focus: () => void;
|
84
|
+
placeHolderVisibility: () => void;
|
85
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
90
86
|
};
|
91
87
|
toolbarAction: {
|
92
88
|
subscribe(fn: (result: {
|
@@ -112,6 +108,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
112
108
|
commands: {
|
113
109
|
subscribe(fn: (result: {
|
114
110
|
exec: (command: string, data: object) => void;
|
111
|
+
builtIn: {
|
112
|
+
content: {
|
113
|
+
convert: (element: HTMLElement) => void;
|
114
|
+
};
|
115
|
+
ensure: {
|
116
|
+
lastElement: () => void;
|
117
|
+
unique: {
|
118
|
+
ids: (element: HTMLElement) => void;
|
119
|
+
};
|
120
|
+
};
|
121
|
+
selection: {
|
122
|
+
get: {
|
123
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
124
|
+
};
|
125
|
+
};
|
126
|
+
cursor: {
|
127
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
128
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
129
|
+
};
|
130
|
+
actions: {
|
131
|
+
setSelection: () => void;
|
132
|
+
};
|
133
|
+
formatting: {
|
134
|
+
add: (element: HTMLElement) => void;
|
135
|
+
remove: (dataType: string | HTMLElement) => void;
|
136
|
+
has: (dataType: string | HTMLElement) => boolean;
|
137
|
+
};
|
138
|
+
element: {
|
139
|
+
clean: (element: HTMLElement) => void;
|
140
|
+
add: (element: HTMLElement) => void;
|
141
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
142
|
+
createText: () => HTMLParagraphElement;
|
143
|
+
createTextNode: (data: any) => Text;
|
144
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
145
|
+
insert: {
|
146
|
+
text: (element: Node, text: string, offset: any) => void;
|
147
|
+
};
|
148
|
+
ids: {
|
149
|
+
unique: (element: HTMLElement) => void;
|
150
|
+
};
|
151
|
+
};
|
152
|
+
helpers: {
|
153
|
+
editor: {
|
154
|
+
ensure: {
|
155
|
+
uniqueIds: (element: HTMLElement, state: {
|
156
|
+
maxNodeId: number;
|
157
|
+
}) => HTMLElement;
|
158
|
+
selectionIsInEditor: (range: Range) => void;
|
159
|
+
};
|
160
|
+
cursor: {
|
161
|
+
storePosition: (state: {
|
162
|
+
selectedRange: Range;
|
163
|
+
}) => void;
|
164
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
165
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
166
|
+
};
|
167
|
+
};
|
168
|
+
editorNode: {
|
169
|
+
get: {
|
170
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
171
|
+
};
|
172
|
+
};
|
173
|
+
htmlNode: {
|
174
|
+
copy: {
|
175
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
176
|
+
};
|
177
|
+
insert: {
|
178
|
+
text: (element: Node, text: string, offset: any) => void;
|
179
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
180
|
+
};
|
181
|
+
get: {
|
182
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
183
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
184
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
185
|
+
};
|
186
|
+
remove: {
|
187
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
188
|
+
};
|
189
|
+
strip: {
|
190
|
+
after: (element: HTMLElement, splitter: string) => void;
|
191
|
+
before: (element: HTMLElement, splitter: string) => void;
|
192
|
+
};
|
193
|
+
surround: {
|
194
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
195
|
+
};
|
196
|
+
};
|
197
|
+
};
|
198
|
+
};
|
115
199
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
116
200
|
};
|
117
201
|
};
|
@@ -122,13 +206,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
122
206
|
content: {
|
123
207
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
124
208
|
};
|
125
|
-
|
126
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
127
|
-
};
|
128
|
-
setEditorContainer: {
|
129
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
130
|
-
};
|
131
|
-
focusEditor: {
|
209
|
+
set: {
|
132
210
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
133
211
|
};
|
134
212
|
toolbarAction: {
|
@@ -153,14 +231,18 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
153
231
|
};
|
154
232
|
};
|
155
233
|
content: () => {
|
234
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
156
235
|
set: {
|
157
236
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
158
237
|
byString: (content: string) => void;
|
159
238
|
};
|
160
239
|
};
|
161
|
-
|
162
|
-
|
163
|
-
|
240
|
+
set: () => {
|
241
|
+
mode: (editMode: boolean) => void;
|
242
|
+
container: (el: HTMLDivElement) => void;
|
243
|
+
focus: () => void;
|
244
|
+
placeHolderVisibility: () => void;
|
245
|
+
};
|
164
246
|
toolbarAction: () => {
|
165
247
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
166
248
|
};
|
@@ -178,6 +260,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
178
260
|
};
|
179
261
|
commands: () => {
|
180
262
|
exec: (command: string, data: object) => void;
|
263
|
+
builtIn: {
|
264
|
+
content: {
|
265
|
+
convert: (element: HTMLElement) => void;
|
266
|
+
};
|
267
|
+
ensure: {
|
268
|
+
lastElement: () => void;
|
269
|
+
unique: {
|
270
|
+
ids: (element: HTMLElement) => void;
|
271
|
+
};
|
272
|
+
};
|
273
|
+
selection: {
|
274
|
+
get: {
|
275
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
276
|
+
};
|
277
|
+
};
|
278
|
+
cursor: {
|
279
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
280
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
281
|
+
};
|
282
|
+
actions: {
|
283
|
+
setSelection: () => void;
|
284
|
+
};
|
285
|
+
formatting: {
|
286
|
+
add: (element: HTMLElement) => void;
|
287
|
+
remove: (dataType: string | HTMLElement) => void;
|
288
|
+
has: (dataType: string | HTMLElement) => boolean;
|
289
|
+
};
|
290
|
+
element: {
|
291
|
+
clean: (element: HTMLElement) => void;
|
292
|
+
add: (element: HTMLElement) => void;
|
293
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
294
|
+
createText: () => HTMLParagraphElement;
|
295
|
+
createTextNode: (data: any) => Text;
|
296
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
297
|
+
insert: {
|
298
|
+
text: (element: Node, text: string, offset: any) => void;
|
299
|
+
};
|
300
|
+
ids: {
|
301
|
+
unique: (element: HTMLElement) => void;
|
302
|
+
};
|
303
|
+
};
|
304
|
+
helpers: {
|
305
|
+
editor: {
|
306
|
+
ensure: {
|
307
|
+
uniqueIds: (element: HTMLElement, state: {
|
308
|
+
maxNodeId: number;
|
309
|
+
}) => HTMLElement;
|
310
|
+
selectionIsInEditor: (range: Range) => void;
|
311
|
+
};
|
312
|
+
cursor: {
|
313
|
+
storePosition: (state: {
|
314
|
+
selectedRange: Range;
|
315
|
+
}) => void;
|
316
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
317
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
318
|
+
};
|
319
|
+
};
|
320
|
+
editorNode: {
|
321
|
+
get: {
|
322
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
323
|
+
};
|
324
|
+
};
|
325
|
+
htmlNode: {
|
326
|
+
copy: {
|
327
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
328
|
+
};
|
329
|
+
insert: {
|
330
|
+
text: (element: Node, text: string, offset: any) => void;
|
331
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
332
|
+
};
|
333
|
+
get: {
|
334
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
335
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
336
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
337
|
+
};
|
338
|
+
remove: {
|
339
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
340
|
+
};
|
341
|
+
strip: {
|
342
|
+
after: (element: HTMLElement, splitter: string) => void;
|
343
|
+
before: (element: HTMLElement, splitter: string) => void;
|
344
|
+
};
|
345
|
+
surround: {
|
346
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
347
|
+
};
|
348
|
+
};
|
349
|
+
};
|
350
|
+
};
|
181
351
|
};
|
182
352
|
};
|
183
353
|
get: {
|
@@ -189,10 +359,10 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
189
359
|
};
|
190
360
|
selection: {
|
191
361
|
has: {
|
192
|
-
|
362
|
+
type: (pluginType: string) => boolean;
|
193
363
|
};
|
194
364
|
get: {
|
195
|
-
|
365
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
196
366
|
};
|
197
367
|
};
|
198
368
|
};
|
@@ -216,6 +386,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
216
386
|
nodeSelection: import("../models/EditorModels").NodeSelection;
|
217
387
|
telePorts: JSX.Element[];
|
218
388
|
id: string;
|
389
|
+
pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
|
219
390
|
selectedRange: Range;
|
220
391
|
showPlaceHolder: boolean;
|
221
392
|
};
|
@@ -230,6 +401,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
230
401
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
231
402
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
232
403
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
404
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
|
233
405
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
234
406
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
235
407
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -241,13 +413,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
241
413
|
content: {
|
242
414
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
243
415
|
};
|
244
|
-
|
245
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
246
|
-
};
|
247
|
-
setEditorContainer: {
|
248
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
249
|
-
};
|
250
|
-
focusEditor: {
|
416
|
+
set: {
|
251
417
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
252
418
|
};
|
253
419
|
toolbarAction: {
|
@@ -275,20 +441,20 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
275
441
|
};
|
276
442
|
content: {
|
277
443
|
subscribe(fn: (result: {
|
444
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
278
445
|
set: {
|
279
446
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
280
447
|
byString: (content: string) => void;
|
281
448
|
};
|
282
449
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
283
450
|
};
|
284
|
-
|
285
|
-
subscribe(fn: (result:
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
451
|
+
set: {
|
452
|
+
subscribe(fn: (result: {
|
453
|
+
mode: (editMode: boolean) => void;
|
454
|
+
container: (el: HTMLDivElement) => void;
|
455
|
+
focus: () => void;
|
456
|
+
placeHolderVisibility: () => void;
|
457
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
292
458
|
};
|
293
459
|
toolbarAction: {
|
294
460
|
subscribe(fn: (result: {
|
@@ -314,6 +480,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
314
480
|
commands: {
|
315
481
|
subscribe(fn: (result: {
|
316
482
|
exec: (command: string, data: object) => void;
|
483
|
+
builtIn: {
|
484
|
+
content: {
|
485
|
+
convert: (element: HTMLElement) => void;
|
486
|
+
};
|
487
|
+
ensure: {
|
488
|
+
lastElement: () => void;
|
489
|
+
unique: {
|
490
|
+
ids: (element: HTMLElement) => void;
|
491
|
+
};
|
492
|
+
};
|
493
|
+
selection: {
|
494
|
+
get: {
|
495
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
496
|
+
};
|
497
|
+
};
|
498
|
+
cursor: {
|
499
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
500
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
501
|
+
};
|
502
|
+
actions: {
|
503
|
+
setSelection: () => void;
|
504
|
+
};
|
505
|
+
formatting: {
|
506
|
+
add: (element: HTMLElement) => void;
|
507
|
+
remove: (dataType: string | HTMLElement) => void;
|
508
|
+
has: (dataType: string | HTMLElement) => boolean;
|
509
|
+
};
|
510
|
+
element: {
|
511
|
+
clean: (element: HTMLElement) => void;
|
512
|
+
add: (element: HTMLElement) => void;
|
513
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
514
|
+
createText: () => HTMLParagraphElement;
|
515
|
+
createTextNode: (data: any) => Text;
|
516
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
517
|
+
insert: {
|
518
|
+
text: (element: Node, text: string, offset: any) => void;
|
519
|
+
};
|
520
|
+
ids: {
|
521
|
+
unique: (element: HTMLElement) => void;
|
522
|
+
};
|
523
|
+
};
|
524
|
+
helpers: {
|
525
|
+
editor: {
|
526
|
+
ensure: {
|
527
|
+
uniqueIds: (element: HTMLElement, state: {
|
528
|
+
maxNodeId: number;
|
529
|
+
}) => HTMLElement;
|
530
|
+
selectionIsInEditor: (range: Range) => void;
|
531
|
+
};
|
532
|
+
cursor: {
|
533
|
+
storePosition: (state: {
|
534
|
+
selectedRange: Range;
|
535
|
+
}) => void;
|
536
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
537
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
538
|
+
};
|
539
|
+
};
|
540
|
+
editorNode: {
|
541
|
+
get: {
|
542
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
543
|
+
};
|
544
|
+
};
|
545
|
+
htmlNode: {
|
546
|
+
copy: {
|
547
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
548
|
+
};
|
549
|
+
insert: {
|
550
|
+
text: (element: Node, text: string, offset: any) => void;
|
551
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
552
|
+
};
|
553
|
+
get: {
|
554
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
555
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
556
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
557
|
+
};
|
558
|
+
remove: {
|
559
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
560
|
+
};
|
561
|
+
strip: {
|
562
|
+
after: (element: HTMLElement, splitter: string) => void;
|
563
|
+
before: (element: HTMLElement, splitter: string) => void;
|
564
|
+
};
|
565
|
+
surround: {
|
566
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
567
|
+
};
|
568
|
+
};
|
569
|
+
};
|
570
|
+
};
|
317
571
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
318
572
|
};
|
319
573
|
};
|
@@ -324,13 +578,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
324
578
|
content: {
|
325
579
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
326
580
|
};
|
327
|
-
|
328
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
329
|
-
};
|
330
|
-
setEditorContainer: {
|
331
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
332
|
-
};
|
333
|
-
focusEditor: {
|
581
|
+
set: {
|
334
582
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
335
583
|
};
|
336
584
|
toolbarAction: {
|
@@ -355,14 +603,18 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
355
603
|
};
|
356
604
|
};
|
357
605
|
content: () => {
|
606
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
358
607
|
set: {
|
359
608
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
360
609
|
byString: (content: string) => void;
|
361
610
|
};
|
362
611
|
};
|
363
|
-
|
364
|
-
|
365
|
-
|
612
|
+
set: () => {
|
613
|
+
mode: (editMode: boolean) => void;
|
614
|
+
container: (el: HTMLDivElement) => void;
|
615
|
+
focus: () => void;
|
616
|
+
placeHolderVisibility: () => void;
|
617
|
+
};
|
366
618
|
toolbarAction: () => {
|
367
619
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
368
620
|
};
|
@@ -380,6 +632,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
380
632
|
};
|
381
633
|
commands: () => {
|
382
634
|
exec: (command: string, data: object) => void;
|
635
|
+
builtIn: {
|
636
|
+
content: {
|
637
|
+
convert: (element: HTMLElement) => void;
|
638
|
+
};
|
639
|
+
ensure: {
|
640
|
+
lastElement: () => void;
|
641
|
+
unique: {
|
642
|
+
ids: (element: HTMLElement) => void;
|
643
|
+
};
|
644
|
+
};
|
645
|
+
selection: {
|
646
|
+
get: {
|
647
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
648
|
+
};
|
649
|
+
};
|
650
|
+
cursor: {
|
651
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
652
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
653
|
+
};
|
654
|
+
actions: {
|
655
|
+
setSelection: () => void;
|
656
|
+
};
|
657
|
+
formatting: {
|
658
|
+
add: (element: HTMLElement) => void;
|
659
|
+
remove: (dataType: string | HTMLElement) => void;
|
660
|
+
has: (dataType: string | HTMLElement) => boolean;
|
661
|
+
};
|
662
|
+
element: {
|
663
|
+
clean: (element: HTMLElement) => void;
|
664
|
+
add: (element: HTMLElement) => void;
|
665
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
666
|
+
createText: () => HTMLParagraphElement;
|
667
|
+
createTextNode: (data: any) => Text;
|
668
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
669
|
+
insert: {
|
670
|
+
text: (element: Node, text: string, offset: any) => void;
|
671
|
+
};
|
672
|
+
ids: {
|
673
|
+
unique: (element: HTMLElement) => void;
|
674
|
+
};
|
675
|
+
};
|
676
|
+
helpers: {
|
677
|
+
editor: {
|
678
|
+
ensure: {
|
679
|
+
uniqueIds: (element: HTMLElement, state: {
|
680
|
+
maxNodeId: number;
|
681
|
+
}) => HTMLElement;
|
682
|
+
selectionIsInEditor: (range: Range) => void;
|
683
|
+
};
|
684
|
+
cursor: {
|
685
|
+
storePosition: (state: {
|
686
|
+
selectedRange: Range;
|
687
|
+
}) => void;
|
688
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
689
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
690
|
+
};
|
691
|
+
};
|
692
|
+
editorNode: {
|
693
|
+
get: {
|
694
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
695
|
+
};
|
696
|
+
};
|
697
|
+
htmlNode: {
|
698
|
+
copy: {
|
699
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
700
|
+
};
|
701
|
+
insert: {
|
702
|
+
text: (element: Node, text: string, offset: any) => void;
|
703
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
704
|
+
};
|
705
|
+
get: {
|
706
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
707
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
708
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
709
|
+
};
|
710
|
+
remove: {
|
711
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
712
|
+
};
|
713
|
+
strip: {
|
714
|
+
after: (element: HTMLElement, splitter: string) => void;
|
715
|
+
before: (element: HTMLElement, splitter: string) => void;
|
716
|
+
};
|
717
|
+
surround: {
|
718
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
719
|
+
};
|
720
|
+
};
|
721
|
+
};
|
722
|
+
};
|
383
723
|
};
|
384
724
|
};
|
385
725
|
get: {
|
@@ -391,10 +731,10 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
391
731
|
};
|
392
732
|
selection: {
|
393
733
|
has: {
|
394
|
-
|
734
|
+
type: (pluginType: string) => boolean;
|
395
735
|
};
|
396
736
|
get: {
|
397
|
-
|
737
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
398
738
|
};
|
399
739
|
};
|
400
740
|
};
|
@@ -426,6 +766,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
426
766
|
nodeSelection: import("../models/EditorModels").NodeSelection;
|
427
767
|
telePorts: JSX.Element[];
|
428
768
|
id: string;
|
769
|
+
pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
|
429
770
|
selectedRange: Range;
|
430
771
|
showPlaceHolder: boolean;
|
431
772
|
};
|
@@ -440,6 +781,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
440
781
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
441
782
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
442
783
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
784
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
|
443
785
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
444
786
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
445
787
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -451,13 +793,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
451
793
|
content: {
|
452
794
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
453
795
|
};
|
454
|
-
|
455
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
456
|
-
};
|
457
|
-
setEditorContainer: {
|
458
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
459
|
-
};
|
460
|
-
focusEditor: {
|
796
|
+
set: {
|
461
797
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
462
798
|
};
|
463
799
|
toolbarAction: {
|
@@ -485,20 +821,20 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
485
821
|
};
|
486
822
|
content: {
|
487
823
|
subscribe(fn: (result: {
|
824
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
488
825
|
set: {
|
489
826
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
490
827
|
byString: (content: string) => void;
|
491
828
|
};
|
492
829
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
493
830
|
};
|
494
|
-
|
495
|
-
subscribe(fn: (result:
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
831
|
+
set: {
|
832
|
+
subscribe(fn: (result: {
|
833
|
+
mode: (editMode: boolean) => void;
|
834
|
+
container: (el: HTMLDivElement) => void;
|
835
|
+
focus: () => void;
|
836
|
+
placeHolderVisibility: () => void;
|
837
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
502
838
|
};
|
503
839
|
toolbarAction: {
|
504
840
|
subscribe(fn: (result: {
|
@@ -524,6 +860,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
524
860
|
commands: {
|
525
861
|
subscribe(fn: (result: {
|
526
862
|
exec: (command: string, data: object) => void;
|
863
|
+
builtIn: {
|
864
|
+
content: {
|
865
|
+
convert: (element: HTMLElement) => void;
|
866
|
+
};
|
867
|
+
ensure: {
|
868
|
+
lastElement: () => void;
|
869
|
+
unique: {
|
870
|
+
ids: (element: HTMLElement) => void;
|
871
|
+
};
|
872
|
+
};
|
873
|
+
selection: {
|
874
|
+
get: {
|
875
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
876
|
+
};
|
877
|
+
};
|
878
|
+
cursor: {
|
879
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
880
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
881
|
+
};
|
882
|
+
actions: {
|
883
|
+
setSelection: () => void;
|
884
|
+
};
|
885
|
+
formatting: {
|
886
|
+
add: (element: HTMLElement) => void;
|
887
|
+
remove: (dataType: string | HTMLElement) => void;
|
888
|
+
has: (dataType: string | HTMLElement) => boolean;
|
889
|
+
};
|
890
|
+
element: {
|
891
|
+
clean: (element: HTMLElement) => void;
|
892
|
+
add: (element: HTMLElement) => void;
|
893
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
894
|
+
createText: () => HTMLParagraphElement;
|
895
|
+
createTextNode: (data: any) => Text;
|
896
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
897
|
+
insert: {
|
898
|
+
text: (element: Node, text: string, offset: any) => void;
|
899
|
+
};
|
900
|
+
ids: {
|
901
|
+
unique: (element: HTMLElement) => void;
|
902
|
+
};
|
903
|
+
};
|
904
|
+
helpers: {
|
905
|
+
editor: {
|
906
|
+
ensure: {
|
907
|
+
uniqueIds: (element: HTMLElement, state: {
|
908
|
+
maxNodeId: number;
|
909
|
+
}) => HTMLElement;
|
910
|
+
selectionIsInEditor: (range: Range) => void;
|
911
|
+
};
|
912
|
+
cursor: {
|
913
|
+
storePosition: (state: {
|
914
|
+
selectedRange: Range;
|
915
|
+
}) => void;
|
916
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
917
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
918
|
+
};
|
919
|
+
};
|
920
|
+
editorNode: {
|
921
|
+
get: {
|
922
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
923
|
+
};
|
924
|
+
};
|
925
|
+
htmlNode: {
|
926
|
+
copy: {
|
927
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
928
|
+
};
|
929
|
+
insert: {
|
930
|
+
text: (element: Node, text: string, offset: any) => void;
|
931
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
932
|
+
};
|
933
|
+
get: {
|
934
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
935
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
936
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
937
|
+
};
|
938
|
+
remove: {
|
939
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
940
|
+
};
|
941
|
+
strip: {
|
942
|
+
after: (element: HTMLElement, splitter: string) => void;
|
943
|
+
before: (element: HTMLElement, splitter: string) => void;
|
944
|
+
};
|
945
|
+
surround: {
|
946
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
947
|
+
};
|
948
|
+
};
|
949
|
+
};
|
950
|
+
};
|
527
951
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
528
952
|
};
|
529
953
|
};
|
@@ -534,13 +958,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
534
958
|
content: {
|
535
959
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
536
960
|
};
|
537
|
-
|
538
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
539
|
-
};
|
540
|
-
setEditorContainer: {
|
541
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
542
|
-
};
|
543
|
-
focusEditor: {
|
961
|
+
set: {
|
544
962
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
545
963
|
};
|
546
964
|
toolbarAction: {
|
@@ -565,14 +983,18 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
565
983
|
};
|
566
984
|
};
|
567
985
|
content: () => {
|
986
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
568
987
|
set: {
|
569
988
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
570
989
|
byString: (content: string) => void;
|
571
990
|
};
|
572
991
|
};
|
573
|
-
|
574
|
-
|
575
|
-
|
992
|
+
set: () => {
|
993
|
+
mode: (editMode: boolean) => void;
|
994
|
+
container: (el: HTMLDivElement) => void;
|
995
|
+
focus: () => void;
|
996
|
+
placeHolderVisibility: () => void;
|
997
|
+
};
|
576
998
|
toolbarAction: () => {
|
577
999
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
578
1000
|
};
|
@@ -590,6 +1012,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
590
1012
|
};
|
591
1013
|
commands: () => {
|
592
1014
|
exec: (command: string, data: object) => void;
|
1015
|
+
builtIn: {
|
1016
|
+
content: {
|
1017
|
+
convert: (element: HTMLElement) => void;
|
1018
|
+
};
|
1019
|
+
ensure: {
|
1020
|
+
lastElement: () => void;
|
1021
|
+
unique: {
|
1022
|
+
ids: (element: HTMLElement) => void;
|
1023
|
+
};
|
1024
|
+
};
|
1025
|
+
selection: {
|
1026
|
+
get: {
|
1027
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1028
|
+
};
|
1029
|
+
};
|
1030
|
+
cursor: {
|
1031
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1032
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1033
|
+
};
|
1034
|
+
actions: {
|
1035
|
+
setSelection: () => void;
|
1036
|
+
};
|
1037
|
+
formatting: {
|
1038
|
+
add: (element: HTMLElement) => void;
|
1039
|
+
remove: (dataType: string | HTMLElement) => void;
|
1040
|
+
has: (dataType: string | HTMLElement) => boolean;
|
1041
|
+
};
|
1042
|
+
element: {
|
1043
|
+
clean: (element: HTMLElement) => void;
|
1044
|
+
add: (element: HTMLElement) => void;
|
1045
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1046
|
+
createText: () => HTMLParagraphElement;
|
1047
|
+
createTextNode: (data: any) => Text;
|
1048
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
1049
|
+
insert: {
|
1050
|
+
text: (element: Node, text: string, offset: any) => void;
|
1051
|
+
};
|
1052
|
+
ids: {
|
1053
|
+
unique: (element: HTMLElement) => void;
|
1054
|
+
};
|
1055
|
+
};
|
1056
|
+
helpers: {
|
1057
|
+
editor: {
|
1058
|
+
ensure: {
|
1059
|
+
uniqueIds: (element: HTMLElement, state: {
|
1060
|
+
maxNodeId: number;
|
1061
|
+
}) => HTMLElement;
|
1062
|
+
selectionIsInEditor: (range: Range) => void;
|
1063
|
+
};
|
1064
|
+
cursor: {
|
1065
|
+
storePosition: (state: {
|
1066
|
+
selectedRange: Range;
|
1067
|
+
}) => void;
|
1068
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1069
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1070
|
+
};
|
1071
|
+
};
|
1072
|
+
editorNode: {
|
1073
|
+
get: {
|
1074
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
1075
|
+
};
|
1076
|
+
};
|
1077
|
+
htmlNode: {
|
1078
|
+
copy: {
|
1079
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
1080
|
+
};
|
1081
|
+
insert: {
|
1082
|
+
text: (element: Node, text: string, offset: any) => void;
|
1083
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
1084
|
+
};
|
1085
|
+
get: {
|
1086
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
1087
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
1088
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
1089
|
+
};
|
1090
|
+
remove: {
|
1091
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
1092
|
+
};
|
1093
|
+
strip: {
|
1094
|
+
after: (element: HTMLElement, splitter: string) => void;
|
1095
|
+
before: (element: HTMLElement, splitter: string) => void;
|
1096
|
+
};
|
1097
|
+
surround: {
|
1098
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
1099
|
+
};
|
1100
|
+
};
|
1101
|
+
};
|
1102
|
+
};
|
593
1103
|
};
|
594
1104
|
};
|
595
1105
|
get: {
|
@@ -601,10 +1111,10 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
601
1111
|
};
|
602
1112
|
selection: {
|
603
1113
|
has: {
|
604
|
-
|
1114
|
+
type: (pluginType: string) => boolean;
|
605
1115
|
};
|
606
1116
|
get: {
|
607
|
-
|
1117
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
608
1118
|
};
|
609
1119
|
};
|
610
1120
|
};
|
@@ -636,6 +1146,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
636
1146
|
nodeSelection: import("../models/EditorModels").NodeSelection;
|
637
1147
|
telePorts: JSX.Element[];
|
638
1148
|
id: string;
|
1149
|
+
pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
|
639
1150
|
selectedRange: Range;
|
640
1151
|
showPlaceHolder: boolean;
|
641
1152
|
};
|
@@ -650,6 +1161,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
650
1161
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
651
1162
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
652
1163
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
1164
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
|
653
1165
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
654
1166
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
655
1167
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -661,13 +1173,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
661
1173
|
content: {
|
662
1174
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
663
1175
|
};
|
664
|
-
|
665
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
666
|
-
};
|
667
|
-
setEditorContainer: {
|
668
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
669
|
-
};
|
670
|
-
focusEditor: {
|
1176
|
+
set: {
|
671
1177
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
672
1178
|
};
|
673
1179
|
toolbarAction: {
|
@@ -695,20 +1201,20 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
695
1201
|
};
|
696
1202
|
content: {
|
697
1203
|
subscribe(fn: (result: {
|
1204
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
698
1205
|
set: {
|
699
1206
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
700
1207
|
byString: (content: string) => void;
|
701
1208
|
};
|
702
1209
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
703
1210
|
};
|
704
|
-
|
705
|
-
subscribe(fn: (result:
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
1211
|
+
set: {
|
1212
|
+
subscribe(fn: (result: {
|
1213
|
+
mode: (editMode: boolean) => void;
|
1214
|
+
container: (el: HTMLDivElement) => void;
|
1215
|
+
focus: () => void;
|
1216
|
+
placeHolderVisibility: () => void;
|
1217
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
712
1218
|
};
|
713
1219
|
toolbarAction: {
|
714
1220
|
subscribe(fn: (result: {
|
@@ -734,6 +1240,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
734
1240
|
commands: {
|
735
1241
|
subscribe(fn: (result: {
|
736
1242
|
exec: (command: string, data: object) => void;
|
1243
|
+
builtIn: {
|
1244
|
+
content: {
|
1245
|
+
convert: (element: HTMLElement) => void;
|
1246
|
+
};
|
1247
|
+
ensure: {
|
1248
|
+
lastElement: () => void;
|
1249
|
+
unique: {
|
1250
|
+
ids: (element: HTMLElement) => void;
|
1251
|
+
};
|
1252
|
+
};
|
1253
|
+
selection: {
|
1254
|
+
get: {
|
1255
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1256
|
+
};
|
1257
|
+
};
|
1258
|
+
cursor: {
|
1259
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1260
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1261
|
+
};
|
1262
|
+
actions: {
|
1263
|
+
setSelection: () => void;
|
1264
|
+
};
|
1265
|
+
formatting: {
|
1266
|
+
add: (element: HTMLElement) => void;
|
1267
|
+
remove: (dataType: string | HTMLElement) => void;
|
1268
|
+
has: (dataType: string | HTMLElement) => boolean;
|
1269
|
+
};
|
1270
|
+
element: {
|
1271
|
+
clean: (element: HTMLElement) => void;
|
1272
|
+
add: (element: HTMLElement) => void;
|
1273
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1274
|
+
createText: () => HTMLParagraphElement;
|
1275
|
+
createTextNode: (data: any) => Text;
|
1276
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
1277
|
+
insert: {
|
1278
|
+
text: (element: Node, text: string, offset: any) => void;
|
1279
|
+
};
|
1280
|
+
ids: {
|
1281
|
+
unique: (element: HTMLElement) => void;
|
1282
|
+
};
|
1283
|
+
};
|
1284
|
+
helpers: {
|
1285
|
+
editor: {
|
1286
|
+
ensure: {
|
1287
|
+
uniqueIds: (element: HTMLElement, state: {
|
1288
|
+
maxNodeId: number;
|
1289
|
+
}) => HTMLElement;
|
1290
|
+
selectionIsInEditor: (range: Range) => void;
|
1291
|
+
};
|
1292
|
+
cursor: {
|
1293
|
+
storePosition: (state: {
|
1294
|
+
selectedRange: Range;
|
1295
|
+
}) => void;
|
1296
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1297
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1298
|
+
};
|
1299
|
+
};
|
1300
|
+
editorNode: {
|
1301
|
+
get: {
|
1302
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
1303
|
+
};
|
1304
|
+
};
|
1305
|
+
htmlNode: {
|
1306
|
+
copy: {
|
1307
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
1308
|
+
};
|
1309
|
+
insert: {
|
1310
|
+
text: (element: Node, text: string, offset: any) => void;
|
1311
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
1312
|
+
};
|
1313
|
+
get: {
|
1314
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
1315
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
1316
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
1317
|
+
};
|
1318
|
+
remove: {
|
1319
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
1320
|
+
};
|
1321
|
+
strip: {
|
1322
|
+
after: (element: HTMLElement, splitter: string) => void;
|
1323
|
+
before: (element: HTMLElement, splitter: string) => void;
|
1324
|
+
};
|
1325
|
+
surround: {
|
1326
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
1327
|
+
};
|
1328
|
+
};
|
1329
|
+
};
|
1330
|
+
};
|
737
1331
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
738
1332
|
};
|
739
1333
|
};
|
@@ -744,13 +1338,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
744
1338
|
content: {
|
745
1339
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
746
1340
|
};
|
747
|
-
|
748
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
749
|
-
};
|
750
|
-
setEditorContainer: {
|
751
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
752
|
-
};
|
753
|
-
focusEditor: {
|
1341
|
+
set: {
|
754
1342
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
755
1343
|
};
|
756
1344
|
toolbarAction: {
|
@@ -775,14 +1363,18 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
775
1363
|
};
|
776
1364
|
};
|
777
1365
|
content: () => {
|
1366
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
778
1367
|
set: {
|
779
1368
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
780
1369
|
byString: (content: string) => void;
|
781
1370
|
};
|
782
1371
|
};
|
783
|
-
|
784
|
-
|
785
|
-
|
1372
|
+
set: () => {
|
1373
|
+
mode: (editMode: boolean) => void;
|
1374
|
+
container: (el: HTMLDivElement) => void;
|
1375
|
+
focus: () => void;
|
1376
|
+
placeHolderVisibility: () => void;
|
1377
|
+
};
|
786
1378
|
toolbarAction: () => {
|
787
1379
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
788
1380
|
};
|
@@ -800,6 +1392,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
800
1392
|
};
|
801
1393
|
commands: () => {
|
802
1394
|
exec: (command: string, data: object) => void;
|
1395
|
+
builtIn: {
|
1396
|
+
content: {
|
1397
|
+
convert: (element: HTMLElement) => void;
|
1398
|
+
};
|
1399
|
+
ensure: {
|
1400
|
+
lastElement: () => void;
|
1401
|
+
unique: {
|
1402
|
+
ids: (element: HTMLElement) => void;
|
1403
|
+
};
|
1404
|
+
};
|
1405
|
+
selection: {
|
1406
|
+
get: {
|
1407
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1408
|
+
};
|
1409
|
+
};
|
1410
|
+
cursor: {
|
1411
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1412
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1413
|
+
};
|
1414
|
+
actions: {
|
1415
|
+
setSelection: () => void;
|
1416
|
+
};
|
1417
|
+
formatting: {
|
1418
|
+
add: (element: HTMLElement) => void;
|
1419
|
+
remove: (dataType: string | HTMLElement) => void;
|
1420
|
+
has: (dataType: string | HTMLElement) => boolean;
|
1421
|
+
};
|
1422
|
+
element: {
|
1423
|
+
clean: (element: HTMLElement) => void;
|
1424
|
+
add: (element: HTMLElement) => void;
|
1425
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1426
|
+
createText: () => HTMLParagraphElement;
|
1427
|
+
createTextNode: (data: any) => Text;
|
1428
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
1429
|
+
insert: {
|
1430
|
+
text: (element: Node, text: string, offset: any) => void;
|
1431
|
+
};
|
1432
|
+
ids: {
|
1433
|
+
unique: (element: HTMLElement) => void;
|
1434
|
+
};
|
1435
|
+
};
|
1436
|
+
helpers: {
|
1437
|
+
editor: {
|
1438
|
+
ensure: {
|
1439
|
+
uniqueIds: (element: HTMLElement, state: {
|
1440
|
+
maxNodeId: number;
|
1441
|
+
}) => HTMLElement;
|
1442
|
+
selectionIsInEditor: (range: Range) => void;
|
1443
|
+
};
|
1444
|
+
cursor: {
|
1445
|
+
storePosition: (state: {
|
1446
|
+
selectedRange: Range;
|
1447
|
+
}) => void;
|
1448
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1449
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1450
|
+
};
|
1451
|
+
};
|
1452
|
+
editorNode: {
|
1453
|
+
get: {
|
1454
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
1455
|
+
};
|
1456
|
+
};
|
1457
|
+
htmlNode: {
|
1458
|
+
copy: {
|
1459
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
1460
|
+
};
|
1461
|
+
insert: {
|
1462
|
+
text: (element: Node, text: string, offset: any) => void;
|
1463
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
1464
|
+
};
|
1465
|
+
get: {
|
1466
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
1467
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
1468
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
1469
|
+
};
|
1470
|
+
remove: {
|
1471
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
1472
|
+
};
|
1473
|
+
strip: {
|
1474
|
+
after: (element: HTMLElement, splitter: string) => void;
|
1475
|
+
before: (element: HTMLElement, splitter: string) => void;
|
1476
|
+
};
|
1477
|
+
surround: {
|
1478
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
1479
|
+
};
|
1480
|
+
};
|
1481
|
+
};
|
1482
|
+
};
|
803
1483
|
};
|
804
1484
|
};
|
805
1485
|
get: {
|
@@ -811,10 +1491,10 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
811
1491
|
};
|
812
1492
|
selection: {
|
813
1493
|
has: {
|
814
|
-
|
1494
|
+
type: (pluginType: string) => boolean;
|
815
1495
|
};
|
816
1496
|
get: {
|
817
|
-
|
1497
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
818
1498
|
};
|
819
1499
|
};
|
820
1500
|
};
|
@@ -846,6 +1526,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
846
1526
|
nodeSelection: import("../models/EditorModels").NodeSelection;
|
847
1527
|
telePorts: JSX.Element[];
|
848
1528
|
id: string;
|
1529
|
+
pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
|
849
1530
|
selectedRange: Range;
|
850
1531
|
showPlaceHolder: boolean;
|
851
1532
|
};
|
@@ -860,6 +1541,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
860
1541
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
861
1542
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
862
1543
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
1544
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
|
863
1545
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
864
1546
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
865
1547
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -871,13 +1553,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
871
1553
|
content: {
|
872
1554
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
873
1555
|
};
|
874
|
-
|
875
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
876
|
-
};
|
877
|
-
setEditorContainer: {
|
878
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
879
|
-
};
|
880
|
-
focusEditor: {
|
1556
|
+
set: {
|
881
1557
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
882
1558
|
};
|
883
1559
|
toolbarAction: {
|
@@ -905,20 +1581,20 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
905
1581
|
};
|
906
1582
|
content: {
|
907
1583
|
subscribe(fn: (result: {
|
1584
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
908
1585
|
set: {
|
909
1586
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
910
1587
|
byString: (content: string) => void;
|
911
1588
|
};
|
912
1589
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
913
1590
|
};
|
914
|
-
|
915
|
-
subscribe(fn: (result:
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
1591
|
+
set: {
|
1592
|
+
subscribe(fn: (result: {
|
1593
|
+
mode: (editMode: boolean) => void;
|
1594
|
+
container: (el: HTMLDivElement) => void;
|
1595
|
+
focus: () => void;
|
1596
|
+
placeHolderVisibility: () => void;
|
1597
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
922
1598
|
};
|
923
1599
|
toolbarAction: {
|
924
1600
|
subscribe(fn: (result: {
|
@@ -944,6 +1620,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
944
1620
|
commands: {
|
945
1621
|
subscribe(fn: (result: {
|
946
1622
|
exec: (command: string, data: object) => void;
|
1623
|
+
builtIn: {
|
1624
|
+
content: {
|
1625
|
+
convert: (element: HTMLElement) => void;
|
1626
|
+
};
|
1627
|
+
ensure: {
|
1628
|
+
lastElement: () => void;
|
1629
|
+
unique: {
|
1630
|
+
ids: (element: HTMLElement) => void;
|
1631
|
+
};
|
1632
|
+
};
|
1633
|
+
selection: {
|
1634
|
+
get: {
|
1635
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1636
|
+
};
|
1637
|
+
};
|
1638
|
+
cursor: {
|
1639
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1640
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1641
|
+
};
|
1642
|
+
actions: {
|
1643
|
+
setSelection: () => void;
|
1644
|
+
};
|
1645
|
+
formatting: {
|
1646
|
+
add: (element: HTMLElement) => void;
|
1647
|
+
remove: (dataType: string | HTMLElement) => void;
|
1648
|
+
has: (dataType: string | HTMLElement) => boolean;
|
1649
|
+
};
|
1650
|
+
element: {
|
1651
|
+
clean: (element: HTMLElement) => void;
|
1652
|
+
add: (element: HTMLElement) => void;
|
1653
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1654
|
+
createText: () => HTMLParagraphElement;
|
1655
|
+
createTextNode: (data: any) => Text;
|
1656
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
1657
|
+
insert: {
|
1658
|
+
text: (element: Node, text: string, offset: any) => void;
|
1659
|
+
};
|
1660
|
+
ids: {
|
1661
|
+
unique: (element: HTMLElement) => void;
|
1662
|
+
};
|
1663
|
+
};
|
1664
|
+
helpers: {
|
1665
|
+
editor: {
|
1666
|
+
ensure: {
|
1667
|
+
uniqueIds: (element: HTMLElement, state: {
|
1668
|
+
maxNodeId: number;
|
1669
|
+
}) => HTMLElement;
|
1670
|
+
selectionIsInEditor: (range: Range) => void;
|
1671
|
+
};
|
1672
|
+
cursor: {
|
1673
|
+
storePosition: (state: {
|
1674
|
+
selectedRange: Range;
|
1675
|
+
}) => void;
|
1676
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1677
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1678
|
+
};
|
1679
|
+
};
|
1680
|
+
editorNode: {
|
1681
|
+
get: {
|
1682
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
1683
|
+
};
|
1684
|
+
};
|
1685
|
+
htmlNode: {
|
1686
|
+
copy: {
|
1687
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
1688
|
+
};
|
1689
|
+
insert: {
|
1690
|
+
text: (element: Node, text: string, offset: any) => void;
|
1691
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
1692
|
+
};
|
1693
|
+
get: {
|
1694
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
1695
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
1696
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
1697
|
+
};
|
1698
|
+
remove: {
|
1699
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
1700
|
+
};
|
1701
|
+
strip: {
|
1702
|
+
after: (element: HTMLElement, splitter: string) => void;
|
1703
|
+
before: (element: HTMLElement, splitter: string) => void;
|
1704
|
+
};
|
1705
|
+
surround: {
|
1706
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
1707
|
+
};
|
1708
|
+
};
|
1709
|
+
};
|
1710
|
+
};
|
947
1711
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
948
1712
|
};
|
949
1713
|
};
|
@@ -954,13 +1718,7 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
954
1718
|
content: {
|
955
1719
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
956
1720
|
};
|
957
|
-
|
958
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
959
|
-
};
|
960
|
-
setEditorContainer: {
|
961
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
962
|
-
};
|
963
|
-
focusEditor: {
|
1721
|
+
set: {
|
964
1722
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
965
1723
|
};
|
966
1724
|
toolbarAction: {
|
@@ -985,14 +1743,18 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
985
1743
|
};
|
986
1744
|
};
|
987
1745
|
content: () => {
|
1746
|
+
sync: () => import("../models/EditorModels").FlowContent;
|
988
1747
|
set: {
|
989
1748
|
byJSON: (content: import("../models/EditorModels").FlowContent) => void;
|
990
1749
|
byString: (content: string) => void;
|
991
1750
|
};
|
992
1751
|
};
|
993
|
-
|
994
|
-
|
995
|
-
|
1752
|
+
set: () => {
|
1753
|
+
mode: (editMode: boolean) => void;
|
1754
|
+
container: (el: HTMLDivElement) => void;
|
1755
|
+
focus: () => void;
|
1756
|
+
placeHolderVisibility: () => void;
|
1757
|
+
};
|
996
1758
|
toolbarAction: () => {
|
997
1759
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
998
1760
|
};
|
@@ -1010,6 +1772,94 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
1010
1772
|
};
|
1011
1773
|
commands: () => {
|
1012
1774
|
exec: (command: string, data: object) => void;
|
1775
|
+
builtIn: {
|
1776
|
+
content: {
|
1777
|
+
convert: (element: HTMLElement) => void;
|
1778
|
+
};
|
1779
|
+
ensure: {
|
1780
|
+
lastElement: () => void;
|
1781
|
+
unique: {
|
1782
|
+
ids: (element: HTMLElement) => void;
|
1783
|
+
};
|
1784
|
+
};
|
1785
|
+
selection: {
|
1786
|
+
get: {
|
1787
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1788
|
+
};
|
1789
|
+
};
|
1790
|
+
cursor: {
|
1791
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1792
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1793
|
+
};
|
1794
|
+
actions: {
|
1795
|
+
setSelection: () => void;
|
1796
|
+
};
|
1797
|
+
formatting: {
|
1798
|
+
add: (element: HTMLElement) => void;
|
1799
|
+
remove: (dataType: string | HTMLElement) => void;
|
1800
|
+
has: (dataType: string | HTMLElement) => boolean;
|
1801
|
+
};
|
1802
|
+
element: {
|
1803
|
+
clean: (element: HTMLElement) => void;
|
1804
|
+
add: (element: HTMLElement) => void;
|
1805
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1806
|
+
createText: () => HTMLParagraphElement;
|
1807
|
+
createTextNode: (data: any) => Text;
|
1808
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
1809
|
+
insert: {
|
1810
|
+
text: (element: Node, text: string, offset: any) => void;
|
1811
|
+
};
|
1812
|
+
ids: {
|
1813
|
+
unique: (element: HTMLElement) => void;
|
1814
|
+
};
|
1815
|
+
};
|
1816
|
+
helpers: {
|
1817
|
+
editor: {
|
1818
|
+
ensure: {
|
1819
|
+
uniqueIds: (element: HTMLElement, state: {
|
1820
|
+
maxNodeId: number;
|
1821
|
+
}) => HTMLElement;
|
1822
|
+
selectionIsInEditor: (range: Range) => void;
|
1823
|
+
};
|
1824
|
+
cursor: {
|
1825
|
+
storePosition: (state: {
|
1826
|
+
selectedRange: Range;
|
1827
|
+
}) => void;
|
1828
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
1829
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
1830
|
+
};
|
1831
|
+
};
|
1832
|
+
editorNode: {
|
1833
|
+
get: {
|
1834
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
1835
|
+
};
|
1836
|
+
};
|
1837
|
+
htmlNode: {
|
1838
|
+
copy: {
|
1839
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
1840
|
+
};
|
1841
|
+
insert: {
|
1842
|
+
text: (element: Node, text: string, offset: any) => void;
|
1843
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
1844
|
+
};
|
1845
|
+
get: {
|
1846
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
1847
|
+
nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
|
1848
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
1849
|
+
};
|
1850
|
+
remove: {
|
1851
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
1852
|
+
};
|
1853
|
+
strip: {
|
1854
|
+
after: (element: HTMLElement, splitter: string) => void;
|
1855
|
+
before: (element: HTMLElement, splitter: string) => void;
|
1856
|
+
};
|
1857
|
+
surround: {
|
1858
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
1859
|
+
};
|
1860
|
+
};
|
1861
|
+
};
|
1862
|
+
};
|
1013
1863
|
};
|
1014
1864
|
};
|
1015
1865
|
get: {
|
@@ -1021,10 +1871,10 @@ export declare const useFlowEditorToolbarStore: () => {
|
|
1021
1871
|
};
|
1022
1872
|
selection: {
|
1023
1873
|
has: {
|
1024
|
-
|
1874
|
+
type: (pluginType: string) => boolean;
|
1025
1875
|
};
|
1026
1876
|
get: {
|
1027
|
-
|
1877
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
1028
1878
|
};
|
1029
1879
|
};
|
1030
1880
|
};
|