@livetiles/reach-plugin-types 0.4.0-preview.360 → 0.4.0-preview.361
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 +2 -2
- package/lib/index.d.ts +86 -36
- package/package.json +1 -1
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 'plugins/reach-core';
|
|
4
|
+
export * from 'libs/reach/ui/common/src/plugins/reach-core';
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
declare module '@reach/chrome' {
|
|
8
|
-
export * from 'plugins/reach-chrome';
|
|
8
|
+
export * from 'apps/reach-app/src/plugins/reach-chrome';
|
|
9
9
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2169,14 +2169,82 @@ 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";
|
|
2172
2173
|
export function useCurrentUserCache(): {
|
|
2173
2174
|
clear: () => Promise<void>;
|
|
2174
2175
|
setEssentials: (user: CurrentUser) => Promise<CurrentUser>;
|
|
2175
2176
|
setUser: (user: CurrentUser) => Promise<CurrentUser>;
|
|
2176
|
-
get: () => Promise<
|
|
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
|
+
}>;
|
|
2177
2245
|
};
|
|
2178
2246
|
export function getUserDetailFields(user: Partial<CurrentUser>): {
|
|
2179
|
-
availableSubscriptions:
|
|
2247
|
+
availableSubscriptions: SubscriptionSummary[];
|
|
2180
2248
|
bookmarks: string[];
|
|
2181
2249
|
unreadNews: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
|
|
2182
2250
|
unreadEvents: import("libs/reach/util/common/src/user/User").PublishableItemNotificationSummary[];
|
|
@@ -2256,9 +2324,9 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
2256
2324
|
export * from "libs/reach/util/common/src/user/LanguageUtils";
|
|
2257
2325
|
export * from "libs/reach/util/common/src/user/content-languages-util";
|
|
2258
2326
|
}
|
|
2259
|
-
declare module "libs/reach/util/common/src/plugins/
|
|
2327
|
+
declare module "libs/reach/util/common/src/plugins/usePluginStorage" {
|
|
2260
2328
|
import { Storage } from "libs/reach/util/context/src/index";
|
|
2261
|
-
export function
|
|
2329
|
+
export function usePluginStorage(): PluginStorage;
|
|
2262
2330
|
export function getStorageWrapper(pluginId: string, storage: Storage): PluginStorage;
|
|
2263
2331
|
export interface PluginStorage {
|
|
2264
2332
|
getAllKeys(): Promise<string[]>;
|
|
@@ -2268,34 +2336,12 @@ declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
|
|
|
2268
2336
|
clearAll(): Promise<void>;
|
|
2269
2337
|
}
|
|
2270
2338
|
}
|
|
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
|
-
}
|
|
2289
2339
|
declare module "libs/reach/util/common/src/plugins/PluginContext" {
|
|
2290
2340
|
import { PluginSettings } from "libs/reach/util/common/src/user/Subscription";
|
|
2291
|
-
import { PluginStorage } from "libs/reach/util/common/src/plugins/
|
|
2292
|
-
import { PluginUserStore } from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
2293
|
-
import { PluginSubscriptionStore } from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
2341
|
+
import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginStorage";
|
|
2294
2342
|
export const PluginContext: import("react").Context<{
|
|
2295
2343
|
settings: PluginSettings;
|
|
2296
2344
|
storage: PluginStorage;
|
|
2297
|
-
userStore: PluginUserStore;
|
|
2298
|
-
subscriptionStore: PluginSubscriptionStore;
|
|
2299
2345
|
}>;
|
|
2300
2346
|
export function usePluginSettings<T>(): T;
|
|
2301
2347
|
export function useReachApiEndPoints(): {
|
|
@@ -2364,9 +2410,7 @@ declare module "libs/reach/util/common/src/plugins/index" {
|
|
|
2364
2410
|
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
2365
2411
|
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
2366
2412
|
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2367
|
-
export * from "libs/reach/util/common/src/plugins/
|
|
2368
|
-
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
2369
|
-
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
2413
|
+
export * from "libs/reach/util/common/src/plugins/usePluginStorage";
|
|
2370
2414
|
}
|
|
2371
2415
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2372
2416
|
export class Color {
|
|
@@ -3245,7 +3289,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3245
3289
|
export const PeoplePicker: FC<Props>;
|
|
3246
3290
|
}
|
|
3247
3291
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3248
|
-
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings,
|
|
3292
|
+
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
|
|
3249
3293
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3250
3294
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3251
3295
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3258,11 +3302,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3258
3302
|
import { GutterToggle } from "libs/reach/ui/common/src/GutterToggle";
|
|
3259
3303
|
import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
|
|
3260
3304
|
import { useAccountApi } from "libs/reach/util/common/src/index";
|
|
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, };
|
|
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, };
|
|
3266
3306
|
export type { Account };
|
|
3267
3307
|
}
|
|
3268
3308
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
@@ -3632,8 +3672,10 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
|
|
|
3632
3672
|
groupName?: string;
|
|
3633
3673
|
groupId?: string;
|
|
3634
3674
|
keywordName?: string;
|
|
3675
|
+
keywordId?: string;
|
|
3635
3676
|
language?: string;
|
|
3636
3677
|
underlined?: boolean;
|
|
3678
|
+
onClick?: (keyword: string) => unknown;
|
|
3637
3679
|
}
|
|
3638
3680
|
export const KeywordTitle: FC<Props>;
|
|
3639
3681
|
export const GridKeywordTitle: FC<{
|
|
@@ -3944,6 +3986,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
|
|
|
3944
3986
|
language: string;
|
|
3945
3987
|
channelStyleDefinition?: ChannelStyleDefinition;
|
|
3946
3988
|
visibleChannelsCount?: number;
|
|
3989
|
+
onChannelClick?: (channel: string) => unknown;
|
|
3947
3990
|
className?: string;
|
|
3948
3991
|
}>;
|
|
3949
3992
|
}
|
|
@@ -3975,6 +4018,7 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
|
|
|
3975
4018
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
3976
4019
|
language?: string;
|
|
3977
4020
|
channelBackgroundColor?: string;
|
|
4021
|
+
onClick?: (channel: string) => unknown;
|
|
3978
4022
|
className?: string;
|
|
3979
4023
|
}>;
|
|
3980
4024
|
}
|
|
@@ -6409,6 +6453,7 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
|
6409
6453
|
[key: string]: string | number | boolean | Date;
|
|
6410
6454
|
};
|
|
6411
6455
|
disableBoxShadow?: boolean;
|
|
6456
|
+
ariaLabel?: string;
|
|
6412
6457
|
}
|
|
6413
6458
|
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6414
6459
|
}
|
|
@@ -6980,6 +7025,7 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
6980
7025
|
filterBaseUrl?: string;
|
|
6981
7026
|
className?: string;
|
|
6982
7027
|
useGridKeywordTitle?: boolean;
|
|
7028
|
+
onClick?: (keyword: string) => unknown;
|
|
6983
7029
|
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
6984
7030
|
}
|
|
6985
7031
|
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
@@ -7726,6 +7772,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7726
7772
|
buttons?: ReactNode;
|
|
7727
7773
|
openTargetInNewWindow?: boolean;
|
|
7728
7774
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7775
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7776
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
7729
7777
|
styleDefinition?: StyleDefinition;
|
|
7730
7778
|
readOnly?: boolean;
|
|
7731
7779
|
className?: string;
|
|
@@ -7860,6 +7908,7 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
|
7860
7908
|
mandatoryKeywords?: Keyword[];
|
|
7861
7909
|
};
|
|
7862
7910
|
disableBoxShadow?: boolean;
|
|
7911
|
+
ariaLabel?: string;
|
|
7863
7912
|
}
|
|
7864
7913
|
interface Props extends BaseProps {
|
|
7865
7914
|
allowAttachments?: boolean;
|
|
@@ -7952,6 +8001,7 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
|
7952
8001
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7953
8002
|
onAttachmentAdded?: (attachments: ClientAttachment[]) => void;
|
|
7954
8003
|
onDeleteAttachment?: (attachment: ClientAttachment) => void;
|
|
8004
|
+
ariaLabel?: string;
|
|
7955
8005
|
}
|
|
7956
8006
|
interface Props extends BaseProps {
|
|
7957
8007
|
onSave?: (newContent: string, keywords?: {
|