@omnia/fx 8.0.265-dev → 8.0.267-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/admin/businessprofile/manageprofiles/BusinessProfileJourneyStore.d.ts +12 -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
@@ -5,8 +5,13 @@ import { useFlowEditorToolbarStore } from "../stores/FlowEditorToolbarStore";
|
|
5
5
|
export interface FlowEditorPlugin {
|
6
6
|
name: string;
|
7
7
|
commands?: object;
|
8
|
+
eventListeners?: Array<FlowEditorEventListener>;
|
8
9
|
actions?: Array<FlowEditorActionRegistration>;
|
9
10
|
}
|
11
|
+
export interface FlowEditorEventListener {
|
12
|
+
event?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap>;
|
13
|
+
action: (event: Event, context: FlowEditorPluginContext) => void;
|
14
|
+
}
|
10
15
|
export interface FlowRenderingContext {
|
11
16
|
parentElement: HTMLElement;
|
12
17
|
}
|
@@ -19,9 +24,14 @@ export interface FlowToJsonContext {
|
|
19
24
|
element: HTMLElement;
|
20
25
|
parent: FlowNode;
|
21
26
|
}
|
27
|
+
export interface ElementConverter {
|
28
|
+
canConvert: (el: HTMLElement) => boolean;
|
29
|
+
convert: (el: HTMLElement, pluginContext: FlowEditorPluginContext) => HTMLElement;
|
30
|
+
}
|
22
31
|
export interface FlowEditorContentPlugin extends FlowEditorPlugin {
|
23
32
|
toJSON: (context: FlowToJsonContext) => FlowNode;
|
24
33
|
toHtml: (context: FlowToHtmlContext) => HTMLElement;
|
34
|
+
elementConverter?: ElementConverter;
|
25
35
|
}
|
26
36
|
export interface FlowEditorPluginContext {
|
27
37
|
componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
|
@@ -13,6 +13,7 @@ export declare const useFlowEditorStore: () => {
|
|
13
13
|
nodeSelection: NodeSelection;
|
14
14
|
telePorts: JSX.Element[];
|
15
15
|
id: string;
|
16
|
+
pluginContext: FlowEditorPluginContext;
|
16
17
|
selectedRange: Range;
|
17
18
|
showPlaceHolder: boolean;
|
18
19
|
};
|
@@ -27,6 +28,7 @@ export declare const useFlowEditorStore: () => {
|
|
27
28
|
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<NodeSelection>;
|
28
29
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
29
30
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
31
|
+
onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
|
30
32
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
31
33
|
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
32
34
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
@@ -38,13 +40,7 @@ export declare const useFlowEditorStore: () => {
|
|
38
40
|
content: {
|
39
41
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
40
42
|
};
|
41
|
-
|
42
|
-
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
43
|
-
};
|
44
|
-
setEditorContainer: {
|
45
|
-
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
46
|
-
};
|
47
|
-
focusEditor: {
|
43
|
+
set: {
|
48
44
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
49
45
|
};
|
50
46
|
toolbarAction: {
|
@@ -72,20 +68,20 @@ export declare const useFlowEditorStore: () => {
|
|
72
68
|
};
|
73
69
|
content: {
|
74
70
|
subscribe(fn: (result: {
|
71
|
+
sync: () => FlowContent;
|
75
72
|
set: {
|
76
73
|
byJSON: (content: FlowContent) => void;
|
77
74
|
byString: (content: string) => void;
|
78
75
|
};
|
79
76
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
80
77
|
};
|
81
|
-
|
82
|
-
subscribe(fn: (result:
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
78
|
+
set: {
|
79
|
+
subscribe(fn: (result: {
|
80
|
+
mode: (editMode: boolean) => void;
|
81
|
+
container: (el: HTMLDivElement) => void;
|
82
|
+
focus: () => void;
|
83
|
+
placeHolderVisibility: () => void;
|
84
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
89
85
|
};
|
90
86
|
toolbarAction: {
|
91
87
|
subscribe(fn: (result: {
|
@@ -111,6 +107,94 @@ export declare const useFlowEditorStore: () => {
|
|
111
107
|
commands: {
|
112
108
|
subscribe(fn: (result: {
|
113
109
|
exec: (command: string, data: object) => void;
|
110
|
+
builtIn: {
|
111
|
+
content: {
|
112
|
+
convert: (element: HTMLElement) => void;
|
113
|
+
};
|
114
|
+
ensure: {
|
115
|
+
lastElement: () => void;
|
116
|
+
unique: {
|
117
|
+
ids: (element: HTMLElement) => void;
|
118
|
+
};
|
119
|
+
};
|
120
|
+
selection: {
|
121
|
+
get: {
|
122
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
123
|
+
};
|
124
|
+
};
|
125
|
+
cursor: {
|
126
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
127
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
128
|
+
};
|
129
|
+
actions: {
|
130
|
+
setSelection: () => void;
|
131
|
+
};
|
132
|
+
formatting: {
|
133
|
+
add: (element: HTMLElement) => void;
|
134
|
+
remove: (dataType: string | HTMLElement) => void;
|
135
|
+
has: (dataType: string | HTMLElement) => boolean;
|
136
|
+
};
|
137
|
+
element: {
|
138
|
+
clean: (element: HTMLElement) => void;
|
139
|
+
add: (element: HTMLElement) => void;
|
140
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
141
|
+
createText: () => HTMLParagraphElement;
|
142
|
+
createTextNode: (data: any) => Text;
|
143
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
144
|
+
insert: {
|
145
|
+
text: (element: Node, text: string, offset: any) => void;
|
146
|
+
};
|
147
|
+
ids: {
|
148
|
+
unique: (element: HTMLElement) => void;
|
149
|
+
};
|
150
|
+
};
|
151
|
+
helpers: {
|
152
|
+
editor: {
|
153
|
+
ensure: {
|
154
|
+
uniqueIds: (element: HTMLElement, state: {
|
155
|
+
maxNodeId: number;
|
156
|
+
}) => HTMLElement;
|
157
|
+
selectionIsInEditor: (range: Range) => void;
|
158
|
+
};
|
159
|
+
cursor: {
|
160
|
+
storePosition: (state: {
|
161
|
+
selectedRange: Range;
|
162
|
+
}) => void;
|
163
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
164
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
165
|
+
};
|
166
|
+
};
|
167
|
+
editorNode: {
|
168
|
+
get: {
|
169
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
170
|
+
};
|
171
|
+
};
|
172
|
+
htmlNode: {
|
173
|
+
copy: {
|
174
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
175
|
+
};
|
176
|
+
insert: {
|
177
|
+
text: (element: Node, text: string, offset: any) => void;
|
178
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
179
|
+
};
|
180
|
+
get: {
|
181
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
182
|
+
nodeSelectionForRange: (range: Range) => NodeSelection;
|
183
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
184
|
+
};
|
185
|
+
remove: {
|
186
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
187
|
+
};
|
188
|
+
strip: {
|
189
|
+
after: (element: HTMLElement, splitter: string) => void;
|
190
|
+
before: (element: HTMLElement, splitter: string) => void;
|
191
|
+
};
|
192
|
+
surround: {
|
193
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
194
|
+
};
|
195
|
+
};
|
196
|
+
};
|
197
|
+
};
|
114
198
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
115
199
|
};
|
116
200
|
};
|
@@ -121,13 +205,7 @@ export declare const useFlowEditorStore: () => {
|
|
121
205
|
content: {
|
122
206
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
123
207
|
};
|
124
|
-
|
125
|
-
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
126
|
-
};
|
127
|
-
setEditorContainer: {
|
128
|
-
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
129
|
-
};
|
130
|
-
focusEditor: {
|
208
|
+
set: {
|
131
209
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
132
210
|
};
|
133
211
|
toolbarAction: {
|
@@ -152,14 +230,18 @@ export declare const useFlowEditorStore: () => {
|
|
152
230
|
};
|
153
231
|
};
|
154
232
|
content: () => {
|
233
|
+
sync: () => FlowContent;
|
155
234
|
set: {
|
156
235
|
byJSON: (content: FlowContent) => void;
|
157
236
|
byString: (content: string) => void;
|
158
237
|
};
|
159
238
|
};
|
160
|
-
|
161
|
-
|
162
|
-
|
239
|
+
set: () => {
|
240
|
+
mode: (editMode: boolean) => void;
|
241
|
+
container: (el: HTMLDivElement) => void;
|
242
|
+
focus: () => void;
|
243
|
+
placeHolderVisibility: () => void;
|
244
|
+
};
|
163
245
|
toolbarAction: () => {
|
164
246
|
add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
|
165
247
|
};
|
@@ -177,6 +259,94 @@ export declare const useFlowEditorStore: () => {
|
|
177
259
|
};
|
178
260
|
commands: () => {
|
179
261
|
exec: (command: string, data: object) => void;
|
262
|
+
builtIn: {
|
263
|
+
content: {
|
264
|
+
convert: (element: HTMLElement) => void;
|
265
|
+
};
|
266
|
+
ensure: {
|
267
|
+
lastElement: () => void;
|
268
|
+
unique: {
|
269
|
+
ids: (element: HTMLElement) => void;
|
270
|
+
};
|
271
|
+
};
|
272
|
+
selection: {
|
273
|
+
get: {
|
274
|
+
byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
275
|
+
};
|
276
|
+
};
|
277
|
+
cursor: {
|
278
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
279
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
280
|
+
};
|
281
|
+
actions: {
|
282
|
+
setSelection: () => void;
|
283
|
+
};
|
284
|
+
formatting: {
|
285
|
+
add: (element: HTMLElement) => void;
|
286
|
+
remove: (dataType: string | HTMLElement) => void;
|
287
|
+
has: (dataType: string | HTMLElement) => boolean;
|
288
|
+
};
|
289
|
+
element: {
|
290
|
+
clean: (element: HTMLElement) => void;
|
291
|
+
add: (element: HTMLElement) => void;
|
292
|
+
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
293
|
+
createText: () => HTMLParagraphElement;
|
294
|
+
createTextNode: (data: any) => Text;
|
295
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
296
|
+
insert: {
|
297
|
+
text: (element: Node, text: string, offset: any) => void;
|
298
|
+
};
|
299
|
+
ids: {
|
300
|
+
unique: (element: HTMLElement) => void;
|
301
|
+
};
|
302
|
+
};
|
303
|
+
helpers: {
|
304
|
+
editor: {
|
305
|
+
ensure: {
|
306
|
+
uniqueIds: (element: HTMLElement, state: {
|
307
|
+
maxNodeId: number;
|
308
|
+
}) => HTMLElement;
|
309
|
+
selectionIsInEditor: (range: Range) => void;
|
310
|
+
};
|
311
|
+
cursor: {
|
312
|
+
storePosition: (state: {
|
313
|
+
selectedRange: Range;
|
314
|
+
}) => void;
|
315
|
+
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
316
|
+
isBeforeContent: (range: Range, container: HTMLElement) => boolean;
|
317
|
+
};
|
318
|
+
};
|
319
|
+
editorNode: {
|
320
|
+
get: {
|
321
|
+
nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
|
322
|
+
};
|
323
|
+
};
|
324
|
+
htmlNode: {
|
325
|
+
copy: {
|
326
|
+
children: (from: HTMLElement, to: HTMLElement) => void;
|
327
|
+
};
|
328
|
+
insert: {
|
329
|
+
text: (element: Node, text: string, offset: any) => void;
|
330
|
+
elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
|
331
|
+
};
|
332
|
+
get: {
|
333
|
+
topContainerForContent: (element: HTMLElement) => HTMLElement;
|
334
|
+
nodeSelectionForRange: (range: Range) => NodeSelection;
|
335
|
+
htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
|
336
|
+
};
|
337
|
+
remove: {
|
338
|
+
nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
|
339
|
+
};
|
340
|
+
strip: {
|
341
|
+
after: (element: HTMLElement, splitter: string) => void;
|
342
|
+
before: (element: HTMLElement, splitter: string) => void;
|
343
|
+
};
|
344
|
+
surround: {
|
345
|
+
selectionWithElement: (element: HTMLElement, range: Range) => void;
|
346
|
+
};
|
347
|
+
};
|
348
|
+
};
|
349
|
+
};
|
180
350
|
};
|
181
351
|
};
|
182
352
|
get: {
|
@@ -188,10 +358,10 @@ export declare const useFlowEditorStore: () => {
|
|
188
358
|
};
|
189
359
|
selection: {
|
190
360
|
has: {
|
191
|
-
|
361
|
+
type: (pluginType: string) => boolean;
|
192
362
|
};
|
193
363
|
get: {
|
194
|
-
|
364
|
+
byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
|
195
365
|
};
|
196
366
|
};
|
197
367
|
};
|