@omnia/wcm 7.8.55-preview → 7.8.57-preview
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId } from "@omnia/wcm/models";
|
|
2
2
|
import { LayoutItem } from "@omnia/fx-models";
|
|
3
|
-
export declare
|
|
3
|
+
export declare namespace Utils {
|
|
4
4
|
function isSupportedByOfficeWebApp(documentUrl: string): boolean;
|
|
5
5
|
/**
|
|
6
6
|
* if media value of page properties is a modern media and not legacy svg media
|
|
@@ -48,8 +48,9 @@ export declare module NavigationUtils {
|
|
|
48
48
|
function sortNodesByCreated<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
|
|
49
49
|
function sortNodesByTitle<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
|
|
50
50
|
}
|
|
51
|
-
export declare
|
|
51
|
+
export declare namespace VariationUtils {
|
|
52
52
|
function getValueByVariationId(variationString: VariationString, id: VariationId, defaultVariation?: Variation): string;
|
|
53
|
+
function isVariationString(value: any): value is VariationString;
|
|
53
54
|
}
|
|
54
55
|
export declare class SortUtils {
|
|
55
56
|
static sortBy: <T>(items: T[], attr: string, isRevert?: boolean, isDeep?: boolean, handleData?: (data: any) => any) => T[];
|
|
@@ -5,6 +5,7 @@ export declare class AnalyticsHelper {
|
|
|
5
5
|
private currentPageStore;
|
|
6
6
|
private pageStore;
|
|
7
7
|
private analyticsService;
|
|
8
|
+
private navigationStore;
|
|
8
9
|
private analyticsSettings;
|
|
9
10
|
private getAnalyticsSettingsFromPageTypes;
|
|
10
11
|
/**
|
|
@@ -13,6 +14,7 @@ export declare class AnalyticsHelper {
|
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
16
|
private getPageTypeData;
|
|
17
|
+
private getCurrentParentLayout;
|
|
16
18
|
replaceEventToken(source: string, fallBackDefault?: string): Promise<string>;
|
|
17
19
|
private findAndReplaceUnresolveToken;
|
|
18
20
|
/**
|
|
@@ -21,5 +23,5 @@ export declare class AnalyticsHelper {
|
|
|
21
23
|
* @param actionValue
|
|
22
24
|
* @param pageId Id of page. Use current page if this param is empty
|
|
23
25
|
*/
|
|
24
|
-
registerAction(action: EventAction, actionValue?: number, pageId?: PageId): void
|
|
26
|
+
registerAction(action: EventAction, actionValue?: number, pageId?: PageId): Promise<void>;
|
|
25
27
|
}
|
|
@@ -6,6 +6,7 @@ export declare class NavigationStore extends Store {
|
|
|
6
6
|
private publishingAppInfoStore;
|
|
7
7
|
private omniaContext;
|
|
8
8
|
private wcmContext;
|
|
9
|
+
private multilingualStore;
|
|
9
10
|
private idToNodeMap;
|
|
10
11
|
private children;
|
|
11
12
|
private parentIdToChildLoadPromisesMap;
|
|
@@ -60,7 +61,13 @@ export declare class NavigationStore extends Store {
|
|
|
60
61
|
handleDeletedNodes: import("@omnia/fx/stores").StoreAction<unknown, (deletedNodes: NavigationNode<NavigationData>[]) => void, (result: void, deletedNodes: NavigationNode<NavigationData>[]) => void, (failureReason: any, deletedNodes: NavigationNode<NavigationData>[]) => void, (deletedNodes: Array<NavigationNode<NavigationData>>) => Promise<void>>;
|
|
61
62
|
deleteLinkNode: import("@omnia/fx/stores").StoreAction<unknown, (nodeToDelete: NavigationNode<LinkNavigationData>) => void, (result: void, nodeToDelete: NavigationNode<LinkNavigationData>) => void, (failureReason: any, nodeToDelete: NavigationNode<LinkNavigationData>) => void, (nodeToDelete: NavigationNode<LinkNavigationData>) => Promise<void>>;
|
|
62
63
|
ensureParents: import("@omnia/fx/stores").StoreAction<unknown, (node: NavigationNode<NavigationData>) => void, (result: void, node: NavigationNode<NavigationData>) => void, (failureReason: any, node: NavigationNode<NavigationData>) => void, (node: NavigationNode<NavigationData>) => Promise<void>>;
|
|
63
|
-
|
|
64
|
+
getAbsoluteUrlAndTitle: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: {
|
|
65
|
+
url: string;
|
|
66
|
+
title: string;
|
|
67
|
+
}, pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<{
|
|
68
|
+
url: string;
|
|
69
|
+
title: string;
|
|
70
|
+
}>>;
|
|
64
71
|
};
|
|
65
72
|
private handleNavigationResult;
|
|
66
73
|
private ensureChildrenPromiseFulfilled;
|