@livetiles/reach-plugin-types 0.4.0-preview.342 → 0.4.0-preview.346

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +127 -124
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2299,14 +2299,133 @@ 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
+ }
2302
2416
  declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
2303
2417
  import { PluginExtension, WebPluginDefinition } from "libs/reach/util/common/src/user/Subscription";
2418
+ import { PageAction } from "libs/reach/util/common/src/Models";
2304
2419
  export enum ExtensionArea {
2305
2420
  global = "Global",
2306
2421
  page = "Page",
2307
2422
  eventEditorFeedbackSection = "EventEditorFeedbackSection",
2308
2423
  eventDetailViewSection = "EventDetailViewSection"
2309
2424
  }
2425
+ export type PluginNavigationNodeProp = PluginAndExtension & {
2426
+ navigationNodeProps?: PageAction;
2427
+ renderNavigationNode?: (navigationNodeProps: PageAction) => JSX.Element;
2428
+ };
2310
2429
  export type PluginAndExtension = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
2311
2430
  type DevPlugin = {
2312
2431
  pluginId: string;
@@ -2322,11 +2441,8 @@ declare module "libs/reach/util/common/src/plugins/usePluginExtensions" {
2322
2441
  }
2323
2442
  declare module "libs/reach/util/common/src/plugins/PluginWrapper" {
2324
2443
  import { FC } from 'react';
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
- }>;
2444
+ import { PluginNavigationNodeProp as PluginWrapperProp } from "libs/reach/util/common/src/plugins/usePluginExtensions";
2445
+ export const PluginWrapper: FC<PluginWrapperProp>;
2330
2446
  }
2331
2447
  declare module "libs/reach/util/common/src/plugins/Plugins" {
2332
2448
  import { FC } from 'react';
@@ -2478,19 +2594,6 @@ declare module "libs/reach/util/common/src/theme/index" {
2478
2594
  export * from "libs/reach/util/common/src/theme/ThemeService";
2479
2595
  export * from "libs/reach/util/common/src/theme/ColorGenerator";
2480
2596
  }
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
- }
2494
2597
  declare module "libs/reach/util/common/src/content/EventItem" {
2495
2598
  import { Account } from "libs/reach/util/common/src/user/Account";
2496
2599
  import { PollResult } from "libs/reach/util/common/src/content/BaseItem";
@@ -2956,85 +3059,6 @@ declare module "libs/reach/util/common/src/MainContentPanelContext" {
2956
3059
  }
2957
3060
  export const MainContentPanelContext: import("react").Context<MainPanelContextType>;
2958
3061
  }
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
- }
3038
3062
  declare module "libs/reach/util/common/src/PagingService" {
3039
3063
  import { Observable } from 'rxjs';
3040
3064
  export const onPageScroll: Observable<number>;
@@ -3221,7 +3245,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3221
3245
  export const PeoplePicker: FC<Props>;
3222
3246
  }
3223
3247
  declare module "libs/reach/ui/common/src/plugins/reach-core" {
3224
- import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
3248
+ import { Account, AccountType, PluginAndExtension, PluginNavigationNodeProp, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
3225
3249
  import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
3226
3250
  import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
3227
3251
  import { createId, logger } from "libs/shared/util/common/src/index";
@@ -3235,7 +3259,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
3235
3259
  import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
3236
3260
  import { useAccountApi } from "libs/reach/util/common/src/index";
3237
3261
  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, };
3238
- export type { Account };
3262
+ export type { Account, PluginNavigationNodeProp, PluginAndExtension as PluginProp, };
3239
3263
  }
3240
3264
  declare module "libs/reach/ui/common/src/content-keyword-utils" {
3241
3265
  import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
@@ -6029,10 +6053,7 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
6029
6053
  }
6030
6054
  declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
6031
6055
  import { FC } from 'react';
6032
- export interface StyleDefinition {
6033
- backgroundColor: string;
6034
- color: string;
6035
- }
6056
+ import { StyleDefinition } from "libs/reach/util/common/src/index";
6036
6057
  export const SidebarItemSection: FC<{
6037
6058
  styleDefinition?: StyleDefinition;
6038
6059
  }>;
@@ -6041,8 +6062,8 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
6041
6062
  import { FC, ReactNode } from 'react';
6042
6063
  import { PrimitiveType } from 'intl-messageformat';
6043
6064
  import './SidebarItem.scss';
6044
- import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
6045
6065
  import { LocationDescriptor } from 'history';
6066
+ import { StyleDefinition } from "libs/reach/util/common/src/index";
6046
6067
  interface CommonSidebarItemProps {
6047
6068
  title?: any;
6048
6069
  titleResource?: string;
@@ -10829,6 +10850,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
10829
10850
  skip: number;
10830
10851
  };
10831
10852
  refresh: () => Promise<void>;
10853
+ isLoadingFirstPage: boolean;
10832
10854
  };
10833
10855
  export const getStreamQuery: () => DocumentNode;
10834
10856
  export function hasFilter(filter?: StreamFilterDefinition): boolean;
@@ -11175,26 +11197,7 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
11175
11197
  }
11176
11198
  declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
11177
11199
  import { FC } from 'react';
11178
- import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
11179
- export interface PageAction {
11180
- key?: string | number;
11181
- title?: string;
11182
- iconName?: string;
11183
- to?: string;
11184
- onClick?: () => void;
11185
- isActive?: boolean;
11186
- exact?: boolean;
11187
- cannotBeActive?: boolean;
11188
- submenuContents?: JSX.Element;
11189
- submenuStyleDefinition?: StyleDefinition;
11190
- badgeInfo?: number | boolean;
11191
- domIdentifier?: string;
11192
- secondaryIconName?: string;
11193
- secondaryIconTooltipResourceKey?: string;
11194
- onSecondaryIconClick?: () => void;
11195
- iconColor?: string;
11196
- className?: string;
11197
- }
11200
+ import { PageAction } from "libs/reach/util/common/src/index";
11198
11201
  export const PageMenuActionItem: FC<PageAction>;
11199
11202
  }
11200
11203
  declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.342",
7
+ "version": "0.4.0-preview.346",
8
8
  "dependencies": {}
9
9
  }