@omnia/fx 8.0.299-dev → 8.0.301-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/internal-do-not-import-from-here/core/utils/Utils.d.ts +1 -0
  2. package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
  3. package/internal-do-not-import-from-here/{ux/aurora/store → services}/ThemeService.d.ts +3 -4
  4. package/internal-do-not-import-from-here/services/index.d.ts +1 -0
  5. package/internal-do-not-import-from-here/stores/DefineStore.d.ts +23 -10
  6. package/internal-do-not-import-from-here/stores/LocalizationStore.d.ts +3 -28
  7. package/internal-do-not-import-from-here/stores/SizeContainerStore.d.ts +6 -31
  8. package/internal-do-not-import-from-here/stores/floweditor/FlowEditorPluginStore.d.ts +6 -31
  9. package/internal-do-not-import-from-here/stores/floweditor/FlowEditorToolbarStateStore.d.ts +5 -21
  10. package/internal-do-not-import-from-here/stores/mediapicker/ImageTransformerStore.d.ts +24 -215
  11. package/internal-do-not-import-from-here/stores/mediapicker/MediaPickerCommonStore.d.ts +7 -59
  12. package/internal-do-not-import-from-here/stores/mediapicker/MediaPickerGalleryStore.d.ts +17 -123
  13. package/internal-do-not-import-from-here/stores/mediapicker/ProviderStore.d.ts +24 -160
  14. package/internal-do-not-import-from-here/stores/oxide/ComponentHostStore.d.ts +9 -70
  15. package/internal-do-not-import-from-here/stores/oxide/ComponentSharedSettingsStore.d.ts +5 -21
  16. package/internal-do-not-import-from-here/ux/ComponentTypings.d.ts +4 -1
  17. package/internal-do-not-import-from-here/ux/admin/businessprofile/manageprofiles/BusinessProfileJourneyStore.d.ts +6 -58
  18. package/internal-do-not-import-from-here/ux/admin/security/store/AppInstanceJourneyStore.d.ts +6 -22
  19. package/internal-do-not-import-from-here/ux/admin/security/store/ProfileJourneyStore.d.ts +6 -22
  20. package/internal-do-not-import-from-here/ux/admin/security/store/TenantJourneyStore.d.ts +6 -22
  21. package/internal-do-not-import-from-here/ux/admin/settings/blades/mediapicker/store/SettingsBladeStore.d.ts +7 -50
  22. package/internal-do-not-import-from-here/ux/admin/settings/blades/redirect/store/OmniaRedirectStore.d.ts +2 -72
  23. package/internal-do-not-import-from-here/ux/admin/store/AdminStore.d.ts +2 -27
  24. package/internal-do-not-import-from-here/ux/admin/system/store/SystemJourneyStore.d.ts +6 -49
  25. package/internal-do-not-import-from-here/ux/admin/system/submenu/localizationadmin/stores/LocalizationAdminStore.d.ts +8 -78
  26. package/internal-do-not-import-from-here/ux/admin/system/submenu/seo/store/SeoManagerStore.d.ts +2 -27
  27. package/internal-do-not-import-from-here/ux/admin/system/submenu/services/store/ServicesJourneyStore.d.ts +6 -31
  28. package/internal-do-not-import-from-here/ux/admin/systemlayout/store/SystemLayoutStore.d.ts +4 -126
  29. package/internal-do-not-import-from-here/ux/admin/usermanagement/authentication/BusinessProfileAuthenticationStore.d.ts +5 -39
  30. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/GroupDetailStore.d.ts +1 -6
  31. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/GroupQueryStore.d.ts +2 -45
  32. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/SelfServiceStore.d.ts +11 -72
  33. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/UserDetailStore.d.ts +2 -54
  34. package/internal-do-not-import-from-here/ux/admin/usermanagement/shared/UserQueryStore.d.ts +2 -84
  35. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/blades/ContainersFillsBlade.d.ts +16 -0
  36. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/ButtonsEditorStore.d.ts +11 -43
  37. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/ChromeEditorStore.d.ts +11 -72
  38. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/ComponentEditorStore.d.ts +72 -378
  39. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/ContainerFillsEditorStore.d.ts +27 -0
  40. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/IconsEditorStore.d.ts +7 -41
  41. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/TabsEditorStore.d.ts +7 -41
  42. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/spacing/store/SpacingEditorStore.d.ts +8 -87
  43. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/typography/store/TypographyEditorStore.d.ts +11 -147
  44. package/internal-do-not-import-from-here/ux/aurora/admin/blades/colorschemas/store/ColorSchemaEditorStore.d.ts +6 -58
  45. package/internal-do-not-import-from-here/ux/aurora/admin/blades/fontsmanager/store/FontManagerStore.d.ts +2 -54
  46. package/internal-do-not-import-from-here/ux/aurora/admin/blades/templates/store/TemplateEditorStore.d.ts +8 -123
  47. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themedesigner/store/ThemeDesignerStore.d.ts +8 -33
  48. package/internal-do-not-import-from-here/ux/aurora/admin/blades/themes/store/ThemeEditorStore.d.ts +7 -59
  49. package/internal-do-not-import-from-here/ux/aurora/blueprintstrategy/BlueprintStrategyBase.d.ts +2 -0
  50. package/internal-do-not-import-from-here/ux/aurora/blueprintstrategy/MD3Blueprint.d.ts +2 -0
  51. package/internal-do-not-import-from-here/ux/aurora/blueprintstrategy/index.d.ts +1 -0
  52. package/internal-do-not-import-from-here/ux/aurora/components/buttonstyle/ButtonBlueprintsViewer.d.ts +6 -1
  53. package/internal-do-not-import-from-here/ux/aurora/components/buttonstyle/ButtonStylePicker.d.ts +3 -3
  54. package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker → containerFillpicker}/ContainerBlueprintsViewer.d.ts +5 -5
  55. package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker/ContainerPicker.d.ts → containerFillpicker/ContainerFillPicker.d.ts} +91 -91
  56. package/internal-do-not-import-from-here/ux/aurora/index.d.ts +1 -0
  57. package/internal-do-not-import-from-here/ux/aurora/store/ColorSchemaStore.d.ts +4 -44
  58. package/internal-do-not-import-from-here/ux/aurora/store/ComponentBlueprintStore.d.ts +10 -33
  59. package/internal-do-not-import-from-here/ux/aurora/store/FontStore.d.ts +2 -63
  60. package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +21 -406
  61. package/internal-do-not-import-from-here/ux/aurora/store/TemplateRegistrationStore.d.ts +5 -39
  62. package/internal-do-not-import-from-here/ux/aurora/store/ThemeContextStore.d.ts +180 -700
  63. package/internal-do-not-import-from-here/ux/aurora/store/ThemeStorage.d.ts +8 -44
  64. package/internal-do-not-import-from-here/ux/aurora/store/ThemeStore.d.ts +15 -57
  65. package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +22 -407
  66. package/internal-do-not-import-from-here/ux/aurora/styling/styles/Blueprints.d.ts +1 -1
  67. package/internal-do-not-import-from-here/ux/commandpalette/CommandPalette.css.d.ts +4 -4
  68. package/internal-do-not-import-from-here/ux/docs/omfx/services/docs/Service.d.ts +1 -5
  69. package/internal-do-not-import-from-here/ux/docs/omfx/stores/docs/Store.d.ts +9 -34
  70. package/internal-do-not-import-from-here/ux/errormessage/ErrorMessage.d.ts +2 -34
  71. package/internal-do-not-import-from-here/ux/features/stores/FeatureJourneyStore.d.ts +29 -117
  72. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorButton.d.ts +20 -246
  73. package/internal-do-not-import-from-here/ux/flow/editor/plugins/link/LinkButton.d.ts +20 -246
  74. package/internal-do-not-import-from-here/ux/flow/editor/plugins/spacing/SpacingButton.d.ts +20 -246
  75. package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +20 -246
  76. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +20 -246
  77. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +48 -1908
  78. package/internal-do-not-import-from-here/ux/flow/editor/stores/VelcronPluginStore.d.ts +6 -33
  79. package/internal-do-not-import-from-here/ux/flow/renderer/stores/FlowRendererStore.d.ts +12 -70
  80. package/internal-do-not-import-from-here/ux/hub/feed/stores/ActivityFeedStore.d.ts +31 -101
  81. package/internal-do-not-import-from-here/ux/hub/feed/stores/HubFeedChromeStore.d.ts +19 -53
  82. package/internal-do-not-import-from-here/ux/identities/components/shared/AzureAdProviderSettingsStore.d.ts +2 -27
  83. package/internal-do-not-import-from-here/ux/inputlanguagepicker/stores/InputLanguageStore.d.ts +6 -31
  84. package/internal-do-not-import-from-here/ux/journey/stores/JourneyMenuStore.d.ts +6 -31
  85. package/internal-do-not-import-from-here/ux/journey/stores/JourneyRouterStore.d.ts +5 -57
  86. package/internal-do-not-import-from-here/ux/journey/stores/JourneyStore.d.ts +19 -176
  87. package/internal-do-not-import-from-here/ux/journey/stores/SettingsJourneyStore.d.ts +9 -79
  88. package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +17 -166
  89. package/internal-do-not-import-from-here/ux/layoutcanvas/stores/SettingsMenuStore.d.ts +6 -31
  90. package/internal-do-not-import-from-here/ux/links/store/LinkPickerStore.d.ts +2 -27
  91. package/internal-do-not-import-from-here/ux/markdown/stores/MarkdownEditorStore.d.ts +7 -48
  92. package/internal-do-not-import-from-here/ux/mediagallery/gallerydialogproviders/slider/Delimiter.d.ts +3 -64
  93. package/internal-do-not-import-from-here/ux/mediagallery/view/store/PhotoWallStore.d.ts +2 -36
  94. package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaflow/loc/localize.d.ts +0 -2
  95. package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaflow/models/MediaflowReportUsage.d.ts +27 -0
  96. package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaflow/models/index.d.ts +1 -0
  97. package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaflow/service/MediaflowService.d.ts +4 -1
  98. package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaflow/use/MediaflowProviderStore.d.ts +7 -55
  99. package/internal-do-not-import-from-here/ux/oxide/breadcrumbs/Breadcrumbs.d.ts +13 -0
  100. package/internal-do-not-import-from-here/ux/oxide/btngroup/ButtonGroup.stylex.d.ts +1 -1
  101. package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.d.ts +4 -1
  102. package/internal-do-not-import-from-here/ux/oxide/scrollcontainer/store/ScrollContainerStore.d.ts +11 -135
  103. package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +1 -1
  104. package/internal-do-not-import-from-here/ux/oxide/slidepanel/store/SlidePanelStore.d.ts +3 -64
  105. package/internal-do-not-import-from-here/ux/oxide/stickycontainer/store/StickyContainerStore.d.ts +8 -33
  106. package/internal-do-not-import-from-here/ux/oxide/table/Table.stylex.d.ts +1 -1
  107. package/internal-do-not-import-from-here/ux/richtexteditor/RichTextEditorStore.d.ts +6 -28
  108. package/internal-do-not-import-from-here/ux/rollupfilter/RollupFilter.d.ts +14 -84
  109. package/internal-do-not-import-from-here/ux/social/Comment.d.ts +1 -1
  110. package/internal-do-not-import-from-here/ux/use/UseDraggable.d.ts +1 -1
  111. package/internal-do-not-import-from-here/ux/velcron/blocks/velcron/useVelcronStateManager.d.ts +1 -1
  112. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +3 -3
  113. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronState.d.ts +2 -2
  114. package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronTheming.d.ts +2 -5
  115. package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronComponentStore.d.ts +5 -5
  116. package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronEditorStore.d.ts +31 -290
  117. package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +7 -98
  118. package/internal-do-not-import-from-here/ux/velcron/stores/useVelcronStateManager.d.ts +1 -1
  119. package/internal-do-not-import-from-here/wctypings.d.ts +41 -13
  120. package/package.json +2 -2
  121. package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/store/ContainersEditorStore.d.ts +0 -79
  122. /package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/blades/{ContainersBlade.d.ts → AddBlueprint.d.ts} +0 -0
  123. /package/internal-do-not-import-from-here/ux/aurora/admin/blades/blueprints/components/blades/{ContainersBladeEdit.d.ts → ContainerFillsBladeEdit.d.ts} +0 -0
  124. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/ChromeBlueprintsViewer.d.ts +0 -0
  125. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/ChromeEditor.d.ts +0 -0
  126. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/ChromePicker.css.d.ts +0 -0
  127. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/ChromePicker.d.ts +0 -0
  128. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/ChromeViewer.d.ts +0 -0
  129. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/docs/ExampleComponents.d.ts +0 -0
  130. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/docs/SampleComponent.d.ts +0 -0
  131. /package/internal-do-not-import-from-here/ux/aurora/components/{chrome → chrome_2beRemoved}/docs/index.d.ts +0 -0
  132. /package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker/ContainerPicker.css.d.ts → containerFillpicker/ContainerFillPicker.css.d.ts} +0 -0
  133. /package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker → containerFillpicker}/docs/ExampleComponents.d.ts +0 -0
  134. /package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker → containerFillpicker}/docs/SampleComponent.d.ts +0 -0
  135. /package/internal-do-not-import-from-here/ux/aurora/components/{containerpicker → containerFillpicker}/docs/index.d.ts +0 -0
@@ -28,258 +28,32 @@ export declare const useFlowEditorToolbarStore: () => {
28
28
  textStyle: import("@omnia/fx-models").TextBlueprint;
29
29
  };
30
30
  };
31
- events: {
32
- onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
33
- onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPlugin[]>;
34
- onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
35
- onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
36
- onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
37
- onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
38
- onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").NodeSelection>;
39
- onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
40
- onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
41
- onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPluginContext>;
42
- onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
43
- onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
44
- onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
45
- onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
31
+ events: import("@omnia/fx/stores").StoreEvents<{
32
+ editorContent: import("../../..").FlowContent;
33
+ plugins: import("../../..").FlowEditorPlugin[];
34
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
35
+ hideToolbar: boolean;
36
+ toolbarActions: FlowEditorActionRegistration[];
37
+ editor: HTMLDivElement;
38
+ nodeSelection: import("../../..").NodeSelection;
39
+ telePorts: JSX.Element[];
40
+ id: string;
41
+ pluginContext: import("../../..").FlowEditorPluginContext;
42
+ selectedRange: Range;
43
+ storedRange: Range;
44
+ showPlaceHolder: boolean;
45
+ definitionSelector: {
46
46
  show: boolean;
47
47
  categoryFilters: guid[];
48
48
  rendererTypeFilters: guid[];
49
- }>;
50
- onMutatedSettings: import("@omnia/fx").MessageBusExposeOnlySubscription<{
49
+ };
50
+ settings: {
51
51
  gridWidth: number;
52
52
  rowSpacing: import("@omnia/fx-models").SpacingValue;
53
53
  textStyle: import("@omnia/fx-models").TextBlueprint;
54
- }>;
55
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
56
- actions: {
57
- onDispatching: {
58
- confirm: {
59
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
60
- };
61
- selection: {
62
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
63
- };
64
- plugin: {
65
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
66
- };
67
- content: {
68
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
69
- };
70
- set: {
71
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
72
- };
73
- toolbarAction: {
74
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
75
- };
76
- formatting: {
77
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
78
- };
79
- element: {
80
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
81
- };
82
- commands: {
83
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
84
- };
85
54
  };
86
- onDispatched: {
87
- confirm: {
88
- subscribe(fn: (result: {
89
- delete: {
90
- container: (element: HTMLElement) => void;
91
- };
92
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
93
- };
94
- selection: {
95
- subscribe(fn: (result: {
96
- set: (elements: Node | Array<Node>) => void;
97
- capture: () => void;
98
- store: () => void;
99
- revertToStored: () => void;
100
- ensure: () => void;
101
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
102
- };
103
- plugin: {
104
- subscribe(fn: (result: {
105
- register: {
106
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
107
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
108
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
109
- };
110
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
111
- };
112
- content: {
113
- subscribe(fn: (result: {
114
- sync: () => void;
115
- set: {
116
- byObject: (content: import("../../..").FlowContent) => void;
117
- byString: (content: string) => void;
118
- };
119
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
120
- };
121
- set: {
122
- subscribe(fn: (result: {
123
- container: (el: HTMLDivElement) => void;
124
- focus: () => void;
125
- placeHolderVisibility: () => void;
126
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
127
- };
128
- toolbarAction: {
129
- subscribe(fn: (result: {
130
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
131
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
132
- };
133
- formatting: {
134
- subscribe(fn: (result: {
135
- wrapLine: (element: HTMLElement) => void;
136
- add: (element: HTMLElement) => void;
137
- addWithText: (element: HTMLElement, text: any) => void;
138
- toggle: (element: HTMLElement) => void;
139
- remove: (dataType: string) => void;
140
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
141
- };
142
- element: {
143
- subscribe(fn: (result: {
144
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
145
- createText: () => HTMLParagraphElement;
146
- create: (tagName: string, dataType: string) => HTMLElement;
147
- createTextNode: (data: any) => Text;
148
- add: (element: HTMLElement) => void;
149
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
150
- delete: (element: HTMLElement) => void;
151
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
152
- };
153
- commands: {
154
- subscribe(fn: (result: {
155
- exec: (command: string, data: object | string) => void;
156
- builtIn: {
157
- content: {
158
- convert: (element: HTMLElement) => void;
159
- };
160
- ensure: {
161
- lastElement: {
162
- isText: () => void;
163
- };
164
- unique: {
165
- ids: (element: HTMLElement) => void;
166
- };
167
- };
168
- selection: {
169
- get: {
170
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
171
- };
172
- ensure: {
173
- storedRange: () => void;
174
- };
175
- };
176
- cursor: {
177
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
178
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
179
- };
180
- actions: {
181
- captureSelection: () => void;
182
- };
183
- formatting: {
184
- add: (element: HTMLElement) => void;
185
- addWithTxt: (element: HTMLElement, text?: string) => void;
186
- wrapLine: (element: HTMLElement) => void;
187
- remove: (dataType: string | HTMLElement) => void;
188
- has: (dataType: string | HTMLElement) => boolean;
189
- };
190
- element: {
191
- clean: (element: HTMLElement) => void;
192
- add: (element: HTMLElement) => void;
193
- create: (tagName: string, dataType: string) => HTMLElement;
194
- createText: () => HTMLParagraphElement;
195
- createTextNode: (data: any) => Text;
196
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
197
- insert: {
198
- text: (element: Node, text: string, offset: any) => void;
199
- };
200
- ids: {
201
- unique: (element: HTMLElement) => void;
202
- };
203
- };
204
- helpers: {
205
- editor: {
206
- ensure: {
207
- uniqueIds: (element: HTMLElement) => HTMLElement;
208
- selectionIsInEditor: (range: Range) => void;
209
- };
210
- cursor: {
211
- storePosition: (state: {
212
- selectedRange: Range;
213
- }) => void;
214
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
215
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
216
- };
217
- };
218
- editorNode: {
219
- get: {
220
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
221
- };
222
- };
223
- htmlNode: {
224
- copy: {
225
- children: (from: HTMLElement, to: HTMLElement) => void;
226
- };
227
- insert: {
228
- text: (element: Node, text: string, offset: any) => void;
229
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
230
- };
231
- get: {
232
- topContainerForContent: (element: HTMLElement) => HTMLElement;
233
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
234
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
235
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
236
- };
237
- remove: {
238
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
239
- };
240
- strip: {
241
- after: (element: HTMLElement, splitter: string) => void;
242
- before: (element: HTMLElement, splitter: string) => void;
243
- };
244
- surround: {
245
- selectionWithElement: (element: HTMLElement, range: Range) => void;
246
- };
247
- };
248
- };
249
- };
250
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
251
- };
252
- };
253
- onFailure: {
254
- confirm: {
255
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
256
- };
257
- selection: {
258
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
259
- };
260
- plugin: {
261
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
262
- };
263
- content: {
264
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
265
- };
266
- set: {
267
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
268
- };
269
- toolbarAction: {
270
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
271
- };
272
- formatting: {
273
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
274
- };
275
- element: {
276
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
277
- };
278
- commands: {
279
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
280
- };
281
- };
282
- } & {
55
+ }, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
56
+ actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
283
57
  confirm: () => {
284
58
  delete: {
285
59
  container: (element: HTMLElement) => void;
@@ -427,7 +201,7 @@ export declare const useFlowEditorToolbarStore: () => {
427
201
  };
428
202
  };
429
203
  };
430
- };
204
+ }>;
431
205
  get: {
432
206
  plugins: import("../../..").FlowEditorPlugin[];
433
207
  content: {
@@ -456,8 +230,8 @@ export declare const useFlowEditorToolbarStore: () => {
456
230
  actions: FlowEditorActionRegistration[];
457
231
  customActionRenderer: () => JSX.Element;
458
232
  };
459
- events: {
460
- onMutatedActiveEditorStore: import("@omnia/fx").MessageBusExposeOnlySubscription<{
233
+ events: import("@omnia/fx/stores").StoreEvents<{
234
+ activeEditorStore: {
461
235
  state: {
462
236
  editorContent: import("../../..").FlowContent;
463
237
  plugins: import("../../..").FlowEditorPlugin[];
@@ -483,258 +257,32 @@ export declare const useFlowEditorToolbarStore: () => {
483
257
  textStyle: import("@omnia/fx-models").TextBlueprint;
484
258
  };
485
259
  };
486
- events: {
487
- onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
488
- onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPlugin[]>;
489
- onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
490
- onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
491
- onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
492
- onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
493
- onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").NodeSelection>;
494
- onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
495
- onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
496
- onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPluginContext>;
497
- onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
498
- onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
499
- onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
500
- onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
260
+ events: import("@omnia/fx/stores").StoreEvents<{
261
+ editorContent: import("../../..").FlowContent;
262
+ plugins: import("../../..").FlowEditorPlugin[];
263
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
264
+ hideToolbar: boolean;
265
+ toolbarActions: FlowEditorActionRegistration[];
266
+ editor: HTMLDivElement;
267
+ nodeSelection: import("../../..").NodeSelection;
268
+ telePorts: JSX.Element[];
269
+ id: string;
270
+ pluginContext: import("../../..").FlowEditorPluginContext;
271
+ selectedRange: Range;
272
+ storedRange: Range;
273
+ showPlaceHolder: boolean;
274
+ definitionSelector: {
501
275
  show: boolean;
502
276
  categoryFilters: guid[];
503
277
  rendererTypeFilters: guid[];
504
- }>;
505
- onMutatedSettings: import("@omnia/fx").MessageBusExposeOnlySubscription<{
278
+ };
279
+ settings: {
506
280
  gridWidth: number;
507
281
  rowSpacing: import("@omnia/fx-models").SpacingValue;
508
282
  textStyle: import("@omnia/fx-models").TextBlueprint;
509
- }>;
510
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
511
- actions: {
512
- onDispatching: {
513
- confirm: {
514
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
515
- };
516
- selection: {
517
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
518
- };
519
- plugin: {
520
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
521
- };
522
- content: {
523
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
524
- };
525
- set: {
526
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
527
- };
528
- toolbarAction: {
529
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
530
- };
531
- formatting: {
532
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
533
- };
534
- element: {
535
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
536
- };
537
- commands: {
538
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
539
- };
540
- };
541
- onDispatched: {
542
- confirm: {
543
- subscribe(fn: (result: {
544
- delete: {
545
- container: (element: HTMLElement) => void;
546
- };
547
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
548
- };
549
- selection: {
550
- subscribe(fn: (result: {
551
- set: (elements: Node | Array<Node>) => void;
552
- capture: () => void;
553
- store: () => void;
554
- revertToStored: () => void;
555
- ensure: () => void;
556
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
557
- };
558
- plugin: {
559
- subscribe(fn: (result: {
560
- register: {
561
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
562
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
563
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
564
- };
565
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
566
- };
567
- content: {
568
- subscribe(fn: (result: {
569
- sync: () => void;
570
- set: {
571
- byObject: (content: import("../../..").FlowContent) => void;
572
- byString: (content: string) => void;
573
- };
574
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
575
- };
576
- set: {
577
- subscribe(fn: (result: {
578
- container: (el: HTMLDivElement) => void;
579
- focus: () => void;
580
- placeHolderVisibility: () => void;
581
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
582
- };
583
- toolbarAction: {
584
- subscribe(fn: (result: {
585
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
586
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
587
- };
588
- formatting: {
589
- subscribe(fn: (result: {
590
- wrapLine: (element: HTMLElement) => void;
591
- add: (element: HTMLElement) => void;
592
- addWithText: (element: HTMLElement, text: any) => void;
593
- toggle: (element: HTMLElement) => void;
594
- remove: (dataType: string) => void;
595
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
596
- };
597
- element: {
598
- subscribe(fn: (result: {
599
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
600
- createText: () => HTMLParagraphElement;
601
- create: (tagName: string, dataType: string) => HTMLElement;
602
- createTextNode: (data: any) => Text;
603
- add: (element: HTMLElement) => void;
604
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
605
- delete: (element: HTMLElement) => void;
606
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
607
- };
608
- commands: {
609
- subscribe(fn: (result: {
610
- exec: (command: string, data: object | string) => void;
611
- builtIn: {
612
- content: {
613
- convert: (element: HTMLElement) => void;
614
- };
615
- ensure: {
616
- lastElement: {
617
- isText: () => void;
618
- };
619
- unique: {
620
- ids: (element: HTMLElement) => void;
621
- };
622
- };
623
- selection: {
624
- get: {
625
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
626
- };
627
- ensure: {
628
- storedRange: () => void;
629
- };
630
- };
631
- cursor: {
632
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
633
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
634
- };
635
- actions: {
636
- captureSelection: () => void;
637
- };
638
- formatting: {
639
- add: (element: HTMLElement) => void;
640
- addWithTxt: (element: HTMLElement, text?: string) => void;
641
- wrapLine: (element: HTMLElement) => void;
642
- remove: (dataType: string | HTMLElement) => void;
643
- has: (dataType: string | HTMLElement) => boolean;
644
- };
645
- element: {
646
- clean: (element: HTMLElement) => void;
647
- add: (element: HTMLElement) => void;
648
- create: (tagName: string, dataType: string) => HTMLElement;
649
- createText: () => HTMLParagraphElement;
650
- createTextNode: (data: any) => Text;
651
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
652
- insert: {
653
- text: (element: Node, text: string, offset: any) => void;
654
- };
655
- ids: {
656
- unique: (element: HTMLElement) => void;
657
- };
658
- };
659
- helpers: {
660
- editor: {
661
- ensure: {
662
- uniqueIds: (element: HTMLElement) => HTMLElement;
663
- selectionIsInEditor: (range: Range) => void;
664
- };
665
- cursor: {
666
- storePosition: (state: {
667
- selectedRange: Range;
668
- }) => void;
669
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
670
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
671
- };
672
- };
673
- editorNode: {
674
- get: {
675
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
676
- };
677
- };
678
- htmlNode: {
679
- copy: {
680
- children: (from: HTMLElement, to: HTMLElement) => void;
681
- };
682
- insert: {
683
- text: (element: Node, text: string, offset: any) => void;
684
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
685
- };
686
- get: {
687
- topContainerForContent: (element: HTMLElement) => HTMLElement;
688
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
689
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
690
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
691
- };
692
- remove: {
693
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
694
- };
695
- strip: {
696
- after: (element: HTMLElement, splitter: string) => void;
697
- before: (element: HTMLElement, splitter: string) => void;
698
- };
699
- surround: {
700
- selectionWithElement: (element: HTMLElement, range: Range) => void;
701
- };
702
- };
703
- };
704
- };
705
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
706
- };
707
283
  };
708
- onFailure: {
709
- confirm: {
710
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
711
- };
712
- selection: {
713
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
714
- };
715
- plugin: {
716
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
717
- };
718
- content: {
719
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
720
- };
721
- set: {
722
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
723
- };
724
- toolbarAction: {
725
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
726
- };
727
- formatting: {
728
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
729
- };
730
- element: {
731
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
732
- };
733
- commands: {
734
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
735
- };
736
- };
737
- } & {
284
+ }, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
285
+ actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
738
286
  confirm: () => {
739
287
  delete: {
740
288
  container: (element: HTMLElement) => void;
@@ -882,7 +430,7 @@ export declare const useFlowEditorToolbarStore: () => {
882
430
  };
883
431
  };
884
432
  };
885
- };
433
+ }>;
886
434
  get: {
887
435
  plugins: import("../../..").FlowEditorPlugin[];
888
436
  content: {
@@ -906,1427 +454,19 @@ export declare const useFlowEditorToolbarStore: () => {
906
454
  };
907
455
  } & {
908
456
  dispose?: () => void;
909
- }>;
910
- onMutatedShow: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
911
- onMutatedActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
912
- onMutatedCustomActionRenderer: import("@omnia/fx").MessageBusExposeOnlySubscription<() => JSX.Element>;
913
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
914
- actions: {
915
- onDispatching: {
916
- addAction: {
917
- subscribe(fn: (action: FlowEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
918
- };
919
- setCustomRenderer: {
920
- subscribe(fn: (renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
921
- };
922
- removeAllActions: {
923
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
924
- };
925
- setAsActive: {
926
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
927
- };
928
- setActiveEditorStore: {
929
- subscribe(fn: (store: {
930
- state: {
931
- editorContent: import("../../..").FlowContent;
932
- plugins: import("../../..").FlowEditorPlugin[];
933
- pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
934
- hideToolbar: boolean;
935
- toolbarActions: FlowEditorActionRegistration[];
936
- editor: HTMLDivElement;
937
- nodeSelection: import("../../..").NodeSelection;
938
- telePorts: JSX.Element[];
939
- id: string;
940
- pluginContext: import("../../..").FlowEditorPluginContext;
941
- selectedRange: Range;
942
- storedRange: Range;
943
- showPlaceHolder: boolean;
944
- definitionSelector: {
945
- show: boolean;
946
- categoryFilters: guid[];
947
- rendererTypeFilters: guid[];
948
- };
949
- settings: {
950
- gridWidth: number;
951
- rowSpacing: import("@omnia/fx-models").SpacingValue;
952
- textStyle: import("@omnia/fx-models").TextBlueprint;
953
- };
954
- };
955
- events: {
956
- onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
957
- onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPlugin[]>;
958
- onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
959
- onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
960
- onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
961
- onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
962
- onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").NodeSelection>;
963
- onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
964
- onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
965
- onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPluginContext>;
966
- onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
967
- onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
968
- onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
969
- onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
970
- show: boolean;
971
- categoryFilters: guid[];
972
- rendererTypeFilters: guid[];
973
- }>;
974
- onMutatedSettings: import("@omnia/fx").MessageBusExposeOnlySubscription<{
975
- gridWidth: number;
976
- rowSpacing: import("@omnia/fx-models").SpacingValue;
977
- textStyle: import("@omnia/fx-models").TextBlueprint;
978
- }>;
979
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
980
- actions: {
981
- onDispatching: {
982
- confirm: {
983
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
984
- };
985
- selection: {
986
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
987
- };
988
- plugin: {
989
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
990
- };
991
- content: {
992
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
993
- };
994
- set: {
995
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
996
- };
997
- toolbarAction: {
998
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
999
- };
1000
- formatting: {
1001
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1002
- };
1003
- element: {
1004
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1005
- };
1006
- commands: {
1007
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1008
- };
1009
- };
1010
- onDispatched: {
1011
- confirm: {
1012
- subscribe(fn: (result: {
1013
- delete: {
1014
- container: (element: HTMLElement) => void;
1015
- };
1016
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1017
- };
1018
- selection: {
1019
- subscribe(fn: (result: {
1020
- set: (elements: Node | Array<Node>) => void;
1021
- capture: () => void;
1022
- store: () => void;
1023
- revertToStored: () => void;
1024
- ensure: () => void;
1025
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1026
- };
1027
- plugin: {
1028
- subscribe(fn: (result: {
1029
- register: {
1030
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1031
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1032
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
1033
- };
1034
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1035
- };
1036
- content: {
1037
- subscribe(fn: (result: {
1038
- sync: () => void;
1039
- set: {
1040
- byObject: (content: import("../../..").FlowContent) => void;
1041
- byString: (content: string) => void;
1042
- };
1043
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1044
- };
1045
- set: {
1046
- subscribe(fn: (result: {
1047
- container: (el: HTMLDivElement) => void;
1048
- focus: () => void;
1049
- placeHolderVisibility: () => void;
1050
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1051
- };
1052
- toolbarAction: {
1053
- subscribe(fn: (result: {
1054
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1055
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1056
- };
1057
- formatting: {
1058
- subscribe(fn: (result: {
1059
- wrapLine: (element: HTMLElement) => void;
1060
- add: (element: HTMLElement) => void;
1061
- addWithText: (element: HTMLElement, text: any) => void;
1062
- toggle: (element: HTMLElement) => void;
1063
- remove: (dataType: string) => void;
1064
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1065
- };
1066
- element: {
1067
- subscribe(fn: (result: {
1068
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1069
- createText: () => HTMLParagraphElement;
1070
- create: (tagName: string, dataType: string) => HTMLElement;
1071
- createTextNode: (data: any) => Text;
1072
- add: (element: HTMLElement) => void;
1073
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1074
- delete: (element: HTMLElement) => void;
1075
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1076
- };
1077
- commands: {
1078
- subscribe(fn: (result: {
1079
- exec: (command: string, data: object | string) => void;
1080
- builtIn: {
1081
- content: {
1082
- convert: (element: HTMLElement) => void;
1083
- };
1084
- ensure: {
1085
- lastElement: {
1086
- isText: () => void;
1087
- };
1088
- unique: {
1089
- ids: (element: HTMLElement) => void;
1090
- };
1091
- };
1092
- selection: {
1093
- get: {
1094
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
1095
- };
1096
- ensure: {
1097
- storedRange: () => void;
1098
- };
1099
- };
1100
- cursor: {
1101
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1102
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1103
- };
1104
- actions: {
1105
- captureSelection: () => void;
1106
- };
1107
- formatting: {
1108
- add: (element: HTMLElement) => void;
1109
- addWithTxt: (element: HTMLElement, text?: string) => void;
1110
- wrapLine: (element: HTMLElement) => void;
1111
- remove: (dataType: string | HTMLElement) => void;
1112
- has: (dataType: string | HTMLElement) => boolean;
1113
- };
1114
- element: {
1115
- clean: (element: HTMLElement) => void;
1116
- add: (element: HTMLElement) => void;
1117
- create: (tagName: string, dataType: string) => HTMLElement;
1118
- createText: () => HTMLParagraphElement;
1119
- createTextNode: (data: any) => Text;
1120
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1121
- insert: {
1122
- text: (element: Node, text: string, offset: any) => void;
1123
- };
1124
- ids: {
1125
- unique: (element: HTMLElement) => void;
1126
- };
1127
- };
1128
- helpers: {
1129
- editor: {
1130
- ensure: {
1131
- uniqueIds: (element: HTMLElement) => HTMLElement;
1132
- selectionIsInEditor: (range: Range) => void;
1133
- };
1134
- cursor: {
1135
- storePosition: (state: {
1136
- selectedRange: Range;
1137
- }) => void;
1138
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1139
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1140
- };
1141
- };
1142
- editorNode: {
1143
- get: {
1144
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
1145
- };
1146
- };
1147
- htmlNode: {
1148
- copy: {
1149
- children: (from: HTMLElement, to: HTMLElement) => void;
1150
- };
1151
- insert: {
1152
- text: (element: Node, text: string, offset: any) => void;
1153
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1154
- };
1155
- get: {
1156
- topContainerForContent: (element: HTMLElement) => HTMLElement;
1157
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
1158
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
1159
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
1160
- };
1161
- remove: {
1162
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
1163
- };
1164
- strip: {
1165
- after: (element: HTMLElement, splitter: string) => void;
1166
- before: (element: HTMLElement, splitter: string) => void;
1167
- };
1168
- surround: {
1169
- selectionWithElement: (element: HTMLElement, range: Range) => void;
1170
- };
1171
- };
1172
- };
1173
- };
1174
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1175
- };
1176
- };
1177
- onFailure: {
1178
- confirm: {
1179
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1180
- };
1181
- selection: {
1182
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1183
- };
1184
- plugin: {
1185
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1186
- };
1187
- content: {
1188
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1189
- };
1190
- set: {
1191
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1192
- };
1193
- toolbarAction: {
1194
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1195
- };
1196
- formatting: {
1197
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1198
- };
1199
- element: {
1200
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1201
- };
1202
- commands: {
1203
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1204
- };
1205
- };
1206
- } & {
1207
- confirm: () => {
1208
- delete: {
1209
- container: (element: HTMLElement) => void;
1210
- };
1211
- };
1212
- selection: () => {
1213
- set: (elements: Node | Array<Node>) => void;
1214
- capture: () => void;
1215
- store: () => void;
1216
- revertToStored: () => void;
1217
- ensure: () => void;
1218
- };
1219
- plugin: () => {
1220
- register: {
1221
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1222
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1223
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
1224
- };
1225
- };
1226
- content: () => {
1227
- sync: () => void;
1228
- set: {
1229
- byObject: (content: import("../../..").FlowContent) => void;
1230
- byString: (content: string) => void;
1231
- };
1232
- };
1233
- set: () => {
1234
- container: (el: HTMLDivElement) => void;
1235
- focus: () => void;
1236
- placeHolderVisibility: () => void;
1237
- };
1238
- toolbarAction: () => {
1239
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1240
- };
1241
- formatting: () => {
1242
- wrapLine: (element: HTMLElement) => void;
1243
- add: (element: HTMLElement) => void;
1244
- addWithText: (element: HTMLElement, text: any) => void;
1245
- toggle: (element: HTMLElement) => void;
1246
- remove: (dataType: string) => void;
1247
- };
1248
- element: () => {
1249
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1250
- createText: () => HTMLParagraphElement;
1251
- create: (tagName: string, dataType: string) => HTMLElement;
1252
- createTextNode: (data: any) => Text;
1253
- add: (element: HTMLElement) => void;
1254
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1255
- delete: (element: HTMLElement) => void;
1256
- };
1257
- commands: () => {
1258
- exec: (command: string, data: object | string) => void;
1259
- builtIn: {
1260
- content: {
1261
- convert: (element: HTMLElement) => void;
1262
- };
1263
- ensure: {
1264
- lastElement: {
1265
- isText: () => void;
1266
- };
1267
- unique: {
1268
- ids: (element: HTMLElement) => void;
1269
- };
1270
- };
1271
- selection: {
1272
- get: {
1273
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
1274
- };
1275
- ensure: {
1276
- storedRange: () => void;
1277
- };
1278
- };
1279
- cursor: {
1280
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1281
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1282
- };
1283
- actions: {
1284
- captureSelection: () => void;
1285
- };
1286
- formatting: {
1287
- add: (element: HTMLElement) => void;
1288
- addWithTxt: (element: HTMLElement, text?: string) => void;
1289
- wrapLine: (element: HTMLElement) => void;
1290
- remove: (dataType: string | HTMLElement) => void;
1291
- has: (dataType: string | HTMLElement) => boolean;
1292
- };
1293
- element: {
1294
- clean: (element: HTMLElement) => void;
1295
- add: (element: HTMLElement) => void;
1296
- create: (tagName: string, dataType: string) => HTMLElement;
1297
- createText: () => HTMLParagraphElement;
1298
- createTextNode: (data: any) => Text;
1299
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1300
- insert: {
1301
- text: (element: Node, text: string, offset: any) => void;
1302
- };
1303
- ids: {
1304
- unique: (element: HTMLElement) => void;
1305
- };
1306
- };
1307
- helpers: {
1308
- editor: {
1309
- ensure: {
1310
- uniqueIds: (element: HTMLElement) => HTMLElement;
1311
- selectionIsInEditor: (range: Range) => void;
1312
- };
1313
- cursor: {
1314
- storePosition: (state: {
1315
- selectedRange: Range;
1316
- }) => void;
1317
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1318
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1319
- };
1320
- };
1321
- editorNode: {
1322
- get: {
1323
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
1324
- };
1325
- };
1326
- htmlNode: {
1327
- copy: {
1328
- children: (from: HTMLElement, to: HTMLElement) => void;
1329
- };
1330
- insert: {
1331
- text: (element: Node, text: string, offset: any) => void;
1332
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1333
- };
1334
- get: {
1335
- topContainerForContent: (element: HTMLElement) => HTMLElement;
1336
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
1337
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
1338
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
1339
- };
1340
- remove: {
1341
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
1342
- };
1343
- strip: {
1344
- after: (element: HTMLElement, splitter: string) => void;
1345
- before: (element: HTMLElement, splitter: string) => void;
1346
- };
1347
- surround: {
1348
- selectionWithElement: (element: HTMLElement, range: Range) => void;
1349
- };
1350
- };
1351
- };
1352
- };
1353
- };
1354
- };
1355
- get: {
1356
- plugins: import("../../..").FlowEditorPlugin[];
1357
- content: {
1358
- isEmpty: () => boolean;
1359
- asObject: () => import("../../..").FlowContent;
1360
- asString: () => string;
1361
- };
1362
- selection: {
1363
- has: {
1364
- type: (pluginType: string) => boolean;
1365
- };
1366
- get: {
1367
- byType: (pluginType: string) => import("../../..").FlowNodeReference[];
1368
- all: () => import("../../..").NodeSelection;
1369
- };
1370
- };
1371
- element: {
1372
- byId: (id: string) => HTMLElement;
1373
- byRef: (ref: HTMLElement) => HTMLElement;
1374
- };
1375
- };
1376
- } & {
1377
- dispose?: () => void;
1378
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1379
- };
1380
- setVisibility: {
1381
- subscribe(fn: (show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1382
- };
1383
457
  };
1384
- onDispatched: {
1385
- addAction: {
1386
- subscribe(fn: (result: void, action: FlowEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1387
- };
1388
- setCustomRenderer: {
1389
- subscribe(fn: (result: void, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1390
- };
1391
- removeAllActions: {
1392
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1393
- };
1394
- setAsActive: {
1395
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1396
- };
1397
- setActiveEditorStore: {
1398
- subscribe(fn: (result: void, store: {
1399
- state: {
1400
- editorContent: import("../../..").FlowContent;
1401
- plugins: import("../../..").FlowEditorPlugin[];
1402
- pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
1403
- hideToolbar: boolean;
1404
- toolbarActions: FlowEditorActionRegistration[];
1405
- editor: HTMLDivElement;
1406
- nodeSelection: import("../../..").NodeSelection;
1407
- telePorts: JSX.Element[];
1408
- id: string;
1409
- pluginContext: import("../../..").FlowEditorPluginContext;
1410
- selectedRange: Range;
1411
- storedRange: Range;
1412
- showPlaceHolder: boolean;
1413
- definitionSelector: {
1414
- show: boolean;
1415
- categoryFilters: guid[];
1416
- rendererTypeFilters: guid[];
1417
- };
1418
- settings: {
1419
- gridWidth: number;
1420
- rowSpacing: import("@omnia/fx-models").SpacingValue;
1421
- textStyle: import("@omnia/fx-models").TextBlueprint;
1422
- };
1423
- };
1424
- events: {
1425
- onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
1426
- onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPlugin[]>;
1427
- onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
1428
- onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1429
- onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1430
- onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
1431
- onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").NodeSelection>;
1432
- onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
1433
- onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1434
- onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPluginContext>;
1435
- onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1436
- onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1437
- onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1438
- onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1439
- show: boolean;
1440
- categoryFilters: guid[];
1441
- rendererTypeFilters: guid[];
1442
- }>;
1443
- onMutatedSettings: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1444
- gridWidth: number;
1445
- rowSpacing: import("@omnia/fx-models").SpacingValue;
1446
- textStyle: import("@omnia/fx-models").TextBlueprint;
1447
- }>;
1448
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1449
- actions: {
1450
- onDispatching: {
1451
- confirm: {
1452
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1453
- };
1454
- selection: {
1455
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1456
- };
1457
- plugin: {
1458
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1459
- };
1460
- content: {
1461
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1462
- };
1463
- set: {
1464
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1465
- };
1466
- toolbarAction: {
1467
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1468
- };
1469
- formatting: {
1470
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1471
- };
1472
- element: {
1473
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1474
- };
1475
- commands: {
1476
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1477
- };
1478
- };
1479
- onDispatched: {
1480
- confirm: {
1481
- subscribe(fn: (result: {
1482
- delete: {
1483
- container: (element: HTMLElement) => void;
1484
- };
1485
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1486
- };
1487
- selection: {
1488
- subscribe(fn: (result: {
1489
- set: (elements: Node | Array<Node>) => void;
1490
- capture: () => void;
1491
- store: () => void;
1492
- revertToStored: () => void;
1493
- ensure: () => void;
1494
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1495
- };
1496
- plugin: {
1497
- subscribe(fn: (result: {
1498
- register: {
1499
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1500
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1501
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
1502
- };
1503
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1504
- };
1505
- content: {
1506
- subscribe(fn: (result: {
1507
- sync: () => void;
1508
- set: {
1509
- byObject: (content: import("../../..").FlowContent) => void;
1510
- byString: (content: string) => void;
1511
- };
1512
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1513
- };
1514
- set: {
1515
- subscribe(fn: (result: {
1516
- container: (el: HTMLDivElement) => void;
1517
- focus: () => void;
1518
- placeHolderVisibility: () => void;
1519
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1520
- };
1521
- toolbarAction: {
1522
- subscribe(fn: (result: {
1523
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1524
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1525
- };
1526
- formatting: {
1527
- subscribe(fn: (result: {
1528
- wrapLine: (element: HTMLElement) => void;
1529
- add: (element: HTMLElement) => void;
1530
- addWithText: (element: HTMLElement, text: any) => void;
1531
- toggle: (element: HTMLElement) => void;
1532
- remove: (dataType: string) => void;
1533
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1534
- };
1535
- element: {
1536
- subscribe(fn: (result: {
1537
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1538
- createText: () => HTMLParagraphElement;
1539
- create: (tagName: string, dataType: string) => HTMLElement;
1540
- createTextNode: (data: any) => Text;
1541
- add: (element: HTMLElement) => void;
1542
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1543
- delete: (element: HTMLElement) => void;
1544
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1545
- };
1546
- commands: {
1547
- subscribe(fn: (result: {
1548
- exec: (command: string, data: object | string) => void;
1549
- builtIn: {
1550
- content: {
1551
- convert: (element: HTMLElement) => void;
1552
- };
1553
- ensure: {
1554
- lastElement: {
1555
- isText: () => void;
1556
- };
1557
- unique: {
1558
- ids: (element: HTMLElement) => void;
1559
- };
1560
- };
1561
- selection: {
1562
- get: {
1563
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
1564
- };
1565
- ensure: {
1566
- storedRange: () => void;
1567
- };
1568
- };
1569
- cursor: {
1570
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1571
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1572
- };
1573
- actions: {
1574
- captureSelection: () => void;
1575
- };
1576
- formatting: {
1577
- add: (element: HTMLElement) => void;
1578
- addWithTxt: (element: HTMLElement, text?: string) => void;
1579
- wrapLine: (element: HTMLElement) => void;
1580
- remove: (dataType: string | HTMLElement) => void;
1581
- has: (dataType: string | HTMLElement) => boolean;
1582
- };
1583
- element: {
1584
- clean: (element: HTMLElement) => void;
1585
- add: (element: HTMLElement) => void;
1586
- create: (tagName: string, dataType: string) => HTMLElement;
1587
- createText: () => HTMLParagraphElement;
1588
- createTextNode: (data: any) => Text;
1589
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1590
- insert: {
1591
- text: (element: Node, text: string, offset: any) => void;
1592
- };
1593
- ids: {
1594
- unique: (element: HTMLElement) => void;
1595
- };
1596
- };
1597
- helpers: {
1598
- editor: {
1599
- ensure: {
1600
- uniqueIds: (element: HTMLElement) => HTMLElement;
1601
- selectionIsInEditor: (range: Range) => void;
1602
- };
1603
- cursor: {
1604
- storePosition: (state: {
1605
- selectedRange: Range;
1606
- }) => void;
1607
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1608
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1609
- };
1610
- };
1611
- editorNode: {
1612
- get: {
1613
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
1614
- };
1615
- };
1616
- htmlNode: {
1617
- copy: {
1618
- children: (from: HTMLElement, to: HTMLElement) => void;
1619
- };
1620
- insert: {
1621
- text: (element: Node, text: string, offset: any) => void;
1622
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1623
- };
1624
- get: {
1625
- topContainerForContent: (element: HTMLElement) => HTMLElement;
1626
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
1627
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
1628
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
1629
- };
1630
- remove: {
1631
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
1632
- };
1633
- strip: {
1634
- after: (element: HTMLElement, splitter: string) => void;
1635
- before: (element: HTMLElement, splitter: string) => void;
1636
- };
1637
- surround: {
1638
- selectionWithElement: (element: HTMLElement, range: Range) => void;
1639
- };
1640
- };
1641
- };
1642
- };
1643
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1644
- };
1645
- };
1646
- onFailure: {
1647
- confirm: {
1648
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1649
- };
1650
- selection: {
1651
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1652
- };
1653
- plugin: {
1654
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1655
- };
1656
- content: {
1657
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1658
- };
1659
- set: {
1660
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1661
- };
1662
- toolbarAction: {
1663
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1664
- };
1665
- formatting: {
1666
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1667
- };
1668
- element: {
1669
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1670
- };
1671
- commands: {
1672
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1673
- };
1674
- };
1675
- } & {
1676
- confirm: () => {
1677
- delete: {
1678
- container: (element: HTMLElement) => void;
1679
- };
1680
- };
1681
- selection: () => {
1682
- set: (elements: Node | Array<Node>) => void;
1683
- capture: () => void;
1684
- store: () => void;
1685
- revertToStored: () => void;
1686
- ensure: () => void;
1687
- };
1688
- plugin: () => {
1689
- register: {
1690
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1691
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1692
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
1693
- };
1694
- };
1695
- content: () => {
1696
- sync: () => void;
1697
- set: {
1698
- byObject: (content: import("../../..").FlowContent) => void;
1699
- byString: (content: string) => void;
1700
- };
1701
- };
1702
- set: () => {
1703
- container: (el: HTMLDivElement) => void;
1704
- focus: () => void;
1705
- placeHolderVisibility: () => void;
1706
- };
1707
- toolbarAction: () => {
1708
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1709
- };
1710
- formatting: () => {
1711
- wrapLine: (element: HTMLElement) => void;
1712
- add: (element: HTMLElement) => void;
1713
- addWithText: (element: HTMLElement, text: any) => void;
1714
- toggle: (element: HTMLElement) => void;
1715
- remove: (dataType: string) => void;
1716
- };
1717
- element: () => {
1718
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1719
- createText: () => HTMLParagraphElement;
1720
- create: (tagName: string, dataType: string) => HTMLElement;
1721
- createTextNode: (data: any) => Text;
1722
- add: (element: HTMLElement) => void;
1723
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
1724
- delete: (element: HTMLElement) => void;
1725
- };
1726
- commands: () => {
1727
- exec: (command: string, data: object | string) => void;
1728
- builtIn: {
1729
- content: {
1730
- convert: (element: HTMLElement) => void;
1731
- };
1732
- ensure: {
1733
- lastElement: {
1734
- isText: () => void;
1735
- };
1736
- unique: {
1737
- ids: (element: HTMLElement) => void;
1738
- };
1739
- };
1740
- selection: {
1741
- get: {
1742
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
1743
- };
1744
- ensure: {
1745
- storedRange: () => void;
1746
- };
1747
- };
1748
- cursor: {
1749
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1750
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1751
- };
1752
- actions: {
1753
- captureSelection: () => void;
1754
- };
1755
- formatting: {
1756
- add: (element: HTMLElement) => void;
1757
- addWithTxt: (element: HTMLElement, text?: string) => void;
1758
- wrapLine: (element: HTMLElement) => void;
1759
- remove: (dataType: string | HTMLElement) => void;
1760
- has: (dataType: string | HTMLElement) => boolean;
1761
- };
1762
- element: {
1763
- clean: (element: HTMLElement) => void;
1764
- add: (element: HTMLElement) => void;
1765
- create: (tagName: string, dataType: string) => HTMLElement;
1766
- createText: () => HTMLParagraphElement;
1767
- createTextNode: (data: any) => Text;
1768
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
1769
- insert: {
1770
- text: (element: Node, text: string, offset: any) => void;
1771
- };
1772
- ids: {
1773
- unique: (element: HTMLElement) => void;
1774
- };
1775
- };
1776
- helpers: {
1777
- editor: {
1778
- ensure: {
1779
- uniqueIds: (element: HTMLElement) => HTMLElement;
1780
- selectionIsInEditor: (range: Range) => void;
1781
- };
1782
- cursor: {
1783
- storePosition: (state: {
1784
- selectedRange: Range;
1785
- }) => void;
1786
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1787
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1788
- };
1789
- };
1790
- editorNode: {
1791
- get: {
1792
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
1793
- };
1794
- };
1795
- htmlNode: {
1796
- copy: {
1797
- children: (from: HTMLElement, to: HTMLElement) => void;
1798
- };
1799
- insert: {
1800
- text: (element: Node, text: string, offset: any) => void;
1801
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1802
- };
1803
- get: {
1804
- topContainerForContent: (element: HTMLElement) => HTMLElement;
1805
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
1806
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
1807
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
1808
- };
1809
- remove: {
1810
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
1811
- };
1812
- strip: {
1813
- after: (element: HTMLElement, splitter: string) => void;
1814
- before: (element: HTMLElement, splitter: string) => void;
1815
- };
1816
- surround: {
1817
- selectionWithElement: (element: HTMLElement, range: Range) => void;
1818
- };
1819
- };
1820
- };
1821
- };
1822
- };
1823
- };
1824
- get: {
1825
- plugins: import("../../..").FlowEditorPlugin[];
1826
- content: {
1827
- isEmpty: () => boolean;
1828
- asObject: () => import("../../..").FlowContent;
1829
- asString: () => string;
1830
- };
1831
- selection: {
1832
- has: {
1833
- type: (pluginType: string) => boolean;
1834
- };
1835
- get: {
1836
- byType: (pluginType: string) => import("../../..").FlowNodeReference[];
1837
- all: () => import("../../..").NodeSelection;
1838
- };
1839
- };
1840
- element: {
1841
- byId: (id: string) => HTMLElement;
1842
- byRef: (ref: HTMLElement) => HTMLElement;
1843
- };
1844
- };
1845
- } & {
1846
- dispose?: () => void;
1847
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1848
- };
1849
- setVisibility: {
1850
- subscribe(fn: (result: void, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1851
- };
1852
- };
1853
- onFailure: {
1854
- addAction: {
1855
- subscribe(fn: (failureReason: any, action: FlowEditorActionRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1856
- };
1857
- setCustomRenderer: {
1858
- subscribe(fn: (failureReason: any, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1859
- };
1860
- removeAllActions: {
1861
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1862
- };
1863
- setAsActive: {
1864
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1865
- };
1866
- setActiveEditorStore: {
1867
- subscribe(fn: (failureReason: any, store: {
1868
- state: {
1869
- editorContent: import("../../..").FlowContent;
1870
- plugins: import("../../..").FlowEditorPlugin[];
1871
- pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
1872
- hideToolbar: boolean;
1873
- toolbarActions: FlowEditorActionRegistration[];
1874
- editor: HTMLDivElement;
1875
- nodeSelection: import("../../..").NodeSelection;
1876
- telePorts: JSX.Element[];
1877
- id: string;
1878
- pluginContext: import("../../..").FlowEditorPluginContext;
1879
- selectedRange: Range;
1880
- storedRange: Range;
1881
- showPlaceHolder: boolean;
1882
- definitionSelector: {
1883
- show: boolean;
1884
- categoryFilters: guid[];
1885
- rendererTypeFilters: guid[];
1886
- };
1887
- settings: {
1888
- gridWidth: number;
1889
- rowSpacing: import("@omnia/fx-models").SpacingValue;
1890
- textStyle: import("@omnia/fx-models").TextBlueprint;
1891
- };
1892
- };
1893
- events: {
1894
- onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
1895
- onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPlugin[]>;
1896
- onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
1897
- onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1898
- onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1899
- onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
1900
- onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").NodeSelection>;
1901
- onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
1902
- onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1903
- onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowEditorPluginContext>;
1904
- onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1905
- onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1906
- onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1907
- onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1908
- show: boolean;
1909
- categoryFilters: guid[];
1910
- rendererTypeFilters: guid[];
1911
- }>;
1912
- onMutatedSettings: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1913
- gridWidth: number;
1914
- rowSpacing: import("@omnia/fx-models").SpacingValue;
1915
- textStyle: import("@omnia/fx-models").TextBlueprint;
1916
- }>;
1917
- } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1918
- actions: {
1919
- onDispatching: {
1920
- confirm: {
1921
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1922
- };
1923
- selection: {
1924
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1925
- };
1926
- plugin: {
1927
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1928
- };
1929
- content: {
1930
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1931
- };
1932
- set: {
1933
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1934
- };
1935
- toolbarAction: {
1936
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1937
- };
1938
- formatting: {
1939
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1940
- };
1941
- element: {
1942
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1943
- };
1944
- commands: {
1945
- subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1946
- };
1947
- };
1948
- onDispatched: {
1949
- confirm: {
1950
- subscribe(fn: (result: {
1951
- delete: {
1952
- container: (element: HTMLElement) => void;
1953
- };
1954
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1955
- };
1956
- selection: {
1957
- subscribe(fn: (result: {
1958
- set: (elements: Node | Array<Node>) => void;
1959
- capture: () => void;
1960
- store: () => void;
1961
- revertToStored: () => void;
1962
- ensure: () => void;
1963
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1964
- };
1965
- plugin: {
1966
- subscribe(fn: (result: {
1967
- register: {
1968
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1969
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1970
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
1971
- };
1972
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1973
- };
1974
- content: {
1975
- subscribe(fn: (result: {
1976
- sync: () => void;
1977
- set: {
1978
- byObject: (content: import("../../..").FlowContent) => void;
1979
- byString: (content: string) => void;
1980
- };
1981
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1982
- };
1983
- set: {
1984
- subscribe(fn: (result: {
1985
- container: (el: HTMLDivElement) => void;
1986
- focus: () => void;
1987
- placeHolderVisibility: () => void;
1988
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1989
- };
1990
- toolbarAction: {
1991
- subscribe(fn: (result: {
1992
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1993
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1994
- };
1995
- formatting: {
1996
- subscribe(fn: (result: {
1997
- wrapLine: (element: HTMLElement) => void;
1998
- add: (element: HTMLElement) => void;
1999
- addWithText: (element: HTMLElement, text: any) => void;
2000
- toggle: (element: HTMLElement) => void;
2001
- remove: (dataType: string) => void;
2002
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2003
- };
2004
- element: {
2005
- subscribe(fn: (result: {
2006
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
2007
- createText: () => HTMLParagraphElement;
2008
- create: (tagName: string, dataType: string) => HTMLElement;
2009
- createTextNode: (data: any) => Text;
2010
- add: (element: HTMLElement) => void;
2011
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
2012
- delete: (element: HTMLElement) => void;
2013
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2014
- };
2015
- commands: {
2016
- subscribe(fn: (result: {
2017
- exec: (command: string, data: object | string) => void;
2018
- builtIn: {
2019
- content: {
2020
- convert: (element: HTMLElement) => void;
2021
- };
2022
- ensure: {
2023
- lastElement: {
2024
- isText: () => void;
2025
- };
2026
- unique: {
2027
- ids: (element: HTMLElement) => void;
2028
- };
2029
- };
2030
- selection: {
2031
- get: {
2032
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
2033
- };
2034
- ensure: {
2035
- storedRange: () => void;
2036
- };
2037
- };
2038
- cursor: {
2039
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
2040
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
2041
- };
2042
- actions: {
2043
- captureSelection: () => void;
2044
- };
2045
- formatting: {
2046
- add: (element: HTMLElement) => void;
2047
- addWithTxt: (element: HTMLElement, text?: string) => void;
2048
- wrapLine: (element: HTMLElement) => void;
2049
- remove: (dataType: string | HTMLElement) => void;
2050
- has: (dataType: string | HTMLElement) => boolean;
2051
- };
2052
- element: {
2053
- clean: (element: HTMLElement) => void;
2054
- add: (element: HTMLElement) => void;
2055
- create: (tagName: string, dataType: string) => HTMLElement;
2056
- createText: () => HTMLParagraphElement;
2057
- createTextNode: (data: any) => Text;
2058
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
2059
- insert: {
2060
- text: (element: Node, text: string, offset: any) => void;
2061
- };
2062
- ids: {
2063
- unique: (element: HTMLElement) => void;
2064
- };
2065
- };
2066
- helpers: {
2067
- editor: {
2068
- ensure: {
2069
- uniqueIds: (element: HTMLElement) => HTMLElement;
2070
- selectionIsInEditor: (range: Range) => void;
2071
- };
2072
- cursor: {
2073
- storePosition: (state: {
2074
- selectedRange: Range;
2075
- }) => void;
2076
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
2077
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
2078
- };
2079
- };
2080
- editorNode: {
2081
- get: {
2082
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
2083
- };
2084
- };
2085
- htmlNode: {
2086
- copy: {
2087
- children: (from: HTMLElement, to: HTMLElement) => void;
2088
- };
2089
- insert: {
2090
- text: (element: Node, text: string, offset: any) => void;
2091
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
2092
- };
2093
- get: {
2094
- topContainerForContent: (element: HTMLElement) => HTMLElement;
2095
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
2096
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
2097
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
2098
- };
2099
- remove: {
2100
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
2101
- };
2102
- strip: {
2103
- after: (element: HTMLElement, splitter: string) => void;
2104
- before: (element: HTMLElement, splitter: string) => void;
2105
- };
2106
- surround: {
2107
- selectionWithElement: (element: HTMLElement, range: Range) => void;
2108
- };
2109
- };
2110
- };
2111
- };
2112
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2113
- };
2114
- };
2115
- onFailure: {
2116
- confirm: {
2117
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2118
- };
2119
- selection: {
2120
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2121
- };
2122
- plugin: {
2123
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2124
- };
2125
- content: {
2126
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2127
- };
2128
- set: {
2129
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2130
- };
2131
- toolbarAction: {
2132
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2133
- };
2134
- formatting: {
2135
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2136
- };
2137
- element: {
2138
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2139
- };
2140
- commands: {
2141
- subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2142
- };
2143
- };
2144
- } & {
2145
- confirm: () => {
2146
- delete: {
2147
- container: (element: HTMLElement) => void;
2148
- };
2149
- };
2150
- selection: () => {
2151
- set: (elements: Node | Array<Node>) => void;
2152
- capture: () => void;
2153
- store: () => void;
2154
- revertToStored: () => void;
2155
- ensure: () => void;
2156
- };
2157
- plugin: () => {
2158
- register: {
2159
- plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
2160
- plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
2161
- context: (ctx: import("../../..").FlowEditorPluginContext) => void;
2162
- };
2163
- };
2164
- content: () => {
2165
- sync: () => void;
2166
- set: {
2167
- byObject: (content: import("../../..").FlowContent) => void;
2168
- byString: (content: string) => void;
2169
- };
2170
- };
2171
- set: () => {
2172
- container: (el: HTMLDivElement) => void;
2173
- focus: () => void;
2174
- placeHolderVisibility: () => void;
2175
- };
2176
- toolbarAction: () => {
2177
- add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
2178
- };
2179
- formatting: () => {
2180
- wrapLine: (element: HTMLElement) => void;
2181
- add: (element: HTMLElement) => void;
2182
- addWithText: (element: HTMLElement, text: any) => void;
2183
- toggle: (element: HTMLElement) => void;
2184
- remove: (dataType: string) => void;
2185
- };
2186
- element: () => {
2187
- createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
2188
- createText: () => HTMLParagraphElement;
2189
- create: (tagName: string, dataType: string) => HTMLElement;
2190
- createTextNode: (data: any) => Text;
2191
- add: (element: HTMLElement) => void;
2192
- insert: (element: HTMLElement, ref: HTMLElement, preInsert: boolean) => void;
2193
- delete: (element: HTMLElement) => void;
2194
- };
2195
- commands: () => {
2196
- exec: (command: string, data: object | string) => void;
2197
- builtIn: {
2198
- content: {
2199
- convert: (element: HTMLElement) => void;
2200
- };
2201
- ensure: {
2202
- lastElement: {
2203
- isText: () => void;
2204
- };
2205
- unique: {
2206
- ids: (element: HTMLElement) => void;
2207
- };
2208
- };
2209
- selection: {
2210
- get: {
2211
- byPluginType: (pluginType: string) => import("../../..").FlowNodeReference[];
2212
- };
2213
- ensure: {
2214
- storedRange: () => void;
2215
- };
2216
- };
2217
- cursor: {
2218
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
2219
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
2220
- };
2221
- actions: {
2222
- captureSelection: () => void;
2223
- };
2224
- formatting: {
2225
- add: (element: HTMLElement) => void;
2226
- addWithTxt: (element: HTMLElement, text?: string) => void;
2227
- wrapLine: (element: HTMLElement) => void;
2228
- remove: (dataType: string | HTMLElement) => void;
2229
- has: (dataType: string | HTMLElement) => boolean;
2230
- };
2231
- element: {
2232
- clean: (element: HTMLElement) => void;
2233
- add: (element: HTMLElement) => void;
2234
- create: (tagName: string, dataType: string) => HTMLElement;
2235
- createText: () => HTMLParagraphElement;
2236
- createTextNode: (data: any) => Text;
2237
- createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
2238
- insert: {
2239
- text: (element: Node, text: string, offset: any) => void;
2240
- };
2241
- ids: {
2242
- unique: (element: HTMLElement) => void;
2243
- };
2244
- };
2245
- helpers: {
2246
- editor: {
2247
- ensure: {
2248
- uniqueIds: (element: HTMLElement) => HTMLElement;
2249
- selectionIsInEditor: (range: Range) => void;
2250
- };
2251
- cursor: {
2252
- storePosition: (state: {
2253
- selectedRange: Range;
2254
- }) => void;
2255
- isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
2256
- isBeforeContent: (range: Range, container: HTMLElement) => boolean;
2257
- };
2258
- };
2259
- editorNode: {
2260
- get: {
2261
- nodesInArrayByPluginType: (nodes: Array<import("../../..").FlowNodeReference>, dataType: string) => Array<import("../../..").FlowNodeReference>;
2262
- };
2263
- };
2264
- htmlNode: {
2265
- copy: {
2266
- children: (from: HTMLElement, to: HTMLElement) => void;
2267
- };
2268
- insert: {
2269
- text: (element: Node, text: string, offset: any) => void;
2270
- elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
2271
- };
2272
- get: {
2273
- topContainerForContent: (element: HTMLElement) => HTMLElement;
2274
- topContainerForComponent: (element: HTMLElement) => HTMLElement;
2275
- nodeSelectionForRange: (range: Range) => import("../../..").NodeSelection;
2276
- htmlElementInStructureById: (id: string, currentElement: HTMLElement) => HTMLElement;
2277
- };
2278
- remove: {
2279
- nodes: (nodes2Remove: Array<import("../../..").FlowNodeReference>, editor: HTMLElement) => void;
2280
- };
2281
- strip: {
2282
- after: (element: HTMLElement, splitter: string) => void;
2283
- before: (element: HTMLElement, splitter: string) => void;
2284
- };
2285
- surround: {
2286
- selectionWithElement: (element: HTMLElement, range: Range) => void;
2287
- };
2288
- };
2289
- };
2290
- };
2291
- };
2292
- };
2293
- get: {
2294
- plugins: import("../../..").FlowEditorPlugin[];
2295
- content: {
2296
- isEmpty: () => boolean;
2297
- asObject: () => import("../../..").FlowContent;
2298
- asString: () => string;
2299
- };
2300
- selection: {
2301
- has: {
2302
- type: (pluginType: string) => boolean;
2303
- };
2304
- get: {
2305
- byType: (pluginType: string) => import("../../..").FlowNodeReference[];
2306
- all: () => import("../../..").NodeSelection;
2307
- };
2308
- };
2309
- element: {
2310
- byId: (id: string) => HTMLElement;
2311
- byRef: (ref: HTMLElement) => HTMLElement;
2312
- };
2313
- };
2314
- } & {
2315
- dispose?: () => void;
2316
- }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2317
- };
2318
- setVisibility: {
2319
- subscribe(fn: (failureReason: any, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
2320
- };
2321
- };
2322
- } & {
458
+ show: boolean;
459
+ actions: FlowEditorActionRegistration[];
460
+ customActionRenderer: () => JSX.Element;
461
+ }, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
462
+ actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
2323
463
  addAction: (action: FlowEditorActionRegistration) => void;
2324
464
  setCustomRenderer: (renderer: () => JSX.Element) => void;
2325
465
  removeAllActions: () => void;
2326
466
  setAsActive: () => void;
2327
467
  setActiveEditorStore: (store: ReturnType<typeof useFlowEditorStore>) => void;
2328
468
  setVisibility: (show: boolean) => void;
2329
- };
469
+ }>;
2330
470
  get: {
2331
471
  is: {
2332
472
  activeStore(): boolean;