zudoku 0.0.0-monetization-standalone.zd1543a39 → 0.0.0-monetization-standalone.z2a065bd9

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 (102) hide show
  1. package/dist/app/main.js +1 -1
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/create-plugin.d.ts +1 -1
  4. package/dist/config/create-plugin.js +7 -5
  5. package/dist/config/create-plugin.js.map +1 -1
  6. package/dist/config/loader.js +2 -2
  7. package/dist/config/loader.js.map +1 -1
  8. package/dist/config/validators/InputNavigationSchema.d.ts +75 -75
  9. package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
  10. package/dist/config/validators/validate.d.ts +7 -7
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib/components/Slot.test.js +1 -1
  14. package/dist/lib/components/Slot.test.js.map +1 -1
  15. package/dist/lib/components/Zudoku.d.ts +4 -1
  16. package/dist/lib/components/Zudoku.js +2 -2
  17. package/dist/lib/components/Zudoku.js.map +1 -1
  18. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  19. package/dist/lib/components/index.d.ts +3 -1
  20. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  21. package/dist/lib/core/ZudokuContext.js +3 -1
  22. package/dist/lib/core/ZudokuContext.js.map +1 -1
  23. package/dist/lib/core/__internal.d.ts +1 -0
  24. package/dist/lib/core/__internal.js +2 -0
  25. package/dist/lib/core/__internal.js.map +1 -1
  26. package/dist/lib/core/plugins.d.ts +5 -1
  27. package/dist/lib/core/plugins.js.map +1 -1
  28. package/dist/lib/core/transform-config.d.ts +4 -2
  29. package/dist/lib/core/transform-config.js +33 -13
  30. package/dist/lib/core/transform-config.js.map +1 -1
  31. package/dist/lib/core/transform-config.test.d.ts +1 -0
  32. package/dist/lib/core/transform-config.test.js +83 -0
  33. package/dist/lib/core/transform-config.test.js.map +1 -0
  34. package/dist/lib/hooks/useEvent.test.js +1 -1
  35. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  36. package/dist/lib/ui/Command.d.ts +3 -3
  37. package/dist/vite/config.js +5 -2
  38. package/dist/vite/config.js.map +1 -1
  39. package/dist/vite/plugin-config.js +16 -4
  40. package/dist/vite/plugin-config.js.map +1 -1
  41. package/dist/vite/prerender/prerender.js +3 -1
  42. package/dist/vite/prerender/prerender.js.map +1 -1
  43. package/dist/vite/prerender/worker.js +3 -1
  44. package/dist/vite/prerender/worker.js.map +1 -1
  45. package/lib/{ClaudeLogo-CUaQXKLK.js → ClaudeLogo-K64Qm6gS.js} +2 -2
  46. package/lib/{ClaudeLogo-CUaQXKLK.js.map → ClaudeLogo-K64Qm6gS.js.map} +1 -1
  47. package/lib/{MdxPage-BiAVpP8K.js → MdxPage-Cr99RARi.js} +5 -5
  48. package/lib/{MdxPage-BiAVpP8K.js.map → MdxPage-Cr99RARi.js.map} +1 -1
  49. package/lib/{OAuthErrorPage-DhJo-O2B.js → OAuthErrorPage-BRXS5AMu.js} +3 -3
  50. package/lib/{OAuthErrorPage-DhJo-O2B.js.map → OAuthErrorPage-BRXS5AMu.js.map} +1 -1
  51. package/lib/{OasProvider-DFMZwyNn.js → OasProvider-sP_SqSM7.js} +2 -2
  52. package/lib/{OasProvider-DFMZwyNn.js.map → OasProvider-sP_SqSM7.js.map} +1 -1
  53. package/lib/{OperationList-CnmLfOuu.js → OperationList-DR0APPhk.js} +5 -5
  54. package/lib/{OperationList-CnmLfOuu.js.map → OperationList-DR0APPhk.js.map} +1 -1
  55. package/lib/{SchemaList-B5ikunUd.js → SchemaList-DgqAAHSI.js} +6 -6
  56. package/lib/{SchemaList-B5ikunUd.js.map → SchemaList-DgqAAHSI.js.map} +1 -1
  57. package/lib/{SchemaView-rjji7zMf.js → SchemaView-7IyQYEqk.js} +3 -3
  58. package/lib/{SchemaView-rjji7zMf.js.map → SchemaView-7IyQYEqk.js.map} +1 -1
  59. package/lib/{SignUp-DHWDXat-.js → SignUp-D3zhMk7q.js} +2 -2
  60. package/lib/{SignUp-DHWDXat-.js.map → SignUp-D3zhMk7q.js.map} +1 -1
  61. package/lib/{Toc-vMbSQCkj.js → Toc-GluXkcIk.js} +2 -2
  62. package/lib/{Toc-vMbSQCkj.js.map → Toc-GluXkcIk.js.map} +1 -1
  63. package/lib/{circular-CLhJAE3S.js → circular-Bunzbpsy.js} +2 -2
  64. package/lib/{circular-CLhJAE3S.js.map → circular-Bunzbpsy.js.map} +1 -1
  65. package/lib/{createServer-BYtu5Pcr.js → createServer-Dl4Xwsm4.js} +4 -4
  66. package/lib/{createServer-BYtu5Pcr.js.map → createServer-Dl4Xwsm4.js.map} +1 -1
  67. package/lib/{errors-DkJIl45d.js → errors-D2NINcVk.js} +2 -2
  68. package/lib/{errors-DkJIl45d.js.map → errors-D2NINcVk.js.map} +1 -1
  69. package/lib/{firebase-CmsW0j7-.js → firebase-BVAmGV_v.js} +10 -10
  70. package/lib/{firebase-CmsW0j7-.js.map → firebase-BVAmGV_v.js.map} +1 -1
  71. package/lib/{index-k0PVZBYl.js → index-BfTLawvZ.js} +7 -7
  72. package/lib/{index-k0PVZBYl.js.map → index-BfTLawvZ.js.map} +1 -1
  73. package/lib/{index-D35F-SCL.js → index-DTjrb36R.js} +2 -2
  74. package/lib/{index-D35F-SCL.js.map → index-DTjrb36R.js.map} +1 -1
  75. package/lib/{index-ofqkdEjL.js → index-DYfX9H7i.js} +34 -29
  76. package/lib/{index-ofqkdEjL.js.map → index-DYfX9H7i.js.map} +1 -1
  77. package/lib/{index.esm-DFzsB75P.js → index.esm-GMDd_9gw.js} +2 -2
  78. package/lib/index.esm-GMDd_9gw.js.map +1 -0
  79. package/lib/zudoku.__internal.js +494 -471
  80. package/lib/zudoku.__internal.js.map +1 -1
  81. package/lib/zudoku.auth-azureb2c.js +3 -3
  82. package/lib/zudoku.auth-clerk.js +1 -1
  83. package/lib/zudoku.auth-firebase.js +3 -3
  84. package/lib/zudoku.auth-openid.js +3 -3
  85. package/lib/zudoku.auth-supabase.js +3 -3
  86. package/lib/zudoku.components.js +1 -1
  87. package/lib/zudoku.plugin-api-catalog.js +2 -2
  88. package/lib/zudoku.plugin-api-keys.js +1 -1
  89. package/lib/zudoku.plugin-markdown.js +1 -1
  90. package/lib/zudoku.plugin-openapi.js +1 -1
  91. package/lib/zudoku.plugins.js.map +1 -1
  92. package/package.json +1 -2
  93. package/src/app/main.tsx +1 -1
  94. package/src/lib/components/Slot.test.tsx +1 -1
  95. package/src/lib/components/Zudoku.tsx +13 -3
  96. package/src/lib/core/ZudokuContext.ts +7 -1
  97. package/src/lib/core/__internal.tsx +2 -0
  98. package/src/lib/core/plugins.ts +7 -3
  99. package/src/lib/core/transform-config.test.tsx +99 -0
  100. package/src/lib/core/transform-config.ts +57 -19
  101. package/src/lib/hooks/useEvent.test.tsx +1 -1
  102. package/lib/index.esm-DFzsB75P.js.map +0 -1
@@ -15528,27 +15528,28 @@ class MT {
15528
15528
  getAuthState;
15529
15529
  queryClient;
15530
15530
  options;
15531
+ env;
15531
15532
  navigationPlugins;
15532
15533
  emitter = PT();
15533
- constructor(t, n) {
15534
- const u = {
15534
+ constructor(t, n, r) {
15535
+ const a = {
15535
15536
  ...Object.fromEntries(
15536
- (t.plugins ?? []).flatMap((a) => {
15537
- if (!Au(a)) return [];
15538
- const i = a.getProtectedRoutes?.();
15539
- return i ? Object.entries(wi(i) ?? {}) : [];
15537
+ (t.plugins ?? []).flatMap((i) => {
15538
+ if (!Au(i)) return [];
15539
+ const o = i.getProtectedRoutes?.();
15540
+ return o ? Object.entries(wi(o) ?? {}) : [];
15540
15541
  })
15541
15542
  ),
15542
15543
  ...wi(t.protectedRoutes)
15543
15544
  };
15544
- this.queryClient = n, this.options = { ...t, protectedRoutes: u }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(Au), this.authentication = this.plugins.find(al), this.getAuthState = pu.getState, this.meta = t.metadata, this.site = t.site, this.plugins.forEach((a) => {
15545
- sl(a) && wT(a.events).forEach(([i, o]) => {
15546
- this.emitter.on(i, o);
15545
+ this.queryClient = n, this.env = r, this.options = { ...t, protectedRoutes: a }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(Au), this.authentication = this.plugins.find(al), this.getAuthState = pu.getState, this.meta = t.metadata, this.site = t.site, this.plugins.forEach((i) => {
15546
+ sl(i) && wT(i.events).forEach(([o, l]) => {
15547
+ this.emitter.on(o, l);
15547
15548
  });
15548
- }), pu.subscribe((a, i) => {
15549
+ }), pu.subscribe((i, o) => {
15549
15550
  this.emitEvent("auth", {
15550
- prev: i,
15551
- next: a
15551
+ prev: o,
15552
+ next: i
15552
15553
  });
15553
15554
  });
15554
15555
  }
@@ -16412,31 +16413,35 @@ const Xs = ({ className: e }) => {
16412
16413
  }), /* @__PURE__ */ g.jsx(So.Provider, { value: t, children: e }));
16413
16414
  let Yi;
16414
16415
  const no = vn(
16415
- ({ children: e, ...t }) => {
16416
- const n = dt(
16417
- () => ({ ...to, ...t.overrides }),
16418
- [t.overrides]
16419
- ), r = Ot(), u = dt(() => ({
16420
- ...(t.plugins ?? []).filter(fl).flatMap(
16421
- (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
16416
+ ({
16417
+ children: e,
16418
+ env: t,
16419
+ ...n
16420
+ }) => {
16421
+ const r = dt(
16422
+ () => ({ ...to, ...n.overrides }),
16423
+ [n.overrides]
16424
+ ), u = Ot(), a = dt(() => ({
16425
+ ...(n.plugins ?? []).filter(fl).flatMap(
16426
+ (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
16422
16427
  ).reduce(
16423
- (f, m) => ({ ...f, ...m }),
16428
+ (m, h) => ({ ...m, ...h }),
16424
16429
  {}
16425
16430
  ),
16426
16431
  ...qs,
16427
- ...t.mdx?.components
16428
- }), [t.mdx?.components, t.plugins]), [a, i] = Fe(!1), o = Wi(), l = il();
16432
+ ...n.mdx?.components
16433
+ }), [n.mdx?.components, n.plugins]), [i, o] = Fe(!1), l = Wi(), c = il();
16429
16434
  Ae(() => {
16430
- a || !o.location || i(!0);
16431
- }, [a, o.location]), Yi ??= new MT(t, l);
16432
- const c = t.plugins?.flatMap(
16433
- (d) => dl(d) ? d.getHead?.({ location: r }) ?? [] : []
16435
+ i || !l.location || o(!0);
16436
+ }, [i, l.location]), Yi ??= new MT(n, c, t);
16437
+ const d = n.plugins?.flatMap(
16438
+ (f) => dl(f) ? f.getHead?.({ location: u }) ?? [] : []
16434
16439
  );
16435
16440
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
16436
- /* @__PURE__ */ g.jsx(qi, { children: c }),
16441
+ /* @__PURE__ */ g.jsx(qi, { children: d }),
16437
16442
  /* @__PURE__ */ g.jsx(og, { context: Yi, children: /* @__PURE__ */ g.jsxs(Fr, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Zudoku Loading..." }), children: [
16438
16443
  /* @__PURE__ */ g.jsx(sg, {}),
16439
- /* @__PURE__ */ g.jsx(yT, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ g.jsx(fo, { components: u, children: /* @__PURE__ */ g.jsx(ho, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ g.jsx(ag, { value: n, children: /* @__PURE__ */ g.jsx(yl, { children: e ?? /* @__PURE__ */ g.jsx(To, {}) }) }) }) }) })
16444
+ /* @__PURE__ */ g.jsx(yT, { slots: n.slots ?? n.UNSAFE_slotlets, children: /* @__PURE__ */ g.jsx(fo, { components: a, children: /* @__PURE__ */ g.jsx(ho, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ g.jsx(ag, { value: r, children: /* @__PURE__ */ g.jsx(yl, { children: e ?? /* @__PURE__ */ g.jsx(To, {}) }) }) }) }) })
16440
16445
  ] }) })
16441
16446
  ] });
16442
16447
  }
@@ -16487,4 +16492,4 @@ export {
16487
16492
  Jg as y,
16488
16493
  eb as z
16489
16494
  };
16490
- //# sourceMappingURL=index-ofqkdEjL.js.map
16495
+ //# sourceMappingURL=index-DYfX9H7i.js.map