@omnia/fx 8.0.262-dev → 8.0.264-dev
Sign up to get free protection for your applications and to get access to all the features.
- package/internal-do-not-import-from-here/manifests/omnia.vendor.manifest.json +1 -1
- package/internal-do-not-import-from-here/ux/ComponentTypings.d.ts +7 -1
- package/internal-do-not-import-from-here/ux/admin/systemlayout/store/SystemLayoutStore.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/app/management/api/AppManagementApi.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/appprovisioning/appinstanceeditingjourney/EditProperiesBlade.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontPicker.css.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontPicker.d.ts +12 -8
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/components/FontRegistration.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/store/TypographyEditorStore.d.ts +41 -16
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/FontManager.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/blade/FontDefinitionBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/store/FontManagerStore.d.ts +75 -0
- package/internal-do-not-import-from-here/ux/aurora/store/FontStore.d.ts +77 -0
- package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +114 -10
- package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +117 -11
- package/internal-do-not-import-from-here/ux/aurora/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerButton.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerField.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerInlineField.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/magiclink/Shared.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/magiclink/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.css.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +15 -23
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/EditorNodeHelper.d.ts +3 -10
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/HtmlNodehelper.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/markdown2/models/EditorModels.d.ts +15 -11
- package/internal-do-not-import-from-here/ux/markdown2/models/EditorPlugin.d.ts +6 -5
- package/internal-do-not-import-from-here/ux/markdown2/plugins/bold/BoldPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/colorstyle/ColorButton.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/italic/ItalicPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/text/TextPlugin.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/typography/TypographyButton.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/velcron/VelcronPlugin.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +29 -23
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +162 -110
- package/internal-do-not-import-from-here/ux/oxide/alert/Alert.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/appbar/Appbar.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/checkbox/Checkbox.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/colorpicker/ColorPicker.d.ts +3 -276
- package/internal-do-not-import-from-here/ux/oxide/datepicker/DatePicker.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +5 -444
- package/internal-do-not-import-from-here/ux/oxide/divider/Divider.d.ts +4 -99
- package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanel.d.ts +4 -194
- package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanels.d.ts +4 -206
- package/internal-do-not-import-from-here/ux/oxide/fab/FloatingActionButton..d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/form/Form.d.ts +3 -94
- package/internal-do-not-import-from-here/ux/oxide/hostprovider/HostProvider.d.ts +4 -78
- package/internal-do-not-import-from-here/ux/oxide/infinite-scroll/InfiniteScroll.d.ts +11 -184
- package/internal-do-not-import-from-here/ux/oxide/layout/Layout.d.ts +3 -94
- package/internal-do-not-import-from-here/ux/oxide/lazy/Lazy.d.ts +4 -85
- package/internal-do-not-import-from-here/ux/oxide/link/Link.d.ts +4 -199
- package/internal-do-not-import-from-here/ux/oxide/main/Main.d.ts +3 -133
- package/internal-do-not-import-from-here/ux/oxide/menu/Menu.d.ts +4 -355
- package/internal-do-not-import-from-here/ux/oxide/notification/Notification.d.ts +4 -161
- package/internal-do-not-import-from-here/ux/oxide/panel/Panel.d.ts +4 -238
- package/internal-do-not-import-from-here/ux/oxide/progress/Progress.d.ts +4 -76
- package/internal-do-not-import-from-here/ux/oxide/radio/Radio.d.ts +4 -138
- package/internal-do-not-import-from-here/ux/oxide/rating/Rating.d.ts +4 -272
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/ScrollContainer.d.ts +3 -203
- package/internal-do-not-import-from-here/ux/oxide/skeletonloader/SkeletonLoader.d.ts +3 -133
- package/internal-do-not-import-from-here/ux/oxide/slidepanel/Slide.d.ts +3 -37
- package/internal-do-not-import-from-here/ux/oxide/slidepanel/SlidePanel.d.ts +3 -267
- package/internal-do-not-import-from-here/ux/oxide/slider/Slider.d.ts +4 -349
- package/internal-do-not-import-from-here/ux/oxide/snackbar/Snackbar.d.ts +3 -154
- package/internal-do-not-import-from-here/ux/oxide/spacer/Spacer.d.ts +1 -15
- package/internal-do-not-import-from-here/ux/oxide/splitpane/Splitpane.d.ts +4 -149
- package/internal-do-not-import-from-here/ux/oxide/splitpane/SplitpaneItem.d.ts +3 -145
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/StickyContainer.d.ts +3 -71
- package/internal-do-not-import-from-here/ux/oxide/switch/Switch.d.ts +3 -254
- package/internal-do-not-import-from-here/ux/oxide/tab/Tab.d.ts +4 -245
- package/internal-do-not-import-from-here/ux/oxide/tab/Tabs.d.ts +4 -335
- package/internal-do-not-import-from-here/ux/oxide/table/Table.d.ts +3 -107
- package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.d.ts +4 -400
- package/internal-do-not-import-from-here/ux/oxide/textarea/docs/ExampleComponents.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/textarea/docs/SampleComponent.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/oxide/textarea/docs/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/toolbar/Toolbar.d.ts +4 -250
- package/internal-do-not-import-from-here/ux/oxide/tooltip/Tooltip.d.ts +3 -192
- package/internal-do-not-import-from-here/ux/oxide/validation/Validation.d.ts +4 -56
- package/internal-do-not-import-from-here/ux/social/PeopleTagging.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/use/UseClone.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/use/UseDraggable.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/use/UseMounted.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/use/UseWebNotification.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +10 -1
- package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/models/VelcronEditorDescriptors.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/templates/EditorTemplates.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/renderer/editors/PropertyResolverEditor.d.ts +13 -0
- package/internal-do-not-import-from-here/ux/versionedlayout/blade/VersionedLayoutBladeBuilder.d.ts +1 -1
- package/internal-do-not-import-from-here/wctypings.d.ts +20 -0
- package/package.json +3 -3
@@ -6,28 +6,30 @@ export declare const useMarkdownToolbarStore: () => {
|
|
6
6
|
state: {
|
7
7
|
editorContent: import("../models/EditorModels").EditorContent;
|
8
8
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
9
|
+
hideToolbar: boolean;
|
9
10
|
editMode: boolean;
|
10
11
|
maxNodeId: number;
|
11
12
|
toolbarActions: MarkdownEditorActionRegistration[];
|
12
13
|
editor: HTMLDivElement;
|
13
|
-
|
14
|
-
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
14
|
+
nodeSelection: import("../models/EditorModels").NodeSelection;
|
15
15
|
telePorts: JSX.Element[];
|
16
16
|
id: string;
|
17
17
|
selectedRange: Range;
|
18
|
+
showPlaceHolder: boolean;
|
18
19
|
};
|
19
20
|
events: {
|
20
21
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
21
22
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
23
|
+
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
22
24
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
23
25
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
24
26
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
25
27
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
26
|
-
|
27
|
-
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
28
|
+
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
28
29
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
29
30
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
30
31
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
32
|
+
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
31
33
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
32
34
|
actions: {
|
33
35
|
onDispatching: {
|
@@ -43,6 +45,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
43
45
|
setEditorContainer: {
|
44
46
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
45
47
|
};
|
48
|
+
focusEditor: {
|
49
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
50
|
+
};
|
46
51
|
toolbarAction: {
|
47
52
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
48
53
|
};
|
@@ -80,6 +85,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
80
85
|
setEditorContainer: {
|
81
86
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
82
87
|
};
|
88
|
+
focusEditor: {
|
89
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
90
|
+
};
|
83
91
|
toolbarAction: {
|
84
92
|
subscribe(fn: (result: {
|
85
93
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -87,9 +95,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
87
95
|
};
|
88
96
|
formatting: {
|
89
97
|
subscribe(fn: (result: {
|
90
|
-
add: (element: HTMLElement
|
91
|
-
toggle: (element: HTMLElement
|
92
|
-
remove: (
|
98
|
+
add: (element: HTMLElement) => void;
|
99
|
+
toggle: (element: HTMLElement) => void;
|
100
|
+
remove: (dataType: string) => void;
|
93
101
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
94
102
|
};
|
95
103
|
element: {
|
@@ -97,6 +105,7 @@ export declare const useMarkdownToolbarStore: () => {
|
|
97
105
|
createForComponent: (componentName: string) => HTMLDivElement;
|
98
106
|
createText: () => HTMLParagraphElement;
|
99
107
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
108
|
+
createTextNode: (data: any) => Text;
|
100
109
|
add: (element: HTMLElement) => void;
|
101
110
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
102
111
|
};
|
@@ -119,6 +128,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
119
128
|
setEditorContainer: {
|
120
129
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
121
130
|
};
|
131
|
+
focusEditor: {
|
132
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
133
|
+
};
|
122
134
|
toolbarAction: {
|
123
135
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
124
136
|
};
|
@@ -148,18 +160,20 @@ export declare const useMarkdownToolbarStore: () => {
|
|
148
160
|
};
|
149
161
|
setEditorMode: (editMode: boolean) => void;
|
150
162
|
setEditorContainer: (el: HTMLDivElement) => void;
|
163
|
+
focusEditor: () => void;
|
151
164
|
toolbarAction: () => {
|
152
165
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
153
166
|
};
|
154
167
|
formatting: () => {
|
155
|
-
add: (element: HTMLElement
|
156
|
-
toggle: (element: HTMLElement
|
157
|
-
remove: (
|
168
|
+
add: (element: HTMLElement) => void;
|
169
|
+
toggle: (element: HTMLElement) => void;
|
170
|
+
remove: (dataType: string) => void;
|
158
171
|
};
|
159
172
|
element: () => {
|
160
173
|
createForComponent: (componentName: string) => HTMLDivElement;
|
161
174
|
createText: () => HTMLParagraphElement;
|
162
175
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
176
|
+
createTextNode: (data: any) => Text;
|
163
177
|
add: (element: HTMLElement) => void;
|
164
178
|
};
|
165
179
|
commands: () => {
|
@@ -168,25 +182,17 @@ export declare const useMarkdownToolbarStore: () => {
|
|
168
182
|
};
|
169
183
|
get: {
|
170
184
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
185
|
+
hasContent: () => boolean;
|
171
186
|
content: {
|
172
|
-
asJSON: (
|
173
|
-
asString: (
|
187
|
+
asJSON: () => import("../models/EditorModels").EditorContent;
|
188
|
+
asString: () => string;
|
174
189
|
};
|
175
190
|
selection: {
|
176
191
|
has: {
|
177
192
|
dataType: (dataType: string) => boolean;
|
178
|
-
nodeName: (name: string) => boolean;
|
179
|
-
id: (id: number) => boolean;
|
180
193
|
};
|
181
194
|
get: {
|
182
|
-
byDataType: (dataType: string) => import("../models/EditorModels").
|
183
|
-
byNodeName: (name: string) => import("../models/EditorModels").EditorNode;
|
184
|
-
byId: (id: number) => import("../models/EditorModels").EditorNode;
|
185
|
-
bySelectors(selectors: {
|
186
|
-
name?: string;
|
187
|
-
id?: string;
|
188
|
-
dataType?: string;
|
189
|
-
}): import("../models/EditorModels").EditorNode;
|
195
|
+
byDataType: (dataType: string) => import("../models/EditorModels").ContentNodeReference[];
|
190
196
|
};
|
191
197
|
};
|
192
198
|
};
|
@@ -195,34 +201,37 @@ export declare const useMarkdownToolbarStore: () => {
|
|
195
201
|
};
|
196
202
|
show: boolean;
|
197
203
|
actions: MarkdownEditorActionRegistration[];
|
204
|
+
customActionRenderer: () => JSX.Element;
|
198
205
|
};
|
199
206
|
events: {
|
200
207
|
onMutatedActiveEditorStore: import("@omnia/fx").MessageBusExposeOnlySubscription<{
|
201
208
|
state: {
|
202
209
|
editorContent: import("../models/EditorModels").EditorContent;
|
203
210
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
211
|
+
hideToolbar: boolean;
|
204
212
|
editMode: boolean;
|
205
213
|
maxNodeId: number;
|
206
214
|
toolbarActions: MarkdownEditorActionRegistration[];
|
207
215
|
editor: HTMLDivElement;
|
208
|
-
|
209
|
-
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
216
|
+
nodeSelection: import("../models/EditorModels").NodeSelection;
|
210
217
|
telePorts: JSX.Element[];
|
211
218
|
id: string;
|
212
219
|
selectedRange: Range;
|
220
|
+
showPlaceHolder: boolean;
|
213
221
|
};
|
214
222
|
events: {
|
215
223
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
216
224
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
225
|
+
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
217
226
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
218
227
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
219
228
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
220
229
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
221
|
-
|
222
|
-
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
230
|
+
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
223
231
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
224
232
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
225
233
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
234
|
+
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
226
235
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
227
236
|
actions: {
|
228
237
|
onDispatching: {
|
@@ -238,6 +247,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
238
247
|
setEditorContainer: {
|
239
248
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
240
249
|
};
|
250
|
+
focusEditor: {
|
251
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
252
|
+
};
|
241
253
|
toolbarAction: {
|
242
254
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
243
255
|
};
|
@@ -275,6 +287,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
275
287
|
setEditorContainer: {
|
276
288
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
277
289
|
};
|
290
|
+
focusEditor: {
|
291
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
292
|
+
};
|
278
293
|
toolbarAction: {
|
279
294
|
subscribe(fn: (result: {
|
280
295
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -282,9 +297,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
282
297
|
};
|
283
298
|
formatting: {
|
284
299
|
subscribe(fn: (result: {
|
285
|
-
add: (element: HTMLElement
|
286
|
-
toggle: (element: HTMLElement
|
287
|
-
remove: (
|
300
|
+
add: (element: HTMLElement) => void;
|
301
|
+
toggle: (element: HTMLElement) => void;
|
302
|
+
remove: (dataType: string) => void;
|
288
303
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
289
304
|
};
|
290
305
|
element: {
|
@@ -292,6 +307,7 @@ export declare const useMarkdownToolbarStore: () => {
|
|
292
307
|
createForComponent: (componentName: string) => HTMLDivElement;
|
293
308
|
createText: () => HTMLParagraphElement;
|
294
309
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
310
|
+
createTextNode: (data: any) => Text;
|
295
311
|
add: (element: HTMLElement) => void;
|
296
312
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
297
313
|
};
|
@@ -314,6 +330,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
314
330
|
setEditorContainer: {
|
315
331
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
316
332
|
};
|
333
|
+
focusEditor: {
|
334
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
335
|
+
};
|
317
336
|
toolbarAction: {
|
318
337
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
319
338
|
};
|
@@ -343,18 +362,20 @@ export declare const useMarkdownToolbarStore: () => {
|
|
343
362
|
};
|
344
363
|
setEditorMode: (editMode: boolean) => void;
|
345
364
|
setEditorContainer: (el: HTMLDivElement) => void;
|
365
|
+
focusEditor: () => void;
|
346
366
|
toolbarAction: () => {
|
347
367
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
348
368
|
};
|
349
369
|
formatting: () => {
|
350
|
-
add: (element: HTMLElement
|
351
|
-
toggle: (element: HTMLElement
|
352
|
-
remove: (
|
370
|
+
add: (element: HTMLElement) => void;
|
371
|
+
toggle: (element: HTMLElement) => void;
|
372
|
+
remove: (dataType: string) => void;
|
353
373
|
};
|
354
374
|
element: () => {
|
355
375
|
createForComponent: (componentName: string) => HTMLDivElement;
|
356
376
|
createText: () => HTMLParagraphElement;
|
357
377
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
378
|
+
createTextNode: (data: any) => Text;
|
358
379
|
add: (element: HTMLElement) => void;
|
359
380
|
};
|
360
381
|
commands: () => {
|
@@ -363,25 +384,17 @@ export declare const useMarkdownToolbarStore: () => {
|
|
363
384
|
};
|
364
385
|
get: {
|
365
386
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
387
|
+
hasContent: () => boolean;
|
366
388
|
content: {
|
367
|
-
asJSON: (
|
368
|
-
asString: (
|
389
|
+
asJSON: () => import("../models/EditorModels").EditorContent;
|
390
|
+
asString: () => string;
|
369
391
|
};
|
370
392
|
selection: {
|
371
393
|
has: {
|
372
394
|
dataType: (dataType: string) => boolean;
|
373
|
-
nodeName: (name: string) => boolean;
|
374
|
-
id: (id: number) => boolean;
|
375
395
|
};
|
376
396
|
get: {
|
377
|
-
byDataType: (dataType: string) => import("../models/EditorModels").
|
378
|
-
byNodeName: (name: string) => import("../models/EditorModels").EditorNode;
|
379
|
-
byId: (id: number) => import("../models/EditorModels").EditorNode;
|
380
|
-
bySelectors(selectors: {
|
381
|
-
name?: string;
|
382
|
-
id?: string;
|
383
|
-
dataType?: string;
|
384
|
-
}): import("../models/EditorModels").EditorNode;
|
397
|
+
byDataType: (dataType: string) => import("../models/EditorModels").ContentNodeReference[];
|
385
398
|
};
|
386
399
|
};
|
387
400
|
};
|
@@ -390,36 +403,45 @@ export declare const useMarkdownToolbarStore: () => {
|
|
390
403
|
}>;
|
391
404
|
onMutatedShow: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
392
405
|
onMutatedActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
406
|
+
onMutatedCustomActionRenderer: import("@omnia/fx").MessageBusExposeOnlySubscription<() => JSX.Element>;
|
393
407
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
394
408
|
actions: {
|
395
409
|
onDispatching: {
|
410
|
+
setCustomRenderer: {
|
411
|
+
subscribe(fn: (renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
412
|
+
};
|
413
|
+
removeAllActions: {
|
414
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
415
|
+
};
|
396
416
|
setActiveEditorStore: {
|
397
417
|
subscribe(fn: (store: {
|
398
418
|
state: {
|
399
419
|
editorContent: import("../models/EditorModels").EditorContent;
|
400
420
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
421
|
+
hideToolbar: boolean;
|
401
422
|
editMode: boolean;
|
402
423
|
maxNodeId: number;
|
403
424
|
toolbarActions: MarkdownEditorActionRegistration[];
|
404
425
|
editor: HTMLDivElement;
|
405
|
-
|
406
|
-
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
426
|
+
nodeSelection: import("../models/EditorModels").NodeSelection;
|
407
427
|
telePorts: JSX.Element[];
|
408
428
|
id: string;
|
409
429
|
selectedRange: Range;
|
430
|
+
showPlaceHolder: boolean;
|
410
431
|
};
|
411
432
|
events: {
|
412
433
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
413
434
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
435
|
+
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
414
436
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
415
437
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
416
438
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
417
439
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
418
|
-
|
419
|
-
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
440
|
+
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
420
441
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
421
442
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
422
443
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
444
|
+
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
423
445
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
424
446
|
actions: {
|
425
447
|
onDispatching: {
|
@@ -435,6 +457,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
435
457
|
setEditorContainer: {
|
436
458
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
437
459
|
};
|
460
|
+
focusEditor: {
|
461
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
462
|
+
};
|
438
463
|
toolbarAction: {
|
439
464
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
440
465
|
};
|
@@ -472,6 +497,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
472
497
|
setEditorContainer: {
|
473
498
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
474
499
|
};
|
500
|
+
focusEditor: {
|
501
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
502
|
+
};
|
475
503
|
toolbarAction: {
|
476
504
|
subscribe(fn: (result: {
|
477
505
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -479,9 +507,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
479
507
|
};
|
480
508
|
formatting: {
|
481
509
|
subscribe(fn: (result: {
|
482
|
-
add: (element: HTMLElement
|
483
|
-
toggle: (element: HTMLElement
|
484
|
-
remove: (
|
510
|
+
add: (element: HTMLElement) => void;
|
511
|
+
toggle: (element: HTMLElement) => void;
|
512
|
+
remove: (dataType: string) => void;
|
485
513
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
486
514
|
};
|
487
515
|
element: {
|
@@ -489,6 +517,7 @@ export declare const useMarkdownToolbarStore: () => {
|
|
489
517
|
createForComponent: (componentName: string) => HTMLDivElement;
|
490
518
|
createText: () => HTMLParagraphElement;
|
491
519
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
520
|
+
createTextNode: (data: any) => Text;
|
492
521
|
add: (element: HTMLElement) => void;
|
493
522
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
494
523
|
};
|
@@ -511,6 +540,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
511
540
|
setEditorContainer: {
|
512
541
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
513
542
|
};
|
543
|
+
focusEditor: {
|
544
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
545
|
+
};
|
514
546
|
toolbarAction: {
|
515
547
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
516
548
|
};
|
@@ -540,18 +572,20 @@ export declare const useMarkdownToolbarStore: () => {
|
|
540
572
|
};
|
541
573
|
setEditorMode: (editMode: boolean) => void;
|
542
574
|
setEditorContainer: (el: HTMLDivElement) => void;
|
575
|
+
focusEditor: () => void;
|
543
576
|
toolbarAction: () => {
|
544
577
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
545
578
|
};
|
546
579
|
formatting: () => {
|
547
|
-
add: (element: HTMLElement
|
548
|
-
toggle: (element: HTMLElement
|
549
|
-
remove: (
|
580
|
+
add: (element: HTMLElement) => void;
|
581
|
+
toggle: (element: HTMLElement) => void;
|
582
|
+
remove: (dataType: string) => void;
|
550
583
|
};
|
551
584
|
element: () => {
|
552
585
|
createForComponent: (componentName: string) => HTMLDivElement;
|
553
586
|
createText: () => HTMLParagraphElement;
|
554
587
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
588
|
+
createTextNode: (data: any) => Text;
|
555
589
|
add: (element: HTMLElement) => void;
|
556
590
|
};
|
557
591
|
commands: () => {
|
@@ -560,25 +594,17 @@ export declare const useMarkdownToolbarStore: () => {
|
|
560
594
|
};
|
561
595
|
get: {
|
562
596
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
597
|
+
hasContent: () => boolean;
|
563
598
|
content: {
|
564
|
-
asJSON: (
|
565
|
-
asString: (
|
599
|
+
asJSON: () => import("../models/EditorModels").EditorContent;
|
600
|
+
asString: () => string;
|
566
601
|
};
|
567
602
|
selection: {
|
568
603
|
has: {
|
569
604
|
dataType: (dataType: string) => boolean;
|
570
|
-
nodeName: (name: string) => boolean;
|
571
|
-
id: (id: number) => boolean;
|
572
605
|
};
|
573
606
|
get: {
|
574
|
-
byDataType: (dataType: string) => import("../models/EditorModels").
|
575
|
-
byNodeName: (name: string) => import("../models/EditorModels").EditorNode;
|
576
|
-
byId: (id: number) => import("../models/EditorModels").EditorNode;
|
577
|
-
bySelectors(selectors: {
|
578
|
-
name?: string;
|
579
|
-
id?: string;
|
580
|
-
dataType?: string;
|
581
|
-
}): import("../models/EditorModels").EditorNode;
|
607
|
+
byDataType: (dataType: string) => import("../models/EditorModels").ContentNodeReference[];
|
582
608
|
};
|
583
609
|
};
|
584
610
|
};
|
@@ -591,33 +617,41 @@ export declare const useMarkdownToolbarStore: () => {
|
|
591
617
|
};
|
592
618
|
};
|
593
619
|
onDispatched: {
|
620
|
+
setCustomRenderer: {
|
621
|
+
subscribe(fn: (result: void, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
622
|
+
};
|
623
|
+
removeAllActions: {
|
624
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
625
|
+
};
|
594
626
|
setActiveEditorStore: {
|
595
627
|
subscribe(fn: (result: void, store: {
|
596
628
|
state: {
|
597
629
|
editorContent: import("../models/EditorModels").EditorContent;
|
598
630
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
631
|
+
hideToolbar: boolean;
|
599
632
|
editMode: boolean;
|
600
633
|
maxNodeId: number;
|
601
634
|
toolbarActions: MarkdownEditorActionRegistration[];
|
602
635
|
editor: HTMLDivElement;
|
603
|
-
|
604
|
-
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
636
|
+
nodeSelection: import("../models/EditorModels").NodeSelection;
|
605
637
|
telePorts: JSX.Element[];
|
606
638
|
id: string;
|
607
639
|
selectedRange: Range;
|
640
|
+
showPlaceHolder: boolean;
|
608
641
|
};
|
609
642
|
events: {
|
610
643
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
611
644
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
645
|
+
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
612
646
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
613
647
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
614
648
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
615
649
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
616
|
-
|
617
|
-
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
650
|
+
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
618
651
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
619
652
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
620
653
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
654
|
+
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
621
655
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
622
656
|
actions: {
|
623
657
|
onDispatching: {
|
@@ -633,6 +667,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
633
667
|
setEditorContainer: {
|
634
668
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
635
669
|
};
|
670
|
+
focusEditor: {
|
671
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
672
|
+
};
|
636
673
|
toolbarAction: {
|
637
674
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
638
675
|
};
|
@@ -670,6 +707,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
670
707
|
setEditorContainer: {
|
671
708
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
672
709
|
};
|
710
|
+
focusEditor: {
|
711
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
712
|
+
};
|
673
713
|
toolbarAction: {
|
674
714
|
subscribe(fn: (result: {
|
675
715
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -677,9 +717,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
677
717
|
};
|
678
718
|
formatting: {
|
679
719
|
subscribe(fn: (result: {
|
680
|
-
add: (element: HTMLElement
|
681
|
-
toggle: (element: HTMLElement
|
682
|
-
remove: (
|
720
|
+
add: (element: HTMLElement) => void;
|
721
|
+
toggle: (element: HTMLElement) => void;
|
722
|
+
remove: (dataType: string) => void;
|
683
723
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
684
724
|
};
|
685
725
|
element: {
|
@@ -687,6 +727,7 @@ export declare const useMarkdownToolbarStore: () => {
|
|
687
727
|
createForComponent: (componentName: string) => HTMLDivElement;
|
688
728
|
createText: () => HTMLParagraphElement;
|
689
729
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
730
|
+
createTextNode: (data: any) => Text;
|
690
731
|
add: (element: HTMLElement) => void;
|
691
732
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
692
733
|
};
|
@@ -709,6 +750,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
709
750
|
setEditorContainer: {
|
710
751
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
711
752
|
};
|
753
|
+
focusEditor: {
|
754
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
755
|
+
};
|
712
756
|
toolbarAction: {
|
713
757
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
714
758
|
};
|
@@ -738,18 +782,20 @@ export declare const useMarkdownToolbarStore: () => {
|
|
738
782
|
};
|
739
783
|
setEditorMode: (editMode: boolean) => void;
|
740
784
|
setEditorContainer: (el: HTMLDivElement) => void;
|
785
|
+
focusEditor: () => void;
|
741
786
|
toolbarAction: () => {
|
742
787
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
743
788
|
};
|
744
789
|
formatting: () => {
|
745
|
-
add: (element: HTMLElement
|
746
|
-
toggle: (element: HTMLElement
|
747
|
-
remove: (
|
790
|
+
add: (element: HTMLElement) => void;
|
791
|
+
toggle: (element: HTMLElement) => void;
|
792
|
+
remove: (dataType: string) => void;
|
748
793
|
};
|
749
794
|
element: () => {
|
750
795
|
createForComponent: (componentName: string) => HTMLDivElement;
|
751
796
|
createText: () => HTMLParagraphElement;
|
752
797
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
798
|
+
createTextNode: (data: any) => Text;
|
753
799
|
add: (element: HTMLElement) => void;
|
754
800
|
};
|
755
801
|
commands: () => {
|
@@ -758,25 +804,17 @@ export declare const useMarkdownToolbarStore: () => {
|
|
758
804
|
};
|
759
805
|
get: {
|
760
806
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
807
|
+
hasContent: () => boolean;
|
761
808
|
content: {
|
762
|
-
asJSON: (
|
763
|
-
asString: (
|
809
|
+
asJSON: () => import("../models/EditorModels").EditorContent;
|
810
|
+
asString: () => string;
|
764
811
|
};
|
765
812
|
selection: {
|
766
813
|
has: {
|
767
814
|
dataType: (dataType: string) => boolean;
|
768
|
-
nodeName: (name: string) => boolean;
|
769
|
-
id: (id: number) => boolean;
|
770
815
|
};
|
771
816
|
get: {
|
772
|
-
byDataType: (dataType: string) => import("../models/EditorModels").
|
773
|
-
byNodeName: (name: string) => import("../models/EditorModels").EditorNode;
|
774
|
-
byId: (id: number) => import("../models/EditorModels").EditorNode;
|
775
|
-
bySelectors(selectors: {
|
776
|
-
name?: string;
|
777
|
-
id?: string;
|
778
|
-
dataType?: string;
|
779
|
-
}): import("../models/EditorModels").EditorNode;
|
817
|
+
byDataType: (dataType: string) => import("../models/EditorModels").ContentNodeReference[];
|
780
818
|
};
|
781
819
|
};
|
782
820
|
};
|
@@ -789,33 +827,41 @@ export declare const useMarkdownToolbarStore: () => {
|
|
789
827
|
};
|
790
828
|
};
|
791
829
|
onFailure: {
|
830
|
+
setCustomRenderer: {
|
831
|
+
subscribe(fn: (failureReason: any, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
832
|
+
};
|
833
|
+
removeAllActions: {
|
834
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
835
|
+
};
|
792
836
|
setActiveEditorStore: {
|
793
837
|
subscribe(fn: (failureReason: any, store: {
|
794
838
|
state: {
|
795
839
|
editorContent: import("../models/EditorModels").EditorContent;
|
796
840
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
841
|
+
hideToolbar: boolean;
|
797
842
|
editMode: boolean;
|
798
843
|
maxNodeId: number;
|
799
844
|
toolbarActions: MarkdownEditorActionRegistration[];
|
800
845
|
editor: HTMLDivElement;
|
801
|
-
|
802
|
-
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
846
|
+
nodeSelection: import("../models/EditorModels").NodeSelection;
|
803
847
|
telePorts: JSX.Element[];
|
804
848
|
id: string;
|
805
849
|
selectedRange: Range;
|
850
|
+
showPlaceHolder: boolean;
|
806
851
|
};
|
807
852
|
events: {
|
808
853
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
809
854
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
855
|
+
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
810
856
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
811
857
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
812
858
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
813
859
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
814
|
-
|
815
|
-
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
860
|
+
onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
|
816
861
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
817
862
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
818
863
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
864
|
+
onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
819
865
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
820
866
|
actions: {
|
821
867
|
onDispatching: {
|
@@ -831,6 +877,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
831
877
|
setEditorContainer: {
|
832
878
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
833
879
|
};
|
880
|
+
focusEditor: {
|
881
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
882
|
+
};
|
834
883
|
toolbarAction: {
|
835
884
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
836
885
|
};
|
@@ -868,6 +917,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
868
917
|
setEditorContainer: {
|
869
918
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
870
919
|
};
|
920
|
+
focusEditor: {
|
921
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
922
|
+
};
|
871
923
|
toolbarAction: {
|
872
924
|
subscribe(fn: (result: {
|
873
925
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -875,9 +927,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
875
927
|
};
|
876
928
|
formatting: {
|
877
929
|
subscribe(fn: (result: {
|
878
|
-
add: (element: HTMLElement
|
879
|
-
toggle: (element: HTMLElement
|
880
|
-
remove: (
|
930
|
+
add: (element: HTMLElement) => void;
|
931
|
+
toggle: (element: HTMLElement) => void;
|
932
|
+
remove: (dataType: string) => void;
|
881
933
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
882
934
|
};
|
883
935
|
element: {
|
@@ -885,6 +937,7 @@ export declare const useMarkdownToolbarStore: () => {
|
|
885
937
|
createForComponent: (componentName: string) => HTMLDivElement;
|
886
938
|
createText: () => HTMLParagraphElement;
|
887
939
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
940
|
+
createTextNode: (data: any) => Text;
|
888
941
|
add: (element: HTMLElement) => void;
|
889
942
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
890
943
|
};
|
@@ -907,6 +960,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
907
960
|
setEditorContainer: {
|
908
961
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
909
962
|
};
|
963
|
+
focusEditor: {
|
964
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
965
|
+
};
|
910
966
|
toolbarAction: {
|
911
967
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
912
968
|
};
|
@@ -936,18 +992,20 @@ export declare const useMarkdownToolbarStore: () => {
|
|
936
992
|
};
|
937
993
|
setEditorMode: (editMode: boolean) => void;
|
938
994
|
setEditorContainer: (el: HTMLDivElement) => void;
|
995
|
+
focusEditor: () => void;
|
939
996
|
toolbarAction: () => {
|
940
997
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
941
998
|
};
|
942
999
|
formatting: () => {
|
943
|
-
add: (element: HTMLElement
|
944
|
-
toggle: (element: HTMLElement
|
945
|
-
remove: (
|
1000
|
+
add: (element: HTMLElement) => void;
|
1001
|
+
toggle: (element: HTMLElement) => void;
|
1002
|
+
remove: (dataType: string) => void;
|
946
1003
|
};
|
947
1004
|
element: () => {
|
948
1005
|
createForComponent: (componentName: string) => HTMLDivElement;
|
949
1006
|
createText: () => HTMLParagraphElement;
|
950
1007
|
create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
|
1008
|
+
createTextNode: (data: any) => Text;
|
951
1009
|
add: (element: HTMLElement) => void;
|
952
1010
|
};
|
953
1011
|
commands: () => {
|
@@ -956,25 +1014,17 @@ export declare const useMarkdownToolbarStore: () => {
|
|
956
1014
|
};
|
957
1015
|
get: {
|
958
1016
|
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
1017
|
+
hasContent: () => boolean;
|
959
1018
|
content: {
|
960
|
-
asJSON: (
|
961
|
-
asString: (
|
1019
|
+
asJSON: () => import("../models/EditorModels").EditorContent;
|
1020
|
+
asString: () => string;
|
962
1021
|
};
|
963
1022
|
selection: {
|
964
1023
|
has: {
|
965
1024
|
dataType: (dataType: string) => boolean;
|
966
|
-
nodeName: (name: string) => boolean;
|
967
|
-
id: (id: number) => boolean;
|
968
1025
|
};
|
969
1026
|
get: {
|
970
|
-
byDataType: (dataType: string) => import("../models/EditorModels").
|
971
|
-
byNodeName: (name: string) => import("../models/EditorModels").EditorNode;
|
972
|
-
byId: (id: number) => import("../models/EditorModels").EditorNode;
|
973
|
-
bySelectors(selectors: {
|
974
|
-
name?: string;
|
975
|
-
id?: string;
|
976
|
-
dataType?: string;
|
977
|
-
}): import("../models/EditorModels").EditorNode;
|
1027
|
+
byDataType: (dataType: string) => import("../models/EditorModels").ContentNodeReference[];
|
978
1028
|
};
|
979
1029
|
};
|
980
1030
|
};
|
@@ -987,6 +1037,8 @@ export declare const useMarkdownToolbarStore: () => {
|
|
987
1037
|
};
|
988
1038
|
};
|
989
1039
|
} & {
|
1040
|
+
setCustomRenderer: (renderer: () => JSX.Element) => void;
|
1041
|
+
removeAllActions: () => void;
|
990
1042
|
setActiveEditorStore: (store: ReturnType<typeof useMarkdownStore>) => void;
|
991
1043
|
setVisibility: (show: boolean) => void;
|
992
1044
|
};
|