@omnia/wcm 6.10.6-preview → 6.10.14-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.
- package/internal-do-not-import-from-here/core/Utils.d.ts +1 -0
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +9 -4
- package/internal-do-not-import-from-here/fx/helpers/LayoutHelper.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/Constants.js +4 -1
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +9 -0
- package/internal-do-not-import-from-here/fx/models/layout/MergedPageVersionLayout.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/VariationPage.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/stores/PageRollupStoreHelper.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/stores/PagesStore.d.ts +2 -2
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +2 -1
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare module Utils {
|
|
|
16
16
|
function isEmpty(obj: any): boolean;
|
|
17
17
|
function getRedirectUrl(pageId: number): string;
|
|
18
18
|
function encodeDocumentFileName(fileExtension: string, versionPageId: number, propertyName: string): string;
|
|
19
|
+
function updateQueryStringParameter(url: string, param: string, value: any): any;
|
|
19
20
|
}
|
|
20
21
|
export declare module TreeUtils {
|
|
21
22
|
function removeTreeNode<T extends {
|
|
@@ -71,13 +71,15 @@ export declare module PageRollupLocalization {
|
|
|
71
71
|
Rating: string;
|
|
72
72
|
Feedback: string;
|
|
73
73
|
LastCommentedAt: string;
|
|
74
|
+
LastActivity: string;
|
|
74
75
|
NoLimit: string;
|
|
75
76
|
ExcludeCurrentPage: string;
|
|
77
|
+
ExcludeVariations: string;
|
|
76
78
|
Status: {
|
|
77
79
|
Title: string;
|
|
78
80
|
AnyStatus: string;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
Published: string;
|
|
82
|
+
NeverPublished: string;
|
|
81
83
|
};
|
|
82
84
|
PageVariationType: {
|
|
83
85
|
CurrentUserVariation: string;
|
|
@@ -103,8 +105,6 @@ export declare module PageRollupLocalization {
|
|
|
103
105
|
EnableClientCaching: string;
|
|
104
106
|
PageType: string;
|
|
105
107
|
Channel: string;
|
|
106
|
-
CurrentUserSubscription: string;
|
|
107
|
-
CustomQuery: string;
|
|
108
108
|
PageHits: string;
|
|
109
109
|
CurrentUser: string;
|
|
110
110
|
AllUsers: string;
|
|
@@ -117,6 +117,7 @@ export declare module PageRollupLocalization {
|
|
|
117
117
|
CurrentUser: string;
|
|
118
118
|
FixedValue: string;
|
|
119
119
|
};
|
|
120
|
+
FilterByUserSubscription: string;
|
|
120
121
|
};
|
|
121
122
|
PagePicker: {
|
|
122
123
|
AddPage: string;
|
|
@@ -249,6 +250,9 @@ export declare module PageRollupLocalization {
|
|
|
249
250
|
Person: string;
|
|
250
251
|
ShowExportToExcel: string;
|
|
251
252
|
ExportToExcel: string;
|
|
253
|
+
OpenPageInNewTab: string;
|
|
254
|
+
OpenInEditor: string;
|
|
255
|
+
ExcludeVariationUrl: string;
|
|
252
256
|
};
|
|
253
257
|
ViewTitle: {
|
|
254
258
|
List: string;
|
|
@@ -273,6 +277,7 @@ export declare module PageRollupLocalization {
|
|
|
273
277
|
CheckedOut: string;
|
|
274
278
|
WaitingForApproval: string;
|
|
275
279
|
ScheduledForPublishing: string;
|
|
280
|
+
PendingPublishing: string;
|
|
276
281
|
};
|
|
277
282
|
CalendarView: {
|
|
278
283
|
Title: string;
|
|
@@ -2,5 +2,5 @@ import { LayoutItem } from '@omnia/fx-models';
|
|
|
2
2
|
export declare module LayoutHelper {
|
|
3
3
|
function registerBlockChangesAffectPagesChecker(elem: string, checker: (oldVal: any, newVal: any) => boolean): void;
|
|
4
4
|
function checkBlockChangesAffectPages(layoutItem: LayoutItem, getLatestPublishedBlockData: (key: string) => any, getComingPublishedBlockData: (key: string) => any): boolean;
|
|
5
|
-
function convertToPlainText(html:
|
|
5
|
+
function convertToPlainText(html: string): string;
|
|
6
6
|
}
|
|
@@ -5,7 +5,8 @@ export declare const PageRollupConstants: {
|
|
|
5
5
|
readonly likeInternalName: string;
|
|
6
6
|
readonly commentInternalName: string;
|
|
7
7
|
readonly ratingInternalName: string;
|
|
8
|
-
readonly
|
|
8
|
+
readonly lastActivityInternalName: string;
|
|
9
|
+
readonly lastCommentedInternalName: string;
|
|
9
10
|
readonly feedbackInternalName: string;
|
|
10
11
|
readonly titleInternalName: string;
|
|
11
12
|
readonly currentPageCollectionId: string;
|
|
@@ -15,9 +15,12 @@ export var PageRollupConstants = {
|
|
|
15
15
|
get ratingInternalName() {
|
|
16
16
|
return "b9580693-6e0e-4e3a-848a-30515b334451";
|
|
17
17
|
},
|
|
18
|
-
get
|
|
18
|
+
get lastActivityInternalName() {
|
|
19
19
|
return "579affaa-4050-49aa-9058-99974726880f";
|
|
20
20
|
},
|
|
21
|
+
get lastCommentedInternalName() {
|
|
22
|
+
return "69ec8bf6-c32f-443a-9d98-0647308fb070";
|
|
23
|
+
},
|
|
21
24
|
get feedbackInternalName() {
|
|
22
25
|
return "8630ed9f-6069-4e17-925d-f92928c2a9ec";
|
|
23
26
|
},
|
|
@@ -20,6 +20,8 @@ export interface PageRollupViewSettings {
|
|
|
20
20
|
sortDescending?: boolean;
|
|
21
21
|
viewFilters?: Array<PageRollupPropertyFilter>;
|
|
22
22
|
showExportToExcel: boolean;
|
|
23
|
+
pageInNewTab: boolean;
|
|
24
|
+
openInEditor: boolean;
|
|
23
25
|
}
|
|
24
26
|
export interface PageRollupViewSettingsColumnMapping {
|
|
25
27
|
internalName: string;
|
|
@@ -142,6 +144,9 @@ export interface PageRollupBlockBreakPointSettings {
|
|
|
142
144
|
pagingType: PagingTypes;
|
|
143
145
|
itemLimit: number;
|
|
144
146
|
currentUserSubscription?: boolean;
|
|
147
|
+
openPageInNewTab?: boolean;
|
|
148
|
+
openInEditor?: boolean;
|
|
149
|
+
excludeVariationUrl?: boolean;
|
|
145
150
|
}
|
|
146
151
|
export interface PageRollupBlockProperty {
|
|
147
152
|
pickedPages?: Array<PageItemNode>;
|
|
@@ -149,6 +154,7 @@ export interface PageRollupBlockProperty {
|
|
|
149
154
|
export interface PageRollupBlockSettings {
|
|
150
155
|
scope: PageRollupEnums.RollupScopes;
|
|
151
156
|
excludeCurrentPage: boolean;
|
|
157
|
+
excludeVariations: boolean;
|
|
152
158
|
resources: Array<{
|
|
153
159
|
id: string;
|
|
154
160
|
typeId?: GuidValue;
|
|
@@ -206,6 +212,9 @@ export interface PageRollupBlockSettings {
|
|
|
206
212
|
currentUserSubscription?: boolean;
|
|
207
213
|
nodeType?: PageRollupEnums.NodeType;
|
|
208
214
|
versionStatus: PageRollupEnums.VersionStatus;
|
|
215
|
+
openPageInNewTab?: boolean;
|
|
216
|
+
openInEditor?: boolean;
|
|
217
|
+
excludeVariationUrl?: boolean;
|
|
209
218
|
}
|
|
210
219
|
export interface PageTypeSelection extends Page {
|
|
211
220
|
title: string;
|
|
@@ -50,6 +50,7 @@ export var PageRollupEnums;
|
|
|
50
50
|
WorkflowStatus[WorkflowStatus["CheckedOut"] = 1] = "CheckedOut";
|
|
51
51
|
WorkflowStatus[WorkflowStatus["WaitingForApproval"] = 2] = "WaitingForApproval";
|
|
52
52
|
WorkflowStatus[WorkflowStatus["ScheduleForPublishing"] = 4] = "ScheduleForPublishing";
|
|
53
|
+
WorkflowStatus[WorkflowStatus["PendingPublishing"] = 8] = "PendingPublishing";
|
|
53
54
|
})(WorkflowStatus = PageRollupEnums.WorkflowStatus || (PageRollupEnums.WorkflowStatus = {}));
|
|
54
55
|
var VersionStatus;
|
|
55
56
|
(function (VersionStatus) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Store } from '@omnia/fx/stores';
|
|
2
2
|
import { Page, VersionReference, PageId, VersionId, IPageVersion } from '../models';
|
|
3
|
+
import { Layout } from '@omnia/fx-models';
|
|
3
4
|
export interface ICurrentPageState {
|
|
4
5
|
/**
|
|
5
6
|
* Reference to the current page
|
|
@@ -21,6 +22,7 @@ export interface ICurrentPageState {
|
|
|
21
22
|
* if the current version does not have a parentLayoutPageId this version data will be null
|
|
22
23
|
* */
|
|
23
24
|
readonly parentLayout?: IPageVersion;
|
|
25
|
+
readonly externalParentLayout?: Layout;
|
|
24
26
|
}
|
|
25
27
|
export declare class CurrentPageStore extends Store {
|
|
26
28
|
private pageService;
|
|
@@ -27,7 +27,7 @@ export declare class NavigationStore extends Store {
|
|
|
27
27
|
getChildren: (node: NavigationNode<NavigationData>, forceFromPublishingAppId?: string) => Array<NavigationNode<NavigationData>>;
|
|
28
28
|
isLoadingChildren: (node: NavigationNode<NavigationData>) => boolean;
|
|
29
29
|
getParents: <T_1 extends NavigationNode<NavigationData>>(node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => T_1[];
|
|
30
|
-
absoluteUrl: (node: NavigationNode<NavigationData>, variationId?: VariationId) => string;
|
|
30
|
+
absoluteUrl: (node: NavigationNode<NavigationData>, variationId?: VariationId, excludeVariationUrl?: boolean) => string;
|
|
31
31
|
sortSiblingNodes: (nodes: Array<NavigationNode<NavigationData>>) => NavigationNode<NavigationData>[];
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class PageRollupStore extends Store {
|
|
|
59
59
|
* Getter
|
|
60
60
|
*/
|
|
61
61
|
getters: {
|
|
62
|
-
pages: (uniqueKey: string) => PageDetailQueryResult[];
|
|
62
|
+
pages: (uniqueKey: string, excludeVariationUrl: boolean) => PageDetailQueryResult[];
|
|
63
63
|
pagesIndexedDB: (uniqueKey: string) => Promise<Array<PageDetailQueryResult>>;
|
|
64
64
|
total: (uniqueKey: string) => number;
|
|
65
65
|
errorMsg: (uniqueKey: string) => string;
|
|
@@ -85,7 +85,7 @@ export declare class PageRollupStore extends Store {
|
|
|
85
85
|
updatePublishingChannelSettings: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, channelsId: Array<string>) => void, (uniqueKey: string, channelsId: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
86
86
|
};
|
|
87
87
|
actions: {
|
|
88
|
-
navigate: import("@omnia/fx/stores").StoreAction<unknown, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (result: void, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (failureReason: any, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => void, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string) => Promise<void>>;
|
|
88
|
+
navigate: import("@omnia/fx/stores").StoreAction<unknown, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string, openInNewTab?: boolean, openInEditor?: boolean) => void, (result: void, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string, openInNewTab?: boolean, openInEditor?: boolean) => void, (failureReason: any, node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string, openInNewTab?: boolean, openInEditor?: boolean) => void, (node: PageNavigationNode<PageNavigationData>, pageId: number, pageUrl: string, openInNewTab?: boolean, openInEditor?: boolean) => Promise<void>>;
|
|
89
89
|
loadPageContentData: import("@omnia/fx/stores").StoreAction<unknown, (pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit: number, reloadData?: boolean) => void, (result: void, pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit: number, reloadData?: boolean) => void, (failureReason: any, pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit: number, reloadData?: boolean) => void, (pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit: number, reloadData?: boolean) => Promise<void>>;
|
|
90
90
|
ensureLoadPageTypes: import("@omnia/fx/stores").StoreAction<unknown, (publishingAppIds: string[]) => void, (result: void, publishingAppIds: string[]) => void, (failureReason: any, publishingAppIds: string[]) => void, (publishingAppIds: string[]) => Promise<void>>;
|
|
91
91
|
exportToExcel: import("@omnia/fx/stores").StoreAction<unknown, (query: BatchQueryPages) => void, (result: void, query: BatchQueryPages) => void, (failureReason: any, query: BatchQueryPages) => void, (query: BatchQueryPages) => Promise<void>>;
|
|
@@ -91,9 +91,10 @@ declare class InternalPageRollupStoreHelper {
|
|
|
91
91
|
private ensureRunLatestBatchQuery;
|
|
92
92
|
private executeBatchQuery;
|
|
93
93
|
private mapToBatchQueryPages;
|
|
94
|
+
private hasPageTypeInSettings;
|
|
94
95
|
private ensureLoadPageTypesOfInstance;
|
|
95
96
|
private ensureLoadPageTypes;
|
|
96
|
-
private
|
|
97
|
+
private ensureLanguageSettings;
|
|
97
98
|
}
|
|
98
99
|
export declare class PageRollupStoreHelper {
|
|
99
100
|
private internal;
|
|
@@ -111,7 +112,6 @@ export declare class PageRollupStoreHelper {
|
|
|
111
112
|
ids: VariationId[];
|
|
112
113
|
queries: VariationQuery[];
|
|
113
114
|
}>;
|
|
114
|
-
populateTargetingVariationIds(variationQueries: VariationQuery[], settings: PageRollupBlockSettings, pageCollectionSelections: Array<PageCollectionSelection>): any[];
|
|
115
115
|
getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
|
|
116
116
|
}
|
|
117
117
|
export declare class FilterManager {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Store } from '@omnia/fx/stores';
|
|
2
|
-
import { NavigationNode, WCMPageTypes, Page, VersionedPageData, PageData, VersionReference, PageId, NavigationPosition, PageNavigationNode, PageNavigationData, NavigationData, VariationPage, Variation, PageCollectionSelection, CheckedOutVersionPageData, ArchivePageResult, PageWithNavigationCreationRequest, ReadNews } from '../models';
|
|
2
|
+
import { NavigationNode, WCMPageTypes, Page, VersionedPageData, PageData, VersionReference, PageId, NavigationPosition, PageNavigationNode, PageNavigationData, MergedPageVersionLayout, NavigationData, VariationPage, Variation, PageCollectionSelection, CheckedOutVersionPageData, ArchivePageResult, PageWithNavigationCreationRequest, ReadNews } from '../models';
|
|
3
3
|
import { GuidValue, Guid, IMessageBusSubscriptionHandler, IOmniaContext } from '@omnia/fx-models';
|
|
4
4
|
export declare class PagesStore extends Store {
|
|
5
5
|
private pageService;
|
|
@@ -45,7 +45,7 @@ export declare class PagesStore extends Store {
|
|
|
45
45
|
* */
|
|
46
46
|
ensurePages: import("@omnia/fx/stores").StoreAction<unknown, (pageIds: PageId[], useCachedData?: boolean) => void, (result: void, pageIds: PageId[], useCachedData?: boolean) => void, (failureReason: any, pageIds: PageId[], useCachedData?: boolean) => void, (pageIds: Array<PageId>, useCachedData?: boolean) => Promise<void>>;
|
|
47
47
|
ensurePagesByType: import("@omnia/fx/stores").StoreAction<unknown, (typesToGet?: number, isTenantPageTypeIncluded?: boolean) => void, (result: void, typesToGet?: number, isTenantPageTypeIncluded?: boolean) => void, (failureReason: any, typesToGet?: number, isTenantPageTypeIncluded?: boolean) => void, (typesToGet?: number, isTenantPageTypeIncluded?: boolean) => Promise<void>>;
|
|
48
|
-
ensureVersionData: import("@omnia/fx/stores").StoreAction<unknown, (versionRefs: VersionReference[], force?: boolean) => void, (result:
|
|
48
|
+
ensureVersionData: import("@omnia/fx/stores").StoreAction<unknown, (versionRefs: VersionReference[], force?: boolean) => void, (result: MergedPageVersionLayout[], versionRefs: VersionReference[], force?: boolean) => void, (failureReason: any, versionRefs: VersionReference[], force?: boolean) => void, (versionRefs: Array<VersionReference>, force?: boolean) => Promise<MergedPageVersionLayout[]>>;
|
|
49
49
|
createPage: import("@omnia/fx/stores").StoreAction<unknown, (creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => void, (result: PageNavigationNode<PageNavigationData>, creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => void, (failureReason: any, creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => void, <T extends PageData>(creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => Promise<PageNavigationNode<PageNavigationData>>>;
|
|
50
50
|
movePage: import("@omnia/fx/stores").StoreAction<unknown, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (result: void, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (failureReason: any, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => Promise<void>>;
|
|
51
51
|
/**
|
|
@@ -9,7 +9,8 @@ export var EditorUrlParameters = {
|
|
|
9
9
|
loadEditor: "editor",
|
|
10
10
|
developmode: "develop",
|
|
11
11
|
versionId: 'versionId',
|
|
12
|
-
layoutVersionId: 'layoutVersionId'
|
|
12
|
+
layoutVersionId: 'layoutVersionId',
|
|
13
|
+
openeditor: "openeditor"
|
|
13
14
|
};
|
|
14
15
|
export var CreateDialogType = {
|
|
15
16
|
createPageType: "createpagetype",
|