zudoku 0.3.0-dev.91 → 0.3.0-dev.93
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/config/config.d.ts +1 -2
- package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -1
- package/dist/lib/components/navigation/SidebarBadge.js +2 -2
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +4 -4
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +11 -5
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +10 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/config.d.ts +2 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +4 -3
- package/dist/vite/plugin-config.js +3 -11
- package/dist/vite/plugin-config.js.map +1 -1
- package/lib/{OperationList-DvKqvB16.js → OperationList-BAZX1Gla.js} +3 -3
- package/lib/{OperationList-DvKqvB16.js.map → OperationList-BAZX1Gla.js.map} +1 -1
- package/lib/{Route-CnmaDun4.js → Route-Cq7WBHPC.js} +2 -2
- package/lib/{Route-CnmaDun4.js.map → Route-Cq7WBHPC.js.map} +1 -1
- package/lib/{Spinner-D99Tq0hv.js → Spinner-BCz1kNGw.js} +39 -37
- package/lib/{Spinner-D99Tq0hv.js.map → Spinner-BCz1kNGw.js.map} +1 -1
- package/lib/assets/{worker-CyHZIIfE.js → worker-CR7aeKop.js} +12 -12
- package/lib/assets/{worker-CyHZIIfE.js.map → worker-CR7aeKop.js.map} +1 -1
- package/lib/{index-7nswqEVR.js → index-D-9Z7HSn.js} +2 -2
- package/lib/{index-7nswqEVR.js.map → index-D-9Z7HSn.js.map} +1 -1
- package/lib/{index-DjaqWcmv.js → index-DGb_offs.js} +22 -14
- package/lib/{index-DjaqWcmv.js.map → index-DGb_offs.js.map} +1 -1
- package/lib/zudoku.components.js +303 -293
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +12 -12
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -2
- package/src/lib/components/navigation/SidebarBadge.tsx +3 -0
- package/src/lib/components/navigation/SidebarItem.tsx +38 -10
- package/src/lib/oas/graphql/index.ts +13 -7
- package/src/lib/plugins/openapi/index.tsx +12 -1
|
@@ -14757,7 +14757,7 @@ const Ig = (t) => {
|
|
|
14757
14757
|
const n = await Sg(e);
|
|
14758
14758
|
return Ig(n);
|
|
14759
14759
|
}, Ag = (t, e) => {
|
|
14760
|
-
const n = t.summary + (t.operationId ? "-" + t.operationId.slice(0, (t.summary, 1 / 0)) : "");
|
|
14760
|
+
const n = (t.summary ?? "") + (t.operationId ? "-" + t.operationId.slice(0, (t.summary, 1 / 0)) : "");
|
|
14761
14761
|
return Iu(
|
|
14762
14762
|
(e ? e + "-" : "") + (n || `${t.method}-${t.path}`),
|
|
14763
14763
|
{ lower: !0, trim: !0 }
|
|
@@ -14782,6 +14782,7 @@ const Ig = (t) => {
|
|
|
14782
14782
|
method: i,
|
|
14783
14783
|
path: n,
|
|
14784
14784
|
parameters: u,
|
|
14785
|
+
tags: s.tags ?? [],
|
|
14785
14786
|
slug: Ag(
|
|
14786
14787
|
{
|
|
14787
14788
|
summary: s.summary,
|
|
@@ -14799,12 +14800,14 @@ const Ig = (t) => {
|
|
|
14799
14800
|
description: t.exposeString("description", { nullable: !0 }),
|
|
14800
14801
|
operations: t.field({
|
|
14801
14802
|
type: [vu],
|
|
14802
|
-
resolve: (e, n, r) =>
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14803
|
+
resolve: (e, n, r) => {
|
|
14804
|
+
var s;
|
|
14805
|
+
const i = ((s = r.schema.tags) == null ? void 0 : s.map((o) => o.name)) ?? [];
|
|
14806
|
+
return yu(r.schema.paths, e.name).filter(
|
|
14807
|
+
(o) => e.name ? o.tags.includes(e.name) : o.tags.length === 0 || // If none of the tags are present in the root tags, then show them here
|
|
14808
|
+
o.tags.every((a) => !i.includes(a))
|
|
14809
|
+
);
|
|
14810
|
+
}
|
|
14808
14811
|
})
|
|
14809
14812
|
})
|
|
14810
14813
|
}), Lg = Re.objectRef("PathItem").implement({
|
|
@@ -14996,10 +14999,7 @@ const Ig = (t) => {
|
|
|
14996
14999
|
tag: t.arg.string()
|
|
14997
15000
|
},
|
|
14998
15001
|
resolve: (e, n) => yu(e.paths).filter(
|
|
14999
|
-
(r) =>
|
|
15000
|
-
var i;
|
|
15001
|
-
return (!n.operationId || r.operationId === n.operationId) && (!n.path || r.path === n.path) && (!n.method || r.method === n.method) && (!n.tag || ((i = r.tags) == null ? void 0 : i.includes(n.tag)));
|
|
15002
|
-
}
|
|
15002
|
+
(r) => (!n.operationId || r.operationId === n.operationId) && (!n.path || r.path === n.path) && (!n.method || r.method === n.method) && (!n.tag || r.tags.includes(n.tag))
|
|
15003
15003
|
)
|
|
15004
15004
|
})
|
|
15005
15005
|
})
|
|
@@ -15068,7 +15068,7 @@ const Vg = Re.toSchema(), Bg = (t) => Qp({ schema: Vg, ...t }), Gg = () => Bg({
|
|
|
15068
15068
|
return Qg();
|
|
15069
15069
|
const e = new SharedWorker(new URL(
|
|
15070
15070
|
/* @vite-ignore */
|
|
15071
|
-
"./assets/worker-
|
|
15071
|
+
"./assets/worker-CR7aeKop.js",
|
|
15072
15072
|
import.meta.url
|
|
15073
15073
|
), {
|
|
15074
15074
|
type: "module"
|