@livetiles/reach-plugin-types 0.4.0-preview.373 → 0.4.0-preview.376

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 +140 -138
  2. 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 type PluginAndExtension = Omit<WebPluginDefinition, 'extensions'> & PluginExtension;
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): PluginAndExtension[];
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 { 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
- }>;
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>;
@@ -3232,13 +3255,13 @@ declare module "libs/reach/ui/common/src/EditorSettingsDialog" {
3232
3255
  }>, import("styled-components").DefaultTheme, {}, never>;
3233
3256
  }
3234
3257
  declare module "libs/reach/ui/common/src/Tooltip" {
3235
- export interface TooltipProps {
3258
+ import { ITooltipHostProps } from 'office-ui-fabric-react';
3259
+ export interface TooltipProps extends ITooltipHostProps {
3236
3260
  text?: string;
3237
3261
  resourceKey?: string;
3238
3262
  values?: {
3239
3263
  [key: string]: string | number | boolean | Date;
3240
3264
  };
3241
- className?: string;
3242
3265
  width?: number;
3243
3266
  onClick?: () => unknown;
3244
3267
  role?: string;
@@ -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";
@@ -3708,6 +3731,7 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
3708
3731
  language?: string;
3709
3732
  underlined?: boolean;
3710
3733
  onClick?: (keyword: string) => unknown;
3734
+ tabIndex?: number;
3711
3735
  }
3712
3736
  export const KeywordTitle: FC<Props>;
3713
3737
  export const GridKeywordTitle: FC<{
@@ -6133,22 +6157,19 @@ declare module "apps/reach-app/src/app/chrome/BaseSidebarItem" {
6133
6157
  }
6134
6158
  declare module "apps/reach-app/src/app/chrome/SidebarItemSection" {
6135
6159
  import { FC } from 'react';
6136
- export interface StyleDefinition {
6137
- backgroundColor: string;
6138
- color: string;
6139
- }
6160
+ import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
6140
6161
  export const SidebarItemSection: FC<{
6141
- styleDefinition?: StyleDefinition;
6162
+ styleDefinition?: ColorStyleDefinition;
6142
6163
  }>;
6143
6164
  }
6144
6165
  declare module "apps/reach-app/src/app/chrome/SidebarItem" {
6145
6166
  import { FC, ReactNode } from 'react';
6146
6167
  import { PrimitiveType } from 'intl-messageformat';
6147
6168
  import './SidebarItem.scss';
6148
- import { StyleDefinition } from "apps/reach-app/src/app/chrome/SidebarItemSection";
6149
6169
  import { LocationDescriptor } from 'history';
6170
+ import { ColorStyleDefinition } from "libs/reach/util/common/src/index";
6150
6171
  interface CommonSidebarItemProps {
6151
- title?: any;
6172
+ title?: string | JSX.Element;
6152
6173
  titleResource?: string;
6153
6174
  icon?: ReactNode;
6154
6175
  iconName?: string;
@@ -6160,14 +6181,13 @@ declare module "apps/reach-app/src/app/chrome/SidebarItem" {
6160
6181
  reverse?: boolean;
6161
6182
  notHighlightable?: boolean;
6162
6183
  onClick?: () => void;
6163
- children?: any;
6164
6184
  className?: string;
6165
6185
  isActive?: boolean;
6166
6186
  activeClassName?: string;
6167
6187
  readOnly?: boolean;
6168
6188
  submenu?: JSX.Element;
6169
6189
  submenuClassName?: string;
6170
- submenuStyleDefinition?: StyleDefinition;
6190
+ submenuStyleDefinition?: ColorStyleDefinition;
6171
6191
  badgeInfo?: number | boolean;
6172
6192
  domIdentifier?: string;
6173
6193
  }
@@ -7003,8 +7023,7 @@ declare module "libs/reach/feature/content/src/posts/VideoList" {
7003
7023
  }
7004
7024
  declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
7005
7025
  import { FC } from 'react';
7006
- import { Keyword } from "libs/reach/util/common/src/index";
7007
- import { PublishableItem } from "libs/reach/util/common/src/index";
7026
+ import { Keyword, PublishableItem } from "libs/reach/util/common/src/index";
7008
7027
  export interface KeywordsInfoProps {
7009
7028
  keywords: {
7010
7029
  [key: string]: Keyword[];
@@ -7024,13 +7043,14 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
7024
7043
  className?: string;
7025
7044
  filterBaseUrl?: string;
7026
7045
  }>;
7027
- export const FlatKeywords: import("styled-components").StyledComponent<FC<{
7046
+ export const FlatKeywords: FC<{
7028
7047
  item: PublishableItem;
7029
7048
  filterBaseUrl?: string;
7030
7049
  className?: string;
7031
7050
  useGridKeywordTitle?: boolean;
7032
7051
  onClick?: (keyword: string) => unknown;
7033
- }>, import("styled-components").DefaultTheme, {}, never>;
7052
+ showAllKeywordsInCallout?: boolean;
7053
+ }>;
7034
7054
  }
7035
7055
  declare module "libs/reach/feature/content/src/news/NewsService" {
7036
7056
  import { CurrentUser } from "libs/reach/util/common/src/index";
@@ -11267,27 +11287,8 @@ declare module "apps/reach-app/src/app/EnforcedSubscriptionContextProvider" {
11267
11287
  }
11268
11288
  declare module "apps/reach-app/src/app/chrome/PageMenuActionItem" {
11269
11289
  import { FC } from 'react';
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>;
11290
+ import { PageNavigationNodeProps } from "libs/reach/util/common/src/index";
11291
+ export const PageMenuActionItem: FC<PageNavigationNodeProps>;
11291
11292
  }
11292
11293
  declare module "apps/reach-app/src/app/admin/ManagePluginsPage" {
11293
11294
  import { FC } from 'react';
@@ -11483,6 +11484,7 @@ declare module "apps/reach-app/src/app/chrome/Page" {
11483
11484
  }
11484
11485
  declare module "apps/reach-app/src/plugins/reach-chrome" {
11485
11486
  import { Page } from "apps/reach-app/src/app/chrome/Page";
11487
+ import { PageMenuActionItem } from "apps/reach-app/src/app/chrome/PageMenuActionItem";
11486
11488
  import { NavLinkSidebarItem } from "apps/reach-app/src/app/chrome/SidebarItem";
11487
- export { Page, NavLinkSidebarItem };
11489
+ export { Page, NavLinkSidebarItem, PageMenuActionItem };
11488
11490
  }
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.373",
7
+ "version": "0.4.0-preview.376",
8
8
  "dependencies": {}
9
9
  }