@tamagui/use-did-finish-ssr 1.135.4 → 1.135.6

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.
@@ -1,34 +1,43 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var ClientOnly_exports = {};
17
24
  __export(ClientOnly_exports, {
18
25
  ClientOnly: () => ClientOnly,
19
26
  ClientOnlyContext: () => ClientOnlyContext
20
27
  });
21
28
  module.exports = __toCommonJS(ClientOnly_exports);
22
- var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), ClientOnlyContext = /* @__PURE__ */ (0, import_react.createContext)(!1), ClientOnly = function(param) {
23
- var { children, enabled } = param, existingValue = (0, import_react.useContext)(ClientOnlyContext);
24
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
25
- value: enabled ?? existingValue,
26
- children
27
- });
28
- };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- ClientOnly,
32
- ClientOnlyContext
33
- });
34
- //# sourceMappingURL=ClientOnly.js.map
29
+ var import_jsx_runtime = require("react/jsx-runtime"),
30
+ import_react = require("react"),
31
+ ClientOnlyContext = /* @__PURE__ */(0, import_react.createContext)(!1),
32
+ ClientOnly = function (param) {
33
+ var {
34
+ children,
35
+ enabled
36
+ } = param,
37
+ existingValue = (0, import_react.useContext)(ClientOnlyContext);
38
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
39
+ value: enabled ?? existingValue,
40
+ children
41
+ });
42
+ };
43
+ //# sourceMappingURL=ClientOnly.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/ClientOnly.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B,8BAC5B,eAA0C,kBAC/B,oBAAkC,gDAAc,EAAK,GACrD,aAAa,SAAS,OAAO;AACpC,MAAI,EAAE,UAAU,QAAQ,IAAI,OACxB,oBAAgB,yBAAW,iBAAiB;AAChD,SAAqB,uCAAAA,KAAK,kBAAkB,UAAU;AAAA,IAClD,OAAO,WAAmD;AAAA,IAC1D;AAAA,EACJ,CAAC;AACL;",
5
- "names": ["_jsx"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","ClientOnly_exports","__export","ClientOnly","ClientOnlyContext","module","exports","import_jsx_runtime","require","import_react","createContext","param","children","enabled","existingValue","useContext","jsx","Provider"],"sources":["../../src/ClientOnly.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAA0C,CAAAK,kBAUtC;AARG,IAAAM,kBAAM,GAAAC,OAA4C;EAAAC,YAE5C,GAAAD,OAAc;EAAAJ,iBAAA,sBAAAK,YAAA,CAAAC,aAAA;EAAAP,UAAA,YAAAA,CAAAQ,KAAA;IACzB;QAAAC,QAAA;QAAAC;MAAA,IAAAF,KAAA;MAAAG,aAAA,OAAAL,YAAA,CAAAM,UAAA,EAAAX,iBAAA;IACA,0BAAAG,kBAAA,CAAAS,GAAA,EAAAZ,iBAAA,CAAAa,QAAA;MACFjB,KAA6D,EAAAa,OAAA,IAAAC,aAAA;MAC3DF;IACA;EAKF","ignoreList":[]}
@@ -38,7 +38,7 @@ __export(index_exports, {
38
38
  useIsClientOnly: () => useIsClientOnly
39
39
  });
40
40
  module.exports = __toCommonJS(index_exports);
41
- var React = __toESM(require("react")),
41
+ var React = __toESM(require("react"), 1),
42
42
  import_ClientOnly = require("./ClientOnly.cjs"),
43
43
  import_ClientOnly2 = require("./ClientOnly.cjs");
44
44
  const useIsClientOnly = () => React.useContext(import_ClientOnly.ClientOnlyContext);
package/dist/cjs/index.js CHANGED
@@ -29,7 +29,7 @@ __export(index_exports, {
29
29
  useIsClientOnly: () => useIsClientOnly
30
30
  });
31
31
  module.exports = __toCommonJS(index_exports);
32
- var React = __toESM(require("react")), import_ClientOnly = require("./ClientOnly"), import_ClientOnly2 = require("./ClientOnly");
32
+ var React = __toESM(require("react"), 1), import_ClientOnly = require("./ClientOnly"), import_ClientOnly2 = require("./ClientOnly");
33
33
  const useIsClientOnly = () => React.useContext(import_ClientOnly.ClientOnlyContext);
34
34
  function useDidFinishSSR() {
35
35
  return React.useContext(import_ClientOnly.ClientOnlyContext) ? !0 : React.useSyncExternalStore(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB,2BACvB,oBAAkC,yBAElCA,qBAA8C;AAEvC,MAAM,kBAAkB,MACtB,MAAM,WAAW,mCAAiB;AAGpC,SAAS,kBAA2B;AAGzC,SAFmB,MAAM,WAAW,mCAAiB,IAG5C,KAGF,MAAM;AAAA,IACX;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF;AAEA,MAAM,YAAY,MAAM,MAAM;AAAC;AAIxB,SAAS,eAAsB,OAAmD;AAGvF,SAFa,gBAAgB,IAEF,OAAO,SAAU,aAAa,MAAM,IAAI,QAApD;AACjB;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB,8BACvB,oBAAkC,yBAElCA,qBAA8C;AAEvC,MAAM,kBAAkB,MACtB,MAAM,WAAW,mCAAiB;AAGpC,SAAS,kBAA2B;AAGzC,SAFmB,MAAM,WAAW,mCAAiB,IAG5C,KAGF,MAAM;AAAA,IACX;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF;AAEA,MAAM,YAAY,MAAM,MAAM;AAAC;AAIxB,SAAS,eAAsB,OAAmD;AAGvF,SAFa,gBAAgB,IAEF,OAAO,SAAU,aAAa,MAAM,IAAI,QAApD;AACjB;",
5
5
  "names": ["import_ClientOnly"]
6
6
  }
@@ -1,26 +1,36 @@
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
  ClientOnly: () => import_ClientOnly2.ClientOnly,
@@ -30,27 +40,21 @@ __export(index_exports, {
30
40
  useIsClientOnly: () => useIsClientOnly
31
41
  });
32
42
  module.exports = __toCommonJS(index_exports);
33
- var React = __toESM(require("react")), import_ClientOnly = require("./ClientOnly"), import_ClientOnly2 = require("./ClientOnly"), useIsClientOnly = function() {
34
- return React.useContext(import_ClientOnly.ClientOnlyContext);
35
- };
43
+ var React = __toESM(require("react"), 1),
44
+ import_ClientOnly = require("./ClientOnly.native.js"),
45
+ import_ClientOnly2 = require("./ClientOnly.native.js"),
46
+ useIsClientOnly = function () {
47
+ return React.useContext(import_ClientOnly.ClientOnlyContext);
48
+ };
36
49
  function useDidFinishSSR() {
37
50
  var clientOnly = React.useContext(import_ClientOnly.ClientOnlyContext);
38
51
  return !0;
39
52
  }
40
- var subscribe = function() {
41
- return function() {
42
- };
53
+ var subscribe = function () {
54
+ return function () {};
43
55
  };
44
56
  function useClientValue(value) {
45
57
  var done = useDidFinishSSR();
46
58
  return done ? typeof value == "function" ? value() : value : void 0;
47
59
  }
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- ClientOnly,
51
- ClientOnlyContext,
52
- useClientValue,
53
- useDidFinishSSR,
54
- useIsClientOnly
55
- });
56
- //# sourceMappingURL=index.js.map
60
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB,2BACvB,oBAAkC,yBAClCA,qBAA8C,yBACnC,kBAAkB,WAAW;AACpC,SAAO,MAAM,WAAW,mCAAiB;AAC7C;AACO,SAAS,kBAAkB;AAC9B,MAAI,aAAa,MAAM,WAAW,mCAAiB;AAE/C,SAAO;AAOf;AACA,IAAI,YAAY,WAAW;AACvB,SAAO,WAAW;AAAA,EAAC;AACvB;AACO,SAAS,eAAe,OAAO;AAClC,MAAI,OAAO,gBAAgB;AAE3B,SAAQ,OAAmB,OAAO,SAAU,aAAa,MAAM,IAAI,QAApD;AACnB;",
5
- "names": ["import_ClientOnly"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","ClientOnly","import_ClientOnly2","ClientOnlyContext","useClientValue","useDidFinishSSR","useIsClientOnly","module","exports","React","__toESM","require","import_ClientOnly","useContext","clientOnly","subscribe","done"],"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,UAAA,EAAAA,CAAA,KAAAC,kBAAA,CAAAD,UAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAD,kBAAA,CAAAC,iBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAuB,GAAAd,YAAA,CAAAK,aACvB;AAIO,IAAAU,KAAM,GAAAC,OAAA,CAAAC,OAAkB,QACtB,CAAM;EAAAC,iBAAW,GAAAD,OAAA,yBAAiB;EAAAT,kBAAA,GAAAS,OAAA;EAAAL,eAAA,YAAAA,CAAA;IAGpC,OAASG,KAAA,CAAAI,UAAA,CAAAD,iBAA2B,CAAAT,iBAAA;EAGzC;AAIa,SACXE,gBAAA;EAAA,IACAS,UAAM,GAAAL,KAAA,CAAAI,UAAA,CAAAD,iBAAA,CAAAT,iBAAA;EAAA,OACN,CAAM;AAAA;AAEV,IAAAY,SAAA,YAAAA,CAAA;EAEA,OAAM,YAAY,CAAa;AAIxB;AAGL,SAFaX,eAAAN,KAEc;EAC7B,IAAAkB,IAAA,GAAAX,eAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/use-did-finish-ssr",
3
- "version": "1.135.4",
3
+ "version": "1.135.6",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -31,7 +32,7 @@
31
32
  }
32
33
  },
33
34
  "devDependencies": {
34
- "@tamagui/build": "1.135.4",
35
+ "@tamagui/build": "1.135.6",
35
36
  "react": "*"
36
37
  },
37
38
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "mappings": "AAEA,OAAO,cAAMA,mBAAmB,MAAM;AAEtC,OAAO,cAAM,aAAc,EACzB,UACA,SACqC,EAApC;CAAE;CAAe;AAAmB,MAAG,MAAM",
2
+ "mappings": "AAEA,OAAO,cAAMA,mBAAmB,MAAM;AAEtC,OAAO,cAAM,aAAc,EACzB,UACA,WACC;CAAE;CAAe;MAAsB,MAAM",
3
3
  "names": [
4
4
  "ClientOnlyContext: React.Context<boolean>"
5
5
  ],
@@ -1,8 +1,6 @@
1
1
  {
2
- "mappings": "AAGA,SAAS,YAAY,yBAAyB;AAE9C,OAAO,cAAM;AAIb,OAAO,iBAAS;KAgBX,gBAAgB,SAAS,0BAA0B,IAAI,IAAI;AAEhE,OAAO,iBAAS,eAAe,OAAOA,QAAQ,QAAQ,gBAAgB",
3
- "names": [
4
- "value?: Value"
5
- ],
2
+ "mappings": "AAGA,SAAS,YAAY,yBAAyB;AAE9C,OAAO,cAAM;AAIb,OAAO,iBAAS;KAgBX,gBAAgB,SAAS,0BAA0B,IAAI,IAAI;AAEhE,OAAO,iBAAS,eAAe,OAAO,QAAQ,QAAQ,gBAAgB",
3
+ "names": [],
6
4
  "sources": [
7
5
  "src/index.ts"
8
6
  ],