@livetiles/reach-plugin-types 0.4.84 → 0.4.86
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/lib/index.d.ts +258 -210
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1040,6 +1040,7 @@ declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
|
|
|
1040
1040
|
import { FC } from 'react';
|
|
1041
1041
|
export const ResourceContextProvider: FC<{
|
|
1042
1042
|
language?: string;
|
|
1043
|
+
locale?: string;
|
|
1043
1044
|
}>;
|
|
1044
1045
|
}
|
|
1045
1046
|
declare module "libs/reach/util/common/src/resources/lazy-date-fns/locales/ar-dz.async" {
|
|
@@ -2296,6 +2297,11 @@ declare module "libs/reach/util/common/src/user/useCurrentUserApi" {
|
|
|
2296
2297
|
deleteCurrentUserAvatar: () => Promise<unknown>;
|
|
2297
2298
|
};
|
|
2298
2299
|
}
|
|
2300
|
+
declare module "libs/reach/util/common/src/user/useCachedCurrentUserApi" {
|
|
2301
|
+
export function useCachedCurrentUserApi(): {
|
|
2302
|
+
getCurrentUser: (subscriptionId: string) => Promise<import("libs/reach/util/common/src/user").CurrentUser>;
|
|
2303
|
+
};
|
|
2304
|
+
}
|
|
2299
2305
|
declare module "libs/reach/util/common/src/content/Attachment" {
|
|
2300
2306
|
export enum AttachmentType {
|
|
2301
2307
|
Image = 0,
|
|
@@ -3163,13 +3169,6 @@ declare module "libs/reach/util/common/src/user/useSubscriptionWebAppUrl" {
|
|
|
3163
3169
|
export function useSubscriptionWebAppUrl(): string;
|
|
3164
3170
|
export function useSubscriptionWebAppUrls(): string[];
|
|
3165
3171
|
}
|
|
3166
|
-
declare module "libs/reach/util/common/src/user/useChannelsApi" {
|
|
3167
|
-
import { Channel } from "libs/reach/util/common/src/user/Channel";
|
|
3168
|
-
export function useChannelsApi(): {
|
|
3169
|
-
getChannels: () => Promise<Channel[]>;
|
|
3170
|
-
getChannelsByItemId: (id: string, route?: string) => Promise<Channel[]>;
|
|
3171
|
-
};
|
|
3172
|
-
}
|
|
3173
3172
|
declare module "libs/reach/util/common/src/user/index" {
|
|
3174
3173
|
export * from "libs/reach/util/common/src/user/features/FeatureSet";
|
|
3175
3174
|
export * from "libs/reach/util/common/src/user/features/WithFeatures";
|
|
@@ -3188,6 +3187,7 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
3188
3187
|
export * from "libs/reach/util/common/src/user/useAccountApi";
|
|
3189
3188
|
export * from "libs/reach/util/common/src/user/useCurrentUser";
|
|
3190
3189
|
export * from "libs/reach/util/common/src/user/useCurrentUserApi";
|
|
3190
|
+
export * from "libs/reach/util/common/src/user/useCachedCurrentUserApi";
|
|
3191
3191
|
export * from "libs/reach/util/common/src/user/useManageCurrentUserApi";
|
|
3192
3192
|
export * from "libs/reach/util/common/src/user/useUserAdminApi";
|
|
3193
3193
|
export * from "libs/reach/util/common/src/user/CurrentUserDetailContextProvider";
|
|
@@ -3195,7 +3195,6 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
3195
3195
|
export * from "libs/reach/util/common/src/user/useSubscriptionHandlePathBuilder";
|
|
3196
3196
|
export * from "libs/reach/util/common/src/user/CurrentUserContext";
|
|
3197
3197
|
export * from "libs/reach/util/common/src/user/useSubscriptionWebAppUrl";
|
|
3198
|
-
export * from "libs/reach/util/common/src/user/useChannelsApi";
|
|
3199
3198
|
export * from "libs/reach/util/common/src/user/LanguageUtils";
|
|
3200
3199
|
export * from "libs/reach/util/common/src/user/content-languages-util";
|
|
3201
3200
|
}
|
|
@@ -3617,6 +3616,32 @@ declare module "libs/reach/util/common/src/notification/index" {
|
|
|
3617
3616
|
export * from "libs/reach/util/common/src/notification/NotificationContext";
|
|
3618
3617
|
export * from "libs/reach/util/common/src/notification/ToastNotificationHost";
|
|
3619
3618
|
}
|
|
3619
|
+
declare module "libs/reach/util/common/src/keywords/useCachedKeywordsApi" {
|
|
3620
|
+
export function useCachedKeywordsApi(): {
|
|
3621
|
+
getAllKeywords: (subscriptionId: string, force?: boolean) => Promise<import("@livetiles/reach/util/common").Keyword[]>;
|
|
3622
|
+
getSelectedGroups: (subscriptionId: string) => Promise<import("@livetiles/reach/util/common").KeywordGroup[]>;
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
declare module "libs/reach/util/common/src/keywords/index" {
|
|
3626
|
+
export * from "libs/reach/util/common/src/keywords/useCachedKeywordsApi";
|
|
3627
|
+
export * from "libs/reach/util/common/src/keywords/useKeywordsApi";
|
|
3628
|
+
}
|
|
3629
|
+
declare module "libs/reach/util/common/src/channels/useChannelsApi" {
|
|
3630
|
+
import { Channel } from "libs/reach/util/common/src/user/Channel";
|
|
3631
|
+
export function useChannelsApi(): {
|
|
3632
|
+
getChannels: () => Promise<Channel[]>;
|
|
3633
|
+
getChannelsByItemId: (id: string, route?: string) => Promise<Channel[]>;
|
|
3634
|
+
};
|
|
3635
|
+
}
|
|
3636
|
+
declare module "libs/reach/util/common/src/channels/useCachedChannelsApi" {
|
|
3637
|
+
export function useCachedChannelsApi(): {
|
|
3638
|
+
getChannels: (subscriptionId: string) => Promise<import("@livetiles/reach/util/common").Channel[]>;
|
|
3639
|
+
};
|
|
3640
|
+
}
|
|
3641
|
+
declare module "libs/reach/util/common/src/channels/index" {
|
|
3642
|
+
export * from "libs/reach/util/common/src/channels/useCachedChannelsApi";
|
|
3643
|
+
export * from "libs/reach/util/common/src/channels/useChannelsApi";
|
|
3644
|
+
}
|
|
3620
3645
|
declare module "libs/reach/util/common/src/subscription/EnforcedSubscriptionContextProvider" {
|
|
3621
3646
|
import { FC, ReactNode } from 'react';
|
|
3622
3647
|
export const EnforcedSubscriptionContextProvider: FC<{
|
|
@@ -3643,10 +3668,11 @@ declare module "libs/reach/util/common/src/subscription/SubscriptionContext" {
|
|
|
3643
3668
|
refreshSubscription: () => void;
|
|
3644
3669
|
}>;
|
|
3645
3670
|
export const LazySubscriptionContextProvider: FC;
|
|
3671
|
+
export const LazyCachedSubscriptionContextProvider: FC;
|
|
3646
3672
|
export const LazySubscriptionContextProviderBase: FC<{
|
|
3647
|
-
getChannels: () => Promise<Channel[]>;
|
|
3648
|
-
getAllKeywords: (force?: boolean) => Promise<Keyword[]>;
|
|
3649
|
-
getSelectedGroups: () => Promise<KeywordGroup[]>;
|
|
3673
|
+
getChannels: (subscriptionId: string) => Promise<Channel[]>;
|
|
3674
|
+
getAllKeywords: (subscriptionId: string, force?: boolean) => Promise<Keyword[]>;
|
|
3675
|
+
getSelectedGroups: (subscriptionId: string) => Promise<KeywordGroup[]>;
|
|
3650
3676
|
}>;
|
|
3651
3677
|
}
|
|
3652
3678
|
declare module "libs/reach/util/common/src/subscription/useSubscriptionApi" {
|
|
@@ -3738,6 +3764,10 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3738
3764
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3739
3765
|
}
|
|
3740
3766
|
}
|
|
3767
|
+
declare module "libs/reach/util/common/src/ReachQueryClient" {
|
|
3768
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3769
|
+
export const ReachQueryClient: QueryClient;
|
|
3770
|
+
}
|
|
3741
3771
|
declare module "libs/reach/util/common/src/index" {
|
|
3742
3772
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3743
3773
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3754,7 +3784,8 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3754
3784
|
export * from "libs/reach/util/common/src/content/index";
|
|
3755
3785
|
export * from "libs/reach/util/common/src/notification/index";
|
|
3756
3786
|
export * from "libs/reach/util/common/src/Variables";
|
|
3757
|
-
export * from "libs/reach/util/common/src/keywords/
|
|
3787
|
+
export * from "libs/reach/util/common/src/keywords/index";
|
|
3788
|
+
export * from "libs/reach/util/common/src/channels/index";
|
|
3758
3789
|
export * from "libs/reach/util/common/src/subscription/index";
|
|
3759
3790
|
export * from "libs/reach/util/common/src/AppTrigger";
|
|
3760
3791
|
export * from "libs/reach/util/common/src/BackbuttonListenerUtil";
|
|
@@ -3769,6 +3800,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3769
3800
|
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3770
3801
|
export * from "libs/reach/util/common/src/analytics/index";
|
|
3771
3802
|
export * from "libs/reach/util/common/src/common-utils";
|
|
3803
|
+
export * from "libs/reach/util/common/src/ReachQueryClient";
|
|
3772
3804
|
}
|
|
3773
3805
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3774
3806
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -4893,7 +4925,7 @@ declare module "libs/reach/ui/common/src/common/locals-util" {
|
|
|
4893
4925
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
4894
4926
|
export const defaultFallbackLocale = "en";
|
|
4895
4927
|
export const supportedLocales: string[];
|
|
4896
|
-
export function getPreferredLocale(user?: CurrentUser): string;
|
|
4928
|
+
export function getPreferredLocale(user?: CurrentUser, locale?: string): string;
|
|
4897
4929
|
}
|
|
4898
4930
|
declare module "libs/reach/ui/common/src/common/paging/HorizontalPager" {
|
|
4899
4931
|
import { FC } from 'react';
|
|
@@ -7867,77 +7899,6 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7867
7899
|
onChannelClick?: (channel: string) => unknown;
|
|
7868
7900
|
}>;
|
|
7869
7901
|
}
|
|
7870
|
-
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
7871
|
-
import { FC } from 'react';
|
|
7872
|
-
interface BannerImageProps {
|
|
7873
|
-
children?: any;
|
|
7874
|
-
className?: string;
|
|
7875
|
-
imageUrl: string;
|
|
7876
|
-
openImageUrl?: string;
|
|
7877
|
-
altText?: string;
|
|
7878
|
-
}
|
|
7879
|
-
export const BannerImage: FC<BannerImageProps>;
|
|
7880
|
-
}
|
|
7881
|
-
declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
|
|
7882
|
-
import { Observable } from 'rxjs';
|
|
7883
|
-
export type ImageVariant = 'original' | 'default';
|
|
7884
|
-
export interface ImageCreate {
|
|
7885
|
-
itemId: string;
|
|
7886
|
-
variant: ImageVariant;
|
|
7887
|
-
identifier: string;
|
|
7888
|
-
image: File;
|
|
7889
|
-
}
|
|
7890
|
-
export interface ImageMetaInfo {
|
|
7891
|
-
itemId: string;
|
|
7892
|
-
identifier: string;
|
|
7893
|
-
originalIdentifier?: string;
|
|
7894
|
-
extension: string;
|
|
7895
|
-
mimeType: string;
|
|
7896
|
-
}
|
|
7897
|
-
export interface ImageSaveEvent {
|
|
7898
|
-
(newImage: File, id: string, variant: ImageVariant): Observable<ImageMetaInfo>;
|
|
7899
|
-
}
|
|
7900
|
-
}
|
|
7901
|
-
declare module "libs/reach/feature/content/src/common/banner/useImageEditorApi" {
|
|
7902
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7903
|
-
import { ImageCreate, ImageMetaInfo } from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
7904
|
-
export function useImageEditorApi(): {
|
|
7905
|
-
getImageInfo: (itemId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<ImageMetaInfo>;
|
|
7906
|
-
getImageEditorUrl: (itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<string>;
|
|
7907
|
-
getOriginalImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => string;
|
|
7908
|
-
getImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes, width?: number, height?: number) => string;
|
|
7909
|
-
uploadImage: (subscriptionId: string, resourceType: ItemResourceTypes, newImage: ImageCreate) => Promise<ImageMetaInfo>;
|
|
7910
|
-
};
|
|
7911
|
-
}
|
|
7912
|
-
declare module "libs/reach/feature/content/src/common/banner/PublishableItemBanner" {
|
|
7913
|
-
import { FC } from 'react';
|
|
7914
|
-
import { BannerInfo, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7915
|
-
interface Props {
|
|
7916
|
-
itemId: string;
|
|
7917
|
-
bannerInfo: BannerInfo;
|
|
7918
|
-
useEditorRoutes?: boolean;
|
|
7919
|
-
width: number;
|
|
7920
|
-
resourceType: ItemResourceTypes;
|
|
7921
|
-
token?: string;
|
|
7922
|
-
canOpenImage?: boolean;
|
|
7923
|
-
onPlayButtonClick?: () => unknown;
|
|
7924
|
-
height?: number;
|
|
7925
|
-
hidePlayerIfActive?: boolean;
|
|
7926
|
-
className?: string;
|
|
7927
|
-
documentIconName?: string;
|
|
7928
|
-
}
|
|
7929
|
-
export const PublishableItemBanner: FC<Props>;
|
|
7930
|
-
}
|
|
7931
|
-
declare module "libs/reach/feature/content/src/events/list/EventCardBanner" {
|
|
7932
|
-
import { FC } from 'react';
|
|
7933
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
7934
|
-
export const EventCardBanner: FC<{
|
|
7935
|
-
item: EventItem;
|
|
7936
|
-
bannerWidth: number;
|
|
7937
|
-
bannerHostDefaultWidth?: number;
|
|
7938
|
-
showPlaceholder?: boolean;
|
|
7939
|
-
}>;
|
|
7940
|
-
}
|
|
7941
7902
|
declare module "libs/reach/feature/content/src/feedback/FeedbackCountButton" {
|
|
7942
7903
|
import { FC } from 'react';
|
|
7943
7904
|
interface CountButtonProps {
|
|
@@ -8210,28 +8171,6 @@ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModa
|
|
|
8210
8171
|
className?: string;
|
|
8211
8172
|
}>;
|
|
8212
8173
|
}
|
|
8213
|
-
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
8214
|
-
import { FC } from 'react';
|
|
8215
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
8216
|
-
interface StyleDefinition {
|
|
8217
|
-
backgroundColor?: string;
|
|
8218
|
-
noShadow?: boolean;
|
|
8219
|
-
channelsBackgroundColor?: string;
|
|
8220
|
-
bannerHostWidth?: number;
|
|
8221
|
-
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8222
|
-
}
|
|
8223
|
-
export const EventCard: FC<{
|
|
8224
|
-
item: EventItem;
|
|
8225
|
-
language: string;
|
|
8226
|
-
targetUrl?: string;
|
|
8227
|
-
styleDefinition?: StyleDefinition;
|
|
8228
|
-
allowFilterByChannels?: boolean;
|
|
8229
|
-
showFeedbackButtons?: boolean;
|
|
8230
|
-
readOnly?: boolean;
|
|
8231
|
-
enableModalRouting?: boolean;
|
|
8232
|
-
className?: string;
|
|
8233
|
-
}>;
|
|
8234
|
-
}
|
|
8235
8174
|
declare module "libs/reach/feature/content/src/common/body/inline-file-list/InlineFileStyles" {
|
|
8236
8175
|
export const FileListHost: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
8237
8176
|
export const FileListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
@@ -8429,67 +8368,6 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
8429
8368
|
icon?: string;
|
|
8430
8369
|
}>;
|
|
8431
8370
|
}
|
|
8432
|
-
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
8433
|
-
import { IBreadcrumbItem } from 'office-ui-fabric-react';
|
|
8434
|
-
import { MessageDescriptor } from 'react-intl';
|
|
8435
|
-
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
8436
|
-
export function getBreadcrumbsItems(page: PageItem, target: string, handleOnClick: (e: React.MouseEvent<any>, item: IBreadcrumbItem) => unknown, getTitle: (page: PageItem | PageNavigationNode) => string, formatMessage: (descriptor: MessageDescriptor, values?: Record<string, any>) => string, hideCurrentPageNode?: boolean, hideHomeNode?: boolean): {
|
|
8437
|
-
breadcrumbItems: IBreadcrumbItem[];
|
|
8438
|
-
ancestors: {
|
|
8439
|
-
title: string;
|
|
8440
|
-
id: string;
|
|
8441
|
-
}[];
|
|
8442
|
-
parentNode: {
|
|
8443
|
-
title: string;
|
|
8444
|
-
id: string;
|
|
8445
|
-
};
|
|
8446
|
-
};
|
|
8447
|
-
}
|
|
8448
|
-
declare module "libs/reach/feature/content/src/common/breadcrumb/ListItemBreadcrumb" {
|
|
8449
|
-
import { FC } from 'react';
|
|
8450
|
-
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8451
|
-
export const ListItemBreadcrumb: FC<{
|
|
8452
|
-
page: PageItem;
|
|
8453
|
-
language?: string;
|
|
8454
|
-
className?: string;
|
|
8455
|
-
}>;
|
|
8456
|
-
}
|
|
8457
|
-
declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
8458
|
-
import { FC, ReactNode } from 'react';
|
|
8459
|
-
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8460
|
-
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
|
|
8461
|
-
interface StyleDefinition {
|
|
8462
|
-
backgroundColor?: string;
|
|
8463
|
-
bannerDefaultWidth: number;
|
|
8464
|
-
bannerFontSize?: number;
|
|
8465
|
-
applyRoundedCorners?: boolean;
|
|
8466
|
-
height?: number;
|
|
8467
|
-
titleFontSize?: number;
|
|
8468
|
-
titleMargin?: string;
|
|
8469
|
-
contentPadding?: string;
|
|
8470
|
-
}
|
|
8471
|
-
interface Props {
|
|
8472
|
-
item: PageItem;
|
|
8473
|
-
baseRoute: string;
|
|
8474
|
-
targetUrl?: string;
|
|
8475
|
-
layoutMode?: ItemTileLayoutMode;
|
|
8476
|
-
filterBaseUrl?: string;
|
|
8477
|
-
styleDefinition?: StyleDefinition;
|
|
8478
|
-
readOnly?: boolean;
|
|
8479
|
-
additionalMetadata?: ReactNode;
|
|
8480
|
-
buttons?: ReactNode;
|
|
8481
|
-
additionalContent?: ReactNode;
|
|
8482
|
-
showBannerPlaceholder?: boolean;
|
|
8483
|
-
showBreadcrumb?: boolean;
|
|
8484
|
-
showIntro?: boolean;
|
|
8485
|
-
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
8486
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
8487
|
-
openTargetInNewWindow?: boolean;
|
|
8488
|
-
enableModalRouting?: boolean;
|
|
8489
|
-
className?: string;
|
|
8490
|
-
}
|
|
8491
|
-
export const PageItemTile: FC<Props>;
|
|
8492
|
-
}
|
|
8493
8371
|
declare module "libs/reach/feature/content/src/common/ContentUtils" {
|
|
8494
8372
|
import { EventItem, ImageDetails, NewsItem } from "libs/reach/util/common/src/index";
|
|
8495
8373
|
import { IntlShape } from 'react-intl';
|
|
@@ -8516,7 +8394,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
8516
8394
|
backgroundColor?: string;
|
|
8517
8395
|
noShadow?: boolean;
|
|
8518
8396
|
channelsBackgroundColor?: string;
|
|
8519
|
-
|
|
8397
|
+
bannerContainerDefaultWidth?: number;
|
|
8520
8398
|
showChannelsToTheRight?: boolean;
|
|
8521
8399
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8522
8400
|
}
|
|
@@ -8532,6 +8410,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
8532
8410
|
styleDefinition?: StyleDefinition;
|
|
8533
8411
|
readOnly?: boolean;
|
|
8534
8412
|
enableModalRouting?: boolean;
|
|
8413
|
+
showBanner?: boolean;
|
|
8414
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
8535
8415
|
className?: string;
|
|
8536
8416
|
}
|
|
8537
8417
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -8557,7 +8437,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
8557
8437
|
backgroundColor?: string;
|
|
8558
8438
|
noShadow?: boolean;
|
|
8559
8439
|
channelsBackgroundColor?: string;
|
|
8560
|
-
|
|
8440
|
+
bannerContainerDefaultWidth?: number;
|
|
8561
8441
|
showChannelsToTheRight?: boolean;
|
|
8562
8442
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8563
8443
|
}
|
|
@@ -8577,10 +8457,174 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
8577
8457
|
readOnly?: boolean;
|
|
8578
8458
|
enableModalRouting?: boolean;
|
|
8579
8459
|
highlight?: boolean;
|
|
8460
|
+
showBanner?: boolean;
|
|
8461
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
8580
8462
|
className?: string;
|
|
8581
8463
|
}
|
|
8582
8464
|
export const NewsItemTile: FC<Props>;
|
|
8583
8465
|
}
|
|
8466
|
+
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
8467
|
+
import { FC } from 'react';
|
|
8468
|
+
interface BannerImageProps {
|
|
8469
|
+
children?: any;
|
|
8470
|
+
className?: string;
|
|
8471
|
+
imageUrl: string;
|
|
8472
|
+
openImageUrl?: string;
|
|
8473
|
+
altText?: string;
|
|
8474
|
+
}
|
|
8475
|
+
export const BannerImage: FC<BannerImageProps>;
|
|
8476
|
+
}
|
|
8477
|
+
declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
|
|
8478
|
+
import { Observable } from 'rxjs';
|
|
8479
|
+
export type ImageVariant = 'original' | 'default';
|
|
8480
|
+
export interface ImageCreate {
|
|
8481
|
+
itemId: string;
|
|
8482
|
+
variant: ImageVariant;
|
|
8483
|
+
identifier: string;
|
|
8484
|
+
image: File;
|
|
8485
|
+
}
|
|
8486
|
+
export interface ImageMetaInfo {
|
|
8487
|
+
itemId: string;
|
|
8488
|
+
identifier: string;
|
|
8489
|
+
originalIdentifier?: string;
|
|
8490
|
+
extension: string;
|
|
8491
|
+
mimeType: string;
|
|
8492
|
+
}
|
|
8493
|
+
export interface ImageSaveEvent {
|
|
8494
|
+
(newImage: File, id: string, variant: ImageVariant): Observable<ImageMetaInfo>;
|
|
8495
|
+
}
|
|
8496
|
+
}
|
|
8497
|
+
declare module "libs/reach/feature/content/src/common/banner/useImageEditorApi" {
|
|
8498
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8499
|
+
import { ImageCreate, ImageMetaInfo } from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
8500
|
+
export function useImageEditorApi(): {
|
|
8501
|
+
getImageInfo: (itemId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<ImageMetaInfo>;
|
|
8502
|
+
getImageEditorUrl: (itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<string>;
|
|
8503
|
+
getOriginalImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => string;
|
|
8504
|
+
getImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes, width?: number, height?: number) => string;
|
|
8505
|
+
uploadImage: (subscriptionId: string, resourceType: ItemResourceTypes, newImage: ImageCreate) => Promise<ImageMetaInfo>;
|
|
8506
|
+
};
|
|
8507
|
+
}
|
|
8508
|
+
declare module "libs/reach/feature/content/src/common/banner/PublishableItemBanner" {
|
|
8509
|
+
import { FC } from 'react';
|
|
8510
|
+
import { BannerInfo, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8511
|
+
interface Props {
|
|
8512
|
+
itemId: string;
|
|
8513
|
+
bannerInfo: BannerInfo;
|
|
8514
|
+
useEditorRoutes?: boolean;
|
|
8515
|
+
width: number;
|
|
8516
|
+
resourceType: ItemResourceTypes;
|
|
8517
|
+
token?: string;
|
|
8518
|
+
canOpenImage?: boolean;
|
|
8519
|
+
onPlayButtonClick?: () => unknown;
|
|
8520
|
+
height?: number;
|
|
8521
|
+
hidePlayerIfActive?: boolean;
|
|
8522
|
+
className?: string;
|
|
8523
|
+
documentIconName?: string;
|
|
8524
|
+
}
|
|
8525
|
+
export const PublishableItemBanner: FC<Props>;
|
|
8526
|
+
}
|
|
8527
|
+
declare module "libs/reach/feature/content/src/common/hooks/useResizeObserver" {
|
|
8528
|
+
export function useResizeObserver<T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry) => void): import("react").MutableRefObject<T>;
|
|
8529
|
+
}
|
|
8530
|
+
declare module "libs/reach/feature/content/src/common/banner/AdaptiveBanner" {
|
|
8531
|
+
import { FC } from 'react';
|
|
8532
|
+
import { ItemResourceTypes, SchedulableItem } from "libs/reach/util/common/src/index";
|
|
8533
|
+
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/common/item-tile/NewsItemTile";
|
|
8534
|
+
export const AdaptiveBanner: FC<{
|
|
8535
|
+
item: SchedulableItem;
|
|
8536
|
+
token: string;
|
|
8537
|
+
resourceType: ItemResourceTypes;
|
|
8538
|
+
layoutMode?: ItemTileLayoutMode;
|
|
8539
|
+
bannerContainerDefaultWidth?: number;
|
|
8540
|
+
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8541
|
+
documentIconName?: string;
|
|
8542
|
+
}>;
|
|
8543
|
+
}
|
|
8544
|
+
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
8545
|
+
import { FC } from 'react';
|
|
8546
|
+
import { EventItem } from "libs/reach/util/common/src/index";
|
|
8547
|
+
interface StyleDefinition {
|
|
8548
|
+
backgroundColor?: string;
|
|
8549
|
+
noShadow?: boolean;
|
|
8550
|
+
channelsBackgroundColor?: string;
|
|
8551
|
+
bannerHostWidth?: number;
|
|
8552
|
+
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8553
|
+
}
|
|
8554
|
+
export const EventCard: FC<{
|
|
8555
|
+
item: EventItem;
|
|
8556
|
+
language: string;
|
|
8557
|
+
targetUrl?: string;
|
|
8558
|
+
styleDefinition?: StyleDefinition;
|
|
8559
|
+
allowFilterByChannels?: boolean;
|
|
8560
|
+
showFeedbackButtons?: boolean;
|
|
8561
|
+
readOnly?: boolean;
|
|
8562
|
+
enableModalRouting?: boolean;
|
|
8563
|
+
className?: string;
|
|
8564
|
+
}>;
|
|
8565
|
+
}
|
|
8566
|
+
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
8567
|
+
import { IBreadcrumbItem } from 'office-ui-fabric-react';
|
|
8568
|
+
import { MessageDescriptor } from 'react-intl';
|
|
8569
|
+
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
8570
|
+
export function getBreadcrumbsItems(page: PageItem, target: string, handleOnClick: (e: React.MouseEvent<any>, item: IBreadcrumbItem) => unknown, getTitle: (page: PageItem | PageNavigationNode) => string, formatMessage: (descriptor: MessageDescriptor, values?: Record<string, any>) => string, hideCurrentPageNode?: boolean, hideHomeNode?: boolean): {
|
|
8571
|
+
breadcrumbItems: IBreadcrumbItem[];
|
|
8572
|
+
ancestors: {
|
|
8573
|
+
title: string;
|
|
8574
|
+
id: string;
|
|
8575
|
+
}[];
|
|
8576
|
+
parentNode: {
|
|
8577
|
+
title: string;
|
|
8578
|
+
id: string;
|
|
8579
|
+
};
|
|
8580
|
+
};
|
|
8581
|
+
}
|
|
8582
|
+
declare module "libs/reach/feature/content/src/common/breadcrumb/ListItemBreadcrumb" {
|
|
8583
|
+
import { FC } from 'react';
|
|
8584
|
+
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8585
|
+
export const ListItemBreadcrumb: FC<{
|
|
8586
|
+
page: PageItem;
|
|
8587
|
+
language?: string;
|
|
8588
|
+
className?: string;
|
|
8589
|
+
}>;
|
|
8590
|
+
}
|
|
8591
|
+
declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
8592
|
+
import { FC, ReactNode } from 'react';
|
|
8593
|
+
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8594
|
+
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
|
|
8595
|
+
interface StyleDefinition {
|
|
8596
|
+
backgroundColor?: string;
|
|
8597
|
+
bannerContainerDefaultWidth: number;
|
|
8598
|
+
bannerFontSize?: number;
|
|
8599
|
+
applyRoundedCorners?: boolean;
|
|
8600
|
+
height?: number;
|
|
8601
|
+
titleFontSize?: number;
|
|
8602
|
+
titleMargin?: string;
|
|
8603
|
+
contentPadding?: string;
|
|
8604
|
+
}
|
|
8605
|
+
interface Props {
|
|
8606
|
+
item: PageItem;
|
|
8607
|
+
baseRoute: string;
|
|
8608
|
+
targetUrl?: string;
|
|
8609
|
+
layoutMode?: ItemTileLayoutMode;
|
|
8610
|
+
filterBaseUrl?: string;
|
|
8611
|
+
styleDefinition?: StyleDefinition;
|
|
8612
|
+
readOnly?: boolean;
|
|
8613
|
+
additionalMetadata?: ReactNode;
|
|
8614
|
+
buttons?: ReactNode;
|
|
8615
|
+
additionalContent?: ReactNode;
|
|
8616
|
+
showBannerPlaceholder?: boolean;
|
|
8617
|
+
showBreadcrumb?: boolean;
|
|
8618
|
+
showIntro?: boolean;
|
|
8619
|
+
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
8620
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
8621
|
+
openTargetInNewWindow?: boolean;
|
|
8622
|
+
enableModalRouting?: boolean;
|
|
8623
|
+
showBanner?: boolean;
|
|
8624
|
+
className?: string;
|
|
8625
|
+
}
|
|
8626
|
+
export const PageItemTile: FC<Props>;
|
|
8627
|
+
}
|
|
8584
8628
|
declare module "libs/reach/feature/content/src/pages/DocumentDownloadButton" {
|
|
8585
8629
|
import { FC, MouseEvent } from 'react';
|
|
8586
8630
|
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
@@ -9339,7 +9383,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
9339
9383
|
backgroundColor?: string;
|
|
9340
9384
|
noShadow?: boolean;
|
|
9341
9385
|
channelsBackgroundColor?: string;
|
|
9342
|
-
|
|
9386
|
+
bannerContainerDefaultWidth?: number;
|
|
9343
9387
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9344
9388
|
}
|
|
9345
9389
|
interface Props {
|
|
@@ -9351,6 +9395,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
9351
9395
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
9352
9396
|
onChannelClick?: (channel: string) => unknown;
|
|
9353
9397
|
styleDefinition?: StyleDefinition;
|
|
9398
|
+
showBanner?: boolean;
|
|
9399
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
9354
9400
|
className?: string;
|
|
9355
9401
|
}
|
|
9356
9402
|
export const EventItemTile: FC<Props>;
|
|
@@ -9602,6 +9648,13 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginVie
|
|
|
9602
9648
|
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9603
9649
|
export const InlineObjectPluginMapper: HtmlComponentMapper;
|
|
9604
9650
|
}
|
|
9651
|
+
declare module "libs/reach/feature/content/src/common/banner/index" {
|
|
9652
|
+
export * from "libs/reach/feature/content/src/common/banner/banner-image/BannerImage";
|
|
9653
|
+
export * from "libs/reach/feature/content/src/common/banner/AdaptiveBanner";
|
|
9654
|
+
export * from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
9655
|
+
export * from "libs/reach/feature/content/src/common/banner/PublishableItemBanner";
|
|
9656
|
+
export * from "libs/reach/feature/content/src/common/banner/useImageEditorApi";
|
|
9657
|
+
}
|
|
9605
9658
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
|
|
9606
9659
|
import { FC } from 'react';
|
|
9607
9660
|
export const EventDetailViewPeopleInfo: FC;
|
|
@@ -10174,20 +10227,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/DetailViewPag
|
|
|
10174
10227
|
basePath?: string;
|
|
10175
10228
|
}>;
|
|
10176
10229
|
}
|
|
10177
|
-
declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
10178
|
-
import { FC } from 'react';
|
|
10179
|
-
import { ItemResourceTypes, SchedulableItem } from "libs/reach/util/common/src/index";
|
|
10180
|
-
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
|
|
10181
|
-
export const Banner: FC<{
|
|
10182
|
-
item: SchedulableItem;
|
|
10183
|
-
token: string;
|
|
10184
|
-
resourceType: ItemResourceTypes;
|
|
10185
|
-
layoutMode?: ItemTileLayoutMode;
|
|
10186
|
-
bannerDefaultWidth?: number;
|
|
10187
|
-
showPlaceholderIfNoBannerInfo?: boolean;
|
|
10188
|
-
documentIconName?: string;
|
|
10189
|
-
}>;
|
|
10190
|
-
}
|
|
10191
10230
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
10192
10231
|
import { FC } from 'react';
|
|
10193
10232
|
interface LanguageSelectorProps {
|
|
@@ -10319,22 +10358,6 @@ declare module "libs/reach/feature/content/src/common/StateIcon" {
|
|
|
10319
10358
|
activeColor?: string;
|
|
10320
10359
|
}>;
|
|
10321
10360
|
}
|
|
10322
|
-
declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
|
|
10323
|
-
import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
|
|
10324
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
10325
|
-
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
10326
|
-
export function useCommonEditorApi(): {
|
|
10327
|
-
list: <T>(type: ItemResourceTypes, filter?: NewsFilterDefinition, token?: string, sortDefinition?: SortFieldsDefinitionBuilder<string>) => Promise<PaginatedList<T>>;
|
|
10328
|
-
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
10329
|
-
};
|
|
10330
|
-
}
|
|
10331
|
-
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
10332
|
-
interface IClickHandles {
|
|
10333
|
-
onInsideClick: () => void;
|
|
10334
|
-
onOutsideClick: () => void;
|
|
10335
|
-
}
|
|
10336
|
-
export function useClickOutside<T extends HTMLElement>(componentInstanceId: string, { onInsideClick, onOutsideClick }: IClickHandles): import("react").MutableRefObject<T>;
|
|
10337
|
-
}
|
|
10338
10361
|
declare module "libs/reach/feature/content/src/posts/GroupNotificationsSettings" {
|
|
10339
10362
|
import { FC } from 'react';
|
|
10340
10363
|
export const GroupNotificationsSettings: FC<{
|
|
@@ -11366,6 +11389,39 @@ declare module "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTr
|
|
|
11366
11389
|
export function useAnalyticsSearchTracking(items?: (PublishableItem | Post | StreamItem)[], disableTracking?: boolean, itemType?: ItemResourceTypes): void;
|
|
11367
11390
|
export function useClearSearchSessionOnLeave(): void;
|
|
11368
11391
|
}
|
|
11392
|
+
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
11393
|
+
interface IClickHandles {
|
|
11394
|
+
onInsideClick: () => void;
|
|
11395
|
+
onOutsideClick: () => void;
|
|
11396
|
+
}
|
|
11397
|
+
export function useClickOutside<T extends HTMLElement>(componentInstanceId: string, { onInsideClick, onOutsideClick }: IClickHandles): import("react").MutableRefObject<T>;
|
|
11398
|
+
}
|
|
11399
|
+
declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
|
|
11400
|
+
import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
|
|
11401
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
11402
|
+
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
11403
|
+
export function useCommonEditorApi(): {
|
|
11404
|
+
list: <T>(type: ItemResourceTypes, filter?: NewsFilterDefinition, token?: string, sortDefinition?: SortFieldsDefinitionBuilder<string>) => Promise<PaginatedList<T>>;
|
|
11405
|
+
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
11406
|
+
};
|
|
11407
|
+
}
|
|
11408
|
+
declare module "libs/reach/feature/content/src/common/hooks/useContainerDimensions" {
|
|
11409
|
+
export interface Size {
|
|
11410
|
+
width: number;
|
|
11411
|
+
height: number;
|
|
11412
|
+
}
|
|
11413
|
+
export function useContainerDimensions(): [Size, any];
|
|
11414
|
+
}
|
|
11415
|
+
declare module "libs/reach/feature/content/src/common/hooks/index" {
|
|
11416
|
+
export * from "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTracking";
|
|
11417
|
+
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
11418
|
+
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
11419
|
+
export * from "libs/reach/feature/content/src/common/hooks/useContainerDimensions";
|
|
11420
|
+
export * from "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator";
|
|
11421
|
+
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
11422
|
+
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
11423
|
+
export * from "libs/reach/feature/content/src/common/hooks/useResizeObserver";
|
|
11424
|
+
}
|
|
11369
11425
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
11370
11426
|
import { LocationDescriptor } from 'history';
|
|
11371
11427
|
import { FC, ReactNode } from 'react';
|
|
@@ -11539,9 +11595,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11539
11595
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
|
|
11540
11596
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
|
|
11541
11597
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationInfoDescription";
|
|
11542
|
-
export * from "libs/reach/feature/content/src/common/banner/
|
|
11543
|
-
export * from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
11544
|
-
export * from "libs/reach/feature/content/src/common/banner/useImageEditorApi";
|
|
11598
|
+
export * from "libs/reach/feature/content/src/common/banner/index";
|
|
11545
11599
|
export * from "libs/reach/feature/content/src/common/keywords/KeywordsInfo";
|
|
11546
11600
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewMetaInfo";
|
|
11547
11601
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo";
|
|
@@ -11557,8 +11611,6 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11557
11611
|
export * from "libs/reach/feature/content/src/common/body/InlinePageList";
|
|
11558
11612
|
export * from "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb";
|
|
11559
11613
|
export * from "libs/reach/feature/content/src/common/detail/pages/DetailViewPageDocumentDownload";
|
|
11560
|
-
export * from "libs/reach/feature/content/src/common/banner/PublishableItemBanner";
|
|
11561
|
-
export * from "libs/reach/feature/content/src/common/banner/Banner";
|
|
11562
11614
|
export * from "libs/reach/feature/content/src/common/cards/ClickableOverlay";
|
|
11563
11615
|
export * from "libs/reach/feature/content/src/common/cards/Card";
|
|
11564
11616
|
export * from "libs/reach/feature/content/src/common/language-selector/LanguageSelector";
|
|
@@ -11585,11 +11637,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11585
11637
|
export * from "libs/reach/feature/content/src/common/EmbeddedObjectList";
|
|
11586
11638
|
export * from "libs/reach/feature/content/src/common/StateIcon";
|
|
11587
11639
|
export * from "libs/reach/feature/content/src/common/ExternalContentIcon";
|
|
11588
|
-
export * from "libs/reach/feature/content/src/common/hooks/
|
|
11589
|
-
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
11590
|
-
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
11591
|
-
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
11592
|
-
export * from "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTracking";
|
|
11640
|
+
export * from "libs/reach/feature/content/src/common/hooks/index";
|
|
11593
11641
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
11594
11642
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
11595
11643
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|