@tamagui/compose-refs 1.135.4 → 1.135.6

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.
@@ -36,7 +36,7 @@ __export(compose_refs_exports, {
36
36
  useComposedRefs: () => useComposedRefs
37
37
  });
38
38
  module.exports = __toCommonJS(compose_refs_exports);
39
- var React = __toESM(require("react"));
39
+ var React = __toESM(require("react"), 1);
40
40
  function setRef(ref, value) {
41
41
  typeof ref == "function" ? ref(value) : ref && (ref.current = value);
42
42
  }
@@ -27,7 +27,7 @@ __export(compose_refs_exports, {
27
27
  useComposedRefs: () => useComposedRefs
28
28
  });
29
29
  module.exports = __toCommonJS(compose_refs_exports);
30
- var React = __toESM(require("react"));
30
+ var React = __toESM(require("react"), 1);
31
31
  function setRef(ref, value) {
32
32
  typeof ref == "function" ? ref(value) : ref && (ref.current = value);
33
33
  }
@@ -1,26 +1,36 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var compose_refs_exports = {};
25
35
  __export(compose_refs_exports, {
26
36
  composeRefs: () => composeRefs,
@@ -28,28 +38,20 @@ __export(compose_refs_exports, {
28
38
  useComposedRefs: () => useComposedRefs
29
39
  });
30
40
  module.exports = __toCommonJS(compose_refs_exports);
31
- var React = __toESM(require("react"));
41
+ var React = __toESM(require("react"), 1);
32
42
  function setRef(ref, value) {
33
43
  typeof ref == "function" ? ref(value) : ref && (ref.current = value);
34
44
  }
35
45
  function composeRefs() {
36
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++)
37
- refs[_key] = arguments[_key];
38
- return function(node) {
39
- return refs.forEach(function(ref) {
46
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
47
+ return function (node) {
48
+ return refs.forEach(function (ref) {
40
49
  return setRef(ref, node);
41
50
  });
42
51
  };
43
52
  }
44
53
  function useComposedRefs() {
45
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++)
46
- refs[_key] = arguments[_key];
54
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) refs[_key] = arguments[_key];
47
55
  return React.useCallback(composeRefs(...refs), refs);
48
56
  }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- composeRefs,
52
- setRef,
53
- useComposedRefs
54
- });
55
- //# sourceMappingURL=compose-refs.js.map
57
+ //# sourceMappingURL=compose-refs.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/compose-refs.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,YAAuB;AAIZ,SAAS,OAAO,KAAK,OAAO;AACnC,EAAI,OAAO,OAAQ,aACf,IAAI,KAAK,IACF,QAEP,IAAI,UAAU;AAEtB;AAIW,SAAS,cAAc;AAC9B,WAAQ,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM;AAC5E,SAAK,IAAI,IAAI,UAAU,IAAI;AAE/B,SAAO,SAAS,MAAM;AAClB,WAAO,KAAK,QAAQ,SAAS,KAAK;AAC9B,aAAO,OAAO,KAAK,IAAI;AAAA,IAC3B,CAAC;AAAA,EACL;AACJ;AAIW,SAAS,kBAAkB;AAClC,WAAQ,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM;AAC5E,SAAK,IAAI,IAAI,UAAU,IAAI;AAE/B,SAAO,MAAM,YAAY,YAAY,GAAG,IAAI,GAAG,IAAI;AACvD;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","compose_refs_exports","__export","composeRefs","setRef","useComposedRefs","module","exports","React","__toESM","require","ref","current","_len","arguments","length","refs","Array","_key","node","forEach"],"sources":["../../src/compose-refs.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAGAC,MAAA,CAAAC,OAAuB,GAAAX,YAAA,CAAAK,oBAAA;AAahB,IAAAO,KAAS,GAAAC,OAAU,CAAAC,OAAqB,CAAU;AACvD,SAAWN,OAAQO,GAAA,EAAAX,KAAA;EAKrB,OAAAW,GAAA,iBAAAA,GAAA,CAAAX,KAAA,IAAAW,GAAA,KAAAA,GAAA,CAAAC,OAAA,GAAAZ,KAAA;AAMO;AACL,SAAOG,WAAaA,CAAA;EACtB,SAAAU,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,IAMOF,IAAA,CAASE,IAAA,IAAAJ,SAAA,CAAAI,IAAsB;EACpC,OAAO,UAAMC,IAAA;IACf,OAAAH,IAAA,CAAAI,OAAA,WAAAT,GAAA","ignoreList":[]}
@@ -1,20 +1,21 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from == "object" || typeof from == "function")
8
- for (let key of __getOwnPropNames(from))
9
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- return to;
11
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ return to;
13
+ },
14
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: !0
17
+ }), mod);
13
18
  var index_exports = {};
14
19
  module.exports = __toCommonJS(index_exports);
15
- __reExport(index_exports, require("./compose-refs"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./compose-refs")
19
- });
20
- //# sourceMappingURL=index.js.map
20
+ __reExport(index_exports, require("./compose-refs.native.js"), module.exports);
21
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,2BAAd;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/compose-refs",
3
- "version": "1.135.4",
3
+ "version": "1.135.6",
4
+ "type": "module",
4
5
  "sideEffects": false,
5
6
  "source": "src/index.ts",
6
7
  "types": "./types/index.d.ts",
@@ -19,7 +20,7 @@
19
20
  "lint:fix": "biome check --write src"
20
21
  },
21
22
  "devDependencies": {
22
- "@tamagui/build": "1.135.4",
23
+ "@tamagui/build": "1.135.6",
23
24
  "react": "*"
24
25
  },
25
26
  "publishConfig": {