@os-design/use-closable 1.0.49 → 1.0.51

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,GAAI,SAAS,OAAO,EAAE,OAAO,MAAM,KAAG,OAkBtD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,GAAI,SAAS,OAAO,EAAE,OAAO,MAAM,KAAG,OAmBtD,CAAC;AAEF,eAAe,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ const useClosable = (visible, delay) => {
7
7
  }, [delay]);
8
8
  useEffect(() => {
9
9
  if (visible) {
10
+ // eslint-disable-next-line react-hooks/set-state-in-effect
10
11
  setMounted(true);
11
12
  return () => undefined;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@os-design/use-closable",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "license": "UNLICENSED",
5
5
  "repository": "git@gitlab.com:os-team/libs/os-design.git",
6
6
  "type": "module",
@@ -19,21 +19,21 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "scripts": {
22
- "clean": "rimraf dist",
22
+ "clean": "rm -r dist",
23
23
  "build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx --out-dir dist",
24
24
  "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --declarationDir dist",
25
25
  "build": "yarn clean && npm-run-all 'build:*'",
26
- "ncu": "ncu -u '/^(?!(react|@types/react)$).*$/'"
26
+ "ncu": "ncu -u"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
31
  "devDependencies": {
32
- "@os-design/omit-emotion-props": "^1.0.30",
33
- "@os-design/styles": "^1.0.70"
32
+ "@os-design/omit-emotion-props": "^1.0.32",
33
+ "@os-design/styles": "^1.0.72"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": "18"
36
+ "react": "19"
37
37
  },
38
- "gitHead": "8b637ed3c8b8e3f3f1223be76bc42cc49579b8f6"
38
+ "gitHead": "83ca5af2bb91d07d64440f87b7ab23f5100daa02"
39
39
  }
package/src/index.mdx CHANGED
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/blocks';
1
+ import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import UseClosableExample from './index.example';
3
3
 
4
4
  <Meta title='Utils/useClosable' />
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ const useClosable = (visible: boolean, delay: number): boolean => {
10
10
 
11
11
  useEffect(() => {
12
12
  if (visible) {
13
+ // eslint-disable-next-line react-hooks/set-state-in-effect
13
14
  setMounted(true);
14
15
  return () => undefined;
15
16
  }