@omnia/fx 8.0.275-dev → 8.0.277-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/ux/admin/businessprofile/settings/language/LanguageSettings.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/admin/businessprofile/settings/language/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/admin/settings/blades/tenantregional/components/LanguageSettings.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/admin/settings/blades/tenantregional/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/renderers/EnterprisePropertyValue.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/FlowEditor.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/flow/editor/FlowEditorToolbar.css.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/flow/editor/commands/EditorCommands.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/index.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/models/EditorPlugin.d.ts +11 -2
- package/internal-do-not-import-from-here/ux/flow/editor/parsers/HtmlParser.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/parsers/JSONParser.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +33 -7
- package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +174 -31
- package/internal-do-not-import-from-here/ux/flow/renderer/models/FlowRendererPluginHook.d.ts +10 -0
- package/internal-do-not-import-from-here/ux/flow/renderer/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/mediapickerproviders/unsplash/Handler.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/models/flow/SpacingFormatNode.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/models/flow/TextAlignNode.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanels.d.ts +9 -3
- package/internal-do-not-import-from-here/ux/properties/property-picker/PropertyInput.d.ts +0 -18
- package/internal-do-not-import-from-here/ux/use/UseDraggable.d.ts +29 -1
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +7 -4
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +4 -3
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronState.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentPropertyDescriptorTemplates.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/templates/ContentTemplates.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/editors/PropertyResolverEditor.d.ts +5 -5
- package/package.json +2 -2
- /package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/{Editorhelper.d.ts → EditorHelper.d.ts} +0 -0
@@ -1,2 +1,5 @@
|
|
1
|
-
|
1
|
+
import { BusinessProfileLanguageSettings } from "@omnia/fx-models";
|
2
|
+
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
|
3
|
+
settings?: BusinessProfileLanguageSettings;
|
4
|
+
}>) => any;
|
2
5
|
export default _default;
|
@@ -1,2 +1,5 @@
|
|
1
|
-
|
1
|
+
import { TenantLanguageSettings } from "@omnia/fx-models";
|
2
|
+
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
|
3
|
+
settings?: TenantLanguageSettings;
|
4
|
+
}>) => any;
|
2
5
|
export default _default;
|
@@ -635,10 +635,10 @@ declare const _default: {
|
|
635
635
|
} & {
|
636
636
|
renderer?: () => VNodeChild | void;
|
637
637
|
};
|
638
|
-
editMode?: boolean;
|
639
638
|
wrapWithParentContent?: (internalName: string, propertyContent: JSX.Element) => JSX.Element;
|
640
639
|
displaySettings?: EnterprisePropertiesDisplaySettings;
|
641
640
|
editorSettings?: EnterprisePropertyEditorSettings<import("@omnia/fx-models").EnterprisePropertyItemSettings>;
|
641
|
+
editMode?: boolean;
|
642
642
|
}>, never>;
|
643
643
|
};
|
644
644
|
export default _default;
|
@@ -22,6 +22,9 @@ export declare function useEditorCommands(state: {
|
|
22
22
|
get: {
|
23
23
|
byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
|
24
24
|
};
|
25
|
+
ensure: {
|
26
|
+
storedRange: () => void;
|
27
|
+
};
|
25
28
|
};
|
26
29
|
cursor: {
|
27
30
|
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FlowEditorActionRegistration } from "@omnia/fx-models";
|
1
|
+
import { FlowEditorActionRegistration, Future } from "@omnia/fx-models";
|
2
2
|
import { FlowEditorStore, FlowEditorToolbarStore, useColorSchemaStore } from "@omnia/fx/ux";
|
3
3
|
import { FlowNode } from "@omnia/fx/ux";
|
4
4
|
export interface FlowEditorPlugin {
|
@@ -23,15 +23,24 @@ export interface FlowToJsonContext<TElementType extends HTMLElement = HTMLElemen
|
|
23
23
|
element: TElementType;
|
24
24
|
parent: FlowNode;
|
25
25
|
}
|
26
|
+
export interface FlowHookContext<TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode> {
|
27
|
+
element: TElementType;
|
28
|
+
node: TNodeType;
|
29
|
+
}
|
26
30
|
export interface ElementConverter {
|
27
31
|
canConvert: (el: HTMLElement) => boolean;
|
28
32
|
convert: (el: HTMLElement, pluginContext: FlowEditorPluginContext) => HTMLElement;
|
29
33
|
}
|
30
34
|
export interface FlowEditorContentPlugin extends FlowEditorPlugin {
|
31
35
|
toJSON: <TElementType extends HTMLElement = HTMLElement>(context: FlowToJsonContext<TElementType>) => FlowNode;
|
32
|
-
toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement
|
36
|
+
toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement | Future<HTMLElement> | Promise<HTMLElement>;
|
33
37
|
elementConverter?: ElementConverter;
|
34
38
|
}
|
39
|
+
export interface FlowEditorPluginHook extends FlowEditorPlugin {
|
40
|
+
subscription: string;
|
41
|
+
toJSONHook: <TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode>(context: FlowHookContext<TElementType, TNodeType>) => null;
|
42
|
+
toHtmlHook: <TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode>(context: FlowHookContext<TElementType, TNodeType>) => null;
|
43
|
+
}
|
35
44
|
export interface FlowEditorPluginContext {
|
36
45
|
componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
|
37
46
|
editorStore: FlowEditorStore;
|
@@ -4,5 +4,5 @@ export declare function useJSONParser(state: {
|
|
4
4
|
editor: HTMLDivElement;
|
5
5
|
plugins: Array<FlowEditorPlugin>;
|
6
6
|
}, pluginContext: FlowEditorPluginContext): {
|
7
|
-
loadJSONToEditor: (editorContent: FlowContent) => any
|
7
|
+
loadJSONToEditor: (editorContent: FlowContent) => Promise<any>;
|
8
8
|
};
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { FlowEditorActionRegistration, FlowEditorPluginSettings, guid } from "@omnia/fx-models";
|
1
|
+
import { FlowEditorActionRegistration, FlowEditorPluginSettings, guid, Future } from "@omnia/fx-models";
|
2
2
|
import { FlowEditorPlugin, FlowEditorPluginContext, NodeSelection } from "../models";
|
3
3
|
import { FlowContent } from "@omnia/fx/ux";
|
4
4
|
export declare const useFlowEditorStore: () => {
|
5
5
|
state: {
|
6
6
|
editorContent: FlowContent;
|
7
7
|
plugins: FlowEditorPlugin[];
|
8
|
+
pluginsLoadedPromise: Future<void>;
|
8
9
|
hideToolbar: boolean;
|
9
|
-
editMode: boolean;
|
10
10
|
maxNodeId: number;
|
11
11
|
toolbarActions: FlowEditorActionRegistration[];
|
12
12
|
editor: HTMLDivElement;
|
@@ -25,8 +25,8 @@ export declare const useFlowEditorStore: () => {
|
|
25
25
|
events: {
|
26
26
|
onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowContent>;
|
27
27
|
onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPlugin[]>;
|
28
|
+
onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<Future<void>>;
|
28
29
|
onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
29
|
-
onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
30
30
|
onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
|
31
31
|
onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
|
32
32
|
onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
|
@@ -44,6 +44,9 @@ export declare const useFlowEditorStore: () => {
|
|
44
44
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
45
45
|
actions: {
|
46
46
|
onDispatching: {
|
47
|
+
selection: {
|
48
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
49
|
+
};
|
47
50
|
plugin: {
|
48
51
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
49
52
|
};
|
@@ -67,6 +70,13 @@ export declare const useFlowEditorStore: () => {
|
|
67
70
|
};
|
68
71
|
};
|
69
72
|
onDispatched: {
|
73
|
+
selection: {
|
74
|
+
subscribe(fn: (result: {
|
75
|
+
ensure: {
|
76
|
+
storedRange: () => void;
|
77
|
+
};
|
78
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
79
|
+
};
|
70
80
|
plugin: {
|
71
81
|
subscribe(fn: (result: {
|
72
82
|
register: {
|
@@ -78,7 +88,7 @@ export declare const useFlowEditorStore: () => {
|
|
78
88
|
};
|
79
89
|
content: {
|
80
90
|
subscribe(fn: (result: {
|
81
|
-
sync: () =>
|
91
|
+
sync: () => void;
|
82
92
|
set: {
|
83
93
|
byObject: (content: FlowContent) => void;
|
84
94
|
byString: (content: string) => void;
|
@@ -87,7 +97,6 @@ export declare const useFlowEditorStore: () => {
|
|
87
97
|
};
|
88
98
|
set: {
|
89
99
|
subscribe(fn: (result: {
|
90
|
-
mode: (editMode: boolean) => void;
|
91
100
|
container: (el: HTMLDivElement) => void;
|
92
101
|
focus: () => void;
|
93
102
|
placeHolderVisibility: () => void;
|
@@ -132,6 +141,9 @@ export declare const useFlowEditorStore: () => {
|
|
132
141
|
get: {
|
133
142
|
byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
|
134
143
|
};
|
144
|
+
ensure: {
|
145
|
+
storedRange: () => void;
|
146
|
+
};
|
135
147
|
};
|
136
148
|
cursor: {
|
137
149
|
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
@@ -211,6 +223,9 @@ export declare const useFlowEditorStore: () => {
|
|
211
223
|
};
|
212
224
|
};
|
213
225
|
onFailure: {
|
226
|
+
selection: {
|
227
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
228
|
+
};
|
214
229
|
plugin: {
|
215
230
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
216
231
|
};
|
@@ -234,6 +249,11 @@ export declare const useFlowEditorStore: () => {
|
|
234
249
|
};
|
235
250
|
};
|
236
251
|
} & {
|
252
|
+
selection: () => {
|
253
|
+
ensure: {
|
254
|
+
storedRange: () => void;
|
255
|
+
};
|
256
|
+
};
|
237
257
|
plugin: () => {
|
238
258
|
register: {
|
239
259
|
plugin: (pluginSettings: FlowEditorPluginSettings) => void;
|
@@ -242,14 +262,13 @@ export declare const useFlowEditorStore: () => {
|
|
242
262
|
};
|
243
263
|
};
|
244
264
|
content: () => {
|
245
|
-
sync: () =>
|
265
|
+
sync: () => void;
|
246
266
|
set: {
|
247
267
|
byObject: (content: FlowContent) => void;
|
248
268
|
byString: (content: string) => void;
|
249
269
|
};
|
250
270
|
};
|
251
271
|
set: () => {
|
252
|
-
mode: (editMode: boolean) => void;
|
253
272
|
container: (el: HTMLDivElement) => void;
|
254
273
|
focus: () => void;
|
255
274
|
placeHolderVisibility: () => void;
|
@@ -286,6 +305,9 @@ export declare const useFlowEditorStore: () => {
|
|
286
305
|
get: {
|
287
306
|
byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
|
288
307
|
};
|
308
|
+
ensure: {
|
309
|
+
storedRange: () => void;
|
310
|
+
};
|
289
311
|
};
|
290
312
|
cursor: {
|
291
313
|
isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
|
@@ -376,8 +398,12 @@ export declare const useFlowEditorStore: () => {
|
|
376
398
|
};
|
377
399
|
get: {
|
378
400
|
byType: (pluginType: string) => import("../models").FlowNodeReference[];
|
401
|
+
all: () => NodeSelection;
|
379
402
|
};
|
380
403
|
};
|
404
|
+
element: {
|
405
|
+
byId: (id: number) => HTMLElement;
|
406
|
+
};
|
381
407
|
};
|
382
408
|
} & {
|
383
409
|
dispose?: () => void;
|