zudoku 0.4.2-dev.6 → 0.4.2-dev.8
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/lib/{CategoryHeading-D7_Jy0Lx.js → CategoryHeading-BoT0DVI-.js} +2 -2
- package/lib/{CategoryHeading-D7_Jy0Lx.js.map → CategoryHeading-BoT0DVI-.js.map} +1 -1
- package/lib/{Combination-Ce1nWgn5.js → Combination-C1wKWZ28.js} +2 -2
- package/lib/{Combination-Ce1nWgn5.js.map → Combination-C1wKWZ28.js.map} +1 -1
- package/lib/{DeveloperHint-BkVaBhYp.js → DeveloperHint-Bv958_pY.js} +2 -2
- package/lib/{DeveloperHint-BkVaBhYp.js.map → DeveloperHint-Bv958_pY.js.map} +1 -1
- package/lib/{ErrorPage-uwQIn-3A.js → ErrorPage-CcBjrY_g.js} +3 -3
- package/lib/{ErrorPage-uwQIn-3A.js.map → ErrorPage-CcBjrY_g.js.map} +1 -1
- package/lib/{Input-CBiLCRuK.js → Input-BqnnTL7-.js} +3 -3
- package/lib/{Input-CBiLCRuK.js.map → Input-BqnnTL7-.js.map} +1 -1
- package/lib/{Markdown-h11bKkQ9.js → Markdown-C3hatKS5.js} +1009 -1086
- package/lib/Markdown-C3hatKS5.js.map +1 -0
- package/lib/{MdxPage-ZBoR_Zce.js → MdxPage-BEG8cDoF.js} +3 -3
- package/lib/{MdxPage-ZBoR_Zce.js.map → MdxPage-BEG8cDoF.js.map} +1 -1
- package/lib/{OperationList-pmOTKxgd.js → OperationList-BEiJFfFr.js} +9 -9
- package/lib/{OperationList-pmOTKxgd.js.map → OperationList-BEiJFfFr.js.map} +1 -1
- package/lib/{Route-CS3AkrVN.js → Route-BvREOAN6.js} +2 -2
- package/lib/{Route-CS3AkrVN.js.map → Route-BvREOAN6.js.map} +1 -1
- package/lib/{SidebarBadge-djIXD1Pv.js → SidebarBadge-C6wpM9X3.js} +3 -3
- package/lib/{SidebarBadge-djIXD1Pv.js.map → SidebarBadge-C6wpM9X3.js.map} +1 -1
- package/lib/{SlotletProvider-B1N8zYvn.js → SlotletProvider-Bdzag6MN.js} +4 -4
- package/lib/{SlotletProvider-B1N8zYvn.js.map → SlotletProvider-Bdzag6MN.js.map} +1 -1
- package/lib/{Spinner-D4ifRVWf.js → Spinner-DiA314T5.js} +2 -2
- package/lib/{Spinner-D4ifRVWf.js.map → Spinner-DiA314T5.js.map} +1 -1
- package/lib/{index-DGUP_dsJ.js → index-ClDFRC39.js} +9 -9
- package/lib/{index-DGUP_dsJ.js.map → index-ClDFRC39.js.map} +1 -1
- package/lib/{index-CZAFD5xN.js → index-LWNs2niD.js} +3 -3
- package/lib/{index-CZAFD5xN.js.map → index-LWNs2niD.js.map} +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.components.js +6 -6
- package/lib/zudoku.plugin-api-keys.js +5 -5
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -4
- package/package.json +3 -3
- package/lib/Markdown-h11bKkQ9.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
import { createContext as j, useContext as w, useState as O, useEffect as k, Children as D } from "react";
|
|
3
|
-
import { a as M, o as L, n as F, P as b, d as q, u as B, r as G } from "./Combination-
|
|
4
|
-
import { P as $ } from "./SidebarBadge-
|
|
3
|
+
import { a as M, o as L, n as F, P as b, d as q, u as B, r as G } from "./Combination-C1wKWZ28.js";
|
|
4
|
+
import { P as $ } from "./SidebarBadge-C6wpM9X3.js";
|
|
5
5
|
import { j as c } from "./jsx-runtime-B6kdoens.js";
|
|
6
6
|
const H = j({ stagger: !1 }), X = ({ children: e }) => {
|
|
7
7
|
const { stagger: r } = w(H), [o, a] = O(!r);
|
|
@@ -121,4 +121,4 @@ export {
|
|
|
121
121
|
ee as T,
|
|
122
122
|
X as a
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=index-
|
|
124
|
+
//# sourceMappingURL=index-LWNs2niD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CZAFD5xN.js","sources":["../src/lib/plugins/openapi/StaggeredRender.tsx","../../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3._qjsk5diswkeszbepgt4ntypuku/node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["import {\n Children,\n createContext,\n ReactNode,\n useContext,\n useEffect,\n useState,\n} from \"react\";\n\nexport const StaggeredRenderContext = createContext({ stagger: false });\n\nconst StaggeredRender = ({ children }: { children: ReactNode[] }) => {\n const { stagger } = useContext(StaggeredRenderContext);\n const [renderAll, setRenderAll] = useState(!stagger);\n\n useEffect(() => {\n if (renderAll) {\n return;\n }\n\n const idle = requestIdleCallback(() => {\n setRenderAll(true);\n });\n\n return () => cancelIdleCallback(idle);\n }, [renderAll]);\n\n return !renderAll ? Children.toArray(children).slice(0, 3) : children;\n};\n\nexport default StaggeredRender;\n","\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["StaggeredRenderContext","createContext","StaggeredRender","children","stagger","useContext","renderAll","setRenderAll","useState","useEffect","idle","Children","COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root","Trigger","Content"],"mappings":";;;;;AASO,MAAMA,IAAyBC,EAAc,EAAE,SAAS,IAAO,GAEhEC,IAAkB,CAAC,EAAE,UAAAC,QAA0C;AACnE,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAWL,CAAsB,GAC/C,CAACM,GAAWC,CAAY,IAAIC,EAAS,CAACJ,CAAO;AAEnD,SAAAK,EAAU,MAAM;AACd,QAAIH;AACF;AAGI,UAAAI,IAAO,oBAAoB,MAAM;AACrC,MAAAH,EAAa,EAAI;AAAA,IAAA,CAClB;AAEM,WAAA,MAAM,mBAAmBG,CAAI;AAAA,EAAA,GACnC,CAACJ,CAAS,CAAC,GAENA,IAAqDH,IAAzCQ,EAAS,QAAQR,CAAQ,EAAE,MAAM,GAAG,CAAC;AAC3D;ACfA,IAAIS,IAAmB,eACnB,CAACC,GAA0BC,CAAsB,IAAIC,EAAmBH,CAAgB,GACxF,CAACI,GAAqBC,CAAqB,IAAIJ,EAAyBD,CAAgB,GACxFM,IAAcC,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM;AAAA,MACJ,oBAAAC;AAAA,MACA,MAAMC;AAAA,MACN,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,cAAAC;AAAA,MACA,GAAGC;AAAA,IACJ,IAAGP,GACE,CAACQ,IAAO,IAAOC,CAAO,IAAIC,EAAqB;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EAAK;AAClB,MAAAT,EAAU,UAAUU,EAAK,QACzBR,EAAS,UAAUQ,EAAK,OACnBL,EAA6B,YAChCI,EAAK,MAAM,qBAAqBH,EAAkB,QAAQ,oBAC1DG,EAAK,MAAM,gBAAgBH,EAAkB,QAAQ,gBAEvDV,EAAaH,CAAO;AAAA,IACrB;AAAA,EACF,GAAE,CAACP,EAAQ,MAAMO,CAAO,CAAC,GACHf,gBAAAA,EAAG;AAAA,IACxBG,EAAU;AAAA,IACV;AAAA,MACE,cAAcC,EAASI,EAAQ,IAAI;AAAA,MACnC,iBAAiBA,EAAQ,WAAW,KAAK;AAAA,MACzC,IAAIA,EAAQ;AAAA,MACZ,QAAQ,CAACkB;AAAA,MACT,GAAGb;AAAA,MACH,KAAKO;AAAA,MACL,OAAO;AAAA,QACJ,sCAAuCG,IAAS,GAAGA,CAAM,OAAO;AAAA,QAChE,qCAAsCE,IAAQ,GAAGA,CAAK,OAAO;AAAA,QAC9D,GAAGpC,EAAM;AAAA,MACV;AAAA,MACD,UAAUqC,KAAUtD;AAAA,IACrB;AAAA,EACL;AACA,CAAC;AACD,SAASgC,EAASP,GAAM;AACtB,SAAOA,IAAO,SAAS;AACzB;AACG,IAACoC,IAAO9C,GACP+C,KAAU5B,GACV6B,KAAUxB;","x_google_ignoreList":[1]}
|
|
1
|
+
{"version":3,"file":"index-LWNs2niD.js","sources":["../src/lib/plugins/openapi/StaggeredRender.tsx","../../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3._qjsk5diswkeszbepgt4ntypuku/node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["import {\n Children,\n createContext,\n ReactNode,\n useContext,\n useEffect,\n useState,\n} from \"react\";\n\nexport const StaggeredRenderContext = createContext({ stagger: false });\n\nconst StaggeredRender = ({ children }: { children: ReactNode[] }) => {\n const { stagger } = useContext(StaggeredRenderContext);\n const [renderAll, setRenderAll] = useState(!stagger);\n\n useEffect(() => {\n if (renderAll) {\n return;\n }\n\n const idle = requestIdleCallback(() => {\n setRenderAll(true);\n });\n\n return () => cancelIdleCallback(idle);\n }, [renderAll]);\n\n return !renderAll ? Children.toArray(children).slice(0, 3) : children;\n};\n\nexport default StaggeredRender;\n","\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["StaggeredRenderContext","createContext","StaggeredRender","children","stagger","useContext","renderAll","setRenderAll","useState","useEffect","idle","Children","COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","props","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","open","setOpen","useControllableState","jsx","useId","prevOpen","Primitive","getState","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","isPresent","setIsPresent","ref","composedRefs","useComposedRefs","heightRef","height","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","useLayoutEffect","node","rect","Root","Trigger","Content"],"mappings":";;;;;AASO,MAAMA,IAAyBC,EAAc,EAAE,SAAS,IAAO,GAEhEC,IAAkB,CAAC,EAAE,UAAAC,QAA0C;AACnE,Q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AAuCG,IAAS,GAAGA,CAAM,OAAO;AAAA,QAChE,qCAAsCE,IAAQ,GAAGA,CAAK,OAAO;AAAA,QAC9D,GAAGpC,EAAM;AAAA,MACV;AAAA,MACD,UAAUqC,KAAUtD;AAAA,IACrB;AAAA,EACL;AACA,CAAC;AACD,SAASgC,EAASP,GAAM;AACtB,SAAOA,IAAO,SAAS;AACzB;AACG,IAACoC,IAAO9C,GACP+C,KAAU5B,GACV6B,KAAUxB;","x_google_ignoreList":[1]}
|
|
@@ -5,10 +5,10 @@ import { j as E } from "./jsx-runtime-B6kdoens.js";
|
|
|
5
5
|
import { c as Ce, a as Ie } from "./_commonjsHelpers-BVfed4GL.js";
|
|
6
6
|
import { A as je } from "./AuthenticationPlugin-DYnkydqa.js";
|
|
7
7
|
import { useState as Je, useRef as Oe, useEffect as Ne } from "react";
|
|
8
|
-
import { D as ze } from "./DeveloperHint-
|
|
9
|
-
import { E as De } from "./ErrorPage-
|
|
10
|
-
import { S as Ke } from "./Spinner-
|
|
11
|
-
import { S as We } from "./Markdown-
|
|
8
|
+
import { D as ze } from "./DeveloperHint-Bv958_pY.js";
|
|
9
|
+
import { E as De } from "./ErrorPage-CcBjrY_g.js";
|
|
10
|
+
import { S as Ke } from "./Spinner-DiA314T5.js";
|
|
11
|
+
import { S as We } from "./Markdown-C3hatKS5.js";
|
|
12
12
|
import { e as He } from "./index-ChhUJhLT.js";
|
|
13
13
|
import { u as z } from "./state-DsXXkBLH.js";
|
|
14
14
|
var fe = { exports: {} };
|
package/lib/zudoku.components.js
CHANGED
|
@@ -15,19 +15,19 @@ var Ce = (e, t, n, r) => ({
|
|
|
15
15
|
});
|
|
16
16
|
import { H as jt, a as qe, M as lr, u as dr, A as hr, b as fr } from "./utils-BPHLKjns.js";
|
|
17
17
|
import { d as pr, a as mr, R as gr, N as je, L as Ge, u as vr, O as Rt, b as xr, c as He } from "./index-ChhUJhLT.js";
|
|
18
|
-
import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-
|
|
18
|
+
import { E as Et, S as se, a as yr, R as wr } from "./SlotletProvider-Bdzag6MN.js";
|
|
19
19
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
20
|
-
import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-
|
|
21
|
-
import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-
|
|
20
|
+
import { M as br, c as Mr, a as _t, b as Nt, A as Cr, u as ge, h as Sr, d as y, e as Pr, F as jr, D as Rr, C as Er, P as ce, f as Ue, g as _r, i as Dt, R as Nr, S as Dr, j as Ir, k as kr, l as It, m as Ar, n as Re, o as kt, p as ft, B as $e } from "./Combination-C1wKWZ28.js";
|
|
21
|
+
import { c as ue, a as b, C as Or, b as Tr, u as Fr, T as Lr, M as Kr, V as $r, d as ze, e as Br, f as Qr } from "./Markdown-C3hatKS5.js";
|
|
22
22
|
import * as c from "react";
|
|
23
23
|
import qr, { StrictMode as At, createContext as Ot, Component as Gr, createElement as pt, isValidElement as Hr, useState as ie, useCallback as Tt, useEffect as z, Suspense as Ft, memo as Lt, useMemo as Fe, useContext as Ur, Fragment as zr, useRef as Ve, forwardRef as Vr } from "react";
|
|
24
24
|
import { g as Ye } from "./_commonjsHelpers-BVfed4GL.js";
|
|
25
25
|
import { r as Yr } from "./router-BiRCp01d.js";
|
|
26
|
-
import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-
|
|
26
|
+
import { S as Be, R as Xr, T as Wr, C as Jr } from "./index-LWNs2niD.js";
|
|
27
27
|
import { S as Kt, h as $t, Q as Zr, n as E, m as mt, a as gt, b as $, e as ea, c as ta, d as na, f as ra, o as vt, r as xt, g as aa, i as yt, p as wt, s as oa, u as Ne, j as sa, Z as ia, k as ca, l as Bt, q as ua } from "./ZudokuContext-BHNQL3XO.js";
|
|
28
28
|
import { j as Xe } from "./joinPath-B7kNnUX4.js";
|
|
29
|
-
import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-
|
|
30
|
-
import { S as ha } from "./Spinner-
|
|
29
|
+
import { c as Qt, P as De, R as la, I as da, S as Le } from "./SidebarBadge-C6wpM9X3.js";
|
|
30
|
+
import { S as ha } from "./Spinner-DiA314T5.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license lucide-react v0.378.0 - ISC
|
|
33
33
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { S as p, R as g } from "./SlotletProvider-
|
|
3
|
-
import { u as j, a as u, I as k, S as v, b as w, c as b, d as K, e as N, f as y } from "./Input-
|
|
2
|
+
import { S as p, R as g } from "./SlotletProvider-Bdzag6MN.js";
|
|
3
|
+
import { u as j, a as u, I as k, S as v, b as w, c as b, d as K, e as N, f as y } from "./Input-BqnnTL7-.js";
|
|
4
4
|
import { e as E, L as x, O as A } from "./index-ChhUJhLT.js";
|
|
5
5
|
import { u as m, t as C, j as S } from "./ZudokuContext-BHNQL3XO.js";
|
|
6
|
-
import { B as l, p as I } from "./Combination-
|
|
7
|
-
import { D as P } from "./DeveloperHint-
|
|
6
|
+
import { B as l, p as I } from "./Combination-C1wKWZ28.js";
|
|
7
|
+
import { D as P } from "./DeveloperHint-Bv958_pY.js";
|
|
8
8
|
import { useState as h } from "react";
|
|
9
|
-
import { c as d, a as D, C as R, g as q } from "./Markdown-
|
|
9
|
+
import { c as d, a as D, C as R, g as q } from "./Markdown-C3hatKS5.js";
|
|
10
10
|
/**
|
|
11
11
|
* @license lucide-react v0.378.0 - ISC
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@ const u = (t, e) => Object.entries(t).flatMap(([a, r]) => {
|
|
|
6
6
|
return {
|
|
7
7
|
path: s.at(-1) === "index" ? s.slice(0, -1).join("/") : o,
|
|
8
8
|
lazy: async () => {
|
|
9
|
-
const { MdxPage: i } = await import("./MdxPage-
|
|
9
|
+
const { MdxPage: i } = await import("./MdxPage-BEG8cDoF.js"), { default: p, ...c } = await r();
|
|
10
10
|
return {
|
|
11
11
|
element: /* @__PURE__ */ m.jsx(
|
|
12
12
|
i,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { o as s } from "./index-
|
|
2
|
+
import { o as s } from "./index-ClDFRC39.js";
|
|
3
3
|
import "./urql-YhcsXYy8.js";
|
|
4
4
|
import "./ZudokuContext-BHNQL3XO.js";
|
|
5
5
|
import "zudoku/openapi-worker";
|
|
6
|
-
import "./Combination-
|
|
7
|
-
import "./ErrorPage-
|
|
8
|
-
import "./Markdown-
|
|
6
|
+
import "./Combination-C1wKWZ28.js";
|
|
7
|
+
import "./ErrorPage-CcBjrY_g.js";
|
|
8
|
+
import "./Markdown-C3hatKS5.js";
|
|
9
9
|
import "./joinPath-B7kNnUX4.js";
|
|
10
10
|
import "./router-BiRCp01d.js";
|
|
11
11
|
import "./index-ChhUJhLT.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zudoku",
|
|
3
|
-
"version": "0.4.2-dev.
|
|
3
|
+
"version": "0.4.2-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"semver": "7.6.2",
|
|
139
139
|
"slugify": "1.6.6",
|
|
140
140
|
"strip-ansi": "7.1.0",
|
|
141
|
-
"tailwind-merge": "2.
|
|
141
|
+
"tailwind-merge": "2.5.2",
|
|
142
142
|
"tailwindcss": "3.4.4",
|
|
143
143
|
"ulidx": "^2.3.0",
|
|
144
144
|
"unist-util-visit": "5.0.0",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"react-markdown": "9.0.1",
|
|
176
176
|
"react-router-dom": "6.25.1",
|
|
177
177
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
178
|
-
"tsx": "4.
|
|
178
|
+
"tsx": "4.18.0",
|
|
179
179
|
"typescript": "5.5.3"
|
|
180
180
|
},
|
|
181
181
|
"peerDependencies": {
|