@tamagui/use-callback-ref 1.135.3 → 1.135.4-1761749240853

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.
@@ -34,7 +34,7 @@ __export(index_exports, {
34
34
  useCallbackRef: () => useCallbackRef
35
35
  });
36
36
  module.exports = __toCommonJS(index_exports);
37
- var React = __toESM(require("react"));
37
+ var React = __toESM(require("react"), 1);
38
38
  function useCallbackRef(callback) {
39
39
  const callbackRef = React.useRef(callback);
40
40
  return React.useEffect(() => {
package/dist/cjs/index.js CHANGED
@@ -25,7 +25,7 @@ __export(index_exports, {
25
25
  useCallbackRef: () => useCallbackRef
26
26
  });
27
27
  module.exports = __toCommonJS(index_exports);
28
- var React = __toESM(require("react"));
28
+ var React = __toESM(require("react"), 1);
29
29
  function useCallbackRef(callback) {
30
30
  const callbackRef = React.useRef(callback);
31
31
  return React.useEffect(() => {
@@ -1,47 +1,52 @@
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 index_exports = {};
25
35
  __export(index_exports, {
26
36
  useCallbackRef: () => useCallbackRef
27
37
  });
28
38
  module.exports = __toCommonJS(index_exports);
29
- var React = __toESM(require("react"));
39
+ var React = __toESM(require("react"), 1);
30
40
  function useCallbackRef(callback) {
31
41
  var callbackRef = React.useRef(callback);
32
- return React.useEffect(function() {
42
+ return React.useEffect(function () {
33
43
  callbackRef.current = callback;
34
- }), React.useMemo(function() {
35
- return function() {
36
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
37
- args[_key] = arguments[_key];
44
+ }), React.useMemo(function () {
45
+ return function () {
46
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
38
47
  var _callbackRef_current;
39
48
  return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
40
49
  };
41
50
  }, []);
42
51
  }
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- useCallbackRef
46
- });
47
- //# sourceMappingURL=index.js.map
52
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,YAAuB;AAIZ,SAAS,eAAe,UAAU;AACzC,MAAI,cAAc,MAAM,OAAO,QAAQ;AACvC,eAAM,UAAU,WAAW;AACvB,gBAAY,UAAU;AAAA,EAC1B,CAAC,GAEM,MAAM,QAAQ,WAAW;AAC5B,WAAO,WAAW;AACd,eAAQ,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM;AAC5E,aAAK,IAAI,IAAI,UAAU,IAAI;AAE/B,UAAI;AACJ,cAAQ,uBAAuB,YAAY,aAAa,QAAQ,yBAAyB,SAAS,SAAS,qBAAqB,KAAK,aAAa,GAAG,IAAI;AAAA,IAC7J;AAAA,EACJ,GAAG,CAAC,CAAC;AACT;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","useCallbackRef","module","exports","React","__toESM","require","callback","callbackRef","useRef","useEffect","current","useMemo"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAuB,GAAAT,YAAA,CAAAK,aAAA;AAMhB,IAAAK,KAAS,GAAAC,OAAA,CAAAC,OACd,QACG;AACH,SAAML,cAAcA,CAAAM,QAAM;EAE1B,IAAAC,WAAM,GAAAJ,KAAU,CAAAK,MAAM,CAAAF,QAAA;EACpB,OAAAH,KAAA,CAAAM,SAAY,aAAU;IACvBF,WAGY,CAAAG,OAAQ,GAAOJ,QAAI;EAClC,IAAAH,KAAA,CAAAQ,OAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/use-callback-ref",
3
- "version": "1.135.3",
3
+ "version": "1.135.4-1761749240853",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -18,7 +19,7 @@
18
19
  "clean:build": "tamagui-build clean:build"
19
20
  },
20
21
  "devDependencies": {
21
- "@tamagui/build": "1.135.3",
22
+ "@tamagui/build": "1.135.4-1761749240853",
22
23
  "react": "*"
23
24
  },
24
25
  "exports": {
@@ -1,8 +1,6 @@
1
1
  {
2
- "mappings": ";;;;AAQA,OAAO,iBAAS,eAAe,WAAW,GAAG,qBAC3CA,UAAU,gBACT",
3
- "names": [
4
- "callback: T | undefined"
5
- ],
2
+ "mappings": ";;;;AAQA,OAAO,iBAAS,eAAe,WAAW,GAAG,qBAC3C,UAAU,gBACT",
3
+ "names": [],
6
4
  "sources": [
7
5
  "src/index.ts"
8
6
  ],