@omnia/fx 8.0.267-dev → 8.0.269-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/internal-do-not-import-from-here/core/Extend.d.ts +1 -1
  2. package/internal-do-not-import-from-here/core/propertyPath.d.ts +1 -1
  3. package/internal-do-not-import-from-here/index.d.ts +2 -2
  4. package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
  5. package/internal-do-not-import-from-here/stores/floweditor/FlowRendererPluginStore.d.ts +43 -0
  6. package/internal-do-not-import-from-here/stores/floweditor/index.d.ts +1 -0
  7. package/internal-do-not-import-from-here/stores/oxide/ComponentHostStore.d.ts +5 -5
  8. package/internal-do-not-import-from-here/ux/app/management/api/AppManagementApi.d.ts +1 -0
  9. package/internal-do-not-import-from-here/ux/aurora/components/viewtemplatepicker/ViewTemplatePicker.d.ts +6 -6
  10. package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +18 -18
  11. package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +18 -18
  12. package/internal-do-not-import-from-here/ux/features/stores/FeatureJourneyStore.d.ts +1 -1
  13. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditor.d.ts +7 -6
  14. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/EditorCommands.d.ts +7 -8
  15. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/EditorNodeHelper.d.ts +1 -1
  16. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/HtmlNodehelper.d.ts +1 -1
  17. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/index.d.ts +3 -0
  18. package/internal-do-not-import-from-here/ux/flow/editor/commands/index.d.ts +2 -0
  19. package/internal-do-not-import-from-here/ux/flow/editor/index.d.ts +5 -0
  20. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/Constants.d.ts +1 -0
  21. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorModels.d.ts +0 -11
  22. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorPlugin.d.ts +12 -11
  23. package/internal-do-not-import-from-here/ux/flow/editor/models/index.d.ts +3 -0
  24. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/HtmlParser.d.ts +2 -2
  25. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/JSONParser.d.ts +2 -2
  26. package/internal-do-not-import-from-here/ux/flow/editor/parsers/index.d.ts +2 -0
  27. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/DefineEditorPlugin.d.ts +1 -1
  28. package/internal-do-not-import-from-here/ux/flow/editor/plugins/bold/BoldPlugin.d.ts +3 -0
  29. package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorConverter.d.ts +3 -0
  30. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/colorstyle/ColorStylePlugin.d.ts +1 -1
  31. package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementConverter.d.ts +6 -0
  32. package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementPlugin.d.ts +3 -0
  33. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/EditorEvents.d.ts +1 -1
  34. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/KeyboardEvents.d.ts +1 -1
  35. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/converters/WordConverter.d.ts +0 -0
  36. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +1 -1
  37. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +6 -0
  38. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/handlers/EnterHandler.d.ts +1 -1
  39. package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/index.d.ts +3 -0
  40. package/internal-do-not-import-from-here/ux/flow/editor/plugins/italic/ItalicPlugin.d.ts +3 -0
  41. package/internal-do-not-import-from-here/ux/flow/editor/plugins/sourceeditor/SourceEditorButton.d.ts +2 -0
  42. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/sourceeditor/SourceEditorPlugin.d.ts +1 -1
  43. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/testdata/TestDataPlugin.d.ts +1 -1
  44. package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextConverter.d.ts +2 -0
  45. package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextPlugin.d.ts +3 -0
  46. package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +2 -0
  47. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/typography/TypographyPlugin.d.ts +1 -1
  48. package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/VelcronPlugin.d.ts +9 -0
  49. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/rules/EditorRules.d.ts +1 -0
  50. package/internal-do-not-import-from-here/ux/flow/editor/rules/index.d.ts +1 -0
  51. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/stores/FlowEditorStore.d.ts +31 -21
  52. package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/stores/FlowEditorToolbarStore.d.ts +216 -166
  53. package/internal-do-not-import-from-here/ux/flow/editor/stores/index.d.ts +2 -0
  54. package/internal-do-not-import-from-here/ux/flow/models/ColorFormatNode.d.ts +5 -0
  55. package/internal-do-not-import-from-here/ux/flow/models/ElementNode.d.ts +4 -0
  56. package/internal-do-not-import-from-here/ux/flow/models/FlowContent.d.ts +11 -0
  57. package/internal-do-not-import-from-here/ux/flow/models/TypographyNode.d.ts +5 -0
  58. package/internal-do-not-import-from-here/ux/flow/models/VelcronNode.d.ts +5 -0
  59. package/internal-do-not-import-from-here/ux/flow/models/index.d.ts +5 -0
  60. package/internal-do-not-import-from-here/ux/flow/renderer/FlowRenderer.css.d.ts +6 -0
  61. package/internal-do-not-import-from-here/ux/flow/renderer/FlowRenderer.d.ts +11 -0
  62. package/internal-do-not-import-from-here/ux/flow/renderer/PluginRegistrationHandler.d.ts +1 -0
  63. package/internal-do-not-import-from-here/ux/flow/renderer/index.d.ts +3 -0
  64. package/internal-do-not-import-from-here/ux/flow/renderer/models/Constants.d.ts +12 -0
  65. package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererContentPlugin.d.ts +6 -0
  66. package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererContext.d.ts +3 -0
  67. package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererPlugin.d.ts +3 -0
  68. package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererPluginContext.d.ts +7 -0
  69. package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererToHtmlContext.d.ts +8 -0
  70. package/internal-do-not-import-from-here/ux/flow/renderer/models/index.d.ts +6 -0
  71. package/internal-do-not-import-from-here/ux/flow/renderer/parsers/JSONParser.d.ts +8 -0
  72. package/internal-do-not-import-from-here/ux/flow/renderer/parsers/index.d.ts +1 -0
  73. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/DefineRendererPlugin.d.ts +8 -0
  74. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/PluginRegistrations.d.ts +1 -0
  75. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/bold/BoldPlugin.d.ts +3 -0
  76. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/colorstyle/ColorStylePlugin.d.ts +3 -0
  77. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/elements/ElementPlugin.d.ts +3 -0
  78. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/italic/ItalicPlugin.d.ts +3 -0
  79. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/text/TextConverter.d.ts +5 -0
  80. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/text/TextPlugin.d.ts +3 -0
  81. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/typography/TypographyPlugin.d.ts +3 -0
  82. package/internal-do-not-import-from-here/ux/flow/renderer/plugins/velcron/VelcronPlugin.d.ts +9 -0
  83. package/internal-do-not-import-from-here/ux/flow/renderer/stores/FlowRendererStore.d.ts +109 -0
  84. package/internal-do-not-import-from-here/ux/flow/renderer/stores/index.d.ts +1 -0
  85. package/internal-do-not-import-from-here/ux/journey/core/JourneyRouter.d.ts +4 -0
  86. package/internal-do-not-import-from-here/ux/journey/core/index.d.ts +1 -0
  87. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutitemactiontoolbar/LayoutItemActionToolbar.d.ts +9 -129
  88. package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +1 -1
  89. package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.d.ts +2 -4
  90. package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.stylex.d.ts +4 -1
  91. package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.d.ts +2 -2
  92. package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.stylex.d.ts +4 -0
  93. package/internal-do-not-import-from-here/ux/use/UseIcon.d.ts +1 -0
  94. package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +8 -8
  95. package/internal-do-not-import-from-here/ux/velcron/definitions/VelcronDefinitionIds.d.ts +9 -9
  96. package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +57 -3
  97. package/internal-do-not-import-from-here/ux/versionedlayout/editor/VersionedLayoutDefinitionEditorItem.d.ts +1 -0
  98. package/internal-do-not-import-from-here/wctypings.d.ts +28 -22
  99. package/package.json +2 -2
  100. package/internal-do-not-import-from-here/ux/floweditor/plugins/bold/BoldPlugin.d.ts +0 -3
  101. package/internal-do-not-import-from-here/ux/floweditor/plugins/colorstyle/ColorButton.d.ts +0 -7
  102. package/internal-do-not-import-from-here/ux/floweditor/plugins/elements/ElementPlugin.d.ts +0 -7
  103. package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +0 -4
  104. package/internal-do-not-import-from-here/ux/floweditor/plugins/italic/ItalicPlugin.d.ts +0 -3
  105. package/internal-do-not-import-from-here/ux/floweditor/plugins/text/TextPlugin.d.ts +0 -3
  106. package/internal-do-not-import-from-here/ux/floweditor/plugins/typography/TypographyButton.d.ts +0 -7
  107. package/internal-do-not-import-from-here/ux/floweditor/plugins/velcron/VelcronPlugin.d.ts +0 -8
  108. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentEditor.css.d.ts +0 -5
  109. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentEditor.d.ts +0 -89
  110. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentRenderer.d.ts +0 -80
  111. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/ActionMenu.css.d.ts +0 -4
  112. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/ActionMenu.d.ts +0 -11
  113. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector copy.d.ts +0 -11
  114. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector.css.d.ts +0 -12
  115. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector.d.ts +0 -11
  116. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar copy.d.ts +0 -14
  117. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar.css.d.ts +0 -4
  118. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar.d.ts +0 -14
  119. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/editorHooks/ContentEditorHooks.css.d.ts +0 -6
  120. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/editorHooks/ContentEditorHooks.d.ts +0 -2
  121. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/markdownplugins/section/SectionRenderer.d.ts +0 -5
  122. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/markdownplugins/section/SectionRendererPlugin.d.ts +0 -5
  123. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/models/EditorRenderingHooks.d.ts +0 -24
  124. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/models/index.d.ts +0 -1
  125. package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +0 -249
  126. /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditor.css.d.ts +0 -0
  127. /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditorToolbar.css.d.ts +0 -0
  128. /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditorToolbar.d.ts +0 -0
  129. /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/PluginRegistrationHandler.d.ts +0 -0
  130. /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/Editorhelper.d.ts +0 -0
  131. /package/internal-do-not-import-from-here/ux/{floweditor/plugins/registrations → flow/editor/plugins}/PluginRegistrations.d.ts +0 -0
  132. /package/internal-do-not-import-from-here/ux/{floweditor/plugins/sourceeditor/SourceEditorButton.d.ts → flow/editor/plugins/colorstyle/ColorButton.d.ts} +0 -0
@@ -1,6 +1,5 @@
1
- import { FlowContent, NodeSelection } from "../models/EditorModels";
2
- import { FlowEditorPlugin, FlowEditorPluginContext } from "../models/EditorPlugin";
3
- export type builtIndataTypes = "text" | "formatting";
1
+ import { NodeSelection, FlowEditorPlugin, FlowEditorPluginContext } from "../models";
2
+ import { FlowContent } from "../../models";
4
3
  export declare function useEditorCommands(state: {
5
4
  editor: HTMLDivElement;
6
5
  selectedRange: Range;
@@ -21,7 +20,7 @@ export declare function useEditorCommands(state: {
21
20
  };
22
21
  selection: {
23
22
  get: {
24
- byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
23
+ byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
25
24
  };
26
25
  };
27
26
  cursor: {
@@ -39,10 +38,10 @@ export declare function useEditorCommands(state: {
39
38
  element: {
40
39
  clean: (element: HTMLElement) => void;
41
40
  add: (element: HTMLElement) => void;
42
- create: (tagName: string, dataType: builtIndataTypes | string) => HTMLElement;
41
+ create: (tagName: string, dataType: string) => HTMLElement;
43
42
  createText: () => HTMLParagraphElement;
44
43
  createTextNode: (data: any) => Text;
45
- createComponent: (componentName: string) => HTMLDivElement;
44
+ createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
46
45
  insert: {
47
46
  text: (element: Node, text: string, offset: any) => void;
48
47
  };
@@ -68,7 +67,7 @@ export declare function useEditorCommands(state: {
68
67
  };
69
68
  editorNode: {
70
69
  get: {
71
- nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
70
+ nodesInArrayByPluginType: (nodes: Array<import("../models").FlowNodeReference>, dataType: string) => Array<import("../models").FlowNodeReference>;
72
71
  };
73
72
  };
74
73
  htmlNode: {
@@ -85,7 +84,7 @@ export declare function useEditorCommands(state: {
85
84
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
86
85
  };
87
86
  remove: {
88
- nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
87
+ nodes: (nodes2Remove: Array<import("../models").FlowNodeReference>, editor: HTMLElement) => void;
89
88
  };
90
89
  strip: {
91
90
  after: (element: HTMLElement, splitter: string) => void;
@@ -1,4 +1,4 @@
1
- import { FlowNodeReference } from "../../models/EditorModels";
1
+ import { FlowNodeReference } from "../../models";
2
2
  export declare function useEditorNodeHelper(): {
3
3
  get: {
4
4
  nodesInArrayByPluginType: (nodes: Array<FlowNodeReference>, dataType: string) => Array<FlowNodeReference>;
@@ -1,4 +1,4 @@
1
- import { FlowNodeReference, NodeSelection } from "../../models/EditorModels";
1
+ import { FlowNodeReference, NodeSelection } from "../../models";
2
2
  export declare function useHtmlNodeHelper(): {
3
3
  copy: {
4
4
  children: (from: HTMLElement, to: HTMLElement) => void;
@@ -0,0 +1,3 @@
1
+ export * from "./EditorNodeHelper";
2
+ export * from "./Editorhelper";
3
+ export * from "./HtmlNodehelper";
@@ -0,0 +1,2 @@
1
+ export * from "./EditorCommands";
2
+ export * from "./helpers";
@@ -0,0 +1,5 @@
1
+ export * from "./commands";
2
+ export * from "./models";
3
+ export * from "./parsers";
4
+ export * from "./rules";
5
+ export * from "./stores";
@@ -3,6 +3,7 @@ export declare const FlowEditorConstants: {
3
3
  attributes: {
4
4
  pluginType: string;
5
5
  Id: string;
6
+ isComponent: string;
6
7
  };
7
8
  };
8
9
  editor: {
@@ -1,14 +1,3 @@
1
- export interface FlowContent {
2
- version: string;
3
- nodes: FlowNode[];
4
- }
5
- export interface FlowNode {
6
- type: string;
7
- children?: FlowNode[];
8
- }
9
- export interface FlowTextNode extends FlowNode {
10
- value?: string;
11
- }
12
1
  export interface FlowNodeReference {
13
2
  type: string;
14
3
  id: number;
@@ -1,7 +1,7 @@
1
1
  import { FlowEditorActionRegistration } from "@omnia/fx-models";
2
- import { FlowNode } from "./EditorModels";
3
- import { useFlowEditorStore } from "../stores/FlowEditorStore";
4
- import { useFlowEditorToolbarStore } from "../stores/FlowEditorToolbarStore";
2
+ import { useColorSchemaStore } from "@omnia/fx/ux";
3
+ import { FlowNode } from "../../models";
4
+ import { useFlowEditorStore, useFlowEditorToolbarStore } from "../stores";
5
5
  export interface FlowEditorPlugin {
6
6
  name: string;
7
7
  commands?: object;
@@ -12,16 +12,16 @@ export interface FlowEditorEventListener {
12
12
  event?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap>;
13
13
  action: (event: Event, context: FlowEditorPluginContext) => void;
14
14
  }
15
- export interface FlowRenderingContext {
15
+ export interface FlowEditorRenderingContext {
16
16
  parentElement: HTMLElement;
17
17
  }
18
- export interface FlowToHtmlContext {
19
- node: FlowNode;
18
+ export interface FlowToHtmlContext<TNodeType extends FlowNode = FlowNode> {
19
+ node: TNodeType;
20
20
  pluginContext: FlowEditorPluginContext;
21
- renderingContext: FlowRenderingContext;
21
+ renderingContext: FlowEditorRenderingContext;
22
22
  }
23
- export interface FlowToJsonContext {
24
- element: HTMLElement;
23
+ export interface FlowToJsonContext<TElementType extends HTMLElement = HTMLElement> {
24
+ element: TElementType;
25
25
  parent: FlowNode;
26
26
  }
27
27
  export interface ElementConverter {
@@ -29,12 +29,13 @@ export interface ElementConverter {
29
29
  convert: (el: HTMLElement, pluginContext: FlowEditorPluginContext) => HTMLElement;
30
30
  }
31
31
  export interface FlowEditorContentPlugin extends FlowEditorPlugin {
32
- toJSON: (context: FlowToJsonContext) => FlowNode;
33
- toHtml: (context: FlowToHtmlContext) => HTMLElement;
32
+ toJSON: <TElementType extends HTMLElement = HTMLElement>(context: FlowToJsonContext<TElementType>) => FlowNode;
33
+ toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement;
34
34
  elementConverter?: ElementConverter;
35
35
  }
36
36
  export interface FlowEditorPluginContext {
37
37
  componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
38
38
  editorStore: ReturnType<typeof useFlowEditorStore>;
39
39
  toolbarStore: ReturnType<typeof useFlowEditorToolbarStore>;
40
+ colors: ReturnType<typeof useColorSchemaStore>;
40
41
  }
@@ -0,0 +1,3 @@
1
+ export * from "./Constants";
2
+ export * from "./EditorPlugin";
3
+ export * from "./EditorModels";
@@ -1,5 +1,5 @@
1
- import { FlowEditorPlugin } from "../models/EditorPlugin";
2
- import { FlowContent } from "../models/EditorModels";
1
+ import { FlowEditorPlugin } from "../models";
2
+ import { FlowContent } from "../../models";
3
3
  export declare function useHtmlParser(state: {
4
4
  editor: HTMLDivElement;
5
5
  plugins: Array<FlowEditorPlugin>;
@@ -1,5 +1,5 @@
1
- import { FlowContent } from "../models/EditorModels";
2
- import { FlowEditorPlugin, FlowEditorPluginContext } from "../models/EditorPlugin";
1
+ import { FlowContent } from "../../models";
2
+ import { FlowEditorPlugin, FlowEditorPluginContext } from "../models";
3
3
  export declare function useJSONParser(state: {
4
4
  editor: HTMLDivElement;
5
5
  plugins: Array<FlowEditorPlugin>;
@@ -0,0 +1,2 @@
1
+ export * from "./HtmlParser";
2
+ export * from "./JSONParser";
@@ -1,5 +1,5 @@
1
1
  import { SetupFactoryContext } from "@omnia/fx";
2
- import { FlowEditorContentPlugin, FlowEditorPlugin } from "../models/EditorPlugin";
2
+ import { FlowEditorContentPlugin, FlowEditorPlugin } from "../models";
3
3
  interface SetupEditorPluginContext extends SetupFactoryContext {
4
4
  }
5
5
  export declare function defineEditorPlugin<TArgs extends any[]>(setup: (ctx: SetupEditorPluginContext) => FlowEditorPlugin | FlowEditorContentPlugin): () => FlowEditorPlugin & {
@@ -0,0 +1,3 @@
1
+ export declare const boldPlugin: () => import("../../models").FlowEditorPlugin & {
2
+ dispose?: () => void;
3
+ };
@@ -0,0 +1,3 @@
1
+ import { ColorValue } from "@omnia/fx-models";
2
+ import { ElementConverter, FlowEditorPluginContext } from "../../models";
3
+ export declare function useColorConverter(elementCreator: (value: ColorValue, ctx: FlowEditorPluginContext) => HTMLElement): ElementConverter;
@@ -1,3 +1,3 @@
1
- export declare const colorStylePlugin: () => import("../../models/EditorPlugin").FlowEditorPlugin & {
1
+ export declare const colorStylePlugin: () => import("../../models").FlowEditorPlugin & {
2
2
  dispose?: () => void;
3
3
  };
@@ -0,0 +1,6 @@
1
+ import { FlowNode } from "../../../models";
2
+ import { ElementConverter } from "../../models";
3
+ export interface ElementNode extends FlowNode {
4
+ name: "br";
5
+ }
6
+ export declare function useElementConverter(): ElementConverter;
@@ -0,0 +1,3 @@
1
+ export declare const elementPlugin: () => import("../../models").FlowEditorPlugin & {
2
+ dispose?: () => void;
3
+ };
@@ -1,4 +1,4 @@
1
- import { FlowEditorPlugin } from "../../models/EditorPlugin";
1
+ import { FlowEditorPlugin } from "../../models";
2
2
  export declare const editorEventsPlugin: () => FlowEditorPlugin & {
3
3
  dispose?: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { FlowEditorPlugin } from "../../models/EditorPlugin";
1
+ import { FlowEditorPlugin } from "../../models";
2
2
  export declare const keyboardEventsPlugin: () => FlowEditorPlugin & {
3
3
  dispose?: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { useFlowEditorStore } from "../../../stores/FlowEditorStore";
1
+ import { useFlowEditorStore } from "../../../stores";
2
2
  export declare function useBackspaceHandler(): {
3
3
  handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
4
4
  };
@@ -0,0 +1,6 @@
1
+ import { FlowEditorPluginContext } from "../../../models";
2
+ import { useFlowEditorStore } from "../../../stores";
3
+ export declare function useClipboardHandler(): {
4
+ paste: (ev: ClipboardEvent, editorStore: ReturnType<typeof useFlowEditorStore>) => void;
5
+ copy: (event: ClipboardEvent, context: FlowEditorPluginContext) => void;
6
+ };
@@ -1,4 +1,4 @@
1
- import { useFlowEditorStore } from "../../../stores/FlowEditorStore";
1
+ import { useFlowEditorStore } from "../../../stores";
2
2
  export declare function useEnterHandler(): {
3
3
  handle: (store: ReturnType<typeof useFlowEditorStore>) => void;
4
4
  };
@@ -0,0 +1,3 @@
1
+ export * from "./BackspaceHandler";
2
+ export * from "./ClipboardHandler";
3
+ export * from "./EnterHandler";
@@ -0,0 +1,3 @@
1
+ export declare const italicPlugin: () => import("../../models").FlowEditorPlugin & {
2
+ dispose?: () => void;
3
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { FlowEditorPlugin } from "../../models/EditorPlugin";
1
+ import { FlowEditorPlugin } from "../../models";
2
2
  export declare const sourceEditorPlugin: () => FlowEditorPlugin & {
3
3
  dispose?: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { FlowEditorPlugin } from "../../models/EditorPlugin";
1
+ import { FlowEditorPlugin } from "../../models";
2
2
  export declare const testDataPlugin: () => FlowEditorPlugin & {
3
3
  dispose?: () => void;
4
4
  };
@@ -0,0 +1,2 @@
1
+ import { ElementConverter } from "../../models";
2
+ export declare function useTextConverter(): ElementConverter;
@@ -0,0 +1,3 @@
1
+ export declare const textPlugin: () => import("../../models").FlowEditorPlugin & {
2
+ dispose?: () => void;
3
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -1,3 +1,3 @@
1
- export declare const typographyPlugin: () => import("../../models/EditorPlugin").FlowEditorPlugin & {
1
+ export declare const typographyPlugin: () => import("../../models").FlowEditorPlugin & {
2
2
  dispose?: () => void;
3
3
  };
@@ -0,0 +1,9 @@
1
+ import { DynamicState, VelcronAppDefinition, VelcronDefinitionRegistrationWithoutApp } from "@omnia/fx-models";
2
+ export type VelcronHtmlDivElement = HTMLDivElement & {
3
+ velcron: VelcronAppDefinition;
4
+ velcronRegistration: VelcronDefinitionRegistrationWithoutApp;
5
+ state: DynamicState;
6
+ };
7
+ export declare const velcronRendererPlugin: () => import("../../models").FlowEditorPlugin & {
8
+ dispose?: () => void;
9
+ };
@@ -1,5 +1,6 @@
1
1
  export declare function useFlowEditorRules(): {
2
2
  is: {
3
+ flowComponent: (node: HTMLElement) => boolean;
3
4
  topContainer: (node: HTMLElement) => boolean;
4
5
  editorNode: (node: HTMLElement) => boolean;
5
6
  clipboardContainer: (node: HTMLElement) => boolean;
@@ -0,0 +1 @@
1
+ export * from "./EditorRules";
@@ -1,6 +1,6 @@
1
- import { FlowEditorActionRegistration, FlowEditorPluginSettings } from "@omnia/fx-models";
2
- import { FlowEditorPlugin, FlowEditorPluginContext } from "../models/EditorPlugin";
3
- import { FlowContent, NodeSelection } from "../models/EditorModels";
1
+ import { FlowEditorActionRegistration, FlowEditorPluginSettings, guid } from "@omnia/fx-models";
2
+ import { FlowEditorPlugin, FlowEditorPluginContext, NodeSelection } from "../models";
3
+ import { FlowContent } from "../../models";
4
4
  export declare const useFlowEditorStore: () => {
5
5
  state: {
6
6
  editorContent: FlowContent;
@@ -16,6 +16,11 @@ export declare const useFlowEditorStore: () => {
16
16
  pluginContext: FlowEditorPluginContext;
17
17
  selectedRange: Range;
18
18
  showPlaceHolder: boolean;
19
+ definitionSelector: {
20
+ show: boolean;
21
+ categoryFilters: guid[];
22
+ rendererTypeFilters: guid[];
23
+ };
19
24
  };
20
25
  events: {
21
26
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowContent>;
@@ -31,6 +36,11 @@ export declare const useFlowEditorStore: () => {
31
36
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
32
37
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
33
38
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
39
+ onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
40
+ show: boolean;
41
+ categoryFilters: guid[];
42
+ rendererTypeFilters: guid[];
43
+ }>;
34
44
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
35
45
  actions: {
36
46
  onDispatching: {
@@ -70,7 +80,7 @@ export declare const useFlowEditorStore: () => {
70
80
  subscribe(fn: (result: {
71
81
  sync: () => FlowContent;
72
82
  set: {
73
- byJSON: (content: FlowContent) => void;
83
+ byObject: (content: FlowContent) => void;
74
84
  byString: (content: string) => void;
75
85
  };
76
86
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -97,9 +107,9 @@ export declare const useFlowEditorStore: () => {
97
107
  };
98
108
  element: {
99
109
  subscribe(fn: (result: {
100
- createForComponent: (componentName: string) => HTMLDivElement;
110
+ createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
101
111
  createText: () => HTMLParagraphElement;
102
- create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
112
+ create: (tagName: string, dataType: string) => HTMLElement;
103
113
  createTextNode: (data: any) => Text;
104
114
  add: (element: HTMLElement) => void;
105
115
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -119,7 +129,7 @@ export declare const useFlowEditorStore: () => {
119
129
  };
120
130
  selection: {
121
131
  get: {
122
- byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
132
+ byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
123
133
  };
124
134
  };
125
135
  cursor: {
@@ -137,10 +147,10 @@ export declare const useFlowEditorStore: () => {
137
147
  element: {
138
148
  clean: (element: HTMLElement) => void;
139
149
  add: (element: HTMLElement) => void;
140
- create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
150
+ create: (tagName: string, dataType: string) => HTMLElement;
141
151
  createText: () => HTMLParagraphElement;
142
152
  createTextNode: (data: any) => Text;
143
- createComponent: (componentName: string) => HTMLDivElement;
153
+ createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
144
154
  insert: {
145
155
  text: (element: Node, text: string, offset: any) => void;
146
156
  };
@@ -166,7 +176,7 @@ export declare const useFlowEditorStore: () => {
166
176
  };
167
177
  editorNode: {
168
178
  get: {
169
- nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
179
+ nodesInArrayByPluginType: (nodes: Array<import("../models").FlowNodeReference>, dataType: string) => Array<import("../models").FlowNodeReference>;
170
180
  };
171
181
  };
172
182
  htmlNode: {
@@ -183,7 +193,7 @@ export declare const useFlowEditorStore: () => {
183
193
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
184
194
  };
185
195
  remove: {
186
- nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
196
+ nodes: (nodes2Remove: Array<import("../models").FlowNodeReference>, editor: HTMLElement) => void;
187
197
  };
188
198
  strip: {
189
199
  after: (element: HTMLElement, splitter: string) => void;
@@ -232,7 +242,7 @@ export declare const useFlowEditorStore: () => {
232
242
  content: () => {
233
243
  sync: () => FlowContent;
234
244
  set: {
235
- byJSON: (content: FlowContent) => void;
245
+ byObject: (content: FlowContent) => void;
236
246
  byString: (content: string) => void;
237
247
  };
238
248
  };
@@ -251,9 +261,9 @@ export declare const useFlowEditorStore: () => {
251
261
  remove: (dataType: string) => void;
252
262
  };
253
263
  element: () => {
254
- createForComponent: (componentName: string) => HTMLDivElement;
264
+ createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
255
265
  createText: () => HTMLParagraphElement;
256
- create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
266
+ create: (tagName: string, dataType: string) => HTMLElement;
257
267
  createTextNode: (data: any) => Text;
258
268
  add: (element: HTMLElement) => void;
259
269
  };
@@ -271,7 +281,7 @@ export declare const useFlowEditorStore: () => {
271
281
  };
272
282
  selection: {
273
283
  get: {
274
- byPluginType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
284
+ byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
275
285
  };
276
286
  };
277
287
  cursor: {
@@ -289,10 +299,10 @@ export declare const useFlowEditorStore: () => {
289
299
  element: {
290
300
  clean: (element: HTMLElement) => void;
291
301
  add: (element: HTMLElement) => void;
292
- create: (tagName: string, dataType: import("../commands/EditorCommands").builtIndataTypes | string) => HTMLElement;
302
+ create: (tagName: string, dataType: string) => HTMLElement;
293
303
  createText: () => HTMLParagraphElement;
294
304
  createTextNode: (data: any) => Text;
295
- createComponent: (componentName: string) => HTMLDivElement;
305
+ createComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
296
306
  insert: {
297
307
  text: (element: Node, text: string, offset: any) => void;
298
308
  };
@@ -318,7 +328,7 @@ export declare const useFlowEditorStore: () => {
318
328
  };
319
329
  editorNode: {
320
330
  get: {
321
- nodesInArrayByPluginType: (nodes: Array<import("../models/EditorModels").FlowNodeReference>, dataType: string) => Array<import("../models/EditorModels").FlowNodeReference>;
331
+ nodesInArrayByPluginType: (nodes: Array<import("../models").FlowNodeReference>, dataType: string) => Array<import("../models").FlowNodeReference>;
322
332
  };
323
333
  };
324
334
  htmlNode: {
@@ -335,7 +345,7 @@ export declare const useFlowEditorStore: () => {
335
345
  htmlElementInStructureById: (id: number, currentElement: HTMLElement) => HTMLElement;
336
346
  };
337
347
  remove: {
338
- nodes: (nodes2Remove: Array<import("../models/EditorModels").FlowNodeReference>, editor: HTMLElement) => void;
348
+ nodes: (nodes2Remove: Array<import("../models").FlowNodeReference>, editor: HTMLElement) => void;
339
349
  };
340
350
  strip: {
341
351
  after: (element: HTMLElement, splitter: string) => void;
@@ -353,7 +363,7 @@ export declare const useFlowEditorStore: () => {
353
363
  plugins: FlowEditorPlugin[];
354
364
  content: {
355
365
  isEmpty: () => boolean;
356
- asJSON: () => FlowContent;
366
+ asObject: () => FlowContent;
357
367
  asString: () => string;
358
368
  };
359
369
  selection: {
@@ -361,7 +371,7 @@ export declare const useFlowEditorStore: () => {
361
371
  type: (pluginType: string) => boolean;
362
372
  };
363
373
  get: {
364
- byType: (pluginType: string) => import("../models/EditorModels").FlowNodeReference[];
374
+ byType: (pluginType: string) => import("../models").FlowNodeReference[];
365
375
  };
366
376
  };
367
377
  };