@tamagui/use-did-finish-ssr 3.0.7 → 3.0.8
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/ClientOnly.native.cjs +1 -1
- package/dist/cjs/ClientOnly.native.js +1 -1
- package/dist/cjs/ClientOnly.native.js.map +1 -1
- package/dist/cjs/index.native.cjs +1 -1
- package/dist/cjs/index.native.js +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/ClientOnly.native.js +1 -1
- package/dist/esm/ClientOnly.native.js.map +1 -1
- package/dist/esm/index.native.js +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +3 -3
|
@@ -29,7 +29,7 @@ module.exports = __toCommonJS(ClientOnly_exports);
|
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
30
|
var import_react = require("react");
|
|
31
31
|
var ClientOnlyContext = /* @__PURE__ */ (0, import_react.createContext)(false);
|
|
32
|
-
var ClientOnly = function(param) {
|
|
32
|
+
var ClientOnly = function ClientOnly2(param) {
|
|
33
33
|
var { children, enabled } = param;
|
|
34
34
|
var existingValue = (0, import_react.useContext)(ClientOnlyContext);
|
|
35
35
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
|
|
@@ -29,7 +29,7 @@ module.exports = __toCommonJS(ClientOnly_exports);
|
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
30
|
var import_react = require("react");
|
|
31
31
|
var ClientOnlyContext = /* @__PURE__ */ (0, import_react.createContext)(false);
|
|
32
|
-
var ClientOnly = function(param) {
|
|
32
|
+
var ClientOnly = function ClientOnly2(param) {
|
|
33
33
|
var { children, enabled } = param;
|
|
34
34
|
var existingValue = (0, import_react.useContext)(ClientOnlyContext);
|
|
35
35
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly.native.js","names":[],"sources":["cjs/ClientOnly.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 ClientOnly_exports = {};\n__export(ClientOnly_exports, {\n ClientOnly: () => ClientOnly,\n ClientOnlyContext: () => ClientOnlyContext\n});\nmodule.exports = __toCommonJS(ClientOnly_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = require(\"react\");\nvar ClientOnlyContext = /* @__PURE__ */ (0, import_react.createContext)(false);\nvar ClientOnly = function(param) {\n var { children, enabled } = param;\n var existingValue = (0, import_react.useContext)(ClientOnlyContext);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {\n value: enabled !== null && enabled !== void 0 ? enabled : existingValue,\n children\n });\n};\n//# sourceMappingURL=ClientOnly.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,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB;CAC3B,kBAAkB;CAClB,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,oBAAoC,iBAAC,GAAG,aAAa,cAAa,CAAE,KAAK;AAC7E,IAAI,aAAa,SAAS,OAAO;
|
|
1
|
+
{"version":3,"file":"ClientOnly.native.js","names":[],"sources":["cjs/ClientOnly.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 ClientOnly_exports = {};\n__export(ClientOnly_exports, {\n ClientOnly: () => ClientOnly,\n ClientOnlyContext: () => ClientOnlyContext\n});\nmodule.exports = __toCommonJS(ClientOnly_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = require(\"react\");\nvar ClientOnlyContext = /* @__PURE__ */ (0, import_react.createContext)(false);\nvar ClientOnly = function ClientOnly2(param) {\n var { children, enabled } = param;\n var existingValue = (0, import_react.useContext)(ClientOnlyContext);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {\n value: enabled !== null && enabled !== void 0 ? enabled : existingValue,\n children\n });\n};\n//# sourceMappingURL=ClientOnly.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,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB;CAC3B,kBAAkB;CAClB,yBAAyB;AAC3B,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,oBAAoC,iBAAC,GAAG,aAAa,cAAa,CAAE,KAAK;AAC7E,IAAI,aAAa,SAAS,YAAY,OAAO;CAC3C,IAAI,EAAE,UAAU,YAAY;CAC5B,IAAI,iBAAiB,GAAG,aAAa,WAAU,CAAE,iBAAiB;CAClE,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB,UAAU;EAC7E,OAAO,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU;EAC1D;CACF,CAAC;AACH"}
|
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
38
38
|
var React = __toESM(require("react"), 1);
|
|
39
39
|
var import_ClientOnly = require("./ClientOnly.native.js");
|
|
40
40
|
var import_ClientOnly2 = require("./ClientOnly.native.js");
|
|
41
|
-
var useIsClientOnly = function() {
|
|
41
|
+
var useIsClientOnly = function useIsClientOnly2() {
|
|
42
42
|
return React.useContext(import_ClientOnly.ClientOnlyContext);
|
|
43
43
|
};
|
|
44
44
|
function useDidFinishSSR() {
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
38
38
|
var React = __toESM(require("react"), 1);
|
|
39
39
|
var import_ClientOnly = require("./ClientOnly.native.js");
|
|
40
40
|
var import_ClientOnly2 = require("./ClientOnly.native.js");
|
|
41
|
-
var useIsClientOnly = function() {
|
|
41
|
+
var useIsClientOnly = function useIsClientOnly2() {
|
|
42
42
|
return React.useContext(import_ClientOnly.ClientOnlyContext);
|
|
43
43
|
};
|
|
44
44
|
function useDidFinishSSR() {
|
|
@@ -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\tClientOnly: () => import_ClientOnly2.ClientOnly,\n\tClientOnlyContext: () => import_ClientOnly2.ClientOnlyContext,\n\tuseClientValue: () => useClientValue,\n\tuseDidFinishSSR: () => useDidFinishSSR,\n\tuseIsClientOnly: () => useIsClientOnly\n});\nmodule.exports = __toCommonJS(index_exports);\nvar React = __toESM(require(\"react\"), 1);\nvar import_ClientOnly = require(\"./ClientOnly\");\nvar import_ClientOnly2 = require(\"./ClientOnly\");\nvar useIsClientOnly = function() {\n\treturn React.useContext(import_ClientOnly.ClientOnlyContext);\n};\nfunction useDidFinishSSR() {\n\tReact.useContext(import_ClientOnly.ClientOnlyContext);\n\treturn true;\n}\nfunction useClientValue(value) {\n\treturn !useDidFinishSSR() ? void 0 : typeof value === \"function\" ? value() : value;\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,kBAAkB,mBAAmB;CACrC,yBAAyB,mBAAmB;CAC5C,sBAAsB;CACtB,uBAAuB;CACvB,uBAAuB;AACxB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,qBAAqB,QAAQ,wBAAc;AAC/C,IAAI,kBAAkB,
|
|
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\tClientOnly: () => import_ClientOnly2.ClientOnly,\n\tClientOnlyContext: () => import_ClientOnly2.ClientOnlyContext,\n\tuseClientValue: () => useClientValue,\n\tuseDidFinishSSR: () => useDidFinishSSR,\n\tuseIsClientOnly: () => useIsClientOnly\n});\nmodule.exports = __toCommonJS(index_exports);\nvar React = __toESM(require(\"react\"), 1);\nvar import_ClientOnly = require(\"./ClientOnly\");\nvar import_ClientOnly2 = require(\"./ClientOnly\");\nvar useIsClientOnly = function useIsClientOnly2() {\n\treturn React.useContext(import_ClientOnly.ClientOnlyContext);\n};\nfunction useDidFinishSSR() {\n\tReact.useContext(import_ClientOnly.ClientOnlyContext);\n\treturn true;\n}\nfunction useClientValue(value) {\n\treturn !useDidFinishSSR() ? void 0 : typeof value === \"function\" ? value() : value;\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,kBAAkB,mBAAmB;CACrC,yBAAyB,mBAAmB;CAC5C,sBAAsB;CACtB,uBAAuB;CACvB,uBAAuB;AACxB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,qBAAqB,QAAQ,wBAAc;AAC/C,IAAI,kBAAkB,SAAS,mBAAmB;CACjD,OAAO,MAAM,WAAW,kBAAkB,iBAAiB;AAC5D;AACA,SAAS,kBAAkB;CAC1B,MAAM,WAAW,kBAAkB,iBAAiB;CACpD,OAAO;AACR;AACA,SAAS,eAAe,OAAO;CAC9B,OAAO,CAAC,gBAAgB,IAAI,KAAK,IAAI,OAAO,UAAU,aAAa,MAAM,IAAI;AAC9E"}
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
|
|
4
4
|
var ClientOnlyContext = /* @__PURE__ */ createContext(false);
|
|
5
|
-
var ClientOnly = function(param) {
|
|
5
|
+
var ClientOnly = function ClientOnly2(param) {
|
|
6
6
|
var { children, enabled } = param;
|
|
7
7
|
var existingValue = useContext(ClientOnlyContext);
|
|
8
8
|
return /* @__PURE__ */ jsx(ClientOnlyContext.Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientOnly.native.js","names":[],"sources":["esm/ClientOnly.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, useContext } from \"react\";\nvar ClientOnlyContext = /* @__PURE__ */ createContext(false);\nvar ClientOnly = function(param) {\n var { children, enabled } = param;\n var existingValue = useContext(ClientOnlyContext);\n return /* @__PURE__ */ _jsx(ClientOnlyContext.Provider, {\n value: enabled !== null && enabled !== void 0 ? enabled : existingValue,\n children\n });\n};\nexport {\n ClientOnly,\n ClientOnlyContext\n};\n//# sourceMappingURL=ClientOnly.js.map\n"],"mappings":";;;;AAEA,IAAI,oBAAoC,8BAAc,KAAK;AAC3D,IAAI,aAAa,SAAS,OAAO;
|
|
1
|
+
{"version":3,"file":"ClientOnly.native.js","names":[],"sources":["esm/ClientOnly.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, useContext } from \"react\";\nvar ClientOnlyContext = /* @__PURE__ */ createContext(false);\nvar ClientOnly = function ClientOnly2(param) {\n var { children, enabled } = param;\n var existingValue = useContext(ClientOnlyContext);\n return /* @__PURE__ */ _jsx(ClientOnlyContext.Provider, {\n value: enabled !== null && enabled !== void 0 ? enabled : existingValue,\n children\n });\n};\nexport {\n ClientOnly,\n ClientOnlyContext\n};\n//# sourceMappingURL=ClientOnly.js.map\n"],"mappings":";;;;AAEA,IAAI,oBAAoC,8BAAc,KAAK;AAC3D,IAAI,aAAa,SAAS,YAAY,OAAO;CAC3C,IAAI,EAAE,UAAU,YAAY;CAC5B,IAAI,gBAAgB,WAAW,iBAAiB;CAChD,OAAuB,oBAAK,kBAAkB,UAAU;EACtD,OAAO,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU;EAC1D;CACF,CAAC;AACH"}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ClientOnly, ClientOnlyContext, ClientOnlyContext as ClientOnlyContext2 } from "./ClientOnly.native.js";
|
|
3
3
|
|
|
4
|
-
var useIsClientOnly = function() {
|
|
4
|
+
var useIsClientOnly = function useIsClientOnly2() {
|
|
5
5
|
return React.useContext(ClientOnlyContext);
|
|
6
6
|
};
|
|
7
7
|
function useDidFinishSSR() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import * as React from \"react\";\nimport { ClientOnly, ClientOnlyContext, ClientOnlyContext as ClientOnlyContext2 } from \"./ClientOnly\";\n\nvar useIsClientOnly = function() {\n\treturn React.useContext(ClientOnlyContext);\n};\nfunction useDidFinishSSR() {\n\tReact.useContext(ClientOnlyContext);\n\treturn true;\n}\nfunction useClientValue(value) {\n\treturn !useDidFinishSSR() ? void 0 : typeof value === \"function\" ? value() : value;\n}\n\nexport { ClientOnly, ClientOnlyContext2 as ClientOnlyContext, useClientValue, useDidFinishSSR, useIsClientOnly };"],"mappings":";;;;AAGA,IAAI,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import * as React from \"react\";\nimport { ClientOnly, ClientOnlyContext, ClientOnlyContext as ClientOnlyContext2 } from \"./ClientOnly\";\n\nvar useIsClientOnly = function useIsClientOnly2() {\n\treturn React.useContext(ClientOnlyContext);\n};\nfunction useDidFinishSSR() {\n\tReact.useContext(ClientOnlyContext);\n\treturn true;\n}\nfunction useClientValue(value) {\n\treturn !useDidFinishSSR() ? void 0 : typeof value === \"function\" ? value() : value;\n}\n\nexport { ClientOnly, ClientOnlyContext2 as ClientOnlyContext, useClientValue, useDidFinishSSR, useIsClientOnly };"],"mappings":";;;;AAGA,IAAI,kBAAkB,SAAS,mBAAmB;CACjD,OAAO,MAAM,WAAW,iBAAiB;AAC1C;AACA,SAAS,kBAAkB;CAC1B,MAAM,WAAW,iBAAiB;CAClC,OAAO;AACR;AACA,SAAS,eAAe,OAAO;CAC9B,OAAO,CAAC,gBAAgB,IAAI,KAAK,IAAI,OAAO,UAAU,aAAa,MAAM,IAAI;AAC9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-did-finish-ssr",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
6
6
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"clean:build": "tamagui-build clean:build"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@tamagui/build": "3.0.
|
|
38
|
+
"@tamagui/build": "3.0.8",
|
|
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-did-finish-ssr"
|
|
48
48
|
},
|
|
49
|
-
"releaseSourceCommit": "
|
|
49
|
+
"releaseSourceCommit": "b723356193510591d9ad15877b8937e8e6a31910"
|
|
50
50
|
}
|