@livetiles/reach-plugin-types 0.4.0-preview.356 → 0.4.0-preview.357

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 +26 -16
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2256,9 +2256,9 @@ declare module "libs/reach/util/common/src/user/index" {
2256
2256
  export * from "libs/reach/util/common/src/user/LanguageUtils";
2257
2257
  export * from "libs/reach/util/common/src/user/content-languages-util";
2258
2258
  }
2259
- declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
2259
+ declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
2260
2260
  import { Storage } from "libs/reach/util/context/src/index";
2261
- export function usePluginStorage(): PluginStorage;
2261
+ export function usePluginDeviceStore(): PluginStorage;
2262
2262
  export function getStorageWrapper(pluginId: string, storage: Storage): PluginStorage;
2263
2263
  export interface PluginStorage {
2264
2264
  getAllKeys(): Promise<string[]>;
@@ -2270,7 +2270,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
2270
2270
  }
2271
2271
  declare module "libs/reach/util/common/src/plugins/PluginContext" {
2272
2272
  import { PluginSettings } from "libs/reach/util/common/src/user/Subscription";
2273
- import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginStorage";
2273
+ import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2274
2274
  export const PluginContext: import("react").Context<{
2275
2275
  settings: PluginSettings;
2276
2276
  storage: PluginStorage;
@@ -2335,6 +2335,20 @@ declare module "libs/reach/util/common/src/plugins/Plugins" {
2335
2335
  area: ExtensionArea;
2336
2336
  } & any>;
2337
2337
  }
2338
+ declare module "libs/reach/util/common/src/plugins/usePluginSubscriptionStore" {
2339
+ export function usePluginSubscriptionStore(pluginId: string): {
2340
+ getPluginSubscriptionStore: (key: string) => any;
2341
+ setPluginSubscriptionStore: (key: string, value: string | object) => any;
2342
+ deletePluginSubscriptionStore: (key: string) => any;
2343
+ };
2344
+ }
2345
+ declare module "libs/reach/util/common/src/plugins/usePluginUserStore" {
2346
+ export function usePluginUserStore(pluginId: string): {
2347
+ getPluginUserStore: (key: string) => any;
2348
+ setPluginUserStore: (key: string, value: string | object) => any;
2349
+ deletePluginUserStore: (key: string) => any;
2350
+ };
2351
+ }
2338
2352
  declare module "libs/reach/util/common/src/plugins/index" {
2339
2353
  export * from "libs/reach/util/common/src/plugins/PluginContext";
2340
2354
  export * from "libs/reach/util/common/src/plugins/PluginWrapper";
@@ -2342,7 +2356,9 @@ declare module "libs/reach/util/common/src/plugins/index" {
2342
2356
  export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
2343
2357
  export * from "libs/reach/util/common/src/plugins/usePluginApi";
2344
2358
  export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
2345
- export * from "libs/reach/util/common/src/plugins/usePluginStorage";
2359
+ export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
2360
+ export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
2361
+ export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
2346
2362
  }
2347
2363
  declare module "libs/reach/util/common/src/theme/ColorGenerator" {
2348
2364
  export class Color {
@@ -3221,7 +3237,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
3221
3237
  export const PeoplePicker: FC<Props>;
3222
3238
  }
3223
3239
  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";
3240
+ import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
3225
3241
  import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
3226
3242
  import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
3227
3243
  import { createId, logger } from "libs/shared/util/common/src/index";
@@ -3234,7 +3250,11 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
3234
3250
  import { GutterToggle } from "libs/reach/ui/common/src/GutterToggle";
3235
3251
  import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
3236
3252
  import { useAccountApi } from "libs/reach/util/common/src/index";
3237
- 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, };
3253
+ export { useCurrentUser, useAccountApi, useAuthenticationContext, useEnvironmentConfig, useNotificationContext, usePromise, LinkContext, TextLink, logger, createId, ResourceContext, usePluginSettings,
3254
+ /**
3255
+ * @deprecated Please use `usePluginDeviceStore` instead
3256
+ */
3257
+ usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
3238
3258
  export type { Account };
3239
3259
  }
3240
3260
  declare module "libs/reach/ui/common/src/content-keyword-utils" {
@@ -3604,10 +3624,8 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
3604
3624
  groupName?: string;
3605
3625
  groupId?: string;
3606
3626
  keywordName?: string;
3607
- keywordId?: string;
3608
3627
  language?: string;
3609
3628
  underlined?: boolean;
3610
- onClick?: (keyword: string) => unknown;
3611
3629
  }
3612
3630
  export const KeywordTitle: FC<Props>;
3613
3631
  export const GridKeywordTitle: FC<{
@@ -3918,7 +3936,6 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
3918
3936
  language: string;
3919
3937
  channelStyleDefinition?: ChannelStyleDefinition;
3920
3938
  visibleChannelsCount?: number;
3921
- onChannelClick?: (channel: string) => unknown;
3922
3939
  className?: string;
3923
3940
  }>;
3924
3941
  }
@@ -3950,7 +3967,6 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
3950
3967
  buildChannelFilterUrl?: (channelName: string) => string;
3951
3968
  language?: string;
3952
3969
  channelBackgroundColor?: string;
3953
- onClick?: (channel: string) => unknown;
3954
3970
  className?: string;
3955
3971
  }>;
3956
3972
  }
@@ -6385,7 +6401,6 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
6385
6401
  [key: string]: string | number | boolean | Date;
6386
6402
  };
6387
6403
  disableBoxShadow?: boolean;
6388
- ariaLabel?: string;
6389
6404
  }
6390
6405
  export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
6391
6406
  }
@@ -6957,7 +6972,6 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
6957
6972
  filterBaseUrl?: string;
6958
6973
  className?: string;
6959
6974
  useGridKeywordTitle?: boolean;
6960
- onClick?: (keyword: string) => unknown;
6961
6975
  }>, import("styled-components").DefaultTheme, {}, never>;
6962
6976
  }
6963
6977
  declare module "libs/reach/feature/content/src/news/NewsService" {
@@ -7704,8 +7718,6 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
7704
7718
  buttons?: ReactNode;
7705
7719
  openTargetInNewWindow?: boolean;
7706
7720
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
7707
- onChannelClick?: (channel: string) => unknown;
7708
- onKeywordClick?: (keyword: string) => unknown;
7709
7721
  styleDefinition?: StyleDefinition;
7710
7722
  readOnly?: boolean;
7711
7723
  className?: string;
@@ -7840,7 +7852,6 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
7840
7852
  mandatoryKeywords?: Keyword[];
7841
7853
  };
7842
7854
  disableBoxShadow?: boolean;
7843
- ariaLabel?: string;
7844
7855
  }
7845
7856
  interface Props extends BaseProps {
7846
7857
  allowAttachments?: boolean;
@@ -7933,7 +7944,6 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
7933
7944
  mentionSearchHandler: (searchText: string) => Promise<Account[]>;
7934
7945
  onAttachmentAdded?: (attachments: ClientAttachment[]) => void;
7935
7946
  onDeleteAttachment?: (attachment: ClientAttachment) => void;
7936
- ariaLabel?: string;
7937
7947
  }
7938
7948
  interface Props extends BaseProps {
7939
7949
  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.356",
7
+ "version": "0.4.0-preview.357",
8
8
  "dependencies": {}
9
9
  }