@omnia/fx 8.0.264-dev → 8.0.266-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
  2. package/internal-do-not-import-from-here/stores/{markdown/MarkdownPluginStore.d.ts → floweditor/FlowEditorPluginStore.d.ts} +12 -11
  3. package/internal-do-not-import-from-here/stores/{markdown/MarkdownToolbarStateStore.d.ts → floweditor/FlowEditorToolbarStateStore.d.ts} +1 -1
  4. package/internal-do-not-import-from-here/stores/floweditor/index.d.ts +2 -0
  5. package/internal-do-not-import-from-here/stores/index.d.ts +1 -1
  6. package/internal-do-not-import-from-here/ux/appprovisioning/appimageinput/AppImageInput.d.ts +4 -0
  7. package/internal-do-not-import-from-here/ux/aurora/designkits/default/DefinitionRegistrations.d.ts +0 -1
  8. package/internal-do-not-import-from-here/ux/aurora/designkits/pages/DefinitionRegistrations.d.ts +0 -1
  9. package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +36 -0
  10. package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +36 -0
  11. package/internal-do-not-import-from-here/ux/features/FeatureActivation.d.ts +3 -14
  12. package/internal-do-not-import-from-here/ux/features/models/FeatureAction.d.ts +3 -0
  13. package/internal-do-not-import-from-here/ux/features/models/VDataGridItemScopedSlot.d.ts +13 -0
  14. package/internal-do-not-import-from-here/ux/features/models/index.d.ts +2 -0
  15. package/internal-do-not-import-from-here/ux/features/shared/FeatureActions.d.ts +2 -0
  16. package/internal-do-not-import-from-here/ux/features/shared/index.d.ts +1 -0
  17. package/internal-do-not-import-from-here/ux/features/stores/FeatureJourneyStore.d.ts +2 -3
  18. package/internal-do-not-import-from-here/ux/floweditor/FlowEditor.css.d.ts +6 -0
  19. package/internal-do-not-import-from-here/ux/{markdown2/MarkdownEditorFuture.d.ts → floweditor/FlowEditor.d.ts} +4 -4
  20. package/internal-do-not-import-from-here/ux/{markdown2/MarkdownToolbar.css.d.ts → floweditor/FlowEditorToolbar.css.d.ts} +1 -1
  21. package/internal-do-not-import-from-here/ux/floweditor/commands/EditorCommands.d.ts +99 -0
  22. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/EditorNodeHelper.d.ts +6 -0
  23. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/Editorhelper.d.ts +15 -0
  24. package/internal-do-not-import-from-here/ux/floweditor/commands/helpers/HtmlNodehelper.d.ts +25 -0
  25. package/internal-do-not-import-from-here/ux/floweditor/models/Constants.d.ts +14 -0
  26. package/internal-do-not-import-from-here/ux/floweditor/models/EditorModels.d.ts +21 -0
  27. package/internal-do-not-import-from-here/ux/floweditor/models/EditorPlugin.d.ts +40 -0
  28. package/internal-do-not-import-from-here/ux/floweditor/parsers/HtmlParser.d.ts +8 -0
  29. package/internal-do-not-import-from-here/ux/floweditor/parsers/JSONParser.d.ts +8 -0
  30. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/DefineEditorPlugin.d.ts +2 -2
  31. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/bold/BoldPlugin.d.ts +1 -1
  32. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/colorstyle/ColorButton.d.ts +2 -2
  33. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/colorstyle/ColorStylePlugin.d.ts +1 -1
  34. package/internal-do-not-import-from-here/ux/floweditor/plugins/elements/ElementPlugin.d.ts +7 -0
  35. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/EditorEvents.d.ts +4 -0
  36. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/KeyboardEvents.d.ts +4 -0
  37. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +4 -0
  38. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +4 -0
  39. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/EnterHandler.d.ts +4 -0
  40. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/italic/ItalicPlugin.d.ts +1 -1
  41. package/internal-do-not-import-from-here/ux/floweditor/plugins/sourceeditor/SourceEditorPlugin.d.ts +4 -0
  42. package/internal-do-not-import-from-here/ux/floweditor/plugins/testdata/TestDataPlugin.d.ts +4 -0
  43. package/internal-do-not-import-from-here/ux/floweditor/plugins/text/TextPlugin.d.ts +3 -0
  44. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/typography/TypographyButton.d.ts +2 -2
  45. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/typography/TypographyPlugin.d.ts +1 -1
  46. package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/velcron/VelcronPlugin.d.ts +3 -3
  47. package/internal-do-not-import-from-here/ux/floweditor/rules/EditorRules.d.ts +7 -0
  48. package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorStore.d.ts +370 -0
  49. package/internal-do-not-import-from-here/ux/floweditor/stores/FlowEditorToolbarStore.d.ts +1901 -0
  50. package/internal-do-not-import-from-here/ux/hub/feed/definitions/CommunityUpdate.d.ts +0 -2
  51. package/internal-do-not-import-from-here/ux/hub/feed/definitions/DefinitionRegistrations.d.ts +0 -1
  52. package/internal-do-not-import-from-here/ux/hub/feed/definitions/DocumentReview.d.ts +0 -2
  53. package/internal-do-not-import-from-here/ux/hub/feed/definitions/NewsArticleTemplate.d.ts +0 -2
  54. package/internal-do-not-import-from-here/ux/hub/feed/definitions/QuickPoll.d.ts +0 -2
  55. package/internal-do-not-import-from-here/ux/hub/feed/definitions/Reach.d.ts +0 -2
  56. package/internal-do-not-import-from-here/ux/hub/feed/definitions/UpdatedProcess.d.ts +0 -2
  57. package/internal-do-not-import-from-here/ux/identities/loc/Localize.d.ts +1 -0
  58. package/internal-do-not-import-from-here/ux/markdown/stores/MarkdownEditorStore.d.ts +7 -7
  59. package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +1 -1
  60. package/internal-do-not-import-from-here/ux/properties/builtins/identity/IdentityDisplay.d.ts +1 -1
  61. package/internal-do-not-import-from-here/ux/properties/builtins/tags/TagsDisplay.d.ts +4 -1
  62. package/internal-do-not-import-from-here/ux/properties/property-picker/PropertyPicker.d.ts +18 -1
  63. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +5 -5
  64. package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +5 -1
  65. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +5 -5
  66. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +3 -3
  67. package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +1 -1
  68. package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
  69. package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/models → definitions}/VelcronDefinitionIds.d.ts +1 -1
  70. package/internal-do-not-import-from-here/ux/velcron/definitions/index.d.ts +1 -1
  71. package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentDescriptors.d.ts +1 -1
  72. package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronEditorStore.d.ts +7 -7
  73. package/internal-do-not-import-from-here/ux/velcron/renderer/components/{Markdown.d.ts → Flow.d.ts} +6 -6
  74. package/internal-do-not-import-from-here/ux/velcron/renderer/components/Property.d.ts +5 -5
  75. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/MarkdownEditor.d.ts +6 -6
  76. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/PropertyResolverEditor.d.ts +5 -5
  77. package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +47 -7
  78. package/internal-do-not-import-from-here/wctypings.d.ts +10 -32
  79. package/package.json +2 -2
  80. package/internal-do-not-import-from-here/stores/markdown/index.d.ts +0 -2
  81. package/internal-do-not-import-from-here/ux/markdown2/MarkdownEditorFuture.css.d.ts +0 -6
  82. package/internal-do-not-import-from-here/ux/markdown2/commands/ClipboardCommands.d.ts +0 -4
  83. package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +0 -52
  84. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/EditorNodeHelper.d.ts +0 -5
  85. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Editorhelper.d.ts +0 -7
  86. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/HtmlNodehelper.d.ts +0 -9
  87. package/internal-do-not-import-from-here/ux/markdown2/markdowntester/MarkdownTester.css.d.ts +0 -6
  88. package/internal-do-not-import-from-here/ux/markdown2/markdowntester/MarkdownTester.d.ts +0 -16
  89. package/internal-do-not-import-from-here/ux/markdown2/models/EditorModels.d.ts +0 -21
  90. package/internal-do-not-import-from-here/ux/markdown2/models/EditorPlugin.d.ts +0 -18
  91. package/internal-do-not-import-from-here/ux/markdown2/parsers/HtmlParser.d.ts +0 -8
  92. package/internal-do-not-import-from-here/ux/markdown2/parsers/JSONParser.d.ts +0 -8
  93. package/internal-do-not-import-from-here/ux/markdown2/parsers/markdownparser_old/MarkdownParser_engine.d.ts +0 -0
  94. package/internal-do-not-import-from-here/ux/markdown2/parsers/markdownparser_old/component.d.ts +0 -0
  95. package/internal-do-not-import-from-here/ux/markdown2/parsers/markdownparser_old/tags.d.ts +0 -0
  96. package/internal-do-not-import-from-here/ux/markdown2/parsers/markdownparser_old/textParser.d.ts +0 -0
  97. package/internal-do-not-import-from-here/ux/markdown2/plugins/sourceeditor/SourceEditorPlugin.d.ts +0 -3
  98. package/internal-do-not-import-from-here/ux/markdown2/plugins/testdata/TestDataPlugin.d.ts +0 -3
  99. package/internal-do-not-import-from-here/ux/markdown2/plugins/text/TextPlugin.d.ts +0 -7
  100. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +0 -200
  101. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +0 -1051
  102. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.css.d.ts +0 -6
  103. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/VelcronContentEditor.d.ts +0 -949
  104. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/content/Quote.d.ts +0 -2
  105. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/index.d.ts +0 -2
  106. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Image.d.ts +0 -2
  107. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog.d.ts +0 -3
  108. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/MicroBlog2.d.ts +0 -3
  109. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/Praise.d.ts +0 -2
  110. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/SocialText.d.ts +0 -2
  111. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/definitions/social/index.d.ts +0 -4
  112. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/ContentDefinitionRegistration.d.ts +0 -9
  113. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/models/index.d.ts +0 -2
  114. package/internal-do-not-import-from-here/ux/velcron/components/contenteditor/stores/ContentEditorStore.d.ts +0 -180
  115. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/definitions/index.d.ts +0 -1
  116. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.css.d.ts +0 -5
  117. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentEditor.d.ts +0 -1133
  118. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/VelcronContentRenderer.d.ts +0 -80
  119. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.css.d.ts +0 -4
  120. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/ActionMenu.d.ts +0 -11
  121. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector copy.d.ts +0 -11
  122. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.css.d.ts +0 -12
  123. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/BorderSelector.d.ts +0 -11
  124. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar copy.d.ts +0 -14
  125. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.css.d.ts +0 -4
  126. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/components/DefinitionToolbar.d.ts +0 -14
  127. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/DefinitionRegistrations.d.ts +0 -1
  128. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/definitions/index.d.ts +0 -1
  129. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.css.d.ts +0 -6
  130. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/editorHooks/ContentEditorHooks.d.ts +0 -2
  131. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/EditorRenderingHooks.d.ts +0 -24
  132. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/models/index.d.ts +0 -1
  133. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew_bak/stores/ContentEditorStore.d.ts +0 -222
  134. /package/internal-do-not-import-from-here/ux/{markdown2/MarkdownToolbar.d.ts → floweditor/FlowEditorToolbar.d.ts} +0 -0
  135. /package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/PluginRegistrationHandler.d.ts +0 -0
  136. /package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/registrations/PluginRegistrations.d.ts +0 -0
  137. /package/internal-do-not-import-from-here/ux/{markdown2 → floweditor}/plugins/sourceeditor/SourceEditorButton.d.ts +0 -0
  138. /package/internal-do-not-import-from-here/ux/{aurora/RegistrationHandlerDefinitions.d.ts → velcron/apis/VelcronCategoriesHandler.d.ts} +0 -0
  139. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/DefinitionRegistrations.d.ts → apis/VelcronDefinitionsHandler.d.ts} +0 -0
  140. /package/internal-do-not-import-from-here/ux/velcron/{registrations → definitions}/CategoryRegistrations.d.ts +0 -0
  141. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Image.d.ts +0 -0
  142. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/ImageText.d.ts +0 -0
  143. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditorNew/definitions/DefinitionRegistrations.d.ts → definitions/content/Quote.d.ts} +0 -0
  144. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/Text.d.ts +0 -0
  145. /package/internal-do-not-import-from-here/ux/velcron/{components/contenteditor/definitions → definitions}/content/index.d.ts +0 -0
  146. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content → velcron/definitions/social}/Image.d.ts +0 -0
  147. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/ImageText.d.ts → velcron/definitions/social/MicroBlog.d.ts} +0 -0
  148. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Quote.d.ts → velcron/definitions/social/MicroBlog2.d.ts} +0 -0
  149. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/Text.d.ts → velcron/definitions/social/Praise.d.ts} +0 -0
  150. /package/internal-do-not-import-from-here/ux/{aurora/designkits/default/definitions/content/index.d.ts → velcron/definitions/social/SocialText.d.ts} +0 -0
  151. /package/internal-do-not-import-from-here/ux/{markdown2/parsers/markdownparser_old/MarkdownParser.d.ts → velcron/definitions/social/index.d.ts} +0 -0
@@ -0,0 +1,1901 @@
1
+ import { FlowEditorActionRegistration } from "@omnia/fx-models";
2
+ import { useFlowEditorStore } from "./FlowEditorStore";
3
+ export declare const useFlowEditorToolbarStore: () => {
4
+ state: {
5
+ activeEditorStore: {
6
+ state: {
7
+ editorContent: import("../models/EditorModels").FlowContent;
8
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
9
+ hideToolbar: boolean;
10
+ editMode: boolean;
11
+ maxNodeId: number;
12
+ toolbarActions: FlowEditorActionRegistration[];
13
+ editor: HTMLDivElement;
14
+ nodeSelection: import("../models/EditorModels").NodeSelection;
15
+ telePorts: JSX.Element[];
16
+ id: string;
17
+ pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
18
+ selectedRange: Range;
19
+ showPlaceHolder: boolean;
20
+ };
21
+ events: {
22
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").FlowContent>;
23
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPlugin[]>;
24
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
25
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
26
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
27
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
28
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
29
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
30
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
31
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
32
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
33
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
34
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
35
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
36
+ actions: {
37
+ onDispatching: {
38
+ plugin: {
39
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
40
+ };
41
+ content: {
42
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
43
+ };
44
+ set: {
45
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
46
+ };
47
+ toolbarAction: {
48
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
+ };
50
+ formatting: {
51
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
52
+ };
53
+ element: {
54
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
55
+ };
56
+ commands: {
57
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
58
+ };
59
+ };
60
+ onDispatched: {
61
+ plugin: {
62
+ subscribe(fn: (result: {
63
+ register: {
64
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
65
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
66
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
67
+ };
68
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
69
+ };
70
+ content: {
71
+ subscribe(fn: (result: {
72
+ sync: () => import("../models/EditorModels").FlowContent;
73
+ set: {
74
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
75
+ byString: (content: string) => void;
76
+ };
77
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
78
+ };
79
+ set: {
80
+ subscribe(fn: (result: {
81
+ mode: (editMode: boolean) => void;
82
+ container: (el: HTMLDivElement) => void;
83
+ focus: () => void;
84
+ placeHolderVisibility: () => void;
85
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
86
+ };
87
+ toolbarAction: {
88
+ subscribe(fn: (result: {
89
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
90
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
91
+ };
92
+ formatting: {
93
+ subscribe(fn: (result: {
94
+ add: (element: HTMLElement) => void;
95
+ toggle: (element: HTMLElement) => void;
96
+ remove: (dataType: string) => void;
97
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
98
+ };
99
+ element: {
100
+ subscribe(fn: (result: {
101
+ createForComponent: (componentName: string) => HTMLDivElement;
102
+ createText: () => HTMLParagraphElement;
103
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
104
+ createTextNode: (data: any) => Text;
105
+ add: (element: HTMLElement) => void;
106
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
107
+ };
108
+ commands: {
109
+ subscribe(fn: (result: {
110
+ exec: (command: string, data: object) => void;
111
+ builtIn: {
112
+ content: {
113
+ convert: (element: HTMLElement) => void;
114
+ };
115
+ ensure: {
116
+ lastElement: () => void;
117
+ unique: {
118
+ ids: (element: HTMLElement) => void;
119
+ };
120
+ };
121
+ selection: {
122
+ get: {
123
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
124
+ };
125
+ };
126
+ cursor: {
127
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
128
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
129
+ };
130
+ actions: {
131
+ setSelection: () => void;
132
+ };
133
+ formatting: {
134
+ add: (element: HTMLElement) => void;
135
+ remove: (dataType: string | HTMLElement) => void;
136
+ has: (dataType: string | HTMLElement) => boolean;
137
+ };
138
+ element: {
139
+ clean: (element: HTMLElement) => void;
140
+ add: (element: HTMLElement) => void;
141
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
142
+ createText: () => HTMLParagraphElement;
143
+ createTextNode: (data: any) => Text;
144
+ createComponent: (componentName: string) => HTMLDivElement;
145
+ insert: {
146
+ text: (element: Node, text: string, offset: any) => void;
147
+ };
148
+ ids: {
149
+ unique: (element: HTMLElement) => void;
150
+ };
151
+ };
152
+ helpers: {
153
+ editor: {
154
+ ensure: {
155
+ uniqueIds: (element: HTMLElement, state: {
156
+ maxNodeId: number;
157
+ }) => HTMLElement;
158
+ selectionIsInEditor: (range: Range) => void;
159
+ };
160
+ cursor: {
161
+ storePosition: (state: {
162
+ selectedRange: Range;
163
+ }) => void;
164
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
165
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
166
+ };
167
+ };
168
+ editorNode: {
169
+ get: {
170
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
171
+ };
172
+ };
173
+ htmlNode: {
174
+ copy: {
175
+ children: (from: HTMLElement, to: HTMLElement) => void;
176
+ };
177
+ insert: {
178
+ text: (element: Node, text: string, offset: any) => void;
179
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
180
+ };
181
+ get: {
182
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
183
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
184
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
185
+ };
186
+ remove: {
187
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
188
+ };
189
+ strip: {
190
+ after: (element: HTMLElement, splitter: string) => void;
191
+ before: (element: HTMLElement, splitter: string) => void;
192
+ };
193
+ surround: {
194
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
195
+ };
196
+ };
197
+ };
198
+ };
199
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
200
+ };
201
+ };
202
+ onFailure: {
203
+ plugin: {
204
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
205
+ };
206
+ content: {
207
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
208
+ };
209
+ set: {
210
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
211
+ };
212
+ toolbarAction: {
213
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
214
+ };
215
+ formatting: {
216
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
217
+ };
218
+ element: {
219
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
220
+ };
221
+ commands: {
222
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
223
+ };
224
+ };
225
+ } & {
226
+ plugin: () => {
227
+ register: {
228
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
229
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
230
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
231
+ };
232
+ };
233
+ content: () => {
234
+ sync: () => import("../models/EditorModels").FlowContent;
235
+ set: {
236
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
237
+ byString: (content: string) => void;
238
+ };
239
+ };
240
+ set: () => {
241
+ mode: (editMode: boolean) => void;
242
+ container: (el: HTMLDivElement) => void;
243
+ focus: () => void;
244
+ placeHolderVisibility: () => void;
245
+ };
246
+ toolbarAction: () => {
247
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
248
+ };
249
+ formatting: () => {
250
+ add: (element: HTMLElement) => void;
251
+ toggle: (element: HTMLElement) => void;
252
+ remove: (dataType: string) => void;
253
+ };
254
+ element: () => {
255
+ createForComponent: (componentName: string) => HTMLDivElement;
256
+ createText: () => HTMLParagraphElement;
257
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
258
+ createTextNode: (data: any) => Text;
259
+ add: (element: HTMLElement) => void;
260
+ };
261
+ commands: () => {
262
+ exec: (command: string, data: object) => void;
263
+ builtIn: {
264
+ content: {
265
+ convert: (element: HTMLElement) => void;
266
+ };
267
+ ensure: {
268
+ lastElement: () => void;
269
+ unique: {
270
+ ids: (element: HTMLElement) => void;
271
+ };
272
+ };
273
+ selection: {
274
+ get: {
275
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
276
+ };
277
+ };
278
+ cursor: {
279
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
280
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
281
+ };
282
+ actions: {
283
+ setSelection: () => void;
284
+ };
285
+ formatting: {
286
+ add: (element: HTMLElement) => void;
287
+ remove: (dataType: string | HTMLElement) => void;
288
+ has: (dataType: string | HTMLElement) => boolean;
289
+ };
290
+ element: {
291
+ clean: (element: HTMLElement) => void;
292
+ add: (element: HTMLElement) => void;
293
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
294
+ createText: () => HTMLParagraphElement;
295
+ createTextNode: (data: any) => Text;
296
+ createComponent: (componentName: string) => HTMLDivElement;
297
+ insert: {
298
+ text: (element: Node, text: string, offset: any) => void;
299
+ };
300
+ ids: {
301
+ unique: (element: HTMLElement) => void;
302
+ };
303
+ };
304
+ helpers: {
305
+ editor: {
306
+ ensure: {
307
+ uniqueIds: (element: HTMLElement, state: {
308
+ maxNodeId: number;
309
+ }) => HTMLElement;
310
+ selectionIsInEditor: (range: Range) => void;
311
+ };
312
+ cursor: {
313
+ storePosition: (state: {
314
+ selectedRange: Range;
315
+ }) => void;
316
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
317
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
318
+ };
319
+ };
320
+ editorNode: {
321
+ get: {
322
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
323
+ };
324
+ };
325
+ htmlNode: {
326
+ copy: {
327
+ children: (from: HTMLElement, to: HTMLElement) => void;
328
+ };
329
+ insert: {
330
+ text: (element: Node, text: string, offset: any) => void;
331
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
332
+ };
333
+ get: {
334
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
335
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
336
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
337
+ };
338
+ remove: {
339
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
340
+ };
341
+ strip: {
342
+ after: (element: HTMLElement, splitter: string) => void;
343
+ before: (element: HTMLElement, splitter: string) => void;
344
+ };
345
+ surround: {
346
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ };
353
+ get: {
354
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
355
+ content: {
356
+ isEmpty: () => boolean;
357
+ asJSON: () => import("../models/EditorModels").FlowContent;
358
+ asString: () => string;
359
+ };
360
+ selection: {
361
+ has: {
362
+ type: (pluginType: string) => boolean;
363
+ };
364
+ get: {
365
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
366
+ };
367
+ };
368
+ };
369
+ } & {
370
+ dispose?: () => void;
371
+ };
372
+ show: boolean;
373
+ actions: FlowEditorActionRegistration[];
374
+ customActionRenderer: () => JSX.Element;
375
+ };
376
+ events: {
377
+ onMutatedActiveEditorStore: import("@omnia/fx").MessageBusExposeOnlySubscription<{
378
+ state: {
379
+ editorContent: import("../models/EditorModels").FlowContent;
380
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
381
+ hideToolbar: boolean;
382
+ editMode: boolean;
383
+ maxNodeId: number;
384
+ toolbarActions: FlowEditorActionRegistration[];
385
+ editor: HTMLDivElement;
386
+ nodeSelection: import("../models/EditorModels").NodeSelection;
387
+ telePorts: JSX.Element[];
388
+ id: string;
389
+ pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
390
+ selectedRange: Range;
391
+ showPlaceHolder: boolean;
392
+ };
393
+ events: {
394
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").FlowContent>;
395
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPlugin[]>;
396
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
397
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
398
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
399
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
400
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
401
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
402
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
403
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
404
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
405
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
406
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
407
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
408
+ actions: {
409
+ onDispatching: {
410
+ plugin: {
411
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
412
+ };
413
+ content: {
414
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
415
+ };
416
+ set: {
417
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
418
+ };
419
+ toolbarAction: {
420
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
421
+ };
422
+ formatting: {
423
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
424
+ };
425
+ element: {
426
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
427
+ };
428
+ commands: {
429
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
430
+ };
431
+ };
432
+ onDispatched: {
433
+ plugin: {
434
+ subscribe(fn: (result: {
435
+ register: {
436
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
437
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
438
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
439
+ };
440
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
441
+ };
442
+ content: {
443
+ subscribe(fn: (result: {
444
+ sync: () => import("../models/EditorModels").FlowContent;
445
+ set: {
446
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
447
+ byString: (content: string) => void;
448
+ };
449
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
450
+ };
451
+ set: {
452
+ subscribe(fn: (result: {
453
+ mode: (editMode: boolean) => void;
454
+ container: (el: HTMLDivElement) => void;
455
+ focus: () => void;
456
+ placeHolderVisibility: () => void;
457
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
458
+ };
459
+ toolbarAction: {
460
+ subscribe(fn: (result: {
461
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
462
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
463
+ };
464
+ formatting: {
465
+ subscribe(fn: (result: {
466
+ add: (element: HTMLElement) => void;
467
+ toggle: (element: HTMLElement) => void;
468
+ remove: (dataType: string) => void;
469
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
470
+ };
471
+ element: {
472
+ subscribe(fn: (result: {
473
+ createForComponent: (componentName: string) => HTMLDivElement;
474
+ createText: () => HTMLParagraphElement;
475
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
476
+ createTextNode: (data: any) => Text;
477
+ add: (element: HTMLElement) => void;
478
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
479
+ };
480
+ commands: {
481
+ subscribe(fn: (result: {
482
+ exec: (command: string, data: object) => void;
483
+ builtIn: {
484
+ content: {
485
+ convert: (element: HTMLElement) => void;
486
+ };
487
+ ensure: {
488
+ lastElement: () => void;
489
+ unique: {
490
+ ids: (element: HTMLElement) => void;
491
+ };
492
+ };
493
+ selection: {
494
+ get: {
495
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
496
+ };
497
+ };
498
+ cursor: {
499
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
500
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
501
+ };
502
+ actions: {
503
+ setSelection: () => void;
504
+ };
505
+ formatting: {
506
+ add: (element: HTMLElement) => void;
507
+ remove: (dataType: string | HTMLElement) => void;
508
+ has: (dataType: string | HTMLElement) => boolean;
509
+ };
510
+ element: {
511
+ clean: (element: HTMLElement) => void;
512
+ add: (element: HTMLElement) => void;
513
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
514
+ createText: () => HTMLParagraphElement;
515
+ createTextNode: (data: any) => Text;
516
+ createComponent: (componentName: string) => HTMLDivElement;
517
+ insert: {
518
+ text: (element: Node, text: string, offset: any) => void;
519
+ };
520
+ ids: {
521
+ unique: (element: HTMLElement) => void;
522
+ };
523
+ };
524
+ helpers: {
525
+ editor: {
526
+ ensure: {
527
+ uniqueIds: (element: HTMLElement, state: {
528
+ maxNodeId: number;
529
+ }) => HTMLElement;
530
+ selectionIsInEditor: (range: Range) => void;
531
+ };
532
+ cursor: {
533
+ storePosition: (state: {
534
+ selectedRange: Range;
535
+ }) => void;
536
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
537
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
538
+ };
539
+ };
540
+ editorNode: {
541
+ get: {
542
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
543
+ };
544
+ };
545
+ htmlNode: {
546
+ copy: {
547
+ children: (from: HTMLElement, to: HTMLElement) => void;
548
+ };
549
+ insert: {
550
+ text: (element: Node, text: string, offset: any) => void;
551
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
552
+ };
553
+ get: {
554
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
555
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
556
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
557
+ };
558
+ remove: {
559
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
560
+ };
561
+ strip: {
562
+ after: (element: HTMLElement, splitter: string) => void;
563
+ before: (element: HTMLElement, splitter: string) => void;
564
+ };
565
+ surround: {
566
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
567
+ };
568
+ };
569
+ };
570
+ };
571
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
572
+ };
573
+ };
574
+ onFailure: {
575
+ plugin: {
576
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
577
+ };
578
+ content: {
579
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
580
+ };
581
+ set: {
582
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
583
+ };
584
+ toolbarAction: {
585
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
586
+ };
587
+ formatting: {
588
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
589
+ };
590
+ element: {
591
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
592
+ };
593
+ commands: {
594
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
595
+ };
596
+ };
597
+ } & {
598
+ plugin: () => {
599
+ register: {
600
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
601
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
602
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
603
+ };
604
+ };
605
+ content: () => {
606
+ sync: () => import("../models/EditorModels").FlowContent;
607
+ set: {
608
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
609
+ byString: (content: string) => void;
610
+ };
611
+ };
612
+ set: () => {
613
+ mode: (editMode: boolean) => void;
614
+ container: (el: HTMLDivElement) => void;
615
+ focus: () => void;
616
+ placeHolderVisibility: () => void;
617
+ };
618
+ toolbarAction: () => {
619
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
620
+ };
621
+ formatting: () => {
622
+ add: (element: HTMLElement) => void;
623
+ toggle: (element: HTMLElement) => void;
624
+ remove: (dataType: string) => void;
625
+ };
626
+ element: () => {
627
+ createForComponent: (componentName: string) => HTMLDivElement;
628
+ createText: () => HTMLParagraphElement;
629
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
630
+ createTextNode: (data: any) => Text;
631
+ add: (element: HTMLElement) => void;
632
+ };
633
+ commands: () => {
634
+ exec: (command: string, data: object) => void;
635
+ builtIn: {
636
+ content: {
637
+ convert: (element: HTMLElement) => void;
638
+ };
639
+ ensure: {
640
+ lastElement: () => void;
641
+ unique: {
642
+ ids: (element: HTMLElement) => void;
643
+ };
644
+ };
645
+ selection: {
646
+ get: {
647
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
648
+ };
649
+ };
650
+ cursor: {
651
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
652
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
653
+ };
654
+ actions: {
655
+ setSelection: () => void;
656
+ };
657
+ formatting: {
658
+ add: (element: HTMLElement) => void;
659
+ remove: (dataType: string | HTMLElement) => void;
660
+ has: (dataType: string | HTMLElement) => boolean;
661
+ };
662
+ element: {
663
+ clean: (element: HTMLElement) => void;
664
+ add: (element: HTMLElement) => void;
665
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
666
+ createText: () => HTMLParagraphElement;
667
+ createTextNode: (data: any) => Text;
668
+ createComponent: (componentName: string) => HTMLDivElement;
669
+ insert: {
670
+ text: (element: Node, text: string, offset: any) => void;
671
+ };
672
+ ids: {
673
+ unique: (element: HTMLElement) => void;
674
+ };
675
+ };
676
+ helpers: {
677
+ editor: {
678
+ ensure: {
679
+ uniqueIds: (element: HTMLElement, state: {
680
+ maxNodeId: number;
681
+ }) => HTMLElement;
682
+ selectionIsInEditor: (range: Range) => void;
683
+ };
684
+ cursor: {
685
+ storePosition: (state: {
686
+ selectedRange: Range;
687
+ }) => void;
688
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
689
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
690
+ };
691
+ };
692
+ editorNode: {
693
+ get: {
694
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
695
+ };
696
+ };
697
+ htmlNode: {
698
+ copy: {
699
+ children: (from: HTMLElement, to: HTMLElement) => void;
700
+ };
701
+ insert: {
702
+ text: (element: Node, text: string, offset: any) => void;
703
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
704
+ };
705
+ get: {
706
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
707
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
708
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
709
+ };
710
+ remove: {
711
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
712
+ };
713
+ strip: {
714
+ after: (element: HTMLElement, splitter: string) => void;
715
+ before: (element: HTMLElement, splitter: string) => void;
716
+ };
717
+ surround: {
718
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
719
+ };
720
+ };
721
+ };
722
+ };
723
+ };
724
+ };
725
+ get: {
726
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
727
+ content: {
728
+ isEmpty: () => boolean;
729
+ asJSON: () => import("../models/EditorModels").FlowContent;
730
+ asString: () => string;
731
+ };
732
+ selection: {
733
+ has: {
734
+ type: (pluginType: string) => boolean;
735
+ };
736
+ get: {
737
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
738
+ };
739
+ };
740
+ };
741
+ } & {
742
+ dispose?: () => void;
743
+ }>;
744
+ onMutatedShow: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
745
+ onMutatedActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
746
+ onMutatedCustomActionRenderer: import("@omnia/fx").MessageBusExposeOnlySubscription<() => JSX.Element>;
747
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
748
+ actions: {
749
+ onDispatching: {
750
+ setCustomRenderer: {
751
+ subscribe(fn: (renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
752
+ };
753
+ removeAllActions: {
754
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
755
+ };
756
+ setActiveEditorStore: {
757
+ subscribe(fn: (store: {
758
+ state: {
759
+ editorContent: import("../models/EditorModels").FlowContent;
760
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
761
+ hideToolbar: boolean;
762
+ editMode: boolean;
763
+ maxNodeId: number;
764
+ toolbarActions: FlowEditorActionRegistration[];
765
+ editor: HTMLDivElement;
766
+ nodeSelection: import("../models/EditorModels").NodeSelection;
767
+ telePorts: JSX.Element[];
768
+ id: string;
769
+ pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
770
+ selectedRange: Range;
771
+ showPlaceHolder: boolean;
772
+ };
773
+ events: {
774
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").FlowContent>;
775
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPlugin[]>;
776
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
777
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
778
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
779
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
780
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
781
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
782
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
783
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
784
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
785
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
786
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
787
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
788
+ actions: {
789
+ onDispatching: {
790
+ plugin: {
791
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
792
+ };
793
+ content: {
794
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
795
+ };
796
+ set: {
797
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
798
+ };
799
+ toolbarAction: {
800
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
801
+ };
802
+ formatting: {
803
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
804
+ };
805
+ element: {
806
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
807
+ };
808
+ commands: {
809
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
810
+ };
811
+ };
812
+ onDispatched: {
813
+ plugin: {
814
+ subscribe(fn: (result: {
815
+ register: {
816
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
817
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
818
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
819
+ };
820
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
821
+ };
822
+ content: {
823
+ subscribe(fn: (result: {
824
+ sync: () => import("../models/EditorModels").FlowContent;
825
+ set: {
826
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
827
+ byString: (content: string) => void;
828
+ };
829
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
830
+ };
831
+ set: {
832
+ subscribe(fn: (result: {
833
+ mode: (editMode: boolean) => void;
834
+ container: (el: HTMLDivElement) => void;
835
+ focus: () => void;
836
+ placeHolderVisibility: () => void;
837
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
838
+ };
839
+ toolbarAction: {
840
+ subscribe(fn: (result: {
841
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
842
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
843
+ };
844
+ formatting: {
845
+ subscribe(fn: (result: {
846
+ add: (element: HTMLElement) => void;
847
+ toggle: (element: HTMLElement) => void;
848
+ remove: (dataType: string) => void;
849
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
850
+ };
851
+ element: {
852
+ subscribe(fn: (result: {
853
+ createForComponent: (componentName: string) => HTMLDivElement;
854
+ createText: () => HTMLParagraphElement;
855
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
856
+ createTextNode: (data: any) => Text;
857
+ add: (element: HTMLElement) => void;
858
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
859
+ };
860
+ commands: {
861
+ subscribe(fn: (result: {
862
+ exec: (command: string, data: object) => void;
863
+ builtIn: {
864
+ content: {
865
+ convert: (element: HTMLElement) => void;
866
+ };
867
+ ensure: {
868
+ lastElement: () => void;
869
+ unique: {
870
+ ids: (element: HTMLElement) => void;
871
+ };
872
+ };
873
+ selection: {
874
+ get: {
875
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
876
+ };
877
+ };
878
+ cursor: {
879
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
880
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
881
+ };
882
+ actions: {
883
+ setSelection: () => void;
884
+ };
885
+ formatting: {
886
+ add: (element: HTMLElement) => void;
887
+ remove: (dataType: string | HTMLElement) => void;
888
+ has: (dataType: string | HTMLElement) => boolean;
889
+ };
890
+ element: {
891
+ clean: (element: HTMLElement) => void;
892
+ add: (element: HTMLElement) => void;
893
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
894
+ createText: () => HTMLParagraphElement;
895
+ createTextNode: (data: any) => Text;
896
+ createComponent: (componentName: string) => HTMLDivElement;
897
+ insert: {
898
+ text: (element: Node, text: string, offset: any) => void;
899
+ };
900
+ ids: {
901
+ unique: (element: HTMLElement) => void;
902
+ };
903
+ };
904
+ helpers: {
905
+ editor: {
906
+ ensure: {
907
+ uniqueIds: (element: HTMLElement, state: {
908
+ maxNodeId: number;
909
+ }) => HTMLElement;
910
+ selectionIsInEditor: (range: Range) => void;
911
+ };
912
+ cursor: {
913
+ storePosition: (state: {
914
+ selectedRange: Range;
915
+ }) => void;
916
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
917
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
918
+ };
919
+ };
920
+ editorNode: {
921
+ get: {
922
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
923
+ };
924
+ };
925
+ htmlNode: {
926
+ copy: {
927
+ children: (from: HTMLElement, to: HTMLElement) => void;
928
+ };
929
+ insert: {
930
+ text: (element: Node, text: string, offset: any) => void;
931
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
932
+ };
933
+ get: {
934
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
935
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
936
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
937
+ };
938
+ remove: {
939
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
940
+ };
941
+ strip: {
942
+ after: (element: HTMLElement, splitter: string) => void;
943
+ before: (element: HTMLElement, splitter: string) => void;
944
+ };
945
+ surround: {
946
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
947
+ };
948
+ };
949
+ };
950
+ };
951
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
952
+ };
953
+ };
954
+ onFailure: {
955
+ plugin: {
956
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
957
+ };
958
+ content: {
959
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
960
+ };
961
+ set: {
962
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
963
+ };
964
+ toolbarAction: {
965
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
966
+ };
967
+ formatting: {
968
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
969
+ };
970
+ element: {
971
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
972
+ };
973
+ commands: {
974
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
975
+ };
976
+ };
977
+ } & {
978
+ plugin: () => {
979
+ register: {
980
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
981
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
982
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
983
+ };
984
+ };
985
+ content: () => {
986
+ sync: () => import("../models/EditorModels").FlowContent;
987
+ set: {
988
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
989
+ byString: (content: string) => void;
990
+ };
991
+ };
992
+ set: () => {
993
+ mode: (editMode: boolean) => void;
994
+ container: (el: HTMLDivElement) => void;
995
+ focus: () => void;
996
+ placeHolderVisibility: () => void;
997
+ };
998
+ toolbarAction: () => {
999
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1000
+ };
1001
+ formatting: () => {
1002
+ add: (element: HTMLElement) => void;
1003
+ toggle: (element: HTMLElement) => void;
1004
+ remove: (dataType: string) => void;
1005
+ };
1006
+ element: () => {
1007
+ createForComponent: (componentName: string) => HTMLDivElement;
1008
+ createText: () => HTMLParagraphElement;
1009
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1010
+ createTextNode: (data: any) => Text;
1011
+ add: (element: HTMLElement) => void;
1012
+ };
1013
+ commands: () => {
1014
+ exec: (command: string, data: object) => void;
1015
+ builtIn: {
1016
+ content: {
1017
+ convert: (element: HTMLElement) => void;
1018
+ };
1019
+ ensure: {
1020
+ lastElement: () => void;
1021
+ unique: {
1022
+ ids: (element: HTMLElement) => void;
1023
+ };
1024
+ };
1025
+ selection: {
1026
+ get: {
1027
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1028
+ };
1029
+ };
1030
+ cursor: {
1031
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1032
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1033
+ };
1034
+ actions: {
1035
+ setSelection: () => void;
1036
+ };
1037
+ formatting: {
1038
+ add: (element: HTMLElement) => void;
1039
+ remove: (dataType: string | HTMLElement) => void;
1040
+ has: (dataType: string | HTMLElement) => boolean;
1041
+ };
1042
+ element: {
1043
+ clean: (element: HTMLElement) => void;
1044
+ add: (element: HTMLElement) => void;
1045
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1046
+ createText: () => HTMLParagraphElement;
1047
+ createTextNode: (data: any) => Text;
1048
+ createComponent: (componentName: string) => HTMLDivElement;
1049
+ insert: {
1050
+ text: (element: Node, text: string, offset: any) => void;
1051
+ };
1052
+ ids: {
1053
+ unique: (element: HTMLElement) => void;
1054
+ };
1055
+ };
1056
+ helpers: {
1057
+ editor: {
1058
+ ensure: {
1059
+ uniqueIds: (element: HTMLElement, state: {
1060
+ maxNodeId: number;
1061
+ }) => HTMLElement;
1062
+ selectionIsInEditor: (range: Range) => void;
1063
+ };
1064
+ cursor: {
1065
+ storePosition: (state: {
1066
+ selectedRange: Range;
1067
+ }) => void;
1068
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1069
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1070
+ };
1071
+ };
1072
+ editorNode: {
1073
+ get: {
1074
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
1075
+ };
1076
+ };
1077
+ htmlNode: {
1078
+ copy: {
1079
+ children: (from: HTMLElement, to: HTMLElement) => void;
1080
+ };
1081
+ insert: {
1082
+ text: (element: Node, text: string, offset: any) => void;
1083
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1084
+ };
1085
+ get: {
1086
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
1087
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
1088
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1089
+ };
1090
+ remove: {
1091
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
1092
+ };
1093
+ strip: {
1094
+ after: (element: HTMLElement, splitter: string) => void;
1095
+ before: (element: HTMLElement, splitter: string) => void;
1096
+ };
1097
+ surround: {
1098
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
1099
+ };
1100
+ };
1101
+ };
1102
+ };
1103
+ };
1104
+ };
1105
+ get: {
1106
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
1107
+ content: {
1108
+ isEmpty: () => boolean;
1109
+ asJSON: () => import("../models/EditorModels").FlowContent;
1110
+ asString: () => string;
1111
+ };
1112
+ selection: {
1113
+ has: {
1114
+ type: (pluginType: string) => boolean;
1115
+ };
1116
+ get: {
1117
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1118
+ };
1119
+ };
1120
+ };
1121
+ } & {
1122
+ dispose?: () => void;
1123
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1124
+ };
1125
+ setVisibility: {
1126
+ subscribe(fn: (show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1127
+ };
1128
+ };
1129
+ onDispatched: {
1130
+ setCustomRenderer: {
1131
+ subscribe(fn: (result: void, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1132
+ };
1133
+ removeAllActions: {
1134
+ subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1135
+ };
1136
+ setActiveEditorStore: {
1137
+ subscribe(fn: (result: void, store: {
1138
+ state: {
1139
+ editorContent: import("../models/EditorModels").FlowContent;
1140
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
1141
+ hideToolbar: boolean;
1142
+ editMode: boolean;
1143
+ maxNodeId: number;
1144
+ toolbarActions: FlowEditorActionRegistration[];
1145
+ editor: HTMLDivElement;
1146
+ nodeSelection: import("../models/EditorModels").NodeSelection;
1147
+ telePorts: JSX.Element[];
1148
+ id: string;
1149
+ pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
1150
+ selectedRange: Range;
1151
+ showPlaceHolder: boolean;
1152
+ };
1153
+ events: {
1154
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").FlowContent>;
1155
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPlugin[]>;
1156
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1157
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1158
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
1159
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1160
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
1161
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
1162
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
1163
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1164
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
1165
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1166
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1167
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1168
+ actions: {
1169
+ onDispatching: {
1170
+ plugin: {
1171
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1172
+ };
1173
+ content: {
1174
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1175
+ };
1176
+ set: {
1177
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1178
+ };
1179
+ toolbarAction: {
1180
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1181
+ };
1182
+ formatting: {
1183
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1184
+ };
1185
+ element: {
1186
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1187
+ };
1188
+ commands: {
1189
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1190
+ };
1191
+ };
1192
+ onDispatched: {
1193
+ plugin: {
1194
+ subscribe(fn: (result: {
1195
+ register: {
1196
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1197
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1198
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
1199
+ };
1200
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1201
+ };
1202
+ content: {
1203
+ subscribe(fn: (result: {
1204
+ sync: () => import("../models/EditorModels").FlowContent;
1205
+ set: {
1206
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
1207
+ byString: (content: string) => void;
1208
+ };
1209
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1210
+ };
1211
+ set: {
1212
+ subscribe(fn: (result: {
1213
+ mode: (editMode: boolean) => void;
1214
+ container: (el: HTMLDivElement) => void;
1215
+ focus: () => void;
1216
+ placeHolderVisibility: () => void;
1217
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1218
+ };
1219
+ toolbarAction: {
1220
+ subscribe(fn: (result: {
1221
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1222
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1223
+ };
1224
+ formatting: {
1225
+ subscribe(fn: (result: {
1226
+ add: (element: HTMLElement) => void;
1227
+ toggle: (element: HTMLElement) => void;
1228
+ remove: (dataType: string) => void;
1229
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1230
+ };
1231
+ element: {
1232
+ subscribe(fn: (result: {
1233
+ createForComponent: (componentName: string) => HTMLDivElement;
1234
+ createText: () => HTMLParagraphElement;
1235
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1236
+ createTextNode: (data: any) => Text;
1237
+ add: (element: HTMLElement) => void;
1238
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1239
+ };
1240
+ commands: {
1241
+ subscribe(fn: (result: {
1242
+ exec: (command: string, data: object) => void;
1243
+ builtIn: {
1244
+ content: {
1245
+ convert: (element: HTMLElement) => void;
1246
+ };
1247
+ ensure: {
1248
+ lastElement: () => void;
1249
+ unique: {
1250
+ ids: (element: HTMLElement) => void;
1251
+ };
1252
+ };
1253
+ selection: {
1254
+ get: {
1255
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1256
+ };
1257
+ };
1258
+ cursor: {
1259
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1260
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1261
+ };
1262
+ actions: {
1263
+ setSelection: () => void;
1264
+ };
1265
+ formatting: {
1266
+ add: (element: HTMLElement) => void;
1267
+ remove: (dataType: string | HTMLElement) => void;
1268
+ has: (dataType: string | HTMLElement) => boolean;
1269
+ };
1270
+ element: {
1271
+ clean: (element: HTMLElement) => void;
1272
+ add: (element: HTMLElement) => void;
1273
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1274
+ createText: () => HTMLParagraphElement;
1275
+ createTextNode: (data: any) => Text;
1276
+ createComponent: (componentName: string) => HTMLDivElement;
1277
+ insert: {
1278
+ text: (element: Node, text: string, offset: any) => void;
1279
+ };
1280
+ ids: {
1281
+ unique: (element: HTMLElement) => void;
1282
+ };
1283
+ };
1284
+ helpers: {
1285
+ editor: {
1286
+ ensure: {
1287
+ uniqueIds: (element: HTMLElement, state: {
1288
+ maxNodeId: number;
1289
+ }) => HTMLElement;
1290
+ selectionIsInEditor: (range: Range) => void;
1291
+ };
1292
+ cursor: {
1293
+ storePosition: (state: {
1294
+ selectedRange: Range;
1295
+ }) => void;
1296
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1297
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1298
+ };
1299
+ };
1300
+ editorNode: {
1301
+ get: {
1302
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
1303
+ };
1304
+ };
1305
+ htmlNode: {
1306
+ copy: {
1307
+ children: (from: HTMLElement, to: HTMLElement) => void;
1308
+ };
1309
+ insert: {
1310
+ text: (element: Node, text: string, offset: any) => void;
1311
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1312
+ };
1313
+ get: {
1314
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
1315
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
1316
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1317
+ };
1318
+ remove: {
1319
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
1320
+ };
1321
+ strip: {
1322
+ after: (element: HTMLElement, splitter: string) => void;
1323
+ before: (element: HTMLElement, splitter: string) => void;
1324
+ };
1325
+ surround: {
1326
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
1327
+ };
1328
+ };
1329
+ };
1330
+ };
1331
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1332
+ };
1333
+ };
1334
+ onFailure: {
1335
+ plugin: {
1336
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1337
+ };
1338
+ content: {
1339
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1340
+ };
1341
+ set: {
1342
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1343
+ };
1344
+ toolbarAction: {
1345
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1346
+ };
1347
+ formatting: {
1348
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1349
+ };
1350
+ element: {
1351
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1352
+ };
1353
+ commands: {
1354
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1355
+ };
1356
+ };
1357
+ } & {
1358
+ plugin: () => {
1359
+ register: {
1360
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1361
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1362
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
1363
+ };
1364
+ };
1365
+ content: () => {
1366
+ sync: () => import("../models/EditorModels").FlowContent;
1367
+ set: {
1368
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
1369
+ byString: (content: string) => void;
1370
+ };
1371
+ };
1372
+ set: () => {
1373
+ mode: (editMode: boolean) => void;
1374
+ container: (el: HTMLDivElement) => void;
1375
+ focus: () => void;
1376
+ placeHolderVisibility: () => void;
1377
+ };
1378
+ toolbarAction: () => {
1379
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1380
+ };
1381
+ formatting: () => {
1382
+ add: (element: HTMLElement) => void;
1383
+ toggle: (element: HTMLElement) => void;
1384
+ remove: (dataType: string) => void;
1385
+ };
1386
+ element: () => {
1387
+ createForComponent: (componentName: string) => HTMLDivElement;
1388
+ createText: () => HTMLParagraphElement;
1389
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1390
+ createTextNode: (data: any) => Text;
1391
+ add: (element: HTMLElement) => void;
1392
+ };
1393
+ commands: () => {
1394
+ exec: (command: string, data: object) => void;
1395
+ builtIn: {
1396
+ content: {
1397
+ convert: (element: HTMLElement) => void;
1398
+ };
1399
+ ensure: {
1400
+ lastElement: () => void;
1401
+ unique: {
1402
+ ids: (element: HTMLElement) => void;
1403
+ };
1404
+ };
1405
+ selection: {
1406
+ get: {
1407
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1408
+ };
1409
+ };
1410
+ cursor: {
1411
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1412
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1413
+ };
1414
+ actions: {
1415
+ setSelection: () => void;
1416
+ };
1417
+ formatting: {
1418
+ add: (element: HTMLElement) => void;
1419
+ remove: (dataType: string | HTMLElement) => void;
1420
+ has: (dataType: string | HTMLElement) => boolean;
1421
+ };
1422
+ element: {
1423
+ clean: (element: HTMLElement) => void;
1424
+ add: (element: HTMLElement) => void;
1425
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1426
+ createText: () => HTMLParagraphElement;
1427
+ createTextNode: (data: any) => Text;
1428
+ createComponent: (componentName: string) => HTMLDivElement;
1429
+ insert: {
1430
+ text: (element: Node, text: string, offset: any) => void;
1431
+ };
1432
+ ids: {
1433
+ unique: (element: HTMLElement) => void;
1434
+ };
1435
+ };
1436
+ helpers: {
1437
+ editor: {
1438
+ ensure: {
1439
+ uniqueIds: (element: HTMLElement, state: {
1440
+ maxNodeId: number;
1441
+ }) => HTMLElement;
1442
+ selectionIsInEditor: (range: Range) => void;
1443
+ };
1444
+ cursor: {
1445
+ storePosition: (state: {
1446
+ selectedRange: Range;
1447
+ }) => void;
1448
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1449
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1450
+ };
1451
+ };
1452
+ editorNode: {
1453
+ get: {
1454
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
1455
+ };
1456
+ };
1457
+ htmlNode: {
1458
+ copy: {
1459
+ children: (from: HTMLElement, to: HTMLElement) => void;
1460
+ };
1461
+ insert: {
1462
+ text: (element: Node, text: string, offset: any) => void;
1463
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1464
+ };
1465
+ get: {
1466
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
1467
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
1468
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1469
+ };
1470
+ remove: {
1471
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
1472
+ };
1473
+ strip: {
1474
+ after: (element: HTMLElement, splitter: string) => void;
1475
+ before: (element: HTMLElement, splitter: string) => void;
1476
+ };
1477
+ surround: {
1478
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
1479
+ };
1480
+ };
1481
+ };
1482
+ };
1483
+ };
1484
+ };
1485
+ get: {
1486
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
1487
+ content: {
1488
+ isEmpty: () => boolean;
1489
+ asJSON: () => import("../models/EditorModels").FlowContent;
1490
+ asString: () => string;
1491
+ };
1492
+ selection: {
1493
+ has: {
1494
+ type: (pluginType: string) => boolean;
1495
+ };
1496
+ get: {
1497
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1498
+ };
1499
+ };
1500
+ };
1501
+ } & {
1502
+ dispose?: () => void;
1503
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1504
+ };
1505
+ setVisibility: {
1506
+ subscribe(fn: (result: void, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1507
+ };
1508
+ };
1509
+ onFailure: {
1510
+ setCustomRenderer: {
1511
+ subscribe(fn: (failureReason: any, renderer: () => JSX.Element) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1512
+ };
1513
+ removeAllActions: {
1514
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1515
+ };
1516
+ setActiveEditorStore: {
1517
+ subscribe(fn: (failureReason: any, store: {
1518
+ state: {
1519
+ editorContent: import("../models/EditorModels").FlowContent;
1520
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
1521
+ hideToolbar: boolean;
1522
+ editMode: boolean;
1523
+ maxNodeId: number;
1524
+ toolbarActions: FlowEditorActionRegistration[];
1525
+ editor: HTMLDivElement;
1526
+ nodeSelection: import("../models/EditorModels").NodeSelection;
1527
+ telePorts: JSX.Element[];
1528
+ id: string;
1529
+ pluginContext: import("../models/EditorPlugin").FlowEditorPluginContext;
1530
+ selectedRange: Range;
1531
+ showPlaceHolder: boolean;
1532
+ };
1533
+ events: {
1534
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").FlowContent>;
1535
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPlugin[]>;
1536
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1537
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1538
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
1539
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1540
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
1541
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorModels").NodeSelection>;
1542
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
1543
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1544
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../models/EditorPlugin").FlowEditorPluginContext>;
1545
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1546
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1547
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1548
+ actions: {
1549
+ onDispatching: {
1550
+ plugin: {
1551
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1552
+ };
1553
+ content: {
1554
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1555
+ };
1556
+ set: {
1557
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1558
+ };
1559
+ toolbarAction: {
1560
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1561
+ };
1562
+ formatting: {
1563
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1564
+ };
1565
+ element: {
1566
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1567
+ };
1568
+ commands: {
1569
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1570
+ };
1571
+ };
1572
+ onDispatched: {
1573
+ plugin: {
1574
+ subscribe(fn: (result: {
1575
+ register: {
1576
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1577
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1578
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
1579
+ };
1580
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1581
+ };
1582
+ content: {
1583
+ subscribe(fn: (result: {
1584
+ sync: () => import("../models/EditorModels").FlowContent;
1585
+ set: {
1586
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
1587
+ byString: (content: string) => void;
1588
+ };
1589
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1590
+ };
1591
+ set: {
1592
+ subscribe(fn: (result: {
1593
+ mode: (editMode: boolean) => void;
1594
+ container: (el: HTMLDivElement) => void;
1595
+ focus: () => void;
1596
+ placeHolderVisibility: () => void;
1597
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1598
+ };
1599
+ toolbarAction: {
1600
+ subscribe(fn: (result: {
1601
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1602
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1603
+ };
1604
+ formatting: {
1605
+ subscribe(fn: (result: {
1606
+ add: (element: HTMLElement) => void;
1607
+ toggle: (element: HTMLElement) => void;
1608
+ remove: (dataType: string) => void;
1609
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1610
+ };
1611
+ element: {
1612
+ subscribe(fn: (result: {
1613
+ createForComponent: (componentName: string) => HTMLDivElement;
1614
+ createText: () => HTMLParagraphElement;
1615
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1616
+ createTextNode: (data: any) => Text;
1617
+ add: (element: HTMLElement) => void;
1618
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1619
+ };
1620
+ commands: {
1621
+ subscribe(fn: (result: {
1622
+ exec: (command: string, data: object) => void;
1623
+ builtIn: {
1624
+ content: {
1625
+ convert: (element: HTMLElement) => void;
1626
+ };
1627
+ ensure: {
1628
+ lastElement: () => void;
1629
+ unique: {
1630
+ ids: (element: HTMLElement) => void;
1631
+ };
1632
+ };
1633
+ selection: {
1634
+ get: {
1635
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1636
+ };
1637
+ };
1638
+ cursor: {
1639
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1640
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1641
+ };
1642
+ actions: {
1643
+ setSelection: () => void;
1644
+ };
1645
+ formatting: {
1646
+ add: (element: HTMLElement) => void;
1647
+ remove: (dataType: string | HTMLElement) => void;
1648
+ has: (dataType: string | HTMLElement) => boolean;
1649
+ };
1650
+ element: {
1651
+ clean: (element: HTMLElement) => void;
1652
+ add: (element: HTMLElement) => void;
1653
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1654
+ createText: () => HTMLParagraphElement;
1655
+ createTextNode: (data: any) => Text;
1656
+ createComponent: (componentName: string) => HTMLDivElement;
1657
+ insert: {
1658
+ text: (element: Node, text: string, offset: any) => void;
1659
+ };
1660
+ ids: {
1661
+ unique: (element: HTMLElement) => void;
1662
+ };
1663
+ };
1664
+ helpers: {
1665
+ editor: {
1666
+ ensure: {
1667
+ uniqueIds: (element: HTMLElement, state: {
1668
+ maxNodeId: number;
1669
+ }) => HTMLElement;
1670
+ selectionIsInEditor: (range: Range) => void;
1671
+ };
1672
+ cursor: {
1673
+ storePosition: (state: {
1674
+ selectedRange: Range;
1675
+ }) => void;
1676
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1677
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1678
+ };
1679
+ };
1680
+ editorNode: {
1681
+ get: {
1682
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
1683
+ };
1684
+ };
1685
+ htmlNode: {
1686
+ copy: {
1687
+ children: (from: HTMLElement, to: HTMLElement) => void;
1688
+ };
1689
+ insert: {
1690
+ text: (element: Node, text: string, offset: any) => void;
1691
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1692
+ };
1693
+ get: {
1694
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
1695
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
1696
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1697
+ };
1698
+ remove: {
1699
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
1700
+ };
1701
+ strip: {
1702
+ after: (element: HTMLElement, splitter: string) => void;
1703
+ before: (element: HTMLElement, splitter: string) => void;
1704
+ };
1705
+ surround: {
1706
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
1707
+ };
1708
+ };
1709
+ };
1710
+ };
1711
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1712
+ };
1713
+ };
1714
+ onFailure: {
1715
+ plugin: {
1716
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1717
+ };
1718
+ content: {
1719
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1720
+ };
1721
+ set: {
1722
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1723
+ };
1724
+ toolbarAction: {
1725
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1726
+ };
1727
+ formatting: {
1728
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1729
+ };
1730
+ element: {
1731
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1732
+ };
1733
+ commands: {
1734
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1735
+ };
1736
+ };
1737
+ } & {
1738
+ plugin: () => {
1739
+ register: {
1740
+ plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
1741
+ plugins: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings | import("@omnia/fx-models").FlowEditorPluginSettings[]) => Promise<void>;
1742
+ context: (ctx: import("../models/EditorPlugin").FlowEditorPluginContext) => void;
1743
+ };
1744
+ };
1745
+ content: () => {
1746
+ sync: () => import("../models/EditorModels").FlowContent;
1747
+ set: {
1748
+ byJSON: (content: import("../models/EditorModels").FlowContent) => void;
1749
+ byString: (content: string) => void;
1750
+ };
1751
+ };
1752
+ set: () => {
1753
+ mode: (editMode: boolean) => void;
1754
+ container: (el: HTMLDivElement) => void;
1755
+ focus: () => void;
1756
+ placeHolderVisibility: () => void;
1757
+ };
1758
+ toolbarAction: () => {
1759
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
1760
+ };
1761
+ formatting: () => {
1762
+ add: (element: HTMLElement) => void;
1763
+ toggle: (element: HTMLElement) => void;
1764
+ remove: (dataType: string) => void;
1765
+ };
1766
+ element: () => {
1767
+ createForComponent: (componentName: string) => HTMLDivElement;
1768
+ createText: () => HTMLParagraphElement;
1769
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1770
+ createTextNode: (data: any) => Text;
1771
+ add: (element: HTMLElement) => void;
1772
+ };
1773
+ commands: () => {
1774
+ exec: (command: string, data: object) => void;
1775
+ builtIn: {
1776
+ content: {
1777
+ convert: (element: HTMLElement) => void;
1778
+ };
1779
+ ensure: {
1780
+ lastElement: () => void;
1781
+ unique: {
1782
+ ids: (element: HTMLElement) => void;
1783
+ };
1784
+ };
1785
+ selection: {
1786
+ get: {
1787
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1788
+ };
1789
+ };
1790
+ cursor: {
1791
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1792
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1793
+ };
1794
+ actions: {
1795
+ setSelection: () => void;
1796
+ };
1797
+ formatting: {
1798
+ add: (element: HTMLElement) => void;
1799
+ remove: (dataType: string | HTMLElement) => void;
1800
+ has: (dataType: string | HTMLElement) => boolean;
1801
+ };
1802
+ element: {
1803
+ clean: (element: HTMLElement) => void;
1804
+ add: (element: HTMLElement) => void;
1805
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
1806
+ createText: () => HTMLParagraphElement;
1807
+ createTextNode: (data: any) => Text;
1808
+ createComponent: (componentName: string) => HTMLDivElement;
1809
+ insert: {
1810
+ text: (element: Node, text: string, offset: any) => void;
1811
+ };
1812
+ ids: {
1813
+ unique: (element: HTMLElement) => void;
1814
+ };
1815
+ };
1816
+ helpers: {
1817
+ editor: {
1818
+ ensure: {
1819
+ uniqueIds: (element: HTMLElement, state: {
1820
+ maxNodeId: number;
1821
+ }) => HTMLElement;
1822
+ selectionIsInEditor: (range: Range) => void;
1823
+ };
1824
+ cursor: {
1825
+ storePosition: (state: {
1826
+ selectedRange: Range;
1827
+ }) => void;
1828
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
1829
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1830
+ };
1831
+ };
1832
+ editorNode: {
1833
+ get: {
1834
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
1835
+ };
1836
+ };
1837
+ htmlNode: {
1838
+ copy: {
1839
+ children: (from: HTMLElement, to: HTMLElement) => void;
1840
+ };
1841
+ insert: {
1842
+ text: (element: Node, text: string, offset: any) => void;
1843
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
1844
+ };
1845
+ get: {
1846
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
1847
+ nodeSelectionForRange: (range: Range) => import("../models/EditorModels").NodeSelection;
1848
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
1849
+ };
1850
+ remove: {
1851
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
1852
+ };
1853
+ strip: {
1854
+ after: (element: HTMLElement, splitter: string) => void;
1855
+ before: (element: HTMLElement, splitter: string) => void;
1856
+ };
1857
+ surround: {
1858
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
1859
+ };
1860
+ };
1861
+ };
1862
+ };
1863
+ };
1864
+ };
1865
+ get: {
1866
+ plugins: import("../models/EditorPlugin").FlowEditorPlugin[];
1867
+ content: {
1868
+ isEmpty: () => boolean;
1869
+ asJSON: () => import("../models/EditorModels").FlowContent;
1870
+ asString: () => string;
1871
+ };
1872
+ selection: {
1873
+ has: {
1874
+ type: (pluginType: string) => boolean;
1875
+ };
1876
+ get: {
1877
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
1878
+ };
1879
+ };
1880
+ };
1881
+ } & {
1882
+ dispose?: () => void;
1883
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1884
+ };
1885
+ setVisibility: {
1886
+ subscribe(fn: (failureReason: any, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1887
+ };
1888
+ };
1889
+ } & {
1890
+ setCustomRenderer: (renderer: () => JSX.Element) => void;
1891
+ removeAllActions: () => void;
1892
+ setActiveEditorStore: (store: ReturnType<typeof useFlowEditorStore>) => void;
1893
+ setVisibility: (show: boolean) => void;
1894
+ };
1895
+ get: {
1896
+ isActiveStore(): boolean;
1897
+ actionsGroupedAndSorted(): FlowEditorActionRegistration[][];
1898
+ };
1899
+ } & {
1900
+ dispose?: () => void;
1901
+ };