@livetiles/reach-plugin-types 0.4.0-preview.354 → 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.
- package/lib/index.d.ts +26 -13
- 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/
|
|
2259
|
+
declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
|
|
2260
2260
|
import { Storage } from "libs/reach/util/context/src/index";
|
|
2261
|
-
export function
|
|
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/
|
|
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/
|
|
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,
|
|
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,
|
|
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
|
}
|
|
@@ -6956,7 +6972,6 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
6956
6972
|
filterBaseUrl?: string;
|
|
6957
6973
|
className?: string;
|
|
6958
6974
|
useGridKeywordTitle?: boolean;
|
|
6959
|
-
onClick?: (keyword: string) => unknown;
|
|
6960
6975
|
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
6961
6976
|
}
|
|
6962
6977
|
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
@@ -7703,8 +7718,6 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7703
7718
|
buttons?: ReactNode;
|
|
7704
7719
|
openTargetInNewWindow?: boolean;
|
|
7705
7720
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7706
|
-
onChannelClick?: (channel: string) => unknown;
|
|
7707
|
-
onKeywordClick?: (keyword: string) => unknown;
|
|
7708
7721
|
styleDefinition?: StyleDefinition;
|
|
7709
7722
|
readOnly?: boolean;
|
|
7710
7723
|
className?: string;
|