@tamagui/compose-refs 1.123.0 → 1.123.2
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.
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/compose-refs",
|
|
3
|
-
"version": "1.123.
|
|
3
|
+
"version": "1.123.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"main": "dist/cjs",
|
|
8
8
|
"module": "dist/esm",
|
|
9
|
-
"module:jsx": "dist/jsx",
|
|
10
9
|
"files": [
|
|
11
10
|
"src",
|
|
12
11
|
"types",
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
"lint:fix": "biome check --write src"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"@tamagui/build": "1.123.
|
|
22
|
+
"@tamagui/build": "1.123.2",
|
|
24
23
|
"react": "*"
|
|
25
24
|
},
|
|
26
25
|
"publishConfig": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/compose-refs.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,YAAuB;AAahB,SAAS,OAAU,KAAqB,OAAU;AACvD,EAAI,OAAO,OAAQ,aACjB,IAAI,KAAK,IACA,QACP,IAAkC,UAAU;AAElD;AAMO,SAAS,eAAkB,MAAwB;AACxD,SAAO,CAAC,SAAY,KAAK,QAAQ,CAAC,QAAQ,OAAO,KAAK,IAAI,CAAC;AAC7D;AAMO,SAAS,mBAAsB,MAAwB;AAC5D,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACrD;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/index.cjs.map
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
function setRef(ref, value) {
|
|
3
|
-
typeof ref == "function" ? ref(value) : ref && (ref.current = value);
|
|
4
|
-
}
|
|
5
|
-
function composeRefs() {
|
|
6
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
|
|
7
|
-
return function (node) {
|
|
8
|
-
return refs.forEach(function (ref) {
|
|
9
|
-
return setRef(ref, node);
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function useComposedRefs() {
|
|
14
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
|
|
15
|
-
return React.useCallback(composeRefs(...refs), refs);
|
|
16
|
-
}
|
|
17
|
-
export { composeRefs, setRef, useComposedRefs };
|
|
18
|
-
//# sourceMappingURL=compose-refs.native.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","setRef","ref","value","current","composeRefs","_len","arguments","length","refs","Array","_key","node","forEach"],"sources":["../../src/compose-refs.tsx"],"sourcesContent":[null],"mappings":"AAGA,YAAYA,KAAA,MAAW;AAYhB,SAASC,OAAUC,GAAA,EAAqBC,KAAA,EAAU;EACnD,OAAOD,GAAA,IAAQ,aACjBA,GAAA,CAAIC,KAAK,IACAD,GAAA,KACPA,GAAA,CAAkCE,OAAA,GAAUD,KAAA;AAElD;AAMO,SAASE,YAAA;EACd,SAAQC,IAAA,GAAAC,SAAiB,CAAAC,MAAS,EAAAC,IAAA,GAAQ,IAAAC,KAAO,CAAKJ,IAAI,CAAC,EAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,IAC7DF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;EAMO,OAAS,UAAAC,IAAA;IACd,OAAOH,IAAM,CAAAI,OAAA,WAAYX,GAAA;MAC3B,OAAAD,MAAA,CAAAC,GAAA,EAAAU,IAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|