@tamagui/use-force-update 2.7.7 → 3.0.0-0.canary.1791057742817

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.
@@ -5,41 +5,34 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
30
25
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
27
  var index_exports = {};
35
28
  __export(index_exports, {
36
- isServerSide: () => isServerSide,
37
- useForceUpdate: () => useForceUpdate
29
+ isServerSide: () => isServerSide,
30
+ useForceUpdate: () => useForceUpdate
38
31
  });
39
32
  module.exports = __toCommonJS(index_exports);
40
33
  var import_react = __toESM(require("react"), 1);
41
34
  const isServerSide = typeof window === "undefined";
42
35
  const idFn = () => {};
43
36
  function useForceUpdate() {
44
- return isServerSide ? idFn : import_react.default.useReducer(x => Math.random(), 0)[1];
45
- }
37
+ return isServerSide ? idFn : import_react.default.useReducer((x) => Math.random(), 0)[1];
38
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var index_exports = {};
30
+ __export(index_exports, {
31
+ isServerSide: () => isServerSide,
32
+ useForceUpdate: () => useForceUpdate
33
+ });
34
+ module.exports = __toCommonJS(index_exports);
35
+ var import_react = __toESM(require("react"), 1);
36
+ var isServerSide = false;
37
+ var idFn = function() {};
38
+ function useForceUpdate() {
39
+ return isServerSide ? idFn : import_react.default.useReducer(function(x) {
40
+ return Math.random();
41
+ }, 0)[1];
42
+ }
@@ -7,44 +7,38 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
14
  };
15
15
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
23
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
32
27
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
29
  var index_exports = {};
37
30
  __export(index_exports, {
38
- isServerSide: () => isServerSide,
39
- useForceUpdate: () => useForceUpdate
31
+ isServerSide: () => isServerSide,
32
+ useForceUpdate: () => useForceUpdate
40
33
  });
41
34
  module.exports = __toCommonJS(index_exports);
42
35
  var import_react = __toESM(require("react"), 1);
43
36
  var isServerSide = false;
44
- var idFn = function () {};
37
+ var idFn = function() {};
45
38
  function useForceUpdate() {
46
- return isServerSide ? idFn : import_react.default.useReducer(function (x) {
47
- return Math.random();
48
- }, 0)[1];
39
+ return isServerSide ? idFn : import_react.default.useReducer(function(x) {
40
+ return Math.random();
41
+ }, 0)[1];
49
42
  }
43
+
50
44
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isNodeMode","mod","__esModule","__defProp","target","value","enumerable","__toCommonJS","__copyProps","index_exports","__export","isServerSide","useForceUpdate","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,UAAA,KAAAC,GAAA,KAAAA,GAAA,CAAAC,UAAA,GAAAC,SAAA,CAAAC,MAAA;EAAAC,KAAA,EAAAJ,GAAA;EAAAK,UAAA;AAAA,KAAAF,MAAA,EAAAH,GAAA;AAAA,IAAAM,YAAA,GAAkBN,GAAA,IAAAO,WAAA,CAAAL,SAAA;EAAAE,KAAA;AAAA,IAAAJ,GAAA;AAEX,IAAAQ,aAAM,IACX;AAEFC,QAAM,CAAAD,aAAa;EAACE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAEbC,cAAS,EAAAA,CAAA,KAAAA;AACd;AAGFC,MAAA,CAAAC,OAAA,GAAAP,YAAA,CAAAE,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n\tisServerSide: () => isServerSide,\n\tuseForceUpdate: () => useForceUpdate\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nvar isServerSide = false;\nvar idFn = function() {};\nfunction useForceUpdate() {\n\treturn isServerSide ? idFn : import_react.default.useReducer(function(x) {\n\t\treturn Math.random();\n\t}, 0)[1];\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SAAS,GAAG;EACxE,OAAO,KAAK,OAAO;CACpB,GAAG,CAAC,CAAC,CAAC;AACP"}
package/dist/esm/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
+
2
3
  const isServerSide = typeof window === "undefined";
3
4
  const idFn = () => {};
4
5
  function useForceUpdate() {
5
- return isServerSide ? idFn : React.useReducer(x => Math.random(), 0)[1];
6
+ return isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];
6
7
  }
8
+
7
9
  export { isServerSide, useForceUpdate };
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","isServerSide","window","idFn","useForceUpdate","useReducer","x","Math","random"],"sources":["index.mjs"],"sourcesContent":["import React from \"react\";\n\nconst isServerSide = typeof window === \"undefined\";\nconst idFn = () => {};\nfunction useForceUpdate() {\n\treturn isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,YAAY,GAAG,OAAOC,MAAM,KAAK,WAAW;AAClD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,SAASC,cAAcA,CAAA,EAAG;EACzB,OAAOH,YAAY,GAAGE,IAAI,GAAGH,KAAK,CAACK,UAAU,CAAEC,CAAC,IAAKC,IAAI,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E;AAEA,SAASP,YAAY,EAAEG,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import React from \"react\";\n\nconst isServerSide = typeof window === \"undefined\";\nconst idFn = () => {};\nfunction useForceUpdate() {\n\treturn isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":";;;AAEA,MAAM,eAAe,OAAO,WAAW;AACvC,MAAM,aAAa,CAAC;AACpB,SAAS,iBAAiB;CACzB,OAAO,eAAe,OAAO,MAAM,YAAY,MAAM,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC;AACxE"}
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
+
2
3
  const isServerSide = typeof window === "undefined";
3
4
  const idFn = () => {};
4
5
  function useForceUpdate() {
5
- return isServerSide ? idFn : React.useReducer(x => Math.random(), 0)[1];
6
+ return isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];
6
7
  }
8
+
7
9
  export { isServerSide, useForceUpdate };
8
10
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","isServerSide","window","idFn","useForceUpdate","useReducer","x","Math","random"],"sources":["index.mjs"],"sourcesContent":["import React from \"react\";\n\nconst isServerSide = typeof window === \"undefined\";\nconst idFn = () => {};\nfunction useForceUpdate() {\n\treturn isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,YAAY,GAAG,OAAOC,MAAM,KAAK,WAAW;AAClD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,SAASC,cAAcA,CAAA,EAAG;EACzB,OAAOH,YAAY,GAAGE,IAAI,GAAGH,KAAK,CAACK,UAAU,CAAEC,CAAC,IAAKC,IAAI,CAACC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E;AAEA,SAASP,YAAY,EAAEG,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import React from \"react\";\n\nconst isServerSide = typeof window === \"undefined\";\nconst idFn = () => {};\nfunction useForceUpdate() {\n\treturn isServerSide ? idFn : React.useReducer((x) => Math.random(), 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":";;;AAEA,MAAM,eAAe,OAAO,WAAW;AACvC,MAAM,aAAa,CAAC;AACpB,SAAS,iBAAiB;CACzB,OAAO,eAAe,OAAO,MAAM,YAAY,MAAM,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC;AACxE"}
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
+
2
3
  var isServerSide = false;
3
- var idFn = function () {};
4
+ var idFn = function() {};
4
5
  function useForceUpdate() {
5
- return false ? idFn : React.useReducer(function (x) {
6
- return Math.random();
7
- }, 0)[1];
6
+ return false ? idFn : React.useReducer(function(x) {
7
+ return Math.random();
8
+ }, 0)[1];
8
9
  }
10
+
9
11
  export { isServerSide, useForceUpdate };
10
12
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","isServerSide","idFn","useForceUpdate","useReducer","x","Math","random"],"sources":["index.native.js"],"sourcesContent":["import React from \"react\";\n\nvar isServerSide = false;\nvar idFn = function() {};\nfunction useForceUpdate() {\n\treturn false ? idFn : React.useReducer(function(x) {\n\t\treturn Math.random();\n\t}, 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,IAAIC,YAAY,GAAG,KAAK;AACxB,IAAIC,IAAI,GAAG,SAAAA,CAAA,EAAW,CAAC,CAAC;AACxB,SAASC,cAAcA,CAAA,EAAG;EACzB,OAAO,KAAK,GAAGD,IAAI,GAAGF,KAAK,CAACI,UAAU,CAAC,UAASC,CAAC,EAAE;IAClD,OAAOC,IAAI,CAACC,MAAM,CAAC,CAAC;EACrB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACT;AAEA,SAASN,YAAY,EAAEE,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import React from \"react\";\n\nvar isServerSide = false;\nvar idFn = function() {};\nfunction useForceUpdate() {\n\treturn false ? idFn : React.useReducer(function(x) {\n\t\treturn Math.random();\n\t}, 0)[1];\n}\n\nexport { isServerSide, useForceUpdate };"],"mappings":";;;AAEA,IAAI,eAAe;AACnB,IAAI,OAAO,WAAW,CAAC;AACvB,SAAS,iBAAiB;CACzB,OAAO,QAAQ,OAAO,MAAM,WAAW,SAAS,GAAG;EAClD,OAAO,KAAK,OAAO;CACpB,GAAG,CAAC,CAAC,CAAC;AACP"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/use-force-update",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-0.canary.1791057742817",
4
+ "license": "MIT",
4
5
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
6
  "files": [
6
7
  "src",
@@ -34,8 +35,8 @@
34
35
  "clean:build": "tamagui-build clean:build"
35
36
  },
36
37
  "devDependencies": {
37
- "@tamagui/build": "2.7.7",
38
- "react": ">=19"
38
+ "@tamagui/build": "3.0.0-0.canary.1791057742817",
39
+ "react": "19.2.3"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "react": ">=19"
@@ -44,5 +45,6 @@
44
45
  "type": "git",
45
46
  "url": "git+https://github.com/tamagui/tamagui.git",
46
47
  "directory": "code/core/use-force-update"
47
- }
48
+ },
49
+ "releaseSourceCommit": "0bf6b0676459d52b4e8775d8f82ecfec7a95c64b"
48
50
  }