@omnia/wcm 7.11.8 → 7.11.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.
@@ -25,6 +25,8 @@ export declare class WcmCoreConstants {
25
25
  SuffixStartRenderingElement: string;
26
26
  SuffixDoneRenderingElement: string;
27
27
  PageRollupNewsletterView: string;
28
+ BannerBlock: string;
29
+ SendEmailParameter: string;
28
30
  };
29
31
  static get SemanticSearchReferenceType(): {
30
32
  providerId: Guid;
@@ -955,6 +955,15 @@ export declare module EditorLocalization {
955
955
  Message: string;
956
956
  Close: string;
957
957
  };
958
+ ApprovalFlowPageChanged: {
959
+ Title: string;
960
+ Message: string;
961
+ HasBeenCanceledMessage: string;
962
+ };
963
+ CancelApprovalWithApproverDraft: {
964
+ Title: string;
965
+ Message: string;
966
+ };
958
967
  };
959
968
  Tabs: {
960
969
  Gamification: string;
@@ -1,7 +1,9 @@
1
1
  import { MessageBusTopicMediator } from "@omnia/fx";
2
2
  import { CreateLayoutItemSettingsMessage, LinkPickerDialogMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage } from "../../models";
3
+ import { Identity } from "@omnia/fx-models";
3
4
  import { NavigationData, NavigationNode, LinkItem, PageTypeProperty, LinkPickerRegistration } from "@omnia/wcm/models";
4
5
  import { LinkItemTemplateMsg } from "../../models/relatedlinks";
6
+ import { ConfirmDialogResponse } from "@omnia/fx/ux";
5
7
  export declare const WcmBlockNamespace = "omnia.wcm.block";
6
8
  export declare class WcmTopics {
7
9
  static get registerLinkItemTemplateTopic(): MessageBusTopicMediator<LinkItemTemplateMsg<LinkItem>>;
@@ -22,4 +24,11 @@ export declare class PublishingAppTopics {
22
24
  static get showPageSendEmailDialogTopic(): MessageBusTopicMediator<void>;
23
25
  static get showInviteCoAuthorsDialogTopic(): MessageBusTopicMediator<void>;
24
26
  static get showLinkPickerDialogTopic(): MessageBusTopicMediator<LinkPickerDialogMessage>;
27
+ static get showApprovalFlowPageChangedDialogTopic(): MessageBusTopicMediator<{
28
+ message: string;
29
+ }>;
30
+ static get showCancelApprovalConfirmDialogTopic(): MessageBusTopicMediator<{
31
+ approver?: Identity | null;
32
+ onClose: (result: ConfirmDialogResponse) => void;
33
+ }>;
25
34
  }
@@ -221,7 +221,7 @@ export declare class WcmWebComponentManifests {
221
221
  static get PageRollupCardViewSettings(): Guid;
222
222
  static get PageRollupCardView(): Guid;
223
223
  static get PageRollupNewsletterViewSettings(): Guid;
224
- static get PageRollupNewsletteriew(): Guid;
224
+ static get PageRollupNewsletterView(): Guid;
225
225
  static get PageRollupListViewSettings(): Guid;
226
226
  static get PageRollupListView(): Guid;
227
227
  static get PageRollUpDialogView(): Guid;
@@ -237,7 +237,7 @@ class WcmWebComponentManifests {
237
237
  static get PageRollupCardViewSettings() { return new fx_models_1.Guid("4b67de2e-1fba-40f6-b931-0f46d67b18ff"); }
238
238
  static get PageRollupCardView() { return new fx_models_1.Guid("96a40113-bc63-4915-9266-385409d6823d"); }
239
239
  static get PageRollupNewsletterViewSettings() { return new fx_models_1.Guid("51be5aad-ea23-48e4-a566-9094f1c20d22"); }
240
- static get PageRollupNewsletteriew() { return new fx_models_1.Guid("b31d4e31-1437-406c-8e78-039a68fcfd19"); }
240
+ static get PageRollupNewsletterView() { return new fx_models_1.Guid("b31d4e31-1437-406c-8e78-039a68fcfd19"); }
241
241
  static get PageRollupListViewSettings() { return new fx_models_1.Guid("52439087-3843-441D-BF9D-380F0F229FB6"); }
242
242
  static get PageRollupListView() { return new fx_models_1.Guid("9D62F3DE-5A71-4435-927B-43A6EE9BCE40"); }
243
243
  static get PageRollUpDialogView() { return new fx_models_1.Guid("31CF4A10-9FEE-43EE-9710-73BF2EFE7174"); }
@@ -37,4 +37,5 @@ export declare const BannerBlockStyles: {
37
37
  wrapperWithoutToolbar?: types.NestedCSSProperties;
38
38
  fullHeightWrapper?: types.NestedCSSProperties;
39
39
  rightPanelWithoutActionButtons?: types.NestedCSSProperties;
40
+ hideElement?: types.NestedCSSProperties;
40
41
  };
@@ -1,3 +1,4 @@
1
+ import { Identity } from "@omnia/fx-models";
1
2
  import { ApprovalData, PageId, SchedulingSettings, VersionId } from "../pages";
2
3
  export declare enum RuleStatus {
3
4
  Unassigned = 0,
@@ -21,6 +22,7 @@ export interface PublishingRule<T extends PublishingRuleData = PublishingRuleDat
21
22
  id: number;
22
23
  pageId: PageId;
23
24
  pageVersionId: VersionId;
25
+ modifiedBy: Identity;
24
26
  ruleData: T;
25
27
  }
26
28
  export interface ApprovalSettings {
@@ -47,7 +47,11 @@ export declare class PublishingRuleStore extends Store {
47
47
  };
48
48
  actions: {
49
49
  ensurePageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, forceRefresh?: boolean) => void, (result: void, pageId: PageId, forceRefresh?: boolean) => void, (failureReason: any, pageId: PageId, forceRefresh?: boolean) => void, (pageId: PageId, forceRefresh?: boolean) => Promise<void>>;
50
- getAllPageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: unknown, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<unknown>>;
50
+ getAllPageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: {
51
+ [versionId: number]: PublishingRule<PublishingRuleData>[];
52
+ }, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<{
53
+ [versionId: number]: PublishingRule<PublishingRuleData>[];
54
+ }>>;
51
55
  sendApprovalRequest: import("@omnia/fx/stores").StoreAction<unknown, (request: ApprovalRequest) => void, (result: PublishingRule<ApprovalRuleData>[], request: ApprovalRequest) => void, (failureReason: any, request: ApprovalRequest) => void, (request: ApprovalRequest) => Promise<PublishingRule<ApprovalRuleData>[]>>;
52
56
  cancelApproval: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRule<PublishingRuleData>) => void, (result: PublishingRule<PublishingRuleData>[], ruleData: PublishingRule<PublishingRuleData>) => void, (failureReason: any, ruleData: PublishingRule<PublishingRuleData>) => void, (ruleData: PublishingRule) => Promise<Array<PublishingRule>>>;
53
57
  approve: import("@omnia/fx/stores").StoreAction<unknown, (approvePageInfo: ApprovePageInfo) => void, (result: PublishingRule<ApprovalRuleData>[], approvePageInfo: ApprovePageInfo) => void, (failureReason: any, approvePageInfo: ApprovePageInfo) => void, (approvePageInfo: ApprovePageInfo) => Promise<PublishingRule<ApprovalRuleData>[]>>;
@@ -1,4 +1,4 @@
1
- import { PageData, VersionedPageData, VersionId, Page } from "@omnia/wcm/models";
1
+ import { PageData, VersionedPageData, VersionId, Page, PublishingRule } from "@omnia/wcm/models";
2
2
  import { IEditorItem } from "@omnia/fx/models";
3
3
  export interface IPageEditorItem extends IEditorItem {
4
4
  pageVersion: VersionedPageData<PageData>;
@@ -16,4 +16,5 @@ export interface IPageEditorItem extends IEditorItem {
16
16
  onReject<ItemType>(): Promise<ItemType>;
17
17
  onCancelApproval<ItemType>(): Promise<ItemType>;
18
18
  showActionRelatedPanel(haveAffectedPages: boolean): Promise<unknown>;
19
+ checkAndShowApprovalFlowChanged(currentRule: PublishingRule): Promise<boolean>;
19
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "7.11.8",
4
+ "version": "7.11.9",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"