@omnia/fx 8.0.239-dev → 8.0.241-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.fx.ux.manifest.json +1 -1
- package/internal-do-not-import-from-here/stores/markdown/{MarkdownStateStore.d.ts → MarkdownToolbarStateStore.d.ts} +1 -10
- package/internal-do-not-import-from-here/stores/markdown/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/admin/recaptcha/ReCaptcha.d.ts +16 -13
- package/internal-do-not-import-from-here/ux/admin/usermanagement/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/AddPropertyBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/EditPropertyBlade.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/SelfServiceStore.d.ts +18 -8
- package/internal-do-not-import-from-here/ux/app/apps/admin/AppDefinitionsListing.d.ts +56 -0
- package/internal-do-not-import-from-here/ux/app/apps/admin/AppsConstants.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/button/ButtonPresets.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/journey/DefineBlade.d.ts +7 -3
- package/internal-do-not-import-from-here/ux/journey/JourneyBlade.d.ts +3 -2
- package/internal-do-not-import-from-here/ux/journey/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/journey/stores/JourneyStore.d.ts +18 -6
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +12 -2
- package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.d.ts +3 -392
- package/internal-do-not-import-from-here/ux/markdown2/commands/ClipboardCommands.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +23 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Editorhelper.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Nodehelper.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownPlugin.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/ColorStylePlugin.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/TypographyPlugin.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/ColorButton.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/TypographyButton.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +28 -55
- package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +856 -21
- package/internal-do-not-import-from-here/ux/oxide/btn/Button.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTableServer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/list/ListItem.d.ts +5 -6
- package/internal-do-not-import-from-here/ux/oxide/rating/Rating.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/ScrollContainer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/store/ScrollContainerStore.d.ts +12 -2
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/StickyContainer.d.ts +74 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/StickyContainer.stylex.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/ExampleComponents.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/SampleComponent.d.ts +47 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/docs/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/store/StickyContainerStore.d.ts +45 -0
- package/internal-do-not-import-from-here/ux/oxide/stickycontainer/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/oxide/tab/Tabs.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview.d.ts +2 -2
- package/internal-do-not-import-from-here/wctypings.d.ts +30 -17
- package/package.json +3 -3
- package/internal-do-not-import-from-here/ux/admin/businessprofile/manageprofiles/blades/HomeBlade_old.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/journey/use/UseBlade.d.ts +0 -79
- package/internal-do-not-import-from-here/ux/journey/use/index.d.ts +0 -1
@@ -101,10 +101,14 @@ export declare const useJourneyStore: () => {
|
|
101
101
|
subscribe(fn: (blade: {
|
102
102
|
readonly Blade: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyBlade").JourneyBladeProps, "id" | "getApi">>) => any;
|
103
103
|
readonly Menu: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyMenu").JourneyMenuProps, "id" | "getApi">>) => any;
|
104
|
-
|
105
|
-
|
104
|
+
DraggableDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
|
105
|
+
DraggableList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
106
|
+
DragAndRemoveList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
106
107
|
Draggable: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/draggable/Draggable").DraggableProps, "hideDraggableIcon">>) => any;
|
107
108
|
id: guid;
|
109
|
+
context: {
|
110
|
+
isListEditing: boolean;
|
111
|
+
};
|
108
112
|
readonly route: import("@omnia/fx-models").JourneyBladeRoute;
|
109
113
|
moveNext(): void;
|
110
114
|
movePrev(): void;
|
@@ -145,10 +149,14 @@ export declare const useJourneyStore: () => {
|
|
145
149
|
subscribe(fn: (result: void, blade: {
|
146
150
|
readonly Blade: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyBlade").JourneyBladeProps, "id" | "getApi">>) => any;
|
147
151
|
readonly Menu: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyMenu").JourneyMenuProps, "id" | "getApi">>) => any;
|
148
|
-
|
149
|
-
|
152
|
+
DraggableDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
|
153
|
+
DraggableList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
154
|
+
DragAndRemoveList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
150
155
|
Draggable: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/draggable/Draggable").DraggableProps, "hideDraggableIcon">>) => any;
|
151
156
|
id: guid;
|
157
|
+
context: {
|
158
|
+
isListEditing: boolean;
|
159
|
+
};
|
152
160
|
readonly route: import("@omnia/fx-models").JourneyBladeRoute;
|
153
161
|
moveNext(): void;
|
154
162
|
movePrev(): void;
|
@@ -189,10 +197,14 @@ export declare const useJourneyStore: () => {
|
|
189
197
|
subscribe(fn: (failureReason: any, blade: {
|
190
198
|
readonly Blade: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyBlade").JourneyBladeProps, "id" | "getApi">>) => any;
|
191
199
|
readonly Menu: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../JourneyMenu").JourneyMenuProps, "id" | "getApi">>) => any;
|
192
|
-
|
193
|
-
|
200
|
+
DraggableDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
|
201
|
+
DraggableList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
202
|
+
DragAndRemoveList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable" | "removable">>) => any;
|
194
203
|
Draggable: (props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/draggable/Draggable").DraggableProps, "hideDraggableIcon">>) => any;
|
195
204
|
id: guid;
|
205
|
+
context: {
|
206
|
+
isListEditing: boolean;
|
207
|
+
};
|
196
208
|
readonly route: import("@omnia/fx-models").JourneyBladeRoute;
|
197
209
|
moveNext(): void;
|
198
210
|
movePrev(): void;
|
@@ -24,7 +24,7 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
24
24
|
disableScrolling: boolean;
|
25
25
|
height: string;
|
26
26
|
width: string;
|
27
|
-
|
27
|
+
scrollingDirection: import("@omnia/fx-models").OScrollTypesCombination;
|
28
28
|
coordinates: {
|
29
29
|
readonly left: number;
|
30
30
|
readonly right: number;
|
@@ -38,7 +38,7 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
38
38
|
onMutatedDisableScrolling: MessageBusExposeOnlySubscription<boolean>;
|
39
39
|
onMutatedHeight: MessageBusExposeOnlySubscription<string>;
|
40
40
|
onMutatedWidth: MessageBusExposeOnlySubscription<string>;
|
41
|
-
|
41
|
+
onMutatedScrollingDirection: MessageBusExposeOnlySubscription<import("@omnia/fx-models").OScrollTypesCombination>;
|
42
42
|
onMutatedCoordinates: MessageBusExposeOnlySubscription<{
|
43
43
|
readonly left: number;
|
44
44
|
readonly right: number;
|
@@ -48,6 +48,9 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
48
48
|
} & Record<string, IMessageBusTopicPublishSubscriber<any>>;
|
49
49
|
actions: {
|
50
50
|
onDispatching: {
|
51
|
+
scroll: {
|
52
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
53
|
+
};
|
51
54
|
setHeight: {
|
52
55
|
subscribe(fn: (height: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
53
56
|
};
|
@@ -83,6 +86,9 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
83
86
|
};
|
84
87
|
};
|
85
88
|
onDispatched: {
|
89
|
+
scroll: {
|
90
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
91
|
+
};
|
86
92
|
setHeight: {
|
87
93
|
subscribe(fn: (result: void, height: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
88
94
|
};
|
@@ -118,6 +124,9 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
118
124
|
};
|
119
125
|
};
|
120
126
|
onFailure: {
|
127
|
+
scroll: {
|
128
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
129
|
+
};
|
121
130
|
setHeight: {
|
122
131
|
subscribe(fn: (failureReason: any, height: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
123
132
|
};
|
@@ -153,6 +162,7 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
153
162
|
};
|
154
163
|
};
|
155
164
|
} & {
|
165
|
+
scroll: () => void;
|
156
166
|
setHeight: (height: string) => void;
|
157
167
|
setWidth: (width: string) => void;
|
158
168
|
setScrolling: (scrolling: import("@omnia/fx-models").OScrollTypesCombination) => void;
|
@@ -1,200 +1,5 @@
|
|
1
|
-
import { guid } from "@omnia/fx-models";
|
2
1
|
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
|
3
|
-
editorId?:
|
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
|
-
};
|
2
|
+
editorId?: string;
|
198
3
|
}>) => {
|
199
4
|
$: import("vue").ComponentInternalInstance;
|
200
5
|
$data: {};
|
@@ -234,206 +39,12 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
|
|
234
39
|
$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
40
|
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
236
41
|
propsDefinition: import("@omnia/fx/ux").ExtractProps<{
|
237
|
-
editorId?:
|
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
|
-
};
|
42
|
+
editorId?: string;
|
432
43
|
}> & {
|
433
44
|
"v-slots"?: {} & Omit<{
|
434
45
|
default?: import("vue").Slot;
|
435
46
|
}, never>;
|
436
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "editorId"
|
47
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "editorId">;
|
437
48
|
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
438
49
|
[key: string]: any;
|
439
50
|
}>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export type builtIndataTypes = "text" | "formatting";
|
2
|
+
export declare function useEditorCommands(state: {
|
3
|
+
editor: HTMLDivElement;
|
4
|
+
selectedRange: Range;
|
5
|
+
}): {
|
6
|
+
actions: {
|
7
|
+
storeCursorPosition: () => void;
|
8
|
+
};
|
9
|
+
evenhandlers: {
|
10
|
+
backspace: () => void;
|
11
|
+
};
|
12
|
+
formatting: {
|
13
|
+
add: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
14
|
+
toggle: (element: HTMLElement) => void;
|
15
|
+
remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
|
16
|
+
};
|
17
|
+
element: {
|
18
|
+
add: (element: HTMLElement) => void;
|
19
|
+
create: (tagName: string, dataType: builtIndataTypes | string) => HTMLElement;
|
20
|
+
createText: () => HTMLParagraphElement;
|
21
|
+
createComponent: (componentName: string) => HTMLDivElement;
|
22
|
+
};
|
23
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export type builtIndataTypes = "text" | "formatting";
|
2
|
+
export declare function useNodeHelper(): {
|
3
|
+
removeExistingFormatting: (element: HTMLElement, range: Range) => boolean;
|
4
|
+
removeNodeAndKeepContent: (node: Node) => void;
|
5
|
+
surroundContents: (element: HTMLElement, range: Range) => void;
|
6
|
+
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MarkdownEditorActionRegistration } from "@omnia/fx-models";
|
1
2
|
import { useMarkdownStore } from "../stores/MarkdownStore";
|
2
3
|
export interface MarkdownPlugin {
|
3
4
|
name: string;
|
@@ -5,6 +6,7 @@ export interface MarkdownPlugin {
|
|
5
6
|
toMarkdown: (el: HTMLElement) => string;
|
6
7
|
toHtml: (el: HTMLDivElement, data: string | object, ctx: MarkdownPluginContext) => HTMLDivElement;
|
7
8
|
commands?: object;
|
9
|
+
actions?: Array<MarkdownEditorActionRegistration>;
|
8
10
|
}
|
9
11
|
export interface MarkdownPluginContext {
|
10
12
|
componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const colorStylePlugin: () => import("../models/MarkdownPlugin").MarkdownPlugin;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const typographyPlugin: () => import("../models/MarkdownPlugin").MarkdownPlugin;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => {
|
2
|
+
$: import("vue").ComponentInternalInstance;
|
3
|
+
$data: {};
|
4
|
+
$props: {};
|
5
|
+
$attrs: {
|
6
|
+
[x: string]: unknown;
|
7
|
+
};
|
8
|
+
$refs: {
|
9
|
+
[x: string]: unknown;
|
10
|
+
};
|
11
|
+
$slots: Readonly<{
|
12
|
+
[name: string]: import("vue").Slot<any>;
|
13
|
+
}>;
|
14
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
15
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
16
|
+
$emit: (event: string, ...args: any[]) => void;
|
17
|
+
$el: any;
|
18
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
19
|
+
beforeCreate?: (() => void) | (() => void)[];
|
20
|
+
created?: (() => void) | (() => void)[];
|
21
|
+
beforeMount?: (() => void) | (() => void)[];
|
22
|
+
mounted?: (() => void) | (() => void)[];
|
23
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
24
|
+
updated?: (() => void) | (() => void)[];
|
25
|
+
activated?: (() => void) | (() => void)[];
|
26
|
+
deactivated?: (() => void) | (() => void)[];
|
27
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
28
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
29
|
+
destroyed?: (() => void) | (() => void)[];
|
30
|
+
unmounted?: (() => void) | (() => void)[];
|
31
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
32
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
33
|
+
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)[];
|
34
|
+
};
|
35
|
+
$forceUpdate: () => void;
|
36
|
+
$nextTick: typeof import("vue").nextTick;
|
37
|
+
$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;
|
38
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
39
|
+
propsDefinition: import("@omnia/fx/ux").ExtractProps<{}> & {
|
40
|
+
"v-slots"?: {} & Omit<{
|
41
|
+
default?: import("vue").Slot;
|
42
|
+
}, never>;
|
43
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>;
|
44
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
+
[key: string]: any;
|
46
|
+
}>;
|
47
|
+
export default _default;
|