zudoku 0.0.0-monetization-standalone.zd1543a39 → 0.0.0-monetization-standalone.zada7f04c
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/app/main.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/config/create-plugin.d.ts +1 -1
- package/dist/config/create-plugin.js +7 -5
- package/dist/config/create-plugin.js.map +1 -1
- package/dist/config/loader.js +2 -2
- package/dist/config/loader.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Slot.test.js +1 -1
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +4 -1
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/index.d.ts +3 -1
- package/dist/lib/core/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +3 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +1 -0
- package/dist/lib/core/__internal.js +2 -0
- package/dist/lib/core/__internal.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +5 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/transform-config.d.ts +3 -1
- package/dist/lib/core/transform-config.js +33 -13
- package/dist/lib/core/transform-config.js.map +1 -1
- package/dist/lib/core/transform-config.test.d.ts +1 -0
- package/dist/lib/core/transform-config.test.js +83 -0
- package/dist/lib/core/transform-config.test.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/vite/config.js +5 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-config.js +16 -4
- package/dist/vite/plugin-config.js.map +1 -1
- package/lib/{ClaudeLogo-CUaQXKLK.js → ClaudeLogo-K64Qm6gS.js} +2 -2
- package/lib/{ClaudeLogo-CUaQXKLK.js.map → ClaudeLogo-K64Qm6gS.js.map} +1 -1
- package/lib/{MdxPage-BiAVpP8K.js → MdxPage-Cr99RARi.js} +5 -5
- package/lib/{MdxPage-BiAVpP8K.js.map → MdxPage-Cr99RARi.js.map} +1 -1
- package/lib/{OAuthErrorPage-DhJo-O2B.js → OAuthErrorPage-BRXS5AMu.js} +3 -3
- package/lib/{OAuthErrorPage-DhJo-O2B.js.map → OAuthErrorPage-BRXS5AMu.js.map} +1 -1
- package/lib/{OasProvider-DFMZwyNn.js → OasProvider-sP_SqSM7.js} +2 -2
- package/lib/{OasProvider-DFMZwyNn.js.map → OasProvider-sP_SqSM7.js.map} +1 -1
- package/lib/{OperationList-CnmLfOuu.js → OperationList-DR0APPhk.js} +5 -5
- package/lib/{OperationList-CnmLfOuu.js.map → OperationList-DR0APPhk.js.map} +1 -1
- package/lib/{SchemaList-B5ikunUd.js → SchemaList-DgqAAHSI.js} +6 -6
- package/lib/{SchemaList-B5ikunUd.js.map → SchemaList-DgqAAHSI.js.map} +1 -1
- package/lib/{SchemaView-rjji7zMf.js → SchemaView-7IyQYEqk.js} +3 -3
- package/lib/{SchemaView-rjji7zMf.js.map → SchemaView-7IyQYEqk.js.map} +1 -1
- package/lib/{SignUp-DHWDXat-.js → SignUp-D3zhMk7q.js} +2 -2
- package/lib/{SignUp-DHWDXat-.js.map → SignUp-D3zhMk7q.js.map} +1 -1
- package/lib/{Toc-vMbSQCkj.js → Toc-GluXkcIk.js} +2 -2
- package/lib/{Toc-vMbSQCkj.js.map → Toc-GluXkcIk.js.map} +1 -1
- package/lib/{circular-CLhJAE3S.js → circular-Bunzbpsy.js} +2 -2
- package/lib/{circular-CLhJAE3S.js.map → circular-Bunzbpsy.js.map} +1 -1
- package/lib/{createServer-BYtu5Pcr.js → createServer-Dl4Xwsm4.js} +4 -4
- package/lib/{createServer-BYtu5Pcr.js.map → createServer-Dl4Xwsm4.js.map} +1 -1
- package/lib/{errors-DkJIl45d.js → errors-D2NINcVk.js} +2 -2
- package/lib/{errors-DkJIl45d.js.map → errors-D2NINcVk.js.map} +1 -1
- package/lib/{firebase-CmsW0j7-.js → firebase-BVAmGV_v.js} +10 -10
- package/lib/{firebase-CmsW0j7-.js.map → firebase-BVAmGV_v.js.map} +1 -1
- package/lib/{index-k0PVZBYl.js → index-BfTLawvZ.js} +7 -7
- package/lib/{index-k0PVZBYl.js.map → index-BfTLawvZ.js.map} +1 -1
- package/lib/{index-D35F-SCL.js → index-DTjrb36R.js} +2 -2
- package/lib/{index-D35F-SCL.js.map → index-DTjrb36R.js.map} +1 -1
- package/lib/{index-ofqkdEjL.js → index-DYfX9H7i.js} +34 -29
- package/lib/{index-ofqkdEjL.js.map → index-DYfX9H7i.js.map} +1 -1
- package/lib/{index.esm-DFzsB75P.js → index.esm-GMDd_9gw.js} +2 -2
- package/lib/index.esm-GMDd_9gw.js.map +1 -0
- package/lib/zudoku.__internal.js +494 -471
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +3 -3
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-firebase.js +3 -3
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.auth-supabase.js +3 -3
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +1 -2
- package/src/app/main.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +1 -1
- package/src/lib/components/Zudoku.tsx +13 -3
- package/src/lib/core/ZudokuContext.ts +7 -1
- package/src/lib/core/__internal.tsx +2 -0
- package/src/lib/core/plugins.ts +7 -3
- package/src/lib/core/transform-config.test.tsx +99 -0
- package/src/lib/core/transform-config.ts +52 -14
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- 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
|
|
15534
|
+
constructor(t, n, r) {
|
|
15535
|
+
const a = {
|
|
15535
15536
|
...Object.fromEntries(
|
|
15536
|
-
(t.plugins ?? []).flatMap((
|
|
15537
|
-
if (!Au(
|
|
15538
|
-
const
|
|
15539
|
-
return
|
|
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:
|
|
15545
|
-
sl(
|
|
15546
|
-
this.emitter.on(
|
|
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((
|
|
15549
|
+
}), pu.subscribe((i, o) => {
|
|
15549
15550
|
this.emitEvent("auth", {
|
|
15550
|
-
prev:
|
|
15551
|
-
next:
|
|
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
|
-
({
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
|
|
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
|
-
(
|
|
16428
|
+
(m, h) => ({ ...m, ...h }),
|
|
16424
16429
|
{}
|
|
16425
16430
|
),
|
|
16426
16431
|
...qs,
|
|
16427
|
-
...
|
|
16428
|
-
}), [
|
|
16432
|
+
...n.mdx?.components
|
|
16433
|
+
}), [n.mdx?.components, n.plugins]), [i, o] = Fe(!1), l = Wi(), c = il();
|
|
16429
16434
|
Ae(() => {
|
|
16430
|
-
|
|
16431
|
-
}, [
|
|
16432
|
-
const
|
|
16433
|
-
(
|
|
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:
|
|
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:
|
|
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-
|
|
16495
|
+
//# sourceMappingURL=index-DYfX9H7i.js.map
|