@omnia/fx 8.0.521-dev → 8.0.522-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.
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/DefineLayoutEditorCanvas.d.ts +27 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/LayoutEditorCanvas.d.ts +25 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasEditorStore.d.ts +24 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +1 -167
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStoreV2.d.ts +26 -2
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/LayoutEditorCanvasContextProvider.d.ts +0 -176
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/DefineLayoutEditorCanvas.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import { EditorChromeConfiguration, guid, ILayoutFileContext, ILayoutMediaContext } from "@omnia/fx-models";
|
2
2
|
import { useEditorChromeStore, useLayoutCanvasStore } from "@omnia/fx/ux";
|
3
|
+
import { type useLayoutCanvasEditorStore } from "../stores/LayoutCanvasEditorStore";
|
3
4
|
export interface LayoutEditorCanvasSettings {
|
4
5
|
blockProvider?: string;
|
5
6
|
chromeStore: ReturnType<typeof useEditorChromeStore>;
|
7
|
+
layoutCanvasEditorStore: ReturnType<typeof useLayoutCanvasEditorStore>;
|
6
8
|
layoutCanvasStore?: ReturnType<typeof useLayoutCanvasStore>;
|
7
9
|
mediaContext?: ILayoutMediaContext;
|
8
10
|
fileContext?: ILayoutFileContext;
|
@@ -46,7 +48,7 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
|
|
46
48
|
notify: (blockManifestId: string) => void;
|
47
49
|
init: () => {
|
48
50
|
readOnlyCanvas: (blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
49
|
-
editableCanvas: (editorChromeStore: ReturnType<typeof useEditorChromeStore>, blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
51
|
+
editableCanvas: (editorChromeStore: ReturnType<typeof useEditorChromeStore>, layoutEditorCanvasStore: any, blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
50
52
|
};
|
51
53
|
}>;
|
52
54
|
get: {
|
@@ -97,6 +99,30 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
|
|
97
99
|
};
|
98
100
|
};
|
99
101
|
};
|
102
|
+
events: import("../../mobile").StoreEvents<{
|
103
|
+
editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
|
104
|
+
canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
|
105
|
+
id: guid;
|
106
|
+
settings: {
|
107
|
+
authDisabled: boolean;
|
108
|
+
breakpointSettingsEnabled: boolean;
|
109
|
+
};
|
110
|
+
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
111
|
+
selected: {
|
112
|
+
layoutItem: import("@omnia/fx-models").LayoutItem;
|
113
|
+
clipBoardItem: import("@omnia/fx-models").ClipboardLayoutItem;
|
114
|
+
displayBreakPoint: import("@omnia/fx-models").DisplayBreakPoint;
|
115
|
+
layoutItem4Action: import("@omnia/fx-models").LayoutItem;
|
116
|
+
};
|
117
|
+
active: {
|
118
|
+
layoutItemAction: import("@omnia/fx-models").LayoutItemActionState;
|
119
|
+
};
|
120
|
+
dialogs: {
|
121
|
+
developerTools: {
|
122
|
+
show: boolean;
|
123
|
+
};
|
124
|
+
};
|
125
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
100
126
|
actions: import("../../mobile").StoreReturnDefineAction<{
|
101
127
|
onActivated: () => void;
|
102
128
|
scrollToLayoutItem: (item: import("@omnia/fx-models").LayoutItem) => void;
|
@@ -38,7 +38,7 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
38
38
|
notify: (blockManifestId: string) => void;
|
39
39
|
init: () => {
|
40
40
|
readOnlyCanvas: (blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
41
|
-
editableCanvas: (editorChromeStore: ReturnType<typeof import("@omnia/fx/ux").useEditorChromeStore>, blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
41
|
+
editableCanvas: (editorChromeStore: ReturnType<typeof import("@omnia/fx/ux").useEditorChromeStore>, layoutEditorCanvasStore: any, blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
42
42
|
};
|
43
43
|
}>;
|
44
44
|
get: {
|
@@ -89,6 +89,30 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
|
89
89
|
};
|
90
90
|
};
|
91
91
|
};
|
92
|
+
events: import("../../mobile").StoreEvents<{
|
93
|
+
editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
|
94
|
+
canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
|
95
|
+
id: import("@omnia/fx-models").guid;
|
96
|
+
settings: {
|
97
|
+
authDisabled: boolean;
|
98
|
+
breakpointSettingsEnabled: boolean;
|
99
|
+
};
|
100
|
+
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
101
|
+
selected: {
|
102
|
+
layoutItem: import("@omnia/fx-models").LayoutItem;
|
103
|
+
clipBoardItem: import("@omnia/fx-models").ClipboardLayoutItem;
|
104
|
+
displayBreakPoint: import("@omnia/fx-models").DisplayBreakPoint;
|
105
|
+
layoutItem4Action: import("@omnia/fx-models").LayoutItem;
|
106
|
+
};
|
107
|
+
active: {
|
108
|
+
layoutItemAction: import("@omnia/fx-models").LayoutItemActionState;
|
109
|
+
};
|
110
|
+
dialogs: {
|
111
|
+
developerTools: {
|
112
|
+
show: boolean;
|
113
|
+
};
|
114
|
+
};
|
115
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
92
116
|
actions: import("../../mobile").StoreReturnDefineAction<{
|
93
117
|
onActivated: () => void;
|
94
118
|
scrollToLayoutItem: (item: import("@omnia/fx-models").LayoutItem) => void;
|
package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasEditorStore.d.ts
CHANGED
@@ -26,6 +26,30 @@ export declare const useLayoutCanvasEditorStore: () => {
|
|
26
26
|
};
|
27
27
|
};
|
28
28
|
};
|
29
|
+
events: import("@omnia/fx/stores").StoreEvents<{
|
30
|
+
editorMode: LayoutCanvasEditorMode;
|
31
|
+
canvasMode: LayoutCanvasMode;
|
32
|
+
id: guid;
|
33
|
+
settings: {
|
34
|
+
authDisabled: boolean;
|
35
|
+
breakpointSettingsEnabled: boolean;
|
36
|
+
};
|
37
|
+
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
38
|
+
selected: {
|
39
|
+
layoutItem: LayoutItem;
|
40
|
+
clipBoardItem: ClipboardLayoutItem;
|
41
|
+
displayBreakPoint: DisplayBreakPoint;
|
42
|
+
layoutItem4Action: LayoutItem;
|
43
|
+
};
|
44
|
+
active: {
|
45
|
+
layoutItemAction: LayoutItemActionState;
|
46
|
+
};
|
47
|
+
dialogs: {
|
48
|
+
developerTools: {
|
49
|
+
show: boolean;
|
50
|
+
};
|
51
|
+
};
|
52
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
29
53
|
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
30
54
|
onActivated: () => void;
|
31
55
|
scrollToLayoutItem: (item: LayoutItem) => void;
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { MessageBusExposeOnlySubscription } from "../../..";
|
2
2
|
import { ServiceContainerContext } from "../../../core";
|
3
|
-
import { AddItemToLayoutPayLoad, Block, BlockRenderingModes, ClipboardLayoutItem, ColorSchemaTypes, DeleteItemFromLayoutPayLoad, DisplayBreakPoint, DisplayBreakPointSetting, IBlockInstance, ILayoutCanvasStore, ILayoutSectionRenderer, IMessageBusTopicPublishSubscriber, Layout, LayoutCanvasModes,
|
3
|
+
import { AddItemToLayoutPayLoad, Block, BlockRenderingModes, ClipboardLayoutItem, ColorSchemaTypes, DeleteItemFromLayoutPayLoad, DisplayBreakPoint, DisplayBreakPointSetting, IBlockInstance, ILayoutCanvasStore, ILayoutSectionRenderer, IMessageBusTopicPublishSubscriber, Layout, LayoutCanvasModes, LayoutDrawerState, LayoutDrawerTabs, LayoutEditorModes, LayoutInheritanceBehaviors, LayoutItem, LayoutItemActionState, LayoutItemRegistration, LoadedLayout, Section, SectionSettings, SectionTypes, SettingsPanelState, LegacyThemeDefinition, guid } from "../../../models";
|
4
4
|
import { Store, StoreState } from "../../../stores";
|
5
5
|
import { useScrollContainerStore } from "../../oxide";
|
6
6
|
import { EditorLayoutItemFactory } from "../factories/EditorLayoutItemFactory";
|
7
7
|
import { BlockSettingsProvider } from "../shared_old/BlockSettingsProvider";
|
8
8
|
import { LayoutDefinitionBuilder } from "../shared_old/layoutdefinitionsettings/LayoutDefinitionBuilder";
|
9
9
|
import { LayoutEditorThemingManager } from "../shared_old/LayoutEditorThemingManager";
|
10
|
-
import { CopiedLayoutItemResult, useLayoutCanvasStore } from "./LayoutCanvasStoreV2";
|
11
|
-
import { ReactiveLayoutItemsSettingsStore } from "./ReactiveLayoutItemsSettingsStore";
|
12
10
|
export interface IBlockInstanceExtends<TSettings = void> extends IBlockInstance<TSettings> {
|
13
11
|
settings: TSettings;
|
14
12
|
serviceContainerContext: ServiceContainerContext;
|
@@ -21,170 +19,6 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
21
19
|
private serviceContainerContext;
|
22
20
|
readonly ColorSchemaBlock = ColorSchemaTypes.secondary;
|
23
21
|
readonly ColorSchemaSection = ColorSchemaTypes.primary;
|
24
|
-
newStore: {
|
25
|
-
state: {
|
26
|
-
compatibilityMode: boolean;
|
27
|
-
layout: {
|
28
|
-
definition: LayoutDefinition;
|
29
|
-
ownerLayoutItemsOverride: LayoutItem[];
|
30
|
-
originalId: guid;
|
31
|
-
};
|
32
|
-
id: guid;
|
33
|
-
settings: {
|
34
|
-
providers: {
|
35
|
-
block: string;
|
36
|
-
mediaContext: import("@omnia/fx-models").ILayoutMediaContext;
|
37
|
-
fileContext: import("@omnia/fx-models").ILayoutFileContext;
|
38
|
-
dependencyProviders: string[];
|
39
|
-
};
|
40
|
-
};
|
41
|
-
};
|
42
|
-
actions: import("../../../stores").StoreReturnDefineAction<{
|
43
|
-
hooks: () => import("../../../stores").StoreReturnDefineAction<{
|
44
|
-
blockinstanceCreated: (blockInstance: IBlockInstance) => void;
|
45
|
-
layoutSectionRenderer: (layoutSectionRenderer: ILayoutSectionRenderer) => void;
|
46
|
-
}>;
|
47
|
-
layout: () => import("../../../stores").StoreReturnDefineAction<{
|
48
|
-
set: (layout: Layout) => void;
|
49
|
-
}>;
|
50
|
-
providers: () => {
|
51
|
-
set: {
|
52
|
-
dependencyProviders: (providers: Array<string>) => void;
|
53
|
-
block: (blockProvider: string) => void;
|
54
|
-
mediaContext: (mediaContext: import("@omnia/fx-models").ILayoutMediaContext) => void;
|
55
|
-
fileContext: (fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
56
|
-
};
|
57
|
-
};
|
58
|
-
notify: (blockManifestId: string) => void;
|
59
|
-
init: () => {
|
60
|
-
readOnlyCanvas: (blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
61
|
-
editableCanvas: (editorChromeStore: ReturnType<typeof import("../..").useEditorChromeStore>, blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
62
|
-
};
|
63
|
-
}>;
|
64
|
-
get: {
|
65
|
-
layout: {
|
66
|
-
loaded: () => LoadedLayout;
|
67
|
-
};
|
68
|
-
block: {
|
69
|
-
readonly instances: {
|
70
|
-
[blockManifestId: string]: Set<{
|
71
|
-
instance: import("./LayoutCanvasStoreV2").IBlockInstanceExtendsInternal<void>;
|
72
|
-
}>;
|
73
|
-
};
|
74
|
-
readonly settings: ReactiveLayoutItemsSettingsStore;
|
75
|
-
settingsProvider: () => import("..").BlockSettingsProvider;
|
76
|
-
renderMode: () => BlockRenderingModes;
|
77
|
-
};
|
78
|
-
providers: {
|
79
|
-
block: string;
|
80
|
-
mediaContext: import("@omnia/fx-models").ILayoutMediaContext;
|
81
|
-
fileContext: import("@omnia/fx-models").ILayoutFileContext;
|
82
|
-
};
|
83
|
-
};
|
84
|
-
rules: {
|
85
|
-
isEditMode: () => boolean;
|
86
|
-
};
|
87
|
-
readonly editor: {
|
88
|
-
state: {
|
89
|
-
editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
|
90
|
-
canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
|
91
|
-
id: guid;
|
92
|
-
settings: {
|
93
|
-
authDisabled: boolean;
|
94
|
-
breakpointSettingsEnabled: boolean;
|
95
|
-
};
|
96
|
-
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
97
|
-
selected: {
|
98
|
-
layoutItem: LayoutItem;
|
99
|
-
clipBoardItem: ClipboardLayoutItem;
|
100
|
-
displayBreakPoint: DisplayBreakPoint;
|
101
|
-
layoutItem4Action: LayoutItem;
|
102
|
-
};
|
103
|
-
active: {
|
104
|
-
layoutItemAction: LayoutItemActionState;
|
105
|
-
};
|
106
|
-
dialogs: {
|
107
|
-
developerTools: {
|
108
|
-
show: boolean;
|
109
|
-
};
|
110
|
-
};
|
111
|
-
};
|
112
|
-
actions: import("../../../stores").StoreReturnDefineAction<{
|
113
|
-
onActivated: () => void;
|
114
|
-
scrollToLayoutItem: (item: LayoutItem) => void;
|
115
|
-
selection: () => import("../../../stores").StoreReturnDefineAction<{
|
116
|
-
execActiveAction: (container: LayoutItem, siblingId?: string, postInsert?: boolean) => void;
|
117
|
-
toggleActiveAction: (item: LayoutItem | ClipboardLayoutItem, action: LayoutItemActionState) => void;
|
118
|
-
removeActiveAction: () => void;
|
119
|
-
removeLayoutItemSelection: () => void;
|
120
|
-
setLayoutItem: (item: LayoutItem, settingsPanelAction?: "toggle" | "show" | "hide") => void;
|
121
|
-
}>;
|
122
|
-
enableDisplayBreakpointSettings: (enable: boolean) => void;
|
123
|
-
block: () => {
|
124
|
-
set: {
|
125
|
-
suggestedBlocks: (blocks: string[]) => void;
|
126
|
-
};
|
127
|
-
ensureRemoveDeletedBlocks: (layout: Layout) => void;
|
128
|
-
};
|
129
|
-
show: () => import("../../../stores").StoreReturnDefineAction<{
|
130
|
-
editingPanel: (action: "show" | "hide" | "toggle") => void;
|
131
|
-
settingsPanel: (action: "show" | "hide" | "toggle") => void;
|
132
|
-
layoutStructurePanel: (action: "show" | "hide" | "toggle") => void;
|
133
|
-
clipboardPanel: (action: "show" | "hide" | "toggle") => void;
|
134
|
-
developerTools: () => void;
|
135
|
-
}>;
|
136
|
-
layout: () => import("../../../stores").StoreReturnDefineAction<{
|
137
|
-
copyItem: (item2Copy: LayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => CopiedLayoutItemResult;
|
138
|
-
moveItem: (item2Move: LayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => void;
|
139
|
-
addItem: (itemreference: AddItemToLayoutPayLoad) => void;
|
140
|
-
insertClipboardItem: (clipboard: ClipboardLayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => CopiedLayoutItemResult;
|
141
|
-
deleteItem: (itemreference: DeleteItemFromLayoutPayLoad) => void;
|
142
|
-
changeSectionType: (section: Section, type: SectionTypes) => void;
|
143
|
-
}>;
|
144
|
-
configureDrawer: (header: {
|
145
|
-
icon?: import("@omnia/fx-models").IIcon;
|
146
|
-
title?: string;
|
147
|
-
enabled?: boolean;
|
148
|
-
}, customScroll?: boolean) => void;
|
149
|
-
setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
|
150
|
-
setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
|
151
|
-
hooks: () => import("../../../stores").StoreReturnDefineAction<{
|
152
|
-
onBlockRemoved(block: Block): void;
|
153
|
-
onLayoutItemMoved(layoutItem: LayoutItem): void;
|
154
|
-
onBlockCopiedHook(originalBlock: Block, newBlock: Block): void;
|
155
|
-
onLayoutItemPasted(layoutItem: ClipboardLayoutItem): void;
|
156
|
-
}>;
|
157
|
-
init: (canvasStore: ReturnType<typeof useLayoutCanvasStore>, editorChromeStoreRef: ReturnType<typeof import("../..").useEditorChromeStore>) => void;
|
158
|
-
}>;
|
159
|
-
get: {
|
160
|
-
settingsDefinitions: import("..").LayoutDefinitionBuilder;
|
161
|
-
layout: {
|
162
|
-
active: () => Layout;
|
163
|
-
};
|
164
|
-
block: {
|
165
|
-
suggestions: () => string[];
|
166
|
-
renderMode: () => BlockRenderingModes;
|
167
|
-
};
|
168
|
-
};
|
169
|
-
rules: {
|
170
|
-
isSettingsActive: () => boolean;
|
171
|
-
isLayoutStructureActive: () => boolean;
|
172
|
-
isClipboardActive: () => boolean;
|
173
|
-
activeItem: {
|
174
|
-
isSection(): boolean;
|
175
|
-
};
|
176
|
-
showSelectors: () => boolean;
|
177
|
-
isLayoutItemLocked: (item: LayoutItem) => boolean;
|
178
|
-
isTemplateEnabledLayout: () => boolean;
|
179
|
-
isAdvancedModeActivated: () => boolean;
|
180
|
-
isAuthDisabled: () => boolean;
|
181
|
-
};
|
182
|
-
} & {
|
183
|
-
dispose?: () => void;
|
184
|
-
};
|
185
|
-
} & {
|
186
|
-
dispose?: () => void;
|
187
|
-
};
|
188
22
|
scrollContainer: StoreState<{
|
189
23
|
state: {
|
190
24
|
elementRef: HTMLElement;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ServiceContainerContext } from "@omnia/fx";
|
2
|
-
import { Block, BlockRenderingModes, guid, IBlockInstance, ILayoutFileContext, ILayoutMediaContext, ILayoutSectionRenderer, Layout, LayoutDefinition, LayoutItem, LoadedLayout, Section, SectionTypes } from "@omnia/fx-models";
|
2
|
+
import { Block, BlockRenderingModes, guid, IBlockInstance, ILayoutFileContext, ILayoutMediaContext, ILayoutSectionRenderer, IMessageBusTopicPublishSubscriber, Layout, LayoutDefinition, LayoutItem, LoadedLayout, Section, SectionTypes } from "@omnia/fx-models";
|
3
3
|
import { ReactiveLayoutItemsSettingsStore } from "./ReactiveLayoutItemsSettingsStore";
|
4
4
|
import { useEditorChromeStore } from "../../editorchrome";
|
5
5
|
import { BlockSettingsProvider } from "../shared/BlockSettingsProvider";
|
@@ -53,7 +53,7 @@ export declare const useLayoutCanvasStore: () => {
|
|
53
53
|
notify: (blockManifestId: string) => void;
|
54
54
|
init: () => {
|
55
55
|
readOnlyCanvas: (blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
56
|
-
editableCanvas: (editorChromeStore: ReturnType<typeof useEditorChromeStore>, blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
56
|
+
editableCanvas: (editorChromeStore: ReturnType<typeof useEditorChromeStore>, layoutEditorCanvasStore: any, blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
|
57
57
|
};
|
58
58
|
}>;
|
59
59
|
get: {
|
@@ -102,6 +102,30 @@ export declare const useLayoutCanvasStore: () => {
|
|
102
102
|
};
|
103
103
|
};
|
104
104
|
};
|
105
|
+
events: import("@omnia/fx/stores").StoreEvents<{
|
106
|
+
editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
|
107
|
+
canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
|
108
|
+
id: guid;
|
109
|
+
settings: {
|
110
|
+
authDisabled: boolean;
|
111
|
+
breakpointSettingsEnabled: boolean;
|
112
|
+
};
|
113
|
+
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
114
|
+
selected: {
|
115
|
+
layoutItem: LayoutItem;
|
116
|
+
clipBoardItem: import("@omnia/fx-models").ClipboardLayoutItem;
|
117
|
+
displayBreakPoint: import("@omnia/fx-models").DisplayBreakPoint;
|
118
|
+
layoutItem4Action: LayoutItem;
|
119
|
+
};
|
120
|
+
active: {
|
121
|
+
layoutItemAction: import("@omnia/fx-models").LayoutItemActionState;
|
122
|
+
};
|
123
|
+
dialogs: {
|
124
|
+
developerTools: {
|
125
|
+
show: boolean;
|
126
|
+
};
|
127
|
+
};
|
128
|
+
}, Record<string, IMessageBusTopicPublishSubscriber<any>>>;
|
105
129
|
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
106
130
|
onActivated: () => void;
|
107
131
|
scrollToLayoutItem: (item: LayoutItem) => void;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.522-dev",
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
],
|
21
21
|
"author": "Omnia Digital Workplace AB",
|
22
22
|
"dependencies": {
|
23
|
-
"@omnia/fx-models": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.522-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|
@@ -1,176 +0,0 @@
|
|
1
|
-
import { useLayoutCanvasStore } from "@omnia/fx/ux";
|
2
|
-
export interface LayoutEditorContextApi {
|
3
|
-
contextStore: ReturnType<typeof useLayoutCanvasStore>;
|
4
|
-
}
|
5
|
-
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
|
6
|
-
store?: {
|
7
|
-
state: {
|
8
|
-
compatibilityMode: boolean;
|
9
|
-
layout: {
|
10
|
-
definition: import("@omnia/fx-models").LayoutDefinition;
|
11
|
-
ownerLayoutItemsOverride: import("@omnia/fx-models").LayoutItem[];
|
12
|
-
originalId: import("@omnia/fx-models").guid;
|
13
|
-
};
|
14
|
-
id: import("@omnia/fx-models").guid;
|
15
|
-
settings: {
|
16
|
-
providers: {
|
17
|
-
block: string;
|
18
|
-
mediaContext: import("@omnia/fx-models").ILayoutMediaContext;
|
19
|
-
fileContext: import("@omnia/fx-models").ILayoutFileContext;
|
20
|
-
dependencyProviders: string[];
|
21
|
-
};
|
22
|
-
};
|
23
|
-
};
|
24
|
-
actions: import("../../mobile").StoreReturnDefineAction<{
|
25
|
-
hooks: () => import("../../mobile").StoreReturnDefineAction<{
|
26
|
-
blockinstanceCreated: (blockInstance: import("@omnia/fx-models").IBlockInstance) => void;
|
27
|
-
layoutSectionRenderer: (layoutSectionRenderer: import("@omnia/fx-models").ILayoutSectionRenderer) => void;
|
28
|
-
}>;
|
29
|
-
layout: () => import("../../mobile").StoreReturnDefineAction<{
|
30
|
-
set: (layout: import("@omnia/fx-models").Layout) => void;
|
31
|
-
}>;
|
32
|
-
providers: () => {
|
33
|
-
set: {
|
34
|
-
dependencyProviders: (providers: Array<string>) => void;
|
35
|
-
block: (blockProvider: string) => void;
|
36
|
-
mediaContext: (mediaContext: import("@omnia/fx-models").ILayoutMediaContext) => void;
|
37
|
-
fileContext: (fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
notify: (blockManifestId: string) => void;
|
41
|
-
init: () => {
|
42
|
-
readOnlyCanvas: (blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
43
|
-
editableCanvas: (editorChromeStore: ReturnType<typeof import("@omnia/fx/ux").useEditorChromeStore>, blockProvider: string, mediaContext: import("@omnia/fx-models").ILayoutMediaContext, fileContext: import("@omnia/fx-models").ILayoutFileContext) => void;
|
44
|
-
};
|
45
|
-
}>;
|
46
|
-
get: {
|
47
|
-
layout: {
|
48
|
-
loaded: () => import("@omnia/fx-models").LoadedLayout;
|
49
|
-
};
|
50
|
-
block: {
|
51
|
-
readonly instances: {
|
52
|
-
[blockManifestId: string]: Set<{
|
53
|
-
instance: import("@omnia/fx/ux").IBlockInstanceExtendsInternal<void>;
|
54
|
-
}>;
|
55
|
-
};
|
56
|
-
readonly settings: import("@omnia/fx/ux").ReactiveLayoutItemsSettingsStore;
|
57
|
-
settingsProvider: () => import("@omnia/fx/ux").BlockSettingsProvider;
|
58
|
-
renderMode: () => import("@omnia/fx-models").BlockRenderingModes;
|
59
|
-
};
|
60
|
-
providers: {
|
61
|
-
block: string;
|
62
|
-
mediaContext: import("@omnia/fx-models").ILayoutMediaContext;
|
63
|
-
fileContext: import("@omnia/fx-models").ILayoutFileContext;
|
64
|
-
};
|
65
|
-
};
|
66
|
-
rules: {
|
67
|
-
isEditMode: () => boolean;
|
68
|
-
};
|
69
|
-
readonly editor: {
|
70
|
-
state: {
|
71
|
-
editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
|
72
|
-
canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
|
73
|
-
id: import("@omnia/fx-models").guid;
|
74
|
-
settings: {
|
75
|
-
authDisabled: boolean;
|
76
|
-
breakpointSettingsEnabled: boolean;
|
77
|
-
};
|
78
|
-
drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
|
79
|
-
selected: {
|
80
|
-
layoutItem: import("@omnia/fx-models").LayoutItem;
|
81
|
-
clipBoardItem: import("@omnia/fx-models").ClipboardLayoutItem;
|
82
|
-
displayBreakPoint: import("@omnia/fx-models").DisplayBreakPoint;
|
83
|
-
layoutItem4Action: import("@omnia/fx-models").LayoutItem;
|
84
|
-
};
|
85
|
-
active: {
|
86
|
-
layoutItemAction: import("@omnia/fx-models").LayoutItemActionState;
|
87
|
-
};
|
88
|
-
dialogs: {
|
89
|
-
developerTools: {
|
90
|
-
show: boolean;
|
91
|
-
};
|
92
|
-
};
|
93
|
-
};
|
94
|
-
actions: import("../../mobile").StoreReturnDefineAction<{
|
95
|
-
onActivated: () => void;
|
96
|
-
scrollToLayoutItem: (item: import("@omnia/fx-models").LayoutItem) => void;
|
97
|
-
selection: () => import("../../mobile").StoreReturnDefineAction<{
|
98
|
-
execActiveAction: (container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => void;
|
99
|
-
toggleActiveAction: (item: import("@omnia/fx-models").LayoutItem | import("@omnia/fx-models").ClipboardLayoutItem, action: import("@omnia/fx-models").LayoutItemActionState) => void;
|
100
|
-
removeActiveAction: () => void;
|
101
|
-
removeLayoutItemSelection: () => void;
|
102
|
-
setLayoutItem: (item: import("@omnia/fx-models").LayoutItem, settingsPanelAction?: "toggle" | "show" | "hide") => void;
|
103
|
-
}>;
|
104
|
-
enableDisplayBreakpointSettings: (enable: boolean) => void;
|
105
|
-
block: () => {
|
106
|
-
set: {
|
107
|
-
suggestedBlocks: (blocks: string[]) => void;
|
108
|
-
};
|
109
|
-
ensureRemoveDeletedBlocks: (layout: import("@omnia/fx-models").Layout) => void;
|
110
|
-
};
|
111
|
-
show: () => import("../../mobile").StoreReturnDefineAction<{
|
112
|
-
editingPanel: (action: "show" | "hide" | "toggle") => void;
|
113
|
-
settingsPanel: (action: "show" | "hide" | "toggle") => void;
|
114
|
-
layoutStructurePanel: (action: "show" | "hide" | "toggle") => void;
|
115
|
-
clipboardPanel: (action: "show" | "hide" | "toggle") => void;
|
116
|
-
developerTools: () => void;
|
117
|
-
}>;
|
118
|
-
layout: () => import("../../mobile").StoreReturnDefineAction<{
|
119
|
-
copyItem: (item2Copy: import("@omnia/fx-models").LayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => import("@omnia/fx/ux").CopiedLayoutItemResult;
|
120
|
-
moveItem: (item2Move: import("@omnia/fx-models").LayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => void;
|
121
|
-
addItem: (itemreference: import("@omnia/fx-models").AddItemToLayoutPayLoad) => void;
|
122
|
-
insertClipboardItem: (clipboard: import("@omnia/fx-models").ClipboardLayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => import("@omnia/fx/ux").CopiedLayoutItemResult;
|
123
|
-
deleteItem: (itemreference: import("@omnia/fx-models").DeleteItemFromLayoutPayLoad) => void;
|
124
|
-
changeSectionType: (section: import("@omnia/fx-models").Section, type: import("@omnia/fx-models").SectionTypes) => void;
|
125
|
-
}>;
|
126
|
-
configureDrawer: (header: {
|
127
|
-
icon?: import("@omnia/fx-models").IIcon;
|
128
|
-
title?: string;
|
129
|
-
enabled?: boolean;
|
130
|
-
}, customScroll?: boolean) => void;
|
131
|
-
setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
|
132
|
-
setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
|
133
|
-
hooks: () => import("../../mobile").StoreReturnDefineAction<{
|
134
|
-
onBlockRemoved(block: import("@omnia/fx-models").Block): void;
|
135
|
-
onLayoutItemMoved(layoutItem: import("@omnia/fx-models").LayoutItem): void;
|
136
|
-
onBlockCopiedHook(originalBlock: import("@omnia/fx-models").Block, newBlock: import("@omnia/fx-models").Block): void;
|
137
|
-
onLayoutItemPasted(layoutItem: import("@omnia/fx-models").ClipboardLayoutItem): void;
|
138
|
-
}>;
|
139
|
-
init: (canvasStore: ReturnType<typeof useLayoutCanvasStore>, editorChromeStoreRef: ReturnType<typeof import("@omnia/fx/ux").useEditorChromeStore>) => void;
|
140
|
-
}>;
|
141
|
-
get: {
|
142
|
-
settingsDefinitions: import("@omnia/fx/ux").LayoutDefinitionBuilder;
|
143
|
-
layout: {
|
144
|
-
active: () => import("@omnia/fx-models").Layout;
|
145
|
-
};
|
146
|
-
block: {
|
147
|
-
suggestions: () => string[];
|
148
|
-
renderMode: () => import("@omnia/fx-models").BlockRenderingModes;
|
149
|
-
};
|
150
|
-
};
|
151
|
-
rules: {
|
152
|
-
isSettingsActive: () => boolean;
|
153
|
-
isLayoutStructureActive: () => boolean;
|
154
|
-
isClipboardActive: () => boolean;
|
155
|
-
activeItem: {
|
156
|
-
isSection(): boolean;
|
157
|
-
};
|
158
|
-
showSelectors: () => boolean;
|
159
|
-
isLayoutItemLocked: (item: import("@omnia/fx-models").LayoutItem) => boolean;
|
160
|
-
isTemplateEnabledLayout: () => boolean;
|
161
|
-
isAdvancedModeActivated: () => boolean;
|
162
|
-
isAuthDisabled: () => boolean;
|
163
|
-
};
|
164
|
-
} & {
|
165
|
-
dispose?: () => void;
|
166
|
-
};
|
167
|
-
} & {
|
168
|
-
dispose?: () => void;
|
169
|
-
};
|
170
|
-
}> & {} & {
|
171
|
-
"v-slots"?: {} & Omit<{
|
172
|
-
default?: import("vue").Slot;
|
173
|
-
$stable?: boolean;
|
174
|
-
}, never>;
|
175
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "store"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
176
|
-
export default _default;
|