@omnia/wcm 7.11.33 → 7.12.2
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 +12 -6
- package/internal-do-not-import-from-here/core/index.d.ts +1 -0
- package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +10 -0
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +10 -1
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +85 -1
- package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +54 -0
- package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +2 -1
- package/internal-do-not-import-from-here/core/paging/PagingServerQuery.d.ts +19 -0
- package/internal-do-not-import-from-here/core/paging/index.d.ts +1 -0
- package/internal-do-not-import-from-here/core/ux/EnterprisePropertyRenderer.d.ts +4 -6
- package/internal-do-not-import-from-here/core/ux/FilterTargetingPropertyValueInput.d.ts +4 -11
- package/internal-do-not-import-from-here/fx/apis/Editor.d.ts +41 -0
- package/internal-do-not-import-from-here/fx/apis/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/constants.d.ts +26 -0
- package/internal-do-not-import-from-here/fx/helpers/DefaultRenderingAppHelper.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/helpers/PageUrlHelper.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/helpers/UserLinkHelper.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/helpers/index.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/internal/models/BreadcrumNode.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/internal/models/PagesDashboard.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/internal/models/SemanticSearch.d.ts +45 -0
- package/internal-do-not-import-from-here/fx/internal/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/internal/stores/YammerIntegrationStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +13 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +20 -1
- package/internal-do-not-import-from-here/fx/models/Enums.d.ts +34 -0
- package/internal-do-not-import-from-here/fx/models/Enums.js +42 -1
- package/internal-do-not-import-from-here/fx/models/ManifestIds.d.ts +43 -0
- package/internal-do-not-import-from-here/fx/models/ManifestIds.js +43 -0
- package/internal-do-not-import-from-here/fx/models/analytics/AnalyticsReport.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/block/WcmBlock.d.ts +8 -1
- package/internal-do-not-import-from-here/fx/models/calltoaction/DefaultActionButtonStylingSettings.d.ts +15 -0
- package/internal-do-not-import-from-here/fx/models/calltoaction/DefaultActionButtonStylingSettings.js +10 -0
- package/internal-do-not-import-from-here/fx/models/calltoaction/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/calltoaction/index.js +4 -0
- package/internal-do-not-import-from-here/fx/models/components/AccordionBlock.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/components/BannerBlock.d.ts +23 -1
- package/internal-do-not-import-from-here/fx/models/components/BannerBlock.js +19 -1
- package/internal-do-not-import-from-here/fx/models/components/BannerBlockStyles.d.ts +38 -2
- package/internal-do-not-import-from-here/fx/models/components/BreadcrumbBlock.d.ts +18 -1
- package/internal-do-not-import-from-here/fx/models/components/BreadcrumbBlockSettingsStyles.d.ts +22 -0
- package/internal-do-not-import-from-here/fx/models/components/BreadcrumbBlockSettingsStyles.js +4 -0
- package/internal-do-not-import-from-here/fx/models/components/BreadcrumbBlockStyles.d.ts +5 -3
- package/internal-do-not-import-from-here/fx/models/components/CalendarRollupBlockStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlockStyles.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/models/components/CurrentNavigationBlock.d.ts +18 -0
- package/internal-do-not-import-from-here/fx/models/components/CurrentNavigationBlockStyles.d.ts +34 -2
- package/internal-do-not-import-from-here/fx/models/components/IFrameBlock.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +16 -0
- package/internal-do-not-import-from-here/fx/models/components/LinkPickerExtension.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPickerStyles.d.ts +50 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPickerStyles.js +6 -2
- package/internal-do-not-import-from-here/fx/models/components/MediaBlock.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/MegaMenuStyles.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/components/PageCommentLikeBlock.d.ts +17 -0
- package/internal-do-not-import-from-here/fx/models/components/PageCommentLikeBlock.js +7 -1
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlock.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +7 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlockStyles.d.ts +12 -0
- package/internal-do-not-import-from-here/fx/models/components/RelatedLinkBlockStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/SearchTemplateOmniaPageStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/defaultrenderingappinstance/DefaultRenderingAppInstanceSettings.d.ts +12 -0
- package/internal-do-not-import-from-here/fx/models/defaultrenderingappinstance/DefaultRenderingAppInstanceSettings.js +11 -0
- package/internal-do-not-import-from-here/fx/models/defaultrenderingappinstance/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/defaultrenderingappinstance/index.js +4 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/components/EventParticipantCounterBlock.d.ts +12 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/components/EventParticipantCounterBlockStyles.d.ts +27 -1
- package/internal-do-not-import-from-here/fx/models/eventmanagement/components/PageRollupEventCardViewSettings.d.ts +25 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/components/PageRollupEventCardViewSettings.js +2 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/index.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/index.js +2 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPageIdentifier.d.ts +11 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPageIdentifier.js +2 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPagePickerQueryResult.d.ts +18 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPagePickerQueryResult.js +2 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPagePickerUI.d.ts +15 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/SharepointPagePickerUI.js +2 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/index.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/index.js +3 -0
- package/internal-do-not-import-from-here/fx/models/pagecreation/PageCreationActionSetting.d.ts +11 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/CardViewEnums.d.ts +17 -1
- package/internal-do-not-import-from-here/fx/models/pagequery/CardViewEnums.js +19 -1
- package/internal-do-not-import-from-here/fx/models/pagequery/CardViewSettings.d.ts +7 -2
- package/internal-do-not-import-from-here/fx/models/pagequery/DynamicRollerViewSettings.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageDetailsQuery.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupListingWithImageViewSettings.d.ts +14 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +14 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupRollerViewSettings.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.js +0 -1
- package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +6 -1
- package/internal-do-not-import-from-here/fx/models/pages/PageDialogData.d.ts +15 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/pages/PlainPageData.d.ts +9 -0
- package/internal-do-not-import-from-here/fx/models/pages/VersionInformation.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/publishingsetting/publishingsetting.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/query/ItemQuery.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/search/PageResultSearchTemplate.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/models/search/PageResultSearchTemplate.js +2 -0
- package/internal-do-not-import-from-here/fx/models/search/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/search/index.js +1 -0
- package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +18 -5
- package/internal-do-not-import-from-here/fx/services/OmniaSearchPageService.d.ts +8 -1
- package/internal-do-not-import-from-here/fx/services/PageService.d.ts +8 -6
- package/internal-do-not-import-from-here/fx/shared/OmniaFullPageHelper.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +23 -1
- package/internal-do-not-import-from-here/fx/shared/PageSearchHelper.d.ts +12 -0
- package/internal-do-not-import-from-here/fx/shared/PlaceholderImage.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/shared/index.d.ts +5 -4
- package/internal-do-not-import-from-here/fx/stores/ActivityFeedStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/BaseCurrentPageStore.d.ts +289 -0
- package/internal-do-not-import-from-here/fx/stores/CurrentNavigationStore.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +29 -140
- package/internal-do-not-import-from-here/fx/stores/EditPageCurrentPageStore.d.ts +57 -0
- package/internal-do-not-import-from-here/fx/stores/IndexedDB.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/PageBlockPropertyStore.d.ts +5 -1
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +45 -13
- package/internal-do-not-import-from-here/fx/stores/PagesStore.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +12 -4
- package/internal-do-not-import-from-here/fx/stores/SharePointPickerStore.d.ts +46 -0
- package/internal-do-not-import-from-here/fx/stores/index.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/ux/InternalUxCore.d.ts +14 -2
- package/internal-do-not-import-from-here/fx/ux/calltoaction/CallToAction.css.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/ux/calltoaction/CallToAction.d.ts +27 -0
- package/internal-do-not-import-from-here/fx/ux/calltoaction/CallToAction.manifest.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/ux/calltoaction/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/ux/loc/localize.d.ts +10 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/CallToAction/CallToActionEditorExtension.d.ts +7 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/CallToAction/CallToActionMenu.d.ts +18 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/CallToAction/CallToActionNode.d.ts +9 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/CallToAction/CallToActionToolbar.d.ts +18 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/CallToAction/index.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/LinkPickerMenu.d.ts +5 -54
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/LinkPickerToolbar.d.ts +5 -32
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/index.d.ts +1 -0
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fxux.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/index.js +1 -0
- package/internal-do-not-import-from-here/models/paging/IPagingServerQuery.d.ts +17 -0
- package/internal-do-not-import-from-here/models/paging/IPagingServerQuery.js +2 -0
- package/internal-do-not-import-from-here/models/paging/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/paging/index.js +4 -0
- package/internal-do-not-import-from-here/models/publishingapp/PublishingAppSettings.d.ts +2 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/ApprovalDialogAction.d.ts +3 -1
- package/internal-do-not-import-from-here/models/publishingapp/editor/ApprovalDialogAction.js +2 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/IFullPageEditorItem.d.ts +6 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/IFullPageEditorItem.js +2 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/IPageEditorItem.d.ts +1 -1
- package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.d.ts +9 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.js +6 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/index.js +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/pagecollection/PageContextInfo.d.ts +1 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResource.d.ts +8 -0
- package/internal-do-not-import-from-here/models/signoffrequest/SignOffRequestResource.js +15 -1
- package/internal-do-not-import-from-here/wcdefinitions.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Identity } from "@omnia/fx-models";
|
|
2
|
-
import { ApprovalData, PageId, SchedulingSettings, VersionId } from "../pages";
|
|
2
|
+
import { ApprovalBypassSettings, ApprovalData, PageId, SchedulingSettings, VersionId } from "../pages";
|
|
3
3
|
export declare enum RuleStatus {
|
|
4
4
|
Unassigned = 0,
|
|
5
5
|
Success = 1,
|
|
@@ -27,6 +27,7 @@ export interface PublishingRule<T extends PublishingRuleData = PublishingRuleDat
|
|
|
27
27
|
}
|
|
28
28
|
export interface ApprovalSettings {
|
|
29
29
|
approvalData: ApprovalData;
|
|
30
|
+
approvalBypassSettings?: ApprovalBypassSettings;
|
|
30
31
|
enableSendPageEmail: boolean;
|
|
31
32
|
schedulingSettings: SchedulingSettings;
|
|
32
33
|
}
|
|
@@ -14,7 +14,7 @@ export interface QueryFilter {
|
|
|
14
14
|
operator: FilterOperator;
|
|
15
15
|
propertyName: string;
|
|
16
16
|
propertyValues: Array<any>;
|
|
17
|
-
logicalOperator
|
|
17
|
+
logicalOperator: FilterLogicalOperator;
|
|
18
18
|
filters?: Array<QueryFilter>;
|
|
19
19
|
}
|
|
20
20
|
export interface QueryOrder {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefaultVariationPage, NavigationData, NavigationNode, PageNavigationData, PageNavigationNode, VariationId } from "../models";
|
|
1
|
+
import { CurrentPageStatus, DefaultVariationPage, NavigationData, NavigationNode, PageNavigationData, PageNavigationNode, VariationId } from "../models";
|
|
2
2
|
export declare class WcmRouter {
|
|
3
3
|
private currentNavigationStore;
|
|
4
4
|
private currentPageStore;
|
|
@@ -10,23 +10,32 @@ export declare class WcmRouter {
|
|
|
10
10
|
private publishingAppInfoStore;
|
|
11
11
|
private userTargetingStore;
|
|
12
12
|
private multilingualStore;
|
|
13
|
+
private manifestService;
|
|
13
14
|
private isVariationSwitch;
|
|
15
|
+
isInFullPageExperience: boolean;
|
|
14
16
|
private currentNavigatedState;
|
|
17
|
+
private navigationRequestId;
|
|
18
|
+
private currentNavigatedRequestId;
|
|
19
|
+
private loadedNavigationState;
|
|
15
20
|
private loadTreeForPathPromises;
|
|
21
|
+
pendingPageFailureReason: string | null;
|
|
16
22
|
private initState;
|
|
17
23
|
constructor();
|
|
18
24
|
private isInWcmContext;
|
|
19
25
|
private handleNotFoundNavigationNode;
|
|
26
|
+
private ensurePageRenderer;
|
|
27
|
+
private removePageRenderer;
|
|
20
28
|
private removeAnchorWhenPageNavigating;
|
|
21
29
|
private isVariationDebugEnabled;
|
|
22
30
|
private logVariationDebug;
|
|
23
31
|
private getReplayTargetVariationId;
|
|
24
32
|
private getDefaultRoute;
|
|
25
33
|
private loadTreeForPath;
|
|
26
|
-
navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?:
|
|
27
|
-
navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T): Promise<T>;
|
|
28
|
-
navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?:
|
|
34
|
+
navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: VariationId, forceToNewNavigationState?: boolean, requestId?: number): Promise<T>;
|
|
35
|
+
navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T, requestId?: number): Promise<T>;
|
|
36
|
+
navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: VariationId, openEditor?: boolean): void;
|
|
29
37
|
private buildRelativePath;
|
|
38
|
+
private routePathHasVariationSegment;
|
|
30
39
|
private getTargetingVariation;
|
|
31
40
|
onDisposing(): void;
|
|
32
41
|
private executeScrollingIfNeeded;
|
|
@@ -38,7 +47,11 @@ export declare class WcmRouter {
|
|
|
38
47
|
* */
|
|
39
48
|
private createNavigationStateForNode;
|
|
40
49
|
private tryParseNumber;
|
|
41
|
-
|
|
50
|
+
static getPageFailureStatus(reason: unknown): CurrentPageStatus;
|
|
51
|
+
private setPageFailure;
|
|
52
|
+
private getBusinessProfileTitle;
|
|
53
|
+
private resetDocumentTitle;
|
|
54
|
+
private updateDocumentTitle;
|
|
42
55
|
getPageState(pageNavigationNode: PageNavigationNode<PageNavigationData>, targetVariationId?: VariationId, allowDraftVersion?: boolean): DefaultVariationPage;
|
|
43
56
|
private getUsingVariationSegment;
|
|
44
57
|
}
|
|
@@ -7,7 +7,14 @@ export declare class OmniaSearchPageService {
|
|
|
7
7
|
omniaSearchService: OmniaSearchService;
|
|
8
8
|
constructor();
|
|
9
9
|
queryBatchPages: (searchQueryRequest: PagedBatchSearchRequest, cancelRequest?: (cancelToken: any) => void) => Promise<IPagedSearchResult<PageDocument>[]>;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @param pageIdsForMyLikes Subset of pageIds whose like the current user's own reaction should
|
|
12
|
+
* be fetched for. Only include IDs from queries that had includeMyLikes==true; the server skips
|
|
13
|
+
* the social lookup when this list is empty. Part of the dedupe key.
|
|
14
|
+
*/
|
|
15
|
+
getExtendedInformationPageQueryData: (pageIds: Array<PageId>, pageIdsForMyLikes: {
|
|
16
|
+
[pageId: number]: string;
|
|
17
|
+
}) => Promise<ExtendedInformationPageQueryData>;
|
|
11
18
|
triggerReindexContentOmniaSearchPublishingApp: () => Promise<string>;
|
|
12
19
|
triggerReindexContentOmniaSearchTenant: (syncType: SyncOmniaSearchType) => Promise<string>;
|
|
13
20
|
getReindexContentOmniaSearchStatus: (resourceId: string) => Promise<ReindexContentOmniaSearch>;
|
|
@@ -14,7 +14,8 @@ export declare class PageService {
|
|
|
14
14
|
static obsoleteSetWCMApp(appId: GuidValue): void;
|
|
15
15
|
private readonly baseUrl;
|
|
16
16
|
private readonly reusablePageBaseUrl;
|
|
17
|
-
|
|
17
|
+
private initHttpRequestParams;
|
|
18
|
+
createVariationPage: <T extends PageData>(pageData: T, originalPageId: PageId, variationId: VariationId, targetPublishingAppId?: GuidValue) => Promise<CreatedPageInfo<T>>;
|
|
18
19
|
updatePagePermissions: (pageId: PageId, variationId?: VariationId) => Promise<void>;
|
|
19
20
|
createWithNavigation: <T extends PageData>(creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => Promise<CreatedPageWithNavigationInfo<T>>;
|
|
20
21
|
move: <T extends NavigationNode<NavigationData>>(nodeToMove: T, newPosition: NavigationPosition) => Promise<MovePagesResult>;
|
|
@@ -68,20 +69,21 @@ export declare class PageService {
|
|
|
68
69
|
*/
|
|
69
70
|
attachVariationPage: (originalPageId: PageId, variationPageId: PageId, variationId?: VariationId, targetPublishingAppId?: string) => Promise<VariationPage>;
|
|
70
71
|
getPagesByIds: (pageIds: Array<PageId>) => Promise<PageIdToPageMap>;
|
|
71
|
-
checkIn: <T extends PageData>(versionToCheckIn: CheckedOutVersionPageData<T
|
|
72
|
-
takeOverCheckedoutPage: <T extends PageData>(versionToTakeOver: CheckedOutVersionPageData<T
|
|
72
|
+
checkIn: <T extends PageData>(versionToCheckIn: CheckedOutVersionPageData<T>, targetPublishingAppId?: GuidValue) => Promise<VersionedPageData<T>>;
|
|
73
|
+
takeOverCheckedoutPage: <T extends PageData>(versionToTakeOver: CheckedOutVersionPageData<T>, targetPublishingApp?: GuidValue) => Promise<CheckedOutVersionPageData<T>>;
|
|
73
74
|
/**
|
|
74
75
|
* Saves the data for a checkedoutversion
|
|
75
76
|
*
|
|
76
77
|
* (Checkedoutversiosn may change over time, other version types are immutable)
|
|
77
78
|
* */
|
|
78
|
-
saveState: <T extends PageData>(versionToCheckIn: CheckedOutVersionPageData<T
|
|
79
|
-
checkOut: (pageId: PageId) => Promise<CheckedOutVersionPageData<PageData>>;
|
|
80
|
-
undoCheckout: <T extends PageData>(checkedOutVersionToUncheckOut: CheckedOutVersionPageData<T
|
|
79
|
+
saveState: <T extends PageData>(versionToCheckIn: CheckedOutVersionPageData<T>, targetPublishingAppId?: GuidValue) => Promise<CheckedOutVersionPageData<T>>;
|
|
80
|
+
checkOut: (pageId: PageId, targetPublishingAppId?: GuidValue) => Promise<CheckedOutVersionPageData<PageData>>;
|
|
81
|
+
undoCheckout: <T extends PageData>(checkedOutVersionToUncheckOut: CheckedOutVersionPageData<T>, targetPublishingAppId?: GuidValue) => Promise<VersionedPageData<T>>;
|
|
81
82
|
getCheckedOutVersion: (pageId: PageId) => Promise<CheckedOutVersionPageData<PageData>>;
|
|
82
83
|
publish: <T extends PageData>(versionToPublish: VersionedPageData<T>, targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => Promise<PublishedVersionPageData<T>>;
|
|
83
84
|
unPublish: <T extends PageData>(versionToUnPublish: PublishedVersionPageData<T>) => Promise<VersionedPageData<T>>;
|
|
84
85
|
getPublishedVersion: (pageId: PageId, targetPublishingAppId?: string) => Promise<PublishedVersionPageData<PageData>>;
|
|
86
|
+
private getInflightMergeLayoutMap;
|
|
85
87
|
/**
|
|
86
88
|
* Merges the source layout values into target layout
|
|
87
89
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isOnOmniaFullPageSitePage(): boolean;
|
|
@@ -56,6 +56,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
56
56
|
private cancelBatchQueryTokens;
|
|
57
57
|
private executingBatchQuery;
|
|
58
58
|
private hasNewBatchQueryNeedToExecute;
|
|
59
|
+
private currentBatchRunToken;
|
|
59
60
|
private pagerollupOutsideWCMLayout;
|
|
60
61
|
private executingQueriesStatus;
|
|
61
62
|
private excludeCountry;
|
|
@@ -102,6 +103,25 @@ declare class InternalPageRollupStoreHelper {
|
|
|
102
103
|
private populateNavigationPathTargetingVariationIds;
|
|
103
104
|
private generateVariationIdFilter;
|
|
104
105
|
buildQuery(block: BlockPageRollupInstanceExtends, uiQueryFilters: QueryFilter[]): Promise<PageQuery>;
|
|
106
|
+
/**
|
|
107
|
+
* The query's internal names, with the comment/reaction count properties guaranteed present
|
|
108
|
+
* whenever the block shows likes/comments.
|
|
109
|
+
*
|
|
110
|
+
* They are normally pushed into `selectProperties` by each view's settings component, but only
|
|
111
|
+
* inside `if (viewSettings.showLikesComments)` and only when that path runs — so a block whose
|
|
112
|
+
* settings were saved before the toggle was turned on keeps a `selectProperties` without them.
|
|
113
|
+
* The counts then never make it into the request: on the search path
|
|
114
|
+
* `OmniaSearchQueryHelper.getRetrieveProperties` maps internal names to `commentCount` /
|
|
115
|
+
* `reactionCount` (via OmniaSearchQueryUtils), so a missing internal name means a missing
|
|
116
|
+
* `retrieveProperties` entry; the counts come back absent and
|
|
117
|
+
* `PageRollupStore.generatePageSocialCountingAndPageStatisticsColumn` zeroes them permanently.
|
|
118
|
+
*
|
|
119
|
+
* Deriving them here rather than trusting saved settings fixes both transports at once — the
|
|
120
|
+
* same list becomes `BatchQueryPages.InternalNames` for the batch query and the source of
|
|
121
|
+
* `retrieveProperties` for multiplesearch. `getPagesDetails` (the dialog path) already hardcodes
|
|
122
|
+
* both, so the two stay consistent.
|
|
123
|
+
*/
|
|
124
|
+
private ensureSocialCountInternalNames;
|
|
105
125
|
getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
|
|
106
126
|
getPagesDetailsMetric(blockInstance: BlockPageRollupInstanceExtends, settings: PageRollupBlockSettings, uiQueryFilters: QueryFilter[], orderBy?: Array<QueryOrder>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): Promise<void>;
|
|
107
127
|
generateBatchQuery(blockPageRollupInstance: BlockPageRollupInstanceExtends): Promise<BatchQueryPages>;
|
|
@@ -114,6 +134,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
114
134
|
private validateSetting;
|
|
115
135
|
private buildUserTargetingQuery;
|
|
116
136
|
private getInstancesToBatchQuery;
|
|
137
|
+
private ensureCurrentPageReady;
|
|
117
138
|
private ensureInitialData;
|
|
118
139
|
private get pageBlockPropertyStore();
|
|
119
140
|
renewPageBlockPropertyStore(): void;
|
|
@@ -121,6 +142,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
121
142
|
private hasVariationQueryFilter;
|
|
122
143
|
private hasVariationValueQueryFilter;
|
|
123
144
|
private runBatchQueryForInstances;
|
|
145
|
+
private prefetchClientCachePaint;
|
|
124
146
|
private executeIndexedDB;
|
|
125
147
|
private runIsolatedBatchQueryForInstances;
|
|
126
148
|
private buildUIFiltersForBlockInstance;
|
|
@@ -223,7 +245,7 @@ export declare class BatchQueryRegistration {
|
|
|
223
245
|
getNextPagingData(): Promise<number>;
|
|
224
246
|
private noNextPaging;
|
|
225
247
|
private loadCurrentPageData;
|
|
226
|
-
generateBatchQuery(
|
|
248
|
+
generateBatchQuery(): Promise<BatchQueryPages>;
|
|
227
249
|
getBlockPageRollupInstance(): BlockPageRollupInstanceExtends;
|
|
228
250
|
get orderBy(): QueryOrder[];
|
|
229
251
|
get pagingNumber(): number;
|
|
@@ -13,12 +13,18 @@ export declare class PageSearchHelper {
|
|
|
13
13
|
featureStore: FeatureStore;
|
|
14
14
|
pageRollupStore: PageRollupStore;
|
|
15
15
|
omniaCtx: OmniaContext;
|
|
16
|
+
private commentLikeStore;
|
|
16
17
|
private richTextPropertyInternalNames;
|
|
17
18
|
private static outOfScopeOmniaSearchProperties;
|
|
19
|
+
private socialCountsDb;
|
|
20
|
+
private socialCountsDbOpenPromise;
|
|
21
|
+
private static lastPurgeAt;
|
|
22
|
+
private static readonly PURGE_INTERVAL_MS;
|
|
18
23
|
queryBatchPages(queries: BatchQueryPages[], cancelRequest?: (cancelToken: any) => void): Promise<BatchQueryPagesResult>;
|
|
19
24
|
private getOutOfScopeOmniaSearchQueries;
|
|
20
25
|
private hasOutOfScopeOmniaSearchPropertiesInFilter;
|
|
21
26
|
private ensureQueryPageRollupInOmniaSearch;
|
|
27
|
+
private getExtendedInfoWithStoreLikes;
|
|
22
28
|
private trimDuplicateBatchResults;
|
|
23
29
|
private processPagesDetailData;
|
|
24
30
|
private getUniquePageDetails;
|
|
@@ -26,4 +32,10 @@ export declare class PageSearchHelper {
|
|
|
26
32
|
private replaceTokenWithDnsForRichTextProperties;
|
|
27
33
|
private getRichTextPropertyInternalNames;
|
|
28
34
|
private replaceTokenWithDns;
|
|
35
|
+
private openSocialCountsDb;
|
|
36
|
+
private purgeExpiredSocialCounts;
|
|
37
|
+
private getSocialCountsFromDB;
|
|
38
|
+
private isSocialCountExpired;
|
|
39
|
+
private isNewerSocialTimestamp;
|
|
40
|
+
updateSocialCountsFromCommentLikeStore(topicId: string, comments: any[] | null, likes: any[] | null): void;
|
|
29
41
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPageRollupPlaceholderImageUrl(type: "page" | "event"): string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./EnterpriseGlossaryHelper";
|
|
2
|
+
export * from "./OmniaFullPageHelper";
|
|
3
|
+
export * from "./OmniaSearchCategoryQueryHelper";
|
|
4
|
+
export * from "./OmniaSearchQueryHelper";
|
|
2
5
|
export * from "./OmniaSearchQueryUtils";
|
|
6
|
+
export * from "./PageRollupStoreHelper";
|
|
3
7
|
export * from "./PageSearchHelper";
|
|
4
|
-
export * from "./OmniaSearchQueryHelper";
|
|
5
|
-
export * from "./OmniaSearchCategoryQueryHelper";
|
|
6
8
|
export * from "./PickedPageHelper";
|
|
7
|
-
export * from "./EnterpriseGlossaryHelper";
|
|
@@ -13,7 +13,7 @@ export declare class ActivityFeedStore extends Store {
|
|
|
13
13
|
* Implementation of mutations
|
|
14
14
|
*/
|
|
15
15
|
mutations: {
|
|
16
|
-
setThemeStyling: import("@omnia/fx/stores").StoreMutation<(themeStyling: ThemeStyling, customStyling: boolean) => void, (themeStyling: ThemeStyling, customStyling: boolean) => import("@omnia/fx-models
|
|
16
|
+
setThemeStyling: import("@omnia/fx/stores").StoreMutation<(themeStyling: ThemeStyling, customStyling: boolean) => void, (themeStyling: ThemeStyling, customStyling: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
17
17
|
};
|
|
18
18
|
actions: {};
|
|
19
19
|
}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { Layout } from "@omnia/fx-models";
|
|
2
|
+
import { Store } from "@omnia/fx/stores";
|
|
3
|
+
import { IPageVersion, Page, PageData, PageId, VersionedPageData, VersionId, VersionReference } from "../models";
|
|
4
|
+
export interface IBaseCurrentPageState {
|
|
5
|
+
/**
|
|
6
|
+
* Reference to the current page
|
|
7
|
+
* */
|
|
8
|
+
readonly currentPage: Page;
|
|
9
|
+
/**
|
|
10
|
+
* Indicates if the current state is for editmode or not
|
|
11
|
+
* True - In editor
|
|
12
|
+
* False - Read mode
|
|
13
|
+
* */
|
|
14
|
+
readonly editMode: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The current version of the currentPage
|
|
17
|
+
* */
|
|
18
|
+
readonly currentVersion: IPageVersion;
|
|
19
|
+
/**
|
|
20
|
+
* The version data of the current page parent
|
|
21
|
+
* This relates to currentVersion.pageData.layoutData.parentLayoutPageId and takes into account rules revolving checkout, publish, undocheckout, editmode etc.
|
|
22
|
+
* if the current version does not have a parentLayoutPageId this version data will be null
|
|
23
|
+
* */
|
|
24
|
+
readonly parentLayout?: IPageVersion;
|
|
25
|
+
readonly externalParentLayout?: Layout;
|
|
26
|
+
}
|
|
27
|
+
export declare class BaseCurrentPageStore extends Store {
|
|
28
|
+
private pageService;
|
|
29
|
+
private pagesStore;
|
|
30
|
+
private securityService;
|
|
31
|
+
private permissionService;
|
|
32
|
+
private NavigationStore;
|
|
33
|
+
private omniaCtx;
|
|
34
|
+
private subscriptionHandler;
|
|
35
|
+
private dynamicStateStore;
|
|
36
|
+
private variationStore;
|
|
37
|
+
private editMode;
|
|
38
|
+
private current;
|
|
39
|
+
private completedMovePageTrackingId;
|
|
40
|
+
private appInstanceContextHandler;
|
|
41
|
+
private pageIdSecurityContextHandler;
|
|
42
|
+
private pageLoadRequestId;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether to use page.publishingAppId.
|
|
45
|
+
* - false (default in CurrentPageStore): Return null
|
|
46
|
+
* - true (in EditPageCurrentPageStore): Use page.publishingAppId - user explicitly selected this page
|
|
47
|
+
*/
|
|
48
|
+
protected usePagePublishingAppId: boolean;
|
|
49
|
+
onActivated(): void;
|
|
50
|
+
private setupPageSecurityTracking;
|
|
51
|
+
protected ensureOwnedSecurityContextHandlers(): void;
|
|
52
|
+
protected setOwnedSecurityContext(appInstanceId: string, pageId: PageId): void;
|
|
53
|
+
protected getRouteAppInstanceId(): string;
|
|
54
|
+
onDisposing(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Gets the target publishing app ID based on context.
|
|
57
|
+
* - Edit dialog: Uses page.publishingAppId
|
|
58
|
+
* - Main app: Returns null
|
|
59
|
+
*/
|
|
60
|
+
private get targetPublishingAppId();
|
|
61
|
+
protected get baseGetters(): {
|
|
62
|
+
/**
|
|
63
|
+
* The state of the current page
|
|
64
|
+
*
|
|
65
|
+
* */
|
|
66
|
+
readonly state: IBaseCurrentPageState;
|
|
67
|
+
};
|
|
68
|
+
get getters(): {
|
|
69
|
+
/**
|
|
70
|
+
* The state of the current page
|
|
71
|
+
*
|
|
72
|
+
* */
|
|
73
|
+
readonly state: IBaseCurrentPageState;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Implementation of mutations
|
|
77
|
+
*/
|
|
78
|
+
protected baseMutations: {
|
|
79
|
+
/**
|
|
80
|
+
* Called when the current sate needs to be updated, e.g. a version or page which the current state depend upon changes
|
|
81
|
+
* */
|
|
82
|
+
addOrUpdateCurrentPage: import("@omnia/fx/stores").StoreMutation<(currentPage: IBaseCurrentPageState) => void, (currentPage: IBaseCurrentPageState) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
83
|
+
};
|
|
84
|
+
mutations: {
|
|
85
|
+
/**
|
|
86
|
+
* Called when the current sate needs to be updated, e.g. a version or page which the current state depend upon changes
|
|
87
|
+
* */
|
|
88
|
+
addOrUpdateCurrentPage: import("@omnia/fx/stores").StoreMutation<(currentPage: IBaseCurrentPageState) => void, (currentPage: IBaseCurrentPageState) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Implementation of actions
|
|
92
|
+
*
|
|
93
|
+
* You can listen for onDispatching, onDispatched and on failure for all actions
|
|
94
|
+
*/
|
|
95
|
+
protected baseActions: {
|
|
96
|
+
/**
|
|
97
|
+
* Changes which page the current page inherites properties from
|
|
98
|
+
* pageToInheritFrom = null, stop inheriting else the page to inherit from
|
|
99
|
+
* */
|
|
100
|
+
setPropertyInheriteance: import("@omnia/fx/stores").StoreAction<unknown, (pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (result: void, pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (failureReason: any, pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: Array<string>) => Promise<void>>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* Specifies if editmode is desired or not.
|
|
104
|
+
* This influences which version of the page is selected, i.e. latest draft,published or checkedout version
|
|
105
|
+
*
|
|
106
|
+
* (You can listen for changes on this action)
|
|
107
|
+
*
|
|
108
|
+
* */
|
|
109
|
+
setEditMode: import("@omnia/fx/stores").StoreAction<unknown, (editMode: boolean) => void, (result: void, editMode: boolean) => void, (failureReason: any, editMode: boolean) => void, (editMode: boolean) => Promise<void>>;
|
|
110
|
+
/**
|
|
111
|
+
* This will swap the current page state to match the version specified
|
|
112
|
+
* This will not take into account any rules regardning version selection based on editmode etc, the specified version is enforced
|
|
113
|
+
*
|
|
114
|
+
* This override is valid until a new current page is set using setCurrentPage
|
|
115
|
+
*
|
|
116
|
+
* The caller of this is responsible of reseting to current page id (which is returned in the promise) or in another way laod the correct page id using setCurrentPage when the page should no longer be overridden
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
overrideVersionToUse: import("@omnia/fx/stores").StoreAction<unknown, (versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (result: {
|
|
120
|
+
pageOveridden: PageId;
|
|
121
|
+
}, versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (failureReason: any, versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (versionRef: VersionReference, isCurrentNavigation?: () => boolean) => Promise<{
|
|
122
|
+
pageOveridden: PageId;
|
|
123
|
+
}>>;
|
|
124
|
+
/**
|
|
125
|
+
* This updates the current page being used.
|
|
126
|
+
* Any overidden version is removed.
|
|
127
|
+
* A state is prepared in relation to rules involving editmode,published,draftversion,checkedout version etc
|
|
128
|
+
*
|
|
129
|
+
* (You can listen for changes on this action, i.e. new page etc)
|
|
130
|
+
*
|
|
131
|
+
* */
|
|
132
|
+
setCurrentPage: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, isCurrentNavigation?: () => boolean) => void, (result: void, pageId: PageId, isCurrentNavigation?: () => boolean) => void, (failureReason: any, pageId: PageId, isCurrentNavigation?: () => boolean) => void, (pageId: PageId, isCurrentNavigation?: () => boolean) => Promise<void>>;
|
|
133
|
+
/**
|
|
134
|
+
* CheckOut the current page, when the promise is resolved the
|
|
135
|
+
* getters.currentVersion will hold the checkedout version
|
|
136
|
+
* */
|
|
137
|
+
checkOutPage: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
138
|
+
checkedoutVersionId: VersionId;
|
|
139
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
140
|
+
checkedoutVersionId: VersionId;
|
|
141
|
+
}>>;
|
|
142
|
+
/**
|
|
143
|
+
* The current user takes over the currently checkedout version
|
|
144
|
+
*
|
|
145
|
+
* (Only allowed if the current version is checked out)
|
|
146
|
+
* */
|
|
147
|
+
takeOverCheckedoutPage: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
148
|
+
/**
|
|
149
|
+
* Undo current checkOut of the current page
|
|
150
|
+
*
|
|
151
|
+
* * */
|
|
152
|
+
undoCheckout: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
153
|
+
/**
|
|
154
|
+
* Check in if the current version is checked out
|
|
155
|
+
* */
|
|
156
|
+
checkIn: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
157
|
+
checkedInVersion: VersionId;
|
|
158
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
159
|
+
checkedInVersion: VersionId;
|
|
160
|
+
}>>;
|
|
161
|
+
/**
|
|
162
|
+
* Saves the state of the checkedout version
|
|
163
|
+
*
|
|
164
|
+
* (Only checkedout versions can be saved, already existing versions are immutable)
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
saveState: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
168
|
+
publish: import("@omnia/fx/stores").StoreAction<unknown, (targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (result: {
|
|
169
|
+
publishedVersionId: VersionId;
|
|
170
|
+
}, targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (failureReason: any, targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => Promise<{
|
|
171
|
+
publishedVersionId: VersionId;
|
|
172
|
+
}>>;
|
|
173
|
+
publishWithoutNavigating: import("@omnia/fx/stores").StoreAction<unknown, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (result: {
|
|
174
|
+
publishedVersionId: VersionId;
|
|
175
|
+
}, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (failureReason: any, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => Promise<{
|
|
176
|
+
publishedVersionId: VersionId;
|
|
177
|
+
}>>;
|
|
178
|
+
reloadPublishedVersion: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
179
|
+
publishedVersionId: VersionId;
|
|
180
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
181
|
+
publishedVersionId: VersionId;
|
|
182
|
+
}>>;
|
|
183
|
+
ensureMovePageTracking: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
184
|
+
};
|
|
185
|
+
actions: {
|
|
186
|
+
/**
|
|
187
|
+
* Changes which page the current page inherites properties from
|
|
188
|
+
* pageToInheritFrom = null, stop inheriting else the page to inherit from
|
|
189
|
+
* */
|
|
190
|
+
setPropertyInheriteance: import("@omnia/fx/stores").StoreAction<unknown, (pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (result: void, pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (failureReason: any, pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: string[]) => void, (pageToInheritFrom?: PageId, namesOfPropertiesToInherit?: Array<string>) => Promise<void>>;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* Specifies if editmode is desired or not.
|
|
194
|
+
* This influences which version of the page is selected, i.e. latest draft,published or checkedout version
|
|
195
|
+
*
|
|
196
|
+
* (You can listen for changes on this action)
|
|
197
|
+
*
|
|
198
|
+
* */
|
|
199
|
+
setEditMode: import("@omnia/fx/stores").StoreAction<unknown, (editMode: boolean) => void, (result: void, editMode: boolean) => void, (failureReason: any, editMode: boolean) => void, (editMode: boolean) => Promise<void>>;
|
|
200
|
+
/**
|
|
201
|
+
* This will swap the current page state to match the version specified
|
|
202
|
+
* This will not take into account any rules regardning version selection based on editmode etc, the specified version is enforced
|
|
203
|
+
*
|
|
204
|
+
* This override is valid until a new current page is set using setCurrentPage
|
|
205
|
+
*
|
|
206
|
+
* The caller of this is responsible of reseting to current page id (which is returned in the promise) or in another way laod the correct page id using setCurrentPage when the page should no longer be overridden
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
209
|
+
overrideVersionToUse: import("@omnia/fx/stores").StoreAction<unknown, (versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (result: {
|
|
210
|
+
pageOveridden: PageId;
|
|
211
|
+
}, versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (failureReason: any, versionRef: VersionReference, isCurrentNavigation?: () => boolean) => void, (versionRef: VersionReference, isCurrentNavigation?: () => boolean) => Promise<{
|
|
212
|
+
pageOveridden: PageId;
|
|
213
|
+
}>>;
|
|
214
|
+
/**
|
|
215
|
+
* This updates the current page being used.
|
|
216
|
+
* Any overidden version is removed.
|
|
217
|
+
* A state is prepared in relation to rules involving editmode,published,draftversion,checkedout version etc
|
|
218
|
+
*
|
|
219
|
+
* (You can listen for changes on this action, i.e. new page etc)
|
|
220
|
+
*
|
|
221
|
+
* */
|
|
222
|
+
setCurrentPage: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, isCurrentNavigation?: () => boolean) => void, (result: void, pageId: PageId, isCurrentNavigation?: () => boolean) => void, (failureReason: any, pageId: PageId, isCurrentNavigation?: () => boolean) => void, (pageId: PageId, isCurrentNavigation?: () => boolean) => Promise<void>>;
|
|
223
|
+
/**
|
|
224
|
+
* CheckOut the current page, when the promise is resolved the
|
|
225
|
+
* getters.currentVersion will hold the checkedout version
|
|
226
|
+
* */
|
|
227
|
+
checkOutPage: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
228
|
+
checkedoutVersionId: VersionId;
|
|
229
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
230
|
+
checkedoutVersionId: VersionId;
|
|
231
|
+
}>>;
|
|
232
|
+
/**
|
|
233
|
+
* The current user takes over the currently checkedout version
|
|
234
|
+
*
|
|
235
|
+
* (Only allowed if the current version is checked out)
|
|
236
|
+
* */
|
|
237
|
+
takeOverCheckedoutPage: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
238
|
+
/**
|
|
239
|
+
* Undo current checkOut of the current page
|
|
240
|
+
*
|
|
241
|
+
* * */
|
|
242
|
+
undoCheckout: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
243
|
+
/**
|
|
244
|
+
* Check in if the current version is checked out
|
|
245
|
+
* */
|
|
246
|
+
checkIn: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
247
|
+
checkedInVersion: VersionId;
|
|
248
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
249
|
+
checkedInVersion: VersionId;
|
|
250
|
+
}>>;
|
|
251
|
+
/**
|
|
252
|
+
* Saves the state of the checkedout version
|
|
253
|
+
*
|
|
254
|
+
* (Only checkedout versions can be saved, already existing versions are immutable)
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
saveState: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
258
|
+
publish: import("@omnia/fx/stores").StoreAction<unknown, (targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (result: {
|
|
259
|
+
publishedVersionId: VersionId;
|
|
260
|
+
}, targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (failureReason: any, targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => void, (targetPublishingAppId?: string, withoutNotification?: boolean, sendPreviewEmail?: boolean) => Promise<{
|
|
261
|
+
publishedVersionId: VersionId;
|
|
262
|
+
}>>;
|
|
263
|
+
publishWithoutNavigating: import("@omnia/fx/stores").StoreAction<unknown, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (result: {
|
|
264
|
+
publishedVersionId: VersionId;
|
|
265
|
+
}, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (failureReason: any, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => Promise<{
|
|
266
|
+
publishedVersionId: VersionId;
|
|
267
|
+
}>>;
|
|
268
|
+
reloadPublishedVersion: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
|
|
269
|
+
publishedVersionId: VersionId;
|
|
270
|
+
}) => void, (failureReason: any) => void, () => Promise<{
|
|
271
|
+
publishedVersionId: VersionId;
|
|
272
|
+
}>>;
|
|
273
|
+
ensureMovePageTracking: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
274
|
+
};
|
|
275
|
+
private onPublishedVersionUpdated;
|
|
276
|
+
private createCurrentPageState;
|
|
277
|
+
private clearTransientApprovalBypassHistory;
|
|
278
|
+
/**
|
|
279
|
+
* Temporary solution until we handle this serverside by adding the info in versionrefs to be able to do this using hard caching
|
|
280
|
+
*/
|
|
281
|
+
private getInheritedEnterprisepropertiesVersion;
|
|
282
|
+
private isCurrentVersion;
|
|
283
|
+
private createVersionRefForVersion;
|
|
284
|
+
private getPageFromStore;
|
|
285
|
+
private getPageVersionByRules;
|
|
286
|
+
private ensureCalculatedProperties;
|
|
287
|
+
private resetState;
|
|
288
|
+
private releaseDynamicState;
|
|
289
|
+
}
|
|
@@ -47,11 +47,11 @@ export declare class CurrentNavigationStore extends Store {
|
|
|
47
47
|
*/
|
|
48
48
|
actions: {
|
|
49
49
|
ensureReady: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Future<void>>;
|
|
50
|
-
ensureTreeForNode: import("@omnia/fx/stores").StoreAction<unknown, (node: NavigationNode<NavigationData
|
|
51
|
-
ensureTreeForPath: import("@omnia/fx/stores").StoreAction<unknown, (path: string) => void, (result:
|
|
50
|
+
ensureTreeForNode: import("@omnia/fx/stores").StoreAction<unknown, (node: NavigationNode<NavigationData>, isCurrentNavigation?: () => boolean) => void, (result: void, node: NavigationNode<NavigationData>, isCurrentNavigation?: () => boolean) => void, (failureReason: any, node: NavigationNode<NavigationData>, isCurrentNavigation?: () => boolean) => void, (node: NavigationNode<NavigationData>, isCurrentNavigation?: () => boolean) => Promise<void>>;
|
|
51
|
+
ensureTreeForPath: import("@omnia/fx/stores").StoreAction<unknown, (path: string, isCurrentNavigation?: () => boolean) => void, (result: NavigationNode<NavigationData>, path: string, isCurrentNavigation?: () => boolean) => void, (failureReason: any, path: string, isCurrentNavigation?: () => boolean) => void, (path: string, isCurrentNavigation?: () => boolean) => Promise<NavigationNode<NavigationData>>>;
|
|
52
52
|
expand: 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>>;
|
|
53
53
|
};
|
|
54
54
|
private setStatus;
|
|
55
|
-
private
|
|
55
|
+
private getActiveNodes;
|
|
56
56
|
private mutateNodeState;
|
|
57
57
|
}
|