@radix-ui/react-use-layout-effect 0.1.1-rc.7 → 1.0.0-rc.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.
@@ -1 +1 @@
1
- {"mappings":";AAEA;;;;;;GAMG;AACH,OAAA,MAAM,6CAAkF,CAAC","sources":["packages/react/use-layout-effect/src/packages/react/use-layout-effect/src/useLayoutEffect.tsx","packages/react/use-layout-effect/src/packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/index.ts"],"sourcesContent":[null,null,"export * from './useLayoutEffect';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";AAEA;;;;;;GAMG;AACH,OAAA,MAAM,6CAAkF,CAAC","sources":["packages/react/use-layout-effect/src/packages/react/use-layout-effect/src/useLayoutEffect.tsx","packages/react/use-layout-effect/src/packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/index.ts"],"sourcesContent":[null,null,"export { useLayoutEffect } from './useLayoutEffect';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,27 +1,10 @@
1
1
  var $caHyQ$react = require("react");
2
2
 
3
- function $parcel$exportWildcard(dest, source) {
4
- Object.keys(source).forEach(function(key) {
5
- if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
6
- return;
7
- }
8
-
9
- Object.defineProperty(dest, key, {
10
- enumerable: true,
11
- get: function get() {
12
- return source[key];
13
- }
14
- });
15
- });
16
-
17
- return dest;
18
- }
19
3
  function $parcel$export(e, n, v, s) {
20
4
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
21
5
  }
22
- var $ca21affb0542a8a4$exports = {};
23
6
 
24
- $parcel$export($ca21affb0542a8a4$exports, "useLayoutEffect", () => $ca21affb0542a8a4$export$e5c5a5f917a5871c);
7
+ $parcel$export(module.exports, "useLayoutEffect", () => $ca21affb0542a8a4$export$e5c5a5f917a5871c);
25
8
 
26
9
  /**
27
10
  * On the server, React emits a warning when calling `useLayoutEffect`.
@@ -32,7 +15,6 @@ $parcel$export($ca21affb0542a8a4$exports, "useLayoutEffect", () => $ca21affb0542
32
15
  */ const $ca21affb0542a8a4$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? $caHyQ$react.useLayoutEffect : ()=>{};
33
16
 
34
17
 
35
- $parcel$exportWildcard(module.exports, $ca21affb0542a8a4$exports);
36
18
 
37
19
 
38
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAEA;;;;;;GAMA,CACA,MAAMC,yCAAe,GAAGC,OAAO,CAACC,UAAD,KAAA,IAAA,IAACA,UAAD,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAACA,UAAU,CAAEC,QAAb,CAAP,GAAgCJ,4BAAhC,GAAwD,IAAM,EAAtF,AAAA;;ADTA","sources":["packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/useLayoutEffect.tsx"],"sourcesContent":["export * from './useLayoutEffect';\n","import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],"names":["React","useLayoutEffect","Boolean","globalThis","document"],"version":3,"file":"index.js.map"}
1
+ {"mappings":";;;;;;;ACAA;AAEA;;;;;;GAMA,CACA,MAAMA,yCAAe,GAAGE,OAAO,CAACC,UAAD,KAAA,IAAA,IAACA,UAAD,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAACA,UAAU,CAAEC,QAAb,CAAP,GAAgCH,4BAAhC,GAAwD,IAAM,EAAtF,AAAA;;ADTA","sources":["packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/useLayoutEffect.tsx"],"sourcesContent":["export { useLayoutEffect } from './useLayoutEffect';\n","import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],"names":["useLayoutEffect","React","Boolean","globalThis","document"],"version":3,"file":"index.js.map"}
@@ -1,11 +1,5 @@
1
1
  import {useLayoutEffect as $dxlwH$useLayoutEffect} from "react";
2
2
 
3
- function $parcel$export(e, n, v, s) {
4
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
5
- }
6
- var $9f79659886946c16$exports = {};
7
-
8
- $parcel$export($9f79659886946c16$exports, "useLayoutEffect", () => $9f79659886946c16$export$e5c5a5f917a5871c);
9
3
 
10
4
  /**
11
5
  * On the server, React emits a warning when calling `useLayoutEffect`.
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;ACAA;AAEA;;;;;;GAMA,CACA,MAAMC,yCAAe,GAAGC,OAAO,CAACC,UAAD,KAAA,IAAA,IAACA,UAAD,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAACA,UAAU,CAAEC,QAAb,CAAP,GAAgCJ,sBAAhC,GAAwD,IAAM,EAAtF,AAAA;;ADTA","sources":["packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/useLayoutEffect.tsx"],"sourcesContent":["export * from './useLayoutEffect';\n","import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],"names":["React","useLayoutEffect","Boolean","globalThis","document"],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":";;ACAA;AAEA;;;;;;GAMA,CACA,MAAMA,yCAAe,GAAGE,OAAO,CAACC,UAAD,KAAA,IAAA,IAACA,UAAD,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAACA,UAAU,CAAEC,QAAb,CAAP,GAAgCH,sBAAhC,GAAwD,IAAM,EAAtF,AAAA;;ADTA","sources":["packages/react/use-layout-effect/src/index.ts","packages/react/use-layout-effect/src/useLayoutEffect.tsx"],"sourcesContent":["export { useLayoutEffect } from './useLayoutEffect';\n","import * as React from 'react';\n\n/**\n * On the server, React emits a warning when calling `useLayoutEffect`.\n * This is because neither `useLayoutEffect` nor `useEffect` run on the server.\n * We use this safe version which suppresses the warning by replacing it with a noop on the server.\n *\n * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect\n */\nconst useLayoutEffect = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {};\n\nexport { useLayoutEffect };\n"],"names":["useLayoutEffect","React","Boolean","globalThis","document"],"version":3,"file":"index.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-use-layout-effect",
3
- "version": "0.1.1-rc.7",
3
+ "version": "1.0.0-rc.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",