@omnia/wcm 6.8.6-preview → 6.8.6

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 (20) hide show
  1. package/internal-do-not-import-from-here/core/Constants.d.ts +2 -0
  2. package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +8 -0
  3. package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +6 -0
  4. package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +1 -0
  5. package/internal-do-not-import-from-here/fx/models/components/MegaMenuStyles.d.ts +3 -0
  6. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +1 -0
  7. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlockStyles.d.ts +1 -0
  8. package/internal-do-not-import-from-here/fx/models/eventmanagement/EventCalendar.d.ts +1 -0
  9. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +4 -0
  10. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +5 -0
  11. package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +13 -1
  12. package/internal-do-not-import-from-here/fx/models/pages/PageData.d.ts +4 -1
  13. package/internal-do-not-import-from-here/fx/scrollingUtils.d.ts +4 -0
  14. package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +1 -1
  15. package/internal-do-not-import-from-here/fx/services/ParticipantService.d.ts +1 -2
  16. package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +3 -0
  17. package/internal-do-not-import-from-here/fx/stores/PageRollupStoreHelper.d.ts +2 -0
  18. package/internal-do-not-import-from-here/fx/ux/InternalUxCore.d.ts +9 -0
  19. package/internal-do-not-import-from-here/models/publishingapp/PublishingAppSettings.d.ts +3 -0
  20. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { ActiveUserDashboardSettings, UnderusedSettings } from '../fx/models';
2
+ import { WCMTentantSettings } from '../models';
2
3
  export declare class WcmCoreConstants {
3
4
  static get SharepointSyncSettingsKey(): string;
4
5
  static get WCMTenantSettingsKey(): string;
@@ -8,6 +9,7 @@ export declare class WcmCoreConstants {
8
9
  static get ActiveUserSettingsKey(): string;
9
10
  static get UnderusedSettingsDefault(): UnderusedSettings;
10
11
  static get ActiveUserSettingsDefault(): ActiveUserDashboardSettings;
12
+ static get DefaultWcmTenantSettings(): WCMTentantSettings;
11
13
  static get WCMAdminLocalizationNamespace(): string;
12
14
  static get commentSearchProviderId(): string;
13
15
  }
@@ -248,6 +248,7 @@ export declare module EditorLocalization {
248
248
  PageTypes: {
249
249
  Title: string;
250
250
  Properties: string;
251
+ AddPageType: string;
251
252
  };
252
253
  Approval: {
253
254
  Title: string;
@@ -493,6 +494,13 @@ export declare module EditorLocalization {
493
494
  Create: string;
494
495
  Cancel: string;
495
496
  };
497
+ EditPageType: {
498
+ Title: string;
499
+ Inherit: string;
500
+ Save: string;
501
+ Cancel: string;
502
+ NoPropertyAbleToOverride: string;
503
+ };
496
504
  AddContent: {
497
505
  Title: string;
498
506
  SearchForABlock: string;
@@ -245,6 +245,12 @@ export declare module PageRollupLocalization {
245
245
  };
246
246
  NavigationNodePicker: {
247
247
  SelectStartNode: string;
248
+ CurrentNode: string;
249
+ Custom: string;
250
+ };
251
+ Subscription: {
252
+ Subscribe: string;
253
+ UnSubscribe: string;
248
254
  };
249
255
  }
250
256
  }
@@ -30,6 +30,7 @@ export interface ContentBlockSettings extends BlockSettingsWithDefaultProperty<s
30
30
  blockTitle: MultilingualString;
31
31
  defaultTextColor?: string;
32
32
  enableMachineTranslation?: boolean;
33
+ useAsMainHeading?: boolean;
33
34
  breakPointSettings?: {
34
35
  [breakPointId: string]: ContentBlockBreakPointSettings;
35
36
  };
@@ -17,9 +17,12 @@ export declare const MegaMenuStyles: {
17
17
  menuDropDownHeader: types.NestedCSSProperties;
18
18
  menuDropDownColumnUL: types.NestedCSSProperties;
19
19
  menuDropDownColumnSubTitle: types.NestedCSSProperties;
20
+ menuCloseBtn: types.NestedCSSProperties;
20
21
  dynamicMenuScrollable: (containerMaxHeight: number, maxHeight: number, btnBottom: number) => types.NestedCSSProperties;
21
22
  levelStyles: (levelStyle: MegaMenuLevelStyle, isStartNode?: boolean, isActive?: boolean) => types.NestedCSSProperties;
22
23
  flatWrapper: (maxWidth: number, settings: MegaMenuSettings) => types.NestedCSSProperties;
23
24
  flexChild: (minWidth: number) => types.NestedCSSProperties;
24
25
  flexWrapper: types.NestedCSSProperties;
26
+ accessibilityLink: types.NestedCSSProperties;
27
+ accessibilityMenu: types.NestedCSSProperties;
25
28
  };
@@ -189,6 +189,7 @@ export interface PageRollupBlockSettings {
189
189
  navigationDepthLevel: number;
190
190
  navigationStartNode?: PageItemNode;
191
191
  currentUserSubscription?: boolean;
192
+ nodeType?: PageRollupEnums.NodeType;
192
193
  }
193
194
  export interface PageTypeSelection extends Page {
194
195
  title: string;
@@ -99,6 +99,7 @@ export declare const PageRollupBlockSettingsGeneralTabStyles: {
99
99
  expansionPanel: types.NestedCSSProperties;
100
100
  filterSettings: types.NestedCSSProperties;
101
101
  wordBreak: types.NestedCSSProperties;
102
+ selectedNodeContent: types.NestedCSSProperties;
102
103
  };
103
104
  export declare const PageRollupPickedPagesDialogStyles: {
104
105
  dialogContentClass?: types.NestedCSSProperties;
@@ -1,6 +1,7 @@
1
1
  import { GuidValue } from '@omnia/fx-models';
2
2
  export interface EventCalendar {
3
3
  id?: GuidValue;
4
+ areDeclinedParticipantsRemoved?: boolean;
4
5
  outlookCalendarId?: string;
5
6
  descriptionProp?: string;
6
7
  locationProp?: string;
@@ -32,4 +32,8 @@ export declare module PageRollupEnums {
32
32
  QueryBuilder = 0,
33
33
  PickPages = 1
34
34
  }
35
+ enum NodeType {
36
+ CurrentNode = 0,
37
+ Custom = 1
38
+ }
35
39
  }
@@ -39,4 +39,9 @@ export var PageRollupEnums;
39
39
  QueryConfigurationType[QueryConfigurationType["QueryBuilder"] = 0] = "QueryBuilder";
40
40
  QueryConfigurationType[QueryConfigurationType["PickPages"] = 1] = "PickPages";
41
41
  })(QueryConfigurationType = PageRollupEnums.QueryConfigurationType || (PageRollupEnums.QueryConfigurationType = {}));
42
+ var NodeType;
43
+ (function (NodeType) {
44
+ NodeType[NodeType["CurrentNode"] = 0] = "CurrentNode";
45
+ NodeType[NodeType["Custom"] = 1] = "Custom";
46
+ })(NodeType = PageRollupEnums.NodeType || (PageRollupEnums.NodeType = {}));
42
47
  })(PageRollupEnums || (PageRollupEnums = {}));
@@ -1,4 +1,4 @@
1
- import { EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier } from '@omnia/fx-models';
1
+ import { EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier, TimePeriodSettings } from '@omnia/fx-models';
2
2
  import { PageId } from '.';
3
3
  import { ChildStructureType } from '..';
4
4
  import { QueryFilter } from '../query';
@@ -30,6 +30,7 @@ export interface PageCollectionData extends PlainPageData {
30
30
  enableAutoSubscription?: boolean;
31
31
  enablePublishingToChannel: boolean;
32
32
  yammerIntegrationRules: Array<YammerIntegrationRule>;
33
+ overriddenPageTypeSettings?: OverriddenPageTypeSetting[];
33
34
  /**
34
35
  * This property is used as inital value for creating Page Collection Navigation Node.
35
36
  * */
@@ -82,3 +83,14 @@ export declare enum YammerProperties {
82
83
  Summary = "Summary",
83
84
  Content = "Content"
84
85
  }
86
+ export interface OverriddenPageTypeSetting {
87
+ pageTypeId: number;
88
+ overriddenProperties: Array<OverriddenProperty>;
89
+ }
90
+ export interface OverriddenProperty {
91
+ propertyId?: GuidValue;
92
+ defaultValue?: any;
93
+ calculatedFromProperty?: string;
94
+ timePeriodSettingsForDefaultValue?: TimePeriodSettings;
95
+ readonly?: boolean;
96
+ }
@@ -1,4 +1,4 @@
1
- import { GuidValue, IVersionedDataIdentifier, Layout } from '@omnia/fx-models';
1
+ import { GuidValue, IVersionedDataIdentifier, Layout, SearchValue } from '@omnia/fx-models';
2
2
  import { EnterprisePropertiesInheritance, ApprovalData } from '.';
3
3
  import { PageId } from './Page';
4
4
  /**
@@ -33,6 +33,9 @@ export interface PageData {
33
33
  layoutVersionedDataIdentifier?: IVersionedDataIdentifier;
34
34
  approvalData?: ApprovalData;
35
35
  propertyBag?: {
36
+ search: {
37
+ [blockId: string]: SearchValue;
38
+ };
36
39
  [key: string]: any;
37
40
  };
38
41
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @deprecated Use ScrollPagingUtils from Omnia Fx. This will be removed in 7.0
3
+ *
4
+ * */
1
5
  export declare module ScrollingUtils {
2
6
  const scrollAttributeName = "omnia_scroll_paging_attribute";
3
7
  function registerScrollPaging(elem: HTMLElement, className: string, nextPage: () => Promise<boolean>): void;
@@ -10,7 +10,7 @@ export declare class ChannelManagementService {
10
10
  getRecentlyUsedChannels: () => Promise<PublishingChannel[]>;
11
11
  getPublishingChannelById: (channelId: number) => Promise<PublishingChannel>;
12
12
  getChannelPages: (pageId: PageId) => Promise<ChannelPage[]>;
13
- getPublishedChannelsByPageIds: (pageIds: PageId[]) => Promise<{
13
+ getChannelsForPublishedPages: (pageIds: PageId[]) => Promise<{
14
14
  [pageId: number]: PublishingChannel[];
15
15
  }>;
16
16
  deletePublishingChannel: (channelId: PublishingChannelId) => Promise<PublishingChannel>;
@@ -1,5 +1,5 @@
1
1
  import { OmniaContext } from '@omnia/fx';
2
- import { Participant, ParticipantStatusModel } from '../models';
2
+ import { Participant } from '../models';
3
3
  import { PageId } from '@omnia/wcm/models';
4
4
  export declare var BASE_URL: string;
5
5
  export declare class ParticipantService {
@@ -9,7 +9,6 @@ export declare class ParticipantService {
9
9
  getParticipantByLoginNameOrEmail: (loginNameOrEmail: string, pageId: number) => Promise<Participant>;
10
10
  getParticipants: (pageId: PageId) => Promise<Array<Participant>>;
11
11
  addOrUpdateParticipant: (participant: Participant) => Promise<Participant>;
12
- updateParticipantStatus: (participant: ParticipantStatusModel) => Promise<ParticipantStatusModel>;
13
12
  deleteParticipant: (participant: Participant) => Promise<Participant>;
14
13
  moveParticipantToStandbyList: (participant: Participant) => Promise<Participant>;
15
14
  moveParticipantToOfficialList: (participant: Participant) => Promise<Participant>;
@@ -65,8 +65,10 @@ export declare class PageRollupStore extends Store {
65
65
  pageDialogData: (pageId: number) => PageDialogData;
66
66
  pageContentDataWithLimit: (contentProp: string, contentLimit: number, pageId: number) => string;
67
67
  pageTypesTitle: (page: PageDetailsQueryResult) => string;
68
+ pageType: (page: PageDetailsQueryResult) => PageTypeSelection;
68
69
  pageTypes: (uniqueKey: string) => PageTypeSelection[];
69
70
  publishingChannelSettings: (uniqueKey: string) => string[];
71
+ sortPagesByNavigation: (pages: PageDetailsQueryResult[], navigationStartNodeId?: number, sortDescending?: boolean) => PageDetailsQueryResult[];
70
72
  };
71
73
  private generatePageSocialCountingColumn;
72
74
  private getPageRollupDataFromIndexedDB;
@@ -93,5 +95,6 @@ export declare class PageRollupStore extends Store {
93
95
  private findPageInNode;
94
96
  private getPageTypeLoadPromise;
95
97
  private ensureLoadPageTypePromise;
98
+ private sortPagesByNavigation;
96
99
  }
97
100
  export {};
@@ -54,6 +54,7 @@ declare class InternalPageRollupStoreHelper {
54
54
  ensureLoadedCurrentNavigation(blockInstances: IBlockInstanceExtends<PageRollupBlockSettings>[]): Promise<void>;
55
55
  getTargetingData(settings: PageRollupBlockSettings): TargetingPropertyFlatResult[];
56
56
  getResourceId(resourceId: string): string;
57
+ getStartNode(settings: PageRollupBlockSettings): PageItemNode;
57
58
  generateFilters(settings: PageRollupBlockSettings, filters?: Array<PageRollupPropertyFilter>): Array<QueryFilter>;
58
59
  getVariationQuery(settings: PageRollupBlockSettings, serviceContainerContext: ServiceContainerContext): Promise<{
59
60
  ids: VariationId[];
@@ -98,6 +99,7 @@ export declare class PageRollupStoreHelper {
98
99
  getPickedPages(settings: PageRollupBlockSettings, instance: IBlockInstance<PageRollupBlockSettings>, blockProperty?: ReactivePageBlockProperty<PageRollupBlockProperty>): PageItemNode[];
99
100
  getTargetingData(settings: PageRollupBlockSettings): TargetingPropertyFlatResult[];
100
101
  getResourceId(resourceId: string): string;
102
+ getStartNode(settings: PageRollupBlockSettings): PageItemNode;
101
103
  generateFilters(settings: PageRollupBlockSettings, filters?: Array<PageRollupPropertyFilter>): Array<QueryFilter>;
102
104
  getVariationQuery(settings: PageRollupBlockSettings, serviceContainerContext: ServiceContainerContext): Promise<{
103
105
  ids: VariationId[];
@@ -13,13 +13,22 @@ export declare class WcmUxCore {
13
13
  handleOpenLinkInNewWindow: (e: Event, url: string, link?: LinkItem) => void;
14
14
  tryToExecuteMSTeamsDeepLinkOnClick(e: Event, url: string): boolean;
15
15
  tryToExecuteMSTeamsDeepLinkFromUrl(url: string): boolean;
16
+ resolveUrlFromLink(link: LinkItem): string;
17
+ /**
18
+ * @deprecated Use resolveUrlFromLink instead
19
+ */
16
20
  buildUrlFromLink(link: LinkItem): string;
21
+ /**
22
+ * @deprecated Use resolveUrlFromLink instead
23
+ */
17
24
  combineRedirectUrlWithAnchorLink(url: string, link: LinkItem): string;
18
25
  splitRedirectUrlWithAnchorLink(url: string): string[];
19
26
  getAnchorNameFromLink(link: LinkItem): string | undefined;
20
27
  private hasAnchorLinkSettings;
28
+ private isRedirectPage;
21
29
  private tryToExecuteTeamsDeepLink;
22
30
  private getPageNavigationNode;
23
31
  private openLinkInNewWindow;
32
+ private isSpecialLink;
24
33
  static get instance(): any;
25
34
  }
@@ -3,3 +3,6 @@ export interface AppEditInputSettings {
3
3
  documentLibraryUrl: string;
4
4
  allowUploadDocument: boolean;
5
5
  }
6
+ export interface WCMTentantSettings {
7
+ PageSize: number;
8
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.8.6-preview",
4
+ "version": "6.8.6",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"