@tamagui/use-force-update 3.0.0-beta.669.1 → 3.0.0-beta.719.1
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/dist/cjs/index.cjs
CHANGED
package/dist/cjs/index.native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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];\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":"
|
|
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];\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKpG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACpE,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QACL,GACD;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACvB,oBAAoB;CACpB,sBAAsB;AACvB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,eAAe,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC9C,IAAI,eAAe;AACnB,IAAI,OAAO,WAAW,CAAC;AACvB,SAAS,iBAAiB;CACzB,OAAO,eAAe,OAAO,aAAa,QAAQ,WAAW,SAAS,GAAG;EACxE,OAAO,KAAK,OAAO;CACpB,GAAG,CAAC,CAAC,CAAC;AACP"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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 +1 @@
|
|
|
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,
|
|
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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-force-update",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.719.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"clean:build": "tamagui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@tamagui/build": "3.0.0-beta.
|
|
38
|
-
"react": "
|
|
37
|
+
"@tamagui/build": "3.0.0-beta.719.1",
|
|
38
|
+
"react": "19.2.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=19"
|