@livetiles/reach-plugin-types 0.4.0-preview.420 → 0.4.0-preview.424
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 +27 -6
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1409,6 +1409,7 @@ declare module "libs/reach/util/common/src/user/User" {
|
|
|
1409
1409
|
itemId: string;
|
|
1410
1410
|
}[];
|
|
1411
1411
|
unreadFeedItemsCount?: number;
|
|
1412
|
+
mostRecentPostGroups: string[];
|
|
1412
1413
|
notificationTypeSettings: NotificationTypeSettings;
|
|
1413
1414
|
hasPendingRegistration?: boolean;
|
|
1414
1415
|
minRoles: UserMinRoles;
|
|
@@ -2224,6 +2225,7 @@ declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
|
2224
2225
|
itemId: string;
|
|
2225
2226
|
}[];
|
|
2226
2227
|
unreadFeedItemsCount?: number;
|
|
2228
|
+
mostRecentPostGroups: string[];
|
|
2227
2229
|
notificationTypeSettings: import("libs/reach/util/common/src/user/User").NotificationTypeSettings;
|
|
2228
2230
|
hasPendingRegistration?: boolean;
|
|
2229
2231
|
minRoles: import("libs/reach/util/common/src/user/User").UserMinRoles;
|
|
@@ -2254,6 +2256,7 @@ declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
|
2254
2256
|
}[];
|
|
2255
2257
|
hasUnreadChats: boolean;
|
|
2256
2258
|
unreadFeedItemsCount: number;
|
|
2259
|
+
mostRecentPostGroups: string[];
|
|
2257
2260
|
};
|
|
2258
2261
|
}
|
|
2259
2262
|
declare module "libs/reach/util/common/src/user/CurrentUserDetailContextProvider" {
|
|
@@ -2337,22 +2340,40 @@ declare module "libs/reach/util/common/src/plugins/usePluginDeviceStore" {
|
|
|
2337
2340
|
}
|
|
2338
2341
|
}
|
|
2339
2342
|
declare module "libs/reach/util/common/src/plugins/usePluginUserStore" {
|
|
2343
|
+
import { DependencyList } from 'react';
|
|
2340
2344
|
import { Api } from 'restful.js';
|
|
2341
2345
|
export function usePluginUserStore(): PluginUserStore;
|
|
2346
|
+
export function usePluginUserStoreValue<T>(key: string, deps?: DependencyList): {
|
|
2347
|
+
data: T;
|
|
2348
|
+
set: (newValue: T) => Promise<unknown>;
|
|
2349
|
+
isLoading: boolean;
|
|
2350
|
+
error: any;
|
|
2351
|
+
refresh: () => void;
|
|
2352
|
+
remove: () => Promise<unknown>;
|
|
2353
|
+
};
|
|
2342
2354
|
export function getPluginUserStoreWrapper(pluginId: string, api: Api): PluginUserStore;
|
|
2343
2355
|
export interface PluginUserStore {
|
|
2344
|
-
getPluginUserValue(key: string): Promise<
|
|
2345
|
-
setPluginUserValue(key: string, value:
|
|
2356
|
+
getPluginUserValue<T>(key: string): Promise<T>;
|
|
2357
|
+
setPluginUserValue<T>(key: string, value: T): Promise<unknown>;
|
|
2346
2358
|
deletePluginUserValue(key: string): Promise<unknown>;
|
|
2347
2359
|
}
|
|
2348
2360
|
}
|
|
2349
2361
|
declare module "libs/reach/util/common/src/plugins/usePluginSubscriptionStore" {
|
|
2362
|
+
import { DependencyList } from 'react';
|
|
2350
2363
|
import { Api } from 'restful.js';
|
|
2351
2364
|
export function usePluginSubscriptionStore(): PluginSubscriptionStore;
|
|
2365
|
+
export function usePluginSubscriptionStoreValue<T>(key: string, deps?: DependencyList): {
|
|
2366
|
+
data: T;
|
|
2367
|
+
set: (newValue: T) => Promise<unknown>;
|
|
2368
|
+
isLoading: boolean;
|
|
2369
|
+
error: any;
|
|
2370
|
+
refresh: () => void;
|
|
2371
|
+
remove: () => Promise<unknown>;
|
|
2372
|
+
};
|
|
2352
2373
|
export function getPluginSubscriptionStoreWrapper(pluginId: string, api: Api): PluginSubscriptionStore;
|
|
2353
2374
|
export interface PluginSubscriptionStore {
|
|
2354
|
-
getPluginSubscriptionValue(key: string): Promise<
|
|
2355
|
-
setPluginSubscriptionValue(key: string, value:
|
|
2375
|
+
getPluginSubscriptionValue<T>(key: string): Promise<T>;
|
|
2376
|
+
setPluginSubscriptionValue<T>(key: string, value: T): Promise<unknown>;
|
|
2356
2377
|
deletePluginSubscriptionValue(key: string): Promise<unknown>;
|
|
2357
2378
|
}
|
|
2358
2379
|
}
|
|
@@ -3345,7 +3366,7 @@ declare module "libs/reach/ui/common/src/PeoplePicker" {
|
|
|
3345
3366
|
export const PeoplePicker: FC<Props>;
|
|
3346
3367
|
}
|
|
3347
3368
|
declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
3348
|
-
import { Account, AccountType, PluginProps, PluginNavigationNodeProps, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme,
|
|
3369
|
+
import { Account, AccountType, PluginProps, PluginNavigationNodeProps, useCurrentUser, useNotificationContext, usePluginSettings, usePluginDeviceStore, useReachApiEndPoints, useSubscriptionHandlePathBuilder, useTheme, usePluginSubscriptionStoreValue, usePluginUserStoreValue, usePluginUserStore, usePluginSubscriptionStore } from "libs/reach/util/common/src/index";
|
|
3349
3370
|
import { LinkContext, ResourceContext } from "libs/reach/util/context/src/index";
|
|
3350
3371
|
import { useAuthenticationContext } from "libs/shared/util/authentication/src/index";
|
|
3351
3372
|
import { createId, logger } from "libs/shared/util/common/src/index";
|
|
@@ -3362,7 +3383,7 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
3362
3383
|
/**
|
|
3363
3384
|
* @deprecated Please use `usePluginDeviceStore` instead
|
|
3364
3385
|
*/
|
|
3365
|
-
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginUserStore, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3386
|
+
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, };
|
|
3366
3387
|
export type { Account, PluginNavigationNodeProps, PluginProps };
|
|
3367
3388
|
}
|
|
3368
3389
|
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|