@livetiles/reach-plugin-types 0.4.1 → 0.4.4
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 +144 -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';
|
|
@@ -3696,6 +3727,7 @@ declare module "libs/reach/ui/common/src/common/UiUtils" {
|
|
|
3696
3727
|
export function getFileIcon(filename: string): string;
|
|
3697
3728
|
export function getIconColor(fileIcon: string): "#1C5FC0" | "#138147" | "#CA4B27" | "#1C5FBF" | "#CF1700" | "#000";
|
|
3698
3729
|
export function getFileIconByExtension(extension: string): "Page" | "Video" | "MusicInCollectionFill" | "VisioDocument" | "ZipFolder" | "PDF" | "WordDocument" | "ExcelDocument" | "PowerPointDocument" | "FileImage";
|
|
3730
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
3699
3731
|
}
|
|
3700
3732
|
declare module "libs/reach/ui/common/src/common/useFileAccessTokenApi" {
|
|
3701
3733
|
export function useFileAccessTokenApi(): {
|
|
@@ -4005,7 +4037,7 @@ declare module "libs/reach/ui/common/src/common/ToggleWithLabel" {
|
|
|
4005
4037
|
export const ToggleWithLabel: FC<IToggleProps>;
|
|
4006
4038
|
}
|
|
4007
4039
|
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>>;
|
|
4040
|
+
export const unreadCommentHighlight: (top?: string) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
4009
4041
|
}
|
|
4010
4042
|
declare module "libs/reach/ui/common/src/common/UserUtility" {
|
|
4011
4043
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
|
|
@@ -4324,6 +4356,9 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
|
|
|
4324
4356
|
className?: string;
|
|
4325
4357
|
}>;
|
|
4326
4358
|
}
|
|
4359
|
+
declare module "libs/reach/ui/common/src/common/hooks/useIsMounted" {
|
|
4360
|
+
export const useIsMounted: () => () => boolean;
|
|
4361
|
+
}
|
|
4327
4362
|
declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
|
|
4328
4363
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4329
4364
|
import { DependencyList, SetStateAction } from 'react';
|
|
@@ -4804,6 +4839,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
4804
4839
|
export * from "libs/reach/ui/common/src/common/grid/Grid";
|
|
4805
4840
|
export * from "libs/reach/ui/common/src/common/hooks/usePagination";
|
|
4806
4841
|
export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
|
|
4842
|
+
export * from "libs/reach/ui/common/src/common/hooks/useIsMounted";
|
|
4807
4843
|
export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
|
|
4808
4844
|
export * from "libs/reach/ui/common/src/common/inlineObjectsClassNames";
|
|
4809
4845
|
export * from "libs/reach/ui/common/src/common/isNullOrWhitespaceUtil";
|
|
@@ -4887,7 +4923,7 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
4887
4923
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
4888
4924
|
}
|
|
4889
4925
|
declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
4890
|
-
import { FC } from 'react';
|
|
4926
|
+
import { FC, DependencyList } from 'react';
|
|
4891
4927
|
export interface Props {
|
|
4892
4928
|
navigateTo: string;
|
|
4893
4929
|
onClose?: () => void;
|
|
@@ -4896,7 +4932,7 @@ declare module "apps/reach-app/src/app/chrome/CloseButton" {
|
|
|
4896
4932
|
className?: string;
|
|
4897
4933
|
}
|
|
4898
4934
|
export const CloseButton: FC<Props>;
|
|
4899
|
-
export function useEscapeOnClose(onClose: () => void): void;
|
|
4935
|
+
export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
|
|
4900
4936
|
}
|
|
4901
4937
|
declare module "apps/reach-app/src/app/common/LogoStyles" {
|
|
4902
4938
|
export const LogoHostStyle: (size?: {
|
|
@@ -4960,8 +4996,9 @@ declare module "apps/reach-app/src/app/SkipLinksContext" {
|
|
|
4960
4996
|
export const SkipLinksContextProvider: FC;
|
|
4961
4997
|
}
|
|
4962
4998
|
declare module "apps/reach-app/src/app/useAddSkipLinks" {
|
|
4999
|
+
import { DependencyList } from 'react';
|
|
4963
5000
|
import { SkipLink } from "apps/reach-app/src/app/SkipLinksContext";
|
|
4964
|
-
export function useAddSkipLinks(
|
|
5001
|
+
export function useAddSkipLinks(skipLinks: SkipLink[], deps?: DependencyList): void;
|
|
4965
5002
|
}
|
|
4966
5003
|
declare module "apps/reach-app/src/app/chrome/MainContentPanel" {
|
|
4967
5004
|
import { FC } from 'react';
|
|
@@ -5012,6 +5049,8 @@ declare module "apps/reach-app/src/app/chrome/BasicPage" {
|
|
|
5012
5049
|
closeButtonOptions?: CloseButtonOptions;
|
|
5013
5050
|
showSearchBox?: boolean;
|
|
5014
5051
|
disableScrollableContainerFocus?: boolean;
|
|
5052
|
+
asModal?: boolean;
|
|
5053
|
+
domIdentifier?: string;
|
|
5015
5054
|
}
|
|
5016
5055
|
export const BasicPage: FC<Props>;
|
|
5017
5056
|
}
|
|
@@ -6336,29 +6375,28 @@ declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
|
6336
6375
|
}
|
|
6337
6376
|
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
6338
6377
|
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
6339
|
-
export class
|
|
6378
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
6340
6379
|
static type: string;
|
|
6341
6380
|
type: string;
|
|
6342
6381
|
itemId: string;
|
|
6343
6382
|
response: EventResponse;
|
|
6344
6383
|
locationId: string;
|
|
6345
6384
|
onBehalfOfUpn: string;
|
|
6346
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string):
|
|
6385
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
6347
6386
|
}
|
|
6348
|
-
export class
|
|
6387
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
6349
6388
|
static type: string;
|
|
6350
6389
|
type: string;
|
|
6351
|
-
|
|
6390
|
+
itemId: string;
|
|
6352
6391
|
response: EventResponse;
|
|
6353
|
-
static create(
|
|
6392
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
6354
6393
|
}
|
|
6355
|
-
export class
|
|
6394
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
6356
6395
|
static type: string;
|
|
6357
6396
|
type: string;
|
|
6358
6397
|
recurrenceSeriesId: string;
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
static create(recurrenceSeriesId: string, itemId: string, isLiked: boolean): LikeFullSeriesTriggerAction;
|
|
6398
|
+
response: EventResponse;
|
|
6399
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
6362
6400
|
}
|
|
6363
6401
|
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
6364
6402
|
static type: string;
|
|
@@ -6373,6 +6411,14 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6373
6411
|
followByDefault: boolean;
|
|
6374
6412
|
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
6375
6413
|
}
|
|
6414
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
6415
|
+
static type: string;
|
|
6416
|
+
type: string;
|
|
6417
|
+
recurrenceSeriesId: string;
|
|
6418
|
+
isLiked: boolean;
|
|
6419
|
+
likeCount: number;
|
|
6420
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
6421
|
+
}
|
|
6376
6422
|
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
6377
6423
|
static type: string;
|
|
6378
6424
|
type: string;
|
|
@@ -6393,6 +6439,18 @@ declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
|
6393
6439
|
type: string;
|
|
6394
6440
|
static create(): StreamMarkAllAsReadAction;
|
|
6395
6441
|
}
|
|
6442
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
6443
|
+
static type: string;
|
|
6444
|
+
type: string;
|
|
6445
|
+
itemId: string;
|
|
6446
|
+
static create(itemId: string): RefetchItemAction;
|
|
6447
|
+
}
|
|
6448
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
6449
|
+
static type: string;
|
|
6450
|
+
type: string;
|
|
6451
|
+
itemId: string;
|
|
6452
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
6453
|
+
}
|
|
6396
6454
|
}
|
|
6397
6455
|
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
6398
6456
|
export interface CommentFilter {
|
|
@@ -6552,7 +6610,7 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6552
6610
|
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
6553
6611
|
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
6554
6612
|
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
6555
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition {
|
|
6613
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
6556
6614
|
}
|
|
6557
6615
|
export interface BaseFilterDefinition {
|
|
6558
6616
|
search?: string;
|
|
@@ -6560,6 +6618,9 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6560
6618
|
pageSize?: string | number;
|
|
6561
6619
|
groupId?: string;
|
|
6562
6620
|
}
|
|
6621
|
+
export interface ItemIdsFilterDefinition {
|
|
6622
|
+
itemIds?: string;
|
|
6623
|
+
}
|
|
6563
6624
|
export interface IndexableFilterDefinition {
|
|
6564
6625
|
[key: string]: any;
|
|
6565
6626
|
}
|
|
@@ -7047,6 +7108,7 @@ declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
|
7047
7108
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7048
7109
|
import { FC, MouseEvent } from 'react';
|
|
7049
7110
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7111
|
+
import { LocationState } from 'history';
|
|
7050
7112
|
export const ClickableOverlay: FC<{
|
|
7051
7113
|
itemId: string;
|
|
7052
7114
|
itemType: ItemResourceTypes;
|
|
@@ -7057,6 +7119,19 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
7057
7119
|
onClick?: (event: MouseEvent<unknown>) => unknown;
|
|
7058
7120
|
openTargetInNewWindow?: boolean;
|
|
7059
7121
|
isExternalContent?: boolean;
|
|
7122
|
+
locationState?: LocationState;
|
|
7123
|
+
}>;
|
|
7124
|
+
}
|
|
7125
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7126
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7127
|
+
import { FC } from 'react';
|
|
7128
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7129
|
+
itemId: string;
|
|
7130
|
+
itemType: ItemResourceTypes;
|
|
7131
|
+
baseRoute: string;
|
|
7132
|
+
title?: string;
|
|
7133
|
+
isExternalContent?: boolean;
|
|
7134
|
+
targetUrl?: string;
|
|
7060
7135
|
}>;
|
|
7061
7136
|
}
|
|
7062
7137
|
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
@@ -7067,6 +7142,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
7067
7142
|
targetUrl?: string;
|
|
7068
7143
|
readOnly?: boolean;
|
|
7069
7144
|
backgroundColor?: string;
|
|
7145
|
+
enableModalRouting?: boolean;
|
|
7070
7146
|
className?: string;
|
|
7071
7147
|
}>;
|
|
7072
7148
|
}
|
|
@@ -7401,10 +7477,12 @@ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegi
|
|
|
7401
7477
|
}
|
|
7402
7478
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
|
|
7403
7479
|
import { FC } from 'react';
|
|
7480
|
+
import { EventResponse } from "libs/reach/util/common/src/index";
|
|
7404
7481
|
export const EventUserRegistration: FC<{
|
|
7405
7482
|
disabled?: boolean;
|
|
7406
7483
|
hideInfoMessage?: boolean;
|
|
7407
7484
|
showNoRegistrationRequired?: boolean;
|
|
7485
|
+
onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
|
|
7408
7486
|
className?: string;
|
|
7409
7487
|
}>;
|
|
7410
7488
|
}
|
|
@@ -7474,8 +7552,7 @@ declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
|
7474
7552
|
export const CardLikeButton: FC<{
|
|
7475
7553
|
item: NewsItem | EventItem;
|
|
7476
7554
|
itemResourceType: ItemResourceTypes;
|
|
7477
|
-
|
|
7478
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
7555
|
+
onToggleLike?: (isLiked: boolean, likeCount: number) => void;
|
|
7479
7556
|
className?: string;
|
|
7480
7557
|
}>;
|
|
7481
7558
|
}
|
|
@@ -7497,6 +7574,18 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoN
|
|
|
7497
7574
|
className?: string;
|
|
7498
7575
|
}>;
|
|
7499
7576
|
}
|
|
7577
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
7578
|
+
import { FC } from 'react';
|
|
7579
|
+
export const LinkWithModalRouting: FC<{
|
|
7580
|
+
url: string;
|
|
7581
|
+
itemId: string;
|
|
7582
|
+
hash?: string;
|
|
7583
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
7584
|
+
ariaHidden?: boolean;
|
|
7585
|
+
ariaLabel?: string;
|
|
7586
|
+
className?: string;
|
|
7587
|
+
}>;
|
|
7588
|
+
}
|
|
7500
7589
|
declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
7501
7590
|
import { FC } from 'react';
|
|
7502
7591
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
@@ -7515,6 +7604,7 @@ declare module "libs/reach/feature/content/src/events/list/EventCard" {
|
|
|
7515
7604
|
allowFilterByChannels?: boolean;
|
|
7516
7605
|
showFeedbackButtons?: boolean;
|
|
7517
7606
|
readOnly?: boolean;
|
|
7607
|
+
enableModalRouting?: boolean;
|
|
7518
7608
|
className?: string;
|
|
7519
7609
|
}>;
|
|
7520
7610
|
}
|
|
@@ -7707,6 +7797,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/Title" {
|
|
|
7707
7797
|
resourceKey?: string;
|
|
7708
7798
|
resourceValues?: string;
|
|
7709
7799
|
className?: string;
|
|
7800
|
+
enableModalRouting?: boolean;
|
|
7801
|
+
itemId?: string;
|
|
7710
7802
|
isOverrideLink: boolean;
|
|
7711
7803
|
}>;
|
|
7712
7804
|
}
|
|
@@ -7766,6 +7858,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
|
|
|
7766
7858
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7767
7859
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7768
7860
|
openTargetInNewWindow?: boolean;
|
|
7861
|
+
enableModalRouting?: boolean;
|
|
7769
7862
|
className?: string;
|
|
7770
7863
|
}
|
|
7771
7864
|
export const PageItemTile: FC<Props>;
|
|
@@ -7811,6 +7904,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/PublishableItemT
|
|
|
7811
7904
|
onClick?: (event: MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7812
7905
|
styleDefinition?: StyleDefinition;
|
|
7813
7906
|
readOnly?: boolean;
|
|
7907
|
+
enableModalRouting?: boolean;
|
|
7814
7908
|
className?: string;
|
|
7815
7909
|
}
|
|
7816
7910
|
export const PublishableItemTileWrapper: FC<Props>;
|
|
@@ -7854,6 +7948,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7854
7948
|
onKeywordClick?: (keyword: string) => unknown;
|
|
7855
7949
|
styleDefinition?: StyleDefinition;
|
|
7856
7950
|
readOnly?: boolean;
|
|
7951
|
+
enableModalRouting?: boolean;
|
|
7857
7952
|
className?: string;
|
|
7858
7953
|
}
|
|
7859
7954
|
export const NewsItemTile: FC<Props>;
|
|
@@ -7879,6 +7974,7 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
7879
7974
|
previewTheme?: CommentInputTheme;
|
|
7880
7975
|
buttons?: ReactNode;
|
|
7881
7976
|
groupIds?: string[];
|
|
7977
|
+
enableModalRouting?: boolean;
|
|
7882
7978
|
className?: string;
|
|
7883
7979
|
}>;
|
|
7884
7980
|
export const EmbeddedObjectAccessDeniedTile: FC<{
|
|
@@ -7895,6 +7991,7 @@ declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
|
7895
7991
|
attachments: Attachment[];
|
|
7896
7992
|
onDeleteClick?: (attachment: Attachment) => void;
|
|
7897
7993
|
previewTheme?: CommentInputTheme;
|
|
7994
|
+
enableModalRouting?: boolean;
|
|
7898
7995
|
className?: string;
|
|
7899
7996
|
}>;
|
|
7900
7997
|
}
|
|
@@ -8197,6 +8294,15 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
8197
8294
|
export const EditCommentWithAttachments: FC<Props>;
|
|
8198
8295
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
8199
8296
|
}
|
|
8297
|
+
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
8298
|
+
import { FC } from 'react';
|
|
8299
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
8300
|
+
export const BookmarkButton: FC<{
|
|
8301
|
+
item: PublishableItem;
|
|
8302
|
+
isReadOnly?: boolean;
|
|
8303
|
+
className?: string;
|
|
8304
|
+
}>;
|
|
8305
|
+
}
|
|
8200
8306
|
declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
8201
8307
|
import { FC } from 'react';
|
|
8202
8308
|
export const CardStatisticItem: FC<{
|
|
@@ -8214,13 +8320,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
|
|
|
8214
8320
|
};
|
|
8215
8321
|
}>;
|
|
8216
8322
|
}
|
|
8217
|
-
declare module "libs/reach/feature/content/src/
|
|
8323
|
+
declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
|
|
8324
|
+
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8218
8325
|
import { FC } from 'react';
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8326
|
+
export const CardCommentButton: FC<{
|
|
8327
|
+
item: NewsItem | EventItem;
|
|
8328
|
+
itemResourceType: ItemResourceTypes;
|
|
8329
|
+
targetRoute: string;
|
|
8330
|
+
enableModalRouting?: boolean;
|
|
8224
8331
|
}>;
|
|
8225
8332
|
}
|
|
8226
8333
|
declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
@@ -8228,11 +8335,9 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
|
|
|
8228
8335
|
import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8229
8336
|
export const CardFooter: FC<{
|
|
8230
8337
|
item: NewsItem | EventItem;
|
|
8231
|
-
showComments: boolean;
|
|
8232
8338
|
targetRoute: string;
|
|
8233
8339
|
itemResourceType: ItemResourceTypes;
|
|
8234
|
-
|
|
8235
|
-
onLiked?: (isLiked: boolean) => unknown;
|
|
8340
|
+
enableModalRouting?: boolean;
|
|
8236
8341
|
}>;
|
|
8237
8342
|
export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
|
|
8238
8343
|
}
|
|
@@ -8524,7 +8629,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
|
|
|
8524
8629
|
item: NewsItem;
|
|
8525
8630
|
baseRoute: string;
|
|
8526
8631
|
language: string;
|
|
8527
|
-
showComments: boolean;
|
|
8528
8632
|
highlight: boolean;
|
|
8529
8633
|
className?: string;
|
|
8530
8634
|
}
|
|
@@ -9068,6 +9172,7 @@ declare module "libs/reach/feature/content/src/comments/CommentWithReplies" {
|
|
|
9068
9172
|
readOnly?: boolean;
|
|
9069
9173
|
trimContent?: boolean;
|
|
9070
9174
|
showReplyBox?: boolean;
|
|
9175
|
+
enableModalRouting?: boolean;
|
|
9071
9176
|
className?: string;
|
|
9072
9177
|
}>;
|
|
9073
9178
|
}
|
|
@@ -9090,6 +9195,7 @@ declare module "libs/reach/feature/content/src/comments/CommentList" {
|
|
|
9090
9195
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9091
9196
|
readOnly?: boolean;
|
|
9092
9197
|
trimContent?: boolean;
|
|
9198
|
+
enableModalRouting?: boolean;
|
|
9093
9199
|
className?: string;
|
|
9094
9200
|
}
|
|
9095
9201
|
export const CommentList: FC<CommentListProps>;
|
|
@@ -9149,6 +9255,7 @@ declare module "libs/reach/feature/content/src/comments/PagedCommentsSection" {
|
|
|
9149
9255
|
showReplyBox?: boolean;
|
|
9150
9256
|
trimContent?: boolean;
|
|
9151
9257
|
title?: ReactNode;
|
|
9258
|
+
enableModalRouting?: boolean;
|
|
9152
9259
|
className?: string;
|
|
9153
9260
|
};
|
|
9154
9261
|
export const PagedCommentsSection: FC<Props>;
|
|
@@ -9681,7 +9788,7 @@ declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton"
|
|
|
9681
9788
|
import { FC } from 'react';
|
|
9682
9789
|
export const ContentWithShowMoreButton: FC<{
|
|
9683
9790
|
domIdentifier: string;
|
|
9684
|
-
trimContent
|
|
9791
|
+
trimContent?: boolean;
|
|
9685
9792
|
className?: string;
|
|
9686
9793
|
}>;
|
|
9687
9794
|
}
|
|
@@ -9828,13 +9935,13 @@ declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
|
9828
9935
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
9829
9936
|
getHashtagFilterRoute?: (hashtag: string) => string;
|
|
9830
9937
|
highlight?: boolean;
|
|
9831
|
-
isInitialLiked?: boolean;
|
|
9832
9938
|
hasUnreadReplies?: boolean;
|
|
9833
9939
|
onReplyIconClick?: () => void;
|
|
9834
9940
|
onReply?: (comment: Comment, commentSender?: Account) => void;
|
|
9835
9941
|
replyCount?: number;
|
|
9836
9942
|
readOnly?: boolean;
|
|
9837
9943
|
trimContent?: boolean;
|
|
9944
|
+
enableModalRouting?: boolean;
|
|
9838
9945
|
className?: string;
|
|
9839
9946
|
}
|
|
9840
9947
|
export const CommentDisplay: FC<Props>;
|
|
@@ -10062,6 +10169,7 @@ declare module "libs/reach/feature/content/src/posts/PostReplies" {
|
|
|
10062
10169
|
onReplyAdded: () => void;
|
|
10063
10170
|
onReplyDeleted: () => void;
|
|
10064
10171
|
trimContent?: boolean;
|
|
10172
|
+
enableModalRouting?: boolean;
|
|
10065
10173
|
}
|
|
10066
10174
|
export const PostReplies: FC<Props>;
|
|
10067
10175
|
}
|
|
@@ -10129,6 +10237,7 @@ declare module "libs/reach/feature/content/src/posts/PostDisplay" {
|
|
|
10129
10237
|
baseTargetUrl?: string;
|
|
10130
10238
|
}
|
|
10131
10239
|
export const PostDisplay: FC<Props>;
|
|
10240
|
+
export const PostDisplayWithModalRouting: FC<Props>;
|
|
10132
10241
|
}
|
|
10133
10242
|
declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
|
|
10134
10243
|
import { FC } from 'react';
|
|
@@ -10976,6 +11085,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10976
11085
|
isDemoContent?: boolean;
|
|
10977
11086
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
10978
11087
|
})[];
|
|
11088
|
+
export function updateStreamItemStatistics(items: StreamItem[], updatedItem: StreamItem): StreamItem[];
|
|
10979
11089
|
}
|
|
10980
11090
|
declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
10981
11091
|
import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
@@ -11000,6 +11110,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
11000
11110
|
};
|
|
11001
11111
|
refresh: () => Promise<void>;
|
|
11002
11112
|
isLoadingFirstPage: boolean;
|
|
11113
|
+
refetchItem: (itemId: string) => Promise<void>;
|
|
11003
11114
|
};
|
|
11004
11115
|
export function hasFilter(filter?: StreamFilterDefinition): boolean;
|
|
11005
11116
|
export const getStreamQuery: (filter?: StreamFilterDefinition, allChannels?: Channel[]) => DocumentNode;
|
|
@@ -11706,7 +11817,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11706
11817
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
11707
11818
|
import { SearchBoxProps } from "libs/reach/ui/common/src/index";
|
|
11708
11819
|
import { MainContentPanelProps } from "apps/reach-app/src/app/chrome/MainContentPanel";
|
|
11709
|
-
export interface
|
|
11820
|
+
export interface PageProps extends SearchBoxProps {
|
|
11710
11821
|
className?: string;
|
|
11711
11822
|
headerContents?: JSX.Element;
|
|
11712
11823
|
headerToolbar?: HeaderToolbarTypeHack;
|
|
@@ -11724,12 +11835,14 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11724
11835
|
submenuContents?: JSX.Element;
|
|
11725
11836
|
submenuClassName?: string;
|
|
11726
11837
|
disableScrollableContainerFocus?: boolean;
|
|
11838
|
+
asModal?: boolean;
|
|
11839
|
+
domIdentifier?: string;
|
|
11727
11840
|
}
|
|
11728
11841
|
export enum MenuNavigationMode {
|
|
11729
11842
|
Collapse = 0,
|
|
11730
11843
|
KeepOpen = 1
|
|
11731
11844
|
}
|
|
11732
|
-
export const Page: FC<
|
|
11845
|
+
export const Page: FC<PageProps>;
|
|
11733
11846
|
}
|
|
11734
11847
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11735
11848
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|