@livetiles/reach-plugin-types 0.4.0-preview.346 → 0.4.0-preview.348
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 +124 -126
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2299,133 +2299,14 @@ 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 StyleDefinition {
|
|
2320
|
-
backgroundColor: string;
|
|
2321
|
-
color: string;
|
|
2322
|
-
}
|
|
2323
|
-
export interface PageAction {
|
|
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?: StyleDefinition;
|
|
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 { PageAction } 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 type PluginNavigationNodeProp = PluginAndExtension & {
|
|
2426
|
-
navigationNodeProps?: PageAction;
|
|
2427
|
-
renderNavigationNode?: (navigationNodeProps: PageAction) => JSX.Element;
|
|
2428
|
-
};
|
|
2429
2310
|
export type PluginAndExtension = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2430
2311
|
type DevPlugin = {
|
|
2431
2312
|
pluginId: string;
|
|
@@ -2441,8 +2322,11 @@ declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
|
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";
|
|
@@ -6053,7 +6029,10 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
|
|
|
6053
6029
|
}
|
|
6054
6030
|
declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
|
|
6055
6031
|
import { FC } from 'react';
|
|
6056
|
-
|
|
6032
|
+
export interface StyleDefinition {
|
|
6033
|
+
backgroundColor: string;
|
|
6034
|
+
color: string;
|
|
6035
|
+
}
|
|
6057
6036
|
export const SidebarItemSection: FC<{
|
|
6058
6037
|
styleDefinition?: StyleDefinition;
|
|
6059
6038
|
}>;
|
|
@@ -6062,8 +6041,8 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
|
6062
6041
|
import { FC, ReactNode } from 'react';
|
|
6063
6042
|
import { PrimitiveType } from 'intl-messageformat';
|
|
6064
6043
|
import './SidebarItem.scss';
|
|
6044
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
6065
6045
|
import { LocationDescriptor } from 'history';
|
|
6066
|
-
import { StyleDefinition } from "libs/reach/util/common/src/index";
|
|
6067
6046
|
interface CommonSidebarItemProps {
|
|
6068
6047
|
title?: any;
|
|
6069
6048
|
titleResource?: string;
|
|
@@ -11197,7 +11176,26 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
|
|
|
11197
11176
|
}
|
|
11198
11177
|
declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
|
|
11199
11178
|
import { FC } from 'react';
|
|
11200
|
-
import {
|
|
11179
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
11180
|
+
export interface PageAction {
|
|
11181
|
+
key?: string | number;
|
|
11182
|
+
title?: string;
|
|
11183
|
+
iconName?: string;
|
|
11184
|
+
to?: string;
|
|
11185
|
+
onClick?: () => void;
|
|
11186
|
+
isActive?: boolean;
|
|
11187
|
+
exact?: boolean;
|
|
11188
|
+
cannotBeActive?: boolean;
|
|
11189
|
+
submenuContents?: JSX.Element;
|
|
11190
|
+
submenuStyleDefinition?: StyleDefinition;
|
|
11191
|
+
badgeInfo?: number | boolean;
|
|
11192
|
+
domIdentifier?: string;
|
|
11193
|
+
secondaryIconName?: string;
|
|
11194
|
+
secondaryIconTooltipResourceKey?: string;
|
|
11195
|
+
onSecondaryIconClick?: () => void;
|
|
11196
|
+
iconColor?: string;
|
|
11197
|
+
className?: string;
|
|
11198
|
+
}
|
|
11201
11199
|
export const PageMenuActionItem: FC<PageAction>;
|
|
11202
11200
|
}
|
|
11203
11201
|
declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
|