@omnia/fx 8.0.249-dev → 8.0.251-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.vendor.manifest.json +1 -1
- package/internal-do-not-import-from-here/stores/markdown/MarkdownPluginStore.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/ComponentTypings.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/admin/system/submenu/localizationadmin/localizationinput/LocalizationInput.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/app/management/tabs/templates/tabs/PropertyRow.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/appprovisioning/appimageinput/AppImageInput.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/appprovisioning/apppropertiesinput/AppPropertiesInput.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/datetimepicker/DateTimePicker.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/datetimezonepicker/DateTimeZonePicker.d.ts +7 -7
- package/internal-do-not-import-from-here/ux/datetimezonerenderer/DateTimeZoneRenderer.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/dialog/Dialog.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/enterpriseproperties/picker/EnterprisePropertyPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/enterpriseproperties/renderers/EnterprisePropertyValue.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/fileuploader/FileUploader.d.ts +7 -7
- package/internal-do-not-import-from-here/ux/filterengine/FilterEngineRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/FilterEngineSettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/boolean/BooleanPropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/date/DatePropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/number/NumberPropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/person/PersonPropertyDefaultValueInput.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/person/PersonPropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/tags/TagsPropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterengine/components/settings/text/TextPropertySettings.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPicker.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerButton.d.ts +7 -7
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerDialog.d.ts +11 -11
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerField.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/identitypicker/IdentityPickerInlineField.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/journey/JourneyMenu.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/languagepicker/LanguagePicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/renderer/LayoutBlockRendererHelper.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/layoutcanvas/shared/layoutitemsrenderer/LayoutBlockRenderer.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +39 -5
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/EditorNodeHelper.d.ts +12 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/HtmlNodehelper.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/markdown2/models/EditorModels.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/markdown2/models/{MarkdownPlugin.d.ts → EditorPlugin.d.ts} +7 -5
- package/internal-do-not-import-from-here/ux/markdown2/parsers/HtmlParser.d.ts +4 -3
- package/internal-do-not-import-from-here/ux/markdown2/parsers/JSONParser.d.ts +3 -2
- package/internal-do-not-import-from-here/ux/markdown2/parsers/markdownparser_old/textParser.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/DefineEditorPlugin.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/colorstyle/ColorStylePlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/markdown2/plugins/sourceeditor/SourceEditorButton.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/sourceeditor/SourceEditorPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/testdata/TestDataPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/text/TextPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/markdown2/plugins/typography/TypographyPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/markdown2/plugins/velcron/VelcronPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +73 -55
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +325 -240
- package/internal-do-not-import-from-here/ux/mediagallery/view/MediaDisplayRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/mediagallery/view/PhotoWallWithSliderDisplayRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/mediapickerimage/MediaPickerImage.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/mediapickervideo/MediaPickerVideo.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/calendar/Calendar.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.d.ts +105 -13
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTableServer.d.ts +20 -20
- package/internal-do-not-import-from-here/ux/oxide/menu/Menu.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/oxide/tooltip/Tooltip.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/post/Post.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/post/templates/PostCardDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/post/templates/PostTemplate.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/properties/builtins/birthday/BirthdayConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/birthday/BirthdayEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/boolean/BooleanEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/businessprofile/BusinessProfileEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/date/DateEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/date-time/DateTimeConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/date-time/DateTimeEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/email/EmailEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/html/HtmlConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/html/HtmlEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/identity/IdentityConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/identity/IdentityDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/identity/IdentityEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/image/ImageConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/image/ImageEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/integer/IntegerEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/language/LanguageEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/link/LinkConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/link/LinkEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/media/MediaEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/multilingualText/MultilingualTextEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/phone-number/PhoneNumberEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/tags/TagsDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/tags/TagsEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/text/TextEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/builtins/time/TimeEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/property-configuration/LabelOptionsRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/property-configuration/PropertyConfiguration.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/properties/property-configuration/PropertyLocking.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/properties/property-renderer/PropertyValueRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/securitytrimmer/SecurityTrimmer.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/social/Comment.d.ts +7 -7
- package/internal-do-not-import-from-here/ux/social/PeopleTagging.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/social/templates/CommentLikeTemplate.d.ts +12 -12
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +15 -1
- package/internal-do-not-import-from-here/ux/versionedlayout/editor/LayoutEditorTabRenderer.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/versionedlayout/renderer/InternalVersionedLayoutRenderer.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/versionedlayout/renderer/VersionedLayoutRenderer.d.ts +3 -3
- package/package.json +3 -3
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Nodehelper.d.ts +0 -7
- package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownParser.d.ts +0 -33
- package/internal-do-not-import-from-here/ux/markdown2/plugins/DefineMarkdownPlugin.d.ts +0 -8
- /package/internal-do-not-import-from-here/ux/markdown2/parsers/{MarkdownParser.d.ts → markdownparser_old/MarkdownParser.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/markdown2/parsers/{builtin/component.d.ts → markdownparser_old/MarkdownParser_engine.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/markdown2/parsers/{builtin/tags.d.ts → markdownparser_old/component.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/markdown2/parsers/{builtin/textParser.d.ts → markdownparser_old/tags.d.ts} +0 -0
@@ -4,37 +4,38 @@ export declare const useMarkdownToolbarStore: () => {
|
|
4
4
|
state: {
|
5
5
|
activeEditorStore: {
|
6
6
|
state: {
|
7
|
-
|
8
|
-
plugins: import("../models/
|
7
|
+
editorContent: import("../models/EditorModels").EditorContent;
|
8
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
9
9
|
editMode: boolean;
|
10
|
+
maxNodeId: number;
|
10
11
|
toolbarActions: MarkdownEditorActionRegistration[];
|
11
12
|
editor: HTMLDivElement;
|
12
|
-
|
13
|
+
selectedNodes: import("../models/EditorModels").EditorNode[];
|
14
|
+
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
13
15
|
telePorts: JSX.Element[];
|
14
16
|
id: string;
|
15
17
|
selectedRange: Range;
|
16
18
|
};
|
17
19
|
events: {
|
18
|
-
|
19
|
-
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/
|
20
|
+
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
21
|
+
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
20
22
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
23
|
+
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
21
24
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
22
25
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
23
|
-
|
26
|
+
onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorNode[]>;
|
27
|
+
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
24
28
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
25
29
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
26
30
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
27
31
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
28
32
|
actions: {
|
29
33
|
onDispatching: {
|
30
|
-
|
31
|
-
subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
32
|
-
};
|
33
|
-
toMarkdown: {
|
34
|
+
plugin: {
|
34
35
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
35
36
|
};
|
36
|
-
|
37
|
-
subscribe(fn: (
|
37
|
+
content: {
|
38
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
38
39
|
};
|
39
40
|
setEditorMode: {
|
40
41
|
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -42,9 +43,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
42
43
|
setEditorContainer: {
|
43
44
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
44
45
|
};
|
45
|
-
registerPluginContext: {
|
46
|
-
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
47
|
-
};
|
48
46
|
toolbarAction: {
|
49
47
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
50
48
|
};
|
@@ -59,14 +57,22 @@ export declare const useMarkdownToolbarStore: () => {
|
|
59
57
|
};
|
60
58
|
};
|
61
59
|
onDispatched: {
|
62
|
-
|
63
|
-
subscribe(fn: (result:
|
64
|
-
|
65
|
-
|
66
|
-
|
60
|
+
plugin: {
|
61
|
+
subscribe(fn: (result: {
|
62
|
+
register: {
|
63
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
64
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
65
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
66
|
+
};
|
67
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
67
68
|
};
|
68
|
-
|
69
|
-
subscribe(fn: (result:
|
69
|
+
content: {
|
70
|
+
subscribe(fn: (result: {
|
71
|
+
set: {
|
72
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
73
|
+
byString: (content: string) => void;
|
74
|
+
};
|
75
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
70
76
|
};
|
71
77
|
setEditorMode: {
|
72
78
|
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -74,9 +80,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
74
80
|
setEditorContainer: {
|
75
81
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
76
82
|
};
|
77
|
-
registerPluginContext: {
|
78
|
-
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
79
|
-
};
|
80
83
|
toolbarAction: {
|
81
84
|
subscribe(fn: (result: {
|
82
85
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -84,9 +87,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
84
87
|
};
|
85
88
|
formatting: {
|
86
89
|
subscribe(fn: (result: {
|
87
|
-
add: (element: HTMLElement,
|
88
|
-
toggle: (element: HTMLElement,
|
89
|
-
remove: (element: HTMLElement,
|
90
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
91
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
92
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
90
93
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
91
94
|
};
|
92
95
|
element: {
|
@@ -104,14 +107,11 @@ export declare const useMarkdownToolbarStore: () => {
|
|
104
107
|
};
|
105
108
|
};
|
106
109
|
onFailure: {
|
107
|
-
|
108
|
-
subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
109
|
-
};
|
110
|
-
toMarkdown: {
|
110
|
+
plugin: {
|
111
111
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
112
112
|
};
|
113
|
-
|
114
|
-
subscribe(fn: (failureReason: any
|
113
|
+
content: {
|
114
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
115
115
|
};
|
116
116
|
setEditorMode: {
|
117
117
|
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -119,9 +119,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
119
119
|
setEditorContainer: {
|
120
120
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
121
121
|
};
|
122
|
-
registerPluginContext: {
|
123
|
-
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
124
|
-
};
|
125
122
|
toolbarAction: {
|
126
123
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
127
124
|
};
|
@@ -136,19 +133,28 @@ export declare const useMarkdownToolbarStore: () => {
|
|
136
133
|
};
|
137
134
|
};
|
138
135
|
} & {
|
139
|
-
|
140
|
-
|
141
|
-
|
136
|
+
plugin: () => {
|
137
|
+
register: {
|
138
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
139
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
140
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
141
|
+
};
|
142
|
+
};
|
143
|
+
content: () => {
|
144
|
+
set: {
|
145
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
146
|
+
byString: (content: string) => void;
|
147
|
+
};
|
148
|
+
};
|
142
149
|
setEditorMode: (editMode: boolean) => void;
|
143
150
|
setEditorContainer: (el: HTMLDivElement) => void;
|
144
|
-
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
145
151
|
toolbarAction: () => {
|
146
152
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
147
153
|
};
|
148
154
|
formatting: () => {
|
149
|
-
add: (element: HTMLElement,
|
150
|
-
toggle: (element: HTMLElement,
|
151
|
-
remove: (element: HTMLElement,
|
155
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
156
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
157
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
152
158
|
};
|
153
159
|
element: () => {
|
154
160
|
createForComponent: (componentName: string) => HTMLDivElement;
|
@@ -161,15 +167,26 @@ export declare const useMarkdownToolbarStore: () => {
|
|
161
167
|
};
|
162
168
|
};
|
163
169
|
get: {
|
164
|
-
plugins: import("../models/
|
170
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
171
|
+
content: {
|
172
|
+
asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
|
173
|
+
asString: (cleanIds?: boolean) => string;
|
174
|
+
};
|
165
175
|
selection: {
|
166
176
|
has: {
|
167
177
|
dataType: (dataType: string) => boolean;
|
168
|
-
|
178
|
+
nodeName: (name: string) => boolean;
|
179
|
+
id: (id: number) => boolean;
|
169
180
|
};
|
170
181
|
get: {
|
171
|
-
byDataType: (dataType: string) =>
|
172
|
-
|
182
|
+
byDataType: (dataType: string) => import("../models/EditorModels").EditorNode;
|
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;
|
173
190
|
};
|
174
191
|
};
|
175
192
|
};
|
@@ -182,37 +199,38 @@ export declare const useMarkdownToolbarStore: () => {
|
|
182
199
|
events: {
|
183
200
|
onMutatedActiveEditorStore: import("@omnia/fx").MessageBusExposeOnlySubscription<{
|
184
201
|
state: {
|
185
|
-
|
186
|
-
plugins: import("../models/
|
202
|
+
editorContent: import("../models/EditorModels").EditorContent;
|
203
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
187
204
|
editMode: boolean;
|
205
|
+
maxNodeId: number;
|
188
206
|
toolbarActions: MarkdownEditorActionRegistration[];
|
189
207
|
editor: HTMLDivElement;
|
190
|
-
|
208
|
+
selectedNodes: import("../models/EditorModels").EditorNode[];
|
209
|
+
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
191
210
|
telePorts: JSX.Element[];
|
192
211
|
id: string;
|
193
212
|
selectedRange: Range;
|
194
213
|
};
|
195
214
|
events: {
|
196
|
-
|
197
|
-
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/
|
215
|
+
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
216
|
+
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
198
217
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
218
|
+
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
199
219
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
200
220
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
201
|
-
|
221
|
+
onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorNode[]>;
|
222
|
+
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
202
223
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
203
224
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
204
225
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
205
226
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
206
227
|
actions: {
|
207
228
|
onDispatching: {
|
208
|
-
|
209
|
-
subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
210
|
-
};
|
211
|
-
toMarkdown: {
|
229
|
+
plugin: {
|
212
230
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
213
231
|
};
|
214
|
-
|
215
|
-
subscribe(fn: (
|
232
|
+
content: {
|
233
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
216
234
|
};
|
217
235
|
setEditorMode: {
|
218
236
|
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -220,9 +238,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
220
238
|
setEditorContainer: {
|
221
239
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
222
240
|
};
|
223
|
-
registerPluginContext: {
|
224
|
-
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
225
|
-
};
|
226
241
|
toolbarAction: {
|
227
242
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
228
243
|
};
|
@@ -237,14 +252,22 @@ export declare const useMarkdownToolbarStore: () => {
|
|
237
252
|
};
|
238
253
|
};
|
239
254
|
onDispatched: {
|
240
|
-
|
241
|
-
subscribe(fn: (result:
|
242
|
-
|
243
|
-
|
244
|
-
|
255
|
+
plugin: {
|
256
|
+
subscribe(fn: (result: {
|
257
|
+
register: {
|
258
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
259
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
260
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
261
|
+
};
|
262
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
245
263
|
};
|
246
|
-
|
247
|
-
subscribe(fn: (result:
|
264
|
+
content: {
|
265
|
+
subscribe(fn: (result: {
|
266
|
+
set: {
|
267
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
268
|
+
byString: (content: string) => void;
|
269
|
+
};
|
270
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
248
271
|
};
|
249
272
|
setEditorMode: {
|
250
273
|
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -252,9 +275,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
252
275
|
setEditorContainer: {
|
253
276
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
254
277
|
};
|
255
|
-
registerPluginContext: {
|
256
|
-
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
257
|
-
};
|
258
278
|
toolbarAction: {
|
259
279
|
subscribe(fn: (result: {
|
260
280
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -262,9 +282,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
262
282
|
};
|
263
283
|
formatting: {
|
264
284
|
subscribe(fn: (result: {
|
265
|
-
add: (element: HTMLElement,
|
266
|
-
toggle: (element: HTMLElement,
|
267
|
-
remove: (element: HTMLElement,
|
285
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
286
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
287
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
268
288
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
269
289
|
};
|
270
290
|
element: {
|
@@ -282,14 +302,11 @@ export declare const useMarkdownToolbarStore: () => {
|
|
282
302
|
};
|
283
303
|
};
|
284
304
|
onFailure: {
|
285
|
-
|
286
|
-
subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
287
|
-
};
|
288
|
-
toMarkdown: {
|
305
|
+
plugin: {
|
289
306
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
290
307
|
};
|
291
|
-
|
292
|
-
subscribe(fn: (failureReason: any
|
308
|
+
content: {
|
309
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
293
310
|
};
|
294
311
|
setEditorMode: {
|
295
312
|
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -297,9 +314,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
297
314
|
setEditorContainer: {
|
298
315
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
299
316
|
};
|
300
|
-
registerPluginContext: {
|
301
|
-
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
302
|
-
};
|
303
317
|
toolbarAction: {
|
304
318
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
305
319
|
};
|
@@ -314,19 +328,28 @@ export declare const useMarkdownToolbarStore: () => {
|
|
314
328
|
};
|
315
329
|
};
|
316
330
|
} & {
|
317
|
-
|
318
|
-
|
319
|
-
|
331
|
+
plugin: () => {
|
332
|
+
register: {
|
333
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
334
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
335
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
336
|
+
};
|
337
|
+
};
|
338
|
+
content: () => {
|
339
|
+
set: {
|
340
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
341
|
+
byString: (content: string) => void;
|
342
|
+
};
|
343
|
+
};
|
320
344
|
setEditorMode: (editMode: boolean) => void;
|
321
345
|
setEditorContainer: (el: HTMLDivElement) => void;
|
322
|
-
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
323
346
|
toolbarAction: () => {
|
324
347
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
325
348
|
};
|
326
349
|
formatting: () => {
|
327
|
-
add: (element: HTMLElement,
|
328
|
-
toggle: (element: HTMLElement,
|
329
|
-
remove: (element: HTMLElement,
|
350
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
351
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
352
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
330
353
|
};
|
331
354
|
element: () => {
|
332
355
|
createForComponent: (componentName: string) => HTMLDivElement;
|
@@ -339,15 +362,26 @@ export declare const useMarkdownToolbarStore: () => {
|
|
339
362
|
};
|
340
363
|
};
|
341
364
|
get: {
|
342
|
-
plugins: import("../models/
|
365
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
366
|
+
content: {
|
367
|
+
asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
|
368
|
+
asString: (cleanIds?: boolean) => string;
|
369
|
+
};
|
343
370
|
selection: {
|
344
371
|
has: {
|
345
372
|
dataType: (dataType: string) => boolean;
|
346
|
-
|
373
|
+
nodeName: (name: string) => boolean;
|
374
|
+
id: (id: number) => boolean;
|
347
375
|
};
|
348
376
|
get: {
|
349
|
-
byDataType: (dataType: string) =>
|
350
|
-
|
377
|
+
byDataType: (dataType: string) => import("../models/EditorModels").EditorNode;
|
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;
|
351
385
|
};
|
352
386
|
};
|
353
387
|
};
|
@@ -362,37 +396,38 @@ export declare const useMarkdownToolbarStore: () => {
|
|
362
396
|
setActiveEditorStore: {
|
363
397
|
subscribe(fn: (store: {
|
364
398
|
state: {
|
365
|
-
|
366
|
-
plugins: import("../models/
|
399
|
+
editorContent: import("../models/EditorModels").EditorContent;
|
400
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
367
401
|
editMode: boolean;
|
402
|
+
maxNodeId: number;
|
368
403
|
toolbarActions: MarkdownEditorActionRegistration[];
|
369
404
|
editor: HTMLDivElement;
|
370
|
-
|
405
|
+
selectedNodes: import("../models/EditorModels").EditorNode[];
|
406
|
+
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
371
407
|
telePorts: JSX.Element[];
|
372
408
|
id: string;
|
373
409
|
selectedRange: Range;
|
374
410
|
};
|
375
411
|
events: {
|
376
|
-
|
377
|
-
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/
|
412
|
+
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
413
|
+
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
378
414
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
415
|
+
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
379
416
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
380
417
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
381
|
-
|
418
|
+
onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorNode[]>;
|
419
|
+
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
382
420
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
383
421
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
384
422
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
385
423
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
386
424
|
actions: {
|
387
425
|
onDispatching: {
|
388
|
-
|
389
|
-
subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
390
|
-
};
|
391
|
-
toMarkdown: {
|
426
|
+
plugin: {
|
392
427
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
393
428
|
};
|
394
|
-
|
395
|
-
subscribe(fn: (
|
429
|
+
content: {
|
430
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
396
431
|
};
|
397
432
|
setEditorMode: {
|
398
433
|
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -400,9 +435,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
400
435
|
setEditorContainer: {
|
401
436
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
402
437
|
};
|
403
|
-
registerPluginContext: {
|
404
|
-
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
405
|
-
};
|
406
438
|
toolbarAction: {
|
407
439
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
408
440
|
};
|
@@ -417,14 +449,22 @@ export declare const useMarkdownToolbarStore: () => {
|
|
417
449
|
};
|
418
450
|
};
|
419
451
|
onDispatched: {
|
420
|
-
|
421
|
-
subscribe(fn: (result:
|
422
|
-
|
423
|
-
|
424
|
-
|
452
|
+
plugin: {
|
453
|
+
subscribe(fn: (result: {
|
454
|
+
register: {
|
455
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
456
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
457
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
458
|
+
};
|
459
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
425
460
|
};
|
426
|
-
|
427
|
-
subscribe(fn: (result:
|
461
|
+
content: {
|
462
|
+
subscribe(fn: (result: {
|
463
|
+
set: {
|
464
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
465
|
+
byString: (content: string) => void;
|
466
|
+
};
|
467
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
428
468
|
};
|
429
469
|
setEditorMode: {
|
430
470
|
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -432,9 +472,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
432
472
|
setEditorContainer: {
|
433
473
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
434
474
|
};
|
435
|
-
registerPluginContext: {
|
436
|
-
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
437
|
-
};
|
438
475
|
toolbarAction: {
|
439
476
|
subscribe(fn: (result: {
|
440
477
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -442,9 +479,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
442
479
|
};
|
443
480
|
formatting: {
|
444
481
|
subscribe(fn: (result: {
|
445
|
-
add: (element: HTMLElement,
|
446
|
-
toggle: (element: HTMLElement,
|
447
|
-
remove: (element: HTMLElement,
|
482
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
483
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
484
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
448
485
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
449
486
|
};
|
450
487
|
element: {
|
@@ -462,14 +499,11 @@ export declare const useMarkdownToolbarStore: () => {
|
|
462
499
|
};
|
463
500
|
};
|
464
501
|
onFailure: {
|
465
|
-
|
466
|
-
subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
467
|
-
};
|
468
|
-
toMarkdown: {
|
502
|
+
plugin: {
|
469
503
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
470
504
|
};
|
471
|
-
|
472
|
-
subscribe(fn: (failureReason: any
|
505
|
+
content: {
|
506
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
473
507
|
};
|
474
508
|
setEditorMode: {
|
475
509
|
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -477,9 +511,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
477
511
|
setEditorContainer: {
|
478
512
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
479
513
|
};
|
480
|
-
registerPluginContext: {
|
481
|
-
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
482
|
-
};
|
483
514
|
toolbarAction: {
|
484
515
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
485
516
|
};
|
@@ -494,19 +525,28 @@ export declare const useMarkdownToolbarStore: () => {
|
|
494
525
|
};
|
495
526
|
};
|
496
527
|
} & {
|
497
|
-
|
498
|
-
|
499
|
-
|
528
|
+
plugin: () => {
|
529
|
+
register: {
|
530
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
531
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
532
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
533
|
+
};
|
534
|
+
};
|
535
|
+
content: () => {
|
536
|
+
set: {
|
537
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
538
|
+
byString: (content: string) => void;
|
539
|
+
};
|
540
|
+
};
|
500
541
|
setEditorMode: (editMode: boolean) => void;
|
501
542
|
setEditorContainer: (el: HTMLDivElement) => void;
|
502
|
-
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
503
543
|
toolbarAction: () => {
|
504
544
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
505
545
|
};
|
506
546
|
formatting: () => {
|
507
|
-
add: (element: HTMLElement,
|
508
|
-
toggle: (element: HTMLElement,
|
509
|
-
remove: (element: HTMLElement,
|
547
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
548
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
549
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
510
550
|
};
|
511
551
|
element: () => {
|
512
552
|
createForComponent: (componentName: string) => HTMLDivElement;
|
@@ -519,15 +559,26 @@ export declare const useMarkdownToolbarStore: () => {
|
|
519
559
|
};
|
520
560
|
};
|
521
561
|
get: {
|
522
|
-
plugins: import("../models/
|
562
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
563
|
+
content: {
|
564
|
+
asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
|
565
|
+
asString: (cleanIds?: boolean) => string;
|
566
|
+
};
|
523
567
|
selection: {
|
524
568
|
has: {
|
525
569
|
dataType: (dataType: string) => boolean;
|
526
|
-
|
570
|
+
nodeName: (name: string) => boolean;
|
571
|
+
id: (id: number) => boolean;
|
527
572
|
};
|
528
573
|
get: {
|
529
|
-
byDataType: (dataType: string) =>
|
530
|
-
|
574
|
+
byDataType: (dataType: string) => import("../models/EditorModels").EditorNode;
|
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;
|
531
582
|
};
|
532
583
|
};
|
533
584
|
};
|
@@ -543,37 +594,38 @@ export declare const useMarkdownToolbarStore: () => {
|
|
543
594
|
setActiveEditorStore: {
|
544
595
|
subscribe(fn: (result: void, store: {
|
545
596
|
state: {
|
546
|
-
|
547
|
-
plugins: import("../models/
|
597
|
+
editorContent: import("../models/EditorModels").EditorContent;
|
598
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
548
599
|
editMode: boolean;
|
600
|
+
maxNodeId: number;
|
549
601
|
toolbarActions: MarkdownEditorActionRegistration[];
|
550
602
|
editor: HTMLDivElement;
|
551
|
-
|
603
|
+
selectedNodes: import("../models/EditorModels").EditorNode[];
|
604
|
+
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
552
605
|
telePorts: JSX.Element[];
|
553
606
|
id: string;
|
554
607
|
selectedRange: Range;
|
555
608
|
};
|
556
609
|
events: {
|
557
|
-
|
558
|
-
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/
|
610
|
+
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
611
|
+
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
559
612
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
613
|
+
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
560
614
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
561
615
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
562
|
-
|
616
|
+
onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorNode[]>;
|
617
|
+
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
563
618
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
564
619
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
565
620
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
566
621
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
567
622
|
actions: {
|
568
623
|
onDispatching: {
|
569
|
-
|
570
|
-
subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
571
|
-
};
|
572
|
-
toMarkdown: {
|
624
|
+
plugin: {
|
573
625
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
574
626
|
};
|
575
|
-
|
576
|
-
subscribe(fn: (
|
627
|
+
content: {
|
628
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
577
629
|
};
|
578
630
|
setEditorMode: {
|
579
631
|
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -581,9 +633,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
581
633
|
setEditorContainer: {
|
582
634
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
583
635
|
};
|
584
|
-
registerPluginContext: {
|
585
|
-
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
586
|
-
};
|
587
636
|
toolbarAction: {
|
588
637
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
589
638
|
};
|
@@ -598,14 +647,22 @@ export declare const useMarkdownToolbarStore: () => {
|
|
598
647
|
};
|
599
648
|
};
|
600
649
|
onDispatched: {
|
601
|
-
|
602
|
-
subscribe(fn: (result:
|
603
|
-
|
604
|
-
|
605
|
-
|
650
|
+
plugin: {
|
651
|
+
subscribe(fn: (result: {
|
652
|
+
register: {
|
653
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
654
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
655
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
656
|
+
};
|
657
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
606
658
|
};
|
607
|
-
|
608
|
-
subscribe(fn: (result:
|
659
|
+
content: {
|
660
|
+
subscribe(fn: (result: {
|
661
|
+
set: {
|
662
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
663
|
+
byString: (content: string) => void;
|
664
|
+
};
|
665
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
609
666
|
};
|
610
667
|
setEditorMode: {
|
611
668
|
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -613,9 +670,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
613
670
|
setEditorContainer: {
|
614
671
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
615
672
|
};
|
616
|
-
registerPluginContext: {
|
617
|
-
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
618
|
-
};
|
619
673
|
toolbarAction: {
|
620
674
|
subscribe(fn: (result: {
|
621
675
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -623,9 +677,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
623
677
|
};
|
624
678
|
formatting: {
|
625
679
|
subscribe(fn: (result: {
|
626
|
-
add: (element: HTMLElement,
|
627
|
-
toggle: (element: HTMLElement,
|
628
|
-
remove: (element: HTMLElement,
|
680
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
681
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
682
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
629
683
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
630
684
|
};
|
631
685
|
element: {
|
@@ -643,14 +697,11 @@ export declare const useMarkdownToolbarStore: () => {
|
|
643
697
|
};
|
644
698
|
};
|
645
699
|
onFailure: {
|
646
|
-
|
647
|
-
subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
648
|
-
};
|
649
|
-
toMarkdown: {
|
700
|
+
plugin: {
|
650
701
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
651
702
|
};
|
652
|
-
|
653
|
-
subscribe(fn: (failureReason: any
|
703
|
+
content: {
|
704
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
654
705
|
};
|
655
706
|
setEditorMode: {
|
656
707
|
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -658,9 +709,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
658
709
|
setEditorContainer: {
|
659
710
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
660
711
|
};
|
661
|
-
registerPluginContext: {
|
662
|
-
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
663
|
-
};
|
664
712
|
toolbarAction: {
|
665
713
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
666
714
|
};
|
@@ -675,19 +723,28 @@ export declare const useMarkdownToolbarStore: () => {
|
|
675
723
|
};
|
676
724
|
};
|
677
725
|
} & {
|
678
|
-
|
679
|
-
|
680
|
-
|
726
|
+
plugin: () => {
|
727
|
+
register: {
|
728
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
729
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
730
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
731
|
+
};
|
732
|
+
};
|
733
|
+
content: () => {
|
734
|
+
set: {
|
735
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
736
|
+
byString: (content: string) => void;
|
737
|
+
};
|
738
|
+
};
|
681
739
|
setEditorMode: (editMode: boolean) => void;
|
682
740
|
setEditorContainer: (el: HTMLDivElement) => void;
|
683
|
-
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
684
741
|
toolbarAction: () => {
|
685
742
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
686
743
|
};
|
687
744
|
formatting: () => {
|
688
|
-
add: (element: HTMLElement,
|
689
|
-
toggle: (element: HTMLElement,
|
690
|
-
remove: (element: HTMLElement,
|
745
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
746
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
747
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
691
748
|
};
|
692
749
|
element: () => {
|
693
750
|
createForComponent: (componentName: string) => HTMLDivElement;
|
@@ -700,15 +757,26 @@ export declare const useMarkdownToolbarStore: () => {
|
|
700
757
|
};
|
701
758
|
};
|
702
759
|
get: {
|
703
|
-
plugins: import("../models/
|
760
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
761
|
+
content: {
|
762
|
+
asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
|
763
|
+
asString: (cleanIds?: boolean) => string;
|
764
|
+
};
|
704
765
|
selection: {
|
705
766
|
has: {
|
706
767
|
dataType: (dataType: string) => boolean;
|
707
|
-
|
768
|
+
nodeName: (name: string) => boolean;
|
769
|
+
id: (id: number) => boolean;
|
708
770
|
};
|
709
771
|
get: {
|
710
|
-
byDataType: (dataType: string) =>
|
711
|
-
|
772
|
+
byDataType: (dataType: string) => import("../models/EditorModels").EditorNode;
|
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;
|
712
780
|
};
|
713
781
|
};
|
714
782
|
};
|
@@ -724,37 +792,38 @@ export declare const useMarkdownToolbarStore: () => {
|
|
724
792
|
setActiveEditorStore: {
|
725
793
|
subscribe(fn: (failureReason: any, store: {
|
726
794
|
state: {
|
727
|
-
|
728
|
-
plugins: import("../models/
|
795
|
+
editorContent: import("../models/EditorModels").EditorContent;
|
796
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
729
797
|
editMode: boolean;
|
798
|
+
maxNodeId: number;
|
730
799
|
toolbarActions: MarkdownEditorActionRegistration[];
|
731
800
|
editor: HTMLDivElement;
|
732
|
-
|
801
|
+
selectedNodes: import("../models/EditorModels").EditorNode[];
|
802
|
+
selectedNodeIds: import("../models/EditorModels").NodeIdSelection;
|
733
803
|
telePorts: JSX.Element[];
|
734
804
|
id: string;
|
735
805
|
selectedRange: Range;
|
736
806
|
};
|
737
807
|
events: {
|
738
|
-
|
739
|
-
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/
|
808
|
+
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorContent>;
|
809
|
+
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").EditorPlugin[]>;
|
740
810
|
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
811
|
+
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
741
812
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
|
742
813
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
743
|
-
|
814
|
+
onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").EditorNode[]>;
|
815
|
+
onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeIdSelection>;
|
744
816
|
onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
|
745
817
|
onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
746
818
|
onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
|
747
819
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
748
820
|
actions: {
|
749
821
|
onDispatching: {
|
750
|
-
|
751
|
-
subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
752
|
-
};
|
753
|
-
toMarkdown: {
|
822
|
+
plugin: {
|
754
823
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
755
824
|
};
|
756
|
-
|
757
|
-
subscribe(fn: (
|
825
|
+
content: {
|
826
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
758
827
|
};
|
759
828
|
setEditorMode: {
|
760
829
|
subscribe(fn: (editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -762,9 +831,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
762
831
|
setEditorContainer: {
|
763
832
|
subscribe(fn: (el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
764
833
|
};
|
765
|
-
registerPluginContext: {
|
766
|
-
subscribe(fn: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
767
|
-
};
|
768
834
|
toolbarAction: {
|
769
835
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
770
836
|
};
|
@@ -779,14 +845,22 @@ export declare const useMarkdownToolbarStore: () => {
|
|
779
845
|
};
|
780
846
|
};
|
781
847
|
onDispatched: {
|
782
|
-
|
783
|
-
subscribe(fn: (result:
|
784
|
-
|
785
|
-
|
786
|
-
|
848
|
+
plugin: {
|
849
|
+
subscribe(fn: (result: {
|
850
|
+
register: {
|
851
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
852
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
853
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
854
|
+
};
|
855
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
787
856
|
};
|
788
|
-
|
789
|
-
subscribe(fn: (result:
|
857
|
+
content: {
|
858
|
+
subscribe(fn: (result: {
|
859
|
+
set: {
|
860
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
861
|
+
byString: (content: string) => void;
|
862
|
+
};
|
863
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
790
864
|
};
|
791
865
|
setEditorMode: {
|
792
866
|
subscribe(fn: (result: void, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -794,9 +868,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
794
868
|
setEditorContainer: {
|
795
869
|
subscribe(fn: (result: void, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
796
870
|
};
|
797
|
-
registerPluginContext: {
|
798
|
-
subscribe(fn: (result: void, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
799
|
-
};
|
800
871
|
toolbarAction: {
|
801
872
|
subscribe(fn: (result: {
|
802
873
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
@@ -804,9 +875,9 @@ export declare const useMarkdownToolbarStore: () => {
|
|
804
875
|
};
|
805
876
|
formatting: {
|
806
877
|
subscribe(fn: (result: {
|
807
|
-
add: (element: HTMLElement,
|
808
|
-
toggle: (element: HTMLElement,
|
809
|
-
remove: (element: HTMLElement,
|
878
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
879
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
880
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
810
881
|
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
811
882
|
};
|
812
883
|
element: {
|
@@ -824,14 +895,11 @@ export declare const useMarkdownToolbarStore: () => {
|
|
824
895
|
};
|
825
896
|
};
|
826
897
|
onFailure: {
|
827
|
-
|
828
|
-
subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
829
|
-
};
|
830
|
-
toMarkdown: {
|
898
|
+
plugin: {
|
831
899
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
832
900
|
};
|
833
|
-
|
834
|
-
subscribe(fn: (failureReason: any
|
901
|
+
content: {
|
902
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
835
903
|
};
|
836
904
|
setEditorMode: {
|
837
905
|
subscribe(fn: (failureReason: any, editMode: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -839,9 +907,6 @@ export declare const useMarkdownToolbarStore: () => {
|
|
839
907
|
setEditorContainer: {
|
840
908
|
subscribe(fn: (failureReason: any, el: HTMLDivElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
841
909
|
};
|
842
|
-
registerPluginContext: {
|
843
|
-
subscribe(fn: (failureReason: any, ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
844
|
-
};
|
845
910
|
toolbarAction: {
|
846
911
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
847
912
|
};
|
@@ -856,19 +921,28 @@ export declare const useMarkdownToolbarStore: () => {
|
|
856
921
|
};
|
857
922
|
};
|
858
923
|
} & {
|
859
|
-
|
860
|
-
|
861
|
-
|
924
|
+
plugin: () => {
|
925
|
+
register: {
|
926
|
+
plugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
|
927
|
+
plugins: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings | import("@omnia/fx-models").MarkdownPluginSettings[]) => Promise<void>;
|
928
|
+
context: (ctx: import("../models/EditorPlugin").EditorPluginContext) => void;
|
929
|
+
};
|
930
|
+
};
|
931
|
+
content: () => {
|
932
|
+
set: {
|
933
|
+
byJSON: (content: import("../models/EditorModels").EditorContent) => void;
|
934
|
+
byString: (content: string) => void;
|
935
|
+
};
|
936
|
+
};
|
862
937
|
setEditorMode: (editMode: boolean) => void;
|
863
938
|
setEditorContainer: (el: HTMLDivElement) => void;
|
864
|
-
registerPluginContext: (ctx: import("../models/MarkdownPlugin").MarkdownPluginContext) => void;
|
865
939
|
toolbarAction: () => {
|
866
940
|
add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
|
867
941
|
};
|
868
942
|
formatting: () => {
|
869
|
-
add: (element: HTMLElement,
|
870
|
-
toggle: (element: HTMLElement,
|
871
|
-
remove: (element: HTMLElement,
|
943
|
+
add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
944
|
+
toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
945
|
+
remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
|
872
946
|
};
|
873
947
|
element: () => {
|
874
948
|
createForComponent: (componentName: string) => HTMLDivElement;
|
@@ -881,15 +955,26 @@ export declare const useMarkdownToolbarStore: () => {
|
|
881
955
|
};
|
882
956
|
};
|
883
957
|
get: {
|
884
|
-
plugins: import("../models/
|
958
|
+
plugins: import("../models/EditorPlugin").EditorPlugin[];
|
959
|
+
content: {
|
960
|
+
asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
|
961
|
+
asString: (cleanIds?: boolean) => string;
|
962
|
+
};
|
885
963
|
selection: {
|
886
964
|
has: {
|
887
965
|
dataType: (dataType: string) => boolean;
|
888
|
-
|
966
|
+
nodeName: (name: string) => boolean;
|
967
|
+
id: (id: number) => boolean;
|
889
968
|
};
|
890
969
|
get: {
|
891
|
-
byDataType: (dataType: string) =>
|
892
|
-
|
970
|
+
byDataType: (dataType: string) => import("../models/EditorModels").EditorNode;
|
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;
|
893
978
|
};
|
894
979
|
};
|
895
980
|
};
|