@livetiles/reach-plugin-types 0.5.0-preview.1066 → 0.5.0-preview.1068

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +12 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3822,6 +3822,11 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3822
3822
  name: string;
3823
3823
  users: INestedGroupUser[];
3824
3824
  }
3825
+ export interface ILinkGroup {
3826
+ id: string;
3827
+ name: string;
3828
+ parentId: string;
3829
+ }
3825
3830
  export interface INestedGroupInput {
3826
3831
  description: string;
3827
3832
  id?: string;
@@ -3833,12 +3838,16 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
3833
3838
  }
3834
3839
  }
3835
3840
  declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
3836
- import { INestedGroup, INestedGroupInput } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3841
+ import { ILinkGroup, INestedGroup, INestedGroupInput } from "libs/reach/util/common/src/reach-2/nested-groups/types";
3837
3842
  export const useNestedGroupsQuery: () => {
3838
3843
  createNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
3839
3844
  deleteNestedGroup: (groupId: string) => Promise<string>;
3845
+ linkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
3846
+ loadAvailableChildGroups: (groupId: string) => Promise<ILinkGroup[]>;
3847
+ loadAvailableParentGroups: (groupId: string) => Promise<ILinkGroup[]>;
3840
3848
  loadChildGroups: (parentId: string) => Promise<INestedGroup[]>;
3841
3849
  loadRootGroups: () => Promise<INestedGroup[]>;
3850
+ unlinkNestedGroup: (parentId: string, childrenIds: string[]) => Promise<string>;
3842
3851
  updateNestedGroup: (inputGroup: INestedGroupInput) => Promise<INestedGroup>;
3843
3852
  };
3844
3853
  }
@@ -6201,6 +6210,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6201
6210
  export { ReactComponent as MessagingIcon } from './assets/messaging.svg';
6202
6211
  export { ReactComponent as MinimizeActiveIcon } from './assets/minimize-active.svg';
6203
6212
  export { ReactComponent as MinimizeIcon } from './assets/minimize.svg';
6213
+ export { ReactComponent as NewsIcon } from './assets/news.svg';
6204
6214
  export { ReactComponent as NotificationsActiveIcon } from './assets/notifications-active.svg';
6205
6215
  export { ReactComponent as NotificationsIcon } from './assets/notifications.svg';
6206
6216
  export { ReactComponent as NumberedListActiveIcon } from './assets/numberedList-active.svg';
@@ -6304,17 +6314,14 @@ declare module "libs/reach/ui/common/src/reach-2/progress/index" {
6304
6314
  export { default as ButtonLoading } from "libs/reach/ui/common/src/reach-2/progress/ButtonLoading";
6305
6315
  }
6306
6316
  declare module "libs/reach/ui/common/src/reach-2/buttons/BaseButton" {
6307
- import { MouseEventHandler } from 'react';
6308
6317
  export type BaseButtonSizeType = 'Default' | 'Small';
6309
- export interface BaseButtonProps {
6310
- className?: string;
6318
+ export interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6311
6319
  disabled?: boolean;
6312
6320
  domIdentifier?: string;
6313
6321
  icon?: JSX.Element;
6314
6322
  iconPosition?: 'left' | 'right';
6315
6323
  isLoading?: boolean;
6316
6324
  label?: string;
6317
- onClick: MouseEventHandler<HTMLButtonElement>;
6318
6325
  size?: BaseButtonSizeType;
6319
6326
  }
6320
6327
  export const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1066",
7
+ "version": "0.5.0-preview.1068",
8
8
  "dependencies": {}
9
9
  }