@omnia/wcm 8.0.7-dev → 8.0.9-dev
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.
- package/internal-do-not-import-from-here/core/Constants.d.ts +3 -1
- package/internal-do-not-import-from-here/core/Utils.d.ts +4 -0
- package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +5 -0
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +15 -0
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +4 -0
- package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +2 -1
- package/internal-do-not-import-from-here/core/ux/EnterprisePropertyRenderer.d.ts +1 -52
- package/internal-do-not-import-from-here/fx/apis/LinkTemplate.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/constants.d.ts +13 -1
- package/internal-do-not-import-from-here/fx/internal/models/OmniaSearch.d.ts +5 -1
- package/internal-do-not-import-from-here/fx/internal/services/NavigationTitleHelperService.d.ts +5 -1
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +3 -2
- package/internal-do-not-import-from-here/fx/models/Constants.js +6 -5
- package/internal-do-not-import-from-here/fx/models/Enums.tooling.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/Enums.tooling.js +2 -0
- package/internal-do-not-import-from-here/fx/models/ManifestIds.d.ts +0 -417
- package/internal-do-not-import-from-here/fx/models/ManifestIds.js +1 -434
- package/internal-do-not-import-from-here/fx/models/components/ActionButtonBlock.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/components/ActionButtonBlock.js +1 -0
- package/internal-do-not-import-from-here/fx/models/components/ActivityFeed.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/components/BannerBlock.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/models/components/BreadcrumbBlock.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +6 -3
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.js +2 -0
- package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +1 -8
- package/internal-do-not-import-from-here/fx/models/components/MobileNavigationStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/components/RelatedLinkBlock.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/ILinkPickerProvider.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/navigation/MoveNavigationNodeResult.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/models/navigation/MoveNavigationNodeResult.js +6 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/VelcronViewSettings.d.ts +25 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/VelcronViewSettings.js +2 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PageCollectionPropertyValue.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PageCollectionPropertyValue.js +3 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PageTypePropertyValue.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PageTypePropertyValue.js +3 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PublishAppPropertyValue.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/properties/values/PublishAppPropertyValue.js +3 -0
- package/internal-do-not-import-from-here/fx/models/richtexteditor/MediaPickerMessage.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/models/search/PageDocument.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/seo/PageMetaTag.d.ts +31 -0
- package/internal-do-not-import-from-here/fx/models/seo/PageMetaTag.js +24 -0
- package/internal-do-not-import-from-here/fx/models/seo/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/seo/index.js +4 -0
- package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/services/PublishingRuleService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/services/SeoService.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/services/TopicActivityService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/services/VariationService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/services/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryHelper.d.ts +5 -3
- package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/shared/PageSearchHelper.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/ChannelCategoriesStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/CurrentNavigationStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/LinkPickerStore.d.ts +5 -28
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +0 -6
- package/internal-do-not-import-from-here/fx/stores/PagesStore.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/TopicsActivityStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/VariationStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/ux/InternalUxCore.d.ts +6 -2
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/LinkPickerEditorExtension.d.ts +8 -14
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/LinkPickerMenu.d.ts +3 -7
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/LinkPickerToolbar.d.ts +3 -7
- package/internal-do-not-import-from-here/fx/ux/richtexteditorextensions/LinkPicker/UseLinkPickerToolbarHelper.d.ts +2 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +1 -0
- package/internal-do-not-import-from-here/models/relatedlinks/LinkItemTemplateMsg.d.ts +1 -1
- package/internal-do-not-import-from-here/tooling.output.json +1 -1
- package/package.json +1 -1
- package/task.js +1 -2
|
@@ -45,3 +45,4 @@ tslib_1.__exportStar(require("./aipagecontentreport"), exports);
|
|
|
45
45
|
tslib_1.__exportStar(require("./search"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./properties"), exports);
|
|
47
47
|
tslib_1.__exportStar(require("./pagecreation"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./seo"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomLinkPropertyData } from "@omnia/wcm/models";
|
|
2
|
+
import { LinkItem, MediaPickerStorageProviderContext } from "@omnia/fx-models";
|
|
2
3
|
export interface ILinkPickerProvider {
|
|
3
4
|
linkData?: LinkItem;
|
|
4
5
|
propertyData?: CustomLinkPropertyData;
|
|
6
|
+
mediaPickerProviderContext?: MediaPickerStorageProviderContext;
|
|
5
7
|
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoveNavigationNodeType = void 0;
|
|
4
|
+
var MoveNavigationNodeType;
|
|
5
|
+
(function (MoveNavigationNodeType) {
|
|
6
|
+
MoveNavigationNodeType[MoveNavigationNodeType["MoveAsChild"] = 1] = "MoveAsChild";
|
|
7
|
+
MoveNavigationNodeType[MoveNavigationNodeType["MoveAsSibling"] = 2] = "MoveAsSibling";
|
|
8
|
+
})(MoveNavigationNodeType || (exports.MoveNavigationNodeType = MoveNavigationNodeType = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DynamicState, PropertyDefinitionId, VelcronRendererResolverReference } from "@omnia/fx-models";
|
|
2
|
+
import { PageId, PageRollupViewSettings } from "..";
|
|
3
|
+
import { IDataSourcePropertySelection } from "@omnia/fx/ux";
|
|
4
|
+
export type VelcronPropertySelection = {
|
|
5
|
+
state: string;
|
|
6
|
+
internalName: string;
|
|
7
|
+
propertyDefinitionId: PropertyDefinitionId;
|
|
8
|
+
handler: IDataSourcePropertySelection;
|
|
9
|
+
};
|
|
10
|
+
export type VelcronViewTemplate = {
|
|
11
|
+
template: VelcronRendererResolverReference;
|
|
12
|
+
state: DynamicState;
|
|
13
|
+
properties: Array<VelcronPropertySelection>;
|
|
14
|
+
};
|
|
15
|
+
export interface PageTypeAppDefinitionBinding extends VelcronViewTemplate {
|
|
16
|
+
pageTypeId: PageId;
|
|
17
|
+
}
|
|
18
|
+
export interface VelcronViewSettings extends PageRollupViewSettings {
|
|
19
|
+
imageProp: string;
|
|
20
|
+
size: number;
|
|
21
|
+
multi: boolean;
|
|
22
|
+
containerTemplate: VelcronRendererResolverReference;
|
|
23
|
+
singleItemTemplate: VelcronViewTemplate;
|
|
24
|
+
pageTypeDefinitionBindings: Array<PageTypeAppDefinitionBinding>;
|
|
25
|
+
}
|
|
@@ -20,3 +20,4 @@ tslib_1.__exportStar(require("./CardViewSettings"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./NewsletterViewSettings"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./NavigationViewSettings"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./PageRollupCalendarViewSettings"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./VelcronViewSettings"), exports);
|
|
@@ -5,6 +5,7 @@ import { QueryFilter } from "../query";
|
|
|
5
5
|
import { PagePermissionInfo } from "./PagePermissionInfo";
|
|
6
6
|
import { PlainPageData } from "./PlainPageData";
|
|
7
7
|
import { DistributionChannelRule } from "./PageCollectionDistributionChannel";
|
|
8
|
+
import { SeoProperties } from "../seo/PageMetaTag";
|
|
8
9
|
export interface PageCreationSettings {
|
|
9
10
|
creationDialogTitle: MultilingualString;
|
|
10
11
|
showUrl: boolean;
|
|
@@ -47,6 +48,7 @@ export interface PageCollectionData extends PlainPageData {
|
|
|
47
48
|
* This property is used as inital value for creating Page Collection Navigation Node.
|
|
48
49
|
* */
|
|
49
50
|
childStructureType?: ChildStructureType;
|
|
51
|
+
seoPropeties: SeoProperties;
|
|
50
52
|
}
|
|
51
53
|
export interface AutomaticPageCreationRule {
|
|
52
54
|
id: guid;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { LinkItem } from "
|
|
2
|
-
import { guid, MediaPickerMedia } from "@omnia/fx-models";
|
|
1
|
+
import { guid, LinkItem, MediaPickerMedia } from "@omnia/fx-models";
|
|
3
2
|
export interface RTFMediaPickerMessage {
|
|
4
3
|
selectedMedia?: MediaPickerMedia;
|
|
5
4
|
position?: any;
|
|
@@ -15,8 +15,8 @@ export interface PageDocument extends IndexedDocument {
|
|
|
15
15
|
channels?: Array<PublishingChannelId>;
|
|
16
16
|
variationId?: VariationId;
|
|
17
17
|
variationOfPageId?: number;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
createdVariationIds?: Array<VariationId>;
|
|
19
|
+
createdPublishedVariationIds?: Array<VariationId>;
|
|
20
20
|
pUrlSegment?: string;
|
|
21
21
|
commentCount: number;
|
|
22
22
|
reactionCount: number;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface PageMetaTag {
|
|
2
|
+
name: string;
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
mapToPageProperty: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* internal name of map property
|
|
7
|
+
*/
|
|
8
|
+
mapProperty?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SeoProperties {
|
|
11
|
+
metaTags: Array<PageMetaTag>;
|
|
12
|
+
}
|
|
13
|
+
export declare enum BuiltInMetaTag {
|
|
14
|
+
OGDescription = "og: description",
|
|
15
|
+
OGTitle = "og: title",
|
|
16
|
+
OGImage = "og: image",
|
|
17
|
+
OGType = "og: type",
|
|
18
|
+
Author = "author",
|
|
19
|
+
Keywords = "keywords",
|
|
20
|
+
Description = "description",
|
|
21
|
+
NoIndex = "noindex",
|
|
22
|
+
Title = "title"
|
|
23
|
+
}
|
|
24
|
+
export declare enum SpecialEnterpriseProperty {
|
|
25
|
+
Title = "title"
|
|
26
|
+
}
|
|
27
|
+
export declare const MetaTagRequirements: {
|
|
28
|
+
Title: {
|
|
29
|
+
Length: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MetaTagRequirements = exports.SpecialEnterpriseProperty = exports.BuiltInMetaTag = void 0;
|
|
4
|
+
var BuiltInMetaTag;
|
|
5
|
+
(function (BuiltInMetaTag) {
|
|
6
|
+
BuiltInMetaTag["OGDescription"] = "og: description";
|
|
7
|
+
BuiltInMetaTag["OGTitle"] = "og: title";
|
|
8
|
+
BuiltInMetaTag["OGImage"] = "og: image";
|
|
9
|
+
BuiltInMetaTag["OGType"] = "og: type";
|
|
10
|
+
BuiltInMetaTag["Author"] = "author";
|
|
11
|
+
BuiltInMetaTag["Keywords"] = "keywords";
|
|
12
|
+
BuiltInMetaTag["Description"] = "description";
|
|
13
|
+
BuiltInMetaTag["NoIndex"] = "noindex";
|
|
14
|
+
BuiltInMetaTag["Title"] = "title";
|
|
15
|
+
})(BuiltInMetaTag || (exports.BuiltInMetaTag = BuiltInMetaTag = {}));
|
|
16
|
+
var SpecialEnterpriseProperty;
|
|
17
|
+
(function (SpecialEnterpriseProperty) {
|
|
18
|
+
SpecialEnterpriseProperty["Title"] = "title";
|
|
19
|
+
})(SpecialEnterpriseProperty || (exports.SpecialEnterpriseProperty = SpecialEnterpriseProperty = {}));
|
|
20
|
+
exports.MetaTagRequirements = {
|
|
21
|
+
Title: {
|
|
22
|
+
Length: 55
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PageMetaTag";
|
|
@@ -45,7 +45,7 @@ export declare class NavigationService {
|
|
|
45
45
|
getParentNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
46
46
|
getChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType, depth?: number, forceFromPublishingAppId?: string) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
47
47
|
getMegamenuChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGetParentsFor: T, nodeTypes?: NavigationDataType, depth?: number, forceFromPublishingAppId?: string) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
48
|
-
getMegamenusChildNodes: <T extends NavigationNode<NavigationData>>(nodesToGetParentsFor: NavigationNodeQuery<T
|
|
48
|
+
getMegamenusChildNodes: <T extends NavigationNode<NavigationData>>(nodesToGetParentsFor: Array<NavigationNodeQuery<T>>, nodeTypes?: NavigationDataType) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
49
49
|
getUnavailableDirectChildNodes: <T extends NavigationNode<NavigationData>>(nodeToGet: T) => Promise<Array<NavigationNode<NavigationData>>>;
|
|
50
50
|
getNodesByIds: (nodeIds: Array<NodeId>) => Promise<{
|
|
51
51
|
[nodeId: number]: NavigationNode<NavigationData>;
|
|
@@ -53,7 +53,7 @@ export declare class NavigationService {
|
|
|
53
53
|
getNavigationByNode: (node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
|
|
54
54
|
getNavigationByPath: (path: string, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
|
|
55
55
|
getNodesByPageIds: (...args: Array<PageId>) => Promise<{
|
|
56
|
-
[pageId: number]: PageNavigationNode<PageNavigationData
|
|
56
|
+
[pageId: number]: Array<PageNavigationNode<PageNavigationData>>;
|
|
57
57
|
}>;
|
|
58
58
|
deleteLinkNodeById: (id: NodeId) => Promise<void>;
|
|
59
59
|
checkUrlSegmentExists: (appInstanceId: guid, parentNavigationNode: NavigationNode<NavigationData>, urlSegment: string) => Promise<boolean>;
|
|
@@ -6,7 +6,7 @@ export declare class PublishingRuleService {
|
|
|
6
6
|
private readonly baseUrl;
|
|
7
7
|
addRule: (rule: PublishingRuleData, pageId: PageId) => Promise<PublishingRule>;
|
|
8
8
|
getPageRules: (pageId: PageId) => Promise<{
|
|
9
|
-
[pageId: number]: PublishingRule
|
|
9
|
+
[pageId: number]: Array<PublishingRule>;
|
|
10
10
|
}>;
|
|
11
11
|
updateRule: (rule: PublishingRule) => Promise<PublishingRule>;
|
|
12
12
|
cancelApproval: (rule: PublishingRule<ApprovalRuleData>) => Promise<Array<PublishingRule>>;
|
|
@@ -11,7 +11,7 @@ export declare class TopicActivityService {
|
|
|
11
11
|
* Ensures that the current user is subscribing to the topics
|
|
12
12
|
*
|
|
13
13
|
* **/
|
|
14
|
-
subscribe: <T extends Topic>(topicsToSubscribe: T
|
|
14
|
+
subscribe: <T extends Topic>(topicsToSubscribe: Array<T>) => Promise<Array<TopicSubscription>>;
|
|
15
15
|
/***
|
|
16
16
|
* Unsubscribe to topic subscriptions
|
|
17
17
|
*
|
|
@@ -8,7 +8,7 @@ export declare class VariationService {
|
|
|
8
8
|
create: (createRequest: VariationCreationRequest) => Promise<Variation>;
|
|
9
9
|
delete: (variation: Variation) => Promise<Variation>;
|
|
10
10
|
get: (publishingAppIds?: guid[]) => Promise<{
|
|
11
|
-
[appId: string]: Variation
|
|
11
|
+
[appId: string]: Array<Variation>;
|
|
12
12
|
}>;
|
|
13
13
|
update: (variation: Variation) => Promise<Variation>;
|
|
14
14
|
updateVariationRouteChange: () => Promise<boolean>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { PagedBatchSearchRequest } from "@omnia/fx-models";
|
|
2
2
|
import { EnterprisePropertyStore } from "@omnia/fx/stores";
|
|
3
3
|
import { BatchQueryPages } from "../models";
|
|
4
|
-
import {
|
|
4
|
+
import { AppInfoStore, PageRollupStore } from "../stores";
|
|
5
5
|
export declare class OmniaSearchQueryHelper {
|
|
6
6
|
enterprisePropertyStore: EnterprisePropertyStore;
|
|
7
|
-
|
|
7
|
+
appInfoStore: AppInfoStore;
|
|
8
8
|
pageRollupStore: PageRollupStore;
|
|
9
9
|
private enterpriseProperties;
|
|
10
10
|
private querableProperties;
|
|
11
|
-
private
|
|
11
|
+
private appInfos;
|
|
12
12
|
generatePagedBatchSearchRequest(queries: BatchQueryPages[]): Promise<{
|
|
13
13
|
searchQueryRequest: PagedBatchSearchRequest;
|
|
14
14
|
batchQueryPagesError: BatchQueryPages[];
|
|
15
15
|
}>;
|
|
16
16
|
static camelize(str: string): string;
|
|
17
17
|
private hasBusinessProfileScopeQuery;
|
|
18
|
+
private ensureLoadInfoBeforeGenerateQuery;
|
|
18
19
|
private getSearchBoxKeywords;
|
|
19
20
|
private getFilterExpressionString;
|
|
20
21
|
private getValuesFilterOperatorString;
|
|
@@ -29,5 +30,6 @@ export declare class OmniaSearchQueryHelper {
|
|
|
29
30
|
private getRetrieveProperties;
|
|
30
31
|
private isDateTimeStampProperty;
|
|
31
32
|
private getSortList;
|
|
33
|
+
private getKeywordValue;
|
|
32
34
|
private parseBatchQueryPagesToOmniaSearch;
|
|
33
35
|
}
|
|
@@ -37,6 +37,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
37
37
|
termStore: TermStore;
|
|
38
38
|
private multilingualStore;
|
|
39
39
|
private profileCardStore;
|
|
40
|
+
private navigationStore;
|
|
40
41
|
private resolvablePageRollupInNP;
|
|
41
42
|
private pageRollupInstancesInNP;
|
|
42
43
|
private pageRollupInstances;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OmniaContext } from "@omnia/fx";
|
|
1
2
|
import { ChannelManagementStore, PageRollupStore } from "..";
|
|
2
3
|
import { BatchQueryPages, BatchQueryPagesResult } from "../models";
|
|
3
4
|
import { OmniaSearchQueryHelper } from "./OmniaSearchQueryHelper";
|
|
@@ -11,6 +12,7 @@ export declare class PageSearchHelper {
|
|
|
11
12
|
omniaSearchQueryHelper: OmniaSearchQueryHelper;
|
|
12
13
|
featureStore: FeatureStore;
|
|
13
14
|
pageRollupStore: PageRollupStore;
|
|
15
|
+
omniaCtx: OmniaContext;
|
|
14
16
|
private static outOfScopeOmniaSearchProperties;
|
|
15
17
|
queryBatchPages(queries: BatchQueryPages[], cancelRequest?: (cancelToken: any) => void): Promise<BatchQueryPagesResult>;
|
|
16
18
|
private getOutOfScopeOmniaSearchQueries;
|
|
@@ -13,7 +13,7 @@ export declare class ChannelCategoriesStore extends Store {
|
|
|
13
13
|
groupByCategories: () => {
|
|
14
14
|
[key: string]: PublishingChannelCategory;
|
|
15
15
|
};
|
|
16
|
-
categoriesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<PublishingChannelCategory[]>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
16
|
+
categoriesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<PublishingChannelCategory[]>) => void | Promise<void>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
17
17
|
};
|
|
18
18
|
actions: {
|
|
19
19
|
ensureCategories: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannelCategory[]) => void, (failureReason: any) => void, () => Promise<PublishingChannelCategory[]>>;
|
|
@@ -29,7 +29,7 @@ export declare class CurrentNavigationStore extends Store {
|
|
|
29
29
|
activeNodes: () => Array<NavigationNode<NavigationData>>;
|
|
30
30
|
isLoadingChildren: (node: NavigationNode<NavigationData>) => boolean;
|
|
31
31
|
hasChildrenLoadTriggered: (node: NavigationNode<NavigationData>) => boolean;
|
|
32
|
-
onActiveNodesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<NavigationNode<NavigationData>[]>) => void) => IMessageBusSubscriptionHandler;
|
|
32
|
+
onActiveNodesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<NavigationNode<NavigationData>[]>) => void | Promise<void>) => IMessageBusSubscriptionHandler;
|
|
33
33
|
status: () => CurrentNavigationStatus;
|
|
34
34
|
readyPromise: () => Future<void>;
|
|
35
35
|
};
|
|
@@ -12,35 +12,12 @@ export declare const useLinkPickerStore: () => {
|
|
|
12
12
|
mutate: {
|
|
13
13
|
providers: (value: LinkPickerRegistration[] | ((prev: LinkPickerRegistration[]) => LinkPickerRegistration[])) => void;
|
|
14
14
|
};
|
|
15
|
-
actions: {
|
|
16
|
-
onDispatching: {
|
|
17
|
-
ensureAddProvider: {
|
|
18
|
-
subscribe(fn: (provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
19
|
-
};
|
|
20
|
-
ensureRemoveProvider: {
|
|
21
|
-
subscribe(fn: (provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
onDispatched: {
|
|
25
|
-
ensureAddProvider: {
|
|
26
|
-
subscribe(fn: (result: void, provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
27
|
-
};
|
|
28
|
-
ensureRemoveProvider: {
|
|
29
|
-
subscribe(fn: (result: void, provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
onFailure: {
|
|
33
|
-
ensureAddProvider: {
|
|
34
|
-
subscribe(fn: (failureReason: any, provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
35
|
-
};
|
|
36
|
-
ensureRemoveProvider: {
|
|
37
|
-
subscribe(fn: (failureReason: any, provider: LinkPickerRegistration) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
} & {
|
|
15
|
+
actions: import("@omnia/fx/stores").StoreReturnDefineAction<{
|
|
41
16
|
ensureAddProvider: (provider: LinkPickerRegistration) => void;
|
|
42
17
|
ensureRemoveProvider: (provider: LinkPickerRegistration) => void;
|
|
43
|
-
}
|
|
18
|
+
}>;
|
|
19
|
+
} & {
|
|
20
|
+
dispose?: () => void;
|
|
44
21
|
};
|
|
45
22
|
export declare class LinkPickerStore extends Store {
|
|
46
23
|
private currentProviders;
|
|
@@ -53,7 +30,7 @@ export declare class LinkPickerStore extends Store {
|
|
|
53
30
|
currentProvider: () => Array<LinkPickerRegistration>;
|
|
54
31
|
};
|
|
55
32
|
get mutationLinkPickerProviders(): {
|
|
56
|
-
onSubscriptionsMutated: (fn: (obj: import("@omnia/fx-models").StateMutation<LinkPickerRegistration[]>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
33
|
+
onSubscriptionsMutated: (fn: (obj: import("@omnia/fx-models").StateMutation<LinkPickerRegistration[]>) => void | Promise<void>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
57
34
|
};
|
|
58
35
|
mutations: {
|
|
59
36
|
ensureAddProvider: import("@omnia/fx/stores").StoreMutation<(provider: LinkPickerRegistration) => void, (provider: LinkPickerRegistration) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
@@ -20,14 +20,14 @@ export declare class NavigationStore extends Store {
|
|
|
20
20
|
onActivated(): void;
|
|
21
21
|
onDisposing(): void;
|
|
22
22
|
getters: {
|
|
23
|
-
getFilteredNodes: <T extends NavigationNode<NavigationData>>(filterAction: (node: NavigationNode<NavigationData>) => boolean) => T
|
|
23
|
+
getFilteredNodes: <T extends NavigationNode<NavigationData>>(filterAction: ((node: NavigationNode<NavigationData>) => boolean)) => Array<T>;
|
|
24
24
|
getFilteredByType: (nodeTypes?: NavigationDataType) => Array<NavigationNode<NavigationData>>;
|
|
25
25
|
getById: (nodeId: NodeId) => NavigationNode<NavigationData>;
|
|
26
26
|
getByPageId: (pageId: PageId) => NavigationNode<NavigationData>;
|
|
27
27
|
getChildren: (node: NavigationNode<NavigationData>, forceFromPublishingAppId?: string) => Array<NavigationNode<NavigationData>>;
|
|
28
28
|
isLoadingChildren: (node: NavigationNode<NavigationData>) => boolean;
|
|
29
29
|
hasChildrenLoadTriggered: (node: NavigationNode<NavigationData>) => boolean;
|
|
30
|
-
getParents: <
|
|
30
|
+
getParents: <T extends NavigationNode<NavigationData>>(node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => Array<T>;
|
|
31
31
|
absoluteUrl: (node: NavigationNode<NavigationData>, variationId?: VariationId, excludeVariationUrl?: boolean) => string;
|
|
32
32
|
sortSiblingNodes: (nodes: Array<NavigationNode<NavigationData>>) => NavigationNode<NavigationData>[];
|
|
33
33
|
checkNodeIsDefaultPageCollectionNode: (navigationNode: PageCollectionNavigationNode<PageCollectionNavigationData>) => boolean;
|
|
@@ -48,7 +48,7 @@ export declare class NavigationStore extends Store {
|
|
|
48
48
|
* Updates the data part of the node, i.e. NavigationNode.navigationData
|
|
49
49
|
* */
|
|
50
50
|
updateNodeData: import("@omnia/fx/stores").StoreAction<unknown, (node: NavigationNode<NavigationData>) => void, (result: void, node: NavigationNode<NavigationData>) => void, (failureReason: any, node: NavigationNode<NavigationData>) => void, <T extends NavigationNode<NavigationData>>(node: T) => Promise<void>>;
|
|
51
|
-
createNode: import("@omnia/fx/stores").StoreAction<unknown, (nodeData: NavigationData, position: NavigationPosition) => void, (result: NavigationNode<NavigationData>, nodeData: NavigationData, position: NavigationPosition) => void, (failureReason: any, nodeData: NavigationData, position: NavigationPosition) => void, <
|
|
51
|
+
createNode: import("@omnia/fx/stores").StoreAction<unknown, (nodeData: NavigationData, position: NavigationPosition) => void, (result: NavigationNode<NavigationData>, nodeData: NavigationData, position: NavigationPosition) => void, (failureReason: any, nodeData: NavigationData, position: NavigationPosition) => void, <T extends NavigationData>(nodeData: T, position: NavigationPosition) => Promise<NavigationNode<NavigationData>>>;
|
|
52
52
|
moveNode: import("@omnia/fx/stores").StoreAction<unknown, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (result: void, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (failureReason: any, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => void, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition) => Promise<void>>;
|
|
53
53
|
movePageNode: import("@omnia/fx/stores").StoreAction<unknown, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition, moveResult: MoveNavigationNodeResult) => void, (result: void, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition, moveResult: MoveNavigationNodeResult) => void, (failureReason: any, navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition, moveResult: MoveNavigationNodeResult) => void, (navigationNode: NavigationNode<NavigationData>, newPosition: NavigationPosition, moveResult: MoveNavigationNodeResult) => Promise<void>>;
|
|
54
54
|
movePageCollection: import("@omnia/fx/stores").StoreAction<unknown, (pageCollectionId: number, targetPublishingAppId: guid) => void, (result: number[], pageCollectionId: number, targetPublishingAppId: guid) => void, (failureReason: any, pageCollectionId: number, targetPublishingAppId: guid) => void, (pageCollectionId: number, targetPublishingAppId: guid) => Promise<number[]>>;
|
|
@@ -56,11 +56,6 @@ export declare class PageRollupStore extends Store {
|
|
|
56
56
|
private metricUniqueKey;
|
|
57
57
|
private tenantPublishingAppIdKey;
|
|
58
58
|
private omniaSearchMigrationStatusPromise;
|
|
59
|
-
private omniaSearchNotCreatedPublishedVariationIdsMigrationPromise;
|
|
60
|
-
/**
|
|
61
|
-
* Private properties
|
|
62
|
-
*/
|
|
63
|
-
private itemQueryResult;
|
|
64
59
|
onActivated(): void;
|
|
65
60
|
onDisposing(): void;
|
|
66
61
|
/**
|
|
@@ -122,7 +117,6 @@ export declare class PageRollupStore extends Store {
|
|
|
122
117
|
exportToExcel: import("@omnia/fx/stores").StoreAction<unknown, (query: ExportQueryPagesRequest, exportingBlockId: string) => void, (result: ExportQueryPagesResult, query: ExportQueryPagesRequest, exportingBlockId: string) => void, (failureReason: any, query: ExportQueryPagesRequest, exportingBlockId: string) => void, (query: ExportQueryPagesRequest, exportingBlockId: string) => Promise<ExportQueryPagesResult>>;
|
|
123
118
|
getExportedFile: import("@omnia/fx/stores").StoreAction<unknown, (exportingFileName: string, exportingFileToken: string) => void, (result: void, exportingFileName: string, exportingFileToken: string) => void, (failureReason: any, exportingFileName: string, exportingFileToken: string) => void, (exportingFileName: string, exportingFileToken: string) => Promise<void>>;
|
|
124
119
|
ensureOmniaSearchMigrationStatus: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
125
|
-
ensureOmniaSearchNotCreatedPublishedVariationIdsMigrationStatus: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
126
120
|
};
|
|
127
121
|
/**
|
|
128
122
|
* Find page and page variation in specific node
|
|
@@ -17,7 +17,7 @@ export declare class PagesStore extends Store {
|
|
|
17
17
|
onDisposing(): void;
|
|
18
18
|
getters: {
|
|
19
19
|
getPage: (pageId: PageId) => Page;
|
|
20
|
-
getFilteredPages: (filterAction: (page: Page) => boolean) => Array<Page>;
|
|
20
|
+
getFilteredPages: (filterAction: ((page: Page) => boolean)) => Array<Page>;
|
|
21
21
|
getPagesByType: (typesToGet?: WCMPageTypes, excludeUnavailable?: boolean) => Array<Page>;
|
|
22
22
|
getVersion: <T extends VersionedPageData<PageData>>(versionRef: VersionReference) => T;
|
|
23
23
|
};
|
|
@@ -53,7 +53,7 @@ export declare class PagesStore extends Store {
|
|
|
53
53
|
*/
|
|
54
54
|
movePageTypeToTenant: import("@omnia/fx/stores").StoreAction<unknown, (page: Page) => void, (result: any, page: Page) => void, (failureReason: any, page: Page) => void, (page: Page) => Promise<any>>;
|
|
55
55
|
revert: import("@omnia/fx/stores").StoreAction<unknown, (versiontoRevert: VersionedPageData<PageData>) => void, (result: VersionedPageData<PageData>, versiontoRevert: VersionedPageData<PageData>) => void, (failureReason: any, versiontoRevert: VersionedPageData<PageData>) => void, (versiontoRevert: VersionedPageData<PageData>) => Promise<VersionedPageData<PageData>>>;
|
|
56
|
-
createPageWithVariation: import("@omnia/fx/stores").StoreAction<unknown, (originalPage: Page, pageData: PageData, variation: Variation) => void, (result: VariationPage, originalPage: Page, pageData: PageData, variation: Variation) => void, (failureReason: any, originalPage: Page, pageData: PageData, variation: Variation) => void, <
|
|
56
|
+
createPageWithVariation: import("@omnia/fx/stores").StoreAction<unknown, (originalPage: Page, pageData: PageData, variation: Variation) => void, (result: VariationPage, originalPage: Page, pageData: PageData, variation: Variation) => void, (failureReason: any, originalPage: Page, pageData: PageData, variation: Variation) => void, <T extends PageData>(originalPage: Page, pageData: T, variation: Variation) => Promise<VariationPage>>;
|
|
57
57
|
ensurePageCollectionSelections: import("@omnia/fx/stores").StoreAction<unknown, (fromPublishingAppId: string, fromPageCollectionIds?: string[]) => void, (result: PageCollectionSelection[], fromPublishingAppId: string, fromPageCollectionIds?: string[]) => void, (failureReason: any, fromPublishingAppId: string, fromPageCollectionIds?: string[]) => void, (fromPublishingAppId: string, fromPageCollectionIds?: Array<string>) => Promise<PageCollectionSelection[]>>;
|
|
58
58
|
takeOverCheckOutPage: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: CheckedOutVersionPageData<PageData>, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<CheckedOutVersionPageData<PageData>>>;
|
|
59
59
|
getPage: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, forceFromPublishingAppId?: string) => void, (result: Page, pageId: PageId, forceFromPublishingAppId?: string) => void, (failureReason: any, pageId: PageId, forceFromPublishingAppId?: string) => void, (pageId: PageId, forceFromPublishingAppId?: string) => Promise<Page>>;
|
|
@@ -33,7 +33,7 @@ export declare class PublishingRuleStore extends Store {
|
|
|
33
33
|
isPageAutomaticMachineTranslate: (pageId: PageId) => boolean;
|
|
34
34
|
onRulesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<{
|
|
35
35
|
[pageId: number]: PublishingRule<PublishingRuleData>[];
|
|
36
|
-
}>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
36
|
+
}>) => void | Promise<void>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
37
37
|
isPublishingRuleExisted: (pageId: PageId) => boolean;
|
|
38
38
|
canCancelApproval: (pageId: PageId, approvalData: ApprovalData) => boolean;
|
|
39
39
|
canApproveOrReject: (pageId: PageId, defaultPageCollectionApprovalData: ApprovalData) => boolean;
|
|
@@ -35,7 +35,7 @@ export declare class TopicsActivityStore extends Store {
|
|
|
35
35
|
topicActivities: (filter: ActivityQueryFilter) => Array<UserTopicActivity>;
|
|
36
36
|
};
|
|
37
37
|
get mutationEvents(): {
|
|
38
|
-
onSubscriptionsMutated: (fn: (obj: import("@omnia/fx-models").StateMutation<TopicSubscription[]>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
38
|
+
onSubscriptionsMutated: (fn: (obj: import("@omnia/fx-models").StateMutation<TopicSubscription[]>) => void | Promise<void>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
39
39
|
};
|
|
40
40
|
actions: {
|
|
41
41
|
subscribe: import("@omnia/fx/stores").StoreAction<unknown, (topics: Topic[]) => void, (result: void, topics: Topic[]) => void, (failureReason: any, topics: Topic[]) => void, (topics: Array<Topic>) => Promise<void>>;
|
|
@@ -22,7 +22,7 @@ export declare class VariationStore extends Store {
|
|
|
22
22
|
getDefaultVariation: (appId?: guid) => Variation;
|
|
23
23
|
onVariationMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<{
|
|
24
24
|
[appId: string]: Variation[];
|
|
25
|
-
}>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
25
|
+
}>) => void | Promise<void>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
|
26
26
|
isVariationsEnabled: () => boolean;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkItem } from "
|
|
1
|
+
import { LinkItem } from "@omnia/fx-models";
|
|
2
2
|
export declare class WcmUxCore {
|
|
3
3
|
private wcmRouter;
|
|
4
4
|
private navigationStore;
|
|
@@ -10,7 +10,11 @@ export declare class WcmUxCore {
|
|
|
10
10
|
private microsoftTeamsApi;
|
|
11
11
|
private linkHandlerRegistered;
|
|
12
12
|
constructor();
|
|
13
|
-
handleClickLink: (e: MouseEvent, url: string, title: string, link?: LinkItem, onlyNavigateOnDisplayMode?: boolean) => void;
|
|
13
|
+
handleClickLink: (e: MouseEvent, url: string, title: string, link?: LinkItem, onlyNavigateOnDisplayMode?: boolean, disableSpaNavigation?: boolean) => void;
|
|
14
|
+
ensureAnchorLink: (url: string, link: LinkItem) => {
|
|
15
|
+
url: string;
|
|
16
|
+
link: LinkItem;
|
|
17
|
+
};
|
|
14
18
|
handleOpenLinkInNewWindow: (e: Event, url: string, link?: LinkItem) => void;
|
|
15
19
|
private usingLinkHandlerProviders;
|
|
16
20
|
private linkOpenInternal;
|