zudoku 0.13.1 → 0.13.2
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/lib/plugins/custom-pages/CustomPage.js +2 -1
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -1
- package/lib/CategoryHeading-3Qtp2yZ8.js +10 -0
- package/lib/CategoryHeading-3Qtp2yZ8.js.map +1 -0
- package/lib/{DeveloperHint-CiXPc9Xm.js → DeveloperHint-BE9DzNhv.js} +2 -2
- package/lib/{DeveloperHint-CiXPc9Xm.js.map → DeveloperHint-BE9DzNhv.js.map} +1 -1
- package/lib/ErrorPage-B0COs372.js +16 -0
- package/lib/{ErrorPage-B-zoPPVx.js.map → ErrorPage-B0COs372.js.map} +1 -1
- package/lib/{Input-QMLhK7Rb.js → Input-CHfE_2Qk.js} +3 -3
- package/lib/{Input-QMLhK7Rb.js.map → Input-CHfE_2Qk.js.map} +1 -1
- package/lib/{Markdown-D6Nze6qq.js → Markdown-CWI6lU11.js} +5677 -3406
- package/lib/Markdown-CWI6lU11.js.map +1 -0
- package/lib/{MdxPage-DBhq6-5F.js → MdxPage-C3tlrV4j.js} +12 -12
- package/lib/{MdxPage-DBhq6-5F.js.map → MdxPage-C3tlrV4j.js.map} +1 -1
- package/lib/{OperationList-Ba24gUd2.js → OperationList-BO-ES1C5.js} +23 -23
- package/lib/{OperationList-Ba24gUd2.js.map → OperationList-BO-ES1C5.js.map} +1 -1
- package/lib/{Route-DI38nxYt.js → Route-Dq6zv0Pi.js} +2 -2
- package/lib/{Route-DI38nxYt.js.map → Route-Dq6zv0Pi.js.map} +1 -1
- package/lib/{SidebarBadge-B9-VJSQr.js → SidebarBadge-DmI5hT04.js} +3 -3
- package/lib/{SidebarBadge-B9-VJSQr.js.map → SidebarBadge-DmI5hT04.js.map} +1 -1
- package/lib/{SlotletProvider-Cb8mGpBO.js → SlotletProvider-RvaeLR6z.js} +14 -13
- package/lib/{SlotletProvider-Cb8mGpBO.js.map → SlotletProvider-RvaeLR6z.js.map} +1 -1
- package/lib/{index-DA74gNq3.js → index-DNfiZTPV.js} +17 -18
- package/lib/{index-DA74gNq3.js.map → index-DNfiZTPV.js.map} +1 -1
- package/lib/{index-g_JJcuFg.js → index-Do_BBSIs.js} +34 -35
- package/lib/{index-g_JJcuFg.js.map → index-Do_BBSIs.js.map} +1 -1
- package/lib/{index-dgcPryXi.js → index-Dvh1BL_e.js} +3 -3
- package/lib/{index-dgcPryXi.js.map → index-Dvh1BL_e.js.map} +1 -1
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.components.js +18 -19
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-pages.js +13 -13
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/package.json +1 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +4 -1
- package/lib/ErrorPage-B-zoPPVx.js +0 -15
- package/lib/Markdown-D6Nze6qq.js.map +0 -1
- package/lib/cn-BmFQLtkS.js +0 -2279
- package/lib/cn-BmFQLtkS.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { S as x, R as f } from "./SlotletProvider-
|
|
3
|
-
import { u as g, a as d, I as j, S as v, b as w, c as b, d as k, e as K, f as m } from "./Input-
|
|
2
|
+
import { S as x, R as f } from "./SlotletProvider-RvaeLR6z.js";
|
|
3
|
+
import { u as g, a as d, I as j, S as v, b as w, c as b, d as k, e as K, f as m } from "./Input-CHfE_2Qk.js";
|
|
4
4
|
import { a as N, L as u, O as I } from "./index-BRCiYFaL.js";
|
|
5
5
|
import { u as h, a as E, b as S } from "./ZudokuContext-BEmsYQoq.js";
|
|
6
|
-
import { B as l, n as A } from "./index-
|
|
7
|
-
import { D as C } from "./DeveloperHint-
|
|
6
|
+
import { B as l, n as A } from "./index-Do_BBSIs.js";
|
|
7
|
+
import { D as C } from "./DeveloperHint-BE9DzNhv.js";
|
|
8
8
|
import { RotateCwIcon as P, TrashIcon as D, EyeOffIcon as R, EyeIcon as q, CheckIcon as O, CopyIcon as z } from "lucide-react";
|
|
9
9
|
import { useState as p } from "react";
|
|
10
|
-
import {
|
|
10
|
+
import { a as T } from "./Markdown-CWI6lU11.js";
|
|
11
11
|
function c(t, s) {
|
|
12
12
|
if (t)
|
|
13
13
|
return;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { a as n, P as u } from "./Markdown-CWI6lU11.js";
|
|
4
4
|
import { u as c } from "./useExposedProps-Csw8oAlt.js";
|
|
5
|
-
const
|
|
6
|
-
element:
|
|
7
|
-
render:
|
|
8
|
-
prose:
|
|
5
|
+
const l = ({
|
|
6
|
+
element: t,
|
|
7
|
+
render: s,
|
|
8
|
+
prose: e = !0
|
|
9
9
|
}) => {
|
|
10
|
-
const r = c(), m =
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
}, f = (
|
|
13
|
-
getRoutes: () =>
|
|
14
|
-
path:
|
|
15
|
-
element: /* @__PURE__ */
|
|
10
|
+
const r = c(), m = s ? a.createElement(s, r) : t;
|
|
11
|
+
return /* @__PURE__ */ o.jsx("div", { className: n(e && u, "max-w-full"), children: m });
|
|
12
|
+
}, f = (t) => ({
|
|
13
|
+
getRoutes: () => t.map(({ path: s, ...e }) => ({
|
|
14
|
+
path: s,
|
|
15
|
+
element: /* @__PURE__ */ o.jsx(l, { ...e })
|
|
16
16
|
}))
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zudoku.plugin-custom-pages.js","sources":["../src/lib/plugins/custom-pages/CustomPage.tsx","../src/lib/plugins/custom-pages/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"../../util/cn.js\";\nimport { useExposedProps } from \"../../util/useExposedProps.js\";\nimport type { CustomPageConfig } from \"./index.js\";\n\nexport const CustomPage = ({\n element,\n render,\n prose = true,\n}: Omit<CustomPageConfig, \"path\">) => {\n const slotletProps = useExposedProps();\n const content = render ? React.createElement(render, slotletProps) : element;\n\n return <div className={cn(prose && \"
|
|
1
|
+
{"version":3,"file":"zudoku.plugin-custom-pages.js","sources":["../src/lib/plugins/custom-pages/CustomPage.tsx","../src/lib/plugins/custom-pages/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { ProseClasses } from \"../../components/Markdown.js\";\nimport { cn } from \"../../util/cn.js\";\nimport { useExposedProps } from \"../../util/useExposedProps.js\";\nimport type { CustomPageConfig } from \"./index.js\";\n\nexport const CustomPage = ({\n element,\n render,\n prose = true,\n}: Omit<CustomPageConfig, \"path\">) => {\n const slotletProps = useExposedProps();\n const content = render ? React.createElement(render, slotletProps) : element;\n\n return (\n <div className={cn(prose && ProseClasses, \"max-w-full\")}>{content}</div>\n );\n};\n","import { type ComponentType, type ReactNode } from \"react\";\nimport type { RouteObject } from \"react-router-dom\";\nimport { type ExposedComponentProps } from \"../../components/SlotletProvider.js\";\nimport type { DevPortalPlugin, NavigationPlugin } from \"../../core/plugins.js\";\nimport { CustomPage } from \"./CustomPage.js\";\n\nexport type CustomPageConfig = {\n path: string;\n prose?: boolean;\n element?: ReactNode;\n render?: ComponentType<ExposedComponentProps>;\n};\n\nexport const customPagesPlugin = (\n config: CustomPageConfig[],\n): DevPortalPlugin & NavigationPlugin => {\n return {\n getRoutes: (): RouteObject[] =>\n config.map(({ path, ...props }) => ({\n path,\n element: <CustomPage {...props} />,\n })),\n };\n};\n"],"names":["CustomPage","element","render","prose","slotletProps","useExposedProps","content","React","jsx","cn","ProseClasses","customPagesPlugin","config","path","props"],"mappings":";;;;AAMO,MAAMA,IAAa,CAAC;AAAA,EACzB,SAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC,IAAQ;AACV,MAAsC;AACpC,QAAMC,IAAeC,KACfC,IAAUJ,IAASK,EAAM,cAAcL,GAAQE,CAAY,IAAIH;AAGnE,SAAAO,gBAAAA,MAAC,SAAI,WAAWC,EAAGN,KAASO,GAAc,YAAY,GAAI,UAAQJ,EAAA,CAAA;AAEtE,GCJaK,IAAoB,CAC/BC,OAEO;AAAA,EACL,WAAW,MACTA,EAAO,IAAI,CAAC,EAAE,MAAAC,GAAM,GAAGC,SAAa;AAAA,IAClC,MAAAD;AAAA,IACA,SAASL,gBAAAA,EAAAA,IAACR,GAAY,EAAA,GAAGc,EAAO,CAAA;AAAA,EAAA,EAChC;AAAA;"}
|
|
@@ -6,7 +6,7 @@ const x = (t, e, n) => Object.entries(t).flatMap(([a, p]) => {
|
|
|
6
6
|
return s ? {
|
|
7
7
|
path: s,
|
|
8
8
|
lazy: async () => {
|
|
9
|
-
const { MdxPage: i } = await import("./MdxPage-
|
|
9
|
+
const { MdxPage: i } = await import("./MdxPage-C3tlrV4j.js"), { default: m, ...l } = await p();
|
|
10
10
|
return {
|
|
11
11
|
element: /* @__PURE__ */ u.jsx(
|
|
12
12
|
i,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { o as u } from "./index-
|
|
2
|
+
import { o as u } from "./index-DNfiZTPV.js";
|
|
3
3
|
import "./ZudokuContext-BEmsYQoq.js";
|
|
4
4
|
import "lucide-react";
|
|
5
5
|
import "zudoku/openapi-worker";
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./ErrorPage-
|
|
8
|
-
import "./Markdown-
|
|
6
|
+
import "./index-Do_BBSIs.js";
|
|
7
|
+
import "./ErrorPage-B0COs372.js";
|
|
8
|
+
import "./Markdown-CWI6lU11.js";
|
|
9
9
|
import "./joinPath-B7kNnUX4.js";
|
|
10
10
|
import "./urql-core-KJnLL26g.js";
|
|
11
11
|
import "./router-Oe6YmY6B.js";
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { ProseClasses } from "../../components/Markdown.js";
|
|
2
3
|
import { cn } from "../../util/cn.js";
|
|
3
4
|
import { useExposedProps } from "../../util/useExposedProps.js";
|
|
4
5
|
import type { CustomPageConfig } from "./index.js";
|
|
@@ -11,5 +12,7 @@ export const CustomPage = ({
|
|
|
11
12
|
const slotletProps = useExposedProps();
|
|
12
13
|
const content = render ? React.createElement(render, slotletProps) : element;
|
|
13
14
|
|
|
14
|
-
return
|
|
15
|
+
return (
|
|
16
|
+
<div className={cn(prose && ProseClasses, "max-w-full")}>{content}</div>
|
|
17
|
+
);
|
|
15
18
|
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { P as n, C as o, H as i } from "./Markdown-D6Nze6qq.js";
|
|
3
|
-
const c = ({
|
|
4
|
-
title: r = "An error occurred",
|
|
5
|
-
message: a,
|
|
6
|
-
category: s
|
|
7
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className: n + " h-full pt-[--padding-content-top]", children: [
|
|
8
|
-
s && /* @__PURE__ */ e.jsx(o, { children: s }),
|
|
9
|
-
r && /* @__PURE__ */ e.jsx(i, { level: 1, className: "flex gap-3.5 items-center", children: r }),
|
|
10
|
-
/* @__PURE__ */ e.jsx("p", { children: a })
|
|
11
|
-
] });
|
|
12
|
-
export {
|
|
13
|
-
c as E
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ErrorPage-B-zoPPVx.js.map
|