@livetiles/reach-plugin-types 0.4.0-preview.358 → 0.4.0-preview.360

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/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference path="./lib/index.d.ts" />
2
2
 
3
3
  declare module '@reach/core' {
4
- export * from 'libs/reach/ui/common/src/plugins/reach-core';
4
+ export * from 'plugins/reach-core';
5
5
  }
6
6
 
7
7
  declare module '@reach/chrome' {
8
- export * from 'apps/reach-app/src/plugins/reach-chrome';
8
+ export * from 'plugins/reach-chrome';
9
9
  }
package/lib/index.d.ts CHANGED
@@ -2169,82 +2169,14 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2169
2169
  }
2170
2170
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
2171
2171
  import { CurrentUser } from "libs/reach/util/common/src/user/User";
2172
- import { SubscriptionSummary } from "libs/reach/util/common/src/user/Subscription";
2173
2172
  export function useCurrentUserCache(): {
2174
2173
  clear: () => Promise<void>;
2175
2174
  setEssentials: (user: CurrentUser) => Promise<CurrentUser>;
2176
2175
  setUser: (user: CurrentUser) => Promise<CurrentUser>;
2177
- get: () => Promise<{
2178
- subscription: {
2179
- logoInfo: {
2180
- smallUrl: any;
2181
- largeUrl: string;
2182
- isLegacyLogo: boolean;
2183
- };
2184
- languages: import("@livetiles/reach/util/common").LanguageBase[];
2185
- featureMask: string;
2186
- company: string;
2187
- directories: import("libs/reach/util/common/src/user/Subscription").DirectoryConfiguration[];
2188
- webPluginDefinitions: import("libs/reach/util/common/src/user/Subscription").WebPluginDefinition[];
2189
- userPropertyDefinitions: import("libs/reach/util/common/src/user/Subscription").UserPropertyDefinition[];
2190
- userFlowSettings?: import("libs/reach/util/common/src/user/Subscription").UserFlowSettings;
2191
- customDomain?: string;
2192
- allowSelfRegistration?: boolean;
2193
- id: string;
2194
- subscriptionName: string;
2195
- subscriptionHandle?: string;
2196
- contact: import("@livetiles/reach/util/common").Account;
2197
- theme: import("libs/reach/util/common/src/user/Subscription").Theme;
2198
- defaultLanguage: string;
2199
- faviconUrl?: string;
2200
- navigation: import("libs/reach/util/common/src/user/Subscription").NavigationNode[];
2201
- regionSettings?: import("libs/reach/util/common/src/user/Subscription").RegionSettings;
2202
- signInSettings?: import("libs/reach/util/common/src/user/Subscription").SignInSettings;
2203
- useInAppBrowser?: boolean;
2204
- hasUnreadItems: boolean;
2205
- pageTrackingInfo: import("libs/reach/util/common/src/user/Subscription").PageTrackingInfo;
2206
- termsAndConditionsHash?: string;
2207
- };
2208
- isEmailVerificationPending?: boolean;
2209
- isSubscriptionOwner: boolean;
2210
- givenName: string;
2211
- surname: string;
2212
- preferredUiLanguage: string;
2213
- preferredContentLanguage?: string;
2214
- preferredLocale?: string;
2215
- bookmarks: string[];
2216
- groups: import("libs/reach/util/common/src/user/User").UserGroup[];
2217
- availableSubscriptions: SubscriptionSummary[];
2218
- channels: import("@livetiles/reach/util/common").UserChannelSubscription[];
2219
- userHash: string;
2220
- unreadNews: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
2221
- unreadEvents: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
2222
- unreadPosts: {
2223
- groupId: string;
2224
- itemId: string;
2225
- }[];
2226
- unreadFeedItemsCount?: number;
2227
- notificationTypeSettings: import("libs/reach/util/common/src/user/User").NotificationTypeSettings;
2228
- hasPendingRegistration?: boolean;
2229
- minRoles: import("libs/reach/util/common/src/user/User").UserMinRoles;
2230
- hasDirectory: boolean;
2231
- contacts: import("libs/reach/util/common/src/user/User").UserContact[];
2232
- termsAndConditionsApprovedHash: string;
2233
- isPublicUser?: boolean;
2234
- hasUnreadChats?: boolean;
2235
- id?: string;
2236
- type?: import("@livetiles/reach/util/common").AccountType;
2237
- tenantId?: string;
2238
- displayName?: string;
2239
- userPrincipalName?: string;
2240
- mail?: string;
2241
- tokenUniqueId?: string;
2242
- authenticationType?: import("@livetiles/shared/util/authentication").AuthenticationType;
2243
- created?: string;
2244
- }>;
2176
+ get: () => Promise<CurrentUser>;
2245
2177
  };
2246
2178
  export function getUserDetailFields(user: Partial<CurrentUser>): {
2247
- availableSubscriptions: SubscriptionSummary[];
2179
+ availableSubscriptions: import("@livetiles/reach/util/common").SubscriptionSummary[];
2248
2180
  bookmarks: string[];
2249
2181
  unreadNews: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
2250
2182
  unreadEvents: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
@@ -2324,9 +2256,9 @@ declare module "libs/reach/util/common/src/user/index" {
2324
2256
  export * from "libs/reach/util/common/src/user/LanguageUtils";
2325
2257
  export * from "libs/reach/util/common/src/user/content-languages-util";
2326
2258
  }
2327
- declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
2259
+ declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
2328
2260
  import { Storage } from "libs/reach/util/context/src/index";
2329
- export function usePluginStorage(): PluginStorage;
2261
+ export function usePluginDeviceStore(): PluginStorage;
2330
2262
  export function getStorageWrapper(pluginId: string, storage: Storage): PluginStorage;
2331
2263
  export interface PluginStorage {
2332
2264
  getAllKeys(): Promise<string[]>;
@@ -2336,12 +2268,34 @@ declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
2336
2268
  clearAll(): Promise<void>;
2337
2269
  }
2338
2270
  }
2271
+ declare module "libs/reach/util/common/src/plugins/usePluginUserStore" {
2272
+ export function usePluginUserStore(): PluginUserStore;
2273
+ export function getPluginUserStoreWrapper(pluginId: string): PluginUserStore;
2274
+ export interface PluginUserStore {
2275
+ getPluginUserStore(key: string): Promise<string>;
2276
+ setPluginUserStore(key: string, value: string | object): Promise<unknown>;
2277
+ deletePluginUserStore(key: string): Promise<unknown>;
2278
+ }
2279
+ }
2280
+ declare module "libs/reach/util/common/src/plugins/usePluginSubscriptionStore" {
2281
+ export function usePluginSubscriptionStore(): PluginSubscriptionStore;
2282
+ export function getPluginSubscriptionStoreWrapper(pluginId: string): PluginSubscriptionStore;
2283
+ export interface PluginSubscriptionStore {
2284
+ getPluginSubscriptionStore(key: string): Promise<string>;
2285
+ setPluginSubscriptionStore(key: string, value: string | object): Promise<unknown>;
2286
+ deletePluginSubscriptionStore(key: string): Promise<unknown>;
2287
+ }
2288
+ }
2339
2289
  declare module "libs/reach/util/common/src/plugins/PluginContext" {
2340
2290
  import { PluginSettings } from "libs/reach/util/common/src/user/Subscription";
2341
- import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginStorage";
2291
+ import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2292
+ import { PluginUserStore } from "libs/reach/util/common/src/plugins/usePluginUserStore";
2293
+ import { PluginSubscriptionStore } from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
2342
2294
  export const PluginContext: import("react").Context<{
2343
2295
  settings: PluginSettings;
2344
2296
  storage: PluginStorage;
2297
+ userStore: PluginUserStore;
2298
+ subscriptionStore: PluginSubscriptionStore;
2345
2299
  }>;
2346
2300
  export function usePluginSettings<T>(): T;
2347
2301
  export function useReachApiEndPoints(): {
@@ -2410,7 +2364,9 @@ declare module "libs/reach/util/common/src/plugins/index" {
2410
2364
  export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
2411
2365
  export * from "libs/reach/util/common/src/plugins/usePluginApi";
2412
2366
  export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
2413
- export * from "libs/reach/util/common/src/plugins/usePluginStorage";
2367
+ export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2368
+ export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
2369
+ export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
2414
2370
  }
2415
2371
  declare module "libs/reach/util/common/src/theme/ColorGenerator" {
2416
2372
  export class Color {
@@ -3289,7 +3245,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3289
3245
  export const PeoplePicker: FC<Props>;
3290
3246
  }
3291
3247
  declare module "libs/reach/ui/common/src/plugins/reach-core" {
3292
- import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
3248
+ import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
3293
3249
  import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
3294
3250
  import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
3295
3251
  import { createId, logger } from "libs/shared/util/common/src/index";
@@ -3302,7 +3258,11 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
3302
3258
  import { GutterToggle } from "libs/reach/ui/common/src/GutterToggle";
3303
3259
  import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
3304
3260
  import { useAccountApi } from "libs/reach/util/common/src/index";
3305
- 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, };
3261
+ export { useCurrentUser, useAccountApi, useAuthenticationContext, useEnvironmentConfig, useNotificationContext, usePromise, LinkContext, TextLink, logger, createId, ResourceContext, usePluginSettings,
3262
+ /**
3263
+ * @deprecated Please use `usePluginDeviceStore` instead
3264
+ */
3265
+ usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
3306
3266
  export type { Account };
3307
3267
  }
3308
3268
  declare module "libs/reach/ui/common/src/content-keyword-utils" {
@@ -3672,10 +3632,8 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
3672
3632
  groupName?: string;
3673
3633
  groupId?: string;
3674
3634
  keywordName?: string;
3675
- keywordId?: string;
3676
3635
  language?: string;
3677
3636
  underlined?: boolean;
3678
- onClick?: (keyword: string) => unknown;
3679
3637
  }
3680
3638
  export const KeywordTitle: FC<Props>;
3681
3639
  export const GridKeywordTitle: FC<{
@@ -3986,7 +3944,6 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
3986
3944
  language: string;
3987
3945
  channelStyleDefinition?: ChannelStyleDefinition;
3988
3946
  visibleChannelsCount?: number;
3989
- onChannelClick?: (channel: string) => unknown;
3990
3947
  className?: string;
3991
3948
  }>;
3992
3949
  }
@@ -4018,7 +3975,6 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
4018
3975
  buildChannelFilterUrl?: (channelName: string) => string;
4019
3976
  language?: string;
4020
3977
  channelBackgroundColor?: string;
4021
- onClick?: (channel: string) => unknown;
4022
3978
  className?: string;
4023
3979
  }>;
4024
3980
  }
@@ -6453,7 +6409,6 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
6453
6409
  [key: string]: string | number | boolean | Date;
6454
6410
  };
6455
6411
  disableBoxShadow?: boolean;
6456
- ariaLabel?: string;
6457
6412
  }
6458
6413
  export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
6459
6414
  }
@@ -7025,7 +6980,6 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
7025
6980
  filterBaseUrl?: string;
7026
6981
  className?: string;
7027
6982
  useGridKeywordTitle?: boolean;
7028
- onClick?: (keyword: string) => unknown;
7029
6983
  }>, import("styled-components").DefaultTheme, {}, never>;
7030
6984
  }
7031
6985
  declare module "libs/reach/feature/content/src/news/NewsService" {
@@ -7772,8 +7726,6 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7772
7726
  buttons?: ReactNode;
7773
7727
  openTargetInNewWindow?: boolean;
7774
7728
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7775
- onChannelClick?: (channel: string) => unknown;
7776
- onKeywordClick?: (keyword: string) => unknown;
7777
7729
  styleDefinition?: StyleDefinition;
7778
7730
  readOnly?: boolean;
7779
7731
  className?: string;
@@ -7908,7 +7860,6 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
7908
7860
  mandatoryKeywords?: Keyword[];
7909
7861
  };
7910
7862
  disableBoxShadow?: boolean;
7911
- ariaLabel?: string;
7912
7863
  }
7913
7864
  interface Props extends BaseProps {
7914
7865
  allowAttachments?: boolean;
@@ -8001,7 +7952,6 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
8001
7952
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
8002
7953
  onAttachmentAdded?: (attachments: ClientAttachment[]) => void;
8003
7954
  onDeleteAttachment?: (attachment: ClientAttachment) => void;
8004
- ariaLabel?: string;
8005
7955
  }
8006
7956
  interface Props extends BaseProps {
8007
7957
  onSave?: (newContent: string, keywords?: {
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.358",
7
+ "version": "0.4.0-preview.360",
8
8
  "dependencies": {}
9
9
  }