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