@livetiles/reach-plugin-types 0.4.0-preview.353 → 0.4.0-preview.356
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 +150 -136
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2299,134 +2299,15 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2299
2299
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2300
2300
|
};
|
|
2301
2301
|
}
|
|
2302
|
-
declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
2303
|
-
export enum GraphQLAttachmentType {
|
|
2304
|
-
Image = "IMAGE",
|
|
2305
|
-
File = "FILE",
|
|
2306
|
-
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
2307
|
-
VimeoVideo = "VIMEO_VIDEO",
|
|
2308
|
-
News = "NEWS",
|
|
2309
|
-
Event = "EVENT",
|
|
2310
|
-
Page = "PAGE",
|
|
2311
|
-
Post = "POST",
|
|
2312
|
-
Giphy = "GIPHY"
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
declare module "libs/reach/util/common/src/Models" {
|
|
2316
|
-
import { BaseAttachment } from "libs/reach/util/common/src/content/Attachment";
|
|
2317
|
-
import { GraphQLAttachmentType } from "libs/reach/util/common/src/content/GraphQLAttachmentType";
|
|
2318
|
-
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2319
|
-
export interface ColorStyleDefinition {
|
|
2320
|
-
backgroundColor: string;
|
|
2321
|
-
color: string;
|
|
2322
|
-
}
|
|
2323
|
-
export interface PageNavigationNodeProps {
|
|
2324
|
-
title?: string;
|
|
2325
|
-
iconName?: string;
|
|
2326
|
-
to?: string;
|
|
2327
|
-
onClick?: () => void;
|
|
2328
|
-
isActive?: boolean;
|
|
2329
|
-
exact?: boolean;
|
|
2330
|
-
cannotBeActive?: boolean;
|
|
2331
|
-
submenuContents?: JSX.Element;
|
|
2332
|
-
submenuStyleDefinition?: ColorStyleDefinition;
|
|
2333
|
-
badgeInfo?: number | boolean;
|
|
2334
|
-
domIdentifier?: string;
|
|
2335
|
-
secondaryIconName?: string;
|
|
2336
|
-
secondaryIconTooltipResourceKey?: string;
|
|
2337
|
-
onSecondaryIconClick?: () => void;
|
|
2338
|
-
iconColor?: string;
|
|
2339
|
-
className?: string;
|
|
2340
|
-
}
|
|
2341
|
-
export interface Chat {
|
|
2342
|
-
id: string;
|
|
2343
|
-
members: (Account & ChatMember)[];
|
|
2344
|
-
memberIds: string[];
|
|
2345
|
-
groupName?: string;
|
|
2346
|
-
lastMessageInfo?: {
|
|
2347
|
-
received: string;
|
|
2348
|
-
senderId: string;
|
|
2349
|
-
content?: string;
|
|
2350
|
-
attachments: ChatAttachment[];
|
|
2351
|
-
deleteDate?: string;
|
|
2352
|
-
deleteState?: DeleteState;
|
|
2353
|
-
messageType?: ChatMessageType;
|
|
2354
|
-
messageValues?: {
|
|
2355
|
-
groupName?: string;
|
|
2356
|
-
userId?: string;
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
|
-
messages: ChatMessage[];
|
|
2360
|
-
hasNewMessages: boolean;
|
|
2361
|
-
fileAccessToken: string;
|
|
2362
|
-
}
|
|
2363
|
-
export enum DeleteState {
|
|
2364
|
-
NotDeleted = "NOT_DELETED",
|
|
2365
|
-
RecycleBin = "RECYCLE_BIN",
|
|
2366
|
-
Deleted = "DELETED"
|
|
2367
|
-
}
|
|
2368
|
-
export enum ChatMessageType {
|
|
2369
|
-
Default = "DEFAULT",
|
|
2370
|
-
GroupNameChange = "GROUP_NAME_CHANGE",
|
|
2371
|
-
UserLeftGroup = "USER_LEFT_GROUP"
|
|
2372
|
-
}
|
|
2373
|
-
export enum MemberStatus {
|
|
2374
|
-
Normal = "NORMAL",
|
|
2375
|
-
LeftGroupChat = "LEFT_GROUP_CHAT",
|
|
2376
|
-
LeftOneToOneChat = "LEFT_ONE_TO_ONE_CHAT"
|
|
2377
|
-
}
|
|
2378
|
-
export interface ChatMember {
|
|
2379
|
-
id?: string;
|
|
2380
|
-
status?: MemberStatus;
|
|
2381
|
-
joinDate?: string;
|
|
2382
|
-
leftDate?: string;
|
|
2383
|
-
}
|
|
2384
|
-
export interface ChatMessage {
|
|
2385
|
-
itemId: string;
|
|
2386
|
-
content: string;
|
|
2387
|
-
senderId?: string;
|
|
2388
|
-
chatId?: string;
|
|
2389
|
-
received?: string;
|
|
2390
|
-
attachments?: ChatAttachment[];
|
|
2391
|
-
attachmentContainerId?: string;
|
|
2392
|
-
fileAccessToken?: string;
|
|
2393
|
-
deleteDate?: string;
|
|
2394
|
-
deleteState?: DeleteState;
|
|
2395
|
-
modifiedDate?: string;
|
|
2396
|
-
chat?: Chat;
|
|
2397
|
-
messageType?: ChatMessageType;
|
|
2398
|
-
messageValues?: {
|
|
2399
|
-
groupName?: string;
|
|
2400
|
-
};
|
|
2401
|
-
}
|
|
2402
|
-
export interface ChatIsTypingInfo {
|
|
2403
|
-
sender: Account;
|
|
2404
|
-
chatId: string;
|
|
2405
|
-
sentOn: string;
|
|
2406
|
-
}
|
|
2407
|
-
export interface ChatView {
|
|
2408
|
-
chatId: string;
|
|
2409
|
-
timestamp: Date;
|
|
2410
|
-
isActive: boolean;
|
|
2411
|
-
}
|
|
2412
|
-
export interface ChatAttachment extends BaseAttachment {
|
|
2413
|
-
type: GraphQLAttachmentType;
|
|
2414
|
-
}
|
|
2415
|
-
}
|
|
2416
2302
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2417
2303
|
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2418
|
-
import { PageNavigationNodeProps } from "libs/reach/util/common/src/Models";
|
|
2419
2304
|
export enum ExtensionArea {
|
|
2420
2305
|
global = "Global",
|
|
2421
2306
|
page = "Page",
|
|
2422
2307
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
2423
2308
|
eventDetailViewSection = "EventDetailViewSection"
|
|
2424
2309
|
}
|
|
2425
|
-
export
|
|
2426
|
-
navigationNodeProps?: PageNavigationNodeProps;
|
|
2427
|
-
renderNavigationNode?: (navigationNodeProps: PageNavigationNodeProps) => JSX.Element;
|
|
2428
|
-
}
|
|
2429
|
-
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2310
|
+
export type PluginAndExtension = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2430
2311
|
type DevPlugin = {
|
|
2431
2312
|
pluginId: string;
|
|
2432
2313
|
port: number;
|
|
@@ -2434,15 +2315,18 @@ declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
|
2434
2315
|
linkPlugin?: boolean;
|
|
2435
2316
|
};
|
|
2436
2317
|
export function usePlugins(): WebPluginDefinition[];
|
|
2437
|
-
export function usePluginExtensions(area?: ExtensionArea):
|
|
2318
|
+
export function usePluginExtensions(area?: ExtensionArea): PluginAndExtension[];
|
|
2438
2319
|
export function removeInjectedRemotePlugin(pluginId: string): void;
|
|
2439
2320
|
export function useInjectedRemotePlugins(): DevPlugin[];
|
|
2440
2321
|
export function useRemotePlugins(): WebPluginDefinition[];
|
|
2441
2322
|
}
|
|
2442
2323
|
declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
2443
2324
|
import { FC } from 'react';
|
|
2444
|
-
import {
|
|
2445
|
-
export const PluginWrapper: FC<
|
|
2325
|
+
import { PluginAndExtension } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2326
|
+
export const PluginWrapper: FC<PluginAndExtension & {
|
|
2327
|
+
navigationNodeProps?: any;
|
|
2328
|
+
renderNavigationNode?: (navigationNodeProps: any) => JSX.Element;
|
|
2329
|
+
}>;
|
|
2446
2330
|
}
|
|
2447
2331
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2448
2332
|
import { FC } from 'react';
|
|
@@ -2594,6 +2478,19 @@ declare module "libs/reach/util/common/src/theme/index" {
|
|
|
2594
2478
|
export * from "libs/reach/util/common/src/theme/ThemeService";
|
|
2595
2479
|
export * from "libs/reach/util/common/src/theme/ColorGenerator";
|
|
2596
2480
|
}
|
|
2481
|
+
declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
2482
|
+
export enum GraphQLAttachmentType {
|
|
2483
|
+
Image = "IMAGE",
|
|
2484
|
+
File = "FILE",
|
|
2485
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
2486
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
2487
|
+
News = "NEWS",
|
|
2488
|
+
Event = "EVENT",
|
|
2489
|
+
Page = "PAGE",
|
|
2490
|
+
Post = "POST",
|
|
2491
|
+
Giphy = "GIPHY"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2597
2494
|
declare module "libs/reach/util/common/src/content/EventItem" {
|
|
2598
2495
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2599
2496
|
import { PollResult } from "libs/reach/util/common/src/content/BaseItem";
|
|
@@ -3059,6 +2956,85 @@ declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
|
3059
2956
|
}
|
|
3060
2957
|
export const MainContentPanelContext: import("react").Context<MainPanelContextType>;
|
|
3061
2958
|
}
|
|
2959
|
+
declare module "libs/reach/util/common/src/Models" {
|
|
2960
|
+
import { BaseAttachment } from "libs/reach/util/common/src/content/Attachment";
|
|
2961
|
+
import { GraphQLAttachmentType } from "libs/reach/util/common/src/content/GraphQLAttachmentType";
|
|
2962
|
+
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2963
|
+
export interface Chat {
|
|
2964
|
+
id: string;
|
|
2965
|
+
members: (Account & ChatMember)[];
|
|
2966
|
+
memberIds: string[];
|
|
2967
|
+
groupName?: string;
|
|
2968
|
+
lastMessageInfo?: {
|
|
2969
|
+
received: string;
|
|
2970
|
+
senderId: string;
|
|
2971
|
+
content?: string;
|
|
2972
|
+
attachments: ChatAttachment[];
|
|
2973
|
+
deleteDate?: string;
|
|
2974
|
+
deleteState?: DeleteState;
|
|
2975
|
+
messageType?: ChatMessageType;
|
|
2976
|
+
messageValues?: {
|
|
2977
|
+
groupName?: string;
|
|
2978
|
+
userId?: string;
|
|
2979
|
+
};
|
|
2980
|
+
};
|
|
2981
|
+
messages: ChatMessage[];
|
|
2982
|
+
hasNewMessages: boolean;
|
|
2983
|
+
fileAccessToken: string;
|
|
2984
|
+
}
|
|
2985
|
+
export enum DeleteState {
|
|
2986
|
+
NotDeleted = "NOT_DELETED",
|
|
2987
|
+
RecycleBin = "RECYCLE_BIN",
|
|
2988
|
+
Deleted = "DELETED"
|
|
2989
|
+
}
|
|
2990
|
+
export enum ChatMessageType {
|
|
2991
|
+
Default = "DEFAULT",
|
|
2992
|
+
GroupNameChange = "GROUP_NAME_CHANGE",
|
|
2993
|
+
UserLeftGroup = "USER_LEFT_GROUP"
|
|
2994
|
+
}
|
|
2995
|
+
export enum MemberStatus {
|
|
2996
|
+
Normal = "NORMAL",
|
|
2997
|
+
LeftGroupChat = "LEFT_GROUP_CHAT",
|
|
2998
|
+
LeftOneToOneChat = "LEFT_ONE_TO_ONE_CHAT"
|
|
2999
|
+
}
|
|
3000
|
+
export interface ChatMember {
|
|
3001
|
+
id?: string;
|
|
3002
|
+
status?: MemberStatus;
|
|
3003
|
+
joinDate?: string;
|
|
3004
|
+
leftDate?: string;
|
|
3005
|
+
}
|
|
3006
|
+
export interface ChatMessage {
|
|
3007
|
+
itemId: string;
|
|
3008
|
+
content: string;
|
|
3009
|
+
senderId?: string;
|
|
3010
|
+
chatId?: string;
|
|
3011
|
+
received?: string;
|
|
3012
|
+
attachments?: ChatAttachment[];
|
|
3013
|
+
attachmentContainerId?: string;
|
|
3014
|
+
fileAccessToken?: string;
|
|
3015
|
+
deleteDate?: string;
|
|
3016
|
+
deleteState?: DeleteState;
|
|
3017
|
+
modifiedDate?: string;
|
|
3018
|
+
chat?: Chat;
|
|
3019
|
+
messageType?: ChatMessageType;
|
|
3020
|
+
messageValues?: {
|
|
3021
|
+
groupName?: string;
|
|
3022
|
+
};
|
|
3023
|
+
}
|
|
3024
|
+
export interface ChatIsTypingInfo {
|
|
3025
|
+
sender: Account;
|
|
3026
|
+
chatId: string;
|
|
3027
|
+
sentOn: string;
|
|
3028
|
+
}
|
|
3029
|
+
export interface ChatView {
|
|
3030
|
+
chatId: string;
|
|
3031
|
+
timestamp: Date;
|
|
3032
|
+
isActive: boolean;
|
|
3033
|
+
}
|
|
3034
|
+
export interface ChatAttachment extends BaseAttachment {
|
|
3035
|
+
type: GraphQLAttachmentType;
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3062
3038
|
declare module "libs/reach/util/common/src/PagingService" {
|
|
3063
3039
|
import { Observable } from 'rxjs';
|
|
3064
3040
|
export const onPageScroll: Observable<number>;
|
|
@@ -3245,7 +3221,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3245
3221
|
export const PeoplePicker: FC<Props>;
|
|
3246
3222
|
}
|
|
3247
3223
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3248
|
-
import { Account, AccountType,
|
|
3224
|
+
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
|
|
3249
3225
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3250
3226
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3251
3227
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3259,7 +3235,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3259
3235
|
import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
|
|
3260
3236
|
import { useAccountApi } from "libs/reach/util/common/src/index";
|
|
3261
3237
|
export { useCurrentUser, useAccountApi, useAuthenticationContext, useEnvironmentConfig, useNotificationContext, usePromise, LinkContext, TextLink, logger, createId, ResourceContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3262
|
-
export type { Account
|
|
3238
|
+
export type { Account };
|
|
3263
3239
|
}
|
|
3264
3240
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3265
3241
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -3628,8 +3604,10 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
|
|
|
3628
3604
|
groupName?: string;
|
|
3629
3605
|
groupId?: string;
|
|
3630
3606
|
keywordName?: string;
|
|
3607
|
+
keywordId?: string;
|
|
3631
3608
|
language?: string;
|
|
3632
3609
|
underlined?: boolean;
|
|
3610
|
+
onClick?: (keyword: string) => unknown;
|
|
3633
3611
|
}
|
|
3634
3612
|
export const KeywordTitle: FC<Props>;
|
|
3635
3613
|
export const GridKeywordTitle: FC<{
|
|
@@ -3940,6 +3918,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
|
|
|
3940
3918
|
language: string;
|
|
3941
3919
|
channelStyleDefinition?: ChannelStyleDefinition;
|
|
3942
3920
|
visibleChannelsCount?: number;
|
|
3921
|
+
onChannelClick?: (channel: string) => unknown;
|
|
3943
3922
|
className?: string;
|
|
3944
3923
|
}>;
|
|
3945
3924
|
}
|
|
@@ -3971,6 +3950,7 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
|
|
|
3971
3950
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
3972
3951
|
language?: string;
|
|
3973
3952
|
channelBackgroundColor?: string;
|
|
3953
|
+
onClick?: (channel: string) => unknown;
|
|
3974
3954
|
className?: string;
|
|
3975
3955
|
}>;
|
|
3976
3956
|
}
|
|
@@ -6053,19 +6033,22 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
|
|
|
6053
6033
|
}
|
|
6054
6034
|
declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
|
|
6055
6035
|
import { FC } from 'react';
|
|
6056
|
-
|
|
6036
|
+
export interface StyleDefinition {
|
|
6037
|
+
backgroundColor: string;
|
|
6038
|
+
color: string;
|
|
6039
|
+
}
|
|
6057
6040
|
export const SidebarItemSection: FC<{
|
|
6058
|
-
styleDefinition?:
|
|
6041
|
+
styleDefinition?: StyleDefinition;
|
|
6059
6042
|
}>;
|
|
6060
6043
|
}
|
|
6061
6044
|
declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
6062
6045
|
import { FC, ReactNode } from 'react';
|
|
6063
6046
|
import { PrimitiveType } from 'intl-messageformat';
|
|
6064
6047
|
import './SidebarItem.scss';
|
|
6048
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
6065
6049
|
import { LocationDescriptor } from 'history';
|
|
6066
|
-
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6067
6050
|
interface CommonSidebarItemProps {
|
|
6068
|
-
title?:
|
|
6051
|
+
title?: any;
|
|
6069
6052
|
titleResource?: string;
|
|
6070
6053
|
icon?: ReactNode;
|
|
6071
6054
|
iconName?: string;
|
|
@@ -6077,13 +6060,14 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
|
6077
6060
|
reverse?: boolean;
|
|
6078
6061
|
notHighlightable?: boolean;
|
|
6079
6062
|
onClick?: () => void;
|
|
6063
|
+
children?: any;
|
|
6080
6064
|
className?: string;
|
|
6081
6065
|
isActive?: boolean;
|
|
6082
6066
|
activeClassName?: string;
|
|
6083
6067
|
readOnly?: boolean;
|
|
6084
6068
|
submenu?: JSX.Element;
|
|
6085
6069
|
submenuClassName?: string;
|
|
6086
|
-
submenuStyleDefinition?:
|
|
6070
|
+
submenuStyleDefinition?: StyleDefinition;
|
|
6087
6071
|
badgeInfo?: number | boolean;
|
|
6088
6072
|
domIdentifier?: string;
|
|
6089
6073
|
}
|
|
@@ -6372,7 +6356,6 @@ declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
|
6372
6356
|
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
6373
6357
|
import { ReactNode } from 'react';
|
|
6374
6358
|
import { Account } from "libs/reach/util/common/src/index";
|
|
6375
|
-
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
6376
6359
|
export interface UserSuggestion {
|
|
6377
6360
|
id: string;
|
|
6378
6361
|
upn: string;
|
|
@@ -6392,13 +6375,17 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
|
6392
6375
|
onCtrlEnter?: () => unknown;
|
|
6393
6376
|
onChange?: (value: string) => void;
|
|
6394
6377
|
onFocus?: () => void;
|
|
6395
|
-
buttons?:
|
|
6378
|
+
buttons?: {
|
|
6379
|
+
leftSide?: ReactNode;
|
|
6380
|
+
rightSide?: ReactNode;
|
|
6381
|
+
};
|
|
6396
6382
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
6397
|
-
inputTheme?: CommentInputTheme;
|
|
6398
6383
|
placeHolderStringResourceKey?: string;
|
|
6399
6384
|
placeHolderStringResourceValues?: {
|
|
6400
6385
|
[key: string]: string | number | boolean | Date;
|
|
6401
6386
|
};
|
|
6387
|
+
disableBoxShadow?: boolean;
|
|
6388
|
+
ariaLabel?: string;
|
|
6402
6389
|
}
|
|
6403
6390
|
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6404
6391
|
}
|
|
@@ -6970,6 +6957,7 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
6970
6957
|
filterBaseUrl?: string;
|
|
6971
6958
|
className?: string;
|
|
6972
6959
|
useGridKeywordTitle?: boolean;
|
|
6960
|
+
onClick?: (keyword: string) => unknown;
|
|
6973
6961
|
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
6974
6962
|
}
|
|
6975
6963
|
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
@@ -7716,6 +7704,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7716
7704
|
buttons?: ReactNode;
|
|
7717
7705
|
openTargetInNewWindow?: boolean;
|
|
7718
7706
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7707
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7708
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
7719
7709
|
styleDefinition?: StyleDefinition;
|
|
7720
7710
|
readOnly?: boolean;
|
|
7721
7711
|
className?: string;
|
|
@@ -7849,6 +7839,8 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
|
7849
7839
|
defaultKeywords?: Keyword[];
|
|
7850
7840
|
mandatoryKeywords?: Keyword[];
|
|
7851
7841
|
};
|
|
7842
|
+
disableBoxShadow?: boolean;
|
|
7843
|
+
ariaLabel?: string;
|
|
7852
7844
|
}
|
|
7853
7845
|
interface Props extends BaseProps {
|
|
7854
7846
|
allowAttachments?: boolean;
|
|
@@ -7939,9 +7931,9 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
|
7939
7931
|
deletedFileUrls?: string[];
|
|
7940
7932
|
onCancel?: () => void;
|
|
7941
7933
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7942
|
-
inputTheme?: CommentInputTheme;
|
|
7943
7934
|
onAttachmentAdded?: (attachments: ClientAttachment[]) => void;
|
|
7944
7935
|
onDeleteAttachment?: (attachment: ClientAttachment) => void;
|
|
7936
|
+
ariaLabel?: string;
|
|
7945
7937
|
}
|
|
7946
7938
|
interface Props extends BaseProps {
|
|
7947
7939
|
onSave?: (newContent: string, keywords?: {
|
|
@@ -7957,6 +7949,7 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
|
7957
7949
|
allowSaveWithoutContent?: boolean;
|
|
7958
7950
|
saveOnEnter?: boolean;
|
|
7959
7951
|
saveOnCtrlEnter?: boolean;
|
|
7952
|
+
attachmentPreviewTheme?: CommentInputTheme;
|
|
7960
7953
|
}
|
|
7961
7954
|
export const EditComment: FC<Props>;
|
|
7962
7955
|
}
|
|
@@ -7978,6 +7971,7 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
7978
7971
|
import { ClientAttachment } from "libs/reach/feature/content/src/comments/RichCommentInput";
|
|
7979
7972
|
import { ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
7980
7973
|
import { Keyword } from "libs/reach/util/common/src/index";
|
|
7974
|
+
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
7981
7975
|
interface Props extends CreateCommentProps {
|
|
7982
7976
|
onSave: (newContent: string, attachments?: Attachment[], keywords?: {
|
|
7983
7977
|
[key: string]: Keyword[];
|
|
@@ -7993,6 +7987,7 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
7993
7987
|
allowSaveWithoutContent?: boolean;
|
|
7994
7988
|
saveOnEnter?: boolean;
|
|
7995
7989
|
saveOnCtrlEnter?: boolean;
|
|
7990
|
+
attachmentPreviewTheme?: CommentInputTheme;
|
|
7996
7991
|
}
|
|
7997
7992
|
export const EditCommentWithAttachments: FC<Props>;
|
|
7998
7993
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
@@ -11196,8 +11191,27 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
|
|
|
11196
11191
|
}
|
|
11197
11192
|
declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
|
|
11198
11193
|
import { FC } from 'react';
|
|
11199
|
-
import {
|
|
11200
|
-
export
|
|
11194
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
11195
|
+
export interface PageAction {
|
|
11196
|
+
key?: string | number;
|
|
11197
|
+
title?: string;
|
|
11198
|
+
iconName?: string;
|
|
11199
|
+
to?: string;
|
|
11200
|
+
onClick?: () => void;
|
|
11201
|
+
isActive?: boolean;
|
|
11202
|
+
exact?: boolean;
|
|
11203
|
+
cannotBeActive?: boolean;
|
|
11204
|
+
submenuContents?: JSX.Element;
|
|
11205
|
+
submenuStyleDefinition?: StyleDefinition;
|
|
11206
|
+
badgeInfo?: number | boolean;
|
|
11207
|
+
domIdentifier?: string;
|
|
11208
|
+
secondaryIconName?: string;
|
|
11209
|
+
secondaryIconTooltipResourceKey?: string;
|
|
11210
|
+
onSecondaryIconClick?: () => void;
|
|
11211
|
+
iconColor?: string;
|
|
11212
|
+
className?: string;
|
|
11213
|
+
}
|
|
11214
|
+
export const PageMenuActionItem: FC<PageAction>;
|
|
11201
11215
|
}
|
|
11202
11216
|
declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
|
|
11203
11217
|
import { FC } from 'react';
|