@omnia/wcm 7.9.9-preview → 7.9.9

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 (39) 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 +30 -2
  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 +27 -2
  8. package/internal-do-not-import-from-here/fx/constants.d.ts +1 -0
  9. package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +1 -0
  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 +6 -0
  13. package/internal-do-not-import-from-here/fx/models/Enums.js +8 -1
  14. package/internal-do-not-import-from-here/fx/models/components/CalendarRollupBlockStyles.d.ts +1 -0
  15. package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +1 -0
  16. package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -0
  17. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +1 -0
  18. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +1 -0
  19. package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +2 -1
  20. package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +25 -6
  21. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +21 -0
  22. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +27 -0
  23. package/internal-do-not-import-from-here/fx/models/query/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/fx/models/query/index.js +1 -0
  25. package/internal-do-not-import-from-here/fx/models/variations/Variation.d.ts +10 -0
  26. package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +7 -4
  27. package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +1 -1
  28. package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +1 -1
  29. package/internal-do-not-import-from-here/fx/services/PageQueryService.d.ts +0 -2
  30. package/internal-do-not-import-from-here/fx/services/PageService.d.ts +1 -2
  31. package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +9 -4
  32. package/internal-do-not-import-from-here/fx/shared/PickedPageHelper.d.ts +10 -0
  33. package/internal-do-not-import-from-here/fx/shared/index.d.ts +1 -0
  34. package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +8 -2
  35. package/internal-do-not-import-from-here/fx/stores/VariationStore.d.ts +1 -0
  36. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
  37. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
  38. package/internal-do-not-import-from-here/models/security/Security.js +6 -3
  39. package/package.json +6 -7
package/README.md CHANGED
@@ -8,4 +8,4 @@ Omnia Web Content Management is a product from Precio Fishbone. In order to use
8
8
  * Omnia QMS
9
9
 
10
10
  ### Documentation
11
- https://github.com/preciofishbone/Omnia-Foundation-Docs
11
+ https://github.com/omniaintranet/Omnia-Foundation-Docs
@@ -1,4 +1,4 @@
1
- import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId } from "@omnia/wcm/models";
1
+ import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode } from "@omnia/wcm/models";
2
2
  import { LayoutItem } from "@omnia/fx-models";
3
3
  export declare namespace Utils {
4
4
  function isSupportedByOfficeWebApp(documentUrl: string): boolean;
@@ -47,6 +47,7 @@ export declare module MultilingualUtils {
47
47
  export declare module NavigationUtils {
48
48
  function sortNodesByCreated<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
49
49
  function sortNodesByTitle<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
50
+ function findPageInNode(node: PageNavigationNode<PageNavigationData>, pageId: PageId): any;
50
51
  }
51
52
  export declare namespace VariationUtils {
52
53
  function getValueByVariationId(variationString: VariationString, id: VariationId, defaultVariation?: Variation): string;
@@ -70,6 +71,7 @@ export declare module WCMMigrationUtils {
70
71
  }
71
72
  export declare module PageUtils {
72
73
  function filterUnavailablePages(pages: Page[]): Page[];
74
+ function ensureVariationIdInPageDetail(pages: PageDetailQueryResult[]): PageDetailQueryResult[];
73
75
  }
74
76
  export declare module WCMGovernanceUtils {
75
77
  function getMonthName(language: string, date: Date): string;
@@ -21,7 +21,7 @@ export declare module CommunityLocalization {
21
21
  DuplicatedTitleErrorMessage: string;
22
22
  Rollup: {
23
23
  Title: string;
24
- Description: string;
24
+ Summary: string;
25
25
  };
26
26
  }
27
27
  }
@@ -22,35 +22,35 @@ export declare module WCMCoreLocalization {
22
22
  Blocks: {
23
23
  Banner: {
24
24
  Title: string;
25
- Description: string;
25
+ Summary: string;
26
26
  };
27
27
  Text: {
28
28
  Title: string;
29
- Description: string;
29
+ Summary: string;
30
30
  };
31
31
  HtmlScript: {
32
32
  Title: string;
33
- Description: string;
33
+ Summary: string;
34
34
  };
35
35
  Media: {
36
36
  Title: string;
37
- Description: string;
37
+ Summary: string;
38
38
  };
39
39
  PageProperties: {
40
40
  Title: string;
41
- Description: string;
41
+ Summary: string;
42
42
  };
43
43
  RelatedLinks: {
44
44
  Title: string;
45
- Description: string;
45
+ Summary: string;
46
46
  };
47
47
  Breadcrumb: {
48
48
  Title: string;
49
- Description: string;
49
+ Summary: string;
50
50
  };
51
51
  ActionButton: {
52
52
  Title: string;
53
- Description: string;
53
+ Summary: string;
54
54
  };
55
55
  ButtonLink: {
56
56
  Title: string;
@@ -58,19 +58,19 @@ export declare module WCMCoreLocalization {
58
58
  };
59
59
  CommentLike: {
60
60
  Title: string;
61
- Description: string;
61
+ Summary: string;
62
62
  };
63
63
  PageRollup: {
64
64
  Title: string;
65
- Description: string;
65
+ Summary: string;
66
66
  };
67
67
  CurrentNavigation: {
68
68
  Title: string;
69
- Description: string;
69
+ Summary: string;
70
70
  };
71
71
  MegaMenu: {
72
72
  Title: string;
73
- Description: string;
73
+ Summary: string;
74
74
  };
75
75
  SubscribePage: {
76
76
  Title: string;
@@ -78,7 +78,7 @@ export declare module WCMCoreLocalization {
78
78
  };
79
79
  RatePage: {
80
80
  Title: string;
81
- Description: string;
81
+ Summary: string;
82
82
  };
83
83
  MySubscriptions: {
84
84
  Title: string;
@@ -90,35 +90,35 @@ export declare module WCMCoreLocalization {
90
90
  };
91
91
  CalendarRollup: {
92
92
  Title: string;
93
- Description: string;
93
+ Summary: string;
94
94
  };
95
95
  VariationSelector: {
96
96
  Title: string;
97
- Description: string;
97
+ Summary: string;
98
98
  };
99
99
  RSSReader: {
100
100
  Title: string;
101
- Description: string;
101
+ Summary: string;
102
102
  };
103
103
  ActivityFeed: {
104
104
  Title: string;
105
- Description: string;
105
+ Summary: string;
106
106
  };
107
107
  PageFeedback: {
108
108
  Title: string;
109
- Description: string;
109
+ Summary: string;
110
110
  };
111
111
  Iframe: {
112
112
  Title: string;
113
- Description: string;
113
+ BlockSummary: string;
114
114
  };
115
115
  ChannelRollup: {
116
116
  Title: string;
117
- Description: string;
117
+ Summary: string;
118
118
  };
119
119
  PageNavigation: {
120
120
  Title: string;
121
- Description: string;
121
+ Summary: string;
122
122
  };
123
123
  };
124
124
  BlockSettings: {
@@ -131,6 +131,7 @@ export declare module EditorLocalization {
131
131
  ArchivedAt: string;
132
132
  Comment: string;
133
133
  CreateCopy: string;
134
+ CreateCopyTooltip: string;
134
135
  Terminate: string;
135
136
  TerminateConfirmationMessage: string;
136
137
  RestoreConfirmationMessage: string;
@@ -505,6 +506,7 @@ export declare module EditorLocalization {
505
506
  RuleNotFound: string;
506
507
  MissingDefaultVariationPage: string;
507
508
  NotHavePermission: string;
509
+ PageHasBeenDeleted: string;
508
510
  };
509
511
  };
510
512
  ReusableContent: {
@@ -738,6 +740,7 @@ export declare module EditorLocalization {
738
740
  DuplicateWarningMessage: string;
739
741
  MoveAsChild: string;
740
742
  MoveAsSibling: string;
743
+ DuplicateWarningMessageWhenMovingAsSibling: string;
741
744
  };
742
745
  SendAppprovalRequest: {
743
746
  Title: string;
@@ -878,13 +881,15 @@ export declare module EditorLocalization {
878
881
  Cancel: string;
879
882
  Approval: string;
880
883
  };
881
- PageReviewWorkflow: {
884
+ PageReviewRule: {
882
885
  Title: string;
883
886
  RuleName: string;
884
887
  DateProperty: string;
885
888
  MessageBarEnabled: string;
886
889
  MessageBarTitle: string;
887
890
  MessageBarBody: string;
891
+ MessageBarBackgroundColor: string;
892
+ MessageBarTextColor: string;
888
893
  EmailEnabled: string;
889
894
  EmailSubject: string;
890
895
  EmailBody: string;
@@ -896,11 +901,34 @@ export declare module EditorLocalization {
896
901
  Save: string;
897
902
  Add: string;
898
903
  Cancel: string;
904
+ TestEmailDialog: {
905
+ Title: string;
906
+ Instruction: string;
907
+ InfoText: string;
908
+ Buttons: {
909
+ SendEmail: string;
910
+ };
911
+ NoPagesFoundMessage: string;
912
+ };
913
+ EditRuleBtn: string;
914
+ DeleteRuleBtn: string;
915
+ TestEmailBtn: string;
916
+ Placeholders: {
917
+ Title: string;
918
+ PlaceholderContent: string;
919
+ Property: string;
920
+ };
921
+ EmailTemplate: string;
899
922
  };
900
- RemovePageReviewWorkflowRuleSettings: {
923
+ RemovePageReviewRuleSettings: {
901
924
  Title: string;
902
925
  ConfirmationMessage: string;
903
926
  };
927
+ PageReviewValidationFailed: {
928
+ Title: string;
929
+ Message: string;
930
+ Close: string;
931
+ };
904
932
  };
905
933
  Tabs: {
906
934
  Gamification: string;
@@ -133,6 +133,7 @@ export declare module PageRollupLocalization {
133
133
  DialogWidth: string;
134
134
  DialogHeight: string;
135
135
  CheckedOutBy: string;
136
+ Suspended: string;
136
137
  SelectedUser: string;
137
138
  UserProperty: string;
138
139
  DateTimeMode: {
@@ -264,6 +264,22 @@ export declare module PublishingAppLocalization {
264
264
  VariationAuthor: string;
265
265
  Content: string;
266
266
  };
267
+ VariationNotification: {
268
+ VariationAuthor: {
269
+ NewPage: {
270
+ Subject: string;
271
+ Content: string;
272
+ };
273
+ NewVersion: {
274
+ Subject: string;
275
+ Content: string;
276
+ };
277
+ };
278
+ PageProperty: {
279
+ Subject: string;
280
+ Template: string;
281
+ };
282
+ };
267
283
  InvitationOfCoAuthors: {
268
284
  Subject: string;
269
285
  Body: string;
@@ -305,7 +321,7 @@ export declare module PublishingAppLocalization {
305
321
  UrlSegmentIsNotFriendly: string;
306
322
  DuplicateFilterError: string;
307
323
  Author: string;
308
- VariationAutor: string;
324
+ VariationAuthors: string;
309
325
  NoLanguageSelectedError: string;
310
326
  AutomaticMachineTranslation: string;
311
327
  ActiveRightToLeft: string;
@@ -314,6 +330,15 @@ export declare module PublishingAppLocalization {
314
330
  Title: string;
315
331
  Message: string;
316
332
  };
333
+ EnableEditNotifications: string;
334
+ NotifyForEdit: {
335
+ SectionLabel: string;
336
+ NoteTitle: string;
337
+ Note: string;
338
+ VariationAuthor: string;
339
+ PagePropertyUsers: string;
340
+ UserPropertyPickerLabel: string;
341
+ };
317
342
  };
318
343
  StatisticProvider: {
319
344
  SiteScript: string;
@@ -366,7 +391,7 @@ export declare module PublishingAppLocalization {
366
391
  PageUsingAutomaticTranslationMessage: string;
367
392
  PublishingAppRollup: {
368
393
  Title: string;
369
- Description: string;
394
+ Summary: string;
370
395
  };
371
396
  AutomaticArchive: {
372
397
  EnableAutomaticArchive: string;
@@ -78,6 +78,7 @@ export declare const ParticipantsFields: {
78
78
  actions: string;
79
79
  };
80
80
  export declare const TimeFormat = "HH:mm";
81
+ export declare const TimeFormat12Hours = "hh:mm A";
81
82
  export declare const OutlookEvent: {
82
83
  new (): {};
83
84
  Attendee: {
@@ -4,6 +4,7 @@ export declare module ItemQueryHelper {
4
4
  const PageId = "PId";
5
5
  const ConditionExpressionFilter = "ConditionExpressionFilter";
6
6
  const VariationId = "VariationId";
7
+ const VariationOfPageId = "VariationOfPageId";
7
8
  function generateExcludePageId(logicalOperator: FilterLogicalOperator, pageId: PageId, filters?: Array<QueryFilter>): QueryFilter;
8
9
  function generateFalseFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
9
10
  function generateTrueFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
@@ -143,6 +143,7 @@ export declare const PageBuiltInColumnConstants: {
143
143
  workflowStatus: string;
144
144
  checkedOutBy: string;
145
145
  pageCollectionId: string;
146
+ suspended: string;
146
147
  };
147
148
  export declare const PageRollupFilterEngineContextPropertyTypes: {
148
149
  publishingApp: Guid;
@@ -181,4 +182,5 @@ export declare const OmniaSearchConstants: {
181
182
  readonly isDefaultPageVariation: string;
182
183
  readonly hiddenByPageId: string;
183
184
  readonly deletedAt: string;
185
+ readonly suspended: string;
184
186
  };
@@ -233,7 +233,8 @@ exports.PageBuiltInColumnConstants = {
233
233
  publishingAppId: "PublishingAppId",
234
234
  workflowStatus: "WorkflowStatus",
235
235
  checkedOutBy: "CheckedOutBy",
236
- pageCollectionId: "PageCollectionId"
236
+ pageCollectionId: "PageCollectionId",
237
+ suspended: "Suspended"
237
238
  };
238
239
  exports.PageRollupFilterEngineContextPropertyTypes = {
239
240
  publishingApp: new fx_models_1.Guid("754a1a89-c360-40f2-9bb5-4a1adee17a11"),
@@ -331,5 +332,8 @@ exports.OmniaSearchConstants = {
331
332
  },
332
333
  get deletedAt() {
333
334
  return "deletedAt";
335
+ },
336
+ get suspended() {
337
+ return "suspended";
334
338
  }
335
339
  };
@@ -1,3 +1,4 @@
1
+ import { RoleDefinitions as OmniaRoleDefinitions } from "@omnia/fx-models";
1
2
  export declare enum Parameters {
2
3
  PageId = "PageId",
3
4
  SecurityResourceId = "SecurityResourceId",
@@ -85,3 +86,8 @@ export declare enum WcmAppDefaultResourceUrl {
85
86
  YammerGroup = 0,
86
87
  SharePoint = 1
87
88
  }
89
+ export declare class GetRoleDefinitions {
90
+ static get AdminRoleDefinitions(): (RoleDefinitions | OmniaRoleDefinitions)[];
91
+ static get EditorRoleDefinitions(): RoleDefinitions[];
92
+ static get AuthorRoleDefinitions(): RoleDefinitions[];
93
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WcmAppDefaultResourceUrl = exports.StatisticsPerPageDataSourcesEnum = exports.SortByProperties = exports.ReportTypesEnum = exports.VideoType = exports.PagingTypes = exports.DocumentTypes = exports.VersionUpdationMode = exports.WcmPropertyDefaultBooleanValues = exports.WcmPropertyDefaultValues = exports.RoleDefinitions = exports.ResourceEvaluators = exports.Parameters = void 0;
3
+ exports.GetRoleDefinitions = exports.WcmAppDefaultResourceUrl = exports.StatisticsPerPageDataSourcesEnum = exports.SortByProperties = exports.ReportTypesEnum = exports.VideoType = exports.PagingTypes = exports.DocumentTypes = exports.VersionUpdationMode = exports.WcmPropertyDefaultBooleanValues = exports.WcmPropertyDefaultValues = exports.RoleDefinitions = exports.ResourceEvaluators = exports.Parameters = void 0;
4
+ const fx_models_1 = require("@omnia/fx-models");
4
5
  var Parameters;
5
6
  (function (Parameters) {
6
7
  Parameters["PageId"] = "PageId";
@@ -102,3 +103,9 @@ var WcmAppDefaultResourceUrl;
102
103
  WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["YammerGroup"] = 0] = "YammerGroup";
103
104
  WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["SharePoint"] = 1] = "SharePoint";
104
105
  })(WcmAppDefaultResourceUrl = exports.WcmAppDefaultResourceUrl || (exports.WcmAppDefaultResourceUrl = {}));
106
+ class GetRoleDefinitions {
107
+ static get AdminRoleDefinitions() { return [fx_models_1.RoleDefinitions.AppInstanceAdmin, RoleDefinitions.PageCollectionAdmin]; }
108
+ static get EditorRoleDefinitions() { return [RoleDefinitions.Editor, RoleDefinitions.VariationEditor]; }
109
+ static get AuthorRoleDefinitions() { return [RoleDefinitions.Author, RoleDefinitions.VariationAuthor, RoleDefinitions.Approver]; }
110
+ }
111
+ exports.GetRoleDefinitions = GetRoleDefinitions;
@@ -18,6 +18,7 @@ export declare const CalendarRollupBlockListViewSettingsStyles: {
18
18
  dateContent: types.NestedCSSProperties;
19
19
  setGroupItemBorder: (color: string) => types.NestedCSSProperties;
20
20
  textColor?: types.NestedCSSProperties;
21
+ detailContent?: types.NestedCSSProperties;
21
22
  };
22
23
  export declare const CalendarRollupBlockSettingsStyles: {
23
24
  calenderRemoveButtonPositioner: types.NestedCSSProperties;
@@ -20,6 +20,7 @@ export interface PageItemNode {
20
20
  publishingAppId: string;
21
21
  displayTitle?: string;
22
22
  nodeId?: number;
23
+ selectedVariationId?: number;
23
24
  }
24
25
  export interface PageLinkItem extends LinkItem, PageItemNode, AnchorLinkItem {
25
26
  }
@@ -27,4 +27,6 @@ export declare const PagePropertiesBlockStyles: {
27
27
  horizontalHeaderAlignNoAvatarInLine?: types.NestedCSSProperties;
28
28
  horizontalTaxonomyNoAvatarInOnePersonField?: types.NestedCSSProperties;
29
29
  horizontalTaxonomyNoAvatarInLine?: types.NestedCSSProperties;
30
+ horizontalRichText?: types.NestedCSSProperties;
31
+ horizontaProcess?: types.NestedCSSProperties;
30
32
  };
@@ -1,5 +1,6 @@
1
1
  export declare module PageRollupEnums {
2
2
  enum DatePeriods {
3
+ NoLimit = 0,
3
4
  OneWeekFromToday = 1,
4
5
  TwoWeeksFromToday = 2,
5
6
  OneMonthFromToday = 3,
@@ -5,6 +5,7 @@ var PageRollupEnums;
5
5
  (function (PageRollupEnums) {
6
6
  let DatePeriods;
7
7
  (function (DatePeriods) {
8
+ DatePeriods[DatePeriods["NoLimit"] = 0] = "NoLimit";
8
9
  DatePeriods[DatePeriods["OneWeekFromToday"] = 1] = "OneWeekFromToday";
9
10
  DatePeriods[DatePeriods["TwoWeeksFromToday"] = 2] = "TwoWeeksFromToday";
10
11
  DatePeriods[DatePeriods["OneMonthFromToday"] = 3] = "OneMonthFromToday";
@@ -1,4 +1,4 @@
1
- import { EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier, MultilingualString, TimePeriodSettings } from "@omnia/fx-models";
1
+ import { DateOperator, EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier, MultilingualString, TimePeriodSettings } from "@omnia/fx-models";
2
2
  import { PageId } from ".";
3
3
  import { ChildStructureType } from "..";
4
4
  import { QueryFilter } from "../query";
@@ -120,5 +120,6 @@ export interface OverriddenProperty {
120
120
  defaultValue?: any;
121
121
  calculatedFromProperty?: string;
122
122
  timePeriodSettingsForDefaultValue?: TimePeriodSettings;
123
+ dateOperatorForDefaultValue?: DateOperator;
123
124
  readonly?: boolean;
124
125
  }
@@ -1,6 +1,7 @@
1
- import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings, AnalyticsSettings } from "@omnia/fx-models";
1
+ import { AnalyticsSettings, EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, IconPickerModel, Identity, MultilingualString, TimePeriodSettings, DateOperator, UserIdentity } 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
@@ -17,6 +18,7 @@ export interface PageTypePropertyInfo extends EnterprisePropertyItemSettings {
17
18
  defaultValue?: any;
18
19
  calculatedFromProperty: string;
19
20
  timePeriodSettingsForDefaultValue?: TimePeriodSettings;
21
+ dateOperatorForDefaultValue?: DateOperator;
20
22
  readonly?: boolean;
21
23
  category: string;
22
24
  receiveEmail?: boolean;
@@ -39,7 +41,7 @@ export interface PageTypeData extends PageData {
39
41
  sharepointSyncPageSettings?: SharepointSyncPageSettings;
40
42
  automaticArchiveSettings: AutomaticArchiveSettings;
41
43
  analyticsSettings?: AnalyticsSettings;
42
- pageReviewWorkflowRules?: number[];
44
+ pageReviewRules?: number[];
43
45
  }
44
46
  export interface PageTypeProperty extends EnterprisePropertyDefinition {
45
47
  info: PageTypePropertyInfo;
@@ -51,12 +53,13 @@ export interface AutomaticArchiveSettings {
51
53
  property: string;
52
54
  }
53
55
  export interface MessageBarSettings {
54
- enabled: boolean;
55
56
  title: MultilingualString;
56
57
  body: MultilingualString;
58
+ icon: IconPickerModel;
59
+ backgroundColor: string;
60
+ textColor: string;
57
61
  }
58
62
  export interface SendEmailSettings {
59
- enabled: boolean;
60
63
  subject: MultilingualString;
61
64
  body: MultilingualString;
62
65
  recipientProperties: string[];
@@ -66,17 +69,33 @@ export interface ChangePageTypeSettings {
66
69
  pageTypeId: number;
67
70
  }
68
71
  export interface SuspendedSettings {
69
- enabled: boolean;
70
72
  changePageType: ChangePageTypeSettings;
71
73
  removeFromSearchEnabled: boolean;
72
74
  }
73
- export interface PageReviewWorkflowRule {
75
+ export interface PageReviewRuleVersion {
74
76
  id: number;
77
+ ruleId: GuidValue;
75
78
  pageId: number;
76
79
  originalPageVersionId: number;
77
80
  title: MultilingualString;
78
81
  dateProperty: string;
82
+ messageBarEnabled: boolean;
79
83
  messageBarSettings: MessageBarSettings;
84
+ emailEnabled: boolean;
80
85
  emailSettings: SendEmailSettings;
86
+ suspendEnabled: boolean;
81
87
  suspendedSettings: SuspendedSettings;
82
88
  }
89
+ export interface PageReviewRuleEvaluationResult {
90
+ pageReviewRule: PageReviewRuleVersion;
91
+ reviewDate: Date;
92
+ showMessageBar: boolean;
93
+ isSuspended: boolean;
94
+ sendEmail: boolean;
95
+ }
96
+ export interface PageReviewRuleTestMailTemplateRequest {
97
+ ruleVersionId: number;
98
+ pageTypeId: number;
99
+ identities: UserIdentity[];
100
+ pageIds: PageId[];
101
+ }
@@ -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,7 +22,7 @@ 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): void;
25
+ navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, openEditor?: boolean): void;
26
26
  private buildRelativePath;
27
27
  private getTargetingVariation;
28
28
  onDisposing(): void;
@@ -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
  }
@@ -4,7 +4,6 @@ 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>>;
@@ -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";
@@ -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
@@ -139,6 +139,11 @@ export declare class CurrentPageStore extends Store {
139
139
  }, targetPublishingAppId?: string) => void, (failureReason: any, targetPublishingAppId?: string) => void, (targetPublishingAppId?: string) => Promise<{
140
140
  publishedVersionId: VersionId;
141
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
+ }>>;
142
147
  reloadPublishedVersion: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: {
143
148
  publishedVersionId: VersionId;
144
149
  }) => void, (failureReason: any) => void, () => Promise<{
@@ -155,6 +160,7 @@ export declare class CurrentPageStore extends Store {
155
160
  private isCurrentVersion;
156
161
  private createVersionRefForVersion;
157
162
  private getPageFromStore;
163
+ private checkPermission;
158
164
  private getPageVersionByRules;
159
165
  private ensureCalculatedProperties;
160
166
  private resetState;
@@ -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","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
+ {"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","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
+ {"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","TimeFormat12Hours","TopicActivityService","TopicPrefixConstants","Topics","TopicsActivityStore","VariationRules","VariationService","VariationStore","VersionEnterpriseProperties","VersionPropertyBag","VisitedPageKeyPrefix","WCMPageKeyPrefix","WCMPageVersionStateException","WcmContext","WcmRouter","YammerService"]}}}
@@ -93,16 +93,19 @@ class VariationSecurityResourceEvaluator {
93
93
  this.variationStore = variationStore;
94
94
  }
95
95
  getRoleResourceWithContext(context) {
96
- var _a;
96
+ var _a, _b;
97
97
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
98
98
  let variationId = context["variationid"];
99
99
  if (!variationId) {
100
- variationId = (_a = this.variationStore.getters.getCurrentVariation()) === null || _a === void 0 ? void 0 : _a.id;
100
+ variationId = (_b = (_a = this.variationStore.getters.getCurrentVariation()) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : 0;
101
101
  }
102
102
  const pageId = context["pageid"];
103
- if (variationId && pageId) {
103
+ if (pageId) {
104
104
  yield this.pagesStore.actions.ensurePages.dispatch([pageId]);
105
105
  const page = this.pagesStore.getters.getPage(pageId);
106
+ if (!page) {
107
+ return "";
108
+ }
106
109
  return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
107
110
  }
108
111
  return "";
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.9.9-preview",
4
+ "version": "7.9.9",
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,11 @@
17
17
  "office365",
18
18
  "sharepoint"
19
19
  ],
20
- "author": "Precio Fishbone",
21
- "dependencies": {
22
- },
20
+ "author": "Omnia Digital Workplace AB",
21
+ "dependencies": {},
23
22
  "typings": "./index.d.ts",
24
23
  "bugs": {
25
- "url": "https://github.com/preciofishbone/OmniaWebContentManagement/issues"
24
+ "url": "https://github.com/omniaintranet/OmniaWebContentManagement/issues"
26
25
  },
27
- "homepage": "https://github.com/preciofishbone/OmniaWebContentManagement#readme"
26
+ "homepage": "https://github.com/omniaintranet/OmniaWebContentManagement#readme"
28
27
  }