@livetiles/reach-plugin-types 0.4.0-preview.363 → 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 +75 -69
- 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" {
|
|
@@ -6443,6 +6473,7 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
|
6443
6473
|
onCtrlEnter?: () => unknown;
|
|
6444
6474
|
onChange?: (value: string) => void;
|
|
6445
6475
|
onFocus?: () => void;
|
|
6476
|
+
additionalInputControl?: ReactNode;
|
|
6446
6477
|
buttons?: {
|
|
6447
6478
|
leftSide?: ReactNode;
|
|
6448
6479
|
rightSide?: ReactNode;
|
|
@@ -6467,18 +6498,6 @@ declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
|
6467
6498
|
isLarge: boolean;
|
|
6468
6499
|
}>;
|
|
6469
6500
|
}
|
|
6470
|
-
declare module "libs/reach/feature/content/src/comments/KeywordsPicker" {
|
|
6471
|
-
import { FC } from 'react';
|
|
6472
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
6473
|
-
export const KeywordsPicker: FC<{
|
|
6474
|
-
defaultKeywords?: {
|
|
6475
|
-
[key: string]: Keyword[];
|
|
6476
|
-
};
|
|
6477
|
-
availableKeywords?: Keyword[];
|
|
6478
|
-
mandatoryKeywords?: Keyword[];
|
|
6479
|
-
onChangeKeywords: (keywords: Keyword[]) => void;
|
|
6480
|
-
}>;
|
|
6481
|
-
}
|
|
6482
6501
|
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
6483
6502
|
import { VideoSource } from "libs/reach/util/common/src/index";
|
|
6484
6503
|
export interface KalturaProperties {
|
|
@@ -6880,7 +6899,6 @@ declare module "libs/reach/feature/content/src/common/useEmbeddedObjectValidator
|
|
|
6880
6899
|
declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
6881
6900
|
import { CommentInputProps } from "libs/reach/feature/content/src/comments/CommentInput";
|
|
6882
6901
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6883
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
6884
6902
|
export interface ClientAttachment extends Attachment {
|
|
6885
6903
|
file?: File;
|
|
6886
6904
|
}
|
|
@@ -6894,14 +6912,6 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
|
6894
6912
|
onAttachmentsChange: (attachments: Attachments) => void;
|
|
6895
6913
|
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
6896
6914
|
placeHolderStringResourceKey?: string;
|
|
6897
|
-
allowKeywords?: boolean;
|
|
6898
|
-
defaultKeywords?: {
|
|
6899
|
-
[key: string]: Keyword[];
|
|
6900
|
-
};
|
|
6901
|
-
availableKeywords?: Keyword[];
|
|
6902
|
-
mandatoryKeywords?: Keyword[];
|
|
6903
|
-
showKeywordsPicker?: boolean;
|
|
6904
|
-
onKeywordsChange?: (keywords: Keyword[]) => void;
|
|
6905
6915
|
disableAddGif?: boolean;
|
|
6906
6916
|
disableAddFiles?: boolean;
|
|
6907
6917
|
};
|
|
@@ -6914,14 +6924,6 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
|
6914
6924
|
onAttachmentsChange: (attachments: Attachments) => void;
|
|
6915
6925
|
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
6916
6926
|
placeHolderStringResourceKey?: string;
|
|
6917
|
-
allowKeywords?: boolean;
|
|
6918
|
-
defaultKeywords?: {
|
|
6919
|
-
[key: string]: Keyword[];
|
|
6920
|
-
};
|
|
6921
|
-
availableKeywords?: Keyword[];
|
|
6922
|
-
mandatoryKeywords?: Keyword[];
|
|
6923
|
-
showKeywordsPicker?: boolean;
|
|
6924
|
-
onKeywordsChange?: (keywords: Keyword[]) => void;
|
|
6925
6927
|
disableAddGif?: boolean;
|
|
6926
6928
|
disableAddFiles?: boolean;
|
|
6927
6929
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -7860,14 +7862,6 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInputWithAtta
|
|
|
7860
7862
|
onAttachmentsChange: (attachments: import("libs/reach/feature/content/src/comments/RichCommentInput").Attachments) => void;
|
|
7861
7863
|
onDeleteAttachment?: (attachment: import("@livetiles/reach/util/common").Attachment) => void;
|
|
7862
7864
|
placeHolderStringResourceKey?: string;
|
|
7863
|
-
allowKeywords?: boolean;
|
|
7864
|
-
defaultKeywords?: {
|
|
7865
|
-
[key: string]: import("@livetiles/reach/util/common").Keyword[];
|
|
7866
|
-
};
|
|
7867
|
-
availableKeywords?: import("@livetiles/reach/util/common").Keyword[];
|
|
7868
|
-
mandatoryKeywords?: import("@livetiles/reach/util/common").Keyword[];
|
|
7869
|
-
showKeywordsPicker?: boolean;
|
|
7870
|
-
onKeywordsChange?: (keywords: import("@livetiles/reach/util/common").Keyword[]) => void;
|
|
7871
7865
|
disableAddGif?: boolean;
|
|
7872
7866
|
disableAddFiles?: boolean;
|
|
7873
7867
|
} & {
|
|
@@ -7876,6 +7870,44 @@ declare module "libs/reach/feature/content/src/comments/RichCommentInputWithAtta
|
|
|
7876
7870
|
attachmentPreviewTheme?: CommentInputTheme;
|
|
7877
7871
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
7878
7872
|
}
|
|
7873
|
+
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPickerGroup" {
|
|
7874
|
+
import { Keyword, KeywordGroup } from "libs/reach/util/common/src/index";
|
|
7875
|
+
import { FC } from 'react';
|
|
7876
|
+
interface Props {
|
|
7877
|
+
group: KeywordGroup;
|
|
7878
|
+
keywords?: Keyword[];
|
|
7879
|
+
expanded?: boolean;
|
|
7880
|
+
selectedKeywords: Keyword[];
|
|
7881
|
+
onChange?: (keywords: Keyword[]) => void;
|
|
7882
|
+
mandatoryKeywordIds?: string[];
|
|
7883
|
+
}
|
|
7884
|
+
export const KeywordPickerGroup: FC<Props>;
|
|
7885
|
+
}
|
|
7886
|
+
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
7887
|
+
import { FC } from 'react';
|
|
7888
|
+
import { Keyword } from "libs/reach/util/common/src/index";
|
|
7889
|
+
interface Props {
|
|
7890
|
+
value?: Keyword[] | string[];
|
|
7891
|
+
onChange: (keywords: Keyword[]) => void;
|
|
7892
|
+
showSelectionToggle?: boolean;
|
|
7893
|
+
availableKeywords?: Keyword[];
|
|
7894
|
+
mandatoryKeywordIds?: string[];
|
|
7895
|
+
className?: string;
|
|
7896
|
+
}
|
|
7897
|
+
export const KeywordPicker: FC<Props>;
|
|
7898
|
+
}
|
|
7899
|
+
declare module "libs/reach/feature/content/src/common/keywords/AddKeywordsButton" {
|
|
7900
|
+
import { Keyword } from "libs/reach/util/common/src/index";
|
|
7901
|
+
import { FC } from 'react';
|
|
7902
|
+
export const AddKeywordsButton: FC<{
|
|
7903
|
+
availableKeywords?: Keyword[];
|
|
7904
|
+
mandatoryKeywords?: Keyword[];
|
|
7905
|
+
preselectedKeywords?: Keyword[];
|
|
7906
|
+
onKeywordsChange?: (keywords: Keyword[]) => void;
|
|
7907
|
+
disabled?: boolean;
|
|
7908
|
+
keywordPickerTitleResourceKey?: string;
|
|
7909
|
+
}>;
|
|
7910
|
+
}
|
|
7879
7911
|
declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
7880
7912
|
import { FC } from 'react';
|
|
7881
7913
|
import { Account } from "libs/reach/util/common/src/index";
|
|
@@ -9270,32 +9302,6 @@ declare module "libs/reach/feature/content/src/feedback/index" {
|
|
|
9270
9302
|
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
9271
9303
|
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
9272
9304
|
}
|
|
9273
|
-
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPickerGroup" {
|
|
9274
|
-
import { Keyword, KeywordGroup } from "libs/reach/util/common/src/index";
|
|
9275
|
-
import { FC } from 'react';
|
|
9276
|
-
interface Props {
|
|
9277
|
-
group: KeywordGroup;
|
|
9278
|
-
keywords?: Keyword[];
|
|
9279
|
-
expanded?: boolean;
|
|
9280
|
-
selectedKeywords: Keyword[];
|
|
9281
|
-
onChange?: (keywords: Keyword[]) => void;
|
|
9282
|
-
mandatoryKeywordIds?: string[];
|
|
9283
|
-
}
|
|
9284
|
-
export const KeywordPickerGroup: FC<Props>;
|
|
9285
|
-
}
|
|
9286
|
-
declare module "libs/reach/feature/content/src/forms/keyword-picker/KeywordPicker" {
|
|
9287
|
-
import { FC } from 'react';
|
|
9288
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
9289
|
-
interface Props {
|
|
9290
|
-
value?: Keyword[] | string[];
|
|
9291
|
-
onChange: (keywords: Keyword[]) => void;
|
|
9292
|
-
showSelectionToggle?: boolean;
|
|
9293
|
-
availableKeywords?: Keyword[];
|
|
9294
|
-
mandatoryKeywordIds?: string[];
|
|
9295
|
-
className?: string;
|
|
9296
|
-
}
|
|
9297
|
-
export const KeywordPicker: FC<Props>;
|
|
9298
|
-
}
|
|
9299
9305
|
declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
9300
9306
|
import { FC, ReactNode } from 'react';
|
|
9301
9307
|
import { Keyword } from "libs/reach/util/common/src/index";
|