@livetiles/reach-plugin-types 0.4.0-preview.366 → 0.4.0-preview.368
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 +36 -6
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2324,9 +2324,9 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
2324
2324
|
export * from "libs/reach/util/common/src/user/LanguageUtils";
|
|
2325
2325
|
export * from "libs/reach/util/common/src/user/content-languages-util";
|
|
2326
2326
|
}
|
|
2327
|
-
declare module "libs/reach/util/common/src/plugins/
|
|
2327
|
+
declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
|
|
2328
2328
|
import { Storage } from "libs/reach/util/context/src/index";
|
|
2329
|
-
export function
|
|
2329
|
+
export function usePluginDeviceStore(): PluginStorage;
|
|
2330
2330
|
export function getStorageWrapper(pluginId: string, storage: Storage): PluginStorage;
|
|
2331
2331
|
export interface PluginStorage {
|
|
2332
2332
|
getAllKeys(): Promise<string[]>;
|
|
@@ -2336,12 +2336,36 @@ declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
|
|
|
2336
2336
|
clearAll(): Promise<void>;
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
|
+
declare module "libs/reach/util/common/src/plugins/usePluginUserStore" {
|
|
2340
|
+
import { Api } from 'restful.js';
|
|
2341
|
+
export function usePluginUserStore(): PluginUserStore;
|
|
2342
|
+
export function getPluginUserStoreWrapper(pluginId: string, api: Api): PluginUserStore;
|
|
2343
|
+
export interface PluginUserStore {
|
|
2344
|
+
getPluginUserValue(key: string): Promise<string>;
|
|
2345
|
+
setPluginUserValue(key: string, value: string | object): Promise<unknown>;
|
|
2346
|
+
deletePluginUserValue(key: string): Promise<unknown>;
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
declare module "libs/reach/util/common/src/plugins/usePluginSubscriptionStore" {
|
|
2350
|
+
import { Api } from 'restful.js';
|
|
2351
|
+
export function usePluginSubscriptionStore(): PluginSubscriptionStore;
|
|
2352
|
+
export function getPluginSubscriptionStoreWrapper(pluginId: string, api: Api): PluginSubscriptionStore;
|
|
2353
|
+
export interface PluginSubscriptionStore {
|
|
2354
|
+
getPluginSubscriptionValue(key: string): Promise<string>;
|
|
2355
|
+
setPluginSubscriptionValue(key: string, value: string | object): Promise<unknown>;
|
|
2356
|
+
deletePluginSubscriptionValue(key: string): Promise<unknown>;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2339
2359
|
declare module "libs/reach/util/common/src/plugins/PluginContext" {
|
|
2340
2360
|
import { PluginSettings } from "libs/reach/util/common/src/user/Subscription";
|
|
2341
|
-
import { PluginStorage } from "libs/reach/util/common/src/plugins/
|
|
2361
|
+
import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
|
|
2362
|
+
import { PluginUserStore } from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
2363
|
+
import { PluginSubscriptionStore } from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
2342
2364
|
export const PluginContext: import("react").Context<{
|
|
2343
2365
|
settings: PluginSettings;
|
|
2344
2366
|
storage: PluginStorage;
|
|
2367
|
+
userStore: PluginUserStore;
|
|
2368
|
+
subscriptionStore: PluginSubscriptionStore;
|
|
2345
2369
|
}>;
|
|
2346
2370
|
export function usePluginSettings<T>(): T;
|
|
2347
2371
|
export function useReachApiEndPoints(): {
|
|
@@ -2410,7 +2434,9 @@ declare module "libs/reach/util/common/src/plugins/index" {
|
|
|
2410
2434
|
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
2411
2435
|
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
2412
2436
|
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2413
|
-
export * from "libs/reach/util/common/src/plugins/
|
|
2437
|
+
export * from "libs/reach/util/common/src/plugins/usePluginDeviceStore";
|
|
2438
|
+
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
2439
|
+
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
2414
2440
|
}
|
|
2415
2441
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2416
2442
|
export class Color {
|
|
@@ -3289,7 +3315,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3289
3315
|
export const PeoplePicker: FC<Props>;
|
|
3290
3316
|
}
|
|
3291
3317
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3292
|
-
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings,
|
|
3318
|
+
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStore, usePluginUserStore } from "libs/reach/util/common/src/index";
|
|
3293
3319
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3294
3320
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3295
3321
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3302,7 +3328,11 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3302
3328
|
import { GutterToggle } from "libs/reach/ui/common/src/GutterToggle";
|
|
3303
3329
|
import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
|
|
3304
3330
|
import { useAccountApi } from "libs/reach/util/common/src/index";
|
|
3305
|
-
export { useCurrentUser, useAccountApi, useAuthenticationContext, useEnvironmentConfig, useNotificationContext, usePromise, LinkContext, TextLink, logger, createId, ResourceContext, usePluginSettings,
|
|
3331
|
+
export { useCurrentUser, useAccountApi, useAuthenticationContext, useEnvironmentConfig, useNotificationContext, usePromise, LinkContext, TextLink, logger, createId, ResourceContext, usePluginSettings,
|
|
3332
|
+
/**
|
|
3333
|
+
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3334
|
+
*/
|
|
3335
|
+
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3306
3336
|
export type { Account };
|
|
3307
3337
|
}
|
|
3308
3338
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|