@livetiles/reach-plugin-types 0.4.0-preview.374 → 0.4.0-preview.375
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 { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2536
|
+
export const PluginWrapper: FC<PluginProps & any>;
|
|
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";
|
|
@@ -6134,22 +6157,19 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
|
|
|
6134
6157
|
}
|
|
6135
6158
|
declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
|
|
6136
6159
|
import { FC } from 'react';
|
|
6137
|
-
|
|
6138
|
-
backgroundColor: string;
|
|
6139
|
-
color: string;
|
|
6140
|
-
}
|
|
6160
|
+
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6141
6161
|
export const SidebarItemSection: FC<{
|
|
6142
|
-
styleDefinition?:
|
|
6162
|
+
styleDefinition?: ColorStyleDefinition;
|
|
6143
6163
|
}>;
|
|
6144
6164
|
}
|
|
6145
6165
|
declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
6146
6166
|
import { FC, ReactNode } from 'react';
|
|
6147
6167
|
import { PrimitiveType } from 'intl-messageformat';
|
|
6148
6168
|
import './SidebarItem.scss';
|
|
6149
|
-
import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
|
|
6150
6169
|
import { LocationDescriptor } from 'history';
|
|
6170
|
+
import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
|
|
6151
6171
|
interface CommonSidebarItemProps {
|
|
6152
|
-
title?:
|
|
6172
|
+
title?: string | JSX.Element;
|
|
6153
6173
|
titleResource?: string;
|
|
6154
6174
|
icon?: ReactNode;
|
|
6155
6175
|
iconName?: string;
|
|
@@ -6161,14 +6181,13 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
|
|
|
6161
6181
|
reverse?: boolean;
|
|
6162
6182
|
notHighlightable?: boolean;
|
|
6163
6183
|
onClick?: () => void;
|
|
6164
|
-
children?: any;
|
|
6165
6184
|
className?: string;
|
|
6166
6185
|
isActive?: boolean;
|
|
6167
6186
|
activeClassName?: string;
|
|
6168
6187
|
readOnly?: boolean;
|
|
6169
6188
|
submenu?: JSX.Element;
|
|
6170
6189
|
submenuClassName?: string;
|
|
6171
|
-
submenuStyleDefinition?:
|
|
6190
|
+
submenuStyleDefinition?: ColorStyleDefinition;
|
|
6172
6191
|
badgeInfo?: number | boolean;
|
|
6173
6192
|
domIdentifier?: string;
|
|
6174
6193
|
}
|
|
@@ -11268,27 +11287,8 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
|
|
|
11268
11287
|
}
|
|
11269
11288
|
declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
|
|
11270
11289
|
import { FC } from 'react';
|
|
11271
|
-
import {
|
|
11272
|
-
export
|
|
11273
|
-
key?: string | number;
|
|
11274
|
-
title?: string;
|
|
11275
|
-
iconName?: string;
|
|
11276
|
-
to?: string;
|
|
11277
|
-
onClick?: () => void;
|
|
11278
|
-
isActive?: boolean;
|
|
11279
|
-
exact?: boolean;
|
|
11280
|
-
cannotBeActive?: boolean;
|
|
11281
|
-
submenuContents?: JSX.Element;
|
|
11282
|
-
submenuStyleDefinition?: StyleDefinition;
|
|
11283
|
-
badgeInfo?: number | boolean;
|
|
11284
|
-
domIdentifier?: string;
|
|
11285
|
-
secondaryIconName?: string;
|
|
11286
|
-
secondaryIconTooltipResourceKey?: string;
|
|
11287
|
-
onSecondaryIconClick?: () => void;
|
|
11288
|
-
iconColor?: string;
|
|
11289
|
-
className?: string;
|
|
11290
|
-
}
|
|
11291
|
-
export const PageMenuActionItem: FC<PageAction>;
|
|
11290
|
+
import { PageNavigationNodeProps } from "libs/reach/util/common/src/index";
|
|
11291
|
+
export const PageMenuActionItem: FC<PageNavigationNodeProps>;
|
|
11292
11292
|
}
|
|
11293
11293
|
declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
|
|
11294
11294
|
import { FC } from 'react';
|
|
@@ -11484,6 +11484,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
|
|
|
11484
11484
|
}
|
|
11485
11485
|
declare module "apps/reach-app/src/plugins/reach-chrome" {
|
|
11486
11486
|
import { Page } from "apps/reach-app/src/app/chrome/Page";
|
|
11487
|
+
import { PageMenuActionItem } from "apps/reach-app/src/app/chrome/PageMenuActionItem";
|
|
11487
11488
|
import { NavLinkSidebarItem } from "apps/reach-app/src/app/chrome/SidebarItem";
|
|
11488
|
-
export { Page, NavLinkSidebarItem };
|
|
11489
|
+
export { Page, NavLinkSidebarItem, PageMenuActionItem };
|
|
11489
11490
|
}
|