@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,370 @@
1
+ import { FlowEditorActionRegistration, FlowEditorPluginSettings } from "@omnia/fx-models";
2
+ import { FlowEditorPlugin, FlowEditorPluginContext } from "../models/EditorPlugin";
3
+ import { FlowContent, NodeSelection } from "../models/EditorModels";
4
+ export declare const useFlowEditorStore: () => {
5
+ state: {
6
+ editorContent: FlowContent;
7
+ plugins: FlowEditorPlugin[];
8
+ hideToolbar: boolean;
9
+ editMode: boolean;
10
+ maxNodeId: number;
11
+ toolbarActions: FlowEditorActionRegistration[];
12
+ editor: HTMLDivElement;
13
+ nodeSelection: NodeSelection;
14
+ telePorts: JSX.Element[];
15
+ id: string;
16
+ pluginContext: FlowEditorPluginContext;
17
+ selectedRange: Range;
18
+ showPlaceHolder: boolean;
19
+ };
20
+ events: {
21
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowContent>;
22
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPlugin[]>;
23
+ onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
24
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
25
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
26
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
27
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
28
+ onMutatedNodeSelection: import("@omnia/fx").MessageBusExposeOnlySubscription<NodeSelection>;
29
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
30
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
31
+ onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
32
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
33
+ onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
34
+ } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
35
+ actions: {
36
+ onDispatching: {
37
+ plugin: {
38
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
39
+ };
40
+ content: {
41
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
42
+ };
43
+ set: {
44
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
45
+ };
46
+ toolbarAction: {
47
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
48
+ };
49
+ formatting: {
50
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
51
+ };
52
+ element: {
53
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
54
+ };
55
+ commands: {
56
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
57
+ };
58
+ };
59
+ onDispatched: {
60
+ plugin: {
61
+ subscribe(fn: (result: {
62
+ register: {
63
+ plugin: (pluginSettings: FlowEditorPluginSettings) => void;
64
+ plugins: (pluginSettings: FlowEditorPluginSettings | FlowEditorPluginSettings[]) => Promise<void>;
65
+ context: (ctx: FlowEditorPluginContext) => void;
66
+ };
67
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
68
+ };
69
+ content: {
70
+ subscribe(fn: (result: {
71
+ sync: () => FlowContent;
72
+ set: {
73
+ byJSON: (content: FlowContent) => void;
74
+ byString: (content: string) => void;
75
+ };
76
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
77
+ };
78
+ set: {
79
+ subscribe(fn: (result: {
80
+ mode: (editMode: boolean) => void;
81
+ container: (el: HTMLDivElement) => void;
82
+ focus: () => void;
83
+ placeHolderVisibility: () => void;
84
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
85
+ };
86
+ toolbarAction: {
87
+ subscribe(fn: (result: {
88
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
89
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
90
+ };
91
+ formatting: {
92
+ subscribe(fn: (result: {
93
+ add: (element: HTMLElement) => void;
94
+ toggle: (element: HTMLElement) => void;
95
+ remove: (dataType: string) => void;
96
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
97
+ };
98
+ element: {
99
+ subscribe(fn: (result: {
100
+ createForComponent: (componentName: string) => HTMLDivElement;
101
+ createText: () => HTMLParagraphElement;
102
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
103
+ createTextNode: (data: any) => Text;
104
+ add: (element: HTMLElement) => void;
105
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
106
+ };
107
+ commands: {
108
+ subscribe(fn: (result: {
109
+ exec: (command: string, data: object) => void;
110
+ builtIn: {
111
+ content: {
112
+ convert: (element: HTMLElement) => void;
113
+ };
114
+ ensure: {
115
+ lastElement: () => void;
116
+ unique: {
117
+ ids: (element: HTMLElement) => void;
118
+ };
119
+ };
120
+ selection: {
121
+ get: {
122
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
123
+ };
124
+ };
125
+ cursor: {
126
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
127
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
128
+ };
129
+ actions: {
130
+ setSelection: () => void;
131
+ };
132
+ formatting: {
133
+ add: (element: HTMLElement) => void;
134
+ remove: (dataType: string | HTMLElement) => void;
135
+ has: (dataType: string | HTMLElement) => boolean;
136
+ };
137
+ element: {
138
+ clean: (element: HTMLElement) => void;
139
+ add: (element: HTMLElement) => void;
140
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
141
+ createText: () => HTMLParagraphElement;
142
+ createTextNode: (data: any) => Text;
143
+ createComponent: (componentName: string) => HTMLDivElement;
144
+ insert: {
145
+ text: (element: Node, text: string, offset: any) => void;
146
+ };
147
+ ids: {
148
+ unique: (element: HTMLElement) => void;
149
+ };
150
+ };
151
+ helpers: {
152
+ editor: {
153
+ ensure: {
154
+ uniqueIds: (element: HTMLElement, state: {
155
+ maxNodeId: number;
156
+ }) => HTMLElement;
157
+ selectionIsInEditor: (range: Range) => void;
158
+ };
159
+ cursor: {
160
+ storePosition: (state: {
161
+ selectedRange: Range;
162
+ }) => void;
163
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
164
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
165
+ };
166
+ };
167
+ editorNode: {
168
+ get: {
169
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
170
+ };
171
+ };
172
+ htmlNode: {
173
+ copy: {
174
+ children: (from: HTMLElement, to: HTMLElement) => void;
175
+ };
176
+ insert: {
177
+ text: (element: Node, text: string, offset: any) => void;
178
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
179
+ };
180
+ get: {
181
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
182
+ nodeSelectionForRange: (range: Range) => NodeSelection;
183
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
184
+ };
185
+ remove: {
186
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
187
+ };
188
+ strip: {
189
+ after: (element: HTMLElement, splitter: string) => void;
190
+ before: (element: HTMLElement, splitter: string) => void;
191
+ };
192
+ surround: {
193
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
194
+ };
195
+ };
196
+ };
197
+ };
198
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
199
+ };
200
+ };
201
+ onFailure: {
202
+ plugin: {
203
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
204
+ };
205
+ content: {
206
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
207
+ };
208
+ set: {
209
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
210
+ };
211
+ toolbarAction: {
212
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
213
+ };
214
+ formatting: {
215
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
216
+ };
217
+ element: {
218
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
219
+ };
220
+ commands: {
221
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
222
+ };
223
+ };
224
+ } & {
225
+ plugin: () => {
226
+ register: {
227
+ plugin: (pluginSettings: FlowEditorPluginSettings) => void;
228
+ plugins: (pluginSettings: FlowEditorPluginSettings | FlowEditorPluginSettings[]) => Promise<void>;
229
+ context: (ctx: FlowEditorPluginContext) => void;
230
+ };
231
+ };
232
+ content: () => {
233
+ sync: () => FlowContent;
234
+ set: {
235
+ byJSON: (content: FlowContent) => void;
236
+ byString: (content: string) => void;
237
+ };
238
+ };
239
+ set: () => {
240
+ mode: (editMode: boolean) => void;
241
+ container: (el: HTMLDivElement) => void;
242
+ focus: () => void;
243
+ placeHolderVisibility: () => void;
244
+ };
245
+ toolbarAction: () => {
246
+ add: (action: FlowEditorActionRegistration | FlowEditorActionRegistration[]) => void;
247
+ };
248
+ formatting: () => {
249
+ add: (element: HTMLElement) => void;
250
+ toggle: (element: HTMLElement) => void;
251
+ remove: (dataType: string) => void;
252
+ };
253
+ element: () => {
254
+ createForComponent: (componentName: string) => HTMLDivElement;
255
+ createText: () => HTMLParagraphElement;
256
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
257
+ createTextNode: (data: any) => Text;
258
+ add: (element: HTMLElement) => void;
259
+ };
260
+ commands: () => {
261
+ exec: (command: string, data: object) => void;
262
+ builtIn: {
263
+ content: {
264
+ convert: (element: HTMLElement) => void;
265
+ };
266
+ ensure: {
267
+ lastElement: () => void;
268
+ unique: {
269
+ ids: (element: HTMLElement) => void;
270
+ };
271
+ };
272
+ selection: {
273
+ get: {
274
+ byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
275
+ };
276
+ };
277
+ cursor: {
278
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
279
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
280
+ };
281
+ actions: {
282
+ setSelection: () => void;
283
+ };
284
+ formatting: {
285
+ add: (element: HTMLElement) => void;
286
+ remove: (dataType: string | HTMLElement) => void;
287
+ has: (dataType: string | HTMLElement) => boolean;
288
+ };
289
+ element: {
290
+ clean: (element: HTMLElement) => void;
291
+ add: (element: HTMLElement) => void;
292
+ create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
293
+ createText: () => HTMLParagraphElement;
294
+ createTextNode: (data: any) => Text;
295
+ createComponent: (componentName: string) => HTMLDivElement;
296
+ insert: {
297
+ text: (element: Node, text: string, offset: any) => void;
298
+ };
299
+ ids: {
300
+ unique: (element: HTMLElement) => void;
301
+ };
302
+ };
303
+ helpers: {
304
+ editor: {
305
+ ensure: {
306
+ uniqueIds: (element: HTMLElement, state: {
307
+ maxNodeId: number;
308
+ }) => HTMLElement;
309
+ selectionIsInEditor: (range: Range) => void;
310
+ };
311
+ cursor: {
312
+ storePosition: (state: {
313
+ selectedRange: Range;
314
+ }) => void;
315
+ isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
316
+ isBeforeContent: (range: Range, container: HTMLElement) => boolean;
317
+ };
318
+ };
319
+ editorNode: {
320
+ get: {
321
+ nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
322
+ };
323
+ };
324
+ htmlNode: {
325
+ copy: {
326
+ children: (from: HTMLElement, to: HTMLElement) => void;
327
+ };
328
+ insert: {
329
+ text: (element: Node, text: string, offset: any) => void;
330
+ elementInContainer: (element: HTMLElement, container: HTMLElement) => void;
331
+ };
332
+ get: {
333
+ topContainerForContent: (element: HTMLElement) => HTMLElement;
334
+ nodeSelectionForRange: (range: Range) => NodeSelection;
335
+ htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
336
+ };
337
+ remove: {
338
+ nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
339
+ };
340
+ strip: {
341
+ after: (element: HTMLElement, splitter: string) => void;
342
+ before: (element: HTMLElement, splitter: string) => void;
343
+ };
344
+ surround: {
345
+ selectionWithElement: (element: HTMLElement, range: Range) => void;
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ get: {
353
+ plugins: FlowEditorPlugin[];
354
+ content: {
355
+ isEmpty: () => boolean;
356
+ asJSON: () => FlowContent;
357
+ asString: () => string;
358
+ };
359
+ selection: {
360
+ has: {
361
+ type: (pluginType: string) => boolean;
362
+ };
363
+ get: {
364
+ byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
365
+ };
366
+ };
367
+ };
368
+ } & {
369
+ dispose?: () => void;
370
+ };