zudoku 0.32.6 → 0.33.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.
Files changed (205) hide show
  1. package/cli.js +3 -0
  2. package/dist/app/main.js +1 -1
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/cli/build/handler.d.ts +1 -3
  5. package/dist/cli/build/handler.js +7 -0
  6. package/dist/cli/build/handler.js.map +1 -1
  7. package/dist/cli/cli.js +5 -0
  8. package/dist/cli/cli.js.map +1 -1
  9. package/dist/cli/cmds/build.d.ts +11 -3
  10. package/dist/cli/cmds/build.js +20 -13
  11. package/dist/cli/cmds/build.js.map +1 -1
  12. package/dist/cli/cmds/preview.d.ts +16 -0
  13. package/dist/cli/cmds/preview.js +25 -0
  14. package/dist/cli/cmds/preview.js.map +1 -0
  15. package/dist/cli/preview/handler.d.ts +3 -0
  16. package/dist/cli/preview/handler.js +37 -0
  17. package/dist/cli/preview/handler.js.map +1 -0
  18. package/dist/config/common.d.ts +5 -2
  19. package/dist/config/config.d.ts +2 -7
  20. package/dist/config/loader.d.ts +4 -4
  21. package/dist/config/loader.js +7 -4
  22. package/dist/config/loader.js.map +1 -1
  23. package/dist/config/validators/validate.d.ts +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  28. package/dist/lib/authentication/providers/auth0.js +1 -0
  29. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  30. package/dist/lib/authentication/providers/openid.d.ts +4 -3
  31. package/dist/lib/authentication/providers/openid.js +4 -2
  32. package/dist/lib/authentication/providers/openid.js.map +1 -1
  33. package/dist/lib/authentication/state.js +8 -2
  34. package/dist/lib/authentication/state.js.map +1 -1
  35. package/dist/lib/components/ThemeSwitch.js +1 -1
  36. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  37. package/dist/lib/components/Zudoku.d.ts +1 -1
  38. package/dist/lib/components/Zudoku.js +7 -6
  39. package/dist/lib/components/Zudoku.js.map +1 -1
  40. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  41. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  42. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  43. package/dist/lib/components/index.d.ts +1 -1
  44. package/dist/lib/core/RouteGuard.d.ts +1 -1
  45. package/dist/lib/core/RouteGuard.js +23 -18
  46. package/dist/lib/core/RouteGuard.js.map +1 -1
  47. package/dist/lib/core/ZudokuContext.d.ts +10 -0
  48. package/dist/lib/core/ZudokuContext.js +17 -1
  49. package/dist/lib/core/ZudokuContext.js.map +1 -1
  50. package/dist/lib/core/plugins.d.ts +8 -2
  51. package/dist/lib/core/plugins.js +1 -0
  52. package/dist/lib/core/plugins.js.map +1 -1
  53. package/dist/lib/hooks/index.d.ts +3 -0
  54. package/dist/lib/hooks/index.js +5 -0
  55. package/dist/lib/hooks/index.js.map +1 -0
  56. package/dist/lib/hooks/useEvent.d.ts +11 -0
  57. package/dist/lib/hooks/useEvent.js +19 -0
  58. package/dist/lib/hooks/useEvent.js.map +1 -0
  59. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  60. package/dist/lib/hooks/useEvent.test.js +100 -0
  61. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  62. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  63. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  64. package/dist/lib/ui/Stepper.d.ts +4 -0
  65. package/dist/lib/ui/Stepper.js +7 -0
  66. package/dist/lib/ui/Stepper.js.map +1 -0
  67. package/dist/lib/util/MdxComponents.d.ts +3 -1
  68. package/dist/lib/util/MdxComponents.js +3 -0
  69. package/dist/lib/util/MdxComponents.js.map +1 -1
  70. package/dist/vite/config.d.ts +2 -5
  71. package/dist/vite/config.js +21 -28
  72. package/dist/vite/config.js.map +1 -1
  73. package/dist/vite/config.test.js +1 -1
  74. package/dist/vite/config.test.js.map +1 -1
  75. package/dist/vite/css/plugin.d.ts +2 -2
  76. package/dist/vite/css/plugin.js.map +1 -1
  77. package/dist/vite/dev-server.js.map +1 -1
  78. package/dist/vite/plugin-api-keys.d.ts +2 -2
  79. package/dist/vite/plugin-api-keys.js +3 -3
  80. package/dist/vite/plugin-api-keys.js.map +1 -1
  81. package/dist/vite/plugin-api.d.ts +2 -2
  82. package/dist/vite/plugin-api.js +5 -5
  83. package/dist/vite/plugin-api.js.map +1 -1
  84. package/dist/vite/plugin-auth.d.ts +2 -2
  85. package/dist/vite/plugin-auth.js +3 -3
  86. package/dist/vite/plugin-auth.js.map +1 -1
  87. package/dist/vite/plugin-component.d.ts +2 -2
  88. package/dist/vite/plugin-component.js +3 -2
  89. package/dist/vite/plugin-component.js.map +1 -1
  90. package/dist/vite/plugin-config-reload.d.ts +4 -3
  91. package/dist/vite/plugin-config-reload.js +11 -8
  92. package/dist/vite/plugin-config-reload.js.map +1 -1
  93. package/dist/vite/plugin-config.d.ts +2 -2
  94. package/dist/vite/plugin-config.js +2 -2
  95. package/dist/vite/plugin-config.js.map +1 -1
  96. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  97. package/dist/vite/plugin-custom-pages.js +3 -3
  98. package/dist/vite/plugin-custom-pages.js.map +1 -1
  99. package/dist/vite/plugin-docs.d.ts +2 -2
  100. package/dist/vite/plugin-docs.js +5 -5
  101. package/dist/vite/plugin-docs.js.map +1 -1
  102. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  103. package/dist/vite/plugin-frontmatter.js +5 -4
  104. package/dist/vite/plugin-frontmatter.js.map +1 -1
  105. package/dist/vite/plugin-mdx.d.ts +2 -2
  106. package/dist/vite/plugin-mdx.js +1 -1
  107. package/dist/vite/plugin-mdx.js.map +1 -1
  108. package/dist/vite/plugin-redirect.d.ts +2 -2
  109. package/dist/vite/plugin-redirect.js +3 -3
  110. package/dist/vite/plugin-redirect.js.map +1 -1
  111. package/dist/vite/plugin-search.d.ts +2 -2
  112. package/dist/vite/plugin-search.js +1 -1
  113. package/dist/vite/plugin-search.js.map +1 -1
  114. package/dist/vite/plugin-sidebar.d.ts +2 -2
  115. package/dist/vite/plugin-sidebar.js +2 -2
  116. package/dist/vite/plugin-sidebar.js.map +1 -1
  117. package/dist/vite/plugin-theme-css.d.ts +2 -2
  118. package/dist/vite/plugin-theme-css.js.map +1 -1
  119. package/dist/vite/plugin.d.ts +2 -2
  120. package/dist/vite/plugin.js.map +1 -1
  121. package/dist/vite/prerender/FileWritingResponse.d.ts +2 -1
  122. package/dist/vite/prerender/FileWritingResponse.js +4 -1
  123. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  124. package/dist/vite/prerender/worker.d.ts +1 -1
  125. package/dist/vite/prerender/worker.js +3 -0
  126. package/dist/vite/prerender/worker.js.map +1 -1
  127. package/lib/{AuthenticationPlugin-BlxA4Mbn.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
  128. package/lib/{AuthenticationPlugin-BlxA4Mbn.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
  129. package/lib/Dialog-DIKGQxQc.js +83 -0
  130. package/lib/Dialog-DIKGQxQc.js.map +1 -0
  131. package/lib/{Markdown-Cr9sYpR_.js → Markdown-DePfm7oQ.js} +1384 -1381
  132. package/lib/{Markdown-Cr9sYpR_.js.map → Markdown-DePfm7oQ.js.map} +1 -1
  133. package/lib/{MdxPage-Dt-UEQl8.js → MdxPage-DZTt9ld7.js} +4 -4
  134. package/lib/{MdxPage-Dt-UEQl8.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
  135. package/lib/{OasProvider-WVtvHP5H.js → OasProvider-SzD9mHJc.js} +3 -3
  136. package/lib/{OasProvider-WVtvHP5H.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
  137. package/lib/{OperationList-DhOwupvv.js → OperationList-DDs9NblY.js} +242 -241
  138. package/lib/OperationList-DDs9NblY.js.map +1 -0
  139. package/lib/{Select-D9hI1G-y.js → Select-Dqtcn53H.js} +36 -36
  140. package/lib/{Select-D9hI1G-y.js.map → Select-Dqtcn53H.js.map} +1 -1
  141. package/lib/{SlotletProvider-CEfNOA8i.js → SlotletProvider-DdtIOUi6.js} +2 -2
  142. package/lib/{SlotletProvider-CEfNOA8i.js.map → SlotletProvider-DdtIOUi6.js.map} +1 -1
  143. package/lib/{createServer-DMf6O2Rz.js → createServer-DmusVVsi.js} +987 -967
  144. package/lib/createServer-DmusVVsi.js.map +1 -0
  145. package/lib/{hook-CWwSAAlH.js → hook-CN__aZIt.js} +67 -63
  146. package/lib/{hook-CWwSAAlH.js.map → hook-CN__aZIt.js.map} +1 -1
  147. package/lib/{index-Do_30Hpk.js → index-CibzSNks.js} +95 -93
  148. package/lib/{index-Do_30Hpk.js.map → index-CibzSNks.js.map} +1 -1
  149. package/lib/index-DwT-v3zK.js +86 -0
  150. package/lib/index-DwT-v3zK.js.map +1 -0
  151. package/lib/index-gQD2h1wX.js +447 -0
  152. package/lib/index-gQD2h1wX.js.map +1 -0
  153. package/lib/{mutation-B0wxqzSN.js → mutation-EclmI0is.js} +2 -2
  154. package/lib/{mutation-B0wxqzSN.js.map → mutation-EclmI0is.js.map} +1 -1
  155. package/lib/objectEntries-yMIkr2mI.js +5 -0
  156. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  157. package/lib/ui/Command.js +21 -20
  158. package/lib/ui/Command.js.map +1 -1
  159. package/lib/ui/Stepper.js +6 -0
  160. package/lib/ui/Stepper.js.map +1 -0
  161. package/lib/ui/SyntaxHighlight.js +2902 -7
  162. package/lib/ui/SyntaxHighlight.js.map +1 -1
  163. package/lib/{useScrollToAnchor-C-sRxs9o.js → useScrollToAnchor-C7ilRSts.js} +3 -3
  164. package/lib/{useScrollToAnchor-C-sRxs9o.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
  165. package/lib/zudoku.auth-auth0.js +15 -14
  166. package/lib/zudoku.auth-auth0.js.map +1 -1
  167. package/lib/zudoku.auth-clerk.js +2 -2
  168. package/lib/zudoku.auth-openid.js +126 -124
  169. package/lib/zudoku.auth-openid.js.map +1 -1
  170. package/lib/zudoku.components.js +441 -395
  171. package/lib/zudoku.components.js.map +1 -1
  172. package/lib/zudoku.css +1 -0
  173. package/lib/zudoku.hooks.js +19 -0
  174. package/lib/zudoku.hooks.js.map +1 -0
  175. package/lib/zudoku.plugin-api-catalog.js +2 -2
  176. package/lib/zudoku.plugin-api-keys.js +5 -5
  177. package/lib/zudoku.plugin-custom-pages.js +1 -1
  178. package/lib/zudoku.plugin-markdown.js +1 -1
  179. package/lib/zudoku.plugin-openapi.js +2 -2
  180. package/lib/zudoku.plugins.js +9 -8
  181. package/lib/zudoku.plugins.js.map +1 -1
  182. package/package.json +12 -4
  183. package/src/app/main.tsx +1 -1
  184. package/src/lib/authentication/providers/auth0.tsx +3 -2
  185. package/src/lib/authentication/providers/openid.tsx +8 -5
  186. package/src/lib/authentication/state.ts +8 -2
  187. package/src/lib/components/ThemeSwitch.tsx +1 -1
  188. package/src/lib/components/Zudoku.tsx +9 -5
  189. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  190. package/src/lib/core/RouteGuard.tsx +43 -18
  191. package/src/lib/core/ZudokuContext.ts +31 -0
  192. package/src/lib/core/plugins.ts +16 -2
  193. package/src/lib/hooks/index.ts +5 -0
  194. package/src/lib/hooks/useEvent.test.tsx +149 -0
  195. package/src/lib/hooks/useEvent.ts +41 -0
  196. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  197. package/src/lib/ui/Stepper.css +43 -0
  198. package/src/lib/ui/Stepper.tsx +8 -0
  199. package/src/lib/util/MdxComponents.tsx +4 -1
  200. package/lib/OperationList-DhOwupvv.js.map +0 -1
  201. package/lib/SyntaxHighlight-CcnUjERD.js +0 -2986
  202. package/lib/SyntaxHighlight-CcnUjERD.js.map +0 -1
  203. package/lib/createServer-DMf6O2Rz.js.map +0 -1
  204. package/lib/index-Du5aNddU.js +0 -509
  205. package/lib/index-Du5aNddU.js.map +0 -1
@@ -3,7 +3,7 @@ var Ge = (t) => {
3
3
  };
4
4
  var me = (t, e, s) => e.has(t) || Ge("Cannot " + s);
5
5
  var n = (t, e, s) => (me(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? Ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, r) => (me(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), w = (t, e, s) => (me(t, e, "access private method"), s);
6
- import * as A from "react";
6
+ import * as j from "react";
7
7
  import $e, { createContext as Et, useContext as Ot, useMemo as It } from "react";
8
8
  import { j as Ft } from "./jsx-runtime-CYK1ROHF.js";
9
9
  import { u as ve, m as ze } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
@@ -162,7 +162,7 @@ function Dt(t, e) {
162
162
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
163
163
  ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === pe ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
164
164
  }
165
- var H, L, ee, tt, At = (tt = class extends qe {
165
+ var H, L, ee, tt, jt = (tt = class extends qe {
166
166
  constructor() {
167
167
  super();
168
168
  g(this, H);
@@ -203,7 +203,7 @@ var H, L, ee, tt, At = (tt = class extends qe {
203
203
  var e;
204
204
  return typeof n(this, H) == "boolean" ? n(this, H) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
205
205
  }
206
- }, H = new WeakMap(), L = new WeakMap(), ee = new WeakMap(), tt), ot = new At(), te, M, se, st, jt = (st = class extends qe {
206
+ }, H = new WeakMap(), L = new WeakMap(), ee = new WeakMap(), tt), ot = new jt(), te, M, se, st, At = (st = class extends qe {
207
207
  constructor() {
208
208
  super();
209
209
  g(this, te, !0);
@@ -237,7 +237,7 @@ var H, L, ee, tt, At = (tt = class extends qe {
237
237
  isOnline() {
238
238
  return n(this, te);
239
239
  }
240
- }, te = new WeakMap(), M = new WeakMap(), se = new WeakMap(), st), ut = new jt();
240
+ }, te = new WeakMap(), M = new WeakMap(), se = new WeakMap(), st), ut = new At();
241
241
  function Fe() {
242
242
  let t, e;
243
243
  const s = new Promise((i, a) => {
@@ -411,10 +411,10 @@ var Me = Qt(), K, rt, Ut = (rt = class {
411
411
  clearGcTimeout() {
412
412
  n(this, K) && (clearTimeout(n(this, K)), d(this, K, void 0));
413
413
  }
414
- }, K = new WeakMap(), rt), re, ne, D, B, I, he, G, j, U, nt, ms = (nt = class extends Ut {
414
+ }, K = new WeakMap(), rt), re, ne, D, B, I, he, G, A, U, nt, ms = (nt = class extends Ut {
415
415
  constructor(e) {
416
416
  super();
417
- g(this, j);
417
+ g(this, A);
418
418
  g(this, re);
419
419
  g(this, ne);
420
420
  g(this, D);
@@ -439,7 +439,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
439
439
  }
440
440
  setData(e, s) {
441
441
  const r = Ie(this.state.data, e, this.options);
442
- return w(this, j, U).call(this, {
442
+ return w(this, A, U).call(this, {
443
443
  data: r,
444
444
  type: "success",
445
445
  dataUpdatedAt: s == null ? void 0 : s.updatedAt,
@@ -447,7 +447,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
447
447
  }), r;
448
448
  }
449
449
  setState(e, s) {
450
- w(this, j, U).call(this, { type: "setState", state: e, setStateOptions: s });
450
+ w(this, A, U).call(this, { type: "setState", state: e, setStateOptions: s });
451
451
  }
452
452
  cancel(e) {
453
453
  var r, i;
@@ -496,7 +496,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
496
496
  return this.observers.length;
497
497
  }
498
498
  invalidate() {
499
- this.state.isInvalidated || w(this, j, U).call(this, { type: "invalidate" });
499
+ this.state.isInvalidated || w(this, A, U).call(this, { type: "invalidate" });
500
500
  }
501
501
  fetch(e, s) {
502
502
  var l, f, m;
@@ -540,10 +540,10 @@ var Me = Qt(), K, rt, Ut = (rt = class {
540
540
  i(o), (l = this.options.behavior) == null || l.onFetch(
541
541
  o,
542
542
  this
543
- ), d(this, ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = o.fetchOptions) == null ? void 0 : f.meta)) && w(this, j, U).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
543
+ ), d(this, ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = o.fetchOptions) == null ? void 0 : f.meta)) && w(this, A, U).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
544
544
  const u = (c) => {
545
545
  var p, y, E, h;
546
- ge(c) && c.silent || w(this, j, U).call(this, {
546
+ ge(c) && c.silent || w(this, A, U).call(this, {
547
547
  type: "error",
548
548
  error: c
549
549
  }), ge(c) || ((y = (p = n(this, D).config).onError) == null || y.call(
@@ -584,13 +584,13 @@ var Me = Qt(), K, rt, Ut = (rt = class {
584
584
  },
585
585
  onError: u,
586
586
  onFail: (c, p) => {
587
- w(this, j, U).call(this, { type: "failed", failureCount: c, error: p });
587
+ w(this, A, U).call(this, { type: "failed", failureCount: c, error: p });
588
588
  },
589
589
  onPause: () => {
590
- w(this, j, U).call(this, { type: "pause" });
590
+ w(this, A, U).call(this, { type: "pause" });
591
591
  },
592
592
  onContinue: () => {
593
- w(this, j, U).call(this, { type: "continue" });
593
+ w(this, A, U).call(this, { type: "continue" });
594
594
  },
595
595
  retry: o.options.retry,
596
596
  retryDelay: o.options.retryDelay,
@@ -598,7 +598,7 @@ var Me = Qt(), K, rt, Ut = (rt = class {
598
598
  canRun: () => !0
599
599
  })), n(this, I).start();
600
600
  }
601
- }, re = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), G = new WeakMap(), j = new WeakSet(), U = function(e) {
601
+ }, re = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), G = new WeakMap(), A = new WeakSet(), U = function(e) {
602
602
  const s = (r) => {
603
603
  switch (e.type) {
604
604
  case "failed":
@@ -696,7 +696,7 @@ function qt(t) {
696
696
  fetchStatus: "idle"
697
697
  };
698
698
  }
699
- var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je, ke, xe, ft, it, dt = (it = class extends qe {
699
+ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, je, Ae, ke, xe, ft, it, dt = (it = class extends qe {
700
700
  constructor(e, s) {
701
701
  super();
702
702
  g(this, S);
@@ -725,7 +725,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
725
725
  this.refetch = this.refetch.bind(this);
726
726
  }
727
727
  onSubscribe() {
728
- this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ce).call(this) : this.updateResult(), w(this, S, Ae).call(this));
728
+ this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ce).call(this) : this.updateResult(), w(this, S, je).call(this));
729
729
  }
730
730
  onUnsubscribe() {
731
731
  this.hasListeners() || this.destroy();
@@ -745,7 +745,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
745
745
  );
746
746
  }
747
747
  destroy() {
748
- this.listeners = /* @__PURE__ */ new Set(), w(this, S, je).call(this), w(this, S, ke).call(this), n(this, b).removeObserver(this);
748
+ this.listeners = /* @__PURE__ */ new Set(), w(this, S, Ae).call(this), w(this, S, ke).call(this), n(this, b).removeObserver(this);
749
749
  }
750
750
  setOptions(e, s) {
751
751
  const r = this.options, i = n(this, b);
@@ -919,7 +919,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
919
919
  (e == null ? void 0 : e.listeners) !== !1 && a() && (i.listeners = !0), w(this, S, ft).call(this, { ...i, ...e });
920
920
  }
921
921
  onQueryUpdate() {
922
- this.updateResult(), this.hasListeners() && w(this, S, Ae).call(this);
922
+ this.updateResult(), this.hasListeners() && w(this, S, je).call(this);
923
923
  }
924
924
  }, T = new WeakMap(), b = new WeakMap(), le = new WeakMap(), P = new WeakMap(), $ = new WeakMap(), ie = new WeakMap(), N = new WeakMap(), Q = new WeakMap(), de = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), J = new WeakMap(), _ = new WeakMap(), ue = new WeakMap(), S = new WeakSet(), ce = function(e) {
925
925
  w(this, S, xe).call(this);
@@ -929,7 +929,7 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
929
929
  );
930
930
  return e != null && e.throwOnError || (s = s.catch(Se)), s;
931
931
  }, Pe = function() {
932
- w(this, S, je).call(this);
932
+ w(this, S, Ae).call(this);
933
933
  const e = ye(
934
934
  this.options.staleTime,
935
935
  n(this, b)
@@ -946,9 +946,9 @@ var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, Ae, je
946
946
  w(this, S, ke).call(this), d(this, _, e), !(V || k(this.options.enabled, n(this, b)) === !1 || !we(n(this, _)) || n(this, _) === 0) && d(this, J, setInterval(() => {
947
947
  (this.options.refetchIntervalInBackground || ot.isFocused()) && w(this, S, ce).call(this);
948
948
  }, n(this, _)));
949
- }, Ae = function() {
950
- w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
951
949
  }, je = function() {
950
+ w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
951
+ }, Ae = function() {
952
952
  n(this, z) && (clearTimeout(n(this, z)), d(this, z, void 0));
953
953
  }, ke = function() {
954
954
  n(this, J) && (clearInterval(n(this, J)), d(this, J, void 0));
@@ -990,10 +990,10 @@ function Ne(t, e) {
990
990
  function Mt(t, e) {
991
991
  return !Ee(t.getCurrentResult(), e);
992
992
  }
993
- var yt = A.createContext(
993
+ var yt = j.createContext(
994
994
  void 0
995
995
  ), pt = (t) => {
996
- const e = A.useContext(yt);
996
+ const e = j.useContext(yt);
997
997
  if (t)
998
998
  return t;
999
999
  if (!e)
@@ -1002,9 +1002,9 @@ var yt = A.createContext(
1002
1002
  }, gs = ({
1003
1003
  client: t,
1004
1004
  children: e
1005
- }) => (A.useEffect(() => (t.mount(), () => {
1005
+ }) => (j.useEffect(() => (t.mount(), () => {
1006
1006
  t.unmount();
1007
- }), [t]), /* @__PURE__ */ Ft.jsx(yt.Provider, { value: t, children: e })), vt = A.createContext(!1), Nt = () => A.useContext(vt);
1007
+ }), [t]), /* @__PURE__ */ Ft.jsx(yt.Provider, { value: t, children: e })), vt = j.createContext(!1), Nt = () => j.useContext(vt);
1008
1008
  vt.Provider;
1009
1009
  function _t() {
1010
1010
  let t = !1;
@@ -1018,7 +1018,7 @@ function _t() {
1018
1018
  isReset: () => t
1019
1019
  };
1020
1020
  }
1021
- var Ht = A.createContext(_t()), Kt = () => A.useContext(Ht);
1021
+ var Ht = j.createContext(_t()), Kt = () => j.useContext(Ht);
1022
1022
  function Bt(t, e) {
1023
1023
  return typeof t == "function" ? t(...e) : !!t;
1024
1024
  }
@@ -1027,7 +1027,7 @@ function Ye() {
1027
1027
  var Gt = (t, e) => {
1028
1028
  (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1029
1029
  }, $t = (t) => {
1030
- A.useEffect(() => {
1030
+ j.useEffect(() => {
1031
1031
  t.clearReset();
1032
1032
  }, [t]);
1033
1033
  }, zt = ({
@@ -1053,14 +1053,14 @@ function bt(t, e, s) {
1053
1053
  c,
1054
1054
  o
1055
1055
  ), o._optimisticResults = i ? "isRestoring" : "optimistic", Vt(o), Gt(o, a), $t(a);
1056
- const u = !r.getQueryCache().get(o.queryHash), [l] = A.useState(
1056
+ const u = !r.getQueryCache().get(o.queryHash), [l] = j.useState(
1057
1057
  () => new e(
1058
1058
  r,
1059
1059
  o
1060
1060
  )
1061
1061
  ), f = l.getOptimisticResult(o), m = !i && t.subscribed !== !1;
1062
- if (A.useSyncExternalStore(
1063
- A.useCallback(
1062
+ if (j.useSyncExternalStore(
1063
+ j.useCallback(
1064
1064
  (v) => {
1065
1065
  const C = m ? l.subscribe(Me.batchCalls(v)) : Ye;
1066
1066
  return l.updateResult(), C;
@@ -1069,7 +1069,7 @@ function bt(t, e, s) {
1069
1069
  ),
1070
1070
  () => l.getCurrentResult(),
1071
1071
  () => l.getCurrentResult()
1072
- ), A.useEffect(() => {
1072
+ ), j.useEffect(() => {
1073
1073
  l.setOptions(o, { listeners: !1 });
1074
1074
  }, [o, l]), Wt(o, f))
1075
1075
  throw Xe(o, l, a);
@@ -1369,14 +1369,18 @@ const Ue = (t) => (e) => {
1369
1369
  Rt(
1370
1370
  (t) => ({
1371
1371
  isAuthenticated: !1,
1372
- isPending: !1,
1372
+ isPending: !0,
1373
1373
  profile: null,
1374
1374
  providerData: null
1375
1375
  }),
1376
1376
  {
1377
+ merge: (t, e) => ({
1378
+ ...e,
1379
+ isPending: !1,
1380
+ ...typeof t == "object" ? t : {}
1381
+ }),
1377
1382
  name: "auth-state",
1378
1383
  storage: wt(() => localStorage)
1379
- // partialize: (s) => ({ state: s }),
1380
1384
  }
1381
1385
  )
1382
1386
  );
@@ -1416,45 +1420,45 @@ const os = St()(
1416
1420
  };
1417
1421
  };
1418
1422
  export {
1419
- Le as A,
1420
- pe as B,
1421
- gs as C,
1422
- gt as D,
1423
- _e as E,
1424
- Ss as F,
1425
- mt as G,
1426
- Yt as H,
1427
- Os as I,
1428
- Es as J,
1423
+ ut as A,
1424
+ ye as B,
1425
+ fs as C,
1426
+ Le as D,
1427
+ pe as E,
1428
+ gs as F,
1429
+ gt as G,
1430
+ _e as H,
1431
+ Ss as I,
1432
+ mt as J,
1429
1433
  ms as Q,
1430
1434
  Ut as R,
1431
1435
  qe as S,
1432
1436
  es as Z,
1433
- Xt as a,
1434
- ws as b,
1437
+ Ke as a,
1438
+ Xt as b,
1435
1439
  xt as c,
1436
- Cs as d,
1437
- pt as e,
1438
- Ye as f,
1439
- Bt as g,
1440
+ ws as d,
1441
+ Cs as e,
1442
+ pt as f,
1443
+ Ye as g,
1440
1444
  Re as h,
1441
- Ke as i,
1445
+ Bt as i,
1442
1446
  Z as j,
1443
1447
  us as k,
1444
1448
  Rs as l,
1445
- Pt as m,
1449
+ Yt as m,
1446
1450
  Me as n,
1447
- ys as o,
1448
- ps as p,
1449
- Se as q,
1450
- Dt as r,
1451
+ Os as o,
1452
+ Es as p,
1453
+ Pt as q,
1454
+ ys as r,
1451
1455
  Ee as s,
1452
- bs as t,
1456
+ ps as t,
1453
1457
  Ct as u,
1454
- vs as v,
1455
- ot as w,
1456
- ut as x,
1457
- ye as y,
1458
- fs as z
1458
+ Se as v,
1459
+ Dt as w,
1460
+ bs as x,
1461
+ vs as y,
1462
+ ot as z
1459
1463
  };
1460
- //# sourceMappingURL=hook-CWwSAAlH.js.map
1464
+ //# sourceMappingURL=hook-CN__aZIt.js.map