@clarify-labs/renderer 0.11.4 → 0.11.6
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/output/{ClarifyShell-gzlibEm8.js → ClarifyShell-CKvXZj0f.js} +120 -41
- package/output/ClarifyShell-CKvXZj0f.js.map +1 -0
- package/output/{ClarifyShell-Cvb7Nk3A.cjs → ClarifyShell-CukbPOAd.cjs} +120 -41
- package/output/ClarifyShell-CukbPOAd.cjs.map +1 -0
- package/output/{MermaidViewer-CPuTNujY.cjs → MermaidViewer-FOg263MO.cjs} +6 -7
- package/output/MermaidViewer-FOg263MO.cjs.map +1 -0
- package/output/{MermaidViewer-EVuBmrzA.js → MermaidViewer-_tpH0JNn.js} +6 -7
- package/output/MermaidViewer-_tpH0JNn.js.map +1 -0
- package/output/{OpenApiOperation-Ddax6Pen.js → OpenApiOperation-Dv9u2GEJ.js} +63 -59
- package/output/OpenApiOperation-Dv9u2GEJ.js.map +1 -0
- package/output/{OpenApiOperation-QqYCuqve.cjs → OpenApiOperation-c-I6Nw9j.cjs} +82 -60
- package/output/OpenApiOperation-c-I6Nw9j.cjs.map +1 -0
- package/output/{PageActions-BBRz0tJ4.js → PageActions-DviEypf6.js} +41 -43
- package/output/PageActions-DviEypf6.js.map +1 -0
- package/output/{PageActions-ypH6U0Vc.cjs → PageActions-ob2OJusG.cjs} +41 -43
- package/output/PageActions-ob2OJusG.cjs.map +1 -0
- package/output/{SearchDialog-Df6jknma.js → SearchDialog-89JAjQMh.js} +3 -3
- package/output/{SearchDialog-Df6jknma.js.map → SearchDialog-89JAjQMh.js.map} +1 -1
- package/output/{SearchDialog-DCGBhNnW.cjs → SearchDialog-CTiUIKeo.cjs} +3 -3
- package/output/{SearchDialog-DCGBhNnW.cjs.map → SearchDialog-CTiUIKeo.cjs.map} +1 -1
- package/output/app/AppShell.d.ts +1 -0
- package/output/app/BuiltWithClarify.d.ts +5 -1
- package/output/app/ContentDiagnostic.d.ts +1 -1
- package/output/client.cjs +3 -3
- package/output/client.js +3 -3
- package/output/{i18n-LXAq0RIC.js → i18n-Cff810G_.js} +3 -3
- package/output/i18n-Cff810G_.js.map +1 -0
- package/output/{i18n-Ds-f-qlT.cjs → i18n-Cjfk1N7i.cjs} +3 -3
- package/output/i18n-Cjfk1N7i.cjs.map +1 -0
- package/output/index.cjs +104 -20
- package/output/index.cjs.map +1 -1
- package/output/index.d.ts +3 -3
- package/output/index.js +102 -21
- package/output/index.js.map +1 -1
- package/output/mdx/components.d.ts +2 -1
- package/output/openapi/components/EndpointMethodBadge.d.ts +1 -0
- package/output/openapi/components/OpenApiLink.d.ts +9 -0
- package/output/openapi/components/OpenApiRequest.d.ts +1 -0
- package/output/openapi/components/useOpenApiRequestState.d.ts +1 -1
- package/output/openapi/entry.d.ts +4 -3
- package/output/openapi/index.d.ts +1 -0
- package/output/openapi/lib/utils.d.ts +1 -0
- package/output/preview.cjs +4 -4
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +4 -4
- package/output/preview.js.map +1 -1
- package/output/{render-C2rZuVLy.js → render-B41PHjt8.js} +2 -2
- package/output/{render-C2rZuVLy.js.map → render-B41PHjt8.js.map} +1 -1
- package/output/{render-BQkaRYoY.cjs → render-BxiVlY6q.cjs} +2 -2
- package/output/{render-BQkaRYoY.cjs.map → render-BxiVlY6q.cjs.map} +1 -1
- package/output/renderer.css +38 -16
- package/output/server.cjs +2 -2
- package/output/server.js +2 -2
- package/package.json +1 -1
- package/output/ClarifyShell-Cvb7Nk3A.cjs.map +0 -1
- package/output/ClarifyShell-gzlibEm8.js.map +0 -1
- package/output/MermaidViewer-CPuTNujY.cjs.map +0 -1
- package/output/MermaidViewer-EVuBmrzA.js.map +0 -1
- package/output/OpenApiOperation-Ddax6Pen.js.map +0 -1
- package/output/OpenApiOperation-QqYCuqve.cjs.map +0 -1
- package/output/PageActions-BBRz0tJ4.js.map +0 -1
- package/output/PageActions-ypH6U0Vc.cjs.map +0 -1
- package/output/i18n-Ds-f-qlT.cjs.map +0 -1
- package/output/i18n-LXAq0RIC.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
|
-
const require_i18n = require("./i18n-
|
|
2
|
+
const require_i18n = require("./i18n-Cjfk1N7i.cjs");
|
|
3
3
|
let clsx = require("clsx");
|
|
4
4
|
clsx = require_rolldown_runtime.__toESM(clsx, 1);
|
|
5
5
|
let react = require("react");
|
|
@@ -62,7 +62,7 @@ function MermaidViewer(arg0) {
|
|
|
62
62
|
onPointerDown: () => containerRef.current?.focus(),
|
|
63
63
|
onFocus: () => setFocused(true),
|
|
64
64
|
onBlur: () => setFocused(false),
|
|
65
|
-
className: (0, clsx.default)("clarify-mermaid group not-prose relative my-6 overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", className),
|
|
65
|
+
className: (0, clsx.default)("clarify-mermaid group not-prose relative my-6 resize-y overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", className),
|
|
66
66
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_zoom_pan_pinch.TransformWrapper, {
|
|
67
67
|
minScale: .5,
|
|
68
68
|
maxScale: 8,
|
|
@@ -70,7 +70,7 @@ function MermaidViewer(arg0) {
|
|
|
70
70
|
centerOnInit: true,
|
|
71
71
|
smooth: true,
|
|
72
72
|
wheel: {
|
|
73
|
-
step: .
|
|
73
|
+
step: .01,
|
|
74
74
|
wheelDisabled: !focused,
|
|
75
75
|
touchPadDisabled: !focused
|
|
76
76
|
},
|
|
@@ -78,9 +78,8 @@ function MermaidViewer(arg0) {
|
|
|
78
78
|
children: [
|
|
79
79
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ZoomControls, {}),
|
|
80
80
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_zoom_pan_pinch.TransformComponent, {
|
|
81
|
-
wrapperClass: "!w-full !cursor-grab active:!cursor-grabbing",
|
|
82
|
-
contentClass: "!w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
83
|
-
wrapperStyle: { height: "min(70vh, 32rem)" },
|
|
81
|
+
wrapperClass: "!h-full !w-full !cursor-grab active:!cursor-grabbing",
|
|
82
|
+
contentClass: "!h-full !w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
84
83
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
85
84
|
className: "flex h-full w-full items-center justify-center p-4",
|
|
86
85
|
dangerouslySetInnerHTML: { __html: svg }
|
|
@@ -98,4 +97,4 @@ function MermaidViewer(arg0) {
|
|
|
98
97
|
exports.MermaidViewer = MermaidViewer;
|
|
99
98
|
exports.default = MermaidViewer;
|
|
100
99
|
|
|
101
|
-
//# sourceMappingURL=MermaidViewer-
|
|
100
|
+
//# sourceMappingURL=MermaidViewer-FOg263MO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MermaidViewer-FOg263MO.cjs","names":[],"sources":["../source/components/MermaidViewer.tsx"],"sourcesContent":["import clsx from 'clsx'\nimport { Maximize2, ZoomIn, ZoomOut } from 'lucide-react'\nimport { useRef, useState, type ReactNode } from 'react'\nimport { TransformComponent, TransformWrapper, useControls } from 'react-zoom-pan-pinch'\n\nimport { useBuiltInText } from '../core/i18n'\n\ntype MermaidViewerProps = {\n svg: string\n className?: string\n}\n\nfunction ZoomControls(): ReactNode {\n const { zoomIn, zoomOut, resetTransform } = useControls()\n const t = useBuiltInText()\n\n const buttonClassName = 'flex h-7 w-7 items-center justify-center rounded-md bg-(--clarify-theme-tokens-colors-surface) text-(--clarify-ui-text-soft) shadow-xs ring-1 ring-(--clarify-theme-tokens-colors-border) transition hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground)'\n\n return (\n <div className=\"clarify-mermaid-controls absolute top-2 right-2 z-10 flex gap-1 opacity-0 transition group-hover:opacity-100 focus-within:opacity-100\">\n <button type=\"button\" aria-label={t('mermaid.zoomIn')} title={t('mermaid.zoomIn')} onClick={() => zoomIn()} className={buttonClassName}>\n <ZoomIn className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" aria-label={t('mermaid.zoomOut')} title={t('mermaid.zoomOut')} onClick={() => zoomOut()} className={buttonClassName}>\n <ZoomOut className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" aria-label={t('mermaid.resetZoom')} title={t('mermaid.resetZoom')} onClick={() => resetTransform()} className={buttonClassName}>\n <Maximize2 className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n </div>\n )\n}\n\nexport function MermaidViewer(arg0: MermaidViewerProps): ReactNode {\n const { svg, className } = arg0\n\n const t = useBuiltInText()\n const containerRef = useRef<HTMLDivElement>(null)\n const [focused, setFocused] = useState(false)\n\n return (\n <div\n ref={containerRef}\n tabIndex={0}\n role=\"group\"\n onPointerDown={() => containerRef.current?.focus()}\n onFocus={() => setFocused(true)}\n onBlur={() => setFocused(false)}\n className={clsx('clarify-mermaid group not-prose relative my-6 resize-y overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)', className)}\n >\n <TransformWrapper\n minScale={0.5}\n maxScale={8}\n initialScale={1}\n centerOnInit\n smooth\n wheel={{ step: 0.01, wheelDisabled: !focused, touchPadDisabled: !focused }}\n doubleClick={{ mode: 'reset' }}\n >\n <ZoomControls />\n <TransformComponent\n wrapperClass=\"!h-full !w-full !cursor-grab active:!cursor-grabbing\"\n contentClass=\"!h-full !w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full\"\n >\n <div className=\"flex h-full w-full items-center justify-center p-4\" dangerouslySetInnerHTML={{ __html: svg }} />\n </TransformComponent>\n <p\n className={clsx(\n 'clarify-mermaid-hint pointer-events-none absolute bottom-2 left-1/2 z-10 -translate-x-1/2 rounded-full bg-(--clarify-theme-tokens-colors-surface)/90 px-2.5 py-1 text-2xs text-(--clarify-ui-text-soft) shadow-xs ring-1 ring-(--clarify-theme-tokens-colors-border) backdrop-blur-sm transition',\n focused ? 'opacity-0' : 'opacity-0 group-hover:opacity-100',\n )}\n >\n {t('mermaid.scrollHint')}\n </p>\n </TransformWrapper>\n </div>\n )\n}\n\nexport default MermaidViewer\n"],"mappings":";;;;;;;;;AAYA,SAAS,eAA0B;CACjC,MAAM,EAAE,QAAQ,SAAS,oBAAA,GAAA,qBAAA,YAAA,CAA+B;CACxD,MAAM,IAAI,aAAA,eAAe;CAEzB,MAAM,kBAAkB;CAExB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAU;YAAf;GACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,gBAAgB;IAAG,OAAO,EAAE,gBAAgB;IAAG,eAAe,OAAO;IAAG,WAAW;cACrH,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,QAAD;KAAQ,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC1C,CAAA;GACR,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,iBAAiB;IAAG,OAAO,EAAE,iBAAiB;IAAG,eAAe,QAAQ;IAAG,WAAW;cACxH,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,SAAD;KAAS,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC3C,CAAA;GACR,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,mBAAmB;IAAG,OAAO,EAAE,mBAAmB;IAAG,eAAe,eAAe;IAAG,WAAW;cACnI,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAA,WAAD;KAAW,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC7C,CAAA;EACL;;AAET;AAEA,SAAgB,cAAc,MAAqC;CACjE,MAAM,EAAE,KAAK,cAAc;CAE3B,MAAM,IAAI,aAAA,eAAe;CACzB,MAAM,gBAAA,GAAA,MAAA,OAAA,CAAsC,IAAI;CAChD,MAAM,CAAC,SAAS,eAAA,GAAA,MAAA,SAAA,CAAuB,KAAK;CAE5C,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,KAAK;EACL,UAAU;EACV,MAAK;EACL,qBAAqB,aAAa,SAAS,MAAM;EACjD,eAAe,WAAW,IAAI;EAC9B,cAAc,WAAW,KAAK;EAC9B,YAAA,GAAA,KAAA,QAAA,CAAgB,mRAAmR,SAAS;YAE5S,iBAAA,GAAA,kBAAA,KAAA,CAAC,qBAAA,kBAAD;GACE,UAAU;GACV,UAAU;GACV,cAAc;GACd,cAAA;GACA,QAAA;GACA,OAAO;IAAE,MAAM;IAAM,eAAe,CAAC;IAAS,kBAAkB,CAAC;GAAQ;GACzE,aAAa,EAAE,MAAM,QAAQ;aAP/B;IASE,iBAAA,GAAA,kBAAA,IAAA,CAAC,cAAD,CAAe,CAAA;IACf,iBAAA,GAAA,kBAAA,IAAA,CAAC,qBAAA,oBAAD;KACE,cAAa;KACb,cAAa;eAEb,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;MAAK,WAAU;MAAqD,yBAAyB,EAAE,QAAQ,IAAI;KAAI,CAAA;IAC7F,CAAA;IACpB,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;KACE,YAAA,GAAA,KAAA,QAAA,CACE,oSACA,UAAU,cAAc,mCAC1B;eAEC,EAAE,oBAAoB;IACtB,CAAA;GACa;;CACf,CAAA;AAET"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useBuiltInText } from "./i18n-
|
|
1
|
+
import { t as useBuiltInText } from "./i18n-Cff810G_.js";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
4
|
import { Maximize2, ZoomIn, ZoomOut } from "lucide-react";
|
|
@@ -60,7 +60,7 @@ function MermaidViewer(arg0) {
|
|
|
60
60
|
onPointerDown: () => containerRef.current?.focus(),
|
|
61
61
|
onFocus: () => setFocused(true),
|
|
62
62
|
onBlur: () => setFocused(false),
|
|
63
|
-
className: clsx("clarify-mermaid group not-prose relative my-6 overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", className),
|
|
63
|
+
className: clsx("clarify-mermaid group not-prose relative my-6 resize-y overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", className),
|
|
64
64
|
children: /* @__PURE__ */ jsxs(TransformWrapper, {
|
|
65
65
|
minScale: .5,
|
|
66
66
|
maxScale: 8,
|
|
@@ -68,7 +68,7 @@ function MermaidViewer(arg0) {
|
|
|
68
68
|
centerOnInit: true,
|
|
69
69
|
smooth: true,
|
|
70
70
|
wheel: {
|
|
71
|
-
step: .
|
|
71
|
+
step: .01,
|
|
72
72
|
wheelDisabled: !focused,
|
|
73
73
|
touchPadDisabled: !focused
|
|
74
74
|
},
|
|
@@ -76,9 +76,8 @@ function MermaidViewer(arg0) {
|
|
|
76
76
|
children: [
|
|
77
77
|
/* @__PURE__ */ jsx(ZoomControls, {}),
|
|
78
78
|
/* @__PURE__ */ jsx(TransformComponent, {
|
|
79
|
-
wrapperClass: "!w-full !cursor-grab active:!cursor-grabbing",
|
|
80
|
-
contentClass: "!w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
81
|
-
wrapperStyle: { height: "min(70vh, 32rem)" },
|
|
79
|
+
wrapperClass: "!h-full !w-full !cursor-grab active:!cursor-grabbing",
|
|
80
|
+
contentClass: "!h-full !w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full",
|
|
82
81
|
children: /* @__PURE__ */ jsx("div", {
|
|
83
82
|
className: "flex h-full w-full items-center justify-center p-4",
|
|
84
83
|
dangerouslySetInnerHTML: { __html: svg }
|
|
@@ -95,4 +94,4 @@ function MermaidViewer(arg0) {
|
|
|
95
94
|
//#endregion
|
|
96
95
|
export { MermaidViewer, MermaidViewer as default };
|
|
97
96
|
|
|
98
|
-
//# sourceMappingURL=MermaidViewer-
|
|
97
|
+
//# sourceMappingURL=MermaidViewer-_tpH0JNn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MermaidViewer-_tpH0JNn.js","names":[],"sources":["../source/components/MermaidViewer.tsx"],"sourcesContent":["import clsx from 'clsx'\nimport { Maximize2, ZoomIn, ZoomOut } from 'lucide-react'\nimport { useRef, useState, type ReactNode } from 'react'\nimport { TransformComponent, TransformWrapper, useControls } from 'react-zoom-pan-pinch'\n\nimport { useBuiltInText } from '../core/i18n'\n\ntype MermaidViewerProps = {\n svg: string\n className?: string\n}\n\nfunction ZoomControls(): ReactNode {\n const { zoomIn, zoomOut, resetTransform } = useControls()\n const t = useBuiltInText()\n\n const buttonClassName = 'flex h-7 w-7 items-center justify-center rounded-md bg-(--clarify-theme-tokens-colors-surface) text-(--clarify-ui-text-soft) shadow-xs ring-1 ring-(--clarify-theme-tokens-colors-border) transition hover:bg-(--clarify-ui-hover-background) hover:text-(--clarify-theme-tokens-colors-foreground)'\n\n return (\n <div className=\"clarify-mermaid-controls absolute top-2 right-2 z-10 flex gap-1 opacity-0 transition group-hover:opacity-100 focus-within:opacity-100\">\n <button type=\"button\" aria-label={t('mermaid.zoomIn')} title={t('mermaid.zoomIn')} onClick={() => zoomIn()} className={buttonClassName}>\n <ZoomIn className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" aria-label={t('mermaid.zoomOut')} title={t('mermaid.zoomOut')} onClick={() => zoomOut()} className={buttonClassName}>\n <ZoomOut className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" aria-label={t('mermaid.resetZoom')} title={t('mermaid.resetZoom')} onClick={() => resetTransform()} className={buttonClassName}>\n <Maximize2 className=\"h-4 w-4\" aria-hidden=\"true\" />\n </button>\n </div>\n )\n}\n\nexport function MermaidViewer(arg0: MermaidViewerProps): ReactNode {\n const { svg, className } = arg0\n\n const t = useBuiltInText()\n const containerRef = useRef<HTMLDivElement>(null)\n const [focused, setFocused] = useState(false)\n\n return (\n <div\n ref={containerRef}\n tabIndex={0}\n role=\"group\"\n onPointerDown={() => containerRef.current?.focus()}\n onFocus={() => setFocused(true)}\n onBlur={() => setFocused(false)}\n className={clsx('clarify-mermaid group not-prose relative my-6 resize-y overflow-hidden rounded-2xl border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-surface) outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)', className)}\n >\n <TransformWrapper\n minScale={0.5}\n maxScale={8}\n initialScale={1}\n centerOnInit\n smooth\n wheel={{ step: 0.01, wheelDisabled: !focused, touchPadDisabled: !focused }}\n doubleClick={{ mode: 'reset' }}\n >\n <ZoomControls />\n <TransformComponent\n wrapperClass=\"!h-full !w-full !cursor-grab active:!cursor-grabbing\"\n contentClass=\"!h-full !w-full justify-center [&_svg]:h-auto [&_svg]:max-w-full\"\n >\n <div className=\"flex h-full w-full items-center justify-center p-4\" dangerouslySetInnerHTML={{ __html: svg }} />\n </TransformComponent>\n <p\n className={clsx(\n 'clarify-mermaid-hint pointer-events-none absolute bottom-2 left-1/2 z-10 -translate-x-1/2 rounded-full bg-(--clarify-theme-tokens-colors-surface)/90 px-2.5 py-1 text-2xs text-(--clarify-ui-text-soft) shadow-xs ring-1 ring-(--clarify-theme-tokens-colors-border) backdrop-blur-sm transition',\n focused ? 'opacity-0' : 'opacity-0 group-hover:opacity-100',\n )}\n >\n {t('mermaid.scrollHint')}\n </p>\n </TransformWrapper>\n </div>\n )\n}\n\nexport default MermaidViewer\n"],"mappings":";;;;;;;AAYA,SAAS,eAA0B;CACjC,MAAM,EAAE,QAAQ,SAAS,mBAAmB,YAAY;CACxD,MAAM,IAAI,eAAe;CAEzB,MAAM,kBAAkB;CAExB,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf;GACE,oBAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,gBAAgB;IAAG,OAAO,EAAE,gBAAgB;IAAG,eAAe,OAAO;IAAG,WAAW;cACrH,oBAAC,QAAD;KAAQ,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC1C,CAAA;GACR,oBAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,iBAAiB;IAAG,OAAO,EAAE,iBAAiB;IAAG,eAAe,QAAQ;IAAG,WAAW;cACxH,oBAAC,SAAD;KAAS,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC3C,CAAA;GACR,oBAAC,UAAD;IAAQ,MAAK;IAAS,cAAY,EAAE,mBAAmB;IAAG,OAAO,EAAE,mBAAmB;IAAG,eAAe,eAAe;IAAG,WAAW;cACnI,oBAAC,WAAD;KAAW,WAAU;KAAU,eAAY;IAAQ,CAAA;GAC7C,CAAA;EACL;;AAET;AAEA,SAAgB,cAAc,MAAqC;CACjE,MAAM,EAAE,KAAK,cAAc;CAE3B,MAAM,IAAI,eAAe;CACzB,MAAM,eAAe,OAAuB,IAAI;CAChD,MAAM,CAAC,SAAS,cAAc,SAAS,KAAK;CAE5C,OACE,oBAAC,OAAD;EACE,KAAK;EACL,UAAU;EACV,MAAK;EACL,qBAAqB,aAAa,SAAS,MAAM;EACjD,eAAe,WAAW,IAAI;EAC9B,cAAc,WAAW,KAAK;EAC9B,WAAW,KAAK,mRAAmR,SAAS;YAE5S,qBAAC,kBAAD;GACE,UAAU;GACV,UAAU;GACV,cAAc;GACd,cAAA;GACA,QAAA;GACA,OAAO;IAAE,MAAM;IAAM,eAAe,CAAC;IAAS,kBAAkB,CAAC;GAAQ;GACzE,aAAa,EAAE,MAAM,QAAQ;aAP/B;IASE,oBAAC,cAAD,CAAe,CAAA;IACf,oBAAC,oBAAD;KACE,cAAa;KACb,cAAa;eAEb,oBAAC,OAAD;MAAK,WAAU;MAAqD,yBAAyB,EAAE,QAAQ,IAAI;KAAI,CAAA;IAC7F,CAAA;IACpB,oBAAC,KAAD;KACE,WAAW,KACT,oSACA,UAAU,cAAc,mCAC1B;eAEC,EAAE,oBAAoB;IACtB,CAAA;GACa;;CACf,CAAA;AAET"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useConfig, s as useLocale, t as useBuiltInText } from "./i18n-
|
|
2
|
-
import { C as isExternalHref, E as copyTextToClipboard, c as lucideIconRegistry, h as useTheme, l as resolveLucideIconName, o as useSectionStore, s as remToPx, t as PageActions, w as localizeHref } from "./PageActions-
|
|
1
|
+
import { a as useConfig, s as useLocale, t as useBuiltInText } from "./i18n-Cff810G_.js";
|
|
2
|
+
import { C as isExternalHref, E as copyTextToClipboard, c as lucideIconRegistry, h as useTheme, l as resolveLucideIconName, o as useSectionStore, s as remToPx, t as PageActions, w as localizeHref } from "./PageActions-DviEypf6.js";
|
|
3
3
|
import { t as markdownRemarkPlugins } from "./remark-C9iRQM0R.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { Children, Suspense, cloneElement, createContext, createElement, forwardRef, isValidElement, lazy, useContext, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -253,7 +253,7 @@ function Card(arg0) {
|
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region source/components/Mermaid.tsx
|
|
256
|
-
var MermaidViewer = lazy(() => import("./MermaidViewer-
|
|
256
|
+
var MermaidViewer = lazy(() => import("./MermaidViewer-_tpH0JNn.js"));
|
|
257
257
|
var mermaidModulePromise;
|
|
258
258
|
async function loadMermaid() {
|
|
259
259
|
mermaidModulePromise = mermaidModulePromise ?? import("mermaid").then((module) => module.default);
|
|
@@ -496,10 +496,14 @@ function CodeGroupHeader(arg0) {
|
|
|
496
496
|
}
|
|
497
497
|
function CodeGroupPanels(arg0) {
|
|
498
498
|
const { children, ...props } = arg0;
|
|
499
|
-
if (Children.count(children) > 1) return /* @__PURE__ */ jsx(TabPanels, { children: Children.map(children, (child) => /* @__PURE__ */ jsx(TabPanel, {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
499
|
+
if (Children.count(children) > 1) return /* @__PURE__ */ jsx(TabPanels, { children: Children.map(children, (child) => /* @__PURE__ */ jsx(TabPanel, {
|
|
500
|
+
static: true,
|
|
501
|
+
className: "hidden data-selected:block",
|
|
502
|
+
children: /* @__PURE__ */ jsx(CodePanel, {
|
|
503
|
+
...props,
|
|
504
|
+
children: child
|
|
505
|
+
})
|
|
506
|
+
})) });
|
|
503
507
|
return /* @__PURE__ */ jsx(CodePanel, {
|
|
504
508
|
...props,
|
|
505
509
|
children
|
|
@@ -1052,7 +1056,8 @@ function Tabs(arg0) {
|
|
|
1052
1056
|
}), /* @__PURE__ */ jsx(TabPanels, {
|
|
1053
1057
|
className: panelsClassName ?? "mt-5",
|
|
1054
1058
|
children: resolvedItems.map((item) => /* @__PURE__ */ jsx(TabPanel, {
|
|
1055
|
-
|
|
1059
|
+
static: true,
|
|
1060
|
+
className: ({ selected }) => clsx("focus:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", !selected && "hidden"),
|
|
1056
1061
|
children: item.panel
|
|
1057
1062
|
}, item.id))
|
|
1058
1063
|
})]
|
|
@@ -1744,9 +1749,6 @@ function normalizeOpenApiOperationSectionId(operation, method, path, source) {
|
|
|
1744
1749
|
if (typeof sectionId !== "string" || !sectionId) operation[CLARIFY_OPENAPI_SECTION_ID_EXTENSION] = createOpenApiOperationSectionId(operation, method, path, source);
|
|
1745
1750
|
return operation;
|
|
1746
1751
|
}
|
|
1747
|
-
function isOpenAPIHttpMethod(method) {
|
|
1748
|
-
return OPENAPI_HTTP_METHODS.includes(method.toLowerCase());
|
|
1749
|
-
}
|
|
1750
1752
|
function isRecord(value) {
|
|
1751
1753
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1752
1754
|
}
|
|
@@ -1782,19 +1784,9 @@ function listOperationsFromPathItems(items, source, spec) {
|
|
|
1782
1784
|
}
|
|
1783
1785
|
return operations;
|
|
1784
1786
|
}
|
|
1785
|
-
function
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
const sources = source ? [source] : ["path", "webhook"];
|
|
1789
|
-
for (const currentSource of sources) {
|
|
1790
|
-
const operation = (currentSource === "webhook" ? getWebhookItem(spec, path) : getPathItem(spec, path))?.[normalizedMethod];
|
|
1791
|
-
if (isRecord(operation)) return {
|
|
1792
|
-
path,
|
|
1793
|
-
method: normalizedMethod,
|
|
1794
|
-
operation: normalizeOpenApiOperationSectionId(operation, normalizedMethod, path, currentSource),
|
|
1795
|
-
source: currentSource
|
|
1796
|
-
};
|
|
1797
|
-
}
|
|
1787
|
+
function getOpenApiOperationEntryById(spec, operationId) {
|
|
1788
|
+
const matches = listOpenApiOperations(spec).filter(({ operation }) => operation.operationId === operationId);
|
|
1789
|
+
return matches.length === 1 ? matches[0] : void 0;
|
|
1798
1790
|
}
|
|
1799
1791
|
function listOpenApiOperations(spec) {
|
|
1800
1792
|
const paths = spec.paths ?? {};
|
|
@@ -1812,9 +1804,9 @@ var endpointMethodStyleVars = {
|
|
|
1812
1804
|
WEBHOOK: "bg-(--clarify-http-method-webhook-background) text-(--clarify-http-method-webhook-text)"
|
|
1813
1805
|
};
|
|
1814
1806
|
function EndpointMethodBadge(arg0) {
|
|
1815
|
-
const { method } = arg0;
|
|
1807
|
+
const { method, compact = false } = arg0;
|
|
1816
1808
|
return /* @__PURE__ */ jsx("span", {
|
|
1817
|
-
className: clsx("rounded-(--clarify-theme-tokens-radius-md) px-2.5 py-0.5 text-xs/6 font-black tracking-wide", endpointMethodStyleVars[method] ?? "bg-(--clarify-http-method-default-background) text-(--clarify-http-method-default-text)"),
|
|
1809
|
+
className: clsx(compact ? "rounded px-1.5 py-0.5 text-[0.625rem]/4 font-bold" : "rounded-(--clarify-theme-tokens-radius-md) px-2.5 py-0.5 text-xs/6 font-black tracking-wide", endpointMethodStyleVars[method] ?? "bg-(--clarify-http-method-default-background) text-(--clarify-http-method-default-text)"),
|
|
1818
1810
|
children: method
|
|
1819
1811
|
});
|
|
1820
1812
|
}
|
|
@@ -3075,7 +3067,7 @@ function getRootSchemaNode(spec, schema, defaultExpanded) {
|
|
|
3075
3067
|
function EnumValueNode(arg0) {
|
|
3076
3068
|
const { node } = arg0;
|
|
3077
3069
|
return /* @__PURE__ */ jsx("li", {
|
|
3078
|
-
className: "clarify-schema-node m-0 p-0",
|
|
3070
|
+
className: clsx("clarify-schema-node m-0 p-0", node.visible === false && "hidden"),
|
|
3079
3071
|
children: /* @__PURE__ */ jsx("div", {
|
|
3080
3072
|
className: "flex min-w-0 items-start rounded-(--clarify-theme-tokens-radius-md) px-2 py-2 text-left",
|
|
3081
3073
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -3140,7 +3132,7 @@ function SchemaNode(arg0) {
|
|
|
3140
3132
|
children: expanded ? /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
3141
3133
|
}) : null] });
|
|
3142
3134
|
return /* @__PURE__ */ jsxs("li", {
|
|
3143
|
-
className: "clarify-schema-node m-0 p-0",
|
|
3135
|
+
className: clsx("clarify-schema-node m-0 p-0", node.visible === false && "hidden"),
|
|
3144
3136
|
children: [hasChildren ? /* @__PURE__ */ jsx("button", {
|
|
3145
3137
|
type: "button",
|
|
3146
3138
|
"aria-label": expanded ? t("openapi.collapse") : t("openapi.expand"),
|
|
@@ -3151,10 +3143,13 @@ function SchemaNode(arg0) {
|
|
|
3151
3143
|
}) : /* @__PURE__ */ jsx("div", {
|
|
3152
3144
|
className: rowClassName,
|
|
3153
3145
|
children: content
|
|
3154
|
-
}), hasChildren
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3146
|
+
}), hasChildren ? /* @__PURE__ */ jsx("div", {
|
|
3147
|
+
className: clsx(!expanded && "hidden"),
|
|
3148
|
+
children: /* @__PURE__ */ jsx(SchemaTree, {
|
|
3149
|
+
nodes: node.children,
|
|
3150
|
+
depth: depth + 1,
|
|
3151
|
+
forceExpanded
|
|
3152
|
+
})
|
|
3158
3153
|
}) : null]
|
|
3159
3154
|
});
|
|
3160
3155
|
}
|
|
@@ -3172,18 +3167,24 @@ function SchemaTree(arg0) {
|
|
|
3172
3167
|
}, node.key))
|
|
3173
3168
|
});
|
|
3174
3169
|
}
|
|
3175
|
-
function
|
|
3176
|
-
if (!query.
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3170
|
+
function markSchemaNodesVisibility(nodes, query) {
|
|
3171
|
+
if (!query) return nodes.map((node) => ({
|
|
3172
|
+
...node,
|
|
3173
|
+
visible: true,
|
|
3174
|
+
children: markSchemaNodesVisibility(node.children, query)
|
|
3175
|
+
}));
|
|
3176
|
+
return nodes.map((node) => {
|
|
3177
|
+
const children = markSchemaNodesVisibility(node.children, query);
|
|
3178
|
+
const searchableText = getSchemaSearchText(node.name, {
|
|
3180
3179
|
type: node.type,
|
|
3181
3180
|
description: node.description,
|
|
3182
3181
|
pattern: node.details
|
|
3183
|
-
})
|
|
3182
|
+
});
|
|
3183
|
+
return {
|
|
3184
3184
|
...node,
|
|
3185
|
+
visible: fuzzyMatch(searchableText, query) || children.some((child) => child.visible),
|
|
3185
3186
|
children
|
|
3186
|
-
}
|
|
3187
|
+
};
|
|
3187
3188
|
});
|
|
3188
3189
|
}
|
|
3189
3190
|
function SchemaProperties(arg0) {
|
|
@@ -3191,20 +3192,22 @@ function SchemaProperties(arg0) {
|
|
|
3191
3192
|
const t = useBuiltInText();
|
|
3192
3193
|
const root = getRootSchemaNode(spec, schema, defaultExpanded);
|
|
3193
3194
|
if (!root || root.children.length === 0) return null;
|
|
3194
|
-
const
|
|
3195
|
-
const
|
|
3195
|
+
const normalizedQuery = query.trim();
|
|
3196
|
+
const nodes = markSchemaNodesVisibility(root.children, normalizedQuery);
|
|
3197
|
+
const hasQuery = Boolean(normalizedQuery);
|
|
3198
|
+
const hasVisibleNodes = nodes.some((node) => node.visible);
|
|
3196
3199
|
const resolvedEmptyText = emptyText ?? t("openapi.noBodyProperties");
|
|
3197
|
-
return /* @__PURE__ */
|
|
3200
|
+
return /* @__PURE__ */ jsxs(OpenApiDocumentSection, {
|
|
3198
3201
|
title,
|
|
3199
3202
|
level: 4,
|
|
3200
3203
|
bodyClassName: "clarify-schema-properties not-prose",
|
|
3201
|
-
children:
|
|
3202
|
-
nodes
|
|
3204
|
+
children: [/* @__PURE__ */ jsx(SchemaTree, {
|
|
3205
|
+
nodes,
|
|
3203
3206
|
forceExpanded: hasQuery
|
|
3204
|
-
})
|
|
3205
|
-
className: "m-0 py-2 text-sm/5 text-(--clarify-ui-text-soft)",
|
|
3207
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
3208
|
+
className: clsx("m-0 py-2 text-sm/5 text-(--clarify-ui-text-soft)", hasVisibleNodes && "hidden"),
|
|
3206
3209
|
children: resolvedEmptyText
|
|
3207
|
-
})
|
|
3210
|
+
})]
|
|
3208
3211
|
});
|
|
3209
3212
|
}
|
|
3210
3213
|
function ParameterList(arg0) {
|
|
@@ -4756,7 +4759,7 @@ function requestBodyForExample(spec, content, exampleKey) {
|
|
|
4756
4759
|
const example = getExampleEntries(content, spec).find((entry) => !entry.generated && entry.key === exampleKey);
|
|
4757
4760
|
return example ? stringifyExample(example.value) : initialRequestBody(spec, content);
|
|
4758
4761
|
}
|
|
4759
|
-
function useOpenApiRequestTarget(spec, path, operation, operationSource) {
|
|
4762
|
+
function useOpenApiRequestTarget(spec, path, operation, operationSource, requestExample = "") {
|
|
4760
4763
|
const servers = getServers(spec, operation, path, operationSource);
|
|
4761
4764
|
const [selectedServerKey, setSelectedServerKey] = useState(getServerKey(servers[0], 0));
|
|
4762
4765
|
const selectedServer = servers.find((server, index) => getServerKey(server, index) === selectedServerKey) ?? servers[0];
|
|
@@ -4771,7 +4774,7 @@ function useOpenApiRequestTarget(spec, path, operation, operationSource) {
|
|
|
4771
4774
|
const requestContents = getMediaTypeEntries(getRequestBody$1(spec, operation)?.content, spec);
|
|
4772
4775
|
const [mediaType, setMediaType] = useState(requestContents[0]?.mediaType ?? "");
|
|
4773
4776
|
const selectedContent = requestContents.find((entry) => entry.mediaType === mediaType) ?? requestContents[0];
|
|
4774
|
-
const [body, setBody] = useState(
|
|
4777
|
+
const [body, setBody] = useState(requestBodyForExample(spec, selectedContent?.value, requestExample));
|
|
4775
4778
|
const [bodyFiles, setBodyFiles] = useState({});
|
|
4776
4779
|
function selectServer(value) {
|
|
4777
4780
|
const nextServer = servers.find((server, index) => getServerKey(server, index) === value) ?? servers[0];
|
|
@@ -4933,12 +4936,12 @@ function parameterGroupLabel(location, t) {
|
|
|
4933
4936
|
return t("openapi.queryParameters");
|
|
4934
4937
|
}
|
|
4935
4938
|
function OpenApiRequestWorkbench(arg0) {
|
|
4936
|
-
const { spec, path, method, operation, operationSource = "path", compact = false, onClose } = arg0;
|
|
4939
|
+
const { spec, path, method, operation, operationSource = "path", requestExample, compact = false, onClose } = arg0;
|
|
4937
4940
|
const t = useBuiltInText();
|
|
4938
4941
|
const parameters = getOperationParameters(spec, path, operation, operationSource);
|
|
4939
|
-
const { servers, selectedServer, selectedServerKey, serverVariables, setServerVariables, serverVariableEntries, selectServer, authOptions, selectedAuthName, setSelectedAuthName, selectedAuth, credentialScope, credentials, setCredential, clearCredential, requestContents, mediaType, selectedContent, body, setBody, bodyFiles, setBodyFile, applyBodyExample, selectMediaType } = useOpenApiRequestTarget(spec, path, operation, operationSource);
|
|
4942
|
+
const { servers, selectedServer, selectedServerKey, serverVariables, setServerVariables, serverVariableEntries, selectServer, authOptions, selectedAuthName, setSelectedAuthName, selectedAuth, credentialScope, credentials, setCredential, clearCredential, requestContents, mediaType, selectedContent, body, setBody, bodyFiles, setBodyFile, applyBodyExample, selectMediaType } = useOpenApiRequestTarget(spec, path, operation, operationSource, requestExample);
|
|
4940
4943
|
const requestExamples = getRequestExampleEntries(parameters, selectedContent?.value);
|
|
4941
|
-
const [selectedRequestExampleKey, setSelectedRequestExampleKey] = useState(requestExamples[0]?.key ?? "");
|
|
4944
|
+
const [selectedRequestExampleKey, setSelectedRequestExampleKey] = useState(requestExample ?? requestExamples[0]?.key ?? "");
|
|
4942
4945
|
const currentRequestExampleKey = requestExamples.some((example) => example.key === selectedRequestExampleKey) ? selectedRequestExampleKey : requestExamples[0]?.key ?? "";
|
|
4943
4946
|
const parameterState = useOpenApiParameterState(spec, parameters, (parameter) => initialParameterValue(spec, parameter), currentRequestExampleKey);
|
|
4944
4947
|
const { parameterValues, parameterEnabled, parameterIssues, setParameterGroupValues, setParameterIncluded, updateParameterValue, applyParameterExample } = parameterState;
|
|
@@ -4953,6 +4956,7 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
4953
4956
|
})).filter((group) => group.parameters.length > 0);
|
|
4954
4957
|
const pathParameters = parameters.filter((parameter) => parameter.in === "path");
|
|
4955
4958
|
const hasRequestConfiguration = authOptions.length > 0 || serverVariableEntries.length > 0 || parameters.length > 0 || requestContents.length > 0;
|
|
4959
|
+
const showResponse = compact || Boolean(exchange || error);
|
|
4956
4960
|
function applyRequestExample(exampleKey) {
|
|
4957
4961
|
setSelectedRequestExampleKey(exampleKey);
|
|
4958
4962
|
applyParameterExample(exampleKey);
|
|
@@ -5164,9 +5168,9 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
5164
5168
|
});
|
|
5165
5169
|
}
|
|
5166
5170
|
return /* @__PURE__ */ jsxs("div", {
|
|
5167
|
-
className: clsx("clarify-
|
|
5171
|
+
className: clsx("clarify-openapi-request flex min-h-0 min-w-0 flex-col not-prose bg-(--clarify-theme-tokens-colors-surface) [--clarify-ui-accent-background:color-mix(in_srgb,var(--clarify-theme-tokens-colors-foreground)_10%,transparent)] [--clarify-ui-accent-border:color-mix(in_srgb,var(--clarify-theme-tokens-colors-foreground)_22%,transparent)] [--clarify-ui-accent-text:var(--clarify-theme-tokens-colors-foreground)] [--clarify-ui-active-background:color-mix(in_srgb,var(--clarify-theme-tokens-colors-foreground)_12%,transparent)] [--clarify-ui-subtle-background:color-mix(in_srgb,var(--clarify-theme-tokens-colors-foreground)_5%,transparent)]", compact ? "h-full" : "my-6 overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border)"),
|
|
5168
5172
|
children: [renderHeader(), /* @__PURE__ */ jsxs("div", {
|
|
5169
|
-
className: "grid min-h-0 flex-1 gap-0 px-0 lg:grid-cols-[minmax(0,1.12fr)_minmax(22rem,0.88fr)]",
|
|
5173
|
+
className: clsx("grid min-h-0 flex-1 gap-0 px-0", showResponse && "lg:grid-cols-[minmax(0,1.12fr)_minmax(22rem,0.88fr)]"),
|
|
5170
5174
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
5171
5175
|
className: "flex min-h-0 min-w-0 flex-col overflow-y-auto",
|
|
5172
5176
|
children: [
|
|
@@ -5203,13 +5207,13 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
5203
5207
|
})
|
|
5204
5208
|
}) : null
|
|
5205
5209
|
]
|
|
5206
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
5210
|
+
}), showResponse ? /* @__PURE__ */ jsx("div", {
|
|
5207
5211
|
className: "h-full min-h-0 min-w-0 overflow-hidden border-t border-(--clarify-theme-tokens-colors-border) lg:border-t-0 lg:border-l",
|
|
5208
5212
|
children: /* @__PURE__ */ jsx(OpenApiResponseViewer, {
|
|
5209
5213
|
exchange,
|
|
5210
5214
|
error
|
|
5211
5215
|
})
|
|
5212
|
-
})]
|
|
5216
|
+
}) : null]
|
|
5213
5217
|
})]
|
|
5214
5218
|
});
|
|
5215
5219
|
}
|
|
@@ -5223,7 +5227,7 @@ function OpenApiRequestDialog(arg0) {
|
|
|
5223
5227
|
children: [/* @__PURE__ */ jsx(DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ jsx("div", {
|
|
5224
5228
|
className: "fixed inset-0 grid place-items-center overflow-y-auto p-3 sm:p-6",
|
|
5225
5229
|
children: /* @__PURE__ */ jsxs(DialogPanel, {
|
|
5226
|
-
className: "relative flex h-[min(46rem,calc(100dvh-1.5rem))] w-full max-w-7xl flex-col overflow-hidden rounded-lg border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background) shadow-2xl sm:h-[min(46rem,calc(100dvh-3rem))]",
|
|
5230
|
+
className: "relative flex h-[min(46rem,calc(100dvh-1.5rem))] w-full max-w-7xl flex-col overflow-hidden rounded-(--clarify-theme-tokens-radius-lg) border border-(--clarify-theme-tokens-colors-border) bg-(--clarify-theme-tokens-colors-background) shadow-2xl sm:h-[min(46rem,calc(100dvh-3rem))]",
|
|
5227
5231
|
children: [/* @__PURE__ */ jsx(DialogTitle, {
|
|
5228
5232
|
className: "sr-only",
|
|
5229
5233
|
children: t("openapi.tryRequest")
|
|
@@ -5567,6 +5571,6 @@ function OpenApiOperation(arg0) {
|
|
|
5567
5571
|
});
|
|
5568
5572
|
}
|
|
5569
5573
|
//#endregion
|
|
5570
|
-
export {
|
|
5574
|
+
export { Feedback as A, LocalizedLink as B, Steps as C, Logo as D, HeroPattern as E, Mermaid as F, Card as I, CardGroup as L, Code as M, CodeGroup as N, Heading as O, Pre as P, Callout as R, Step as S, GridPattern as T, Markdown as _, ResponseExamplesPanel as a, TabItem as b, getAuthOptions as c, EndpointMethodBadge as d, getOpenApiOperationEntryById as f, getRequestBody$1 as g, getMediaTypeEntries as h, RequestExamplesPanel as i, Collapse as j, Tag as k, getServerKey as l, listOpenApiOperations as m, OpenApiOperation as n, authPlaceholder as o, getOpenApiOperationSectionId as p, OpenApiRequestWorkbench as r, defaultServerVariables as s, EndpointIdentity as t, getServers as u, primitives_exports as v, Prose as w, Tabs as x, WebFrame as y, Button as z };
|
|
5571
5575
|
|
|
5572
|
-
//# sourceMappingURL=OpenApiOperation-
|
|
5576
|
+
//# sourceMappingURL=OpenApiOperation-Dv9u2GEJ.js.map
|