@omnia/wcm 7.9.15-preview → 7.9.16-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.
@@ -885,6 +885,8 @@ export declare module EditorLocalization {
885
885
  MessageBarEnabled: string;
886
886
  MessageBarTitle: string;
887
887
  MessageBarBody: string;
888
+ MessageBarBackgroundColor: string;
889
+ MessageBarTextColor: string;
888
890
  EmailEnabled: string;
889
891
  EmailSubject: string;
890
892
  EmailBody: string;
@@ -901,6 +903,11 @@ export declare module EditorLocalization {
901
903
  Title: string;
902
904
  ConfirmationMessage: string;
903
905
  };
906
+ PageReviewValidationFailed: {
907
+ Title: string;
908
+ Message: string;
909
+ Close: string;
910
+ };
904
911
  };
905
912
  Tabs: {
906
913
  Gamification: string;
@@ -1,5 +1,5 @@
1
1
  import { MessageBusTopicMediator } from "@omnia/fx";
2
- import { CreateLayoutItemSettingsMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage } from "../../models";
2
+ import { CreateLayoutItemSettingsMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage, ShowPageReviewValidateFailedDialogMessage } from "../../models";
3
3
  import { NavigationData, NavigationNode, LinkItem, PageTypeProperty, LinkPickerRegistration } from "@omnia/wcm/models";
4
4
  import { LinkItemTemplateMsg } from "../../models/relatedlinks";
5
5
  export declare const WcmBlockNamespace = "omnia.wcm.block";
@@ -20,4 +20,5 @@ export declare class PublishingAppTopics {
20
20
  static get showPrePublishContentAnalysisDialogTopic(): MessageBusTopicMediator<ShowApprovalDialogMessage>;
21
21
  static get showPageSendEmailDialogTopic(): MessageBusTopicMediator<void>;
22
22
  static get showInviteCoAuthorsDialogTopic(): MessageBusTopicMediator<void>;
23
+ static get showPageReviewValidateFailedDialogTopic(): MessageBusTopicMediator<ShowPageReviewValidateFailedDialogMessage>;
23
24
  }
@@ -1,4 +1,4 @@
1
- import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings, AnalyticsSettings } from "@omnia/fx-models";
1
+ import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings, AnalyticsSettings, IconPickerModel } from "@omnia/fx-models";
2
2
  import { RichTextEditorExtension } from "@omnia/fx/ux/richtexteditor";
3
3
  import { SharepointSyncPageSettings } from "../../../sp";
4
4
  import { PageData } from "./PageData";
@@ -54,6 +54,9 @@ export interface MessageBarSettings {
54
54
  enabled: boolean;
55
55
  title: MultilingualString;
56
56
  body: MultilingualString;
57
+ icon: IconPickerModel;
58
+ backgroundColor: string;
59
+ textColor: string;
57
60
  }
58
61
  export interface SendEmailSettings {
59
62
  enabled: boolean;
@@ -80,3 +83,10 @@ export interface PageReviewWorkflowRule {
80
83
  emailSettings: SendEmailSettings;
81
84
  suspendedSettings: SuspendedSettings;
82
85
  }
86
+ export interface PageReviewRuleEvaluationResult {
87
+ pageReviewRule: PageReviewWorkflowRule;
88
+ reviewDate: Date;
89
+ showMessageBar: boolean;
90
+ isSuspended: boolean;
91
+ sendEmail: boolean;
92
+ }
@@ -17,3 +17,6 @@ export interface PageScheduleMessage {
17
17
  export interface ShowApprovalDialogMessage {
18
18
  dialogAction: DialogAction;
19
19
  }
20
+ export interface ShowPageReviewValidateFailedDialogMessage {
21
+ failedProperties: Array<string>;
22
+ }
@@ -93,14 +93,14 @@ 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
106
  return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.9.15-preview",
4
+ "version": "7.9.16-preview",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"