@omnia/fx 8.0.237-dev → 8.0.239-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/stores/markdown/index.d.ts +1 -0
- 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/AddUserTypeBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/ApprovalBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/EditUserTypeBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/UserTypesBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/journey/DefineBlade.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/journey/JourneyBlade.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/journey/JourneyMenu.d.ts +4 -4
- package/internal-do-not-import-from-here/ux/journey/stores/JourneyStore.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownEditorFuture.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.css.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.d.ts +440 -0
- package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownPlugin.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +93 -16
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +6 -232
- package/internal-do-not-import-from-here/wctypings.d.ts +17 -4
- package/package.json +2 -2
@@ -0,0 +1,440 @@
|
|
1
|
+
import { guid } from "@omnia/fx-models";
|
2
|
+
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
|
3
|
+
editorId?: guid;
|
4
|
+
} & {
|
5
|
+
editorStore?: {
|
6
|
+
state: {
|
7
|
+
markdownContent: string;
|
8
|
+
editMode: boolean;
|
9
|
+
editor: HTMLDivElement;
|
10
|
+
telePorts: JSX.Element[];
|
11
|
+
id: string;
|
12
|
+
storedRange: Range;
|
13
|
+
};
|
14
|
+
events: {
|
15
|
+
onMutatedMarkdownContent: import("../..").MessageBusExposeOnlySubscription<string>;
|
16
|
+
onMutatedEditMode: import("../..").MessageBusExposeOnlySubscription<boolean>;
|
17
|
+
onMutatedEditor: import("../..").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
18
|
+
onMutatedTelePorts: import("../..").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
19
|
+
onMutatedId: import("../..").MessageBusExposeOnlySubscription<string>;
|
20
|
+
onMutatedStoredRange: import("../..").MessageBusExposeOnlySubscription<Range>;
|
21
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
22
|
+
actions: {
|
23
|
+
onDispatching: {
|
24
|
+
registerPlugin: {
|
25
|
+
subscribe(fn: (plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
26
|
+
};
|
27
|
+
toHtml: {
|
28
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
29
|
+
};
|
30
|
+
toMarkdown: {
|
31
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
32
|
+
};
|
33
|
+
setContent: {
|
34
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
35
|
+
};
|
36
|
+
setEditorMode: {
|
37
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
38
|
+
};
|
39
|
+
setEditorContainer: {
|
40
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
41
|
+
};
|
42
|
+
registerPluginContext: {
|
43
|
+
subscribe(fn: (ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
44
|
+
};
|
45
|
+
formatting: {
|
46
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
47
|
+
};
|
48
|
+
element: {
|
49
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
50
|
+
};
|
51
|
+
commands: {
|
52
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
53
|
+
};
|
54
|
+
};
|
55
|
+
onDispatched: {
|
56
|
+
registerPlugin: {
|
57
|
+
subscribe(fn: (result: void, plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
58
|
+
};
|
59
|
+
toHtml: {
|
60
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
61
|
+
};
|
62
|
+
toMarkdown: {
|
63
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
64
|
+
};
|
65
|
+
setContent: {
|
66
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
67
|
+
};
|
68
|
+
setEditorMode: {
|
69
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
70
|
+
};
|
71
|
+
setEditorContainer: {
|
72
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
73
|
+
};
|
74
|
+
registerPluginContext: {
|
75
|
+
subscribe(fn: (result: void, ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
76
|
+
};
|
77
|
+
formatting: {
|
78
|
+
subscribe(fn: (result: {
|
79
|
+
add: (element: HTMLElement) => void;
|
80
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
81
|
+
};
|
82
|
+
element: {
|
83
|
+
subscribe(fn: (result: {
|
84
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
85
|
+
createText: () => HTMLParagraphElement;
|
86
|
+
create: (tagName: string, dataType: "text" | "formatting") => HTMLElement;
|
87
|
+
add: (element: HTMLElement) => void;
|
88
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
89
|
+
};
|
90
|
+
commands: {
|
91
|
+
subscribe(fn: (result: {
|
92
|
+
exec: (command: string, data: object) => void;
|
93
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
94
|
+
};
|
95
|
+
};
|
96
|
+
onFailure: {
|
97
|
+
registerPlugin: {
|
98
|
+
subscribe(fn: (failureReason: any, plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
99
|
+
};
|
100
|
+
toHtml: {
|
101
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
102
|
+
};
|
103
|
+
toMarkdown: {
|
104
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
105
|
+
};
|
106
|
+
setContent: {
|
107
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
108
|
+
};
|
109
|
+
setEditorMode: {
|
110
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
111
|
+
};
|
112
|
+
setEditorContainer: {
|
113
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
114
|
+
};
|
115
|
+
registerPluginContext: {
|
116
|
+
subscribe(fn: (failureReason: any, ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
117
|
+
};
|
118
|
+
formatting: {
|
119
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
120
|
+
};
|
121
|
+
element: {
|
122
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
123
|
+
};
|
124
|
+
commands: {
|
125
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
126
|
+
};
|
127
|
+
};
|
128
|
+
} & {
|
129
|
+
registerPlugin: (plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void;
|
130
|
+
toHtml: (markdown: string) => string;
|
131
|
+
toMarkdown: () => void;
|
132
|
+
setContent: (markdown: string) => void;
|
133
|
+
setEditorMode: (editMode: boolean) => void;
|
134
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
135
|
+
registerPluginContext: (ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void;
|
136
|
+
formatting: () => {
|
137
|
+
add: (element: HTMLElement) => void;
|
138
|
+
};
|
139
|
+
element: () => {
|
140
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
141
|
+
createText: () => HTMLParagraphElement;
|
142
|
+
create: (tagName: string, dataType: "text" | "formatting") => HTMLElement;
|
143
|
+
add: (element: HTMLElement) => void;
|
144
|
+
};
|
145
|
+
commands: () => {
|
146
|
+
exec: (command: string, data: object) => void;
|
147
|
+
};
|
148
|
+
};
|
149
|
+
get: {
|
150
|
+
toolbarStore: {
|
151
|
+
state: {
|
152
|
+
show: boolean;
|
153
|
+
textActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
154
|
+
additionalActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
155
|
+
toolbarOwnerId: guid;
|
156
|
+
};
|
157
|
+
events: {
|
158
|
+
onMutatedShow: import("../..").MessageBusExposeOnlySubscription<boolean>;
|
159
|
+
onMutatedTextActions: import("../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
160
|
+
onMutatedAdditionalActions: import("../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
161
|
+
onMutatedToolbarOwnerId: import("../..").MessageBusExposeOnlySubscription<guid>;
|
162
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
163
|
+
actions: {
|
164
|
+
onDispatching: {
|
165
|
+
addAdditionalAction: {
|
166
|
+
subscribe(fn: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
167
|
+
};
|
168
|
+
setEditorStore: {
|
169
|
+
subscribe(fn: (store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
170
|
+
};
|
171
|
+
};
|
172
|
+
onDispatched: {
|
173
|
+
addAdditionalAction: {
|
174
|
+
subscribe(fn: (result: void, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
175
|
+
};
|
176
|
+
setEditorStore: {
|
177
|
+
subscribe(fn: (result: void, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
178
|
+
};
|
179
|
+
};
|
180
|
+
onFailure: {
|
181
|
+
addAdditionalAction: {
|
182
|
+
subscribe(fn: (failureReason: any, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
183
|
+
};
|
184
|
+
setEditorStore: {
|
185
|
+
subscribe(fn: (failureReason: any, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
186
|
+
};
|
187
|
+
};
|
188
|
+
} & {
|
189
|
+
addAdditionalAction: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void;
|
190
|
+
setEditorStore: (store: any) => void;
|
191
|
+
};
|
192
|
+
get: {
|
193
|
+
isActiveStore(): boolean;
|
194
|
+
};
|
195
|
+
};
|
196
|
+
};
|
197
|
+
};
|
198
|
+
}>) => {
|
199
|
+
$: import("vue").ComponentInternalInstance;
|
200
|
+
$data: {};
|
201
|
+
$props: {};
|
202
|
+
$attrs: {
|
203
|
+
[x: string]: unknown;
|
204
|
+
};
|
205
|
+
$refs: {
|
206
|
+
[x: string]: unknown;
|
207
|
+
};
|
208
|
+
$slots: Readonly<{
|
209
|
+
[name: string]: import("vue").Slot<any>;
|
210
|
+
}>;
|
211
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
212
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
213
|
+
$emit: (event: string, ...args: any[]) => void;
|
214
|
+
$el: any;
|
215
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
216
|
+
beforeCreate?: (() => void) | (() => void)[];
|
217
|
+
created?: (() => void) | (() => void)[];
|
218
|
+
beforeMount?: (() => void) | (() => void)[];
|
219
|
+
mounted?: (() => void) | (() => void)[];
|
220
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
221
|
+
updated?: (() => void) | (() => void)[];
|
222
|
+
activated?: (() => void) | (() => void)[];
|
223
|
+
deactivated?: (() => void) | (() => void)[];
|
224
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
225
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
226
|
+
destroyed?: (() => void) | (() => void)[];
|
227
|
+
unmounted?: (() => void) | (() => void)[];
|
228
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
229
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
230
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
231
|
+
};
|
232
|
+
$forceUpdate: () => void;
|
233
|
+
$nextTick: typeof import("vue").nextTick;
|
234
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
235
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
236
|
+
propsDefinition: import("@omnia/fx/ux").ExtractProps<{
|
237
|
+
editorId?: guid;
|
238
|
+
} & {
|
239
|
+
editorStore?: {
|
240
|
+
state: {
|
241
|
+
markdownContent: string;
|
242
|
+
editMode: boolean;
|
243
|
+
editor: HTMLDivElement;
|
244
|
+
telePorts: JSX.Element[];
|
245
|
+
id: string;
|
246
|
+
storedRange: Range;
|
247
|
+
};
|
248
|
+
events: {
|
249
|
+
onMutatedMarkdownContent: import("../..").MessageBusExposeOnlySubscription<string>;
|
250
|
+
onMutatedEditMode: import("../..").MessageBusExposeOnlySubscription<boolean>;
|
251
|
+
onMutatedEditor: import("../..").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
252
|
+
onMutatedTelePorts: import("../..").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
253
|
+
onMutatedId: import("../..").MessageBusExposeOnlySubscription<string>;
|
254
|
+
onMutatedStoredRange: import("../..").MessageBusExposeOnlySubscription<Range>;
|
255
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
256
|
+
actions: {
|
257
|
+
onDispatching: {
|
258
|
+
registerPlugin: {
|
259
|
+
subscribe(fn: (plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
260
|
+
};
|
261
|
+
toHtml: {
|
262
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
263
|
+
};
|
264
|
+
toMarkdown: {
|
265
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
266
|
+
};
|
267
|
+
setContent: {
|
268
|
+
subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
269
|
+
};
|
270
|
+
setEditorMode: {
|
271
|
+
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
272
|
+
};
|
273
|
+
setEditorContainer: {
|
274
|
+
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
275
|
+
};
|
276
|
+
registerPluginContext: {
|
277
|
+
subscribe(fn: (ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
278
|
+
};
|
279
|
+
formatting: {
|
280
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
281
|
+
};
|
282
|
+
element: {
|
283
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
284
|
+
};
|
285
|
+
commands: {
|
286
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
287
|
+
};
|
288
|
+
};
|
289
|
+
onDispatched: {
|
290
|
+
registerPlugin: {
|
291
|
+
subscribe(fn: (result: void, plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
292
|
+
};
|
293
|
+
toHtml: {
|
294
|
+
subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
295
|
+
};
|
296
|
+
toMarkdown: {
|
297
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
298
|
+
};
|
299
|
+
setContent: {
|
300
|
+
subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
301
|
+
};
|
302
|
+
setEditorMode: {
|
303
|
+
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
304
|
+
};
|
305
|
+
setEditorContainer: {
|
306
|
+
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
307
|
+
};
|
308
|
+
registerPluginContext: {
|
309
|
+
subscribe(fn: (result: void, ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
310
|
+
};
|
311
|
+
formatting: {
|
312
|
+
subscribe(fn: (result: {
|
313
|
+
add: (element: HTMLElement) => void;
|
314
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
315
|
+
};
|
316
|
+
element: {
|
317
|
+
subscribe(fn: (result: {
|
318
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
319
|
+
createText: () => HTMLParagraphElement;
|
320
|
+
create: (tagName: string, dataType: "text" | "formatting") => HTMLElement;
|
321
|
+
add: (element: HTMLElement) => void;
|
322
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
323
|
+
};
|
324
|
+
commands: {
|
325
|
+
subscribe(fn: (result: {
|
326
|
+
exec: (command: string, data: object) => void;
|
327
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
328
|
+
};
|
329
|
+
};
|
330
|
+
onFailure: {
|
331
|
+
registerPlugin: {
|
332
|
+
subscribe(fn: (failureReason: any, plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
333
|
+
};
|
334
|
+
toHtml: {
|
335
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
336
|
+
};
|
337
|
+
toMarkdown: {
|
338
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
339
|
+
};
|
340
|
+
setContent: {
|
341
|
+
subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
342
|
+
};
|
343
|
+
setEditorMode: {
|
344
|
+
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
345
|
+
};
|
346
|
+
setEditorContainer: {
|
347
|
+
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
348
|
+
};
|
349
|
+
registerPluginContext: {
|
350
|
+
subscribe(fn: (failureReason: any, ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
351
|
+
};
|
352
|
+
formatting: {
|
353
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
354
|
+
};
|
355
|
+
element: {
|
356
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
357
|
+
};
|
358
|
+
commands: {
|
359
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
360
|
+
};
|
361
|
+
};
|
362
|
+
} & {
|
363
|
+
registerPlugin: (plugin: () => import("./models/MarkdownPlugin").MarkdownPlugin) => void;
|
364
|
+
toHtml: (markdown: string) => string;
|
365
|
+
toMarkdown: () => void;
|
366
|
+
setContent: (markdown: string) => void;
|
367
|
+
setEditorMode: (editMode: boolean) => void;
|
368
|
+
setEditorContainer: (el: HTMLDivElement) => void;
|
369
|
+
registerPluginContext: (ctx: import("./models/MarkdownPlugin").MarkdownPluginContext) => void;
|
370
|
+
formatting: () => {
|
371
|
+
add: (element: HTMLElement) => void;
|
372
|
+
};
|
373
|
+
element: () => {
|
374
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
375
|
+
createText: () => HTMLParagraphElement;
|
376
|
+
create: (tagName: string, dataType: "text" | "formatting") => HTMLElement;
|
377
|
+
add: (element: HTMLElement) => void;
|
378
|
+
};
|
379
|
+
commands: () => {
|
380
|
+
exec: (command: string, data: object) => void;
|
381
|
+
};
|
382
|
+
};
|
383
|
+
get: {
|
384
|
+
toolbarStore: {
|
385
|
+
state: {
|
386
|
+
show: boolean;
|
387
|
+
textActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
388
|
+
additionalActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
389
|
+
toolbarOwnerId: guid;
|
390
|
+
};
|
391
|
+
events: {
|
392
|
+
onMutatedShow: import("../..").MessageBusExposeOnlySubscription<boolean>;
|
393
|
+
onMutatedTextActions: import("../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
394
|
+
onMutatedAdditionalActions: import("../..").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
395
|
+
onMutatedToolbarOwnerId: import("../..").MessageBusExposeOnlySubscription<guid>;
|
396
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
397
|
+
actions: {
|
398
|
+
onDispatching: {
|
399
|
+
addAdditionalAction: {
|
400
|
+
subscribe(fn: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
401
|
+
};
|
402
|
+
setEditorStore: {
|
403
|
+
subscribe(fn: (store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
404
|
+
};
|
405
|
+
};
|
406
|
+
onDispatched: {
|
407
|
+
addAdditionalAction: {
|
408
|
+
subscribe(fn: (result: void, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
409
|
+
};
|
410
|
+
setEditorStore: {
|
411
|
+
subscribe(fn: (result: void, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
412
|
+
};
|
413
|
+
};
|
414
|
+
onFailure: {
|
415
|
+
addAdditionalAction: {
|
416
|
+
subscribe(fn: (failureReason: any, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
417
|
+
};
|
418
|
+
setEditorStore: {
|
419
|
+
subscribe(fn: (failureReason: any, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
420
|
+
};
|
421
|
+
};
|
422
|
+
} & {
|
423
|
+
addAdditionalAction: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void;
|
424
|
+
setEditorStore: (store: any) => void;
|
425
|
+
};
|
426
|
+
get: {
|
427
|
+
isActiveStore(): boolean;
|
428
|
+
};
|
429
|
+
};
|
430
|
+
};
|
431
|
+
};
|
432
|
+
}> & {
|
433
|
+
"v-slots"?: {} & Omit<{
|
434
|
+
default?: import("vue").Slot;
|
435
|
+
}, never>;
|
436
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "editorId" | "editorStore">;
|
437
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
438
|
+
[key: string]: any;
|
439
|
+
}>;
|
440
|
+
export default _default;
|
@@ -4,6 +4,7 @@ export interface MarkdownPlugin {
|
|
4
4
|
type: "inline" | "component";
|
5
5
|
toMarkdown: (el: HTMLElement) => string;
|
6
6
|
toHtml: (el: HTMLDivElement, data: string | object, ctx: MarkdownPluginContext) => HTMLDivElement;
|
7
|
+
commands?: object;
|
7
8
|
}
|
8
9
|
export interface MarkdownPluginContext {
|
9
10
|
componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
|
2
2
|
import { MarkdownPlugin, MarkdownPluginContext } from "../models/MarkdownPlugin";
|
3
|
+
type dataTypes = "text" | "formatting";
|
3
4
|
export declare const useMarkdownStore: () => {
|
4
5
|
state: {
|
5
6
|
markdownContent: string;
|
@@ -40,11 +41,14 @@ export declare const useMarkdownStore: () => {
|
|
40
41
|
registerPluginContext: {
|
41
42
|
subscribe(fn: (ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
42
43
|
};
|
43
|
-
|
44
|
-
subscribe(fn: (
|
44
|
+
formatting: {
|
45
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
46
|
+
};
|
47
|
+
element: {
|
48
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
45
49
|
};
|
46
|
-
|
47
|
-
subscribe(fn: (
|
50
|
+
commands: {
|
51
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
48
52
|
};
|
49
53
|
};
|
50
54
|
onDispatched: {
|
@@ -69,11 +73,23 @@ export declare const useMarkdownStore: () => {
|
|
69
73
|
registerPluginContext: {
|
70
74
|
subscribe(fn: (result: void, ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
71
75
|
};
|
72
|
-
|
73
|
-
subscribe(fn: (result:
|
76
|
+
formatting: {
|
77
|
+
subscribe(fn: (result: {
|
78
|
+
add: (element: HTMLElement) => void;
|
79
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
74
80
|
};
|
75
|
-
|
76
|
-
subscribe(fn: (result:
|
81
|
+
element: {
|
82
|
+
subscribe(fn: (result: {
|
83
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
84
|
+
createText: () => HTMLParagraphElement;
|
85
|
+
create: (tagName: string, dataType: dataTypes) => HTMLElement;
|
86
|
+
add: (element: HTMLElement) => void;
|
87
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
88
|
+
};
|
89
|
+
commands: {
|
90
|
+
subscribe(fn: (result: {
|
91
|
+
exec: (command: string, data: object) => void;
|
92
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
77
93
|
};
|
78
94
|
};
|
79
95
|
onFailure: {
|
@@ -98,11 +114,14 @@ export declare const useMarkdownStore: () => {
|
|
98
114
|
registerPluginContext: {
|
99
115
|
subscribe(fn: (failureReason: any, ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
100
116
|
};
|
101
|
-
|
102
|
-
subscribe(fn: (failureReason: any
|
117
|
+
formatting: {
|
118
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
103
119
|
};
|
104
|
-
|
105
|
-
subscribe(fn: (failureReason: any
|
120
|
+
element: {
|
121
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
122
|
+
};
|
123
|
+
commands: {
|
124
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
106
125
|
};
|
107
126
|
};
|
108
127
|
} & {
|
@@ -113,8 +132,66 @@ export declare const useMarkdownStore: () => {
|
|
113
132
|
setEditorMode: (editMode: boolean) => void;
|
114
133
|
setEditorContainer: (el: HTMLDivElement) => void;
|
115
134
|
registerPluginContext: (ctx: MarkdownPluginContext) => void;
|
116
|
-
|
117
|
-
|
135
|
+
formatting: () => {
|
136
|
+
add: (element: HTMLElement) => void;
|
137
|
+
};
|
138
|
+
element: () => {
|
139
|
+
createForComponent: (componentName: string) => HTMLDivElement;
|
140
|
+
createText: () => HTMLParagraphElement;
|
141
|
+
create: (tagName: string, dataType: dataTypes) => HTMLElement;
|
142
|
+
add: (element: HTMLElement) => void;
|
143
|
+
};
|
144
|
+
commands: () => {
|
145
|
+
exec: (command: string, data: object) => void;
|
146
|
+
};
|
147
|
+
};
|
148
|
+
get: {
|
149
|
+
toolbarStore: {
|
150
|
+
state: {
|
151
|
+
show: boolean;
|
152
|
+
textActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
153
|
+
additionalActions: import("@omnia/fx-models").MarkdownEditorActionRegistration[];
|
154
|
+
toolbarOwnerId: guid;
|
155
|
+
};
|
156
|
+
events: {
|
157
|
+
onMutatedShow: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<boolean>;
|
158
|
+
onMutatedTextActions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
159
|
+
onMutatedAdditionalActions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<import("@omnia/fx-models").MarkdownEditorActionRegistration[]>;
|
160
|
+
onMutatedToolbarOwnerId: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<guid>;
|
161
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
162
|
+
actions: {
|
163
|
+
onDispatching: {
|
164
|
+
addAdditionalAction: {
|
165
|
+
subscribe(fn: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
166
|
+
};
|
167
|
+
setEditorStore: {
|
168
|
+
subscribe(fn: (store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
169
|
+
};
|
170
|
+
};
|
171
|
+
onDispatched: {
|
172
|
+
addAdditionalAction: {
|
173
|
+
subscribe(fn: (result: void, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
174
|
+
};
|
175
|
+
setEditorStore: {
|
176
|
+
subscribe(fn: (result: void, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
177
|
+
};
|
178
|
+
};
|
179
|
+
onFailure: {
|
180
|
+
addAdditionalAction: {
|
181
|
+
subscribe(fn: (failureReason: any, action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
182
|
+
};
|
183
|
+
setEditorStore: {
|
184
|
+
subscribe(fn: (failureReason: any, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
185
|
+
};
|
186
|
+
};
|
187
|
+
} & {
|
188
|
+
addAdditionalAction: (action: import("@omnia/fx-models").MarkdownEditorActionRegistration) => void;
|
189
|
+
setEditorStore: (store: any) => void;
|
190
|
+
};
|
191
|
+
get: {
|
192
|
+
isActiveStore(): boolean;
|
193
|
+
};
|
194
|
+
};
|
118
195
|
};
|
119
|
-
get: {};
|
120
196
|
};
|
197
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { MarkdownEditorActionRegistration, guid } from "@omnia/fx-models";
|
2
|
+
export declare const useMarkdownToolbarStore: () => {
|
3
|
+
state: {
|
4
|
+
show: boolean;
|
5
|
+
textActions: MarkdownEditorActionRegistration[];
|
6
|
+
additionalActions: MarkdownEditorActionRegistration[];
|
7
|
+
toolbarOwnerId: guid;
|
8
|
+
};
|
9
|
+
events: {
|
10
|
+
onMutatedShow: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
11
|
+
onMutatedTextActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
12
|
+
onMutatedAdditionalActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
13
|
+
onMutatedToolbarOwnerId: import("@omnia/fx").MessageBusExposeOnlySubscription<guid>;
|
14
|
+
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
15
|
+
actions: {
|
16
|
+
onDispatching: {
|
17
|
+
addAdditionalAction: {
|
18
|
+
subscribe(fn: (action: MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
19
|
+
};
|
20
|
+
setEditorStore: {
|
21
|
+
subscribe(fn: (store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
onDispatched: {
|
25
|
+
addAdditionalAction: {
|
26
|
+
subscribe(fn: (result: void, action: MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
27
|
+
};
|
28
|
+
setEditorStore: {
|
29
|
+
subscribe(fn: (result: void, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
onFailure: {
|
33
|
+
addAdditionalAction: {
|
34
|
+
subscribe(fn: (failureReason: any, action: MarkdownEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
35
|
+
};
|
36
|
+
setEditorStore: {
|
37
|
+
subscribe(fn: (failureReason: any, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
38
|
+
};
|
39
|
+
};
|
40
|
+
} & {
|
41
|
+
addAdditionalAction: (action: MarkdownEditorActionRegistration) => void;
|
42
|
+
setEditorStore: (store: any) => void;
|
43
|
+
};
|
44
|
+
get: {
|
45
|
+
isActiveStore(): boolean;
|
46
|
+
};
|
47
|
+
};
|