@livetiles/reach-plugin-types 0.4.3 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +147 -31
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -306,6 +306,7 @@ declare module "libs/shared/util/environment/src/EnvironmentConfig" {
|
|
|
306
306
|
buildId: string;
|
|
307
307
|
useAzureAdFunctionality: boolean;
|
|
308
308
|
envName: string;
|
|
309
|
+
mobileTeamsHost?: string;
|
|
309
310
|
}
|
|
310
311
|
type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown';
|
|
311
312
|
interface DeviceInfo {
|
|
@@ -3078,7 +3079,7 @@ declare module "libs/reach/util/common/src/Variables" {
|
|
|
3078
3079
|
export const videoAttachmentRoundedCornerSize = 20;
|
|
3079
3080
|
export const inlinePageBannerRoundedCornerSize = 5;
|
|
3080
3081
|
export const feedbackButtonHeight = 32;
|
|
3081
|
-
export const mainScrollableContainerSelector = "lt-reach-main-content";
|
|
3082
|
+
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
3082
3083
|
export const statusColors: {
|
|
3083
3084
|
draft: string;
|
|
3084
3085
|
ready: string;
|
|
@@ -3244,6 +3245,35 @@ declare module "libs/reach/util/common/src/ForbiddenErrorTriggerAction" {
|
|
|
3244
3245
|
static create(): GenericAccessDeniedTriggerAction;
|
|
3245
3246
|
}
|
|
3246
3247
|
}
|
|
3248
|
+
declare module "libs/reach/util/common/src/useModalRouting" {
|
|
3249
|
+
export interface ModalRouting {
|
|
3250
|
+
isActive: boolean;
|
|
3251
|
+
itemId: string;
|
|
3252
|
+
backgroundLocation: any;
|
|
3253
|
+
}
|
|
3254
|
+
export function useModalRouting(): {
|
|
3255
|
+
isModalRoutingActive: boolean;
|
|
3256
|
+
modalItemId: string;
|
|
3257
|
+
backgroundLocation: any;
|
|
3258
|
+
};
|
|
3259
|
+
export function useModalRoutingSettings(): (itemId: string) => {
|
|
3260
|
+
modalRouting: {
|
|
3261
|
+
isActive: boolean;
|
|
3262
|
+
itemId: string;
|
|
3263
|
+
backgroundLocation: {
|
|
3264
|
+
state: {
|
|
3265
|
+
modalRouting: {
|
|
3266
|
+
isActive: boolean;
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
pathname: string;
|
|
3270
|
+
search: string;
|
|
3271
|
+
hash: string;
|
|
3272
|
+
key?: string;
|
|
3273
|
+
};
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
}
|
|
3247
3277
|
declare module "libs/reach/util/common/src/index" {
|
|
3248
3278
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3249
3279
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -3271,6 +3301,7 @@ declare module "libs/reach/util/common/src/index" {
|
|
|
3271
3301
|
export * from "libs/reach/util/common/src/useBaseRoute";
|
|
3272
3302
|
export * from "libs/reach/util/common/src/ForbiddenErrorTriggerAction";
|
|
3273
3303
|
export * from "libs/reach/util/common/src/AccessDeniedIntercept";
|
|
3304
|
+
export * from "libs/reach/util/common/src/useModalRouting";
|
|
3274
3305
|
}
|
|
3275
3306
|
declare module "libs/reach/ui/common/src/Link" {
|
|
3276
3307
|
import { Link as RouterLink } from 'react-router-dom';
|
|
@@ -3695,7 +3726,9 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
|
|
|
3695
3726
|
}[]>;
|
|
3696
3727
|
export function getFileIcon(filename: string): string;
|
|
3697
3728
|
export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
|
|
3729
|
+
export function getFileIconHorizontalTransform(fileIcon: string): -55 | -50;
|
|
3698
3730
|
export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
|
|
3731
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
3699
3732
|
}
|
|
3700
3733
|
declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
3701
3734
|
export function useFileAccessTokenApi(): {
|
|
@@ -4005,7 +4038,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
|
|
|
4005
4038
|
export const ToggleWithLabel: FC<IToggleProps>;
|
|
4006
4039
|
}
|
|
4007
4040
|
declare module "libs/reach/ui/common/src/common/UnreadCommentHighlight" {
|
|
4008
|
-
export const unreadCommentHighlight: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4041
|
+
export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4009
4042
|
}
|
|
4010
4043
|
declare module "libs/reach/ui/common/src/common/UserUtility" {
|
|
4011
4044
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -4324,6 +4357,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
|
|
|
4324
4357
|
className?: string;
|
|
4325
4358
|
}>;
|
|
4326
4359
|
}
|
|
4360
|
+
declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
|
|
4361
|
+
export const useIsMounted: () => () => boolean;
|
|
4362
|
+
}
|
|
4327
4363
|
declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
|
|
4328
4364
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4329
4365
|
import { DependencyList, SetStateAction } from 'react';
|
|
@@ -4804,6 +4840,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4804
4840
|
export * from "libs/reach/ui/common/src/common/grid/Grid";
|
|
4805
4841
|
export * from "libs/reach/ui/common/src/common/hooks/usePagination";
|
|
4806
4842
|
export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
|
|
4843
|
+
export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
|
|
4807
4844
|
export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
|
|
4808
4845
|
export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
|
|
4809
4846
|
export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
|
|
@@ -4887,7 +4924,7 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
4887
4924
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
4888
4925
|
}
|
|
4889
4926
|
declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
4890
|
-
import { FC } from 'react';
|
|
4927
|
+
import { FC, DependencyList } from 'react';
|
|
4891
4928
|
export interface Props {
|
|
4892
4929
|
navigateTo: string;
|
|
4893
4930
|
onClose?: () => void;
|
|
@@ -4896,7 +4933,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
|
4896
4933
|
className?: string;
|
|
4897
4934
|
}
|
|
4898
4935
|
export const CloseButton: FC<Props>;
|
|
4899
|
-
export function useEscapeOnClose(onClose: () => void): void;
|
|
4936
|
+
export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
|
|
4900
4937
|
}
|
|
4901
4938
|
declare module "apps/reach-app/src/app/common/LogoStyles" {
|
|
4902
4939
|
export const LogoHostStyle: (size?: {
|
|
@@ -4960,8 +4997,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
|
|
|
4960
4997
|
export const SkipLinksContextProvider: FC;
|
|
4961
4998
|
}
|
|
4962
4999
|
declare module "apps/reach-app/src/app/useAddSkipLinks" {
|
|
5000
|
+
import { DependencyList } from 'react';
|
|
4963
5001
|
import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
|
|
4964
|
-
export function useAddSkipLinks(
|
|
5002
|
+
export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
|
|
4965
5003
|
}
|
|
4966
5004
|
declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
|
|
4967
5005
|
import { FC } from 'react';
|
|
@@ -5012,6 +5050,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
|
|
|
5012
5050
|
closeButtonOptions?: CloseButtonOptions;
|
|
5013
5051
|
showSearchBox?: boolean;
|
|
5014
5052
|
disableScrollableContainerFocus?: boolean;
|
|
5053
|
+
asModal?: boolean;
|
|
5054
|
+
domIdentifier?: string;
|
|
5015
5055
|
}
|
|
5016
5056
|
export const BasicPage: FC<Props>;
|
|
5017
5057
|
}
|
|
@@ -6336,29 +6376,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
|
6336
6376
|
}
|
|
6337
6377
|
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
6338
6378
|
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
6339
|
-
export class
|
|
6379
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
6340
6380
|
static type: string;
|
|
6341
6381
|
type: string;
|
|
6342
6382
|
itemId: string;
|
|
6343
6383
|
response: EventResponse;
|
|
6344
6384
|
locationId: string;
|
|
6345
6385
|
onBehalfOfUpn: string;
|
|
6346
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string):
|
|
6386
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
6347
6387
|
}
|
|
6348
|
-
export class
|
|
6388
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
6349
6389
|
static type: string;
|
|
6350
6390
|
type: string;
|
|
6351
|
-
|
|
6391
|
+
itemId: string;
|
|
6352
6392
|
response: EventResponse;
|
|
6353
|
-
static create(
|
|
6393
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
6354
6394
|
}
|
|
6355
|
-
export class
|
|
6395
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
6356
6396
|
static type: string;
|
|
6357
6397
|
type: string;
|
|
6358
6398
|
recurrenceSeriesId: string;
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
|
|
6399
|
+
response: EventResponse;
|
|
6400
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
6362
6401
|
}
|
|
6363
6402
|
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
6364
6403
|
static type: string;
|
|
@@ -6373,6 +6412,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6373
6412
|
followByDefault: boolean;
|
|
6374
6413
|
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
6375
6414
|
}
|
|
6415
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
6416
|
+
static type: string;
|
|
6417
|
+
type: string;
|
|
6418
|
+
recurrenceSeriesId: string;
|
|
6419
|
+
isLiked: boolean;
|
|
6420
|
+
likeCount: number;
|
|
6421
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
6422
|
+
}
|
|
6376
6423
|
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
6377
6424
|
static type: string;
|
|
6378
6425
|
type: string;
|
|
@@ -6393,6 +6440,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6393
6440
|
type: string;
|
|
6394
6441
|
static create(): StreamMarkAllAsReadAction;
|
|
6395
6442
|
}
|
|
6443
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
6444
|
+
static type: string;
|
|
6445
|
+
type: string;
|
|
6446
|
+
itemId: string;
|
|
6447
|
+
static create(itemId: string): RefetchItemAction;
|
|
6448
|
+
}
|
|
6449
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
6450
|
+
static type: string;
|
|
6451
|
+
type: string;
|
|
6452
|
+
itemId: string;
|
|
6453
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
6454
|
+
}
|
|
6396
6455
|
}
|
|
6397
6456
|
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
6398
6457
|
export interface CommentFilter {
|
|
@@ -6552,7 +6611,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6552
6611
|
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
6553
6612
|
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
6554
6613
|
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
6555
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
|
|
6614
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
6556
6615
|
}
|
|
6557
6616
|
export interface BaseFilterDefinition {
|
|
6558
6617
|
search?: string;
|
|
@@ -6560,6 +6619,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6560
6619
|
pageSize?: string | number;
|
|
6561
6620
|
groupId?: string;
|
|
6562
6621
|
}
|
|
6622
|
+
export interface ItemIdsFilterDefinition {
|
|
6623
|
+
itemIds?: string;
|
|
6624
|
+
}
|
|
6563
6625
|
export interface IndexableFilterDefinition {
|
|
6564
6626
|
[key: string]: any;
|
|
6565
6627
|
}
|
|
@@ -7047,6 +7109,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7047
7109
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7048
7110
|
import { FC, MouseEvent } from 'react';
|
|
7049
7111
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7112
|
+
import { LocationState } from 'history';
|
|
7050
7113
|
export const ClickableOverlay: FC<{
|
|
7051
7114
|
itemId: string;
|
|
7052
7115
|
itemType: ItemResourceTypes;
|
|
@@ -7057,6 +7120,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
7057
7120
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
7058
7121
|
openTargetInNewWindow?: boolean;
|
|
7059
7122
|
isExternalContent?: boolean;
|
|
7123
|
+
locationState?: LocationState;
|
|
7124
|
+
}>;
|
|
7125
|
+
}
|
|
7126
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7127
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7128
|
+
import { FC } from 'react';
|
|
7129
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7130
|
+
itemId: string;
|
|
7131
|
+
itemType: ItemResourceTypes;
|
|
7132
|
+
baseRoute: string;
|
|
7133
|
+
title?: string;
|
|
7134
|
+
isExternalContent?: boolean;
|
|
7135
|
+
targetUrl?: string;
|
|
7060
7136
|
}>;
|
|
7061
7137
|
}
|
|
7062
7138
|
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
@@ -7067,6 +7143,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
7067
7143
|
targetUrl?: string;
|
|
7068
7144
|
readOnly?: boolean;
|
|
7069
7145
|
backgroundColor?: string;
|
|
7146
|
+
enableModalRouting?: boolean;
|
|
7070
7147
|
className?: string;
|
|
7071
7148
|
}>;
|
|
7072
7149
|
}
|
|
@@ -7163,6 +7240,7 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
|
|
|
7163
7240
|
height?: number;
|
|
7164
7241
|
hidePlayerIfActive?: boolean;
|
|
7165
7242
|
className?: string;
|
|
7243
|
+
documentIconName?: string;
|
|
7166
7244
|
}
|
|
7167
7245
|
export const PublishableItemBanner: FC<Props>;
|
|
7168
7246
|
}
|
|
@@ -7401,10 +7479,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
|
|
|
7401
7479
|
}
|
|
7402
7480
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
|
|
7403
7481
|
import { FC } from 'react';
|
|
7482
|
+
import { EventResponse } from "libs/reach/util/common/src/index";
|
|
7404
7483
|
export const EventUserRegistration: FC<{
|
|
7405
7484
|
disabled?: boolean;
|
|
7406
7485
|
hideInfoMessage?: boolean;
|
|
7407
7486
|
showNoRegistrationRequired?: boolean;
|
|
7487
|
+
onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
|
|
7408
7488
|
className?: string;
|
|
7409
7489
|
}>;
|
|
7410
7490
|
}
|
|
@@ -7474,8 +7554,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
|
7474
7554
|
export const CardLikeButton: FC<{
|
|
7475
7555
|
item: NewsItem | EventItem;
|
|
7476
7556
|
itemResourceType: ItemResourceTypes;
|
|
7477
|
-
|
|
7478
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
7557
|
+
onToggleLike?: (isLiked: boolean, likeCount: number) => void;
|
|
7479
7558
|
className?: string;
|
|
7480
7559
|
}>;
|
|
7481
7560
|
}
|
|
@@ -7497,6 +7576,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
|
|
|
7497
7576
|
className?: string;
|
|
7498
7577
|
}>;
|
|
7499
7578
|
}
|
|
7579
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
7580
|
+
import { FC } from 'react';
|
|
7581
|
+
export const LinkWithModalRouting: FC<{
|
|
7582
|
+
url: string;
|
|
7583
|
+
itemId: string;
|
|
7584
|
+
hash?: string;
|
|
7585
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
7586
|
+
ariaHidden?: boolean;
|
|
7587
|
+
ariaLabel?: string;
|
|
7588
|
+
className?: string;
|
|
7589
|
+
}>;
|
|
7590
|
+
}
|
|
7500
7591
|
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
7501
7592
|
import { FC } from 'react';
|
|
7502
7593
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
@@ -7515,6 +7606,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
|
7515
7606
|
allowFilterByChannels?: boolean;
|
|
7516
7607
|
showFeedbackButtons?: boolean;
|
|
7517
7608
|
readOnly?: boolean;
|
|
7609
|
+
enableModalRouting?: boolean;
|
|
7518
7610
|
className?: string;
|
|
7519
7611
|
}>;
|
|
7520
7612
|
}
|
|
@@ -7707,6 +7799,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7707
7799
|
resourceKey?: string;
|
|
7708
7800
|
resourceValues?: string;
|
|
7709
7801
|
className?: string;
|
|
7802
|
+
enableModalRouting?: boolean;
|
|
7803
|
+
itemId?: string;
|
|
7710
7804
|
isOverrideLink: boolean;
|
|
7711
7805
|
}>;
|
|
7712
7806
|
}
|
|
@@ -7766,6 +7860,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
|
7766
7860
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7767
7861
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7768
7862
|
openTargetInNewWindow?: boolean;
|
|
7863
|
+
enableModalRouting?: boolean;
|
|
7769
7864
|
className?: string;
|
|
7770
7865
|
}
|
|
7771
7866
|
export const PageItemTile: FC<Props>;
|
|
@@ -7811,6 +7906,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
7811
7906
|
onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7812
7907
|
styleDefinition?: StyleDefinition;
|
|
7813
7908
|
readOnly?: boolean;
|
|
7909
|
+
enableModalRouting?: boolean;
|
|
7814
7910
|
className?: string;
|
|
7815
7911
|
}
|
|
7816
7912
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -7854,6 +7950,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7854
7950
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7855
7951
|
styleDefinition?: StyleDefinition;
|
|
7856
7952
|
readOnly?: boolean;
|
|
7953
|
+
enableModalRouting?: boolean;
|
|
7857
7954
|
className?: string;
|
|
7858
7955
|
}
|
|
7859
7956
|
export const NewsItemTile: FC<Props>;
|
|
@@ -7879,6 +7976,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
7879
7976
|
previewTheme?: CommentInputTheme;
|
|
7880
7977
|
buttons?: ReactNode;
|
|
7881
7978
|
groupIds?: string[];
|
|
7979
|
+
enableModalRouting?: boolean;
|
|
7882
7980
|
className?: string;
|
|
7883
7981
|
}>;
|
|
7884
7982
|
export const EmbeddedObjectAccessDeniedTile: FC<{
|
|
@@ -7895,6 +7993,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
|
7895
7993
|
attachments: Attachment[];
|
|
7896
7994
|
onDeleteClick?: (attachment: Attachment) => void;
|
|
7897
7995
|
previewTheme?: CommentInputTheme;
|
|
7996
|
+
enableModalRouting?: boolean;
|
|
7898
7997
|
className?: string;
|
|
7899
7998
|
}>;
|
|
7900
7999
|
}
|
|
@@ -8197,6 +8296,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
8197
8296
|
export const EditCommentWithAttachments: FC<Props>;
|
|
8198
8297
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
8199
8298
|
}
|
|
8299
|
+
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
8300
|
+
import { FC } from 'react';
|
|
8301
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8302
|
+
export const BookmarkButton: FC<{
|
|
8303
|
+
item: PublishableItem;
|
|
8304
|
+
isReadOnly?: boolean;
|
|
8305
|
+
className?: string;
|
|
8306
|
+
}>;
|
|
8307
|
+
}
|
|
8200
8308
|
declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
8201
8309
|
import { FC } from 'react';
|
|
8202
8310
|
export const CardStatisticItem: FC<{
|
|
@@ -8214,13 +8322,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
|
8214
8322
|
};
|
|
8215
8323
|
}>;
|
|
8216
8324
|
}
|
|
8217
|
-
declare module "libs/reach/feature/content/src/
|
|
8325
|
+
declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
|
|
8326
|
+
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8218
8327
|
import { FC } from 'react';
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8328
|
+
export const CardCommentButton: FC<{
|
|
8329
|
+
item: NewsItem | EventItem;
|
|
8330
|
+
itemResourceType: ItemResourceTypes;
|
|
8331
|
+
targetRoute: string;
|
|
8332
|
+
enableModalRouting?: boolean;
|
|
8224
8333
|
}>;
|
|
8225
8334
|
}
|
|
8226
8335
|
declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
@@ -8228,11 +8337,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8228
8337
|
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8229
8338
|
export const CardFooter: FC<{
|
|
8230
8339
|
item: NewsItem | EventItem;
|
|
8231
|
-
showComments: boolean;
|
|
8232
8340
|
targetRoute: string;
|
|
8233
8341
|
itemResourceType: ItemResourceTypes;
|
|
8234
|
-
|
|
8235
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
8342
|
+
enableModalRouting?: boolean;
|
|
8236
8343
|
}>;
|
|
8237
8344
|
export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
|
|
8238
8345
|
}
|
|
@@ -8524,7 +8631,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
8524
8631
|
item: NewsItem;
|
|
8525
8632
|
baseRoute: string;
|
|
8526
8633
|
language: string;
|
|
8527
|
-
showComments: boolean;
|
|
8528
8634
|
highlight: boolean;
|
|
8529
8635
|
className?: string;
|
|
8530
8636
|
}
|
|
@@ -9068,6 +9174,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
|
9068
9174
|
readOnly?: boolean;
|
|
9069
9175
|
trimContent?: boolean;
|
|
9070
9176
|
showReplyBox?: boolean;
|
|
9177
|
+
enableModalRouting?: boolean;
|
|
9071
9178
|
className?: string;
|
|
9072
9179
|
}>;
|
|
9073
9180
|
}
|
|
@@ -9090,6 +9197,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9090
9197
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9091
9198
|
readOnly?: boolean;
|
|
9092
9199
|
trimContent?: boolean;
|
|
9200
|
+
enableModalRouting?: boolean;
|
|
9093
9201
|
className?: string;
|
|
9094
9202
|
}
|
|
9095
9203
|
export const CommentList: FC<CommentListProps>;
|
|
@@ -9149,6 +9257,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9149
9257
|
showReplyBox?: boolean;
|
|
9150
9258
|
trimContent?: boolean;
|
|
9151
9259
|
title?: ReactNode;
|
|
9260
|
+
enableModalRouting?: boolean;
|
|
9152
9261
|
className?: string;
|
|
9153
9262
|
};
|
|
9154
9263
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9417,6 +9526,7 @@ declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
|
9417
9526
|
layoutMode?: ItemTileLayoutMode;
|
|
9418
9527
|
bannerDefaultWidth?: number;
|
|
9419
9528
|
showPlaceholderIfNoBannerInfo?: boolean;
|
|
9529
|
+
documentIconName?: string;
|
|
9420
9530
|
}>;
|
|
9421
9531
|
}
|
|
9422
9532
|
declare module "libs/reach/feature/content/src/common/language-selector/LanguageSelector" {
|
|
@@ -9681,7 +9791,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
|
|
|
9681
9791
|
import { FC } from 'react';
|
|
9682
9792
|
export const ContentWithShowMoreButton: FC<{
|
|
9683
9793
|
domIdentifier: string;
|
|
9684
|
-
trimContent
|
|
9794
|
+
trimContent?: boolean;
|
|
9685
9795
|
className?: string;
|
|
9686
9796
|
}>;
|
|
9687
9797
|
}
|
|
@@ -9828,13 +9938,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9828
9938
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
9829
9939
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9830
9940
|
highlight?: boolean;
|
|
9831
|
-
isInitialLiked?: boolean;
|
|
9832
9941
|
hasUnreadReplies?: boolean;
|
|
9833
9942
|
onReplyIconClick?: () => void;
|
|
9834
9943
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9835
9944
|
replyCount?: number;
|
|
9836
9945
|
readOnly?: boolean;
|
|
9837
9946
|
trimContent?: boolean;
|
|
9947
|
+
enableModalRouting?: boolean;
|
|
9838
9948
|
className?: string;
|
|
9839
9949
|
}
|
|
9840
9950
|
export const CommentDisplay: FC<Props>;
|
|
@@ -10062,6 +10172,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10062
10172
|
onReplyAdded: () => void;
|
|
10063
10173
|
onReplyDeleted: () => void;
|
|
10064
10174
|
trimContent?: boolean;
|
|
10175
|
+
enableModalRouting?: boolean;
|
|
10065
10176
|
}
|
|
10066
10177
|
export const PostReplies: FC<Props>;
|
|
10067
10178
|
}
|
|
@@ -10129,6 +10240,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10129
10240
|
baseTargetUrl?: string;
|
|
10130
10241
|
}
|
|
10131
10242
|
export const PostDisplay: FC<Props>;
|
|
10243
|
+
export const PostDisplayWithModalRouting: FC<Props>;
|
|
10132
10244
|
}
|
|
10133
10245
|
declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
|
|
10134
10246
|
import { FC } from 'react';
|
|
@@ -10976,6 +11088,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10976
11088
|
isDemoContent?: boolean;
|
|
10977
11089
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
10978
11090
|
})[];
|
|
11091
|
+
export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
|
|
10979
11092
|
}
|
|
10980
11093
|
declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
10981
11094
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
@@ -11000,6 +11113,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
11000
11113
|
};
|
|
11001
11114
|
refresh: () => Promise<void>;
|
|
11002
11115
|
isLoadingFirstPage: boolean;
|
|
11116
|
+
refetchItem: (itemId: string) => Promise<void>;
|
|
11003
11117
|
};
|
|
11004
11118
|
export function hasFilter(filter?: StreamFilterDefinition): boolean;
|
|
11005
11119
|
export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
@@ -11706,7 +11820,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11706
11820
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
11707
11821
|
import { SearchBoxProps } from "libs/reach/ui/common/src/index";
|
|
11708
11822
|
import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
|
|
11709
|
-
export interface
|
|
11823
|
+
export interface PageProps extends SearchBoxProps {
|
|
11710
11824
|
className?: string;
|
|
11711
11825
|
headerContents?: JSX.Element;
|
|
11712
11826
|
headerToolbar?: HeaderToolbarTypeHack;
|
|
@@ -11724,12 +11838,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11724
11838
|
submenuContents?: JSX.Element;
|
|
11725
11839
|
submenuClassName?: string;
|
|
11726
11840
|
disableScrollableContainerFocus?: boolean;
|
|
11841
|
+
asModal?: boolean;
|
|
11842
|
+
domIdentifier?: string;
|
|
11727
11843
|
}
|
|
11728
11844
|
export enum MenuNavigationMode {
|
|
11729
11845
|
Collapse = 0,
|
|
11730
11846
|
KeepOpen = 1
|
|
11731
11847
|
}
|
|
11732
|
-
export const Page: FC<
|
|
11848
|
+
export const Page: FC<PageProps>;
|
|
11733
11849
|
}
|
|
11734
11850
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11735
11851
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|