@omnia/wcm 7.9.2-preview → 7.9.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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/internal-do-not-import-from-here/core/Utils.d.ts +3 -1
  3. package/internal-do-not-import-from-here/core/loc/CommunityLocalization.d.ts +1 -1
  4. package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +21 -21
  5. package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +52 -0
  6. package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +1 -0
  7. package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +28 -2
  8. package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +1 -0
  9. package/internal-do-not-import-from-here/fx/internal/models/index.d.ts +0 -1
  10. package/internal-do-not-import-from-here/fx/models/Constants.d.ts +2 -0
  11. package/internal-do-not-import-from-here/fx/models/Constants.js +5 -1
  12. package/internal-do-not-import-from-here/fx/models/Enums.d.ts +10 -2
  13. package/internal-do-not-import-from-here/fx/models/Enums.js +10 -1
  14. package/internal-do-not-import-from-here/fx/models/ManifestIds.d.ts +3 -0
  15. package/internal-do-not-import-from-here/fx/models/ManifestIds.js +3 -0
  16. package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +5 -0
  17. package/internal-do-not-import-from-here/fx/models/components/ContentBlock.js +6 -1
  18. package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +1 -0
  19. package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +4 -2
  20. package/internal-do-not-import-from-here/fx/models/pagecreation/PageCreationActionSetting.d.ts +1 -0
  21. package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +2 -1
  22. package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +51 -1
  23. package/internal-do-not-import-from-here/fx/models/pages/VersionInformation.d.ts +7 -0
  24. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +21 -0
  25. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +27 -0
  26. package/internal-do-not-import-from-here/fx/models/query/index.d.ts +1 -0
  27. package/internal-do-not-import-from-here/fx/models/query/index.js +1 -0
  28. package/internal-do-not-import-from-here/fx/models/variations/Variation.d.ts +10 -0
  29. package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +7 -4
  30. package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +2 -0
  31. package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +1 -1
  32. package/internal-do-not-import-from-here/fx/services/PageQueryService.d.ts +0 -2
  33. package/internal-do-not-import-from-here/fx/services/PageService.d.ts +3 -3
  34. package/internal-do-not-import-from-here/fx/services/PageSocialService.d.ts +6 -0
  35. package/internal-do-not-import-from-here/fx/services/PageStatisticsService.d.ts +1 -0
  36. package/internal-do-not-import-from-here/fx/services/SocialService.d.ts +31 -0
  37. package/internal-do-not-import-from-here/fx/services/index.d.ts +2 -0
  38. package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +9 -4
  39. package/internal-do-not-import-from-here/fx/shared/PickedPageHelper.d.ts +10 -0
  40. package/internal-do-not-import-from-here/fx/shared/index.d.ts +1 -0
  41. package/internal-do-not-import-from-here/fx/stores/CreatePageFormStore.d.ts +2 -0
  42. package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +9 -2
  43. package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +1 -0
  44. package/internal-do-not-import-from-here/fx/stores/PageStatisticsStore.d.ts +3 -0
  45. package/internal-do-not-import-from-here/fx/stores/VariationStore.d.ts +1 -0
  46. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
  47. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
  48. package/internal-do-not-import-from-here/models/security/Security.d.ts +11 -2
  49. package/internal-do-not-import-from-here/models/security/Security.js +31 -1
  50. package/package.json +5 -5
  51. package/internal-do-not-import-from-here/fx/internal/models/PageBulkUpdate.d.ts +0 -5
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @deprecated Removed in 8.0. Use Omnia Enums instead.
3
+ */
4
+ export declare module ItemQueryEnums {
5
+ enum FilterLogicalOperator {
6
+ And = 1,
7
+ Or = 2
8
+ }
9
+ enum FilterOperator {
10
+ Eq = 1,
11
+ Ne = 2,
12
+ Lt = 3,
13
+ Gt = 4,
14
+ Le = 5,
15
+ Ge = 6,
16
+ In = 7,
17
+ Like = 8,
18
+ NotLike = 9,
19
+ Ba = 10
20
+ }
21
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /**
3
+ * @deprecated Removed in 8.0. Use Omnia Enums instead.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ItemQueryEnums = void 0;
7
+ var ItemQueryEnums;
8
+ (function (ItemQueryEnums) {
9
+ let FilterLogicalOperator;
10
+ (function (FilterLogicalOperator) {
11
+ FilterLogicalOperator[FilterLogicalOperator["And"] = 1] = "And";
12
+ FilterLogicalOperator[FilterLogicalOperator["Or"] = 2] = "Or";
13
+ })(FilterLogicalOperator = ItemQueryEnums.FilterLogicalOperator || (ItemQueryEnums.FilterLogicalOperator = {}));
14
+ let FilterOperator;
15
+ (function (FilterOperator) {
16
+ FilterOperator[FilterOperator["Eq"] = 1] = "Eq";
17
+ FilterOperator[FilterOperator["Ne"] = 2] = "Ne";
18
+ FilterOperator[FilterOperator["Lt"] = 3] = "Lt";
19
+ FilterOperator[FilterOperator["Gt"] = 4] = "Gt";
20
+ FilterOperator[FilterOperator["Le"] = 5] = "Le";
21
+ FilterOperator[FilterOperator["Ge"] = 6] = "Ge";
22
+ FilterOperator[FilterOperator["In"] = 7] = "In";
23
+ FilterOperator[FilterOperator["Like"] = 8] = "Like";
24
+ FilterOperator[FilterOperator["NotLike"] = 9] = "NotLike";
25
+ FilterOperator[FilterOperator["Ba"] = 10] = "Ba";
26
+ })(FilterOperator = ItemQueryEnums.FilterOperator || (ItemQueryEnums.FilterOperator = {}));
27
+ })(ItemQueryEnums = exports.ItemQueryEnums || (exports.ItemQueryEnums = {}));
@@ -1,3 +1,4 @@
1
1
  export * from "./ItemQuery";
2
2
  export * from "./PageQuery";
3
+ export * from "./ItemQueryEnums";
3
4
  export * from "./VariationQuery";
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ItemQuery"), exports);
5
5
  tslib_1.__exportStar(require("./PageQuery"), exports);
6
+ tslib_1.__exportStar(require("./ItemQueryEnums"), exports);
6
7
  tslib_1.__exportStar(require("./VariationQuery"), exports);
@@ -13,9 +13,19 @@ export interface Variation {
13
13
  icon: IIcon;
14
14
  urlSegment: string;
15
15
  isDefault: boolean;
16
+ /**
17
+ * @deprecated
18
+ */
16
19
  author: Identity;
20
+ authors: Array<Identity>;
17
21
  supportedLanguages?: Array<Language>;
18
22
  automaticMachineTranslation?: boolean;
19
23
  allowEditMachineTranslation?: boolean;
20
24
  activeRightToLeft?: boolean;
25
+ editNotificationSettings?: VariationEditNotificationSettings;
26
+ }
27
+ export interface VariationEditNotificationSettings {
28
+ notifyVariationAuthorOnEdit?: boolean;
29
+ notifyPagePropertyUsersOnEdit?: boolean;
30
+ editNotificationsUserPropertyId?: GuidValue;
21
31
  }
@@ -1,12 +1,15 @@
1
- import { MultilingualString, IIcon, UserIdentity } from "@omnia/fx-models";
1
+ import { MultilingualString, IIcon, Identity } from "@omnia/fx-models";
2
2
  import { TargetingFilterProperty } from "@omnia/fx-sp";
3
+ import { VariationEditNotificationSettings } from "./Variation";
3
4
  export interface VariationCreationRequest {
4
5
  displayNames: MultilingualString;
5
6
  targetingFilterData: TargetingFilterProperty;
6
7
  icon: IIcon;
7
8
  urlSegment: string;
8
9
  /**
9
- * The principle/login of the user considered author
10
- * */
11
- author?: UserIdentity;
10
+ * @deprecated
11
+ * */
12
+ author?: Identity;
13
+ authors?: Array<Identity>;
14
+ editNotificationSettings: VariationEditNotificationSettings;
12
15
  }
@@ -22,6 +22,8 @@ export declare class WcmRouter {
22
22
  private loadTreeForPath;
23
23
  navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, forceToNewNavigationState?: boolean): Promise<T>;
24
24
  navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T): Promise<T>;
25
+ navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, openEditor?: boolean): void;
26
+ private buildRelativePath;
25
27
  private getTargetingVariation;
26
28
  onDisposing(): void;
27
29
  private executeScrollingIfNeeded;
@@ -51,7 +51,7 @@ export declare class NavigationService {
51
51
  [nodeId: number]: NavigationNode<NavigationData>;
52
52
  }>;
53
53
  getNavigationByNode: (node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
54
- getNavigationByPath: (path: string, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
54
+ getNavigationByPath: (path: string, nodeTypes?: NavigationDataType, appInstanceId?: string) => Promise<NavigationResult>;
55
55
  getNodesByPageIds: (...args: Array<PageId>) => Promise<{
56
56
  [pageId: number]: PageNavigationNode<PageNavigationData>[];
57
57
  }>;
@@ -20,7 +20,5 @@ export declare class PageQueryService {
20
20
  getExportedFile: (exportingFileName: string, exportingFileToken: string) => Promise<void>;
21
21
  checkMigrationOmniaSearchStatus: (migrationId: string) => Promise<boolean>;
22
22
  private processPagesDetailData;
23
- private getPageVisited;
24
- private findPageInNode;
25
23
  getPendingApprovalPages: () => Promise<Array<PendingApprovalPage>>;
26
24
  }
@@ -1,10 +1,9 @@
1
- import { Page, PageData, CheckedOutVersionPageData, VersionedPageData, PublishedVersionPageData, PageIdToPageMap, PageId, VariationPage, PageCollectionSelection, NavigationData, NavigationNode, MovePagesResult, VersionInformation, ArchivePageResult, RestorePageMessage, RestorePageResult, VariationId, PageWithNavigationCreationRequest, PageNavigationNode, PageNavigationData, ReadNews, PagePermissionResponse, ValidationArchivePageResult, PageTypeTitle, VersionId, ApprovalMetaData, MovePageTracking } from "../models";
1
+ import { Page, PageData, CheckedOutVersionPageData, VersionedPageData, PublishedVersionPageData, PageIdToPageMap, PageId, VariationPage, PageCollectionSelection, NavigationData, NavigationNode, MovePagesResult, VersionInformation, ArchivePageResult, RestorePageMessage, RestorePageResult, VariationId, PageWithNavigationCreationRequest, PageNavigationNode, PageNavigationData, ReadNews, PagePermissionResponse, ValidationArchivePageResult, PageTypeTitle, VersionId, ApprovalMetaData, MovePageTracking, VersionInformationDetail } from "../models";
2
2
  import { MergedPageVersionLayout } from "../models/layout/MergedPageVersionLayout";
3
3
  import { ApiResponse, GuidValue } from "@omnia/fx-models";
4
4
  import { VersionReference } from "../models";
5
5
  import { NavigationPosition } from "../models/navigation/NavigationPosition";
6
6
  import { CreatedPageWithNavigationInfo, CreatedPageInfo } from "../models";
7
- import { PagePermissionInfo } from "../models";
8
7
  import { EnterprisePropertyStore } from "@omnia/fx/stores";
9
8
  import { InvitationOfAuthor } from "../../models";
10
9
  export declare class PageService {
@@ -16,7 +15,7 @@ export declare class PageService {
16
15
  private readonly baseUrl;
17
16
  private readonly reusablePageBaseUrl;
18
17
  createVariationPage: <T extends PageData>(pageData: T, originalPageId: PageId, variationId: VariationId) => Promise<CreatedPageInfo<T>>;
19
- updatePagePermissions: (pageId: PageId, permissionInfo: PagePermissionInfo, variationId?: VariationId) => Promise<void>;
18
+ updatePagePermissions: (pageId: PageId, variationId?: VariationId) => Promise<void>;
20
19
  createWithNavigation: <T extends PageData>(creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => Promise<CreatedPageWithNavigationInfo<T>>;
21
20
  move: <T extends NavigationNode<NavigationData>>(nodeToMove: T, newPosition: NavigationPosition) => Promise<MovePagesResult>;
22
21
  movePageTypeToTenant: (page: Page) => Promise<PageNavigationNode<PageNavigationData>>;
@@ -85,6 +84,7 @@ export declare class PageService {
85
84
  mergeVersionWithParentLayoutLayouts: (versionRef: VersionReference, layoutLatestPublishedVersionId?: number) => Promise<MergedPageVersionLayout>;
86
85
  checkSharepointPageExist: (spPageId: number) => Promise<boolean>;
87
86
  getVersionInformation: (pageId: PageId, publishingAppId?: string) => Promise<Array<VersionInformation>>;
87
+ getVersionsDetails: (pageId: PageId, versionIds: Array<number>, publishingAppId?: string) => Promise<Array<VersionInformationDetail>>;
88
88
  revert: <T extends PageData>(versiontoRevert: VersionedPageData<T>) => Promise<VersionedPageData<T>>;
89
89
  getPageCollectionSelection: (fromPublishingAppId: string, fromPageCollectionIds?: Array<string>) => Promise<ApiResponse<PageCollectionSelection[]>>;
90
90
  private tempFixDateTimeFormatInEnterpriseProperty;
@@ -0,0 +1,6 @@
1
+ import { Comment } from "@omnia/fx/models";
2
+ import { ICommentLikeService } from "@omnia/fx/stores";
3
+ import { SocialService } from "./SocialService";
4
+ export declare class PageSocialService extends SocialService implements ICommentLikeService {
5
+ deleteComment: (comment: Comment) => Promise<void>;
6
+ }
@@ -18,4 +18,5 @@ export declare class PageStatisticsService {
18
18
  exportScheduledReport(reportOptions: PageReportOption): Promise<PageStatisticExport>;
19
19
  getDailyStatisticsPerPage(pageId: number, includeSubPages: boolean): Promise<Array<DailyStatisticsPerPage>>;
20
20
  getPageUniqueUsersByUserProperty(pageId: number, propertyName: string, datePeriods: PageRollupEnums.DatePeriods): Promise<Array<UniqueUsersByUserProperty>>;
21
+ isMaximumCapacity(): Promise<boolean>;
21
22
  }
@@ -0,0 +1,31 @@
1
+ import { HttpClient } from "@omnia/fx";
2
+ import { Comment, GuidValue, ReactionType } from "@omnia/fx/models";
3
+ import { TopicRating, SubscriptionTypes, SubscriptionInfo, Feedback } from "../../models";
4
+ import { Achievement, PageId, UserAchievement } from "@omnia/wcm/models";
5
+ import { ICommentLikeService } from "@omnia/fx/stores";
6
+ export declare class SocialService implements ICommentLikeService {
7
+ protected httpClient: HttpClient;
8
+ constructor();
9
+ deleteComment: (comment: Comment) => Promise<void>;
10
+ getCommentLike: (topicId: string) => Promise<any>;
11
+ toggleLike: (topicId: string, commentId: string, isLike: boolean) => Promise<void>;
12
+ socialReacts: (topicId: string, commentId: string, isReacts: boolean, reactionType: ReactionType) => Promise<void>;
13
+ addComment: (comment: Comment) => Promise<Comment>;
14
+ updateComment: (comment: Comment) => Promise<Comment>;
15
+ markBestReply: (topicId: string, commentId: string) => Promise<void>;
16
+ ratePage: (topicId: string, rate: number) => Promise<TopicRating>;
17
+ getRating: (topicId: string) => Promise<TopicRating>;
18
+ addSubscription: (topicId: string, type: SubscriptionTypes) => Promise<SubscriptionInfo>;
19
+ removeSubscription: (topicId: string, type: SubscriptionTypes) => Promise<void>;
20
+ getSubscriptions: () => Promise<SubscriptionInfo[]>;
21
+ addOrUpdateAchievement: (achievement: Achievement) => Promise<Achievement>;
22
+ deleteAchievement: (achievementId: GuidValue) => Promise<void>;
23
+ getAchievements: (publishingAppId: string) => Promise<Achievement[]>;
24
+ getMyAchievements: () => Promise<UserAchievement[]>;
25
+ getFeedbacks: (pageId: PageId) => Promise<{
26
+ [versionId: string]: Feedback[];
27
+ }>;
28
+ addFeedback: (feedback: Feedback) => Promise<Feedback>;
29
+ sharePage: (topicId: string) => Promise<void>;
30
+ deleteFeedback: (feedbackId: GuidValue) => Promise<void>;
31
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./NavigationService";
2
2
  export * from "./PageService";
3
3
  export * from "./PageQueryService";
4
+ export * from "./PageSocialService";
4
5
  export * from "./DocumentService";
5
6
  export * from "./VariationService";
6
7
  export * from "./CalendarService";
@@ -21,3 +22,4 @@ export * from "./AiContentPageReportService";
21
22
  export * from "./OpenAIPageCreationService";
22
23
  export * from "./OmniaSearchPageService";
23
24
  export * from "./MediaRollupService";
25
+ export * from "./SocialService";
@@ -39,6 +39,7 @@ declare class InternalPageRollupStoreHelper {
39
39
  private profileCardStore;
40
40
  private userIdentityStore;
41
41
  private navigationStore;
42
+ private pickedPageHelper;
42
43
  private resolvablePageRollupInNP;
43
44
  private pageRollupInstancesInNP;
44
45
  private pageRollupInstances;
@@ -99,11 +100,12 @@ declare class InternalPageRollupStoreHelper {
99
100
  }, settings: PageRollupBlockSettings, pageCollectionSelections: Array<PageCollectionSelection>): any[];
100
101
  private populateNavigationPathTargetingVariationIds;
101
102
  private generateVariationIdFilter;
102
- buildQuery(serviceContainerContext: ServiceContainerContext, settings: PageRollupBlockSettings, instance: IBlockInstance<PageRollupBlockSettings>, uiQueryFilters: QueryFilter[]): Promise<PageQuery>;
103
+ buildQuery(block: BlockPageRollupInstanceExtends, uiQueryFilters: QueryFilter[]): Promise<PageQuery>;
103
104
  getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
104
105
  getPagesDetailsMetric(blockInstance: BlockPageRollupInstanceExtends, settings: PageRollupBlockSettings, uiQueryFilters: QueryFilter[], orderBy?: Array<QueryOrder>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): Promise<void>;
105
- generateBatchQuery(blockInstance: BlockPageRollupInstanceExtends, settings: PageRollupBlockSettings, uiQueryFilters: QueryFilter[], orderBy?: Array<QueryOrder>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): Promise<BatchQueryPages>;
106
+ generateBatchQuery(blockPageRollupInstance: BlockPageRollupInstanceExtends): Promise<BatchQueryPages>;
106
107
  needToGetVariationQuery(type: PageRollupEnums.QueryConfigurationType, scope: PageRollupEnums.RollupScopes): boolean;
108
+ mergeBlockInstance(blockInstance: BlockPageRollupInstanceExtends, settings: PageRollupBlockSettings, uiQueryFilters: QueryFilter[], orderBy?: Array<QueryOrder>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): BlockPageRollupInstanceExtends;
107
109
  private generateChannelsFilter;
108
110
  private generateChannelsFilterForChannelsScope;
109
111
  private getPropertyNameByScope;
@@ -133,7 +135,8 @@ declare class InternalPageRollupStoreHelper {
133
135
  private extractPageRollupInstancesInNP;
134
136
  private pushBatchQueryTimewatch;
135
137
  private ensureRunLatestBatchQuery;
136
- executeBatchQuery(queries: BatchQueryPagesExtends[], queryWithPageTypes: Array<string>, allowCancelToken?: boolean, clientCaching?: boolean): Promise<BatchQueryPagesResult>;
138
+ executeBatchQuery(queries: BatchQueryPagesExtends[], blockInstances: BlockPageRollupInstanceExtends[], queryWithPageTypes: Array<string>, allowCancelToken?: boolean, clientCaching?: boolean): Promise<BatchQueryPagesResult>;
139
+ private ensurePickedPagesResult;
137
140
  private mapToBatchQueryPages;
138
141
  private hasPageTypeSettingInView;
139
142
  private hasTagOrTaxonomyInView;
@@ -166,7 +169,7 @@ export declare class PageRollupStoreHelper {
166
169
  getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
167
170
  getPagesDetailsMetric(blockInstance: IBlockInstance<PageRollupBlockSettings>, settings: PageRollupBlockSettings, uiQueryFilters: QueryFilter[], orderBy?: Array<QueryOrder>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): Promise<void>;
168
171
  setDestroyedPageRollups(pageRollupQueryId: string): void;
169
- getBatchQueriesData(batchQueries: Array<BatchQueryPages>, queryWithPageTypes: Array<string>): Promise<BatchQueryPagesResult>;
172
+ getBatchQueriesData(batchQueries: Array<BatchQueryPages>, blockInstances: BlockPageRollupInstanceExtends[], queryWithPageTypes: Array<string>): Promise<BatchQueryPagesResult>;
170
173
  needToLoadPageTypeInView(settings: PageRollupBlockSettings, internalNames: Array<string>): boolean;
171
174
  }
172
175
  export declare class FilterManager {
@@ -212,8 +215,10 @@ export declare class BatchQueryRegistration {
212
215
  execute(): Promise<number>;
213
216
  getPagingData(pageNumber: number): Promise<number>;
214
217
  getNextPagingData(): Promise<number>;
218
+ private noNextPaging;
215
219
  private loadCurrentPageData;
216
220
  generateBatchQuery(): Promise<BatchQueryPages>;
221
+ getBlockPageRollupInstance(): BlockPageRollupInstanceExtends;
217
222
  get orderBy(): QueryOrder[];
218
223
  get pagingNumber(): number;
219
224
  get pagingStateKey(): string;
@@ -0,0 +1,10 @@
1
+ import { PageItemNode, PageDetailQueryResult, QueryFilter } from "../models";
2
+ export declare class PickedPageHelper {
3
+ private variationStore;
4
+ private targetingStore;
5
+ buildPickedPagesQuery(queryFilter: QueryFilter, pickedPages: Array<PageItemNode>): QueryFilter;
6
+ ensureVariationTargetingCurrentUser(pickedPages: Array<PageItemNode>): Promise<void>;
7
+ ensureFallbackPickedPagesResult(pickedPages: Array<PageItemNode>, pages: Array<PageDetailQueryResult>, itemLimit?: number): PageDetailQueryResult[];
8
+ sortPickedPagesByDefault(pickedPages: Array<PageItemNode>, pages: Array<PageDetailQueryResult>): PageDetailQueryResult[];
9
+ private getPublishingAppVariation;
10
+ }
@@ -3,3 +3,4 @@ export * from "./OmniaSearchQueryUtils";
3
3
  export * from "./PageSearchHelper";
4
4
  export * from "./OmniaSearchQueryHelper";
5
5
  export * from "./OmniaSearchCategoryQueryHelper";
6
+ export * from "./PickedPageHelper";
@@ -3,8 +3,10 @@ import { Store } from "@omnia/fx/stores";
3
3
  import { PageTitleConfig } from "../internal/models/PageTitleConfig";
4
4
  import { PageData, PageWithNavigationCreationRequest, VersionedPageData } from "../models";
5
5
  import { PagesStore } from "./PagesStore";
6
+ import { PageService } from "../services";
6
7
  export declare class CreatePageFormStore extends Store {
7
8
  pagesStore: PagesStore;
9
+ pageService: PageService;
8
10
  pageTitleConfig: import("@omnia/fx/stores").StoreState<PageTitleConfig>;
9
11
  properties: import("@omnia/fx/stores").StoreState<{
10
12
  [propertyInternalName: string]: any;
@@ -1,6 +1,6 @@
1
- import { Store } from "@omnia/fx/stores";
2
- import { Page, VersionReference, PageId, VersionId, IPageVersion } from "../models";
3
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
4
  export interface ICurrentPageState {
5
5
  /**
6
6
  * Reference to the current page
@@ -33,6 +33,7 @@ export declare class CurrentPageStore extends Store {
33
33
  private omniaCtx;
34
34
  private subscriptionHandler;
35
35
  private dynamicStateStore;
36
+ private variationStore;
36
37
  private editMode;
37
38
  private current;
38
39
  private completedMovePageTrackingId;
@@ -138,6 +139,11 @@ export declare class CurrentPageStore extends Store {
138
139
  }, targetPublishingAppId?: string) => void, (failureReason: any, targetPublishingAppId?: string) => void, (targetPublishingAppId?: string) => Promise<{
139
140
  publishedVersionId: VersionId;
140
141
  }>>;
142
+ publishWithoutNavigating: import("@omnia/fx/stores").StoreAction<unknown, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (result: {
143
+ publishedVersionId: VersionId;
144
+ }, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (failureReason: any, versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => void, (versionPageData: VersionedPageData<PageData>, targetPublishingAppId?: string) => Promise<{
145
+ publishedVersionId: VersionId;
146
+ }>>;
141
147
  reloadPublishedVersion: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
142
148
  publishedVersionId: VersionId;
143
149
  }) => void, (failureReason: any) => void, () => Promise<{
@@ -154,6 +160,7 @@ export declare class CurrentPageStore extends Store {
154
160
  private isCurrentVersion;
155
161
  private createVersionRefForVersion;
156
162
  private getPageFromStore;
163
+ private checkPermission;
157
164
  private getPageVersionByRules;
158
165
  private ensureCalculatedProperties;
159
166
  private resetState;
@@ -29,6 +29,7 @@ export declare class NavigationStore extends Store {
29
29
  hasChildrenLoadTriggered: (node: NavigationNode<NavigationData>) => boolean;
30
30
  getParents: <T_1 extends NavigationNode<NavigationData>>(node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => T_1[];
31
31
  absoluteUrl: (node: NavigationNode<NavigationData>, variationId?: VariationId, excludeVariationUrl?: boolean) => string;
32
+ pageTitle: (node: NavigationNode<NavigationData>) => string;
32
33
  sortSiblingNodes: (nodes: Array<NavigationNode<NavigationData>>) => NavigationNode<NavigationData>[];
33
34
  checkNodeIsDefaultPageCollectionNode: (navigationNode: PageCollectionNavigationNode<PageCollectionNavigationData>) => boolean;
34
35
  };
@@ -7,8 +7,10 @@ export declare class PageStatisticsStore extends Store {
7
7
  private omniaContext;
8
8
  private static _visitedPages;
9
9
  private pagePropertyMappingSettingsState;
10
+ private isMaximumCapacity;
10
11
  getters: {
11
12
  pagePropertyMappingSettings: () => PagePropertyMappingSetting;
13
+ isMaximumCapacity: () => boolean;
12
14
  };
13
15
  setters: {
14
16
  /**
@@ -30,6 +32,7 @@ export declare class PageStatisticsStore extends Store {
30
32
  exportScheduledReport: import("@omnia/fx/stores").StoreAction<unknown, (reportOptions: PageReportOption) => void, (result: PageStatisticExportStatus, reportOptions: PageReportOption) => void, (failureReason: any, reportOptions: PageReportOption) => void, (reportOptions: PageReportOption) => Promise<PageStatisticExportStatus>>;
31
33
  downloadReportFile: import("@omnia/fx/stores").StoreAction<unknown, (pageStatistic: PageStatisticExportStatus) => void, (result: void, pageStatistic: PageStatisticExportStatus) => void, (failureReason: any, pageStatistic: PageStatisticExportStatus) => void, (pageStatistic: PageStatisticExportStatus) => Promise<void>>;
32
34
  getDailyStatisticsPerPage: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number, includeSubPages: boolean) => void, (result: DailyStatisticsPerPage[], pageId: number, includeSubPages: boolean) => void, (failureReason: any, pageId: number, includeSubPages: boolean) => void, (pageId: number, includeSubPages: boolean) => Promise<DailyStatisticsPerPage[]>>;
35
+ ensureIsMaximumCapacity: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
33
36
  };
34
37
  private submitPageViewed;
35
38
  private downloadReportResult;
@@ -44,6 +44,7 @@ export declare class VariationStore extends Store {
44
44
  delete: import("@omnia/fx/stores").StoreAction<unknown, (variation: Variation) => void, (result: void, variation: Variation) => void, (failureReason: any, variation: Variation) => void, (variation: Variation) => Promise<void>>;
45
45
  switchVariation: import("@omnia/fx/stores").StoreAction<unknown, (variation: Variation) => void, (result: any, variation: Variation) => void, (failureReason: any, variation: Variation) => void, (variation: Variation) => Promise<any>>;
46
46
  };
47
+ private ensureDataForVariation;
47
48
  private compareTargeting;
48
49
  private getPublishingAppKey;
49
50
  private get publishingAppId();
@@ -1 +1 @@
1
- {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
1
+ {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","GetRoleDefinitions","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionComparisonType","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
@@ -1 +1 @@
1
- {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['a41d1723-10ca-4597-9c40-fd4f511ae2ae']","content":{"./node_modules/@omnia/wcm/internal/index.js":{"id":"./node_modules/@omnia/wcm/internal/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ActiveUserDashboardQueryTypes","BreadcrumNodeTypes","NavigationTitleHelperService","OmniaPageSearch","OmniaSearchPageStore","PageBulkUpdateStatus","PageDashboardDetail","PageTypesFilterValue","PagesDashboardDetailResult","PagesDashboardMetricQuery","PagesDashboardQueryTypes","PagesDetailDashboardQuery","PublishingAppsFilterValue","ReindexContentOmniaSearchStatus","SyncOmniaSearchType","UserPropertiesFilterValue","YammerIntegrationStore"]},"./node_modules/@omnia/wcm/messaging/InternalWcmTopics.js":{"id":"./node_modules/@omnia/wcm/messaging/internalwcmtopics.js","buildMeta":{"exportsType":"namespace"},"expo.js":["InternalWcmTopics"]},"./node_modules/@omnia/wcm/shared/index.js":{"id":"./node_modules/@omnia/wcm/shared/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["BatchQueryRegistration","EnsureMigrateBlockData","FilterManager","OmniaSearchCategoryQueryHelper","OmniaSearchQueryHelper","OmniaSearchQueryUtils","PageRollupConfigurationFactory","PageRollupStoreHelper","PageSearchHelper"]},"./node_modules/@omnia/wcm/index.js":{"id":"dd7f30f1-7b1b-47a5-acfb-c173d2fcb1f3","buildMeta":{"exportsType":"namespace"},"expo.js":["ActivityActionFactory","AiContentPageReportService","AppInfoStore","AutomaticPageCreationService","BASE_URL","BackgroundImageHelper","BreadcrumbStore","BreakpointStore","BuiltInActionButtonHandlers","CURRENT_DATE","CalendarConstants","CalendarService","ChannelCategoriesStore","ChannelManagementService","ChannelManagementStore","CommunityRules","CreatePageFormStore","CurrentEventStore","CurrentNavigationStore","CurrentPageStore","DisplayBreakPointFactory","DocumentService","EditingDisplayRules","EmailSettingsKey","EnterprisePropertyInternalNames","EventParticipantListElementName","EventService","GovernanceDashboard","IconRules","ItemQueryHelper","LayoutDataParentPageId","LayoutHelper","LayoutItemsTranslator","LinkPickerProviderMsg","LinkPickerProviders","LinkPickerStore","MaxIntNumber","MediaRollupService","NavigationNodeHelper","NavigationService","NavigationStore","NewsletterService","OmniaSearchPageService","OmniaWCMPageBody","OpenAIPageCreationService","OutlookEvent","PageApprovalConstants","PageBlockPropertyStore","PageFactory","PageHiddenService","PageNavigationNodeHelper","PagePermissionService","PageQueryService","PageRedirectHelper","PageRollupFilterEngineContext","PageRollupIndexedDB","PageRollupListView","PageRollupStore","PageService","PageStatisticsService","PageStatisticsStore","PageVariationHelper","PageVersion","PagesStore","ParticipantService","ParticipantsFields","PublishingAppDefaultScrollElementClass","PublishingAppInfoStore","PublishingAppUniqueModelName","PublishingChannelCategoriesService","PublishingRuleService","PublishingRuleStore","QueryableProperties","ReusablePageService","TargetingStore","ThemingRules","TimeFormat","TopicActivityService","TopicPrefixConstants","Topics","TopicsActivityStore","VariationRules","VariationService","VariationStore","VersionEnterpriseProperties","VersionPropertyBag","VisitedPageKeyPrefix","WCMPageKeyPrefix","WCMPageVersionStateException","WcmContext","WcmRouter","YammerService"]}}}
1
+ {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['a41d1723-10ca-4597-9c40-fd4f511ae2ae']","content":{"./node_modules/@omnia/wcm/internal/index.js":{"id":"./node_modules/@omnia/wcm/internal/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ActiveUserDashboardQueryTypes","BreadcrumNodeTypes","NavigationTitleHelperService","OmniaPageSearch","OmniaSearchPageStore","PageDashboardDetail","PageTypesFilterValue","PagesDashboardDetailResult","PagesDashboardMetricQuery","PagesDashboardQueryTypes","PagesDetailDashboardQuery","PublishingAppsFilterValue","ReindexContentOmniaSearchStatus","SyncOmniaSearchType","UserPropertiesFilterValue","YammerIntegrationStore"]},"./node_modules/@omnia/wcm/messaging/InternalWcmTopics.js":{"id":"./node_modules/@omnia/wcm/messaging/internalwcmtopics.js","buildMeta":{"exportsType":"namespace"},"expo.js":["InternalWcmTopics"]},"./node_modules/@omnia/wcm/shared/index.js":{"id":"./node_modules/@omnia/wcm/shared/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["BatchQueryRegistration","EnsureMigrateBlockData","FilterManager","OmniaSearchCategoryQueryHelper","OmniaSearchQueryHelper","OmniaSearchQueryUtils","PageRollupConfigurationFactory","PageRollupStoreHelper","PageSearchHelper","PickedPageHelper"]},"./node_modules/@omnia/wcm/index.js":{"id":"dd7f30f1-7b1b-47a5-acfb-c173d2fcb1f3","buildMeta":{"exportsType":"namespace"},"expo.js":["ActivityActionFactory","AiContentPageReportService","AppInfoStore","AutomaticPageCreationService","BASE_URL","BackgroundImageHelper","BreadcrumbStore","BreakpointStore","BuiltInActionButtonHandlers","CURRENT_DATE","CalendarConstants","CalendarService","ChannelCategoriesStore","ChannelManagementService","ChannelManagementStore","CommunityRules","CreatePageFormStore","CurrentEventStore","CurrentNavigationStore","CurrentPageStore","DisplayBreakPointFactory","DocumentService","EditingDisplayRules","EmailSettingsKey","EnterprisePropertyInternalNames","EventParticipantListElementName","EventService","GovernanceDashboard","IconRules","ItemQueryHelper","LayoutDataParentPageId","LayoutHelper","LayoutItemsTranslator","LinkPickerProviderMsg","LinkPickerProviders","LinkPickerStore","MaxIntNumber","MediaRollupService","NavigationNodeHelper","NavigationService","NavigationStore","NewsletterService","OmniaSearchPageService","OmniaWCMPageBody","OpenAIPageCreationService","OutlookEvent","PageApprovalConstants","PageBlockPropertyStore","PageFactory","PageHiddenService","PageNavigationNodeHelper","PagePermissionService","PageQueryService","PageRedirectHelper","PageRollupFilterEngineContext","PageRollupIndexedDB","PageRollupListView","PageRollupStore","PageService","PageSocialService","PageStatisticsService","PageStatisticsStore","PageVariationHelper","PageVersion","PagesStore","ParticipantService","ParticipantsFields","PublishingAppDefaultScrollElementClass","PublishingAppInfoStore","PublishingAppUniqueModelName","PublishingChannelCategoriesService","PublishingRuleService","PublishingRuleStore","QueryableProperties","ReusablePageService","SocialService","TargetingStore","ThemingRules","TimeFormat","TopicActivityService","TopicPrefixConstants","Topics","TopicsActivityStore","VariationRules","VariationService","VariationStore","VersionEnterpriseProperties","VersionPropertyBag","VisitedPageKeyPrefix","WCMPageKeyPrefix","WCMPageVersionStateException","WcmContext","WcmRouter","YammerService"]}}}
@@ -1,5 +1,5 @@
1
1
  import { RoleResourceEvaluator } from "@omnia/fx-models";
2
- import { PagesStore } from "../../fx";
2
+ import { PagesStore, VariationStore } from "../../fx";
3
3
  declare class PageCollectionResourceEvaluator implements RoleResourceEvaluator {
4
4
  private pagesStore;
5
5
  constructor(pagesStore: PagesStore);
@@ -21,4 +21,13 @@ declare class PageApprovalResourceEvaluator implements RoleResourceEvaluator {
21
21
  [key: string]: string | number;
22
22
  }): Promise<string>;
23
23
  }
24
- export { PageCollectionResourceEvaluator, SecurityResourceEvaluator, PageApprovalResourceEvaluator };
24
+ declare class VariationSecurityResourceEvaluator implements RoleResourceEvaluator {
25
+ private pagesStore;
26
+ private variationStore;
27
+ constructor(pagesStore: PagesStore, variationStore: VariationStore);
28
+ getRoleResourceWithContext(context: {
29
+ [key: string]: string | number;
30
+ }): Promise<string>;
31
+ private getResourceName;
32
+ }
33
+ export { PageCollectionResourceEvaluator, SecurityResourceEvaluator, PageApprovalResourceEvaluator, VariationSecurityResourceEvaluator };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PageApprovalResourceEvaluator = exports.SecurityResourceEvaluator = exports.PageCollectionResourceEvaluator = void 0;
3
+ exports.VariationSecurityResourceEvaluator = exports.PageApprovalResourceEvaluator = exports.SecurityResourceEvaluator = exports.PageCollectionResourceEvaluator = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const models_1 = require("../../fx/models");
5
6
  class PageCollectionResourceEvaluator {
6
7
  constructor(pagesStore) {
@@ -86,3 +87,32 @@ class PageApprovalResourceEvaluator {
86
87
  }
87
88
  }
88
89
  exports.PageApprovalResourceEvaluator = PageApprovalResourceEvaluator;
90
+ class VariationSecurityResourceEvaluator {
91
+ constructor(pagesStore, variationStore) {
92
+ this.pagesStore = pagesStore;
93
+ this.variationStore = variationStore;
94
+ }
95
+ getRoleResourceWithContext(context) {
96
+ var _a, _b;
97
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
98
+ let variationId = context["variationid"];
99
+ if (!variationId) {
100
+ variationId = (_b = (_a = this.variationStore.getters.getCurrentVariation()) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : 0;
101
+ }
102
+ const pageId = context["pageid"];
103
+ if (pageId) {
104
+ yield this.pagesStore.actions.ensurePages.dispatch([pageId]);
105
+ const page = this.pagesStore.getters.getPage(pageId);
106
+ if (!page) {
107
+ return "";
108
+ }
109
+ return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
110
+ }
111
+ return "";
112
+ });
113
+ }
114
+ getResourceName(resourceId, variationId) {
115
+ return `VariationSecurityResource_${resourceId}_${variationId}`;
116
+ }
117
+ }
118
+ exports.VariationSecurityResourceEvaluator = VariationSecurityResourceEvaluator;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.9.2-preview",
4
+ "version": "7.9.2",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/preciofishbone/OmniaWebContentManagement.git"
11
+ "url": "git+https://github.com/omniaintranet/OmniaWebContentManagement.git"
12
12
  },
13
13
  "keywords": [
14
14
  "omnia",
@@ -17,12 +17,12 @@
17
17
  "office365",
18
18
  "sharepoint"
19
19
  ],
20
- "author": "Precio Fishbone",
20
+ "author": "Omnia Digital Workplace AB",
21
21
  "dependencies": {
22
22
  },
23
23
  "typings": "./index.d.ts",
24
24
  "bugs": {
25
- "url": "https://github.com/preciofishbone/OmniaWebContentManagement/issues"
25
+ "url": "https://github.com/omniaintranet/OmniaWebContentManagement/issues"
26
26
  },
27
- "homepage": "https://github.com/preciofishbone/OmniaWebContentManagement#readme"
27
+ "homepage": "https://github.com/omniaintranet/OmniaWebContentManagement#readme"
28
28
  }
@@ -1,5 +0,0 @@
1
- export declare enum PageBulkUpdateStatus {
2
- Success = 1,
3
- Updating = 2,
4
- Failed = 3
5
- }