@interopio/groups-ui-react 2.6.2 → 2.7.1

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 (57) hide show
  1. package/dist/cjs/GroupWrapper.d.ts +2 -1
  2. package/dist/cjs/index.js +272 -177
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/tests/buttons/BaseButton.test.d.ts +1 -0
  5. package/dist/cjs/tests/buttons/CloneButton.test.d.ts +1 -0
  6. package/dist/cjs/tests/buttons/CloseButton.test.d.ts +1 -0
  7. package/dist/cjs/tests/buttons/CustomButton.test.d.ts +1 -0
  8. package/dist/cjs/tests/buttons/ExtractButton.test.d.ts +1 -0
  9. package/dist/cjs/tests/buttons/FeedbackButton.test.d.ts +1 -0
  10. package/dist/cjs/tests/buttons/LockButtons.test.d.ts +1 -0
  11. package/dist/cjs/tests/buttons/MaximizeButton.test.d.ts +1 -0
  12. package/dist/cjs/tests/buttons/MinimizeButton.test.d.ts +1 -0
  13. package/dist/cjs/tests/buttons/OverflowButton.test.d.ts +1 -0
  14. package/dist/cjs/tests/buttons/RestoreButton.test.d.ts +1 -0
  15. package/dist/cjs/tests/buttons/StickyButton.test.d.ts +1 -0
  16. package/dist/cjs/tests/buttons/UnlockButton.test.d.ts +1 -0
  17. package/dist/cjs/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
  18. package/dist/cjs/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
  19. package/dist/cjs/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
  20. package/dist/cjs/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
  21. package/dist/cjs/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
  22. package/dist/cjs/tests/popups/TabOverflowPopup.test.d.ts +1 -0
  23. package/dist/cjs/tests/tabs/Tab.test.d.ts +1 -0
  24. package/dist/cjs/types/api.d.ts +10 -1
  25. package/dist/cjs/types/defaultComponents.d.ts +0 -1
  26. package/dist/cjs/types/internal.d.ts +21 -0
  27. package/dist/cjs/webGroupsManager.d.ts +4 -1
  28. package/dist/esm/GroupWrapper.d.ts +2 -1
  29. package/dist/esm/index.js +285 -190
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/tests/buttons/BaseButton.test.d.ts +1 -0
  32. package/dist/esm/tests/buttons/CloneButton.test.d.ts +1 -0
  33. package/dist/esm/tests/buttons/CloseButton.test.d.ts +1 -0
  34. package/dist/esm/tests/buttons/CustomButton.test.d.ts +1 -0
  35. package/dist/esm/tests/buttons/ExtractButton.test.d.ts +1 -0
  36. package/dist/esm/tests/buttons/FeedbackButton.test.d.ts +1 -0
  37. package/dist/esm/tests/buttons/LockButtons.test.d.ts +1 -0
  38. package/dist/esm/tests/buttons/MaximizeButton.test.d.ts +1 -0
  39. package/dist/esm/tests/buttons/MinimizeButton.test.d.ts +1 -0
  40. package/dist/esm/tests/buttons/OverflowButton.test.d.ts +1 -0
  41. package/dist/esm/tests/buttons/RestoreButton.test.d.ts +1 -0
  42. package/dist/esm/tests/buttons/StickyButton.test.d.ts +1 -0
  43. package/dist/esm/tests/buttons/UnlockButton.test.d.ts +1 -0
  44. package/dist/esm/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
  45. package/dist/esm/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
  46. package/dist/esm/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
  47. package/dist/esm/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
  48. package/dist/esm/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
  49. package/dist/esm/tests/popups/TabOverflowPopup.test.d.ts +1 -0
  50. package/dist/esm/tests/tabs/Tab.test.d.ts +1 -0
  51. package/dist/esm/types/api.d.ts +10 -1
  52. package/dist/esm/types/defaultComponents.d.ts +0 -1
  53. package/dist/esm/types/internal.d.ts +21 -0
  54. package/dist/esm/webGroupsManager.d.ts +4 -1
  55. package/dist/styles/groups.css +6 -36
  56. package/dist/styles/vars.css +2 -1
  57. package/package.json +36 -28
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Bounds, ButtonProps, Location, OverflowedTabInfo, ToggleButtonProps } from "./internal";
2
+ import { Bounds, ButtonProps, Location, OverflowedTabInfo, StylesOptions, ToggleButtonProps } from "./internal";
3
3
  import { CustomButtonProps } from "./defaultComponents";
4
4
  export interface ChannelProps {
5
5
  visible: boolean;
@@ -171,6 +171,15 @@ export interface GroupProps {
171
171
  Buttons?: React.ComponentType<HtmlButtonsProps>;
172
172
  };
173
173
  };
174
+ styles?: {
175
+ tabs?: {
176
+ header?: StylesOptions;
177
+ moveArea?: StylesOptions;
178
+ };
179
+ frame?: {
180
+ element?: StylesOptions;
181
+ };
182
+ };
174
183
  }
175
184
  export interface MoveAreaProps {
176
185
  elementId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Bounds, ButtonProps, TargetType, ToggleButtonProps } from "./internal";
3
2
  export interface CaptionEditorProps {
4
3
  targetId: string;
@@ -1,4 +1,8 @@
1
1
  import React from "react";
2
+ declare type NonMethodKeys<T> = ({
3
+ [P in keyof T]: T[P] extends Function ? never : P;
4
+ })[keyof T];
5
+ declare type NonMethods<T> = Pick<T, NonMethodKeys<T>>;
2
6
  export interface PortalProps {
3
7
  parentElement: HTMLElement;
4
8
  children?: React.ReactNode;
@@ -58,6 +62,15 @@ export interface GroupWrapperProps {
58
62
  onHideCaptionEditorRequested?: (targetType: TargetType, targetId: string) => void;
59
63
  onShowLoadingAnimationRequested?: (targetType: TargetType, targetId: string) => void;
60
64
  onHideLoadingAnimationRequested?: (targetType: TargetType, targetId: string) => void;
65
+ styles?: {
66
+ tabs?: {
67
+ header?: StylesOptions;
68
+ moveArea?: StylesOptions;
69
+ };
70
+ frame?: {
71
+ element?: StylesOptions;
72
+ };
73
+ };
61
74
  }
62
75
  export interface CreateGroupCaptionBarRequestOptions extends CreateElementRequestOptions {
63
76
  moveAreaId: string;
@@ -310,6 +323,9 @@ export interface ExternalLibraryFactory {
310
323
  onCaptionEditorVisibleChanged(targetType: TargetType, targetId: string, visible: boolean): void;
311
324
  onCaptionEditorBoundsChanged(targetType: TargetType, targetId: string, bounds: Bounds): void;
312
325
  commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
326
+ updateTabHeaderStyles(styles: StylesOptions): void;
327
+ updateTabMoveAreaStyles(styles: StylesOptions): void;
328
+ updateFrameStyles(styles: StylesOptions): void;
313
329
  selectTab(windowId: string): void;
314
330
  openTabOverflowPopup(frameId: string, location: Location): void;
315
331
  addTabContainerClass(windowId: string, className: string): void;
@@ -333,5 +349,10 @@ export interface Location {
333
349
  left: number;
334
350
  top: number;
335
351
  }
352
+ export interface StylesOptions {
353
+ css?: Partial<NonMethods<CSSStyleDeclaration>>;
354
+ classes?: string[];
355
+ }
336
356
  export interface Bounds extends Size, Location {
337
357
  }
358
+ export {};
@@ -1,4 +1,4 @@
1
- import { Bounds, Location, TargetType } from "./types/internal";
1
+ import { Bounds, Location, StylesOptions, TargetType } from "./types/internal";
2
2
  declare class WebGroupsManagerDecorator {
3
3
  private readonly registry;
4
4
  readonly skipFocusStyle = "t42-skip-focus";
@@ -35,6 +35,9 @@ declare class WebGroupsManagerDecorator {
35
35
  commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
36
36
  onCommitCaptionEditingRequested(targetType: TargetType, targetId: string, callback: () => void): () => void;
37
37
  requestCommitCaptionEditing(targetType: TargetType, targetId: string): void;
38
+ updateTabHeaderStyles(styles: StylesOptions): void;
39
+ updateTabMoveAreaStyles(styles: StylesOptions): void;
40
+ updateFrameStyles(styles: StylesOptions): void;
38
41
  selectTab(windowId: string): void;
39
42
  addTabContainerClass(windowId: string, className: string): void;
40
43
  removeTabContainerClass(windowId: string, className: string): void;
@@ -5,13 +5,7 @@
5
5
  box-sizing: border-box;
6
6
  transition-timing-function: cubic-bezier(0.45, 0, 0.15, 1);
7
7
  transition-duration: 240ms;
8
- transition-property: background-color;
9
- }
10
-
11
- *::before,
12
- *::after {
13
- transition-timing-function: cubic-bezier(0.45, 0, 0.15, 1);
14
- transition-duration: 240ms;
8
+ transition-property: background-color, color;
15
9
  }
16
10
 
17
11
  body {
@@ -58,8 +52,6 @@ input {
58
52
 
59
53
  .t42-internal-caption-bar {
60
54
  flex-direction: row;
61
- align-items: center;
62
- width: 100%;
63
55
  }
64
56
 
65
57
  .t42-react-caption-bar {
@@ -117,9 +109,7 @@ input {
117
109
  display: flex;
118
110
  flex-grow: 1;
119
111
  align-items: center;
120
- height: 100%;
121
112
  min-width: var(--t42-move-area-min-width);
122
- -webkit-app-region: drag;
123
113
  }
124
114
 
125
115
  .t42-buttons-container {
@@ -206,14 +196,6 @@ input {
206
196
  color: var(--t42-caption-bar-button-close-hover-text);
207
197
  }
208
198
 
209
- .t42-standard-button-collapse::before {
210
- content: "\e918";
211
- }
212
-
213
- .t42-standard-button-expand::before {
214
- content: "\e90e";
215
- }
216
-
217
199
  .t42-standard-button-minimize::before {
218
200
  content: "\e904";
219
201
  }
@@ -293,10 +275,6 @@ input {
293
275
  content: "\e902";
294
276
  }
295
277
 
296
- .t42-group-caption-bar-container {
297
- display: flex;
298
- }
299
-
300
278
  .t42-group-caption-bar {
301
279
  height: auto;
302
280
  }
@@ -574,7 +552,8 @@ input {
574
552
  height: calc(var(--t42-tab-bar-tab-close-button-size) + var(--t42-tab-bar-tab-close-button-padding) * 2);
575
553
  border-radius: 50%;
576
554
  background-color: var(--t42-tab-bar-tab-close-button-background);
577
- transition-property: fill, color;
555
+ transition-duration: 80ms;
556
+ transition-property: background-color, fill, color;
578
557
  }
579
558
 
580
559
  .t42-tab-close-button-content svg {
@@ -591,10 +570,6 @@ input {
591
570
  background-color: var(--t42-tab-bar-tab-close-button-bg-hover);
592
571
  }
593
572
 
594
- .t42-tab-close-button-content:hover::before {
595
- color: var(--t42-tab-bar-tab-text-hover);
596
- }
597
-
598
573
  .t42-tab-close-button-content:hover .t42-standard-button-image {
599
574
  fill: var(--t42-tab-bar-tab-text-hover);
600
575
  }
@@ -708,7 +683,6 @@ input {
708
683
 
709
684
  .t42-sizing-border-group:hover {
710
685
  background-color: var(--t42-hover-sizing-border-group-color);
711
- z-index: 150;
712
686
  }
713
687
 
714
688
  .t42-active-sizing-border-group {
@@ -764,11 +738,6 @@ input {
764
738
  }
765
739
  }
766
740
 
767
- .loader-container {
768
- display: flex;
769
- flex-grow: 1;
770
- }
771
-
772
741
  .loader-wrapper {
773
742
  display: flex;
774
743
  flex-direction: column;
@@ -834,7 +803,8 @@ input {
834
803
 
835
804
  @container normal-tabs (max-width: 50px) {
836
805
  .t42-tab-channel-selector {
837
- --t42-tab-bar-tab-channels-size:0;
806
+ --t42-tab-bar-tab-channels-height:0;
807
+ --t42-tab-bar-tab-channels-width: 0;
838
808
  --t42-tab-bar-tab-channels-margin: 0;
839
809
  }
840
810
  }
@@ -857,7 +827,7 @@ input {
857
827
  }
858
828
 
859
829
  .t42-tabs-overflow .t42-tab {
860
- min-width: var(--t42-tab-bar-tab-overflowable-min-width);
830
+ min-width: var(--t42-tab-bar-tab-overflowable-min-width);
861
831
  }
862
832
 
863
833
  .t42-tabs-overflow .t42-tabs {
@@ -110,6 +110,7 @@
110
110
  --t42-hover-sizing-border-group-color: hsl(var(--io-highlight-Interactive));
111
111
  --t42-active-sizing-border-group-color: hsl(var(--io-interactive-primary));
112
112
 
113
+
113
114
  --t42-wg-tab-over-max-height: 100vh;
114
115
  --t42-wg-tab-over-max-width: 200px;
115
116
  --t42-wg-tab-over-min-width: 200px;
@@ -173,4 +174,4 @@
173
174
  --sticky-icon-off-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 17'%3E%3Cpath fill='%231B6ADE' d='M11.3,3.8L9.5,5.6c-0.2,0.2-0.2,0.5,0,0.7s0.5,0.2,0.7,0L12,4.5c0.2-0.2,0.2-0.5,0-0.7 C11.8,3.6,11.5,3.6,11.3,3.8z M5.6,9.5l-1.8,1.8c-0.2,0.2-0.2,0.5,0,0.7c0.2,0.2,0.5,0.2,0.7,0l1.8-1.8c0.2-0.2,0.2-0.5,0-0.7 S5.8,9.3,5.6,9.5z'/%3E%3Cpath fill='%23626F81' d='M15.9,2L14,0.1c-0.2-0.2-0.5-0.1-0.6,0.2L13,2.6C13,2.8,13.2,3,13.4,3l2.3-0.4C16,2.6,16.1,2.3,15.9,2z M0.1,14 L2,15.9c0.2,0.2,0.5,0.1,0.6-0.2L3,13.4C3,13.2,2.8,13,2.6,13l-2.3,0.4C0,13.4-0.1,13.7,0.1,14z M6.5,0h-5C0.7,0,0,0.7,0,1.5v5 C0,7.3,0.7,8,1.5,8h5C7.3,8,8,7.3,8,6.5v-5C8,0.7,7.3,0,6.5,0z M6.5,7h-5C1.2,7,1,6.8,1,6.5V2h6v4.5C7,6.8,6.8,7,6.5,7z M14.5,8h-5 C8.7,8,8,8.7,8,9.5v5C8,15.3,8.7,16,9.5,16h5c0.8,0,1.5-0.7,1.5-1.5v-5C16,8.7,15.3,8,14.5,8z M14.5,15h-5C9.2,15,9,14.8,9,14.5V10 h6v4.5C15,14.8,14.8,15,14.5,15z'/%3E%3C/svg%3E%0A");
174
175
  --sticky-icon-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16'%3E%3Cpath fill='%23626F81' d='M6.5,4h-5C0.7,4,0,4.7,0,5.5v5C0,11.3,0.7,12,1.5,12h5C7.3,12,8,11.3,8,10.5v-5C8,4.7,7.3,4,6.5,4z M6.5,11h-5 C1.2,11,1,10.8,1,10.5V6h6v4.5C7,10.8,6.8,11,6.5,11z M14.5,4h-5C8.7,4,8,4.7,8,5.5v5C8,11.3,8.7,12,9.5,12h5c0.8,0,1.5-0.7,1.5-1.5 v-5C16,4.7,15.3,4,14.5,4z M14.5,11h-5C9.2,11,9,10.8,9,10.5V6h6v4.5C15,10.8,14.8,11,14.5,11z'/%3E%3Cpath fill='%23A4B1C3' d='M6.6,0l2.7,0c0.3,0,0.5,0.3,0.3,0.5L8.5,2.1v1.4C8.5,3.8,8.3,4,8,4C7.7,4,7.5,3.8,7.5,3.5V2.1L6.3,0.5 C6.2,0.3,6.3,0,6.6,0z M7.5,13.9v-1.4C7.5,12.2,7.7,12,8,12c0.3,0,0.5,0.2,0.5,0.5v1.4l1.2,1.6c0.2,0.2,0,0.5-0.3,0.5H6.6 c-0.3,0-0.5-0.3-0.3-0.5L7.5,13.9z M8,11c-0.3,0-0.5-0.2-0.5-0.5v-4C7.5,6.2,7.7,6,8,6c0.3,0,0.5,0.2,0.5,0.5v4 C8.5,10.8,8.3,11,8,11z'/%3E%3C/svg%3E");
175
176
  --sticky-icon-on-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16'%3E%3Cpath fill='%23626F81' d='M6.5,4h-5C0.7,4,0,4.7,0,5.5v5C0,11.3,0.7,12,1.5,12h5C7.3,12,8,11.3,8,10.5v-5C8,4.7,7.3,4,6.5,4z M6.5,11h-5 C1.2,11,1,10.8,1,10.5V6h6v4.5C7,10.8,6.8,11,6.5,11z M14.5,4h-5C8.7,4,8,4.7,8,5.5v5C8,11.3,8.7,12,9.5,12h5c0.8,0,1.5-0.7,1.5-1.5 v-5C16,4.7,15.3,4,14.5,4z M14.5,11h-5C9.2,11,9,10.8,9,10.5V6h6v4.5C15,10.8,14.8,11,14.5,11z'/%3E%3Cpath fill='%234B92FB' d='M6.6,0l2.7,0c0.3,0,0.5,0.3,0.3,0.5L8.3,2.4c-0.1,0.2-0.4,0.2-0.6,0L6.3,0.5C6.2,0.3,6.3,0,6.6,0z M6.6,16h2.7 c0.3,0,0.5-0.3,0.3-0.5l-1.4-1.9c-0.1-0.2-0.4-0.2-0.6,0l-1.4,1.9C6.2,15.7,6.3,16,6.6,16z'/%3E%3Cpath fill='%234B92FB' d='M8.5,13.5v1C8.5,14.8,8.3,15,8,15c-0.3,0-0.5-0.2-0.5-0.5v-1v-1v-11C7.5,1.2,7.7,1,8,1c0.3,0,0.5,0.2,0.5,0.5 v11V13.5C8.5,13.5,8.5,13.5,8.5,13.5z'/%3E%3C/svg%3E");
176
- }
177
+ }
package/package.json CHANGED
@@ -1,55 +1,53 @@
1
1
  {
2
2
  "name": "@interopio/groups-ui-react",
3
- "version": "2.6.2",
3
+ "version": "2.7.1",
4
4
  "description": "React library for building a Web Group App for io.Connect Desktop.",
5
+ "keywords": [
6
+ "interop",
7
+ "interop.io",
8
+ "desktop",
9
+ "groups",
10
+ "react"
11
+ ],
12
+ "homepage": "https://interop.io/",
13
+ "repository": "https://github.com/InteropIO/groups-ui-react",
14
+ "license": "MIT",
5
15
  "author": {
6
16
  "name": "interop.io",
7
17
  "url": "https://interop.io/"
8
18
  },
9
- "license": "MIT",
10
19
  "main": "dist/cjs/index.js",
11
20
  "module": "dist/esm/index.js",
12
21
  "source": "src/index.tsx",
13
- "homepage": "https://interop.io/",
14
- "repository": "https://github.com/InteropIO/groups-ui-react",
15
- "engines": {
16
- "node": ">=10"
17
- },
18
- "keywords": [
19
- "interop",
20
- "interop.io",
21
- "desktop",
22
- "groups",
23
- "react"
22
+ "files": [
23
+ "dist"
24
24
  ],
25
25
  "scripts": {
26
26
  "build": "rollup -c ./rollup.config.js",
27
+ "test": "jest",
27
28
  "bundle:css": "node ./scripts/bundlecss.js",
28
29
  "prepublishOnly": "npm run build",
29
30
  "preversion": "npm run build",
30
31
  "version": "npm run build",
31
- "clean": ""
32
- },
33
- "publishConfig": {
34
- "access": "public"
32
+ "clean": "rimraf ./node_modules/react && rimraf ./node_modules/react-dom && rimraf ./node_modules/@interopio/react-hooks"
35
33
  },
36
34
  "dependencies": {
37
- "@interopio/theme": "^2.1.32",
35
+ "@interopio/theme": "2.1.32",
38
36
  "callback-registry": "^2.7.2",
39
37
  "color2k": "^2.0.0",
40
38
  "overlayscrollbars": "^2.8.3",
41
- "use-sync-external-store": "^1.4.0"
42
- },
43
- "peerDependencies": {
44
- "@interopio/react-hooks": "^3.0.2",
45
- "react": ">=16.8.0",
46
- "react-dom": ">=16.8.0"
39
+ "use-sync-external-store": "^1.2.0"
47
40
  },
48
41
  "devDependencies": {
49
42
  "@rollup/plugin-commonjs": "^15.1.0",
50
43
  "@rollup/plugin-node-resolve": "^9.0.0",
51
44
  "@rollup/plugin-typescript": "^6.0.0",
52
45
  "@svgr/rollup": "^6.2.1",
46
+ "@swc/jest": "^0.2.37",
47
+ "@testing-library/jest-dom": "^6.2.0",
48
+ "@testing-library/react": "^16.0.1",
49
+ "@testing-library/user-event": "^14.4.3",
50
+ "@types/jest": "^29.2.4",
53
51
  "@types/node": "^12.12.38",
54
52
  "@types/react": "^18.0.9",
55
53
  "@types/react-dom": "^18.0.4",
@@ -68,6 +66,8 @@
68
66
  "eslint-plugin-promise": "^4.2.1",
69
67
  "eslint-plugin-react": "^7.17.0",
70
68
  "eslint-plugin-standard": "^4.0.1",
69
+ "jest": "^29.7.0",
70
+ "jest-environment-jsdom": "^29.7.0",
71
71
  "npm-run-all": "^4.1.5",
72
72
  "postcss": "^8.4.29",
73
73
  "postcss-import": "^15.1.0",
@@ -81,7 +81,15 @@
81
81
  "rollup-plugin-typescript2": "^0.29.0",
82
82
  "typescript": "^3.7.5"
83
83
  },
84
- "files": [
85
- "dist"
86
- ]
87
- }
84
+ "peerDependencies": {
85
+ "@interopio/react-hooks": "^3.0.2",
86
+ "react": ">=16.8.0",
87
+ "react-dom": ">=16.8.0"
88
+ },
89
+ "engines": {
90
+ "node": ">=10"
91
+ },
92
+ "publishConfig": {
93
+ "access": "public"
94
+ }
95
+ }