@livetiles/reach-plugin-types 0.4.0-preview.357 → 0.4.0-preview.358
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 -28
- 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[]>;
|
|
@@ -2270,7 +2338,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
|
|
|
2270
2338
|
}
|
|
2271
2339
|
declare module "libs/reach/util/common/src/plugins/PluginContext" {
|
|
2272
2340
|
import { PluginSettings } from "libs/reach/util/common/src/user/Subscription";
|
|
2273
|
-
import { PluginStorage } from "libs/reach/util/common/src/plugins/
|
|
2341
|
+
import { PluginStorage } from "libs/reach/util/common/src/plugins/usePluginStorage";
|
|
2274
2342
|
export const PluginContext: import("react").Context<{
|
|
2275
2343
|
settings: PluginSettings;
|
|
2276
2344
|
storage: PluginStorage;
|
|
@@ -2335,20 +2403,6 @@ declare module "libs/reach/util/common/src/plugins/Plugins" {
|
|
|
2335
2403
|
area: ExtensionArea;
|
|
2336
2404
|
} & any>;
|
|
2337
2405
|
}
|
|
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
|
-
}
|
|
2352
2406
|
declare module "libs/reach/util/common/src/plugins/index" {
|
|
2353
2407
|
export * from "libs/reach/util/common/src/plugins/PluginContext";
|
|
2354
2408
|
export * from "libs/reach/util/common/src/plugins/PluginWrapper";
|
|
@@ -2356,9 +2410,7 @@ declare module "libs/reach/util/common/src/plugins/index" {
|
|
|
2356
2410
|
export * from "libs/reach/util/common/src/plugins/SystemJSHelper";
|
|
2357
2411
|
export * from "libs/reach/util/common/src/plugins/usePluginApi";
|
|
2358
2412
|
export * from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
2359
|
-
export * from "libs/reach/util/common/src/plugins/
|
|
2360
|
-
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
2361
|
-
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
2413
|
+
export * from "libs/reach/util/common/src/plugins/usePluginStorage";
|
|
2362
2414
|
}
|
|
2363
2415
|
declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
2364
2416
|
export class Color {
|
|
@@ -3237,7 +3289,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3237
3289
|
export const PeoplePicker: FC<Props>;
|
|
3238
3290
|
}
|
|
3239
3291
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3240
|
-
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings,
|
|
3292
|
+
import { Account, AccountType, useCurrentUser, useNotificationContext, usePluginSettings, usePluginStorage, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme } from "libs/reach/util/common/src/index";
|
|
3241
3293
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3242
3294
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3243
3295
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3250,11 +3302,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3250
3302
|
import { GutterToggle } from "libs/reach/ui/common/src/GutterToggle";
|
|
3251
3303
|
import { PeoplePicker } from "libs/reach/ui/common/src/PeoplePicker";
|
|
3252
3304
|
import { useAccountApi } from "libs/reach/util/common/src/index";
|
|
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, };
|
|
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, };
|
|
3258
3306
|
export type { Account };
|
|
3259
3307
|
}
|
|
3260
3308
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
@@ -3624,8 +3672,10 @@ declare module "libs/reach/ui/common/src/common/KeywordTitle" {
|
|
|
3624
3672
|
groupName?: string;
|
|
3625
3673
|
groupId?: string;
|
|
3626
3674
|
keywordName?: string;
|
|
3675
|
+
keywordId?: string;
|
|
3627
3676
|
language?: string;
|
|
3628
3677
|
underlined?: boolean;
|
|
3678
|
+
onClick?: (keyword: string) => unknown;
|
|
3629
3679
|
}
|
|
3630
3680
|
export const KeywordTitle: FC<Props>;
|
|
3631
3681
|
export const GridKeywordTitle: FC<{
|
|
@@ -3936,6 +3986,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
|
|
|
3936
3986
|
language: string;
|
|
3937
3987
|
channelStyleDefinition?: ChannelStyleDefinition;
|
|
3938
3988
|
visibleChannelsCount?: number;
|
|
3989
|
+
onChannelClick?: (channel: string) => unknown;
|
|
3939
3990
|
className?: string;
|
|
3940
3991
|
}>;
|
|
3941
3992
|
}
|
|
@@ -3967,6 +4018,7 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
|
|
|
3967
4018
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
3968
4019
|
language?: string;
|
|
3969
4020
|
channelBackgroundColor?: string;
|
|
4021
|
+
onClick?: (channel: string) => unknown;
|
|
3970
4022
|
className?: string;
|
|
3971
4023
|
}>;
|
|
3972
4024
|
}
|
|
@@ -6401,6 +6453,7 @@ declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
|
6401
6453
|
[key: string]: string | number | boolean | Date;
|
|
6402
6454
|
};
|
|
6403
6455
|
disableBoxShadow?: boolean;
|
|
6456
|
+
ariaLabel?: string;
|
|
6404
6457
|
}
|
|
6405
6458
|
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6406
6459
|
}
|
|
@@ -6972,6 +7025,7 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
6972
7025
|
filterBaseUrl?: string;
|
|
6973
7026
|
className?: string;
|
|
6974
7027
|
useGridKeywordTitle?: boolean;
|
|
7028
|
+
onClick?: (keyword: string) => unknown;
|
|
6975
7029
|
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
6976
7030
|
}
|
|
6977
7031
|
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
@@ -7718,6 +7772,8 @@ declare module "libs/reach/feature/content/src/common/item-tile/NewsItemTile" {
|
|
|
7718
7772
|
buttons?: ReactNode;
|
|
7719
7773
|
openTargetInNewWindow?: boolean;
|
|
7720
7774
|
onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
|
|
7775
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7776
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
7721
7777
|
styleDefinition?: StyleDefinition;
|
|
7722
7778
|
readOnly?: boolean;
|
|
7723
7779
|
className?: string;
|
|
@@ -7852,6 +7908,7 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
|
7852
7908
|
mandatoryKeywords?: Keyword[];
|
|
7853
7909
|
};
|
|
7854
7910
|
disableBoxShadow?: boolean;
|
|
7911
|
+
ariaLabel?: string;
|
|
7855
7912
|
}
|
|
7856
7913
|
interface Props extends BaseProps {
|
|
7857
7914
|
allowAttachments?: boolean;
|
|
@@ -7944,6 +8001,7 @@ declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
|
7944
8001
|
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7945
8002
|
onAttachmentAdded?: (attachments: ClientAttachment[]) => void;
|
|
7946
8003
|
onDeleteAttachment?: (attachment: ClientAttachment) => void;
|
|
8004
|
+
ariaLabel?: string;
|
|
7947
8005
|
}
|
|
7948
8006
|
interface Props extends BaseProps {
|
|
7949
8007
|
onSave?: (newContent: string, keywords?: {
|