@omnia/fx 8.0.267-dev → 8.0.269-dev
Sign up to get free protection for your applications and to get access to all the features.
- package/internal-do-not-import-from-here/core/Extend.d.ts +1 -1
- package/internal-do-not-import-from-here/core/propertyPath.d.ts +1 -1
- package/internal-do-not-import-from-here/index.d.ts +2 -2
- package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/stores/floweditor/FlowRendererPluginStore.d.ts +43 -0
- package/internal-do-not-import-from-here/stores/floweditor/index.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/oxide/ComponentHostStore.d.ts +5 -5
- package/internal-do-not-import-from-here/ux/app/management/api/AppManagementApi.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/aurora/components/viewtemplatepicker/ViewTemplatePicker.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/aurora/store/SpacingBlueprintStore.d.ts +18 -18
- package/internal-do-not-import-from-here/ux/aurora/store/TypographyBlueprintStore.d.ts +18 -18
- package/internal-do-not-import-from-here/ux/features/stores/FeatureJourneyStore.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditor.d.ts +7 -6
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/EditorCommands.d.ts +7 -8
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/EditorNodeHelper.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/HtmlNodehelper.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/index.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/commands/index.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/flow/editor/index.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/Constants.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorModels.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorPlugin.d.ts +12 -11
- package/internal-do-not-import-from-here/ux/flow/editor/models/index.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/HtmlParser.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/JSONParser.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/flow/editor/parsers/index.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/DefineEditorPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/bold/BoldPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/colorstyle/ColorConverter.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/colorstyle/ColorStylePlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementConverter.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/elements/ElementPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/EditorEvents.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/KeyboardEvents.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/converters/WordConverter.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/handlers/BackspaceHandler.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/eventhandlers/handlers/EnterHandler.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/eventhandlers/handlers/index.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/italic/ItalicPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/sourceeditor/SourceEditorButton.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/sourceeditor/SourceEditorPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/testdata/TestDataPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextConverter.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/text/TextPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/typography/TypographyButton.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/plugins/typography/TypographyPlugin.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/plugins/velcron/VelcronPlugin.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/rules/EditorRules.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/flow/editor/rules/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/stores/FlowEditorStore.d.ts +31 -21
- package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/stores/FlowEditorToolbarStore.d.ts +216 -166
- package/internal-do-not-import-from-here/ux/flow/editor/stores/index.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/flow/models/ColorFormatNode.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/flow/models/ElementNode.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/flow/models/FlowContent.d.ts +11 -0
- package/internal-do-not-import-from-here/ux/flow/models/TypographyNode.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/flow/models/VelcronNode.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/flow/models/index.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/FlowRenderer.css.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/FlowRenderer.d.ts +11 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/PluginRegistrationHandler.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/index.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/Constants.d.ts +12 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererContentPlugin.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererContext.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererPluginContext.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererToHtmlContext.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/index.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/parsers/JSONParser.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/parsers/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/DefineRendererPlugin.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/PluginRegistrations.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/bold/BoldPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/colorstyle/ColorStylePlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/elements/ElementPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/italic/ItalicPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/text/TextConverter.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/text/TextPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/typography/TypographyPlugin.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/plugins/velcron/VelcronPlugin.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/stores/FlowRendererStore.d.ts +109 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/journey/core/JourneyRouter.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/journey/core/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutitemactiontoolbar/LayoutItemActionToolbar.d.ts +9 -129
- package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.d.ts +2 -4
- package/internal-do-not-import-from-here/ux/oxide/inputfield/InputField.stylex.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/textarea/TextArea.stylex.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/use/UseIcon.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/velcron/definitions/VelcronDefinitionIds.d.ts +9 -9
- package/internal-do-not-import-from-here/ux/velcron/stores/VelcronDefinitionStore.d.ts +57 -3
- package/internal-do-not-import-from-here/ux/versionedlayout/editor/VersionedLayoutDefinitionEditorItem.d.ts +1 -0
- package/internal-do-not-import-from-here/wctypings.d.ts +28 -22
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/floweditor/plugins/bold/BoldPlugin.d.ts +0 -3
- package/internal-do-not-import-from-here/ux/floweditor/plugins/colorstyle/ColorButton.d.ts +0 -7
- package/internal-do-not-import-from-here/ux/floweditor/plugins/elements/ElementPlugin.d.ts +0 -7
- package/internal-do-not-import-from-here/ux/floweditor/plugins/eventhandlers/handlers/ClipboardHandler.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/floweditor/plugins/italic/ItalicPlugin.d.ts +0 -3
- package/internal-do-not-import-from-here/ux/floweditor/plugins/text/TextPlugin.d.ts +0 -3
- package/internal-do-not-import-from-here/ux/floweditor/plugins/typography/TypographyButton.d.ts +0 -7
- package/internal-do-not-import-from-here/ux/floweditor/plugins/velcron/VelcronPlugin.d.ts +0 -8
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentEditor.css.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentEditor.d.ts +0 -89
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/VelcronContentRenderer.d.ts +0 -80
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/ActionMenu.css.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/ActionMenu.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector copy.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector.css.d.ts +0 -12
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/BorderSelector.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar copy.d.ts +0 -14
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar.css.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/components/DefinitionToolbar.d.ts +0 -14
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/editorHooks/ContentEditorHooks.css.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/editorHooks/ContentEditorHooks.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/markdownplugins/section/SectionRenderer.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/markdownplugins/section/SectionRendererPlugin.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/models/EditorRenderingHooks.d.ts +0 -24
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/velcron/components/contenteditorNew/stores/ContentEditorStore.d.ts +0 -249
- /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditor.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditorToolbar.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/FlowEditorToolbar.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/PluginRegistrationHandler.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/helpers/Editorhelper.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor/plugins/registrations → flow/editor/plugins}/PluginRegistrations.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/{floweditor/plugins/sourceeditor/SourceEditorButton.d.ts → flow/editor/plugins/colorstyle/ColorButton.d.ts} +0 -0
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/commands/EditorCommands.d.ts
RENAMED
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
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
|
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:
|
41
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
43
42
|
createText: () => HTMLParagraphElement;
|
44
43
|
createTextNode: (data: any) => Text;
|
45
|
-
createComponent: (componentName: string) =>
|
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
|
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
|
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
|
1
|
+
import { FlowNodeReference } from "../../models";
|
2
2
|
export declare function useEditorNodeHelper(): {
|
3
3
|
get: {
|
4
4
|
nodesInArrayByPluginType: (nodes: Array<FlowNodeReference>, dataType: string) => Array<FlowNodeReference>;
|
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorModels.d.ts
RENAMED
@@ -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;
|
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/models/EditorPlugin.d.ts
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FlowEditorActionRegistration } from "@omnia/fx-models";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { useFlowEditorToolbarStore } from "../stores
|
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
|
15
|
+
export interface FlowEditorRenderingContext {
|
16
16
|
parentElement: HTMLElement;
|
17
17
|
}
|
18
|
-
export interface FlowToHtmlContext {
|
19
|
-
node:
|
18
|
+
export interface FlowToHtmlContext<TNodeType extends FlowNode = FlowNode> {
|
19
|
+
node: TNodeType;
|
20
20
|
pluginContext: FlowEditorPluginContext;
|
21
|
-
renderingContext:
|
21
|
+
renderingContext: FlowEditorRenderingContext;
|
22
22
|
}
|
23
|
-
export interface FlowToJsonContext {
|
24
|
-
element:
|
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
|
}
|
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/HtmlParser.d.ts
RENAMED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FlowEditorPlugin } from "../models
|
2
|
-
import { FlowContent } from "
|
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>;
|
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/parsers/JSONParser.d.ts
RENAMED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FlowContent } from "
|
2
|
-
import { FlowEditorPlugin, FlowEditorPluginContext } from "../models
|
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>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SetupFactoryContext } from "@omnia/fx";
|
2
|
-
import { FlowEditorContentPlugin, FlowEditorPlugin } from "../models
|
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 & {
|
File without changes
|
@@ -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
|
+
};
|
@@ -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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./EditorRules";
|
package/internal-do-not-import-from-here/ux/{floweditor → flow/editor}/stores/FlowEditorStore.d.ts
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { FlowEditorActionRegistration, FlowEditorPluginSettings } from "@omnia/fx-models";
|
2
|
-
import { FlowEditorPlugin, FlowEditorPluginContext } from "../models
|
3
|
-
import { FlowContent
|
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
|
-
|
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) =>
|
110
|
+
createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
|
101
111
|
createText: () => HTMLParagraphElement;
|
102
|
-
create: (tagName: string, dataType:
|
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
|
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:
|
150
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
141
151
|
createText: () => HTMLParagraphElement;
|
142
152
|
createTextNode: (data: any) => Text;
|
143
|
-
createComponent: (componentName: string) =>
|
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
|
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
|
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
|
-
|
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) =>
|
264
|
+
createForComponent: <TElementType extends HTMLDivElement = HTMLDivElement>(componentName: string) => TElementType;
|
255
265
|
createText: () => HTMLParagraphElement;
|
256
|
-
create: (tagName: string, dataType:
|
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
|
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:
|
302
|
+
create: (tagName: string, dataType: string) => HTMLElement;
|
293
303
|
createText: () => HTMLParagraphElement;
|
294
304
|
createTextNode: (data: any) => Text;
|
295
|
-
createComponent: (componentName: string) =>
|
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
|
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
|
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
|
-
|
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
|
374
|
+
byType: (pluginType: string) => import("../models").FlowNodeReference[];
|
365
375
|
};
|
366
376
|
};
|
367
377
|
};
|