@omnia/fx 8.0.238-dev → 8.0.240-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
  2. package/internal-do-not-import-from-here/manifests/omnia.fx.ux.manifest.json +1 -1
  3. package/internal-do-not-import-from-here/stores/markdown/{MarkdownStateStore.d.ts → MarkdownToolbarStateStore.d.ts} +1 -10
  4. package/internal-do-not-import-from-here/stores/markdown/index.d.ts +1 -0
  5. package/internal-do-not-import-from-here/ux/admin/recaptcha/ReCaptcha.d.ts +16 -13
  6. package/internal-do-not-import-from-here/ux/admin/usermanagement/loc/localize.d.ts +2 -0
  7. package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/AddUserTypeBlade.d.ts +47 -0
  8. package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/EditPropertyBlade.d.ts +47 -0
  9. package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/EditUserTypeBlade.d.ts +47 -0
  10. package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/UserTypesBlade.d.ts +47 -0
  11. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/SelfServiceStore.d.ts +18 -8
  12. package/internal-do-not-import-from-here/ux/app/apps/admin/AppDefinitionsListing.d.ts +56 -0
  13. package/internal-do-not-import-from-here/ux/app/apps/admin/AppsConstants.d.ts +5 -0
  14. package/internal-do-not-import-from-here/ux/button/ButtonPresets.d.ts +1 -0
  15. package/internal-do-not-import-from-here/ux/journey/DefineBlade.d.ts +7 -3
  16. package/internal-do-not-import-from-here/ux/journey/JourneyBlade.d.ts +3 -2
  17. package/internal-do-not-import-from-here/ux/journey/index.d.ts +0 -1
  18. package/internal-do-not-import-from-here/ux/journey/stores/JourneyStore.d.ts +18 -6
  19. package/internal-do-not-import-from-here/ux/markdown2/MarkdownEditorFuture.d.ts +5 -1
  20. package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.css.d.ts +5 -0
  21. package/internal-do-not-import-from-here/ux/markdown2/MarkdownToolbar.d.ts +52 -0
  22. package/internal-do-not-import-from-here/ux/markdown2/commands/ClipboardCommands.d.ts +4 -0
  23. package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +23 -0
  24. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Editorhelper.d.ts +7 -0
  25. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Nodehelper.d.ts +6 -0
  26. package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownPlugin.d.ts +3 -0
  27. package/internal-do-not-import-from-here/ux/markdown2/plugins/ColorStylePlugin.d.ts +1 -0
  28. package/internal-do-not-import-from-here/ux/markdown2/plugins/TypographyPlugin.d.ts +1 -0
  29. package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/ColorButton.d.ts +47 -0
  30. package/internal-do-not-import-from-here/ux/markdown2/plugins/buttons/TypographyButton.d.ts +47 -0
  31. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +69 -19
  32. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +872 -0
  33. package/internal-do-not-import-from-here/ux/oxide/btn/Button.d.ts +5 -5
  34. package/internal-do-not-import-from-here/ux/oxide/datatable/DataTableServer.d.ts +1 -1
  35. package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +2 -2
  36. package/internal-do-not-import-from-here/ux/oxide/list/ListItem.d.ts +5 -6
  37. package/internal-do-not-import-from-here/ux/oxide/rating/Rating.d.ts +1 -1
  38. package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview.d.ts +2 -2
  39. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +6 -232
  40. package/internal-do-not-import-from-here/wctypings.d.ts +13 -0
  41. package/package.json +3 -3
  42. package/internal-do-not-import-from-here/ux/admin/businessprofile/manageprofiles/blades/HomeBlade_old.d.ts +0 -1
  43. package/internal-do-not-import-from-here/ux/journey/use/UseBlade.d.ts +0 -79
  44. package/internal-do-not-import-from-here/ux/journey/use/index.d.ts +0 -1
  45. /package/internal-do-not-import-from-here/ux/admin/usermanagement/self-service/{NotifyBlade.d.ts → AddPropertyBlade.d.ts} +0 -0
@@ -10,14 +10,18 @@ type BladeElement = (props: ConstructComponentProps<Omit<JourneyBladeProps, "id"
10
10
  type BladeMenuElement = (props: ConstructComponentProps<Omit<JourneyMenuProps, "id" | "getApi">>) => any;
11
11
  type DatatTableComponentTypings = <T1>(props: ConstructComponentProps<Omit<DataTableProps<T1>, "draggable">>) => any;
12
12
  type DraggableComponentTypings = (props: ConstructComponentProps<Omit<DraggableProps, "hideDraggableIcon">>) => any;
13
- type ListComponentTypings = <T1>(props: ConstructComponentProps<Omit<OListProps<T1>, "draggable">>) => any;
13
+ type ListComponentTypings = <T1>(props: ConstructComponentProps<Omit<OListProps<T1>, "draggable" | "removable">>) => any;
14
14
  export declare function defineBlade<TRoute extends JourneyBladeRoute = {}>(bladeId: guid, renderer?: (blade: BladeElement) => VNodeChild): {
15
15
  readonly Blade: BladeElement;
16
16
  readonly Menu: BladeMenuElement;
17
- ManageDataTable: DatatTableComponentTypings;
18
- ManageList: ListComponentTypings;
17
+ DraggableDataTable: DatatTableComponentTypings;
18
+ DraggableList: ListComponentTypings;
19
+ DragAndRemoveList: ListComponentTypings;
19
20
  Draggable: DraggableComponentTypings;
20
21
  id: guid;
22
+ context: {
23
+ isListEditing: boolean;
24
+ };
21
25
  readonly route: TRoute;
22
26
  moveNext(): void;
23
27
  movePrev(): void;
@@ -11,7 +11,7 @@ export interface DisabledButtonTooltips {
11
11
  delete?: string;
12
12
  remove?: string;
13
13
  }
14
- export type JourneyBladeProps = DefineProp<"getApi", (store: ReturnType<typeof useJourneyStore>) => void, false, null, "callback to get a reference to the journey store. The store is used to navigate the journey blades."> & DefineProp<"title", string, false, null, "Specify the title of the blade."> & DefineProp<"toned", boolean, false, null, "IF the color is toned"> & DefineProp<"subTitle", string, false, null, "Specify a subtitle for the blade and the title is displayed in a breadcrumb style where the subTittle is prominent."> & DefineProp<"id", guid, true, null, "The id of the blade. Used to identify the blade in the journey store."> & DefineProp<"size", BladeSizeTypes, false, "x-small", "Specify the size of the blade. Small will show the header buttons as icons."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"ok", boolean, false, false, "Specify if the blade should show a ok button. If a ok button is shown, a cancel button will also be shown."> & DefineProp<"save", boolean, false, false, "Specify if the blade should show a save button. If a save button is shown, a cancel button will also be shown."> & DefineProp<"searchable", boolean, false, false, "Specify if the blade should show a search field."> & DefineProp<"delete", boolean, false, false, "Specify if the blade should show a delete button."> & DefineProp<"remove", boolean, false, false, "Specify if the blade should show a remove button."> & DefineProp<"disabled", boolean, false, false, "Specify if the blade should shoud be read only."> & DefineProp<"manageList", boolean, false, false, "Specify if the blade shoud be draggable on items."> & DefineProp<"switch", SwitchValue, false, null, "Specify if the blade should show switch."> & DefineProp<"settings", boolean, false, false, "Specify if the blade should show a settings button."> & DefineProp<"create", boolean, false, false, "Specify if the blade should show a create button."> & DefineProp<"bladeContext", BladeContexts | BladeContext, false, null, "Specify context of the journey."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the blade header. This should be used to hightlight the blade type such as create blades, edit blades etc."> & DefineProp<"variant", BladeVariantTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"onOk", () => boolean | Promise<boolean>, false, null, "Trigger when user click ok, return true if ok to close the blade."> & DefineProp<"onRemove", () => boolean | Promise<boolean>, false, null, "Trigger when user click remove, return true if ok to close the blade."> & DefineProp<"onSave", () => boolean | Promise<boolean>, false, null, "Trigger when user click save, return true if ok to close the blade."> & DefineProp<"onDelete", () => boolean | Promise<boolean>, false, null, "Trigger when user click delete, return true if ok to close the blade."> & DefineProp<"onSwitch", (value: boolean) => boolean | Promise<boolean>, false, null, "Trigger when user toggle switch, return true if ok to close the blade."> & DefineProp<"confirmDeleteDialogOption", ConfirmDialogOptions, false, null, "Specify a set of options for the confirm dialog shown before deleting."> & DefineProp<"disabledButtonTooltips", DisabledButtonTooltips, false, null, "Specify a set of options for the confirm dialog shown before deleting."> & DefineSlot<"actions", () => VNodeChild> & DefineSlot<"actionsFooter", () => VNodeChild> & DefineEmit<"click:add", (id: guid) => true> & DefineEmit<"click:back", (id: guid) => true> & DefineEmit<"click:cancel", (id: guid) => true> & DefineEmit<"click:settings", (id: guid) => true> & DefineEmit<"click:confirm", () => true> & DefineEmit<"search", (searchText: string) => true> & DefineEmit<"click:manageList", () => true>;
14
+ export type JourneyBladeProps = DefineProp<"getApi", (store: ReturnType<typeof useJourneyStore>) => void, false, null, "callback to get a reference to the journey store. The store is used to navigate the journey blades."> & DefineProp<"title", string, false, null, "Specify the title of the blade."> & DefineProp<"toned", boolean, false, null, "IF the color is toned"> & DefineProp<"subTitle", string, false, null, "Specify a subtitle for the blade and the title is displayed in a breadcrumb style where the subTittle is prominent."> & DefineProp<"id", guid, true, null, "The id of the blade. Used to identify the blade in the journey store."> & DefineProp<"size", BladeSizeTypes, false, "x-small", "Specify the size of the blade. Small will show the header buttons as icons."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"ok", boolean, false, false, "Specify if the blade should show a ok button. If a ok button is shown, a cancel button will also be shown."> & DefineProp<"save", boolean, false, false, "Specify if the blade should show a save button. If a save button is shown, a cancel button will also be shown."> & DefineProp<"searchable", boolean, false, false, "Specify if the blade should show a search field."> & DefineProp<"delete", boolean, false, false, "Specify if the blade should show a delete button."> & DefineProp<"remove", boolean, false, false, "Specify if the blade should show a remove button."> & DefineProp<"disabled", boolean, false, false, "Specify if the blade should shoud be read only."> & DefineProp<"manageList", boolean, false, false, "Specify if the blade shoud be draggable on items."> & DefineProp<"switch", SwitchValue, false, null, "Specify if the blade should show switch."> & DefineProp<"settings", boolean, false, false, "Specify if the blade should show a settings button."> & DefineProp<"create", boolean, false, false, "Specify if the blade should show a create button."> & DefineProp<"add", boolean, false, false, "Specify if the blade should show a add button."> & DefineProp<"bladeContext", BladeContexts | BladeContext, false, null, "Specify context of the journey."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the blade header. This should be used to hightlight the blade type such as create blades, edit blades etc."> & DefineProp<"variant", BladeVariantTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"onOk", () => boolean | Promise<boolean>, false, null, "Trigger when user click ok, return true if ok to close the blade."> & DefineProp<"onRemove", () => boolean | Promise<boolean>, false, null, "Trigger when user click remove, return true if ok to close the blade."> & DefineProp<"onSave", () => boolean | Promise<boolean>, false, null, "Trigger when user click save, return true if ok to close the blade."> & DefineProp<"onDelete", () => boolean | Promise<boolean>, false, null, "Trigger when user click delete, return true if ok to close the blade."> & DefineProp<"onSwitch", (value: boolean) => boolean | Promise<boolean>, false, null, "Trigger when user toggle switch, return true if ok to close the blade."> & DefineProp<"confirmDeleteDialogOption", ConfirmDialogOptions, false, null, "Specify a set of options for the confirm dialog shown before deleting."> & DefineProp<"disabledButtonTooltips", DisabledButtonTooltips, false, null, "Specify a set of options for the confirm dialog shown before deleting."> & DefineSlot<"actions", () => VNodeChild> & DefineSlot<"actionsFooter", () => VNodeChild> & DefineEmit<"click:create", (id: guid) => true> & DefineEmit<"click:add", (id: guid) => true> & DefineEmit<"click:back", (id: guid) => true> & DefineEmit<"click:cancel", (id: guid) => true> & DefineEmit<"click:settings", (id: guid) => true> & DefineEmit<"click:confirm", () => true> & DefineEmit<"search", (searchText: string) => true> & DefineEmit<"click:manageList", () => true>;
15
15
  declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<JourneyBladeProps>) => {
16
16
  $: import("vue").ComponentInternalInstance;
17
17
  $data: {};
@@ -62,10 +62,11 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<J
62
62
  "onClick:confirm"?: () => any;
63
63
  "onClick:back"?: (id: guid) => any;
64
64
  onSearch?: (searchText: string) => any;
65
+ "onClick:create"?: (id: guid) => any;
65
66
  "onClick:add"?: (id: guid) => any;
66
67
  "onClick:settings"?: (id: guid) => any;
67
68
  "onClick:manageList"?: () => any;
68
- } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "switch" | "icon" | "title" | "id" | "delete" | "size" | "disabled" | "toned" | "settings" | "remove" | "variant" | "subTitle" | "create" | "ok" | "save" | "getApi" | "loading" | "searchable" | "manageList" | "bladeContext" | "onOk" | "onRemove" | "onSave" | "onDelete" | "onSwitch" | "confirmDeleteDialogOption" | "disabledButtonTooltips">;
69
+ } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "switch" | "icon" | "title" | "add" | "id" | "delete" | "size" | "disabled" | "toned" | "settings" | "remove" | "variant" | "subTitle" | "create" | "ok" | "save" | "getApi" | "loading" | "searchable" | "manageList" | "bladeContext" | "onOk" | "onRemove" | "onSave" | "onDelete" | "onSwitch" | "confirmDeleteDialogOption" | "disabledButtonTooltips">;
69
70
  } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
70
71
  [key: string]: any;
71
72
  }>;
@@ -1,5 +1,4 @@
1
1
  export * from "./stores";
2
2
  export * from "./models";
3
- export * from "./use";
4
3
  export * from "./JourneyContext";
5
4
  export * from "./DefineBlade";
@@ -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
- ManageDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
105
- ManageList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable">>) => any;
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
- ManageDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
149
- ManageList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable">>) => any;
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
- ManageDataTable: <T1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/datatable/DataTable").DataTableProps<T1>, "draggable">>) => any;
193
- ManageList: <T1_1>(props: import("@omnia/fx/ux").ConstructComponentProps<Omit<import("../../oxide/list/List").OListProps<T1_1>, "draggable">>) => any;
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;
@@ -8,6 +8,8 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
8
8
  modelValue?: string;
9
9
  } & {
10
10
  placeholder?: string;
11
+ } & {
12
+ toolbar?: boolean;
11
13
  } & {
12
14
  edit?: boolean;
13
15
  } & {
@@ -58,6 +60,8 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
58
60
  modelValue?: string;
59
61
  } & {
60
62
  placeholder?: string;
63
+ } & {
64
+ toolbar?: boolean;
61
65
  } & {
62
66
  edit?: boolean;
63
67
  } & {
@@ -68,7 +72,7 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
68
72
  }, never>;
69
73
  } & {
70
74
  "onUpdate:modelValue"?: (value: string) => any;
71
- } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "placeholder" | "edit" | "v-model" | "onUpdate:modelValue" | "modelValue" | "getApi">;
75
+ } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "toolbar" | "placeholder" | "edit" | "v-model" | "onUpdate:modelValue" | "modelValue" | "getApi">;
72
76
  } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
73
77
  [key: string]: any;
74
78
  }>;
@@ -0,0 +1,5 @@
1
+ export declare const MarkdownToolbarStyles: {
2
+ wrapper: string;
3
+ show: string;
4
+ hide: string;
5
+ };
@@ -0,0 +1,52 @@
1
+ import { guid } from "@omnia/fx-models";
2
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
3
+ editorId?: guid;
4
+ }>) => {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: {};
8
+ $attrs: {
9
+ [x: string]: unknown;
10
+ };
11
+ $refs: {
12
+ [x: string]: unknown;
13
+ };
14
+ $slots: Readonly<{
15
+ [name: string]: import("vue").Slot<any>;
16
+ }>;
17
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
18
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
19
+ $emit: (event: string, ...args: any[]) => void;
20
+ $el: any;
21
+ $options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
22
+ beforeCreate?: (() => void) | (() => void)[];
23
+ created?: (() => void) | (() => void)[];
24
+ beforeMount?: (() => void) | (() => void)[];
25
+ mounted?: (() => void) | (() => void)[];
26
+ beforeUpdate?: (() => void) | (() => void)[];
27
+ updated?: (() => void) | (() => void)[];
28
+ activated?: (() => void) | (() => void)[];
29
+ deactivated?: (() => void) | (() => void)[];
30
+ beforeDestroy?: (() => void) | (() => void)[];
31
+ beforeUnmount?: (() => void) | (() => void)[];
32
+ destroyed?: (() => void) | (() => void)[];
33
+ unmounted?: (() => void) | (() => void)[];
34
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
35
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
36
+ 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)[];
37
+ };
38
+ $forceUpdate: () => void;
39
+ $nextTick: typeof import("vue").nextTick;
40
+ $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;
41
+ } & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
42
+ propsDefinition: import("@omnia/fx/ux").ExtractProps<{
43
+ editorId?: guid;
44
+ }> & {
45
+ "v-slots"?: {} & Omit<{
46
+ default?: import("vue").Slot;
47
+ }, never>;
48
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "editorId">;
49
+ } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>;
52
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export type builtIndataTypes = "text" | "formatting";
2
+ export declare function useClipboardCommands(): {
3
+ paste: (ev: ClipboardEvent) => void;
4
+ };
@@ -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,7 @@
1
+ export type builtIndataTypes = "text" | "formatting";
2
+ export declare function useEditorHelper(): {
3
+ storeCursorPosition: (state: {
4
+ selectedRange: Range;
5
+ }) => void;
6
+ ensureSelectionIsInEditor: (range: Range) => void;
7
+ };
@@ -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,9 +1,12 @@
1
+ import { MarkdownEditorActionRegistration } from "@omnia/fx-models";
1
2
  import { useMarkdownStore } from "../stores/MarkdownStore";
2
3
  export interface MarkdownPlugin {
3
4
  name: string;
4
5
  type: "inline" | "component";
5
6
  toMarkdown: (el: HTMLElement) => string;
6
7
  toHtml: (el: HTMLDivElement, data: string | object, ctx: MarkdownPluginContext) => HTMLDivElement;
8
+ commands?: object;
9
+ actions?: Array<MarkdownEditorActionRegistration>;
7
10
  }
8
11
  export interface MarkdownPluginContext {
9
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;
@@ -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;
@@ -1,21 +1,23 @@
1
- import { VelcronAppDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
1
+ import { MarkdownEditorActionRegistration } from "@omnia/fx-models";
2
2
  import { MarkdownPlugin, MarkdownPluginContext } from "../models/MarkdownPlugin";
3
3
  export declare const useMarkdownStore: () => {
4
4
  state: {
5
5
  markdownContent: string;
6
6
  editMode: boolean;
7
+ toolbarActions: MarkdownEditorActionRegistration[];
7
8
  editor: HTMLDivElement;
8
9
  telePorts: JSX.Element[];
9
10
  id: string;
10
- storedRange: Range;
11
+ selectedRange: Range;
11
12
  };
12
13
  events: {
13
14
  onMutatedMarkdownContent: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<string>;
14
15
  onMutatedEditMode: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<boolean>;
16
+ onMutatedToolbarActions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
15
17
  onMutatedEditor: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<HTMLDivElement>;
16
18
  onMutatedTelePorts: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<JSX.Element[]>;
17
19
  onMutatedId: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<string>;
18
- onMutatedStoredRange: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<Range>;
20
+ onMutatedSelectedRange: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<Range>;
19
21
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
20
22
  actions: {
21
23
  onDispatching: {
@@ -40,11 +42,17 @@ export declare const useMarkdownStore: () => {
40
42
  registerPluginContext: {
41
43
  subscribe(fn: (ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
42
44
  };
43
- createComponent: {
44
- subscribe(fn: (componentDef: any, props: {}, el: HTMLElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
45
+ toolbarAction: {
46
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
45
47
  };
46
- addVelcronDefinition: {
47
- subscribe(fn: (definition: VelcronAppDefinition<object>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
48
+ formatting: {
49
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
+ };
51
+ element: {
52
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
53
+ };
54
+ commands: {
55
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
48
56
  };
49
57
  };
50
58
  onDispatched: {
@@ -69,11 +77,30 @@ export declare const useMarkdownStore: () => {
69
77
  registerPluginContext: {
70
78
  subscribe(fn: (result: void, ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
71
79
  };
72
- createComponent: {
73
- subscribe(fn: (result: void, componentDef: any, props: {}, el: HTMLElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
74
- };
75
- addVelcronDefinition: {
76
- subscribe(fn: (result: void, definition: VelcronAppDefinition<object>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
80
+ toolbarAction: {
81
+ subscribe(fn: (result: {
82
+ add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
83
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
84
+ };
85
+ formatting: {
86
+ subscribe(fn: (result: {
87
+ add: (element: HTMLElement, toggleIfExists?: boolean) => void;
88
+ toggle: (element: HTMLElement) => void;
89
+ remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
90
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
91
+ };
92
+ element: {
93
+ subscribe(fn: (result: {
94
+ createForComponent: (componentName: string) => HTMLDivElement;
95
+ createText: () => HTMLParagraphElement;
96
+ create: (tagName: string, dataType: string) => HTMLElement;
97
+ add: (element: HTMLElement) => void;
98
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
99
+ };
100
+ commands: {
101
+ subscribe(fn: (result: {
102
+ exec: (command: string, data: object) => void;
103
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
77
104
  };
78
105
  };
79
106
  onFailure: {
@@ -98,11 +125,17 @@ export declare const useMarkdownStore: () => {
98
125
  registerPluginContext: {
99
126
  subscribe(fn: (failureReason: any, ctx: MarkdownPluginContext) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
100
127
  };
101
- createComponent: {
102
- subscribe(fn: (failureReason: any, componentDef: any, props: {}, el: HTMLElement) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
128
+ toolbarAction: {
129
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
130
+ };
131
+ formatting: {
132
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
103
133
  };
104
- addVelcronDefinition: {
105
- subscribe(fn: (failureReason: any, definition: VelcronAppDefinition<object>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
134
+ element: {
135
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
136
+ };
137
+ commands: {
138
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
106
139
  };
107
140
  };
108
141
  } & {
@@ -113,8 +146,25 @@ export declare const useMarkdownStore: () => {
113
146
  setEditorMode: (editMode: boolean) => void;
114
147
  setEditorContainer: (el: HTMLDivElement) => void;
115
148
  registerPluginContext: (ctx: MarkdownPluginContext) => void;
116
- createComponent: (componentDef: any, props: {}, el: HTMLElement) => void;
117
- addVelcronDefinition: (definition: VelcronAppDefinition) => void;
149
+ toolbarAction: () => {
150
+ add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
151
+ };
152
+ formatting: () => {
153
+ add: (element: HTMLElement, toggleIfExists?: boolean) => void;
154
+ toggle: (element: HTMLElement) => void;
155
+ remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
156
+ };
157
+ element: () => {
158
+ createForComponent: (componentName: string) => HTMLDivElement;
159
+ createText: () => HTMLParagraphElement;
160
+ create: (tagName: string, dataType: string) => HTMLElement;
161
+ add: (element: HTMLElement) => void;
162
+ };
163
+ commands: () => {
164
+ exec: (command: string, data: object) => void;
165
+ };
166
+ };
167
+ get: {
168
+ plugins: MarkdownPlugin[];
118
169
  };
119
- get: {};
120
170
  };