@tamagui/use-event 3.0.7 → 3.0.9

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.
@@ -27,6 +27,6 @@ var import_useGet = require("./useGet.native.js");
27
27
  function useEvent(callback) {
28
28
  return (0, import_useGet.useGet)(callback, defaultValue, true);
29
29
  }
30
- var defaultValue = function() {
30
+ var defaultValue = function defaultValue2() {
31
31
  throw new Error("Cannot call an event handler while rendering.");
32
32
  };
@@ -27,7 +27,7 @@ var import_useGet = require("./useGet.native.js");
27
27
  function useEvent(callback) {
28
28
  return (0, import_useGet.useGet)(callback, defaultValue, true);
29
29
  }
30
- var defaultValue = function() {
30
+ var defaultValue = function defaultValue2() {
31
31
  throw new Error("Cannot call an event handler while rendering.");
32
32
  };
33
33
 
@@ -1 +1 @@
1
- {"version":3,"file":"useEvent.native.js","names":[],"sources":["cjs/useEvent.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useEvent_exports = {};\n__export(useEvent_exports, {\n useEvent: () => useEvent\n});\nmodule.exports = __toCommonJS(useEvent_exports);\nvar import_useGet = require(\"./useGet\");\nfunction useEvent(callback) {\n return (0, import_useGet.useGet)(callback, defaultValue, true);\n}\nvar defaultValue = function() {\n throw new Error(\"Cannot call an event handler while rendering.\");\n};\n//# sourceMappingURL=useEvent.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB,EACzB,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,SAAS,SAAS,UAAU;CAC1B,QAAQ,GAAG,cAAc,OAAM,CAAE,UAAU,cAAc,IAAI;AAC/D;AACA,IAAI,eAAe,WAAW;CAC5B,MAAM,IAAI,MAAM,+CAA+C;AACjE"}
1
+ {"version":3,"file":"useEvent.native.js","names":[],"sources":["cjs/useEvent.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useEvent_exports = {};\n__export(useEvent_exports, {\n useEvent: () => useEvent\n});\nmodule.exports = __toCommonJS(useEvent_exports);\nvar import_useGet = require(\"./useGet\");\nfunction useEvent(callback) {\n return (0, import_useGet.useGet)(callback, defaultValue, true);\n}\nvar defaultValue = function defaultValue2() {\n throw new Error(\"Cannot call an event handler while rendering.\");\n};\n//# sourceMappingURL=useEvent.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB,EACzB,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,SAAS,SAAS,UAAU;CAC1B,QAAQ,GAAG,cAAc,OAAM,CAAE,UAAU,cAAc,IAAI;AAC/D;AACA,IAAI,eAAe,SAAS,gBAAgB;CAC1C,MAAM,IAAI,MAAM,+CAA+C;AACjE"}
@@ -3,7 +3,7 @@ import { useGet } from "./useGet.native.js";
3
3
  function useEvent(callback) {
4
4
  return useGet(callback, defaultValue, true);
5
5
  }
6
- var defaultValue = function() {
6
+ var defaultValue = function defaultValue2() {
7
7
  throw new Error("Cannot call an event handler while rendering.");
8
8
  };
9
9
 
@@ -1 +1 @@
1
- {"version":3,"file":"useEvent.native.js","names":[],"sources":["esm/useEvent.native.js"],"sourcesContent":["import { useGet } from \"./useGet\";\nfunction useEvent(callback) {\n return useGet(callback, defaultValue, true);\n}\nvar defaultValue = function() {\n throw new Error(\"Cannot call an event handler while rendering.\");\n};\nexport {\n useEvent\n};\n//# sourceMappingURL=useEvent.js.map\n"],"mappings":";;;AACA,SAAS,SAAS,UAAU;CAC1B,OAAO,OAAO,UAAU,cAAc,IAAI;AAC5C;AACA,IAAI,eAAe,WAAW;CAC5B,MAAM,IAAI,MAAM,+CAA+C;AACjE"}
1
+ {"version":3,"file":"useEvent.native.js","names":[],"sources":["esm/useEvent.native.js"],"sourcesContent":["import { useGet } from \"./useGet\";\nfunction useEvent(callback) {\n return useGet(callback, defaultValue, true);\n}\nvar defaultValue = function defaultValue2() {\n throw new Error(\"Cannot call an event handler while rendering.\");\n};\nexport {\n useEvent\n};\n//# sourceMappingURL=useEvent.js.map\n"],"mappings":";;;AACA,SAAS,SAAS,UAAU;CAC1B,OAAO,OAAO,UAAU,cAAc,IAAI;AAC5C;AACA,IAAI,eAAe,SAAS,gBAAgB;CAC1C,MAAM,IAAI,MAAM,+CAA+C;AACjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-event",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "src",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {},
37
37
  "devDependencies": {
38
- "@tamagui/build": "3.0.7",
38
+ "@tamagui/build": "3.0.9",
39
39
  "react": "19.2.3"
40
40
  },
41
41
  "peerDependencies": {
@@ -46,5 +46,5 @@
46
46
  "url": "git+https://github.com/tamagui/tamagui.git",
47
47
  "directory": "code/core/use-event"
48
48
  },
49
- "releaseSourceCommit": "96f8bc1f222af0381729a2e2202370aa4a9808ef"
49
+ "releaseSourceCommit": "1971272fa9915450004c84ea48188100fdf278ff"
50
50
  }