@livetiles/reach-plugin-types 0.4.0-preview.372 → 0.4.0-preview.373
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 +132 -133
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2391,133 +2391,15 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2391
2391
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
2395
|
-
export enum GraphQLAttachmentType {
|
|
2396
|
-
Image = "IMAGE",
|
|
2397
|
-
File = "FILE",
|
|
2398
|
-
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
2399
|
-
VimeoVideo = "VIMEO_VIDEO",
|
|
2400
|
-
News = "NEWS",
|
|
2401
|
-
Event = "EVENT",
|
|
2402
|
-
Page = "PAGE",
|
|
2403
|
-
Post = "POST",
|
|
2404
|
-
Giphy = "GIPHY"
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
declare module "libs/reach/util/common/src/Models" {
|
|
2408
|
-
import { BaseAttachment } from "libs/reach/util/common/src/content/Attachment";
|
|
2409
|
-
import { GraphQLAttachmentType } from "libs/reach/util/common/src/content/GraphQLAttachmentType";
|
|
2410
|
-
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2411
|
-
export interface ColorStyleDefinition {
|
|
2412
|
-
backgroundColor: string;
|
|
2413
|
-
color: string;
|
|
2414
|
-
}
|
|
2415
|
-
export interface PageNavigationNodeProps {
|
|
2416
|
-
title?: string;
|
|
2417
|
-
iconName?: string;
|
|
2418
|
-
to?: string;
|
|
2419
|
-
onClick?: () => void;
|
|
2420
|
-
isActive?: boolean;
|
|
2421
|
-
exact?: boolean;
|
|
2422
|
-
cannotBeActive?: boolean;
|
|
2423
|
-
submenuContents?: JSX.Element;
|
|
2424
|
-
submenuStyleDefinition?: ColorStyleDefinition;
|
|
2425
|
-
badgeInfo?: number | boolean;
|
|
2426
|
-
domIdentifier?: string;
|
|
2427
|
-
secondaryIconName?: string;
|
|
2428
|
-
secondaryIconTooltipResourceKey?: string;
|
|
2429
|
-
onSecondaryIconClick?: () => void;
|
|
2430
|
-
iconColor?: string;
|
|
2431
|
-
className?: string;
|
|
2432
|
-
}
|
|
2433
|
-
export interface Chat {
|
|
2434
|
-
id: string;
|
|
2435
|
-
members: (Account & ChatMember)[];
|
|
2436
|
-
memberIds: string[];
|
|
2437
|
-
groupName?: string;
|
|
2438
|
-
lastMessageInfo?: {
|
|
2439
|
-
received: string;
|
|
2440
|
-
senderId: string;
|
|
2441
|
-
content?: string;
|
|
2442
|
-
attachments: ChatAttachment[];
|
|
2443
|
-
deleteDate?: string;
|
|
2444
|
-
deleteState?: DeleteState;
|
|
2445
|
-
messageType?: ChatMessageType;
|
|
2446
|
-
messageValues?: {
|
|
2447
|
-
groupName?: string;
|
|
2448
|
-
userId?: string;
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
messages: ChatMessage[];
|
|
2452
|
-
hasNewMessages: boolean;
|
|
2453
|
-
fileAccessToken: string;
|
|
2454
|
-
}
|
|
2455
|
-
export enum DeleteState {
|
|
2456
|
-
NotDeleted = "NOT_DELETED",
|
|
2457
|
-
RecycleBin = "RECYCLE_BIN",
|
|
2458
|
-
Deleted = "DELETED"
|
|
2459
|
-
}
|
|
2460
|
-
export enum ChatMessageType {
|
|
2461
|
-
Default = "DEFAULT",
|
|
2462
|
-
GroupNameChange = "GROUP_NAME_CHANGE",
|
|
2463
|
-
UserLeftGroup = "USER_LEFT_GROUP"
|
|
2464
|
-
}
|
|
2465
|
-
export enum MemberStatus {
|
|
2466
|
-
Normal = "NORMAL",
|
|
2467
|
-
LeftGroupChat = "LEFT_GROUP_CHAT",
|
|
2468
|
-
LeftOneToOneChat = "LEFT_ONE_TO_ONE_CHAT"
|
|
2469
|
-
}
|
|
2470
|
-
export interface ChatMember {
|
|
2471
|
-
id?: string;
|
|
2472
|
-
status?: MemberStatus;
|
|
2473
|
-
joinDate?: string;
|
|
2474
|
-
leftDate?: string;
|
|
2475
|
-
}
|
|
2476
|
-
export interface ChatMessage {
|
|
2477
|
-
itemId: string;
|
|
2478
|
-
content: string;
|
|
2479
|
-
senderId?: string;
|
|
2480
|
-
chatId?: string;
|
|
2481
|
-
received?: string;
|
|
2482
|
-
attachments?: ChatAttachment[];
|
|
2483
|
-
attachmentContainerId?: string;
|
|
2484
|
-
fileAccessToken?: string;
|
|
2485
|
-
deleteDate?: string;
|
|
2486
|
-
deleteState?: DeleteState;
|
|
2487
|
-
modifiedDate?: string;
|
|
2488
|
-
chat?: Chat;
|
|
2489
|
-
messageType?: ChatMessageType;
|
|
2490
|
-
messageValues?: {
|
|
2491
|
-
groupName?: string;
|
|
2492
|
-
};
|
|
2493
|
-
}
|
|
2494
|
-
export interface ChatIsTypingInfo {
|
|
2495
|
-
sender: Account;
|
|
2496
|
-
chatId: string;
|
|
2497
|
-
sentOn: string;
|
|
2498
|
-
}
|
|
2499
|
-
export interface ChatView {
|
|
2500
|
-
chatId: string;
|
|
2501
|
-
timestamp: Date;
|
|
2502
|
-
isActive: boolean;
|
|
2503
|
-
}
|
|
2504
|
-
export interface ChatAttachment extends BaseAttachment {
|
|
2505
|
-
type: GraphQLAttachmentType;
|
|
2506
|
-
}
|
|
2507
|
-
}
|
|
2508
2394
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2509
2395
|
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2510
|
-
import { PageNavigationNodeProps } from "libs/reach/util/common/src/Models";
|
|
2511
2396
|
export enum ExtensionArea {
|
|
2512
2397
|
global = "Global",
|
|
2513
2398
|
page = "Page",
|
|
2514
2399
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
2515
2400
|
eventDetailViewSection = "EventDetailViewSection"
|
|
2516
2401
|
}
|
|
2517
|
-
export
|
|
2518
|
-
navigationNodeProps?: PageNavigationNodeProps;
|
|
2519
|
-
}
|
|
2520
|
-
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2402
|
+
export type PluginAndExtension = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2521
2403
|
type DevPlugin = {
|
|
2522
2404
|
pluginId: string;
|
|
2523
2405
|
port: number;
|
|
@@ -2525,15 +2407,18 @@ declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
|
2525
2407
|
linkPlugin?: boolean;
|
|
2526
2408
|
};
|
|
2527
2409
|
export function usePlugins(): WebPluginDefinition[];
|
|
2528
|
-
export function usePluginExtensions(area?: ExtensionArea):
|
|
2410
|
+
export function usePluginExtensions(area?: ExtensionArea): PluginAndExtension[];
|
|
2529
2411
|
export function removeInjectedRemotePlugin(pluginId: string): void;
|
|
2530
2412
|
export function useInjectedRemotePlugins(): DevPlugin[];
|
|
2531
2413
|
export function useRemotePlugins(): WebPluginDefinition[];
|
|
2532
2414
|
}
|
|
2533
2415
|
declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
2534
2416
|
import { FC } from 'react';
|
|
2535
|
-
import {
|
|
2536
|
-
export const PluginWrapper: FC<
|
|
2417
|
+
import { PluginAndExtension } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2418
|
+
export const PluginWrapper: FC<PluginAndExtension & {
|
|
2419
|
+
navigationNodeProps?: any;
|
|
2420
|
+
renderNavigationNode?: (navigationNodeProps: any) => JSX.Element;
|
|
2421
|
+
}>;
|
|
2537
2422
|
}
|
|
2538
2423
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2539
2424
|
import { FC } from 'react';
|
|
@@ -2687,6 +2572,19 @@ declare module "libs/reach/util/common/src/theme/index" {
|
|
|
2687
2572
|
export * from "libs/reach/util/common/src/theme/ThemeService";
|
|
2688
2573
|
export * from "libs/reach/util/common/src/theme/ColorGenerator";
|
|
2689
2574
|
}
|
|
2575
|
+
declare module "libs/reach/util/common/src/content/GraphQLAttachmentType" {
|
|
2576
|
+
export enum GraphQLAttachmentType {
|
|
2577
|
+
Image = "IMAGE",
|
|
2578
|
+
File = "FILE",
|
|
2579
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
2580
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
2581
|
+
News = "NEWS",
|
|
2582
|
+
Event = "EVENT",
|
|
2583
|
+
Page = "PAGE",
|
|
2584
|
+
Post = "POST",
|
|
2585
|
+
Giphy = "GIPHY"
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2690
2588
|
declare module "libs/reach/util/common/src/content/EventItem" {
|
|
2691
2589
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2692
2590
|
import { PollResult } from "libs/reach/util/common/src/content/BaseItem";
|
|
@@ -3152,6 +3050,85 @@ declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
|
3152
3050
|
}
|
|
3153
3051
|
export const MainContentPanelContext: import("react").Context<MainPanelContextType>;
|
|
3154
3052
|
}
|
|
3053
|
+
declare module "libs/reach/util/common/src/Models" {
|
|
3054
|
+
import { BaseAttachment } from "libs/reach/util/common/src/content/Attachment";
|
|
3055
|
+
import { GraphQLAttachmentType } from "libs/reach/util/common/src/content/GraphQLAttachmentType";
|
|
3056
|
+
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
3057
|
+
export interface Chat {
|
|
3058
|
+
id: string;
|
|
3059
|
+
members: (Account & ChatMember)[];
|
|
3060
|
+
memberIds: string[];
|
|
3061
|
+
groupName?: string;
|
|
3062
|
+
lastMessageInfo?: {
|
|
3063
|
+
received: string;
|
|
3064
|
+
senderId: string;
|
|
3065
|
+
content?: string;
|
|
3066
|
+
attachments: ChatAttachment[];
|
|
3067
|
+
deleteDate?: string;
|
|
3068
|
+
deleteState?: DeleteState;
|
|
3069
|
+
messageType?: ChatMessageType;
|
|
3070
|
+
messageValues?: {
|
|
3071
|
+
groupName?: string;
|
|
3072
|
+
userId?: string;
|
|
3073
|
+
};
|
|
3074
|
+
};
|
|
3075
|
+
messages: ChatMessage[];
|
|
3076
|
+
hasNewMessages: boolean;
|
|
3077
|
+
fileAccessToken: string;
|
|
3078
|
+
}
|
|
3079
|
+
export enum DeleteState {
|
|
3080
|
+
NotDeleted = "NOT_DELETED",
|
|
3081
|
+
RecycleBin = "RECYCLE_BIN",
|
|
3082
|
+
Deleted = "DELETED"
|
|
3083
|
+
}
|
|
3084
|
+
export enum ChatMessageType {
|
|
3085
|
+
Default = "DEFAULT",
|
|
3086
|
+
GroupNameChange = "GROUP_NAME_CHANGE",
|
|
3087
|
+
UserLeftGroup = "USER_LEFT_GROUP"
|
|
3088
|
+
}
|
|
3089
|
+
export enum MemberStatus {
|
|
3090
|
+
Normal = "NORMAL",
|
|
3091
|
+
LeftGroupChat = "LEFT_GROUP_CHAT",
|
|
3092
|
+
LeftOneToOneChat = "LEFT_ONE_TO_ONE_CHAT"
|
|
3093
|
+
}
|
|
3094
|
+
export interface ChatMember {
|
|
3095
|
+
id?: string;
|
|
3096
|
+
status?: MemberStatus;
|
|
3097
|
+
joinDate?: string;
|
|
3098
|
+
leftDate?: string;
|
|
3099
|
+
}
|
|
3100
|
+
export interface ChatMessage {
|
|
3101
|
+
itemId: string;
|
|
3102
|
+
content: string;
|
|
3103
|
+
senderId?: string;
|
|
3104
|
+
chatId?: string;
|
|
3105
|
+
received?: string;
|
|
3106
|
+
attachments?: ChatAttachment[];
|
|
3107
|
+
attachmentContainerId?: string;
|
|
3108
|
+
fileAccessToken?: string;
|
|
3109
|
+
deleteDate?: string;
|
|
3110
|
+
deleteState?: DeleteState;
|
|
3111
|
+
modifiedDate?: string;
|
|
3112
|
+
chat?: Chat;
|
|
3113
|
+
messageType?: ChatMessageType;
|
|
3114
|
+
messageValues?: {
|
|
3115
|
+
groupName?: string;
|
|
3116
|
+
};
|
|
3117
|
+
}
|
|
3118
|
+
export interface ChatIsTypingInfo {
|
|
3119
|
+
sender: Account;
|
|
3120
|
+
chatId: string;
|
|
3121
|
+
sentOn: string;
|
|
3122
|
+
}
|
|
3123
|
+
export interface ChatView {
|
|
3124
|
+
chatId: string;
|
|
3125
|
+
timestamp: Date;
|
|
3126
|
+
isActive: boolean;
|
|
3127
|
+
}
|
|
3128
|
+
export interface ChatAttachment extends BaseAttachment {
|
|
3129
|
+
type: GraphQLAttachmentType;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3155
3132
|
declare module "libs/reach/util/common/src/PagingService" {
|
|
3156
3133
|
import { Observable } from 'rxjs';
|
|
3157
3134
|
export const onPageScroll: Observable<number>;
|
|
@@ -3339,7 +3316,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3339
3316
|
export const PeoplePicker: FC<Props>;
|
|
3340
3317
|
}
|
|
3341
3318
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3342
|
-
import { Account, AccountType,
|
|
3319
|
+
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
|
|
3343
3320
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3344
3321
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3345
3322
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3357,7 +3334,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3357
3334
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3358
3335
|
*/
|
|
3359
3336
|
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3360
|
-
export type { Account
|
|
3337
|
+
export type { Account };
|
|
3361
3338
|
}
|
|
3362
3339
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3363
3340
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -6156,19 +6133,22 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
|
|
|
6156
6133
|
}
|
|
6157
6134
|
declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
|
|
6158
6135
|
import { FC } from 'react';
|
|
6159
|
-
|
|
6136
|
+
export interface StyleDefinition {
|
|
6137
|
+
backgroundColor: string;
|
|
6138
|
+
color: string;
|
|
6139
|
+
}
|
|
6160
6140
|
export const SidebarItemSection: FC<{
|
|
6161
|
-
styleDefinition?:
|
|
6141
|
+
styleDefinition?: StyleDefinition;
|
|
6162
6142
|
}>;
|
|
6163
6143
|
}
|
|
6164
6144
|
declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
6165
6145
|
import { FC, ReactNode } from 'react';
|
|
6166
6146
|
import { PrimitiveType } from 'intl-messageformat';
|
|
6167
6147
|
import './SidebarItem.scss';
|
|
6148
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
6168
6149
|
import { LocationDescriptor } from 'history';
|
|
6169
|
-
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6170
6150
|
interface CommonSidebarItemProps {
|
|
6171
|
-
title?:
|
|
6151
|
+
title?: any;
|
|
6172
6152
|
titleResource?: string;
|
|
6173
6153
|
icon?: ReactNode;
|
|
6174
6154
|
iconName?: string;
|
|
@@ -6180,13 +6160,14 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
|
6180
6160
|
reverse?: boolean;
|
|
6181
6161
|
notHighlightable?: boolean;
|
|
6182
6162
|
onClick?: () => void;
|
|
6163
|
+
children?: any;
|
|
6183
6164
|
className?: string;
|
|
6184
6165
|
isActive?: boolean;
|
|
6185
6166
|
activeClassName?: string;
|
|
6186
6167
|
readOnly?: boolean;
|
|
6187
6168
|
submenu?: JSX.Element;
|
|
6188
6169
|
submenuClassName?: string;
|
|
6189
|
-
submenuStyleDefinition?:
|
|
6170
|
+
submenuStyleDefinition?: StyleDefinition;
|
|
6190
6171
|
badgeInfo?: number | boolean;
|
|
6191
6172
|
domIdentifier?: string;
|
|
6192
6173
|
}
|
|
@@ -11286,8 +11267,27 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
|
|
|
11286
11267
|
}
|
|
11287
11268
|
declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
|
|
11288
11269
|
import { FC } from 'react';
|
|
11289
|
-
import {
|
|
11290
|
-
export
|
|
11270
|
+
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
11271
|
+
export interface PageAction {
|
|
11272
|
+
key?: string | number;
|
|
11273
|
+
title?: string;
|
|
11274
|
+
iconName?: string;
|
|
11275
|
+
to?: string;
|
|
11276
|
+
onClick?: () => void;
|
|
11277
|
+
isActive?: boolean;
|
|
11278
|
+
exact?: boolean;
|
|
11279
|
+
cannotBeActive?: boolean;
|
|
11280
|
+
submenuContents?: JSX.Element;
|
|
11281
|
+
submenuStyleDefinition?: StyleDefinition;
|
|
11282
|
+
badgeInfo?: number | boolean;
|
|
11283
|
+
domIdentifier?: string;
|
|
11284
|
+
secondaryIconName?: string;
|
|
11285
|
+
secondaryIconTooltipResourceKey?: string;
|
|
11286
|
+
onSecondaryIconClick?: () => void;
|
|
11287
|
+
iconColor?: string;
|
|
11288
|
+
className?: string;
|
|
11289
|
+
}
|
|
11290
|
+
export const PageMenuActionItem: FC<PageAction>;
|
|
11291
11291
|
}
|
|
11292
11292
|
declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
|
|
11293
11293
|
import { FC } from 'react';
|
|
@@ -11483,7 +11483,6 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11483
11483
|
}
|
|
11484
11484
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11485
11485
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|
|
11486
|
-
import { PageMenuActionItem } from "apps/reach-app/src/app/chrome/PageMenuActionItem";
|
|
11487
11486
|
import { NavLinkSidebarItem } from "apps/reach-app/src/app/chrome/SidebarItem";
|
|
11488
|
-
export { Page, NavLinkSidebarItem
|
|
11487
|
+
export { Page, NavLinkSidebarItem };
|
|
11489
11488
|
}
|