@livetiles/reach-plugin-types 0.5.0-preview.1028 → 0.5.0-preview.1030
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 +14 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3893,6 +3893,7 @@ declare module "libs/reach/util/common/src/notification/NotificationContext" {
|
|
|
3893
3893
|
hideNotification?: () => unknown;
|
|
3894
3894
|
showToast?: (content: string, values?: {}, actions?: ReactNode, toastOptions?: ToastOptions) => number;
|
|
3895
3895
|
showToastWarning?: (messageId: string, values?: {}, onClose?: () => unknown) => number;
|
|
3896
|
+
showToastError?: (messageId: string, values?: {}, onClose?: () => unknown) => number;
|
|
3896
3897
|
dismissToast?: (toastId?: number) => unknown;
|
|
3897
3898
|
}
|
|
3898
3899
|
export const NotificationContext: import("react").Context<NotificationContextType>;
|
|
@@ -4224,9 +4225,20 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
|
|
|
4224
4225
|
}
|
|
4225
4226
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
4226
4227
|
import { NestedGroup } from "libs/reach/util/common/src/user/index";
|
|
4227
|
-
export
|
|
4228
|
-
|
|
4228
|
+
export interface NestedGroupInput {
|
|
4229
|
+
description: string;
|
|
4230
|
+
id?: string;
|
|
4231
|
+
name: string;
|
|
4232
|
+
users: {
|
|
4233
|
+
userId: string;
|
|
4234
|
+
}[];
|
|
4235
|
+
}
|
|
4236
|
+
export const useNestedGroupsQuery: () => {
|
|
4237
|
+
createNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
|
|
4238
|
+
deleteNestedGroups: (groupIds: string[]) => Promise<string[]>;
|
|
4229
4239
|
loadChildGroups: (parentId: string) => Promise<NestedGroup[]>;
|
|
4240
|
+
loadRootGroups: () => Promise<NestedGroup[]>;
|
|
4241
|
+
updateNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
|
|
4230
4242
|
};
|
|
4231
4243
|
}
|
|
4232
4244
|
declare module "libs/reach/util/common/src/reach-2/index" {
|