@omnia/wcm 7.9.2-preview → 7.9.4-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internal-do-not-import-from-here/fx/internal/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/fx/models/Enums.d.ts +4 -2
- package/internal-do-not-import-from-here/fx/models/Enums.js +2 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +5 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.js +6 -1
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/pagecreation/PageCreationActionSetting.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +29 -0
- package/internal-do-not-import-from-here/fx/models/pages/VersionInformation.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/services/PageService.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/services/PageSocialService.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/services/SocialService.d.ts +31 -0
- package/internal-do-not-import-from-here/fx/services/index.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/CreatePageFormStore.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.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/models/security/Security.d.ts +11 -2
- package/internal-do-not-import-from-here/models/security/Security.js +28 -1
- package/package.json +1 -1
- package/internal-do-not-import-from-here/fx/internal/models/PageBulkUpdate.d.ts +0 -5
|
@@ -3,14 +3,16 @@ export declare enum Parameters {
|
|
|
3
3
|
SecurityResourceId = "SecurityResourceId",
|
|
4
4
|
PageCollectionId = "PageCollectionId",
|
|
5
5
|
ChannelId = "ChannelResourceId",
|
|
6
|
-
ExtensionId = "ExtensionId"
|
|
6
|
+
ExtensionId = "ExtensionId",
|
|
7
|
+
VariationId = "VariationId"
|
|
7
8
|
}
|
|
8
9
|
export declare enum ResourceEvaluators {
|
|
9
10
|
SecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.ISecurityResourceEvaluator",
|
|
10
11
|
PageCollection = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageCollectionResourceEvaluator",
|
|
11
12
|
ChannelSecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IChannelSecurityResourceEvaluator",
|
|
12
13
|
ExtensionResource = "Omnia.Fx.Extensions.Security.IExtensionInstanceResourceEvaluator",
|
|
13
|
-
PageApprovalResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator"
|
|
14
|
+
PageApprovalResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator",
|
|
15
|
+
VariationSecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IVariationSecurityResourceEvaluator"
|
|
14
16
|
}
|
|
15
17
|
export declare enum RoleDefinitions {
|
|
16
18
|
Editor = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1",
|
|
@@ -8,6 +8,7 @@ var Parameters;
|
|
|
8
8
|
Parameters["PageCollectionId"] = "PageCollectionId";
|
|
9
9
|
Parameters["ChannelId"] = "ChannelResourceId";
|
|
10
10
|
Parameters["ExtensionId"] = "ExtensionId";
|
|
11
|
+
Parameters["VariationId"] = "VariationId";
|
|
11
12
|
})(Parameters = exports.Parameters || (exports.Parameters = {}));
|
|
12
13
|
var ResourceEvaluators;
|
|
13
14
|
(function (ResourceEvaluators) {
|
|
@@ -16,6 +17,7 @@ var ResourceEvaluators;
|
|
|
16
17
|
ResourceEvaluators["ChannelSecurityResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IChannelSecurityResourceEvaluator";
|
|
17
18
|
ResourceEvaluators["ExtensionResource"] = "Omnia.Fx.Extensions.Security.IExtensionInstanceResourceEvaluator";
|
|
18
19
|
ResourceEvaluators["PageApprovalResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator";
|
|
20
|
+
ResourceEvaluators["VariationSecurityResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IVariationSecurityResourceEvaluator";
|
|
19
21
|
})(ResourceEvaluators = exports.ResourceEvaluators || (exports.ResourceEvaluators = {}));
|
|
20
22
|
var RoleDefinitions;
|
|
21
23
|
(function (RoleDefinitions) {
|
|
@@ -33,6 +33,7 @@ export interface ContentBlockSettings extends BlockSettingsWithDefaultProperty<s
|
|
|
33
33
|
blockTitle: MultilingualString;
|
|
34
34
|
defaultTextColor?: string;
|
|
35
35
|
enableMachineTranslation?: boolean;
|
|
36
|
+
versionComparisonType?: VersionComparisonType;
|
|
36
37
|
useAsMainHeading?: boolean;
|
|
37
38
|
breakPointSettings?: {
|
|
38
39
|
[breakPointId: string]: ContentBlockBreakPointSettings;
|
|
@@ -45,3 +46,7 @@ export interface ContentBlockSettings extends BlockSettingsWithDefaultProperty<s
|
|
|
45
46
|
export interface ContentBlockAutomaticSummaryRegistration {
|
|
46
47
|
propertyMapping: PropertyMapping;
|
|
47
48
|
}
|
|
49
|
+
export declare enum VersionComparisonType {
|
|
50
|
+
CompareWithDefaultVariation = 1,
|
|
51
|
+
CompareWithCurrentVariation = 2
|
|
52
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildInContentBlockTextStyleFormatting = exports.ContentBlockModes = void 0;
|
|
3
|
+
exports.VersionComparisonType = exports.BuildInContentBlockTextStyleFormatting = exports.ContentBlockModes = void 0;
|
|
4
4
|
var ContentBlockModes;
|
|
5
5
|
(function (ContentBlockModes) {
|
|
6
6
|
ContentBlockModes[ContentBlockModes["RichText"] = 1] = "RichText";
|
|
@@ -22,3 +22,8 @@ var BuildInContentBlockTextStyleFormatting;
|
|
|
22
22
|
BuildInContentBlockTextStyleFormatting["Heading6"] = "f0b42e88-47e3-4b69-8d11-393683214810";
|
|
23
23
|
BuildInContentBlockTextStyleFormatting["Custom"] = "00000000-0000-0000-0000-000000000000";
|
|
24
24
|
})(BuildInContentBlockTextStyleFormatting = exports.BuildInContentBlockTextStyleFormatting || (exports.BuildInContentBlockTextStyleFormatting = {}));
|
|
25
|
+
var VersionComparisonType;
|
|
26
|
+
(function (VersionComparisonType) {
|
|
27
|
+
VersionComparisonType[VersionComparisonType["CompareWithDefaultVariation"] = 1] = "CompareWithDefaultVariation";
|
|
28
|
+
VersionComparisonType[VersionComparisonType["CompareWithCurrentVariation"] = 2] = "CompareWithCurrentVariation";
|
|
29
|
+
})(VersionComparisonType = exports.VersionComparisonType || (exports.VersionComparisonType = {}));
|
package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { SpacingSettings } from "@omnia/fx-models";
|
|
|
3
3
|
import { ITheming } from "@omnia/fx/ux";
|
|
4
4
|
import { PagePropertiesBlockSettings } from ".";
|
|
5
5
|
export declare const PagePropertiesBlockAdvancedStyles: {
|
|
6
|
-
propertyWrapper?: types.NestedCSSProperties;
|
|
7
|
-
propertyContentWrapper?: (settings: PagePropertiesBlockSettings) => types.NestedCSSProperties;
|
|
6
|
+
propertyWrapper?: (isFlexBox: boolean) => types.NestedCSSProperties;
|
|
7
|
+
propertyContentWrapper?: (settings: PagePropertiesBlockSettings, isFlexBox: boolean) => types.NestedCSSProperties;
|
|
8
8
|
icon?: types.NestedCSSProperties;
|
|
9
9
|
propertyLabelWrapper?: (fullWidth: boolean, textColor: string) => types.NestedCSSProperties;
|
|
10
10
|
propertyLabel?: (fullWidth: boolean) => types.NestedCSSProperties;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings, AnalyticsSettings } from "@omnia/fx-models";
|
|
2
2
|
import { RichTextEditorExtension } from "@omnia/fx/ux/richtexteditor";
|
|
3
3
|
import { SharepointSyncPageSettings } from "../../../sp";
|
|
4
|
+
import { PageId } from "./Page";
|
|
4
5
|
import { PageData } from "./PageData";
|
|
5
6
|
/**
|
|
6
7
|
* We should update to use nheritance interfaces pattern
|
|
@@ -39,6 +40,7 @@ export interface PageTypeData extends PageData {
|
|
|
39
40
|
sharepointSyncPageSettings?: SharepointSyncPageSettings;
|
|
40
41
|
automaticArchiveSettings: AutomaticArchiveSettings;
|
|
41
42
|
analyticsSettings?: AnalyticsSettings;
|
|
43
|
+
pageReviewWorkflows?: PageReviewWorkflow[];
|
|
42
44
|
}
|
|
43
45
|
export interface PageTypeProperty extends EnterprisePropertyDefinition {
|
|
44
46
|
info: PageTypePropertyInfo;
|
|
@@ -49,3 +51,30 @@ export interface ContentPropertyWithInfo extends EnterprisePropertyDefinition {
|
|
|
49
51
|
export interface AutomaticArchiveSettings {
|
|
50
52
|
property: string;
|
|
51
53
|
}
|
|
54
|
+
export interface PageReviewWorkflow {
|
|
55
|
+
title: MultilingualString;
|
|
56
|
+
dateProperty: string;
|
|
57
|
+
messageBarSettings: MessageBarSettings;
|
|
58
|
+
emailSettings: SendEmailSettings;
|
|
59
|
+
suspendedSettings: SuspendedSettings;
|
|
60
|
+
}
|
|
61
|
+
export interface MessageBarSettings {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
title: MultilingualString;
|
|
64
|
+
body: MultilingualString;
|
|
65
|
+
}
|
|
66
|
+
export interface SendEmailSettings {
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
subject: MultilingualString;
|
|
69
|
+
body: MultilingualString;
|
|
70
|
+
recipientProperties: string[];
|
|
71
|
+
}
|
|
72
|
+
export interface ChangePageTypeSettings {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
pageTypeId: PageId;
|
|
75
|
+
}
|
|
76
|
+
export interface SuspendedSettings {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
changePageType: ChangePageTypeSettings;
|
|
79
|
+
removeFromSearchEnabled: boolean;
|
|
80
|
+
}
|
|
@@ -10,3 +10,9 @@ export interface VersionInformation extends AuditingInformation {
|
|
|
10
10
|
minorVersion: number;
|
|
11
11
|
checkedOutBy: Identity;
|
|
12
12
|
}
|
|
13
|
+
export type PageEnterprisePropertyDictionary = {
|
|
14
|
+
[internalName: string]: any;
|
|
15
|
+
};
|
|
16
|
+
export interface VersionInformationDetail extends VersionInformation {
|
|
17
|
+
enterpriseProperties: PageEnterprisePropertyDictionary;
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -85,6 +85,7 @@ export declare class PageService {
|
|
|
85
85
|
mergeVersionWithParentLayoutLayouts: (versionRef: VersionReference, layoutLatestPublishedVersionId?: number) => Promise<MergedPageVersionLayout>;
|
|
86
86
|
checkSharepointPageExist: (spPageId: number) => Promise<boolean>;
|
|
87
87
|
getVersionInformation: (pageId: PageId, publishingAppId?: string) => Promise<Array<VersionInformation>>;
|
|
88
|
+
getVersionsDetails: (pageId: PageId, versionIds: Array<number>, publishingAppId?: string) => Promise<Array<VersionInformationDetail>>;
|
|
88
89
|
revert: <T extends PageData>(versiontoRevert: VersionedPageData<T>) => Promise<VersionedPageData<T>>;
|
|
89
90
|
getPageCollectionSelection: (fromPublishingAppId: string, fromPageCollectionIds?: Array<string>) => Promise<ApiResponse<PageCollectionSelection[]>>;
|
|
90
91
|
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
|
+
}
|
|
@@ -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";
|
|
@@ -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 +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","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","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","
|
|
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"]},"./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
|
-
|
|
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,29 @@ 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;
|
|
97
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
let variationId = context["variationid"];
|
|
99
|
+
if (!variationId) {
|
|
100
|
+
variationId = (_a = this.variationStore.getters.getCurrentVariation()) === null || _a === void 0 ? void 0 : _a.id;
|
|
101
|
+
}
|
|
102
|
+
const pageId = context["pageid"];
|
|
103
|
+
if (variationId && pageId) {
|
|
104
|
+
yield this.pagesStore.actions.ensurePages.dispatch([pageId]);
|
|
105
|
+
const page = this.pagesStore.getters.getPage(pageId);
|
|
106
|
+
return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
|
|
107
|
+
}
|
|
108
|
+
return "";
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
getResourceName(resourceId, variationId) {
|
|
112
|
+
return `VariationSecurityResource_${resourceId}_${variationId}`;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.VariationSecurityResourceEvaluator = VariationSecurityResourceEvaluator;
|
package/package.json
CHANGED