@omnia/wcm 7.10.0-preview.25 → 7.10.0-preview.26

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.
@@ -1,4 +1,4 @@
1
- import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode } from "@omnia/wcm/models";
1
+ import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode, LinkItem, LinkNavigationData } 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;
@@ -78,3 +78,7 @@ export declare module WCMGovernanceUtils {
78
78
  function getMonth(date: Date, numberOfMonths: any): Date;
79
79
  function equalMonth(date: Date, compare: Date): boolean;
80
80
  }
81
+ export declare module LinkUtils {
82
+ function convertToLinkNavigation(linkItem: LinkItem): LinkNavigationData;
83
+ function convertToLinkItem(linkNavigationData: LinkNavigationData): LinkItem;
84
+ }
@@ -148,6 +148,7 @@ export declare module PublishingAppLocalization {
148
148
  Preview: string;
149
149
  MoveTo: string;
150
150
  Save: string;
151
+ ChangeLinkType: string;
151
152
  VersionHistory: string;
152
153
  Revert: string;
153
154
  ReuseContent: string;
@@ -1,5 +1,5 @@
1
1
  import { MessageBusTopicMediator } from "@omnia/fx";
2
- import { CreateLayoutItemSettingsMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage } from "../../models";
2
+ import { CreateLayoutItemSettingsMessage, LinkPickerDialogMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage } 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 showLinkPickerDialogTopic(): MessageBusTopicMediator<LinkPickerDialogMessage>;
23
24
  }
@@ -1,4 +1,4 @@
1
- import { IconPickerModel } from "@omnia/fx-models";
1
+ import { IconPickerModel, MultilingualString } from "@omnia/fx-models";
2
2
  export declare enum OpenDocumentOptions {
3
3
  OpenInWeb = "OpenInWeb",
4
4
  OpenInWebNewTab = "OpenInWebNewTab",
@@ -6,6 +6,7 @@ export declare enum OpenDocumentOptions {
6
6
  Download = "Download"
7
7
  }
8
8
  export interface LinkPickerPropertyData {
9
+ multilingualTitleEnabled?: boolean;
9
10
  }
10
11
  export interface LinkItem {
11
12
  linkType: string;
@@ -13,6 +14,7 @@ export interface LinkItem {
13
14
  url: string;
14
15
  icon: IconPickerModel;
15
16
  openInNewWindow: boolean;
17
+ multilingualString?: MultilingualString;
16
18
  }
17
19
  export interface PageItemNode {
18
20
  pageId: number;
@@ -1,7 +1,9 @@
1
- import { NavigationData, INavigationOptions } from ".";
2
1
  import { IconPickerModel, MultilingualString } from "@omnia/fx-models";
2
+ import { NavigationData, INavigationOptions } from ".";
3
+ import { LinkItem } from "../components";
3
4
  export interface LinkNavigationData extends NavigationData, INavigationOptions {
4
5
  title: MultilingualString;
5
6
  url: string;
6
7
  icon?: IconPickerModel;
8
+ linkData: Omit<LinkItem, "multilingualString" | "title" | "url" | "icon" | "openInNewWindow">;
7
9
  }
@@ -40,6 +40,7 @@ export declare const ActionButtonIds: {
40
40
  publishChannels: string;
41
41
  delete: string;
42
42
  save: string;
43
+ changeLinkType: string;
43
44
  };
44
45
  export declare const AppEditorActionButtonIds: {
45
46
  saveSettings: string;
@@ -42,7 +42,8 @@ exports.ActionButtonIds = {
42
42
  variationSelector: "VariationSelector",
43
43
  publishChannels: "PublishChannels",
44
44
  delete: "Delete",
45
- save: "Save"
45
+ save: "Save",
46
+ changeLinkType: "ChangeLinkType",
46
47
  };
47
48
  exports.AppEditorActionButtonIds = {
48
49
  saveSettings: "saveSettings"
@@ -1,5 +1,6 @@
1
1
  import { LayoutItem } from "@omnia/fx-models";
2
2
  import { DialogAction } from "./ApprovalDialogAction";
3
+ import { LinkItem } from "@omnia/wcm/models";
3
4
  export interface CreateLayoutItemSettingsMessage {
4
5
  creationType: string;
5
6
  context?: any;
@@ -17,3 +18,7 @@ export interface PageScheduleMessage {
17
18
  export interface ShowApprovalDialogMessage {
18
19
  dialogAction: DialogAction;
19
20
  }
21
+ export interface LinkPickerDialogMessage {
22
+ link?: LinkItem;
23
+ actionSave?: Function;
24
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.10.0-preview.25",
4
+ "version": "7.10.0-preview.26",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"