@livetiles/reach-plugin-types 0.4.85 → 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 +256 -209
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2297,6 +2297,11 @@ declare module "libs/reach/util/common/src/user/useCurrentUserApi" {
|
|
|
2297
2297
|
deleteCurrentUserAvatar: () => Promise<unknown>;
|
|
2298
2298
|
};
|
|
2299
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
|
+
}
|
|
2300
2305
|
declare module "libs/reach/util/common/src/content/Attachment" {
|
|
2301
2306
|
export enum AttachmentType {
|
|
2302
2307
|
Image = 0,
|
|
@@ -3164,13 +3169,6 @@ declare module "libs/reach/util/common/src/user/useSubscriptionWebAppUrl" {
|
|
|
3164
3169
|
export function useSubscriptionWebAppUrl(): string;
|
|
3165
3170
|
export function useSubscriptionWebAppUrls(): string[];
|
|
3166
3171
|
}
|
|
3167
|
-
declare module "libs/reach/util/common/src/user/useChannelsApi" {
|
|
3168
|
-
import { Channel } from "libs/reach/util/common/src/user/Channel";
|
|
3169
|
-
export function useChannelsApi(): {
|
|
3170
|
-
getChannels: () => Promise<Channel[]>;
|
|
3171
|
-
getChannelsByItemId: (id: string, route?: string) => Promise<Channel[]>;
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
3172
|
declare module "libs/reach/util/common/src/user/index" {
|
|
3175
3173
|
export * from "libs/reach/util/common/src/user/features/FeatureSet";
|
|
3176
3174
|
export * from "libs/reach/util/common/src/user/features/WithFeatures";
|
|
@@ -3189,6 +3187,7 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
3189
3187
|
export * from "libs/reach/util/common/src/user/useAccountApi";
|
|
3190
3188
|
export * from "libs/reach/util/common/src/user/useCurrentUser";
|
|
3191
3189
|
export * from "libs/reach/util/common/src/user/useCurrentUserApi";
|
|
3190
|
+
export * from "libs/reach/util/common/src/user/useCachedCurrentUserApi";
|
|
3192
3191
|
export * from "libs/reach/util/common/src/user/useManageCurrentUserApi";
|
|
3193
3192
|
export * from "libs/reach/util/common/src/user/useUserAdminApi";
|
|
3194
3193
|
export * from "libs/reach/util/common/src/user/CurrentUserDetailContextProvider";
|
|
@@ -3196,7 +3195,6 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
3196
3195
|
export * from "libs/reach/util/common/src/user/useSubscriptionHandlePathBuilder";
|
|
3197
3196
|
export * from "libs/reach/util/common/src/user/CurrentUserContext";
|
|
3198
3197
|
export * from "libs/reach/util/common/src/user/useSubscriptionWebAppUrl";
|
|
3199
|
-
export * from "libs/reach/util/common/src/user/useChannelsApi";
|
|
3200
3198
|
export * from "libs/reach/util/common/src/user/LanguageUtils";
|
|
3201
3199
|
export * from "libs/reach/util/common/src/user/content-languages-util";
|
|
3202
3200
|
}
|
|
@@ -3618,6 +3616,32 @@ declare module "libs/reach/util/common/src/notification/index" {
|
|
|
3618
3616
|
export * from "libs/reach/util/common/src/notification/NotificationContext";
|
|
3619
3617
|
export * from "libs/reach/util/common/src/notification/ToastNotificationHost";
|
|
3620
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
|
+
}
|
|
3621
3645
|
declare module "libs/reach/util/common/src/subscription/EnforcedSubscriptionContextProvider" {
|
|
3622
3646
|
import { FC, ReactNode } from 'react';
|
|
3623
3647
|
export const EnforcedSubscriptionContextProvider: FC<{
|
|
@@ -3644,10 +3668,11 @@ declare module "libs/reach/util/common/src/subscription/SubscriptionContext" {
|
|
|
3644
3668
|
refreshSubscription: () => void;
|
|
3645
3669
|
}>;
|
|
3646
3670
|
export const LazySubscriptionContextProvider: FC;
|
|
3671
|
+
export const LazyCachedSubscriptionContextProvider: FC;
|
|
3647
3672
|
export const LazySubscriptionContextProviderBase: FC<{
|
|
3648
|
-
getChannels: () => Promise<Channel[]>;
|
|
3649
|
-
getAllKeywords: (force?: boolean) => Promise<Keyword[]>;
|
|
3650
|
-
getSelectedGroups: () => Promise<KeywordGroup[]>;
|
|
3673
|
+
getChannels: (subscriptionId: string) => Promise<Channel[]>;
|
|
3674
|
+
getAllKeywords: (subscriptionId: string, force?: boolean) => Promise<Keyword[]>;
|
|
3675
|
+
getSelectedGroups: (subscriptionId: string) => Promise<KeywordGroup[]>;
|
|
3651
3676
|
}>;
|
|
3652
3677
|
}
|
|
3653
3678
|
declare module "libs/reach/util/common/src/subscription/useSubscriptionApi" {
|
|
@@ -3739,6 +3764,10 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3739
3764
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3740
3765
|
}
|
|
3741
3766
|
}
|
|
3767
|
+
declare module "libs/reach/util/common/src/ReachQueryClient" {
|
|
3768
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3769
|
+
export const ReachQueryClient: QueryClient;
|
|
3770
|
+
}
|
|
3742
3771
|
declare module "libs/reach/util/common/src/index" {
|
|
3743
3772
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3744
3773
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3755,7 +3784,8 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3755
3784
|
export * from "libs/reach/util/common/src/content/index";
|
|
3756
3785
|
export * from "libs/reach/util/common/src/notification/index";
|
|
3757
3786
|
export * from "libs/reach/util/common/src/Variables";
|
|
3758
|
-
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";
|
|
3759
3789
|
export * from "libs/reach/util/common/src/subscription/index";
|
|
3760
3790
|
export * from "libs/reach/util/common/src/AppTrigger";
|
|
3761
3791
|
export * from "libs/reach/util/common/src/BackbuttonListenerUtil";
|
|
@@ -3770,6 +3800,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3770
3800
|
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3771
3801
|
export * from "libs/reach/util/common/src/analytics/index";
|
|
3772
3802
|
export * from "libs/reach/util/common/src/common-utils";
|
|
3803
|
+
export * from "libs/reach/util/common/src/ReachQueryClient";
|
|
3773
3804
|
}
|
|
3774
3805
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3775
3806
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -7868,77 +7899,6 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7868
7899
|
onChannelClick?: (channel: string) => unknown;
|
|
7869
7900
|
}>;
|
|
7870
7901
|
}
|
|
7871
|
-
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
7872
|
-
import { FC } from 'react';
|
|
7873
|
-
interface BannerImageProps {
|
|
7874
|
-
children?: any;
|
|
7875
|
-
className?: string;
|
|
7876
|
-
imageUrl: string;
|
|
7877
|
-
openImageUrl?: string;
|
|
7878
|
-
altText?: string;
|
|
7879
|
-
}
|
|
7880
|
-
export const BannerImage: FC<BannerImageProps>;
|
|
7881
|
-
}
|
|
7882
|
-
declare module "libs/reach/feature/content/src/common/banner/ImageDetail" {
|
|
7883
|
-
import { Observable } from 'rxjs';
|
|
7884
|
-
export type ImageVariant = 'original' | 'default';
|
|
7885
|
-
export interface ImageCreate {
|
|
7886
|
-
itemId: string;
|
|
7887
|
-
variant: ImageVariant;
|
|
7888
|
-
identifier: string;
|
|
7889
|
-
image: File;
|
|
7890
|
-
}
|
|
7891
|
-
export interface ImageMetaInfo {
|
|
7892
|
-
itemId: string;
|
|
7893
|
-
identifier: string;
|
|
7894
|
-
originalIdentifier?: string;
|
|
7895
|
-
extension: string;
|
|
7896
|
-
mimeType: string;
|
|
7897
|
-
}
|
|
7898
|
-
export interface ImageSaveEvent {
|
|
7899
|
-
(newImage: File, id: string, variant: ImageVariant): Observable<ImageMetaInfo>;
|
|
7900
|
-
}
|
|
7901
|
-
}
|
|
7902
|
-
declare module "libs/reach/feature/content/src/common/banner/useImageEditorApi" {
|
|
7903
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7904
|
-
import { ImageCreate, ImageMetaInfo } from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
7905
|
-
export function useImageEditorApi(): {
|
|
7906
|
-
getImageInfo: (itemId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<ImageMetaInfo>;
|
|
7907
|
-
getImageEditorUrl: (itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => Promise<string>;
|
|
7908
|
-
getOriginalImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes) => string;
|
|
7909
|
-
getImageEditorUrlWithToken: (token: string, itemId: string, subscriptionId: string, identifier: string, resourceType: ItemResourceTypes, width?: number, height?: number) => string;
|
|
7910
|
-
uploadImage: (subscriptionId: string, resourceType: ItemResourceTypes, newImage: ImageCreate) => Promise<ImageMetaInfo>;
|
|
7911
|
-
};
|
|
7912
|
-
}
|
|
7913
|
-
declare module "libs/reach/feature/content/src/common/banner/PublishableItemBanner" {
|
|
7914
|
-
import { FC } from 'react';
|
|
7915
|
-
import { BannerInfo, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7916
|
-
interface Props {
|
|
7917
|
-
itemId: string;
|
|
7918
|
-
bannerInfo: BannerInfo;
|
|
7919
|
-
useEditorRoutes?: boolean;
|
|
7920
|
-
width: number;
|
|
7921
|
-
resourceType: ItemResourceTypes;
|
|
7922
|
-
token?: string;
|
|
7923
|
-
canOpenImage?: boolean;
|
|
7924
|
-
onPlayButtonClick?: () => unknown;
|
|
7925
|
-
height?: number;
|
|
7926
|
-
hidePlayerIfActive?: boolean;
|
|
7927
|
-
className?: string;
|
|
7928
|
-
documentIconName?: string;
|
|
7929
|
-
}
|
|
7930
|
-
export const PublishableItemBanner: FC<Props>;
|
|
7931
|
-
}
|
|
7932
|
-
declare module "libs/reach/feature/content/src/events/list/EventCardBanner" {
|
|
7933
|
-
import { FC } from 'react';
|
|
7934
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
7935
|
-
export const EventCardBanner: FC<{
|
|
7936
|
-
item: EventItem;
|
|
7937
|
-
bannerWidth: number;
|
|
7938
|
-
bannerHostDefaultWidth?: number;
|
|
7939
|
-
showPlaceholder?: boolean;
|
|
7940
|
-
}>;
|
|
7941
|
-
}
|
|
7942
7902
|
declare module "libs/reach/feature/content/src/feedback/FeedbackCountButton" {
|
|
7943
7903
|
import { FC } from 'react';
|
|
7944
7904
|
interface CountButtonProps {
|
|
@@ -8211,28 +8171,6 @@ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModa
|
|
|
8211
8171
|
className?: string;
|
|
8212
8172
|
}>;
|
|
8213
8173
|
}
|
|
8214
|
-
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
8215
|
-
import { FC } from 'react';
|
|
8216
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
8217
|
-
interface StyleDefinition {
|
|
8218
|
-
backgroundColor?: string;
|
|
8219
|
-
noShadow?: boolean;
|
|
8220
|
-
channelsBackgroundColor?: string;
|
|
8221
|
-
bannerHostWidth?: number;
|
|
8222
|
-
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8223
|
-
}
|
|
8224
|
-
export const EventCard: FC<{
|
|
8225
|
-
item: EventItem;
|
|
8226
|
-
language: string;
|
|
8227
|
-
targetUrl?: string;
|
|
8228
|
-
styleDefinition?: StyleDefinition;
|
|
8229
|
-
allowFilterByChannels?: boolean;
|
|
8230
|
-
showFeedbackButtons?: boolean;
|
|
8231
|
-
readOnly?: boolean;
|
|
8232
|
-
enableModalRouting?: boolean;
|
|
8233
|
-
className?: string;
|
|
8234
|
-
}>;
|
|
8235
|
-
}
|
|
8236
8174
|
declare module "libs/reach/feature/content/src/common/body/inline-file-list/InlineFileStyles" {
|
|
8237
8175
|
export const FileListHost: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
8238
8176
|
export const FileListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
@@ -8430,67 +8368,6 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
8430
8368
|
icon?: string;
|
|
8431
8369
|
}>;
|
|
8432
8370
|
}
|
|
8433
|
-
declare module "libs/reach/feature/content/src/common/breadcrumb/utils" {
|
|
8434
|
-
import { IBreadcrumbItem } from 'office-ui-fabric-react';
|
|
8435
|
-
import { MessageDescriptor } from 'react-intl';
|
|
8436
|
-
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
8437
|
-
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): {
|
|
8438
|
-
breadcrumbItems: IBreadcrumbItem[];
|
|
8439
|
-
ancestors: {
|
|
8440
|
-
title: string;
|
|
8441
|
-
id: string;
|
|
8442
|
-
}[];
|
|
8443
|
-
parentNode: {
|
|
8444
|
-
title: string;
|
|
8445
|
-
id: string;
|
|
8446
|
-
};
|
|
8447
|
-
};
|
|
8448
|
-
}
|
|
8449
|
-
declare module "libs/reach/feature/content/src/common/breadcrumb/ListItemBreadcrumb" {
|
|
8450
|
-
import { FC } from 'react';
|
|
8451
|
-
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8452
|
-
export const ListItemBreadcrumb: FC<{
|
|
8453
|
-
page: PageItem;
|
|
8454
|
-
language?: string;
|
|
8455
|
-
className?: string;
|
|
8456
|
-
}>;
|
|
8457
|
-
}
|
|
8458
|
-
declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
8459
|
-
import { FC, ReactNode } from 'react';
|
|
8460
|
-
import { PageItem } from "libs/reach/util/common/src/index";
|
|
8461
|
-
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
|
|
8462
|
-
interface StyleDefinition {
|
|
8463
|
-
backgroundColor?: string;
|
|
8464
|
-
bannerDefaultWidth: number;
|
|
8465
|
-
bannerFontSize?: number;
|
|
8466
|
-
applyRoundedCorners?: boolean;
|
|
8467
|
-
height?: number;
|
|
8468
|
-
titleFontSize?: number;
|
|
8469
|
-
titleMargin?: string;
|
|
8470
|
-
contentPadding?: string;
|
|
8471
|
-
}
|
|
8472
|
-
interface Props {
|
|
8473
|
-
item: PageItem;
|
|
8474
|
-
baseRoute: string;
|
|
8475
|
-
targetUrl?: string;
|
|
8476
|
-
layoutMode?: ItemTileLayoutMode;
|
|
8477
|
-
filterBaseUrl?: string;
|
|
8478
|
-
styleDefinition?: StyleDefinition;
|
|
8479
|
-
readOnly?: boolean;
|
|
8480
|
-
additionalMetadata?: ReactNode;
|
|
8481
|
-
buttons?: ReactNode;
|
|
8482
|
-
additionalContent?: ReactNode;
|
|
8483
|
-
showBannerPlaceholder?: boolean;
|
|
8484
|
-
showBreadcrumb?: boolean;
|
|
8485
|
-
showIntro?: boolean;
|
|
8486
|
-
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
8487
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
8488
|
-
openTargetInNewWindow?: boolean;
|
|
8489
|
-
enableModalRouting?: boolean;
|
|
8490
|
-
className?: string;
|
|
8491
|
-
}
|
|
8492
|
-
export const PageItemTile: FC<Props>;
|
|
8493
|
-
}
|
|
8494
8371
|
declare module "libs/reach/feature/content/src/common/ContentUtils" {
|
|
8495
8372
|
import { EventItem, ImageDetails, NewsItem } from "libs/reach/util/common/src/index";
|
|
8496
8373
|
import { IntlShape } from 'react-intl';
|
|
@@ -8517,7 +8394,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
8517
8394
|
backgroundColor?: string;
|
|
8518
8395
|
noShadow?: boolean;
|
|
8519
8396
|
channelsBackgroundColor?: string;
|
|
8520
|
-
|
|
8397
|
+
bannerContainerDefaultWidth?: number;
|
|
8521
8398
|
showChannelsToTheRight?: boolean;
|
|
8522
8399
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8523
8400
|
}
|
|
@@ -8533,6 +8410,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
8533
8410
|
styleDefinition?: StyleDefinition;
|
|
8534
8411
|
readOnly?: boolean;
|
|
8535
8412
|
enableModalRouting?: boolean;
|
|
8413
|
+
showBanner?: boolean;
|
|
8414
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
8536
8415
|
className?: string;
|
|
8537
8416
|
}
|
|
8538
8417
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -8558,7 +8437,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
8558
8437
|
backgroundColor?: string;
|
|
8559
8438
|
noShadow?: boolean;
|
|
8560
8439
|
channelsBackgroundColor?: string;
|
|
8561
|
-
|
|
8440
|
+
bannerContainerDefaultWidth?: number;
|
|
8562
8441
|
showChannelsToTheRight?: boolean;
|
|
8563
8442
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
8564
8443
|
}
|
|
@@ -8578,10 +8457,174 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
8578
8457
|
readOnly?: boolean;
|
|
8579
8458
|
enableModalRouting?: boolean;
|
|
8580
8459
|
highlight?: boolean;
|
|
8460
|
+
showBanner?: boolean;
|
|
8461
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
8581
8462
|
className?: string;
|
|
8582
8463
|
}
|
|
8583
8464
|
export const NewsItemTile: FC<Props>;
|
|
8584
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
|
+
}
|
|
8585
8628
|
declare module "libs/reach/feature/content/src/pages/DocumentDownloadButton" {
|
|
8586
8629
|
import { FC, MouseEvent } from 'react';
|
|
8587
8630
|
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
@@ -9340,7 +9383,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
9340
9383
|
backgroundColor?: string;
|
|
9341
9384
|
noShadow?: boolean;
|
|
9342
9385
|
channelsBackgroundColor?: string;
|
|
9343
|
-
|
|
9386
|
+
bannerContainerDefaultWidth?: number;
|
|
9344
9387
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9345
9388
|
}
|
|
9346
9389
|
interface Props {
|
|
@@ -9352,6 +9395,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
9352
9395
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
9353
9396
|
onChannelClick?: (channel: string) => unknown;
|
|
9354
9397
|
styleDefinition?: StyleDefinition;
|
|
9398
|
+
showBanner?: boolean;
|
|
9399
|
+
showBannerAlwaysOnTheLeft?: boolean;
|
|
9355
9400
|
className?: string;
|
|
9356
9401
|
}
|
|
9357
9402
|
export const EventItemTile: FC<Props>;
|
|
@@ -9603,6 +9648,13 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectPluginVie
|
|
|
9603
9648
|
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9604
9649
|
export const InlineObjectPluginMapper: HtmlComponentMapper;
|
|
9605
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
|
+
}
|
|
9606
9658
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewPeopleInfo" {
|
|
9607
9659
|
import { FC } from 'react';
|
|
9608
9660
|
export const EventDetailViewPeopleInfo: FC;
|
|
@@ -10175,20 +10227,6 @@ declare module "libs/reach/feature/content/src/common/detail/pages/DetailViewPag
|
|
|
10175
10227
|
basePath?: string;
|
|
10176
10228
|
}>;
|
|
10177
10229
|
}
|
|
10178
|
-
declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
10179
|
-
import { FC } from 'react';
|
|
10180
|
-
import { ItemResourceTypes, SchedulableItem } from "libs/reach/util/common/src/index";
|
|
10181
|
-
import { ItemTileLayoutMode } from "libs/reach/feature/content/src/index";
|
|
10182
|
-
export const Banner: FC<{
|
|
10183
|
-
item: SchedulableItem;
|
|
10184
|
-
token: string;
|
|
10185
|
-
resourceType: ItemResourceTypes;
|
|
10186
|
-
layoutMode?: ItemTileLayoutMode;
|
|
10187
|
-
bannerDefaultWidth?: number;
|
|
10188
|
-
showPlaceholderIfNoBannerInfo?: boolean;
|
|
10189
|
-
documentIconName?: string;
|
|
10190
|
-
}>;
|
|
10191
|
-
}
|
|
10192
10230
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
10193
10231
|
import { FC } from 'react';
|
|
10194
10232
|
interface LanguageSelectorProps {
|
|
@@ -10320,22 +10358,6 @@ declare module "libs/reach/feature/content/src/common/StateIcon" {
|
|
|
10320
10358
|
activeColor?: string;
|
|
10321
10359
|
}>;
|
|
10322
10360
|
}
|
|
10323
|
-
declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
|
|
10324
|
-
import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
|
|
10325
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
10326
|
-
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
10327
|
-
export function useCommonEditorApi(): {
|
|
10328
|
-
list: <T>(type: ItemResourceTypes, filter?: NewsFilterDefinition, token?: string, sortDefinition?: SortFieldsDefinitionBuilder<string>) => Promise<PaginatedList<T>>;
|
|
10329
|
-
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
10330
|
-
};
|
|
10331
|
-
}
|
|
10332
|
-
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
10333
|
-
interface IClickHandles {
|
|
10334
|
-
onInsideClick: () => void;
|
|
10335
|
-
onOutsideClick: () => void;
|
|
10336
|
-
}
|
|
10337
|
-
export function useClickOutside<T extends HTMLElement>(componentInstanceId: string, { onInsideClick, onOutsideClick }: IClickHandles): import("react").MutableRefObject<T>;
|
|
10338
|
-
}
|
|
10339
10361
|
declare module "libs/reach/feature/content/src/posts/GroupNotificationsSettings" {
|
|
10340
10362
|
import { FC } from 'react';
|
|
10341
10363
|
export const GroupNotificationsSettings: FC<{
|
|
@@ -11367,6 +11389,39 @@ declare module "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTr
|
|
|
11367
11389
|
export function useAnalyticsSearchTracking(items?: (PublishableItem | Post | StreamItem)[], disableTracking?: boolean, itemType?: ItemResourceTypes): void;
|
|
11368
11390
|
export function useClearSearchSessionOnLeave(): void;
|
|
11369
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
|
+
}
|
|
11370
11425
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
11371
11426
|
import { LocationDescriptor } from 'history';
|
|
11372
11427
|
import { FC, ReactNode } from 'react';
|
|
@@ -11540,9 +11595,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11540
11595
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo";
|
|
11541
11596
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton";
|
|
11542
11597
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationInfoDescription";
|
|
11543
|
-
export * from "libs/reach/feature/content/src/common/banner/
|
|
11544
|
-
export * from "libs/reach/feature/content/src/common/banner/ImageDetail";
|
|
11545
|
-
export * from "libs/reach/feature/content/src/common/banner/useImageEditorApi";
|
|
11598
|
+
export * from "libs/reach/feature/content/src/common/banner/index";
|
|
11546
11599
|
export * from "libs/reach/feature/content/src/common/keywords/KeywordsInfo";
|
|
11547
11600
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewMetaInfo";
|
|
11548
11601
|
export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo";
|
|
@@ -11558,8 +11611,6 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11558
11611
|
export * from "libs/reach/feature/content/src/common/body/InlinePageList";
|
|
11559
11612
|
export * from "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb";
|
|
11560
11613
|
export * from "libs/reach/feature/content/src/common/detail/pages/DetailViewPageDocumentDownload";
|
|
11561
|
-
export * from "libs/reach/feature/content/src/common/banner/PublishableItemBanner";
|
|
11562
|
-
export * from "libs/reach/feature/content/src/common/banner/Banner";
|
|
11563
11614
|
export * from "libs/reach/feature/content/src/common/cards/ClickableOverlay";
|
|
11564
11615
|
export * from "libs/reach/feature/content/src/common/cards/Card";
|
|
11565
11616
|
export * from "libs/reach/feature/content/src/common/language-selector/LanguageSelector";
|
|
@@ -11586,11 +11637,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
11586
11637
|
export * from "libs/reach/feature/content/src/common/EmbeddedObjectList";
|
|
11587
11638
|
export * from "libs/reach/feature/content/src/common/StateIcon";
|
|
11588
11639
|
export * from "libs/reach/feature/content/src/common/ExternalContentIcon";
|
|
11589
|
-
export * from "libs/reach/feature/content/src/common/hooks/
|
|
11590
|
-
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
11591
|
-
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
11592
|
-
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
11593
|
-
export * from "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTracking";
|
|
11640
|
+
export * from "libs/reach/feature/content/src/common/hooks/index";
|
|
11594
11641
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
11595
11642
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
11596
11643
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|