zudoku 0.1.1-dev.41 → 0.1.1-dev.43
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/components/DevPortal.d.ts +1 -2
- package/dist/lib/components/DevPortal.js +2 -2
- package/dist/lib/components/DevPortal.js.map +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.js +1 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +3 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/vite/plugin-mdx.js +3 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/lib/{util-c0rdJnKP.js → util-CnHdxZvn.js} +40 -41
- package/lib/zudoku.components.js +111 -110
- package/lib/zudoku.plugins.js +36 -15
- package/package.json +1 -1
- package/src/lib/components/DevPortal.tsx +2 -2
- package/src/lib/components/index.ts +1 -0
- package/src/lib/plugins/openapi/OperationListItem.tsx +14 -4
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useMDXComponents } from "@mdx-js/react";
|
|
2
1
|
import { type AuthProvider } from "../authentication/authentication.js";
|
|
3
2
|
import { type NavigationItem } from "../core/DevPortalContext.js";
|
|
4
3
|
import { type DevPortalPlugin } from "../core/plugins.js";
|
|
@@ -23,4 +22,4 @@ export type DevPortalProps = {
|
|
|
23
22
|
overrides?: ComponentsContextType;
|
|
24
23
|
};
|
|
25
24
|
declare const DevPortal: import("react").MemoExoticComponent<(props: DevPortalProps) => import("react/jsx-runtime").JSX.Element>;
|
|
26
|
-
export { DevPortal
|
|
25
|
+
export { DevPortal };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { MDXProvider
|
|
2
|
+
import { MDXProvider } from "@mdx-js/react";
|
|
3
3
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
4
4
|
import { memo, Suspense, useEffect, useMemo } from "react";
|
|
5
5
|
import { DevPortalContext, queryClient, } from "../core/DevPortalContext.js";
|
|
@@ -24,5 +24,5 @@ const DevPortalInner = (props) => {
|
|
|
24
24
|
};
|
|
25
25
|
const DevPortal = memo(DevPortalInner);
|
|
26
26
|
DevPortal.displayName = "DevPortal";
|
|
27
|
-
export { DevPortal
|
|
27
|
+
export { DevPortal };
|
|
28
28
|
//# sourceMappingURL=DevPortal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"DevPortal.js","sourceRoot":"","sources":["../../../src/lib/components/DevPortal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAChB,WAAW,GAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EACL,aAAa,GAEd,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,MAAM,E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AC,CAAC;AACvC,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -14,7 +14,7 @@ export const OperationListItem = ({ operationFragment, }) => {
|
|
|
14
14
|
const operation = useFragment(OperationsFragment, operationFragment);
|
|
15
15
|
const groupedParameters = groupBy(operation?.parameters ?? [], "in");
|
|
16
16
|
const first = operation.responses.find((re) => re.statusCode === "200");
|
|
17
|
-
return (_jsxs("div", { className: "grid grid-cols-2 gap-8 items-start border-b-2 mb-16 pb-16 border-border", children: [_jsxs("div", { className: ProseClasses, children: [_jsx(Heading, { level: 2, className: "mt-0", id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && _jsx(Markdown, { content: operation.description }), operation.parameters && operation.parameters.length > 0 && (_jsx("div", { className: "mt-4", children: PARAM_GROUPS.flatMap((group) => groupedParameters?.[group]?.length ? (_jsx(ParameterList, { id: operation.slug, groupedParameters: groupedParameters, group: group }, group)) : ([])) })), _jsx(Heading, { level: 3, className: "capitalize", children: "
|
|
17
|
+
return (_jsxs("div", { className: "grid grid-cols-2 gap-8 items-start border-b-2 mb-16 pb-16 border-border", children: [_jsxs("div", { className: ProseClasses, children: [_jsx(Heading, { level: 2, className: "mt-0", id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && _jsx(Markdown, { content: operation.description }), operation.parameters && operation.parameters.length > 0 && (_jsx("div", { className: "mt-4", children: PARAM_GROUPS.flatMap((group) => groupedParameters?.[group]?.length ? (_jsx(ParameterList, { id: operation.slug, groupedParameters: groupedParameters, group: group }, group)) : ([])) })), _jsx(Heading, { level: 3, className: "capitalize", children: "Responses" }), _jsxs(Tabs, { defaultValue: `${first?.statusCode}${first?.description}`, children: [_jsx(TabsList, { children: operation.responses.map((response) => (_jsxs(TabsTrigger, { value: response.statusCode + response.description, children: [response.description, " (", response.statusCode, ")"] }, response.statusCode))) }), _jsx("ul", { className: "list-none m-0 px-0 overflow-hidden", children: operation.responses.map((response) => (_jsx(TabsContent, { value: response.statusCode + response.description, children: _jsx(ViewSchema, { schema: response.content?.at(0)?.schema, name: "" }) }, response.statusCode))) })] })] }), _jsx(Sidecar, { operation: operation })] }, operation.operationId));
|
|
18
18
|
};
|
|
19
19
|
const ViewSchema = ({ name, schema, level = 0, collapsible = false, }) => {
|
|
20
20
|
const [open, setOpen] = useState(!collapsible);
|
|
@@ -32,7 +32,7 @@ const ViewSchema = ({ name, schema, level = 0, collapsible = false, }) => {
|
|
|
32
32
|
.map(([propertyName, property]) => (_jsxs("div", { className: cn(level > 0 ? "py-2" : "py-4", "px-2 border-t border-border bg-border/20 hover:bg-border/30 flex gap-1 flex-col", property.deprecated && "opacity-50"), children: [_jsxs("div", { className: "flex items-center gap-2 relative", children: [_jsxs("code", { children: [propertyName, " ", property.title] }), property.type && (_jsx("span", { className: "text-sm text-muted-foreground", children: property.type })), property.deprecated && (_jsx("span", { className: "text-sm text-muted-foreground", children: "Deprecated" })), !schema.required?.includes(propertyName) &&
|
|
33
33
|
!property.required && (_jsx("span", { className: "py-px px-1.5 font-medium text-xs border border-border rounded-lg", children: "optional" }))] }), property.description && (_jsx(Markdown, { content: property.description, className: "prose text-sm prose-p:my-1 leading-normal line-clamp-4" })), property.enum && (_jsxs("span", { className: "text-sm text-muted-foreground flex gap-1 flex-wrap items-center", children: [_jsx("span", { children: "Possible values" }), property.enum
|
|
34
34
|
.filter((value) => value)
|
|
35
|
-
.map((value) => (_jsx("span", { className: "font-mono text-xs border-border border bg-muted rounded px-1", children: value })))] })), property.type === "object" && (_jsx("div", { className: "mt-2.5", children: _jsx(ViewSchema, { schema: property, level: level + 1 }) })), property.type === "array" &&
|
|
36
|
-
property.items.type === "object" && (_jsx("div", { className: "mt-2.5", children: _jsx(ViewSchema, { schema: property.items, level: level + 1 }) }))] }))) })] }));
|
|
35
|
+
.map((value) => (_jsx("span", { className: "font-mono text-xs border-border border bg-muted rounded px-1", children: value }, value)))] })), property.type === "object" && (_jsx("div", { className: "mt-2.5", children: _jsx(ViewSchema, { schema: property, level: level + 1 }) })), property.type === "array" &&
|
|
36
|
+
property.items.type === "object" && (_jsx("div", { className: "mt-2.5", children: _jsx(ViewSchema, { schema: property.items, level: level + 1 }) }))] }, propertyName))) })] }));
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=OperationListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationListItem.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/OperationListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAgB,WAAW,EAAE,MAAM,oBAAo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AQ,CAAC,IAAI,IAAI,CAChB,gBAAM,SAAS,EAAC,iEAAiE,aAC/E,6CAA4B,EAC3B,QAAQ,CAAC,IAAI;yCACX,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;yCACxB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACd,eAEE,SAAS,EAAC,8DAA8D,YAEvE,KAAK,IAHD,KAAK,CAIL,CACR,CAAC,IACC,CACR,EACA,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,CAC7B,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,UAAU,IAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,GAAI,GAC9C,CACP,EACA,QAAQ,CAAC,IAAI,KAAK,OAAO;gCACxB,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,CAClC,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,UAAU,IAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,GAAI,GACpD,CACP,KAjEE,YAAY,CAkEb,CACP,CAAC,GACH,IACD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -27,7 +27,6 @@ function processComplexTypes(schema, name) {
|
|
|
27
27
|
return obj;
|
|
28
28
|
}
|
|
29
29
|
else if (schema.type === "array" && schema.items) {
|
|
30
|
-
console.log(name, "array", schema.items, schema);
|
|
31
30
|
const value = generateSchemaExample(schema.items, name);
|
|
32
31
|
if (value !== undefined) {
|
|
33
32
|
return [value];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateSchemaExample.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/util/generateSchemaExample.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAW,EAAE,CAClD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAA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AAC;YACnB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC;SAAM,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACnD,
|
|
1
|
+
{"version":3,"file":"generateSchemaExample.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/util/generateSchemaExample.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAW,EAAE,CAClD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,MAAoB,EACpB,IAAa,EACR,EAAE;IACP,uDAAuD;IACvD,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;SAAM,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACxC,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,0BAA0B;IAC1B,IAAI,MAAM,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED,yCAAyC;IACzC,OAAO,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEF,SAAS,mBAAmB,CAAC,MAAoB,EAAE,IAAa;IAC9D,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAC/D,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,IAAI,EAAE,CAAC,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AAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,IAAI,CAAC;QACd;YACE,OAAO,WAAW,CAAC;IACvB,CAAC;AACH,CAAC"}
|
package/dist/vite/plugin-mdx.js
CHANGED
|
@@ -34,7 +34,9 @@ const viteMdxPlugin = ({ remarkPlugins, rehypePlugins, } = {}) => {
|
|
|
34
34
|
return {
|
|
35
35
|
enforce: "pre",
|
|
36
36
|
...mdx({
|
|
37
|
-
providerImportSource:
|
|
37
|
+
providerImportSource: process.env.ZUDOKU_INTERNAL_DEV
|
|
38
|
+
? "@mdx-js/react"
|
|
39
|
+
: "zudoku/components",
|
|
38
40
|
remarkPlugins: [
|
|
39
41
|
remarkComment,
|
|
40
42
|
remarkGfm,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-mdx.js","sourceRoot":"","sources":["../../src/vite/plugin-mdx.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,qCAAqC,CAAC;AACzE,OAAO,GAAqB,MAAM,gBAAgB,CAAC;AACnD,OAAO,OAAO,MAAM,kCAAkC,CAAC;AACvD,OAAO,aAAa,MAAM,sCAAsC,CAAC;AACjE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGzC,8DAA8D;AAC9D,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC,CAAC,IAAS,EAAE,EAAE;IAChD,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,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,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAOF,MAAM,aAAa,GAAG,CAAC,EACrB,aAAa,EACb,aAAa,MACa,EAAE,EAAU,EAAE;IACxC,OAAO;QACL,OAAO,EAAE,KAAK;QACd,GAAG,GAAG,CAAC;YACL,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;gBACnD,CAAC,CAAC,eAAe;gBACjB,CAAC,CAAC,mBAAmB;YACvB,aAAa,EAAE;gBACb,aAAa;gBACb,SAAS;gBACT,iBAAiB;gBACjB,oBAAoB;gBACpB,eAAe;gBACf,qBAAqB;gBACrB,uBAAuB;gBACvB,GAAG,CAAC,aAAa,IAAI,EAAE,CAAC;aACzB;YACD,aAAa,EAAE;gBACb,UAAU;gBACV,qBAAqB;gBACrB,sBAAsB;gBACtB,OAAO;gBACP,aAAa;gBACb,GAAG,CAAC,aAAa,IAAI,EAAE,CAAC;aACzB;SACF,CAAC;QACF,IAAI,EAAE,wBAAwB;KAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -8,11 +8,29 @@ var C = (e, t, r) => (Mn(e, t, "read from private field"), r ? r.call(e) : t.get
|
|
|
8
8
|
import * as x from "react";
|
|
9
9
|
import De, { Component as Ea, createContext as xa, useState as bn, useRef as fr, useEffect as Lr, useMemo as qn, useCallback as Ir, useContext as Sa, createElement as hn, forwardRef as Uo } from "react";
|
|
10
10
|
import * as Ra from "react-dom";
|
|
11
|
-
|
|
11
|
+
const Kn = {}, $o = De.createContext(Kn);
|
|
12
|
+
function Wi(e) {
|
|
13
|
+
const t = De.useContext($o);
|
|
14
|
+
return De.useMemo(
|
|
15
|
+
function() {
|
|
16
|
+
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
17
|
+
},
|
|
18
|
+
[t, e]
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function ef(e) {
|
|
22
|
+
let t;
|
|
23
|
+
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(Kn) : e.components || Kn : t = Wi(e.components), De.createElement(
|
|
24
|
+
$o.Provider,
|
|
25
|
+
{ value: t },
|
|
26
|
+
e.children
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
var tf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12
30
|
function ka(e) {
|
|
13
31
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
14
32
|
}
|
|
15
|
-
function
|
|
33
|
+
function rf(e) {
|
|
16
34
|
if (e.__esModule) return e;
|
|
17
35
|
var t = e.default;
|
|
18
36
|
if (typeof t == "function") {
|
|
@@ -31,7 +49,7 @@ function tf(e) {
|
|
|
31
49
|
});
|
|
32
50
|
}), r;
|
|
33
51
|
}
|
|
34
|
-
var
|
|
52
|
+
var Yn = { exports: {} }, Sr = {};
|
|
35
53
|
/**
|
|
36
54
|
* @license React
|
|
37
55
|
* react-jsx-runtime.production.min.js
|
|
@@ -42,7 +60,7 @@ var Kn = { exports: {} }, Sr = {};
|
|
|
42
60
|
* LICENSE file in the root directory of this source tree.
|
|
43
61
|
*/
|
|
44
62
|
var Ha;
|
|
45
|
-
function
|
|
63
|
+
function qi() {
|
|
46
64
|
if (Ha) return Sr;
|
|
47
65
|
Ha = 1;
|
|
48
66
|
var e = De, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -66,7 +84,7 @@ var Rr = {};
|
|
|
66
84
|
* LICENSE file in the root directory of this source tree.
|
|
67
85
|
*/
|
|
68
86
|
var Wa;
|
|
69
|
-
function
|
|
87
|
+
function Ki() {
|
|
70
88
|
return Wa || (Wa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
71
89
|
var e = De, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
|
|
72
90
|
function m(f) {
|
|
@@ -659,27 +677,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
659
677
|
Rr.Fragment = n, Rr.jsx = I, Rr.jsxs = B;
|
|
660
678
|
}()), Rr;
|
|
661
679
|
}
|
|
662
|
-
process.env.NODE_ENV === "production" ?
|
|
663
|
-
var K =
|
|
664
|
-
const Yn = {}, $o = De.createContext(Yn);
|
|
665
|
-
function Ki(e) {
|
|
666
|
-
const t = De.useContext($o);
|
|
667
|
-
return De.useMemo(
|
|
668
|
-
function() {
|
|
669
|
-
return typeof e == "function" ? e(t) : { ...t, ...e };
|
|
670
|
-
},
|
|
671
|
-
[t, e]
|
|
672
|
-
);
|
|
673
|
-
}
|
|
674
|
-
function rf(e) {
|
|
675
|
-
let t;
|
|
676
|
-
return e.disableParentContext ? t = typeof e.components == "function" ? e.components(Yn) : e.components || Yn : t = Ki(e.components), De.createElement(
|
|
677
|
-
$o.Provider,
|
|
678
|
-
{ value: t },
|
|
679
|
-
e.children
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
var Ca = class {
|
|
680
|
+
process.env.NODE_ENV === "production" ? Yn.exports = qi() : Yn.exports = Ki();
|
|
681
|
+
var K = Yn.exports, Ca = class {
|
|
683
682
|
constructor() {
|
|
684
683
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
685
684
|
}
|
|
@@ -11690,29 +11689,29 @@ export {
|
|
|
11690
11689
|
df as X,
|
|
11691
11690
|
gf as Y,
|
|
11692
11691
|
Rf as Z,
|
|
11693
|
-
|
|
11692
|
+
ef as _,
|
|
11694
11693
|
of as a,
|
|
11695
11694
|
wf as a0,
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11695
|
+
Wi as a1,
|
|
11696
|
+
Cn as a2,
|
|
11697
|
+
Jn as a3,
|
|
11698
|
+
ns as a4,
|
|
11699
|
+
ss as a5,
|
|
11700
|
+
ff as a6,
|
|
11701
|
+
fs as a7,
|
|
11702
|
+
Bi as a8,
|
|
11703
|
+
Jo as a9,
|
|
11704
|
+
vi as aa,
|
|
11705
|
+
tf as ab,
|
|
11706
|
+
Lf as ac,
|
|
11707
|
+
er as ad,
|
|
11709
11708
|
yf as ae,
|
|
11710
11709
|
Ui as af,
|
|
11711
11710
|
Pf as ag,
|
|
11712
11711
|
Af as ah,
|
|
11713
11712
|
kf as ai,
|
|
11714
11713
|
Pd as aj,
|
|
11715
|
-
|
|
11714
|
+
rf as ak,
|
|
11716
11715
|
hr as al,
|
|
11717
11716
|
Zn as b,
|
|
11718
11717
|
lf as c,
|
package/lib/zudoku.components.js
CHANGED
|
@@ -2,10 +2,10 @@ var pt = Object.defineProperty;
|
|
|
2
2
|
var we = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var C = (t, e, n) =>
|
|
7
|
-
var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
8
|
-
var
|
|
5
|
+
var mt = (t, e, n) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var C = (t, e, n) => mt(t, typeof e != "symbol" ? e + "" : e, n), je = (t, e, n) => e.has(t) || we("Cannot " + n);
|
|
7
|
+
var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)), M = (t, e, n) => e.has(t) ? we("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (je(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
8
|
+
var Y = (t, e, n, r) => ({
|
|
9
9
|
set _(s) {
|
|
10
10
|
P(t, e, s, n);
|
|
11
11
|
},
|
|
@@ -13,20 +13,20 @@ var X = (t, e, n, r) => ({
|
|
|
13
13
|
return o(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as We, h as Ue, Q as
|
|
17
|
-
import {
|
|
18
|
-
import * as
|
|
19
|
-
import
|
|
16
|
+
import { S as We, h as Ue, Q as vt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Mt, E as be, F as pe, G as Ge, H as Tt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t } from "./util-CnHdxZvn.js";
|
|
17
|
+
import { a2 as Gn, a1 as $n } from "./util-CnHdxZvn.js";
|
|
18
|
+
import * as T from "react";
|
|
19
|
+
import X, { memo as $e, createContext as Xt, useEffect as B, useRef as re, useState as Yt, forwardRef as Jt, Suspense as Xe, useMemo as te } from "react";
|
|
20
20
|
var L, Ke, Zt = (Ke = class extends We {
|
|
21
21
|
constructor(e = {}) {
|
|
22
22
|
super();
|
|
23
|
-
|
|
23
|
+
M(this, L);
|
|
24
24
|
this.config = e, P(this, L, /* @__PURE__ */ new Map());
|
|
25
25
|
}
|
|
26
26
|
build(e, n, r) {
|
|
27
27
|
const s = n.queryKey, i = n.queryHash ?? Ue(s, n);
|
|
28
28
|
let c = this.get(i);
|
|
29
|
-
return c || (c = new
|
|
29
|
+
return c || (c = new vt({
|
|
30
30
|
cache: this,
|
|
31
31
|
queryKey: s,
|
|
32
32
|
queryHash: i,
|
|
@@ -92,14 +92,14 @@ var L, Ke, Zt = (Ke = class extends We {
|
|
|
92
92
|
}, L = new WeakMap(), Ke), R, G, Be, en = (Be = class extends We {
|
|
93
93
|
constructor(e = {}) {
|
|
94
94
|
super();
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
M(this, R);
|
|
96
|
+
M(this, G);
|
|
97
97
|
this.config = e, P(this, R, /* @__PURE__ */ new Map()), P(this, G, Date.now());
|
|
98
98
|
}
|
|
99
99
|
build(e, n, r) {
|
|
100
100
|
const s = new gt({
|
|
101
101
|
mutationCache: this,
|
|
102
|
-
mutationId: ++
|
|
102
|
+
mutationId: ++Y(this, G)._,
|
|
103
103
|
options: e.defaultMutationOptions(n),
|
|
104
104
|
state: r
|
|
105
105
|
});
|
|
@@ -172,7 +172,7 @@ function tn(t) {
|
|
|
172
172
|
onFetch: (e, n) => {
|
|
173
173
|
const r = async () => {
|
|
174
174
|
var x, y, b, A, E;
|
|
175
|
-
const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [],
|
|
175
|
+
const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [], v = ((E = e.state.data) == null ? void 0 : E.pageParams) || [], _ = { pages: [], pageParams: [] };
|
|
176
176
|
let g = !1;
|
|
177
177
|
const l = (h) => {
|
|
178
178
|
Object.defineProperty(h, "signal", {
|
|
@@ -186,15 +186,15 @@ function tn(t) {
|
|
|
186
186
|
return Promise.reject();
|
|
187
187
|
if (u == null && h.pages.length)
|
|
188
188
|
return Promise.resolve(h);
|
|
189
|
-
const
|
|
189
|
+
const m = {
|
|
190
190
|
queryKey: e.queryKey,
|
|
191
191
|
pageParam: u,
|
|
192
192
|
direction: S ? "backward" : "forward",
|
|
193
193
|
meta: e.options.meta
|
|
194
194
|
};
|
|
195
|
-
l(
|
|
195
|
+
l(m);
|
|
196
196
|
const w = await d(
|
|
197
|
-
|
|
197
|
+
m
|
|
198
198
|
), { maxPages: N } = e.options, j = S ? xt : bt;
|
|
199
199
|
return {
|
|
200
200
|
pages: j(h.pages, w, N),
|
|
@@ -203,19 +203,19 @@ function tn(t) {
|
|
|
203
203
|
};
|
|
204
204
|
let p;
|
|
205
205
|
if (i && c.length) {
|
|
206
|
-
const h = i === "backward", u = h ? nn :
|
|
206
|
+
const h = i === "backward", u = h ? nn : Me, S = {
|
|
207
207
|
pages: c,
|
|
208
|
-
pageParams:
|
|
209
|
-
},
|
|
210
|
-
p = await f(S,
|
|
208
|
+
pageParams: v
|
|
209
|
+
}, m = u(s, S);
|
|
210
|
+
p = await f(S, m, h);
|
|
211
211
|
} else {
|
|
212
212
|
p = await f(
|
|
213
213
|
_,
|
|
214
|
-
|
|
214
|
+
v[0] ?? s.initialPageParam
|
|
215
215
|
);
|
|
216
216
|
const h = t ?? c.length;
|
|
217
217
|
for (let u = 1; u < h; u++) {
|
|
218
|
-
const S =
|
|
218
|
+
const S = Me(s, p);
|
|
219
219
|
p = await f(p, S);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -237,7 +237,7 @@ function tn(t) {
|
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Me(t, { pages: e, pageParams: n }) {
|
|
241
241
|
const r = e.length - 1;
|
|
242
242
|
return t.getNextPageParam(
|
|
243
243
|
e[r],
|
|
@@ -258,18 +258,18 @@ function nn(t, { pages: e, pageParams: n }) {
|
|
|
258
258
|
}
|
|
259
259
|
var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
260
260
|
constructor(t = {}) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
M(this, O);
|
|
262
|
+
M(this, k);
|
|
263
|
+
M(this, q);
|
|
264
|
+
M(this, V);
|
|
265
|
+
M(this, F);
|
|
266
|
+
M(this, Q);
|
|
267
|
+
M(this, H);
|
|
268
|
+
M(this, K);
|
|
269
269
|
P(this, O, t.queryCache || new Zt()), P(this, k, t.mutationCache || new en()), P(this, q, t.defaultOptions || {}), P(this, V, /* @__PURE__ */ new Map()), P(this, F, /* @__PURE__ */ new Map()), P(this, Q, 0);
|
|
270
270
|
}
|
|
271
271
|
mount() {
|
|
272
|
-
|
|
272
|
+
Y(this, Q)._++, o(this, Q) === 1 && (P(this, H, St.subscribe(async (t) => {
|
|
273
273
|
t && (await this.resumePausedMutations(), o(this, O).onFocus());
|
|
274
274
|
})), P(this, K, Ae.subscribe(async (t) => {
|
|
275
275
|
t && (await this.resumePausedMutations(), o(this, O).onOnline());
|
|
@@ -277,7 +277,7 @@ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
|
277
277
|
}
|
|
278
278
|
unmount() {
|
|
279
279
|
var t, e;
|
|
280
|
-
|
|
280
|
+
Y(this, Q)._--, o(this, Q) === 0 && ((t = o(this, H)) == null || t.call(this), P(this, H, void 0), (e = o(this, K)) == null || e.call(this), P(this, K, void 0));
|
|
281
281
|
}
|
|
282
282
|
isFetching(t) {
|
|
283
283
|
return o(this, O).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -457,7 +457,7 @@ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
|
|
|
457
457
|
o(this, O).clear(), o(this, k).clear();
|
|
458
458
|
}
|
|
459
459
|
}, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze), sn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
460
|
-
const
|
|
460
|
+
const Te = (t) => {
|
|
461
461
|
let e;
|
|
462
462
|
const n = /* @__PURE__ */ new Set(), r = (l, d) => {
|
|
463
463
|
const f = typeof l == "function" ? l(e) : l;
|
|
@@ -471,8 +471,8 @@ const Me = (t) => {
|
|
|
471
471
|
), n.clear();
|
|
472
472
|
} }, g = e = t(r, s, _);
|
|
473
473
|
return _;
|
|
474
|
-
}, an = (t) => t ?
|
|
475
|
-
var
|
|
474
|
+
}, an = (t) => t ? Te(t) : Te;
|
|
475
|
+
var me = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
|
|
476
476
|
/**
|
|
477
477
|
* @license React
|
|
478
478
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -486,12 +486,12 @@ var Le;
|
|
|
486
486
|
function on() {
|
|
487
487
|
if (Le) return ue;
|
|
488
488
|
Le = 1;
|
|
489
|
-
var t =
|
|
489
|
+
var t = X;
|
|
490
490
|
function e(d, f) {
|
|
491
491
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
492
492
|
}
|
|
493
493
|
var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, i = t.useLayoutEffect, c = t.useDebugValue;
|
|
494
|
-
function
|
|
494
|
+
function v(d, f) {
|
|
495
495
|
var p = f(), x = r({ inst: { value: p, getSnapshot: f } }), y = x[0].inst, b = x[1];
|
|
496
496
|
return i(function() {
|
|
497
497
|
y.value = p, y.getSnapshot = f, _(y) && b({ inst: y });
|
|
@@ -514,7 +514,7 @@ function on() {
|
|
|
514
514
|
function g(d, f) {
|
|
515
515
|
return f();
|
|
516
516
|
}
|
|
517
|
-
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g :
|
|
517
|
+
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : v;
|
|
518
518
|
return ue.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, ue;
|
|
519
519
|
}
|
|
520
520
|
var de = {};
|
|
@@ -531,17 +531,17 @@ var Ie;
|
|
|
531
531
|
function cn() {
|
|
532
532
|
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
533
533
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
534
|
-
var t =
|
|
534
|
+
var t = X, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
535
535
|
function n(h) {
|
|
536
536
|
{
|
|
537
|
-
for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0),
|
|
538
|
-
S[
|
|
537
|
+
for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
|
|
538
|
+
S[m - 1] = arguments[m];
|
|
539
539
|
r("error", h, S);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function r(h, u, S) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
544
|
+
var m = e.ReactDebugCurrentFrame, w = m.getStackAddendum();
|
|
545
545
|
w !== "" && (u += "%s", S = S.concat([w]));
|
|
546
546
|
var N = S.map(function(j) {
|
|
547
547
|
return String(j);
|
|
@@ -552,25 +552,25 @@ function cn() {
|
|
|
552
552
|
function s(h, u) {
|
|
553
553
|
return h === u && (h !== 0 || 1 / h === 1 / u) || h !== h && u !== u;
|
|
554
554
|
}
|
|
555
|
-
var i = typeof Object.is == "function" ? Object.is : s, c = t.useState,
|
|
555
|
+
var i = typeof Object.is == "function" ? Object.is : s, c = t.useState, v = t.useEffect, _ = t.useLayoutEffect, g = t.useDebugValue, l = !1, d = !1;
|
|
556
556
|
function f(h, u, S) {
|
|
557
557
|
l || t.startTransition !== void 0 && (l = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
558
|
-
var
|
|
558
|
+
var m = u();
|
|
559
559
|
if (!d) {
|
|
560
560
|
var w = u();
|
|
561
|
-
i(
|
|
561
|
+
i(m, w) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
|
|
562
562
|
}
|
|
563
563
|
var N = c({
|
|
564
564
|
inst: {
|
|
565
|
-
value:
|
|
565
|
+
value: m,
|
|
566
566
|
getSnapshot: u
|
|
567
567
|
}
|
|
568
568
|
}), j = N[0].inst, W = N[1];
|
|
569
569
|
return _(function() {
|
|
570
|
-
j.value =
|
|
570
|
+
j.value = m, j.getSnapshot = u, p(j) && W({
|
|
571
571
|
inst: j
|
|
572
572
|
});
|
|
573
|
-
}, [h,
|
|
573
|
+
}, [h, m, u]), v(function() {
|
|
574
574
|
p(j) && W({
|
|
575
575
|
inst: j
|
|
576
576
|
});
|
|
@@ -580,13 +580,13 @@ function cn() {
|
|
|
580
580
|
});
|
|
581
581
|
};
|
|
582
582
|
return h(se);
|
|
583
|
-
}, [h]), g(
|
|
583
|
+
}, [h]), g(m), m;
|
|
584
584
|
}
|
|
585
585
|
function p(h) {
|
|
586
586
|
var u = h.getSnapshot, S = h.value;
|
|
587
587
|
try {
|
|
588
|
-
var
|
|
589
|
-
return !i(S,
|
|
588
|
+
var m = u();
|
|
589
|
+
return !i(S, m);
|
|
590
590
|
} catch {
|
|
591
591
|
return !0;
|
|
592
592
|
}
|
|
@@ -599,7 +599,7 @@ function cn() {
|
|
|
599
599
|
}()), de;
|
|
600
600
|
}
|
|
601
601
|
var ke;
|
|
602
|
-
function
|
|
602
|
+
function Ye() {
|
|
603
603
|
return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports = on() : Z.exports = cn()), Z.exports;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
@@ -615,29 +615,29 @@ var qe;
|
|
|
615
615
|
function ln() {
|
|
616
616
|
if (qe) return le;
|
|
617
617
|
qe = 1;
|
|
618
|
-
var t =
|
|
618
|
+
var t = X, e = Ye();
|
|
619
619
|
function n(g, l) {
|
|
620
620
|
return g === l && (g !== 0 || 1 / g === 1 / l) || g !== g && l !== l;
|
|
621
621
|
}
|
|
622
|
-
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect,
|
|
622
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
|
|
623
623
|
return le.useSyncExternalStoreWithSelector = function(g, l, d, f, p) {
|
|
624
624
|
var x = i(null);
|
|
625
625
|
if (x.current === null) {
|
|
626
626
|
var y = { hasValue: !1, value: null };
|
|
627
627
|
x.current = y;
|
|
628
628
|
} else y = x.current;
|
|
629
|
-
x =
|
|
630
|
-
function A(
|
|
629
|
+
x = v(function() {
|
|
630
|
+
function A(m) {
|
|
631
631
|
if (!E) {
|
|
632
|
-
if (E = !0, h =
|
|
632
|
+
if (E = !0, h = m, m = f(m), p !== void 0 && y.hasValue) {
|
|
633
633
|
var w = y.value;
|
|
634
|
-
if (p(w,
|
|
634
|
+
if (p(w, m)) return u = w;
|
|
635
635
|
}
|
|
636
|
-
return u =
|
|
636
|
+
return u = m;
|
|
637
637
|
}
|
|
638
|
-
if (w = u, r(h,
|
|
639
|
-
var N = f(
|
|
640
|
-
return p !== void 0 && p(w, N) ? w : (h =
|
|
638
|
+
if (w = u, r(h, m)) return w;
|
|
639
|
+
var N = f(m);
|
|
640
|
+
return p !== void 0 && p(w, N) ? w : (h = m, u = N);
|
|
641
641
|
}
|
|
642
642
|
var E = !1, h, u, S = d === void 0 ? null : d;
|
|
643
643
|
return [function() {
|
|
@@ -666,21 +666,21 @@ var Qe;
|
|
|
666
666
|
function un() {
|
|
667
667
|
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
668
668
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
669
|
-
var t =
|
|
669
|
+
var t = X, e = Ye();
|
|
670
670
|
function n(l, d) {
|
|
671
671
|
return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
|
|
672
672
|
}
|
|
673
|
-
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect,
|
|
673
|
+
var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
|
|
674
674
|
function g(l, d, f, p, x) {
|
|
675
675
|
var y = i(null), b;
|
|
676
676
|
y.current === null ? (b = {
|
|
677
677
|
hasValue: !1,
|
|
678
678
|
value: null
|
|
679
679
|
}, y.current = b) : b = y.current;
|
|
680
|
-
var A =
|
|
681
|
-
var S = !1,
|
|
680
|
+
var A = v(function() {
|
|
681
|
+
var S = !1, m, w, N = function(U) {
|
|
682
682
|
if (!S) {
|
|
683
|
-
S = !0,
|
|
683
|
+
S = !0, m = U;
|
|
684
684
|
var ae = p(U);
|
|
685
685
|
if (x !== void 0 && b.hasValue) {
|
|
686
686
|
var ie = b.value;
|
|
@@ -689,11 +689,11 @@ function un() {
|
|
|
689
689
|
}
|
|
690
690
|
return w = ae, ae;
|
|
691
691
|
}
|
|
692
|
-
var ft =
|
|
692
|
+
var ft = m, oe = w;
|
|
693
693
|
if (r(ft, U))
|
|
694
694
|
return oe;
|
|
695
695
|
var ce = p(U);
|
|
696
|
-
return x !== void 0 && x(oe, ce) ? oe : (
|
|
696
|
+
return x !== void 0 && x(oe, ce) ? oe : (m = U, w = ce, ce);
|
|
697
697
|
}, j = f === void 0 ? null : f, W = function() {
|
|
698
698
|
return N(d());
|
|
699
699
|
}, se = j === null ? void 0 : function() {
|
|
@@ -708,14 +708,14 @@ function un() {
|
|
|
708
708
|
he.useSyncExternalStoreWithSelector = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
709
709
|
}()), he;
|
|
710
710
|
}
|
|
711
|
-
process.env.NODE_ENV === "production" ?
|
|
712
|
-
var dn =
|
|
711
|
+
process.env.NODE_ENV === "production" ? me.exports = ln() : me.exports = un();
|
|
712
|
+
var dn = me.exports;
|
|
713
713
|
const hn = /* @__PURE__ */ Et(dn);
|
|
714
714
|
var Je = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
715
|
-
const { useDebugValue: fn } =
|
|
715
|
+
const { useDebugValue: fn } = X, { useSyncExternalStoreWithSelector: pn } = hn;
|
|
716
716
|
let Ve = !1;
|
|
717
|
-
const
|
|
718
|
-
function
|
|
717
|
+
const mn = (t) => t;
|
|
718
|
+
function vn(t, e = mn, n) {
|
|
719
719
|
(Je ? "production" : void 0) !== "production" && n && !Ve && (console.warn(
|
|
720
720
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
721
721
|
), Ve = !0);
|
|
@@ -732,9 +732,9 @@ const Fe = (t) => {
|
|
|
732
732
|
(Je ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
733
733
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
734
734
|
);
|
|
735
|
-
const e = typeof t == "function" ? an(t) : t, n = (r, s) =>
|
|
735
|
+
const e = typeof t == "function" ? an(t) : t, n = (r, s) => vn(e, r, s);
|
|
736
736
|
return Object.assign(n, e), n;
|
|
737
|
-
}, gn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yn = (t) => "initialize" in t && typeof t.initialize == "function", xn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new rn(),
|
|
737
|
+
}, gn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yn = (t) => "initialize" in t && typeof t.initialize == "function", xn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new rn(), ve = gn(
|
|
738
738
|
() => ({
|
|
739
739
|
isLoggedIn: !1
|
|
740
740
|
})
|
|
@@ -751,7 +751,7 @@ class bn {
|
|
|
751
751
|
var e;
|
|
752
752
|
this.plugins.filter(yn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
|
|
753
753
|
});
|
|
754
|
-
C(this, "setUserProfile", async (e) =>
|
|
754
|
+
C(this, "setUserProfile", async (e) => ve.setState(e));
|
|
755
755
|
C(this, "invalidateCache", async (e) => {
|
|
756
756
|
et.invalidateQueries({ queryKey: e });
|
|
757
757
|
});
|
|
@@ -786,7 +786,7 @@ class bn {
|
|
|
786
786
|
},
|
|
787
787
|
set: async (e, n) => localStorage.setItem(`session-${e}`, n)
|
|
788
788
|
});
|
|
789
|
-
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ze), this.authentication = e.authentication, this.meta = e.meta, this.state =
|
|
789
|
+
this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ze), this.authentication = e.authentication, this.meta = e.meta, this.state = ve;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
/**
|
|
@@ -860,7 +860,7 @@ const En = $("Sun", [
|
|
|
860
860
|
}
|
|
861
861
|
) }, e.label)) }) });
|
|
862
862
|
}, nt = $e(() => {
|
|
863
|
-
const [t, e] = jt(), { isLoggedIn: n, email: r } =
|
|
863
|
+
const [t, e] = jt(), { isLoggedIn: n, email: r } = ve(), { login: s, logout: i, meta: c } = ge(), v = t ? On : En;
|
|
864
864
|
return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
|
|
865
865
|
/* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
|
|
866
866
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
@@ -899,7 +899,7 @@ const En = $("Sun", [
|
|
|
899
899
|
{
|
|
900
900
|
className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
|
|
901
901
|
onClick: e,
|
|
902
|
-
children: /* @__PURE__ */ a.jsx(
|
|
902
|
+
children: /* @__PURE__ */ a.jsx(v, { size: 18 })
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
] })
|
|
@@ -909,7 +909,7 @@ const En = $("Sun", [
|
|
|
909
909
|
] }) });
|
|
910
910
|
}), rt = {
|
|
911
911
|
Header: nt
|
|
912
|
-
}, jn =
|
|
912
|
+
}, jn = Xt(rt), Cn = jn.Provider, Pn = () => {
|
|
913
913
|
const t = z(), { setActiveAnchor: e } = ye();
|
|
914
914
|
B(() => {
|
|
915
915
|
if (!t.hash) return;
|
|
@@ -921,8 +921,8 @@ const En = $("Sun", [
|
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
923
|
const s = new MutationObserver((i, c) => {
|
|
924
|
-
const
|
|
925
|
-
|
|
924
|
+
const v = document.getElementById(decodeURIComponent(n));
|
|
925
|
+
v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), c.disconnect());
|
|
926
926
|
});
|
|
927
927
|
return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
|
|
928
928
|
}, [t.hash, e]);
|
|
@@ -932,7 +932,7 @@ const En = $("Sun", [
|
|
|
932
932
|
e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
|
|
933
933
|
}, [t.pathname]);
|
|
934
934
|
};
|
|
935
|
-
var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st =
|
|
935
|
+
var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = T.forwardRef(
|
|
936
936
|
(t, e) => {
|
|
937
937
|
const {
|
|
938
938
|
__scopeCollapsible: n,
|
|
@@ -940,7 +940,7 @@ var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = M.forwardRef(
|
|
|
940
940
|
defaultOpen: s,
|
|
941
941
|
disabled: i,
|
|
942
942
|
onOpenChange: c,
|
|
943
|
-
...
|
|
943
|
+
...v
|
|
944
944
|
} = t, [_ = !1, g] = Pt({
|
|
945
945
|
prop: r,
|
|
946
946
|
defaultProp: s,
|
|
@@ -953,13 +953,13 @@ var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = M.forwardRef(
|
|
|
953
953
|
disabled: i,
|
|
954
954
|
contentId: At(),
|
|
955
955
|
open: _,
|
|
956
|
-
onOpenToggle:
|
|
956
|
+
onOpenToggle: T.useCallback(() => g((l) => !l), [g]),
|
|
957
957
|
children: /* @__PURE__ */ a.jsx(
|
|
958
958
|
xe.div,
|
|
959
959
|
{
|
|
960
960
|
"data-state": Ee(_),
|
|
961
961
|
"data-disabled": i ? "" : void 0,
|
|
962
|
-
...
|
|
962
|
+
...v,
|
|
963
963
|
ref: e
|
|
964
964
|
}
|
|
965
965
|
)
|
|
@@ -968,7 +968,7 @@ var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = M.forwardRef(
|
|
|
968
968
|
}
|
|
969
969
|
);
|
|
970
970
|
st.displayName = Se;
|
|
971
|
-
var at = "CollapsibleTrigger", it =
|
|
971
|
+
var at = "CollapsibleTrigger", it = T.forwardRef(
|
|
972
972
|
(t, e) => {
|
|
973
973
|
const { __scopeCollapsible: n, ...r } = t, s = Oe(at, n);
|
|
974
974
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -988,19 +988,19 @@ var at = "CollapsibleTrigger", it = M.forwardRef(
|
|
|
988
988
|
}
|
|
989
989
|
);
|
|
990
990
|
it.displayName = at;
|
|
991
|
-
var _e = "CollapsibleContent", ot =
|
|
991
|
+
var _e = "CollapsibleContent", ot = T.forwardRef(
|
|
992
992
|
(t, e) => {
|
|
993
993
|
const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
|
|
994
994
|
return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Dn, { ...r, ref: e, present: i }) });
|
|
995
995
|
}
|
|
996
996
|
);
|
|
997
997
|
ot.displayName = _e;
|
|
998
|
-
var Dn =
|
|
999
|
-
const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [
|
|
1000
|
-
return
|
|
998
|
+
var Dn = T.forwardRef((t, e) => {
|
|
999
|
+
const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [v, _] = T.useState(r), g = T.useRef(null), l = Dt(e, g), d = T.useRef(0), f = d.current, p = T.useRef(0), x = p.current, y = c.open || v, b = T.useRef(y), A = T.useRef();
|
|
1000
|
+
return T.useEffect(() => {
|
|
1001
1001
|
const E = requestAnimationFrame(() => b.current = !1);
|
|
1002
1002
|
return () => cancelAnimationFrame(E);
|
|
1003
|
-
}, []),
|
|
1003
|
+
}, []), Mt(() => {
|
|
1004
1004
|
const E = g.current;
|
|
1005
1005
|
if (E) {
|
|
1006
1006
|
A.current = A.current || {
|
|
@@ -1032,15 +1032,15 @@ function Ee(t) {
|
|
|
1032
1032
|
return t ? "open" : "closed";
|
|
1033
1033
|
}
|
|
1034
1034
|
var ct = st, lt = it, ut = ot;
|
|
1035
|
-
function
|
|
1035
|
+
function Mn(t) {
|
|
1036
1036
|
return !0;
|
|
1037
1037
|
}
|
|
1038
|
-
const
|
|
1038
|
+
const Tn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
1039
1039
|
item: t,
|
|
1040
1040
|
defaultOpen: e,
|
|
1041
1041
|
path: n
|
|
1042
1042
|
}) => {
|
|
1043
|
-
const [r, s] =
|
|
1043
|
+
const [r, s] = Yt(e), i = z(), c = re(i.pathname);
|
|
1044
1044
|
return B(() => {
|
|
1045
1045
|
!r && c.current !== i.pathname && s(be(t, i.pathname, n)), c.current = i.pathname;
|
|
1046
1046
|
}, [r, t, n, i.pathname]), [r, s];
|
|
@@ -1065,12 +1065,12 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1065
1065
|
currentTopNavItem: r,
|
|
1066
1066
|
basePath: s = ""
|
|
1067
1067
|
}) => {
|
|
1068
|
-
const i = pe(e) ? Ge(s, e.path) : "", c = z(), [
|
|
1068
|
+
const i = pe(e) ? Ge(s, e.path) : "", c = z(), [v, _] = dt({
|
|
1069
1069
|
item: e,
|
|
1070
1070
|
path: i,
|
|
1071
1071
|
defaultOpen: () => be(e, c.pathname, i)
|
|
1072
1072
|
});
|
|
1073
|
-
if (
|
|
1073
|
+
if (Tt(e)) {
|
|
1074
1074
|
const l = ne(
|
|
1075
1075
|
"flex items-center gap-2",
|
|
1076
1076
|
ee({
|
|
@@ -1093,7 +1093,7 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1093
1093
|
}
|
|
1094
1094
|
const g = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
|
|
1095
1095
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
|
|
1096
|
-
|
|
1096
|
+
Mn(e.icon) && /* @__PURE__ */ a.jsx(Tn, { name: e.icon, size: 16 }),
|
|
1097
1097
|
typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
|
|
1098
1098
|
] }),
|
|
1099
1099
|
e.children && /* @__PURE__ */ a.jsx(
|
|
@@ -1107,7 +1107,7 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1107
1107
|
return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
|
|
1108
1108
|
ct,
|
|
1109
1109
|
{
|
|
1110
|
-
open:
|
|
1110
|
+
open: v,
|
|
1111
1111
|
onOpenChange: () => _((l) => !l),
|
|
1112
1112
|
className: "flex flex-col",
|
|
1113
1113
|
children: [
|
|
@@ -1165,7 +1165,7 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1165
1165
|
ct,
|
|
1166
1166
|
{
|
|
1167
1167
|
open: i,
|
|
1168
|
-
onOpenChange: () => c((
|
|
1168
|
+
onOpenChange: () => c((v) => !v),
|
|
1169
1169
|
children: [
|
|
1170
1170
|
t.label.length > 0 ? /* @__PURE__ */ a.jsx(lt, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
|
|
1171
1171
|
"h5",
|
|
@@ -1186,16 +1186,16 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1186
1186
|
]
|
|
1187
1187
|
}
|
|
1188
1188
|
) }) : "Endpoints",
|
|
1189
|
-
/* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((
|
|
1189
|
+
/* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ a.jsx(
|
|
1190
1190
|
ht,
|
|
1191
1191
|
{
|
|
1192
1192
|
category: t,
|
|
1193
|
-
item:
|
|
1193
|
+
item: v,
|
|
1194
1194
|
activeAnchor: e,
|
|
1195
1195
|
currentTopNavItem: n,
|
|
1196
1196
|
basePath: Ge(n == null ? void 0 : n.path, t.path)
|
|
1197
1197
|
},
|
|
1198
|
-
pe(
|
|
1198
|
+
pe(v) ? v.path + v.label : v.href
|
|
1199
1199
|
)) }) })
|
|
1200
1200
|
]
|
|
1201
1201
|
},
|
|
@@ -1237,7 +1237,7 @@ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
|
|
|
1237
1237
|
(r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
|
|
1238
1238
|
] }),
|
|
1239
1239
|
/* @__PURE__ */ a.jsx(nt, {}),
|
|
1240
|
-
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(
|
|
1240
|
+
/* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(Xe, { fallback: /* @__PURE__ */ a.jsx("div", {}), children: [
|
|
1241
1241
|
/* @__PURE__ */ a.jsx(qn, {}),
|
|
1242
1242
|
/* @__PURE__ */ a.jsx(
|
|
1243
1243
|
"main",
|
|
@@ -1279,7 +1279,7 @@ const Vn = (t) => {
|
|
|
1279
1279
|
return B(() => {
|
|
1280
1280
|
r.initialize();
|
|
1281
1281
|
}, [r]), /* @__PURE__ */ a.jsx(Bt, { client: et, children: /* @__PURE__ */ a.jsx(zt, { children: /* @__PURE__ */ a.jsx(Wt, { value: r, children: /* @__PURE__ */ a.jsx(Ut, { components: n, children: /* @__PURE__ */ a.jsx(Gt, { children: /* @__PURE__ */ a.jsx(Cn, { value: e, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(
|
|
1282
|
-
|
|
1282
|
+
Xe,
|
|
1283
1283
|
{
|
|
1284
1284
|
fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
|
|
1285
1285
|
children: /* @__PURE__ */ a.jsx(Qn, { plugins: t.plugins })
|
|
@@ -1289,6 +1289,7 @@ const Vn = (t) => {
|
|
|
1289
1289
|
Fn.displayName = "DevPortal";
|
|
1290
1290
|
export {
|
|
1291
1291
|
Fn as DevPortal,
|
|
1292
|
-
|
|
1293
|
-
Gn as Link
|
|
1292
|
+
Tn as DynamicIcon,
|
|
1293
|
+
Gn as Link,
|
|
1294
|
+
$n as useMDXComponents
|
|
1294
1295
|
};
|
package/lib/zudoku.plugins.js
CHANGED
|
@@ -3,7 +3,7 @@ var Oo = (e) => {
|
|
|
3
3
|
};
|
|
4
4
|
var ii = (e, n, t) => n.has(e) || Oo("Cannot " + t);
|
|
5
5
|
var be = (e, n, t) => (ii(e, n, "read from private field"), t ? t.call(e) : n.get(e)), Zt = (e, n, t) => n.has(e) ? Oo("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t), en = (e, n, t, r) => (ii(e, n, "write to private field"), r ? r.call(e, t) : n.set(e, t), t), tn = (e, n, t) => (ii(e, n, "access private method"), t);
|
|
6
|
-
import { S as qf,
|
|
6
|
+
import { S as qf, a3 as zf, i as jo, a4 as Bf, n as Nl, a5 as Pl, a6 as Uf, a7 as Vf, k as St, l as y, I as le, K as Hf, a8 as Dn, u as $l, a9 as Wf, a2 as Sr, aa as Kf, q as Gf, ab as Vt, j as Ra, W as Jf, w as Qf, J as Yf, L as Fl, v as Xf, ac as ea, F as ta, R as Zf, ad as Kt, a1 as ed, ae as Rl, t as td, af as xn, C as wt, P as He, A as Re, ag as nd, D as rd, x as Vr, B as Hr, ah as id, y as Ia, z as Pn, ai as ad, aj as Wr, ak as od, al as sd, T as ld } from "./util-CnHdxZvn.js";
|
|
7
7
|
import * as P from "react";
|
|
8
8
|
import Q, { useState as Qt, useRef as Il, useEffect as _a, useMemo as _l, forwardRef as ud, Fragment as cr, createContext as cd, useContext as fd } from "react";
|
|
9
9
|
import dd from "react-dom";
|
|
@@ -13114,7 +13114,7 @@ const Yk = ni(
|
|
|
13114
13114
|
className: le("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", n),
|
|
13115
13115
|
children: e
|
|
13116
13116
|
}
|
|
13117
|
-
), Zk = (e) => typeof e == "object" && e !== null && !Array.isArray(e), zn = (e, n) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && Zk(e.examples) ? Object.values(e.examples)[0] : ew(e
|
|
13117
|
+
), Zk = (e) => typeof e == "object" && e !== null && !Array.isArray(e), zn = (e, n) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && Zk(e.examples) ? Object.values(e.examples)[0] : ew(e);
|
|
13118
13118
|
function ew(e, n) {
|
|
13119
13119
|
const t = Object.entries(e.properties ?? {}).concat(
|
|
13120
13120
|
Object.entries(e.additionalProperties ?? {})
|
|
@@ -13122,12 +13122,11 @@ function ew(e, n) {
|
|
|
13122
13122
|
if (e.type === "object" && t.length > 0) {
|
|
13123
13123
|
const r = {};
|
|
13124
13124
|
return t.forEach(([i, o]) => {
|
|
13125
|
-
const a = zn(o
|
|
13125
|
+
const a = zn(o);
|
|
13126
13126
|
a !== void 0 && (r[i] = a);
|
|
13127
13127
|
}), r;
|
|
13128
13128
|
} else if (e.type === "array" && e.items) {
|
|
13129
|
-
|
|
13130
|
-
const r = zn(e.items, n);
|
|
13129
|
+
const r = zn(e.items);
|
|
13131
13130
|
return r !== void 0 ? [r] : [];
|
|
13132
13131
|
}
|
|
13133
13132
|
}
|
|
@@ -17017,17 +17016,31 @@ const QC = (e, n) => {
|
|
|
17017
17016
|
) : [];
|
|
17018
17017
|
}
|
|
17019
17018
|
) }),
|
|
17020
|
-
/* @__PURE__ */ y.jsx(Kt, { level: 3, className: "capitalize", children: "
|
|
17019
|
+
/* @__PURE__ */ y.jsx(Kt, { level: 3, className: "capitalize", children: "Responses" }),
|
|
17021
17020
|
/* @__PURE__ */ y.jsxs(va, { defaultValue: `${r == null ? void 0 : r.statusCode}${r == null ? void 0 : r.description}`, children: [
|
|
17022
|
-
/* @__PURE__ */ y.jsx(Lr, { children: n.responses.map((i) => /* @__PURE__ */ y.jsxs(
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17021
|
+
/* @__PURE__ */ y.jsx(Lr, { children: n.responses.map((i) => /* @__PURE__ */ y.jsxs(
|
|
17022
|
+
qt,
|
|
17023
|
+
{
|
|
17024
|
+
value: i.statusCode + i.description,
|
|
17025
|
+
children: [
|
|
17026
|
+
i.description,
|
|
17027
|
+
" (",
|
|
17028
|
+
i.statusCode,
|
|
17029
|
+
")"
|
|
17030
|
+
]
|
|
17031
|
+
},
|
|
17032
|
+
i.statusCode
|
|
17033
|
+
)) }),
|
|
17028
17034
|
/* @__PURE__ */ y.jsx("ul", { className: "list-none m-0 px-0 overflow-hidden", children: n.responses.map((i) => {
|
|
17029
17035
|
var o, a;
|
|
17030
|
-
return /* @__PURE__ */ y.jsx(
|
|
17036
|
+
return /* @__PURE__ */ y.jsx(
|
|
17037
|
+
zt,
|
|
17038
|
+
{
|
|
17039
|
+
value: i.statusCode + i.description,
|
|
17040
|
+
children: /* @__PURE__ */ y.jsx(Fa, { schema: (a = (o = i.content) == null ? void 0 : o.at(0)) == null ? void 0 : a.schema, name: "" })
|
|
17041
|
+
},
|
|
17042
|
+
i.statusCode
|
|
17043
|
+
);
|
|
17031
17044
|
}) })
|
|
17032
17045
|
] })
|
|
17033
17046
|
] }),
|
|
@@ -17086,12 +17099,20 @@ const QC = (e, n) => {
|
|
|
17086
17099
|
),
|
|
17087
17100
|
u.enum && /* @__PURE__ */ y.jsxs("span", { className: "text-sm text-muted-foreground flex gap-1 flex-wrap items-center", children: [
|
|
17088
17101
|
/* @__PURE__ */ y.jsx("span", { children: "Possible values" }),
|
|
17089
|
-
u.enum.filter((f) => f).map((f) => /* @__PURE__ */ y.jsx(
|
|
17102
|
+
u.enum.filter((f) => f).map((f) => /* @__PURE__ */ y.jsx(
|
|
17103
|
+
"span",
|
|
17104
|
+
{
|
|
17105
|
+
className: "font-mono text-xs border-border border bg-muted rounded px-1",
|
|
17106
|
+
children: f
|
|
17107
|
+
},
|
|
17108
|
+
f
|
|
17109
|
+
))
|
|
17090
17110
|
] }),
|
|
17091
17111
|
u.type === "object" && /* @__PURE__ */ y.jsx("div", { className: "mt-2.5", children: /* @__PURE__ */ y.jsx(Fa, { schema: u, level: t + 1 }) }),
|
|
17092
17112
|
u.type === "array" && u.items.type === "object" && /* @__PURE__ */ y.jsx("div", { className: "mt-2.5", children: /* @__PURE__ */ y.jsx(Fa, { schema: u.items, level: t + 1 }) })
|
|
17093
17113
|
]
|
|
17094
|
-
}
|
|
17114
|
+
},
|
|
17115
|
+
l
|
|
17095
17116
|
);
|
|
17096
17117
|
}) })
|
|
17097
17118
|
]
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MDXProvider
|
|
1
|
+
import { MDXProvider } from "@mdx-js/react";
|
|
2
2
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
3
3
|
import { memo, Suspense, useEffect, useMemo } from "react";
|
|
4
4
|
import { type AuthProvider } from "../authentication/authentication.js";
|
|
@@ -93,4 +93,4 @@ const DevPortalInner = (props: DevPortalProps) => {
|
|
|
93
93
|
const DevPortal = memo(DevPortalInner);
|
|
94
94
|
DevPortal.displayName = "DevPortal";
|
|
95
95
|
|
|
96
|
-
export { DevPortal
|
|
96
|
+
export { DevPortal };
|
|
@@ -53,19 +53,25 @@ export const OperationListItem = ({
|
|
|
53
53
|
</div>
|
|
54
54
|
)}
|
|
55
55
|
<Heading level={3} className="capitalize">
|
|
56
|
-
|
|
56
|
+
Responses
|
|
57
57
|
</Heading>
|
|
58
58
|
<Tabs defaultValue={`${first?.statusCode}${first?.description}`}>
|
|
59
59
|
<TabsList>
|
|
60
60
|
{operation.responses.map((response) => (
|
|
61
|
-
<TabsTrigger
|
|
61
|
+
<TabsTrigger
|
|
62
|
+
value={response.statusCode + response.description}
|
|
63
|
+
key={response.statusCode}
|
|
64
|
+
>
|
|
62
65
|
{response.description} ({response.statusCode})
|
|
63
66
|
</TabsTrigger>
|
|
64
67
|
))}
|
|
65
68
|
</TabsList>
|
|
66
69
|
<ul className="list-none m-0 px-0 overflow-hidden">
|
|
67
70
|
{operation.responses.map((response) => (
|
|
68
|
-
<TabsContent
|
|
71
|
+
<TabsContent
|
|
72
|
+
value={response.statusCode + response.description}
|
|
73
|
+
key={response.statusCode}
|
|
74
|
+
>
|
|
69
75
|
<ViewSchema schema={response.content?.at(0)?.schema} name="" />
|
|
70
76
|
</TabsContent>
|
|
71
77
|
))}
|
|
@@ -121,6 +127,7 @@ const ViewSchema = ({
|
|
|
121
127
|
.concat(additionalProperties)
|
|
122
128
|
.map(([propertyName, property]) => (
|
|
123
129
|
<div
|
|
130
|
+
key={propertyName}
|
|
124
131
|
className={cn(
|
|
125
132
|
level > 0 ? "py-2" : "py-4",
|
|
126
133
|
"px-2 border-t border-border bg-border/20 hover:bg-border/30 flex gap-1 flex-col",
|
|
@@ -166,7 +173,10 @@ const ViewSchema = ({
|
|
|
166
173
|
{property.enum
|
|
167
174
|
.filter((value) => value)
|
|
168
175
|
.map((value) => (
|
|
169
|
-
<span
|
|
176
|
+
<span
|
|
177
|
+
key={value}
|
|
178
|
+
className="font-mono text-xs border-border border bg-muted rounded px-1"
|
|
179
|
+
>
|
|
170
180
|
{value}
|
|
171
181
|
</span>
|
|
172
182
|
))}
|
|
@@ -38,7 +38,6 @@ function processComplexTypes(schema: SchemaObject, name?: string): any {
|
|
|
38
38
|
});
|
|
39
39
|
return obj;
|
|
40
40
|
} else if (schema.type === "array" && schema.items) {
|
|
41
|
-
console.log(name, "array", schema.items, schema);
|
|
42
41
|
const value = generateSchemaExample(schema.items, name);
|
|
43
42
|
if (value !== undefined) {
|
|
44
43
|
return [value];
|