@tamagui/compose-refs 1.13.3 → 1.13.4

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,55 +1,2 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var compose_refs_exports = {};
30
- __export(compose_refs_exports, {
31
- composeRefs: () => composeRefs,
32
- useComposedRefs: () => useComposedRefs
33
- });
34
- module.exports = __toCommonJS(compose_refs_exports);
35
- var React = __toESM(require("react"));
36
- function setRef(ref, value) {
37
- if (typeof ref === "function") {
38
- ref(value);
39
- } else if (ref) {
40
- ;
41
- ref.current = value;
42
- }
43
- }
44
- function composeRefs(...refs) {
45
- return (node) => refs.forEach((ref) => setRef(ref, node));
46
- }
47
- function useComposedRefs(...refs) {
48
- return React.useCallback(composeRefs(...refs), refs);
49
- }
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- composeRefs,
53
- useComposedRefs
54
- });
1
+ "use strict";var T=Object.create;var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,r=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},c=(e,t,o,R)=>{if(t&&typeof t=="object"||typeof t=="function")for(let f of a(t))!r.call(e,f)&&f!==o&&s(e,f,{get:()=>t[f],enumerable:!(R=i(t,f))||R.enumerable});return e};var l=(e,t,o)=>(o=e!=null?T(u(e)):{},c(t||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),p=e=>c(s({},"__esModule",{value:!0}),e);var j={};b(j,{composeRefs:()=>n,useComposedRefs:()=>P});module.exports=p(j);var d=l(require("react"));function m(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function n(...e){return t=>e.forEach(o=>m(o,t))}function P(...e){return d.useCallback(n(...e),e)}0&&(module.exports={composeRefs,useComposedRefs});
55
2
  //# sourceMappingURL=compose-refs.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/compose-refs.tsx"],
4
4
  "sourcesContent": ["// from radix\n// https://raw.githubusercontent.com/radix-ui/primitives/main/packages/react/compose-refs/src/composeRefs.tsx\n\nimport * as React from 'react'\n\ntype PossibleRef<T> =\n | React.Ref<T>\n | React.ForwardedRef<T>\n | React.RefObject<T>\n | undefined\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef<T>(ref: PossibleRef<T>, value: T) {\n if (typeof ref === 'function') {\n ref(value)\n } else if (ref) {\n ;(ref as React.MutableRefObject<T>).current = value\n }\n}\n\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T) => refs.forEach((ref) => setRef(ref, node))\n}\n\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,YAAuB;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
6
- "names": []
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,oBAAAC,IAAA,eAAAC,EAAAJ,GAGA,IAAAK,EAAuB,oBAYvB,SAASC,EAAUC,EAAqBC,EAAU,CAC5C,OAAOD,GAAQ,WACjBA,EAAIC,CAAK,EACAD,IACPA,EAAkC,QAAUC,EAElD,CAMO,SAASN,KAAkBO,EAAwB,CACxD,OAAQC,GAAYD,EAAK,QAASF,GAAQD,EAAOC,EAAKG,CAAI,CAAC,CAC7D,CAMO,SAASP,KAAsBM,EAAwB,CAE5D,OAAOJ,EAAM,YAAYH,EAAY,GAAGO,CAAI,EAAGA,CAAI,CACrD",
6
+ "names": ["compose_refs_exports", "__export", "composeRefs", "useComposedRefs", "__toCommonJS", "React", "setRef", "ref", "value", "refs", "node"]
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -1,19 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var src_exports = {};
17
- module.exports = __toCommonJS(src_exports);
18
- __reExport(src_exports, require("./compose-refs"), module.exports);
1
+ "use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./compose-refs"),module.exports);
19
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './compose-refs'\n"],
5
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;",
6
- "names": []
5
+ "mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,0BAAd",
6
+ "names": ["src_exports", "__toCommonJS", "__reExport"]
7
7
  }
@@ -1,20 +1,2 @@
1
- import * as React from "react";
2
- function setRef(ref, value) {
3
- if (typeof ref === "function") {
4
- ref(value);
5
- } else if (ref) {
6
- ;
7
- ref.current = value;
8
- }
9
- }
10
- function composeRefs(...refs) {
11
- return (node) => refs.forEach((ref) => setRef(ref, node));
12
- }
13
- function useComposedRefs(...refs) {
14
- return React.useCallback(composeRefs(...refs), refs);
15
- }
16
- export {
17
- composeRefs,
18
- useComposedRefs
19
- };
1
+ import*as f from"react";function s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function R(...e){return t=>e.forEach(o=>s(o,t))}function c(...e){return f.useCallback(R(...e),e)}export{R as composeRefs,c as useComposedRefs};
20
2
  //# sourceMappingURL=compose-refs.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/compose-refs.tsx"],
4
4
  "sourcesContent": ["// from radix\n// https://raw.githubusercontent.com/radix-ui/primitives/main/packages/react/compose-refs/src/composeRefs.tsx\n\nimport * as React from 'react'\n\ntype PossibleRef<T> =\n | React.Ref<T>\n | React.ForwardedRef<T>\n | React.RefObject<T>\n | undefined\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef<T>(ref: PossibleRef<T>, value: T) {\n if (typeof ref === 'function') {\n ref(value)\n } else if (ref) {\n ;(ref as React.MutableRefObject<T>).current = value\n }\n}\n\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T) => refs.forEach((ref) => setRef(ref, node))\n}\n\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n"],
5
- "mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
6
- "names": []
5
+ "mappings": "AAGA,UAAYA,MAAW,QAYvB,SAASC,EAAUC,EAAqBC,EAAU,CAC5C,OAAOD,GAAQ,WACjBA,EAAIC,CAAK,EACAD,IACPA,EAAkC,QAAUC,EAElD,CAMO,SAASC,KAAkBC,EAAwB,CACxD,OAAQC,GAAYD,EAAK,QAASH,GAAQD,EAAOC,EAAKI,CAAI,CAAC,CAC7D,CAMO,SAASC,KAAsBF,EAAwB,CAE5D,OAAOL,EAAM,YAAYI,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD",
6
+ "names": ["React", "setRef", "ref", "value", "composeRefs", "refs", "node", "useComposedRefs"]
7
7
  }
@@ -1,20 +1,2 @@
1
- import * as React from "react";
2
- function setRef(ref, value) {
3
- if (typeof ref === "function") {
4
- ref(value);
5
- } else if (ref) {
6
- ;
7
- ref.current = value;
8
- }
9
- }
10
- function composeRefs(...refs) {
11
- return (node) => refs.forEach((ref) => setRef(ref, node));
12
- }
13
- function useComposedRefs(...refs) {
14
- return React.useCallback(composeRefs(...refs), refs);
15
- }
16
- export {
17
- composeRefs,
18
- useComposedRefs
19
- };
1
+ import*as f from"react";function s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function R(...e){return t=>e.forEach(o=>s(o,t))}function c(...e){return f.useCallback(R(...e),e)}export{R as composeRefs,c as useComposedRefs};
20
2
  //# sourceMappingURL=compose-refs.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/compose-refs.tsx"],
4
4
  "sourcesContent": ["// from radix\n// https://raw.githubusercontent.com/radix-ui/primitives/main/packages/react/compose-refs/src/composeRefs.tsx\n\nimport * as React from 'react'\n\ntype PossibleRef<T> =\n | React.Ref<T>\n | React.ForwardedRef<T>\n | React.RefObject<T>\n | undefined\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef<T>(ref: PossibleRef<T>, value: T) {\n if (typeof ref === 'function') {\n ref(value)\n } else if (ref) {\n ;(ref as React.MutableRefObject<T>).current = value\n }\n}\n\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T) => refs.forEach((ref) => setRef(ref, node))\n}\n\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n"],
5
- "mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
6
- "names": []
5
+ "mappings": "AAGA,UAAYA,MAAW,QAYvB,SAASC,EAAUC,EAAqBC,EAAU,CAC5C,OAAOD,GAAQ,WACjBA,EAAIC,CAAK,EACAD,IACPA,EAAkC,QAAUC,EAElD,CAMO,SAASC,KAAkBC,EAAwB,CACxD,OAAQC,GAAYD,EAAK,QAASH,GAAQD,EAAOC,EAAKI,CAAI,CAAC,CAC7D,CAMO,SAASC,KAAsBF,EAAwB,CAE5D,OAAOL,EAAM,YAAYI,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD",
6
+ "names": ["React", "setRef", "ref", "value", "composeRefs", "refs", "node", "useComposedRefs"]
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./compose-refs";
1
+ export*from"./compose-refs";
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './compose-refs'\n"],
5
- "mappings": "AAAA,cAAc;",
5
+ "mappings": "AAAA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export * from "./compose-refs";
1
+ export*from"./compose-refs";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './compose-refs'\n"],
5
- "mappings": "AAAA,cAAc;",
5
+ "mappings": "AAAA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,20 +1,2 @@
1
- import * as React from "react";
2
- function setRef(ref, value) {
3
- if (typeof ref === "function") {
4
- ref(value);
5
- } else if (ref) {
6
- ;
7
- ref.current = value;
8
- }
9
- }
10
- function composeRefs(...refs) {
11
- return (node) => refs.forEach((ref) => setRef(ref, node));
12
- }
13
- function useComposedRefs(...refs) {
14
- return React.useCallback(composeRefs(...refs), refs);
15
- }
16
- export {
17
- composeRefs,
18
- useComposedRefs
19
- };
1
+ import*as f from"react";function s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function R(...e){return t=>e.forEach(o=>s(o,t))}function c(...e){return f.useCallback(R(...e),e)}export{R as composeRefs,c as useComposedRefs};
20
2
  //# sourceMappingURL=compose-refs.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/compose-refs.tsx"],
4
4
  "sourcesContent": ["// from radix\n// https://raw.githubusercontent.com/radix-ui/primitives/main/packages/react/compose-refs/src/composeRefs.tsx\n\nimport * as React from 'react'\n\ntype PossibleRef<T> =\n | React.Ref<T>\n | React.ForwardedRef<T>\n | React.RefObject<T>\n | undefined\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef<T>(ref: PossibleRef<T>, value: T) {\n if (typeof ref === 'function') {\n ref(value)\n } else if (ref) {\n ;(ref as React.MutableRefObject<T>).current = value\n }\n}\n\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T) => refs.forEach((ref) => setRef(ref, node))\n}\n\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n"],
5
- "mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
6
- "names": []
5
+ "mappings": "AAGA,UAAYA,MAAW,QAYvB,SAASC,EAAUC,EAAqBC,EAAU,CAC5C,OAAOD,GAAQ,WACjBA,EAAIC,CAAK,EACAD,IACPA,EAAkC,QAAUC,EAElD,CAMO,SAASC,KAAkBC,EAAwB,CACxD,OAAQC,GAAYD,EAAK,QAASH,GAAQD,EAAOC,EAAKI,CAAI,CAAC,CAC7D,CAMO,SAASC,KAAsBF,EAAwB,CAE5D,OAAOL,EAAM,YAAYI,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD",
6
+ "names": ["React", "setRef", "ref", "value", "composeRefs", "refs", "node", "useComposedRefs"]
7
7
  }
@@ -1,20 +1,2 @@
1
- import * as React from "react";
2
- function setRef(ref, value) {
3
- if (typeof ref === "function") {
4
- ref(value);
5
- } else if (ref) {
6
- ;
7
- ref.current = value;
8
- }
9
- }
10
- function composeRefs(...refs) {
11
- return (node) => refs.forEach((ref) => setRef(ref, node));
12
- }
13
- function useComposedRefs(...refs) {
14
- return React.useCallback(composeRefs(...refs), refs);
15
- }
16
- export {
17
- composeRefs,
18
- useComposedRefs
19
- };
1
+ import*as f from"react";function s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function R(...e){return t=>e.forEach(o=>s(o,t))}function c(...e){return f.useCallback(R(...e),e)}export{R as composeRefs,c as useComposedRefs};
20
2
  //# sourceMappingURL=compose-refs.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/compose-refs.tsx"],
4
4
  "sourcesContent": ["// from radix\n// https://raw.githubusercontent.com/radix-ui/primitives/main/packages/react/compose-refs/src/composeRefs.tsx\n\nimport * as React from 'react'\n\ntype PossibleRef<T> =\n | React.Ref<T>\n | React.ForwardedRef<T>\n | React.RefObject<T>\n | undefined\n\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef<T>(ref: PossibleRef<T>, value: T) {\n if (typeof ref === 'function') {\n ref(value)\n } else if (ref) {\n ;(ref as React.MutableRefObject<T>).current = value\n }\n}\n\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nexport function composeRefs<T>(...refs: PossibleRef<T>[]) {\n return (node: T) => refs.forEach((ref) => setRef(ref, node))\n}\n\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nexport function useComposedRefs<T>(...refs: PossibleRef<T>[]) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs)\n}\n"],
5
- "mappings": "AAGA,YAAY,WAAW;AAYvB,SAAS,OAAU,KAAqB,OAAU;AAChD,MAAI,OAAO,QAAQ,YAAY;AAC7B,QAAI,KAAK;AAAA,EACX,WAAW,KAAK;AACd;AAAC,IAAC,IAAkC,UAAU;AAAA,EAChD;AACF;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAE5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
6
- "names": []
5
+ "mappings": "AAGA,UAAYA,MAAW,QAYvB,SAASC,EAAUC,EAAqBC,EAAU,CAC5C,OAAOD,GAAQ,WACjBA,EAAIC,CAAK,EACAD,IACPA,EAAkC,QAAUC,EAElD,CAMO,SAASC,KAAkBC,EAAwB,CACxD,OAAQC,GAAYD,EAAK,QAASH,GAAQD,EAAOC,EAAKI,CAAI,CAAC,CAC7D,CAMO,SAASC,KAAsBF,EAAwB,CAE5D,OAAOL,EAAM,YAAYI,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD",
6
+ "names": ["React", "setRef", "ref", "value", "composeRefs", "refs", "node", "useComposedRefs"]
7
7
  }
package/dist/jsx/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./compose-refs";
1
+ export*from"./compose-refs";
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './compose-refs'\n"],
5
- "mappings": "AAAA,cAAc;",
5
+ "mappings": "AAAA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export * from "./compose-refs";
1
+ export*from"./compose-refs";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './compose-refs'\n"],
5
- "mappings": "AAAA,cAAc;",
5
+ "mappings": "AAAA,WAAc",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/compose-refs",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "sideEffects": false,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "react": "*"
21
21
  },
22
22
  "devDependencies": {
23
- "@tamagui/build": "1.13.3",
23
+ "@tamagui/build": "1.13.4",
24
24
  "react": "^18.2.0"
25
25
  },
26
26
  "publishConfig": {