@livetiles/reach-plugin-types 0.4.0-preview.371 → 0.4.0-preview.372
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 +133 -132
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2391,15 +2391,133 @@ 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
|
+
}
|
|
2394
2508
|
declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
2395
2509
|
import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
|
|
2510
|
+
import { PageNavigationNodeProps } from "libs/reach/util/common/src/Models";
|
|
2396
2511
|
export enum ExtensionArea {
|
|
2397
2512
|
global = "Global",
|
|
2398
2513
|
page = "Page",
|
|
2399
2514
|
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
2400
2515
|
eventDetailViewSection = "EventDetailViewSection"
|
|
2401
2516
|
}
|
|
2402
|
-
export
|
|
2517
|
+
export interface PluginNavigationNodeProps {
|
|
2518
|
+
navigationNodeProps?: PageNavigationNodeProps;
|
|
2519
|
+
}
|
|
2520
|
+
export type PluginProps = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
|
|
2403
2521
|
type DevPlugin = {
|
|
2404
2522
|
pluginId: string;
|
|
2405
2523
|
port: number;
|
|
@@ -2407,18 +2525,15 @@ declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
|
|
|
2407
2525
|
linkPlugin?: boolean;
|
|
2408
2526
|
};
|
|
2409
2527
|
export function usePlugins(): WebPluginDefinition[];
|
|
2410
|
-
export function usePluginExtensions(area?: ExtensionArea):
|
|
2528
|
+
export function usePluginExtensions(area?: ExtensionArea): PluginProps[];
|
|
2411
2529
|
export function removeInjectedRemotePlugin(pluginId: string): void;
|
|
2412
2530
|
export function useInjectedRemotePlugins(): DevPlugin[];
|
|
2413
2531
|
export function useRemotePlugins(): WebPluginDefinition[];
|
|
2414
2532
|
}
|
|
2415
2533
|
declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
|
|
2416
2534
|
import { FC } from 'react';
|
|
2417
|
-
import {
|
|
2418
|
-
export const PluginWrapper: FC<
|
|
2419
|
-
navigationNodeProps?: any;
|
|
2420
|
-
renderNavigationNode?: (navigationNodeProps: any) => JSX.Element;
|
|
2421
|
-
}>;
|
|
2535
|
+
import { PluginNavigationNodeProps, PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2536
|
+
export const PluginWrapper: FC<PluginProps & PluginNavigationNodeProps>;
|
|
2422
2537
|
}
|
|
2423
2538
|
declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
2424
2539
|
import { FC } from 'react';
|
|
@@ -2572,19 +2687,6 @@ declare module "libs/reach/util/common/src/theme/index" {
|
|
|
2572
2687
|
export * from "libs/reach/util/common/src/theme/ThemeService";
|
|
2573
2688
|
export * from "libs/reach/util/common/src/theme/ColorGenerator";
|
|
2574
2689
|
}
|
|
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
|
-
}
|
|
2588
2690
|
declare module "libs/reach/util/common/src/content/EventItem" {
|
|
2589
2691
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2590
2692
|
import { PollResult } from "libs/reach/util/common/src/content/BaseItem";
|
|
@@ -3050,85 +3152,6 @@ declare module "libs/reach/util/common/src/MainContentPanelContext" {
|
|
|
3050
3152
|
}
|
|
3051
3153
|
export const MainContentPanelContext: import("react").Context<MainPanelContextType>;
|
|
3052
3154
|
}
|
|
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
|
-
}
|
|
3132
3155
|
declare module "libs/reach/util/common/src/PagingService" {
|
|
3133
3156
|
import { Observable } from 'rxjs';
|
|
3134
3157
|
export const onPageScroll: Observable<number>;
|
|
@@ -3316,7 +3339,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3316
3339
|
export const PeoplePicker: FC<Props>;
|
|
3317
3340
|
}
|
|
3318
3341
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3319
|
-
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
|
|
3342
|
+
import { Account, AccountType, PluginProps, PluginNavigationNodeProps, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
|
|
3320
3343
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3321
3344
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3322
3345
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3334,7 +3357,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3334
3357
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3335
3358
|
*/
|
|
3336
3359
|
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3337
|
-
export type { Account };
|
|
3360
|
+
export type { Account, PluginNavigationNodeProps, PluginProps };
|
|
3338
3361
|
}
|
|
3339
3362
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
3340
3363
|
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
@@ -6133,22 +6156,19 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
|
|
|
6133
6156
|
}
|
|
6134
6157
|
declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
|
|
6135
6158
|
import { FC } from 'react';
|
|
6136
|
-
|
|
6137
|
-
backgroundColor: string;
|
|
6138
|
-
color: string;
|
|
6139
|
-
}
|
|
6159
|
+
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6140
6160
|
export const SidebarItemSection: FC<{
|
|
6141
|
-
styleDefinition?:
|
|
6161
|
+
styleDefinition?: ColorStyleDefinition;
|
|
6142
6162
|
}>;
|
|
6143
6163
|
}
|
|
6144
6164
|
declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
6145
6165
|
import { FC, ReactNode } from 'react';
|
|
6146
6166
|
import { PrimitiveType } from 'intl-messageformat';
|
|
6147
6167
|
import './SidebarItem.scss';
|
|
6148
|
-
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
6149
6168
|
import { LocationDescriptor } from 'history';
|
|
6169
|
+
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6150
6170
|
interface CommonSidebarItemProps {
|
|
6151
|
-
title?:
|
|
6171
|
+
title?: string | JSX.Element;
|
|
6152
6172
|
titleResource?: string;
|
|
6153
6173
|
icon?: ReactNode;
|
|
6154
6174
|
iconName?: string;
|
|
@@ -6160,14 +6180,13 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
|
6160
6180
|
reverse?: boolean;
|
|
6161
6181
|
notHighlightable?: boolean;
|
|
6162
6182
|
onClick?: () => void;
|
|
6163
|
-
children?: any;
|
|
6164
6183
|
className?: string;
|
|
6165
6184
|
isActive?: boolean;
|
|
6166
6185
|
activeClassName?: string;
|
|
6167
6186
|
readOnly?: boolean;
|
|
6168
6187
|
submenu?: JSX.Element;
|
|
6169
6188
|
submenuClassName?: string;
|
|
6170
|
-
submenuStyleDefinition?:
|
|
6189
|
+
submenuStyleDefinition?: ColorStyleDefinition;
|
|
6171
6190
|
badgeInfo?: number | boolean;
|
|
6172
6191
|
domIdentifier?: string;
|
|
6173
6192
|
}
|
|
@@ -11267,27 +11286,8 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
|
|
|
11267
11286
|
}
|
|
11268
11287
|
declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
|
|
11269
11288
|
import { FC } from 'react';
|
|
11270
|
-
import {
|
|
11271
|
-
export
|
|
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>;
|
|
11289
|
+
import { PageNavigationNodeProps } from "libs/reach/util/common/src/index";
|
|
11290
|
+
export const PageMenuActionItem: FC<PageNavigationNodeProps>;
|
|
11291
11291
|
}
|
|
11292
11292
|
declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
|
|
11293
11293
|
import { FC } from 'react';
|
|
@@ -11483,6 +11483,7 @@ 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";
|
|
11486
11487
|
import { NavLinkSidebarItem } from "apps/reach-app/src/app/chrome/SidebarItem";
|
|
11487
|
-
export { Page, NavLinkSidebarItem };
|
|
11488
|
+
export { Page, NavLinkSidebarItem, PageMenuActionItem };
|
|
11488
11489
|
}
|