@omnia/fx 8.0.239-dev → 8.0.241-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/manifests/omnia.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.fx.ux.manifest.json +1 -1
- package/internal-do-not-import-from-here/stores/markdown/{MarkdownStateStore.d.ts → MarkdownToolbarStateStore.d.ts} +1 -10
- package/internal-do-not-import-from-here/stores/markdown/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/admin/recaptcha/ReCaptcha.d.ts +16 -13
- package/internal-do-not-import-from-here/ux/admin/usermanagement/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/AddPropertyBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/EditPropertyBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/SelfServiceStore.d.ts +18 -8
- package/internal-do-not-import-from-here/ux/app/apps/admin/AppDefinitionsListing.d.ts +56 -0
- package/internal-do-not-import-from-here/ux/app/apps/admin/AppsConstants.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/button/ButtonPresets.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/journey/DefineBlade.d.ts +7 -3
- package/internal-do-not-import-from-here/ux/journey/JourneyBlade.d.ts +3 -2
- package/internal-do-not-import-from-here/ux/journey/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/journey/stores/JourneyStore.d.ts +18 -6
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +12 -2
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.d.ts +3 -392
- package/internal-do-not-import-from-here/ux/markdown2/commands/ClipboardCommands.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +23 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Editorhelper.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Nodehelper.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownPlugin.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/ColorStylePlugin.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/TypographyPlugin.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/ColorButton.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/TypographyButton.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +28 -55
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +856 -21
- package/internal-do-not-import-from-here/ux/oxide/btn/Button.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTableServer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/list/ListItem.d.ts +5 -6
- package/internal-do-not-import-from-here/ux/oxide/rating/Rating.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/ScrollContainer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/store/ScrollContainerStore.d.ts +12 -2
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/StickyContainer.d.ts +74 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/StickyContainer.stylex.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/ExampleComponents.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/SampleComponent.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/store/StickyContainerStore.d.ts +45 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/tab/Tabs.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview.d.ts +2 -2
- package/internal-do-not-import-from-here/wctypings.d.ts +30 -17
- package/package.json +3 -3
- package/internal-do-not-import-from-here/ux/admin/businessprofile/manageprofiles/blades/HomeBlade_old.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/journey/use/UseBlade.d.ts +0 -79
- package/internal-do-not-import-from-here/ux/journey/use/index.d.ts +0 -1
@@ -1,47 +1,882 @@
|
|
1
|
-
import { MarkdownEditorActionRegistration
|
1
|
+
import { MarkdownEditorActionRegistration } from "@omnia/fx-models";
|
2
|
+
import { useMarkdownStore } from "./MarkdownStore";
|
2
3
|
export declare const useMarkdownToolbarStore: () => {
|
3
4
|
state: {
|
5
|
+
activeEditorStore: {
|
6
|
+
state: {
|
7
|
+
markdownContent: string;
|
8
|
+
editMode: boolean;
|
9
|
+
toolbarActions: MarkdownEditorActionRegistration[];
|
10
|
+
editor: HTMLDivElement;
|
11
|
+
telePorts: JSX.Element[];
|
12
|
+
id: string;
|
13
|
+
selectedRange: Range;
|
14
|
+
};
|
15
|
+
events: {
|
16
|
+
onMutatedMarkdownContent: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
17
|
+
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
18
|
+
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
19
|
+
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
20
|
+
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
21
|
+
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
22
|
+
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
23
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
24
|
+
actions: {
|
25
|
+
onDispatching: {
|
26
|
+
registerPlugin: {
|
27
|
+
subscribe(fn: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
28
|
+
};
|
29
|
+
toHtml: {
|
30
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
31
|
+
};
|
32
|
+
toMarkdown: {
|
33
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
34
|
+
};
|
35
|
+
setContent: {
|
36
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
37
|
+
};
|
38
|
+
setEditorMode: {
|
39
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
40
|
+
};
|
41
|
+
setEditorContainer: {
|
42
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
43
|
+
};
|
44
|
+
registerPluginContext: {
|
45
|
+
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
46
|
+
};
|
47
|
+
toolbarAction: {
|
48
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
49
|
+
};
|
50
|
+
formatting: {
|
51
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
52
|
+
};
|
53
|
+
element: {
|
54
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
55
|
+
};
|
56
|
+
commands: {
|
57
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
58
|
+
};
|
59
|
+
};
|
60
|
+
onDispatched: {
|
61
|
+
registerPlugin: {
|
62
|
+
subscribe(fn: (result: void, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
63
|
+
};
|
64
|
+
toHtml: {
|
65
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
66
|
+
};
|
67
|
+
toMarkdown: {
|
68
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
69
|
+
};
|
70
|
+
setContent: {
|
71
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
72
|
+
};
|
73
|
+
setEditorMode: {
|
74
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
75
|
+
};
|
76
|
+
setEditorContainer: {
|
77
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
78
|
+
};
|
79
|
+
registerPluginContext: {
|
80
|
+
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
81
|
+
};
|
82
|
+
toolbarAction: {
|
83
|
+
subscribe(fn: (result: {
|
84
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
85
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
86
|
+
};
|
87
|
+
formatting: {
|
88
|
+
subscribe(fn: (result: {
|
89
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
90
|
+
toggle: (element: HTMLElement) => void;
|
91
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
92
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
93
|
+
};
|
94
|
+
element: {
|
95
|
+
subscribe(fn: (result: {
|
96
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
97
|
+
createText: () => HTMLParagraphElement;
|
98
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
99
|
+
add: (element: HTMLElement) => void;
|
100
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
101
|
+
};
|
102
|
+
commands: {
|
103
|
+
subscribe(fn: (result: {
|
104
|
+
exec: (command: string, data: object) => void;
|
105
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
106
|
+
};
|
107
|
+
};
|
108
|
+
onFailure: {
|
109
|
+
registerPlugin: {
|
110
|
+
subscribe(fn: (failureReason: any, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
111
|
+
};
|
112
|
+
toHtml: {
|
113
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
114
|
+
};
|
115
|
+
toMarkdown: {
|
116
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
117
|
+
};
|
118
|
+
setContent: {
|
119
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
120
|
+
};
|
121
|
+
setEditorMode: {
|
122
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
123
|
+
};
|
124
|
+
setEditorContainer: {
|
125
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
126
|
+
};
|
127
|
+
registerPluginContext: {
|
128
|
+
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
129
|
+
};
|
130
|
+
toolbarAction: {
|
131
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
132
|
+
};
|
133
|
+
formatting: {
|
134
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
135
|
+
};
|
136
|
+
element: {
|
137
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
138
|
+
};
|
139
|
+
commands: {
|
140
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
141
|
+
};
|
142
|
+
};
|
143
|
+
} & {
|
144
|
+
registerPlugin: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void;
|
145
|
+
toHtml: (markdown: string) => string;
|
146
|
+
toMarkdown: () => void;
|
147
|
+
setContent: (markdown: string) => void;
|
148
|
+
setEditorMode: (editMode: boolean) => void;
|
149
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
150
|
+
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
151
|
+
toolbarAction: () => {
|
152
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
153
|
+
};
|
154
|
+
formatting: () => {
|
155
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
156
|
+
toggle: (element: HTMLElement) => void;
|
157
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
158
|
+
};
|
159
|
+
element: () => {
|
160
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
161
|
+
createText: () => HTMLParagraphElement;
|
162
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
163
|
+
add: (element: HTMLElement) => void;
|
164
|
+
};
|
165
|
+
commands: () => {
|
166
|
+
exec: (command: string, data: object) => void;
|
167
|
+
};
|
168
|
+
};
|
169
|
+
get: {
|
170
|
+
plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
|
171
|
+
};
|
172
|
+
};
|
4
173
|
show: boolean;
|
5
|
-
|
6
|
-
additionalActions: MarkdownEditorActionRegistration[];
|
7
|
-
toolbarOwnerId: guid;
|
174
|
+
actions: MarkdownEditorActionRegistration[];
|
8
175
|
};
|
9
176
|
events: {
|
177
|
+
onMutatedActiveEditorStore: import("@omnia/fx").MessageBusExposeOnlySubscription<{
|
178
|
+
state: {
|
179
|
+
markdownContent: string;
|
180
|
+
editMode: boolean;
|
181
|
+
toolbarActions: MarkdownEditorActionRegistration[];
|
182
|
+
editor: HTMLDivElement;
|
183
|
+
telePorts: JSX.Element[];
|
184
|
+
id: string;
|
185
|
+
selectedRange: Range;
|
186
|
+
};
|
187
|
+
events: {
|
188
|
+
onMutatedMarkdownContent: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
189
|
+
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
190
|
+
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
191
|
+
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
192
|
+
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
193
|
+
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
194
|
+
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
195
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
196
|
+
actions: {
|
197
|
+
onDispatching: {
|
198
|
+
registerPlugin: {
|
199
|
+
subscribe(fn: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
200
|
+
};
|
201
|
+
toHtml: {
|
202
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
203
|
+
};
|
204
|
+
toMarkdown: {
|
205
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
206
|
+
};
|
207
|
+
setContent: {
|
208
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
209
|
+
};
|
210
|
+
setEditorMode: {
|
211
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
212
|
+
};
|
213
|
+
setEditorContainer: {
|
214
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
215
|
+
};
|
216
|
+
registerPluginContext: {
|
217
|
+
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
218
|
+
};
|
219
|
+
toolbarAction: {
|
220
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
221
|
+
};
|
222
|
+
formatting: {
|
223
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
224
|
+
};
|
225
|
+
element: {
|
226
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
227
|
+
};
|
228
|
+
commands: {
|
229
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
230
|
+
};
|
231
|
+
};
|
232
|
+
onDispatched: {
|
233
|
+
registerPlugin: {
|
234
|
+
subscribe(fn: (result: void, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
235
|
+
};
|
236
|
+
toHtml: {
|
237
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
238
|
+
};
|
239
|
+
toMarkdown: {
|
240
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
241
|
+
};
|
242
|
+
setContent: {
|
243
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
244
|
+
};
|
245
|
+
setEditorMode: {
|
246
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
247
|
+
};
|
248
|
+
setEditorContainer: {
|
249
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
250
|
+
};
|
251
|
+
registerPluginContext: {
|
252
|
+
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
253
|
+
};
|
254
|
+
toolbarAction: {
|
255
|
+
subscribe(fn: (result: {
|
256
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
257
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
258
|
+
};
|
259
|
+
formatting: {
|
260
|
+
subscribe(fn: (result: {
|
261
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
262
|
+
toggle: (element: HTMLElement) => void;
|
263
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
264
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
265
|
+
};
|
266
|
+
element: {
|
267
|
+
subscribe(fn: (result: {
|
268
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
269
|
+
createText: () => HTMLParagraphElement;
|
270
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
271
|
+
add: (element: HTMLElement) => void;
|
272
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
273
|
+
};
|
274
|
+
commands: {
|
275
|
+
subscribe(fn: (result: {
|
276
|
+
exec: (command: string, data: object) => void;
|
277
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
278
|
+
};
|
279
|
+
};
|
280
|
+
onFailure: {
|
281
|
+
registerPlugin: {
|
282
|
+
subscribe(fn: (failureReason: any, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
283
|
+
};
|
284
|
+
toHtml: {
|
285
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
286
|
+
};
|
287
|
+
toMarkdown: {
|
288
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
289
|
+
};
|
290
|
+
setContent: {
|
291
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
292
|
+
};
|
293
|
+
setEditorMode: {
|
294
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
295
|
+
};
|
296
|
+
setEditorContainer: {
|
297
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
298
|
+
};
|
299
|
+
registerPluginContext: {
|
300
|
+
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
301
|
+
};
|
302
|
+
toolbarAction: {
|
303
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
304
|
+
};
|
305
|
+
formatting: {
|
306
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
307
|
+
};
|
308
|
+
element: {
|
309
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
310
|
+
};
|
311
|
+
commands: {
|
312
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
313
|
+
};
|
314
|
+
};
|
315
|
+
} & {
|
316
|
+
registerPlugin: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void;
|
317
|
+
toHtml: (markdown: string) => string;
|
318
|
+
toMarkdown: () => void;
|
319
|
+
setContent: (markdown: string) => void;
|
320
|
+
setEditorMode: (editMode: boolean) => void;
|
321
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
322
|
+
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
323
|
+
toolbarAction: () => {
|
324
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
325
|
+
};
|
326
|
+
formatting: () => {
|
327
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
328
|
+
toggle: (element: HTMLElement) => void;
|
329
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
330
|
+
};
|
331
|
+
element: () => {
|
332
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
333
|
+
createText: () => HTMLParagraphElement;
|
334
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
335
|
+
add: (element: HTMLElement) => void;
|
336
|
+
};
|
337
|
+
commands: () => {
|
338
|
+
exec: (command: string, data: object) => void;
|
339
|
+
};
|
340
|
+
};
|
341
|
+
get: {
|
342
|
+
plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
|
343
|
+
};
|
344
|
+
}>;
|
10
345
|
onMutatedShow: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
11
|
-
|
12
|
-
onMutatedAdditionalActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
13
|
-
onMutatedToolbarOwnerId: import("@omnia/fx").MessageBusExposeOnlySubscription<guid>;
|
346
|
+
onMutatedActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
14
347
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
15
348
|
actions: {
|
16
349
|
onDispatching: {
|
17
|
-
|
18
|
-
subscribe(fn: (
|
350
|
+
setActiveEditorStore: {
|
351
|
+
subscribe(fn: (store: {
|
352
|
+
state: {
|
353
|
+
markdownContent: string;
|
354
|
+
editMode: boolean;
|
355
|
+
toolbarActions: MarkdownEditorActionRegistration[];
|
356
|
+
editor: HTMLDivElement;
|
357
|
+
telePorts: JSX.Element[];
|
358
|
+
id: string;
|
359
|
+
selectedRange: Range;
|
360
|
+
};
|
361
|
+
events: {
|
362
|
+
onMutatedMarkdownContent: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
363
|
+
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
364
|
+
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
365
|
+
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
366
|
+
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
367
|
+
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
368
|
+
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
369
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
370
|
+
actions: {
|
371
|
+
onDispatching: {
|
372
|
+
registerPlugin: {
|
373
|
+
subscribe(fn: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
374
|
+
};
|
375
|
+
toHtml: {
|
376
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
377
|
+
};
|
378
|
+
toMarkdown: {
|
379
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
380
|
+
};
|
381
|
+
setContent: {
|
382
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
383
|
+
};
|
384
|
+
setEditorMode: {
|
385
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
386
|
+
};
|
387
|
+
setEditorContainer: {
|
388
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
389
|
+
};
|
390
|
+
registerPluginContext: {
|
391
|
+
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
392
|
+
};
|
393
|
+
toolbarAction: {
|
394
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
395
|
+
};
|
396
|
+
formatting: {
|
397
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
398
|
+
};
|
399
|
+
element: {
|
400
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
401
|
+
};
|
402
|
+
commands: {
|
403
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
404
|
+
};
|
405
|
+
};
|
406
|
+
onDispatched: {
|
407
|
+
registerPlugin: {
|
408
|
+
subscribe(fn: (result: void, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
409
|
+
};
|
410
|
+
toHtml: {
|
411
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
412
|
+
};
|
413
|
+
toMarkdown: {
|
414
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
415
|
+
};
|
416
|
+
setContent: {
|
417
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
418
|
+
};
|
419
|
+
setEditorMode: {
|
420
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
421
|
+
};
|
422
|
+
setEditorContainer: {
|
423
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
424
|
+
};
|
425
|
+
registerPluginContext: {
|
426
|
+
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
427
|
+
};
|
428
|
+
toolbarAction: {
|
429
|
+
subscribe(fn: (result: {
|
430
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
431
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
432
|
+
};
|
433
|
+
formatting: {
|
434
|
+
subscribe(fn: (result: {
|
435
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
436
|
+
toggle: (element: HTMLElement) => void;
|
437
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
438
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
439
|
+
};
|
440
|
+
element: {
|
441
|
+
subscribe(fn: (result: {
|
442
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
443
|
+
createText: () => HTMLParagraphElement;
|
444
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
445
|
+
add: (element: HTMLElement) => void;
|
446
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
447
|
+
};
|
448
|
+
commands: {
|
449
|
+
subscribe(fn: (result: {
|
450
|
+
exec: (command: string, data: object) => void;
|
451
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
452
|
+
};
|
453
|
+
};
|
454
|
+
onFailure: {
|
455
|
+
registerPlugin: {
|
456
|
+
subscribe(fn: (failureReason: any, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
457
|
+
};
|
458
|
+
toHtml: {
|
459
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
460
|
+
};
|
461
|
+
toMarkdown: {
|
462
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
463
|
+
};
|
464
|
+
setContent: {
|
465
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
466
|
+
};
|
467
|
+
setEditorMode: {
|
468
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
469
|
+
};
|
470
|
+
setEditorContainer: {
|
471
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
472
|
+
};
|
473
|
+
registerPluginContext: {
|
474
|
+
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
475
|
+
};
|
476
|
+
toolbarAction: {
|
477
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
478
|
+
};
|
479
|
+
formatting: {
|
480
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
481
|
+
};
|
482
|
+
element: {
|
483
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
484
|
+
};
|
485
|
+
commands: {
|
486
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
487
|
+
};
|
488
|
+
};
|
489
|
+
} & {
|
490
|
+
registerPlugin: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void;
|
491
|
+
toHtml: (markdown: string) => string;
|
492
|
+
toMarkdown: () => void;
|
493
|
+
setContent: (markdown: string) => void;
|
494
|
+
setEditorMode: (editMode: boolean) => void;
|
495
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
496
|
+
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
497
|
+
toolbarAction: () => {
|
498
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
499
|
+
};
|
500
|
+
formatting: () => {
|
501
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
502
|
+
toggle: (element: HTMLElement) => void;
|
503
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
504
|
+
};
|
505
|
+
element: () => {
|
506
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
507
|
+
createText: () => HTMLParagraphElement;
|
508
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
509
|
+
add: (element: HTMLElement) => void;
|
510
|
+
};
|
511
|
+
commands: () => {
|
512
|
+
exec: (command: string, data: object) => void;
|
513
|
+
};
|
514
|
+
};
|
515
|
+
get: {
|
516
|
+
plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
|
517
|
+
};
|
518
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
19
519
|
};
|
20
|
-
|
21
|
-
subscribe(fn: (
|
520
|
+
setVisibility: {
|
521
|
+
subscribe(fn: (show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
22
522
|
};
|
23
523
|
};
|
24
524
|
onDispatched: {
|
25
|
-
|
26
|
-
subscribe(fn: (result: void,
|
525
|
+
setActiveEditorStore: {
|
526
|
+
subscribe(fn: (result: void, store: {
|
527
|
+
state: {
|
528
|
+
markdownContent: string;
|
529
|
+
editMode: boolean;
|
530
|
+
toolbarActions: MarkdownEditorActionRegistration[];
|
531
|
+
editor: HTMLDivElement;
|
532
|
+
telePorts: JSX.Element[];
|
533
|
+
id: string;
|
534
|
+
selectedRange: Range;
|
535
|
+
};
|
536
|
+
events: {
|
537
|
+
onMutatedMarkdownContent: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
538
|
+
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
539
|
+
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
540
|
+
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
541
|
+
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
542
|
+
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
543
|
+
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
544
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
545
|
+
actions: {
|
546
|
+
onDispatching: {
|
547
|
+
registerPlugin: {
|
548
|
+
subscribe(fn: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
549
|
+
};
|
550
|
+
toHtml: {
|
551
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
552
|
+
};
|
553
|
+
toMarkdown: {
|
554
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
555
|
+
};
|
556
|
+
setContent: {
|
557
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
558
|
+
};
|
559
|
+
setEditorMode: {
|
560
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
561
|
+
};
|
562
|
+
setEditorContainer: {
|
563
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
564
|
+
};
|
565
|
+
registerPluginContext: {
|
566
|
+
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
567
|
+
};
|
568
|
+
toolbarAction: {
|
569
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
570
|
+
};
|
571
|
+
formatting: {
|
572
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
573
|
+
};
|
574
|
+
element: {
|
575
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
576
|
+
};
|
577
|
+
commands: {
|
578
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
579
|
+
};
|
580
|
+
};
|
581
|
+
onDispatched: {
|
582
|
+
registerPlugin: {
|
583
|
+
subscribe(fn: (result: void, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
584
|
+
};
|
585
|
+
toHtml: {
|
586
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
587
|
+
};
|
588
|
+
toMarkdown: {
|
589
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
590
|
+
};
|
591
|
+
setContent: {
|
592
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
593
|
+
};
|
594
|
+
setEditorMode: {
|
595
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
596
|
+
};
|
597
|
+
setEditorContainer: {
|
598
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
599
|
+
};
|
600
|
+
registerPluginContext: {
|
601
|
+
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
602
|
+
};
|
603
|
+
toolbarAction: {
|
604
|
+
subscribe(fn: (result: {
|
605
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
606
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
607
|
+
};
|
608
|
+
formatting: {
|
609
|
+
subscribe(fn: (result: {
|
610
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
611
|
+
toggle: (element: HTMLElement) => void;
|
612
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
613
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
614
|
+
};
|
615
|
+
element: {
|
616
|
+
subscribe(fn: (result: {
|
617
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
618
|
+
createText: () => HTMLParagraphElement;
|
619
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
620
|
+
add: (element: HTMLElement) => void;
|
621
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
622
|
+
};
|
623
|
+
commands: {
|
624
|
+
subscribe(fn: (result: {
|
625
|
+
exec: (command: string, data: object) => void;
|
626
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
627
|
+
};
|
628
|
+
};
|
629
|
+
onFailure: {
|
630
|
+
registerPlugin: {
|
631
|
+
subscribe(fn: (failureReason: any, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
632
|
+
};
|
633
|
+
toHtml: {
|
634
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
635
|
+
};
|
636
|
+
toMarkdown: {
|
637
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
638
|
+
};
|
639
|
+
setContent: {
|
640
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
641
|
+
};
|
642
|
+
setEditorMode: {
|
643
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
644
|
+
};
|
645
|
+
setEditorContainer: {
|
646
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
647
|
+
};
|
648
|
+
registerPluginContext: {
|
649
|
+
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
650
|
+
};
|
651
|
+
toolbarAction: {
|
652
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
653
|
+
};
|
654
|
+
formatting: {
|
655
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
656
|
+
};
|
657
|
+
element: {
|
658
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
659
|
+
};
|
660
|
+
commands: {
|
661
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
662
|
+
};
|
663
|
+
};
|
664
|
+
} & {
|
665
|
+
registerPlugin: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void;
|
666
|
+
toHtml: (markdown: string) => string;
|
667
|
+
toMarkdown: () => void;
|
668
|
+
setContent: (markdown: string) => void;
|
669
|
+
setEditorMode: (editMode: boolean) => void;
|
670
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
671
|
+
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
672
|
+
toolbarAction: () => {
|
673
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
674
|
+
};
|
675
|
+
formatting: () => {
|
676
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
677
|
+
toggle: (element: HTMLElement) => void;
|
678
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
679
|
+
};
|
680
|
+
element: () => {
|
681
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
682
|
+
createText: () => HTMLParagraphElement;
|
683
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
684
|
+
add: (element: HTMLElement) => void;
|
685
|
+
};
|
686
|
+
commands: () => {
|
687
|
+
exec: (command: string, data: object) => void;
|
688
|
+
};
|
689
|
+
};
|
690
|
+
get: {
|
691
|
+
plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
|
692
|
+
};
|
693
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
27
694
|
};
|
28
|
-
|
29
|
-
subscribe(fn: (result: void,
|
695
|
+
setVisibility: {
|
696
|
+
subscribe(fn: (result: void, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
30
697
|
};
|
31
698
|
};
|
32
699
|
onFailure: {
|
33
|
-
|
34
|
-
subscribe(fn: (failureReason: any,
|
700
|
+
setActiveEditorStore: {
|
701
|
+
subscribe(fn: (failureReason: any, store: {
|
702
|
+
state: {
|
703
|
+
markdownContent: string;
|
704
|
+
editMode: boolean;
|
705
|
+
toolbarActions: MarkdownEditorActionRegistration[];
|
706
|
+
editor: HTMLDivElement;
|
707
|
+
telePorts: JSX.Element[];
|
708
|
+
id: string;
|
709
|
+
selectedRange: Range;
|
710
|
+
};
|
711
|
+
events: {
|
712
|
+
onMutatedMarkdownContent: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
713
|
+
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
714
|
+
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
715
|
+
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
716
|
+
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
717
|
+
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
718
|
+
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
719
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
720
|
+
actions: {
|
721
|
+
onDispatching: {
|
722
|
+
registerPlugin: {
|
723
|
+
subscribe(fn: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
724
|
+
};
|
725
|
+
toHtml: {
|
726
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
727
|
+
};
|
728
|
+
toMarkdown: {
|
729
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
730
|
+
};
|
731
|
+
setContent: {
|
732
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
733
|
+
};
|
734
|
+
setEditorMode: {
|
735
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
736
|
+
};
|
737
|
+
setEditorContainer: {
|
738
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
739
|
+
};
|
740
|
+
registerPluginContext: {
|
741
|
+
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
742
|
+
};
|
743
|
+
toolbarAction: {
|
744
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
745
|
+
};
|
746
|
+
formatting: {
|
747
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
748
|
+
};
|
749
|
+
element: {
|
750
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
751
|
+
};
|
752
|
+
commands: {
|
753
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
754
|
+
};
|
755
|
+
};
|
756
|
+
onDispatched: {
|
757
|
+
registerPlugin: {
|
758
|
+
subscribe(fn: (result: void, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
759
|
+
};
|
760
|
+
toHtml: {
|
761
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
762
|
+
};
|
763
|
+
toMarkdown: {
|
764
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
765
|
+
};
|
766
|
+
setContent: {
|
767
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
768
|
+
};
|
769
|
+
setEditorMode: {
|
770
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
771
|
+
};
|
772
|
+
setEditorContainer: {
|
773
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
774
|
+
};
|
775
|
+
registerPluginContext: {
|
776
|
+
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
777
|
+
};
|
778
|
+
toolbarAction: {
|
779
|
+
subscribe(fn: (result: {
|
780
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
781
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
782
|
+
};
|
783
|
+
formatting: {
|
784
|
+
subscribe(fn: (result: {
|
785
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
786
|
+
toggle: (element: HTMLElement) => void;
|
787
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
788
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
789
|
+
};
|
790
|
+
element: {
|
791
|
+
subscribe(fn: (result: {
|
792
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
793
|
+
createText: () => HTMLParagraphElement;
|
794
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
795
|
+
add: (element: HTMLElement) => void;
|
796
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
797
|
+
};
|
798
|
+
commands: {
|
799
|
+
subscribe(fn: (result: {
|
800
|
+
exec: (command: string, data: object) => void;
|
801
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
802
|
+
};
|
803
|
+
};
|
804
|
+
onFailure: {
|
805
|
+
registerPlugin: {
|
806
|
+
subscribe(fn: (failureReason: any, plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
807
|
+
};
|
808
|
+
toHtml: {
|
809
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
810
|
+
};
|
811
|
+
toMarkdown: {
|
812
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
813
|
+
};
|
814
|
+
setContent: {
|
815
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
816
|
+
};
|
817
|
+
setEditorMode: {
|
818
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
819
|
+
};
|
820
|
+
setEditorContainer: {
|
821
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
822
|
+
};
|
823
|
+
registerPluginContext: {
|
824
|
+
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
825
|
+
};
|
826
|
+
toolbarAction: {
|
827
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
828
|
+
};
|
829
|
+
formatting: {
|
830
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
831
|
+
};
|
832
|
+
element: {
|
833
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
834
|
+
};
|
835
|
+
commands: {
|
836
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
837
|
+
};
|
838
|
+
};
|
839
|
+
} & {
|
840
|
+
registerPlugin: (plugin: () => import("../models/MarkdownPlugin").MarkdownPlugin) => void;
|
841
|
+
toHtml: (markdown: string) => string;
|
842
|
+
toMarkdown: () => void;
|
843
|
+
setContent: (markdown: string) => void;
|
844
|
+
setEditorMode: (editMode: boolean) => void;
|
845
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
846
|
+
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
847
|
+
toolbarAction: () => {
|
848
|
+
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
849
|
+
};
|
850
|
+
formatting: () => {
|
851
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
852
|
+
toggle: (element: HTMLElement) => void;
|
853
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
854
|
+
};
|
855
|
+
element: () => {
|
856
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
857
|
+
createText: () => HTMLParagraphElement;
|
858
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
859
|
+
add: (element: HTMLElement) => void;
|
860
|
+
};
|
861
|
+
commands: () => {
|
862
|
+
exec: (command: string, data: object) => void;
|
863
|
+
};
|
864
|
+
};
|
865
|
+
get: {
|
866
|
+
plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
|
867
|
+
};
|
868
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
35
869
|
};
|
36
|
-
|
37
|
-
subscribe(fn: (failureReason: any,
|
870
|
+
setVisibility: {
|
871
|
+
subscribe(fn: (failureReason: any, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
38
872
|
};
|
39
873
|
};
|
40
874
|
} & {
|
41
|
-
|
42
|
-
|
875
|
+
setActiveEditorStore: (store: ReturnType<typeof useMarkdownStore>) => void;
|
876
|
+
setVisibility: (show: boolean) => void;
|
43
877
|
};
|
44
878
|
get: {
|
45
879
|
isActiveStore(): boolean;
|
880
|
+
actionsGroupedAndSorted(): MarkdownEditorActionRegistration[][];
|
46
881
|
};
|
47
882
|
};
|