@clarify-labs/renderer 0.11.4 → 0.11.5
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-Cvb7Nk3A.cjs → ClarifyShell-BbD82nrc.cjs} +50 -22
- package/output/ClarifyShell-BbD82nrc.cjs.map +1 -0
- package/output/{ClarifyShell-gzlibEm8.js → ClarifyShell-BwqLbTI-.js} +50 -22
- package/output/ClarifyShell-BwqLbTI-.js.map +1 -0
- package/output/{MermaidViewer-CPuTNujY.cjs → MermaidViewer-CO1rhB6A.cjs} +2 -2
- package/output/{MermaidViewer-CPuTNujY.cjs.map → MermaidViewer-CO1rhB6A.cjs.map} +1 -1
- package/output/{MermaidViewer-EVuBmrzA.js → MermaidViewer-D1wiX_T9.js} +2 -2
- package/output/{MermaidViewer-EVuBmrzA.js.map → MermaidViewer-D1wiX_T9.js.map} +1 -1
- package/output/{OpenApiOperation-QqYCuqve.cjs → OpenApiOperation-C77uiDjW.cjs} +62 -58
- package/output/OpenApiOperation-C77uiDjW.cjs.map +1 -0
- package/output/{OpenApiOperation-Ddax6Pen.js → OpenApiOperation-CbdKZMO1.js} +61 -57
- package/output/OpenApiOperation-CbdKZMO1.js.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/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 +20 -20
- package/output/index.cjs.map +1 -1
- package/output/index.js +20 -20
- package/output/index.js.map +1 -1
- 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/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-BQkaRYoY.cjs → render-BhVJVa1q.cjs} +2 -2
- package/output/{render-BQkaRYoY.cjs.map → render-BhVJVa1q.cjs.map} +1 -1
- package/output/{render-C2rZuVLy.js → render-PDmRKKJm.js} +2 -2
- package/output/{render-C2rZuVLy.js.map → render-PDmRKKJm.js.map} +1 -1
- package/output/renderer.css +4 -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/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,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
|
-
const require_i18n = require("./i18n-
|
|
3
|
-
const require_PageActions = require("./PageActions-
|
|
2
|
+
const require_i18n = require("./i18n-Cjfk1N7i.cjs");
|
|
3
|
+
const require_PageActions = require("./PageActions-ob2OJusG.cjs");
|
|
4
4
|
const require_remark = require("./remark-DTLbG8PK.cjs");
|
|
5
5
|
let clsx = require("clsx");
|
|
6
6
|
clsx = require_rolldown_runtime.__toESM(clsx, 1);
|
|
@@ -245,7 +245,7 @@ function Card(arg0) {
|
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region source/components/Mermaid.tsx
|
|
248
|
-
var MermaidViewer = (0, react.lazy)(() => Promise.resolve().then(() => require("./MermaidViewer-
|
|
248
|
+
var MermaidViewer = (0, react.lazy)(() => Promise.resolve().then(() => require("./MermaidViewer-CO1rhB6A.cjs")));
|
|
249
249
|
var mermaidModulePromise;
|
|
250
250
|
async function loadMermaid() {
|
|
251
251
|
mermaidModulePromise = mermaidModulePromise ?? import("mermaid").then((module) => module.default);
|
|
@@ -488,10 +488,14 @@ function CodeGroupHeader(arg0) {
|
|
|
488
488
|
}
|
|
489
489
|
function CodeGroupPanels(arg0) {
|
|
490
490
|
const { children, ...props } = arg0;
|
|
491
|
-
if (react.Children.count(children) > 1) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanels, { children: react.Children.map(children, (child) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanel, {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
if (react.Children.count(children) > 1) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanels, { children: react.Children.map(children, (child) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanel, {
|
|
492
|
+
static: true,
|
|
493
|
+
className: "hidden data-selected:block",
|
|
494
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodePanel, {
|
|
495
|
+
...props,
|
|
496
|
+
children: child
|
|
497
|
+
})
|
|
498
|
+
})) });
|
|
495
499
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodePanel, {
|
|
496
500
|
...props,
|
|
497
501
|
children
|
|
@@ -1044,7 +1048,8 @@ function Tabs(arg0) {
|
|
|
1044
1048
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanels, {
|
|
1045
1049
|
className: panelsClassName ?? "mt-5",
|
|
1046
1050
|
children: resolvedItems.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.TabPanel, {
|
|
1047
|
-
|
|
1051
|
+
static: true,
|
|
1052
|
+
className: ({ selected }) => (0, clsx.default)("focus:outline-none focus-visible:ring-2 focus-visible:ring-(--clarify-theme-tokens-colors-primary)", !selected && "hidden"),
|
|
1048
1053
|
children: item.panel
|
|
1049
1054
|
}, item.id))
|
|
1050
1055
|
})]
|
|
@@ -1736,9 +1741,6 @@ function normalizeOpenApiOperationSectionId(operation, method, path, source) {
|
|
|
1736
1741
|
if (typeof sectionId !== "string" || !sectionId) operation[CLARIFY_OPENAPI_SECTION_ID_EXTENSION] = createOpenApiOperationSectionId(operation, method, path, source);
|
|
1737
1742
|
return operation;
|
|
1738
1743
|
}
|
|
1739
|
-
function isOpenAPIHttpMethod(method) {
|
|
1740
|
-
return OPENAPI_HTTP_METHODS.includes(method.toLowerCase());
|
|
1741
|
-
}
|
|
1742
1744
|
function isRecord(value) {
|
|
1743
1745
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1744
1746
|
}
|
|
@@ -1774,19 +1776,9 @@ function listOperationsFromPathItems(items, source, spec) {
|
|
|
1774
1776
|
}
|
|
1775
1777
|
return operations;
|
|
1776
1778
|
}
|
|
1777
|
-
function
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
const sources = source ? [source] : ["path", "webhook"];
|
|
1781
|
-
for (const currentSource of sources) {
|
|
1782
|
-
const operation = (currentSource === "webhook" ? getWebhookItem(spec, path) : getPathItem(spec, path))?.[normalizedMethod];
|
|
1783
|
-
if (isRecord(operation)) return {
|
|
1784
|
-
path,
|
|
1785
|
-
method: normalizedMethod,
|
|
1786
|
-
operation: normalizeOpenApiOperationSectionId(operation, normalizedMethod, path, currentSource),
|
|
1787
|
-
source: currentSource
|
|
1788
|
-
};
|
|
1789
|
-
}
|
|
1779
|
+
function getOpenApiOperationEntryById(spec, operationId) {
|
|
1780
|
+
const matches = listOpenApiOperations(spec).filter(({ operation }) => operation.operationId === operationId);
|
|
1781
|
+
return matches.length === 1 ? matches[0] : void 0;
|
|
1790
1782
|
}
|
|
1791
1783
|
function listOpenApiOperations(spec) {
|
|
1792
1784
|
const paths = spec.paths ?? {};
|
|
@@ -3067,7 +3059,7 @@ function getRootSchemaNode(spec, schema, defaultExpanded) {
|
|
|
3067
3059
|
function EnumValueNode(arg0) {
|
|
3068
3060
|
const { node } = arg0;
|
|
3069
3061
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
3070
|
-
className: "clarify-schema-node m-0 p-0",
|
|
3062
|
+
className: (0, clsx.default)("clarify-schema-node m-0 p-0", node.visible === false && "hidden"),
|
|
3071
3063
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3072
3064
|
className: "flex min-w-0 items-start rounded-(--clarify-theme-tokens-radius-md) px-2 py-2 text-left",
|
|
3073
3065
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3132,7 +3124,7 @@ function SchemaNode(arg0) {
|
|
|
3132
3124
|
children: expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRight, { className: "h-4 w-4" })
|
|
3133
3125
|
}) : null] });
|
|
3134
3126
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
3135
|
-
className: "clarify-schema-node m-0 p-0",
|
|
3127
|
+
className: (0, clsx.default)("clarify-schema-node m-0 p-0", node.visible === false && "hidden"),
|
|
3136
3128
|
children: [hasChildren ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3137
3129
|
type: "button",
|
|
3138
3130
|
"aria-label": expanded ? t("openapi.collapse") : t("openapi.expand"),
|
|
@@ -3143,10 +3135,13 @@ function SchemaNode(arg0) {
|
|
|
3143
3135
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3144
3136
|
className: rowClassName,
|
|
3145
3137
|
children: content
|
|
3146
|
-
}), hasChildren
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3138
|
+
}), hasChildren ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3139
|
+
className: (0, clsx.default)(!expanded && "hidden"),
|
|
3140
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SchemaTree, {
|
|
3141
|
+
nodes: node.children,
|
|
3142
|
+
depth: depth + 1,
|
|
3143
|
+
forceExpanded
|
|
3144
|
+
})
|
|
3150
3145
|
}) : null]
|
|
3151
3146
|
});
|
|
3152
3147
|
}
|
|
@@ -3164,18 +3159,24 @@ function SchemaTree(arg0) {
|
|
|
3164
3159
|
}, node.key))
|
|
3165
3160
|
});
|
|
3166
3161
|
}
|
|
3167
|
-
function
|
|
3168
|
-
if (!query.
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3162
|
+
function markSchemaNodesVisibility(nodes, query) {
|
|
3163
|
+
if (!query) return nodes.map((node) => ({
|
|
3164
|
+
...node,
|
|
3165
|
+
visible: true,
|
|
3166
|
+
children: markSchemaNodesVisibility(node.children, query)
|
|
3167
|
+
}));
|
|
3168
|
+
return nodes.map((node) => {
|
|
3169
|
+
const children = markSchemaNodesVisibility(node.children, query);
|
|
3170
|
+
const searchableText = getSchemaSearchText(node.name, {
|
|
3172
3171
|
type: node.type,
|
|
3173
3172
|
description: node.description,
|
|
3174
3173
|
pattern: node.details
|
|
3175
|
-
})
|
|
3174
|
+
});
|
|
3175
|
+
return {
|
|
3176
3176
|
...node,
|
|
3177
|
+
visible: fuzzyMatch(searchableText, query) || children.some((child) => child.visible),
|
|
3177
3178
|
children
|
|
3178
|
-
}
|
|
3179
|
+
};
|
|
3179
3180
|
});
|
|
3180
3181
|
}
|
|
3181
3182
|
function SchemaProperties(arg0) {
|
|
@@ -3183,20 +3184,22 @@ function SchemaProperties(arg0) {
|
|
|
3183
3184
|
const t = require_i18n.useBuiltInText();
|
|
3184
3185
|
const root = getRootSchemaNode(spec, schema, defaultExpanded);
|
|
3185
3186
|
if (!root || root.children.length === 0) return null;
|
|
3186
|
-
const
|
|
3187
|
-
const
|
|
3187
|
+
const normalizedQuery = query.trim();
|
|
3188
|
+
const nodes = markSchemaNodesVisibility(root.children, normalizedQuery);
|
|
3189
|
+
const hasQuery = Boolean(normalizedQuery);
|
|
3190
|
+
const hasVisibleNodes = nodes.some((node) => node.visible);
|
|
3188
3191
|
const resolvedEmptyText = emptyText ?? t("openapi.noBodyProperties");
|
|
3189
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
3192
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(OpenApiDocumentSection, {
|
|
3190
3193
|
title,
|
|
3191
3194
|
level: 4,
|
|
3192
3195
|
bodyClassName: "clarify-schema-properties not-prose",
|
|
3193
|
-
children:
|
|
3194
|
-
nodes
|
|
3196
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SchemaTree, {
|
|
3197
|
+
nodes,
|
|
3195
3198
|
forceExpanded: hasQuery
|
|
3196
|
-
})
|
|
3197
|
-
className: "m-0 py-2 text-sm/5 text-(--clarify-ui-text-soft)",
|
|
3199
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
3200
|
+
className: (0, clsx.default)("m-0 py-2 text-sm/5 text-(--clarify-ui-text-soft)", hasVisibleNodes && "hidden"),
|
|
3198
3201
|
children: resolvedEmptyText
|
|
3199
|
-
})
|
|
3202
|
+
})]
|
|
3200
3203
|
});
|
|
3201
3204
|
}
|
|
3202
3205
|
function ParameterList(arg0) {
|
|
@@ -4748,7 +4751,7 @@ function requestBodyForExample(spec, content, exampleKey) {
|
|
|
4748
4751
|
const example = getExampleEntries(content, spec).find((entry) => !entry.generated && entry.key === exampleKey);
|
|
4749
4752
|
return example ? stringifyExample(example.value) : initialRequestBody(spec, content);
|
|
4750
4753
|
}
|
|
4751
|
-
function useOpenApiRequestTarget(spec, path, operation, operationSource) {
|
|
4754
|
+
function useOpenApiRequestTarget(spec, path, operation, operationSource, requestExample = "") {
|
|
4752
4755
|
const servers = getServers(spec, operation, path, operationSource);
|
|
4753
4756
|
const [selectedServerKey, setSelectedServerKey] = (0, react.useState)(getServerKey(servers[0], 0));
|
|
4754
4757
|
const selectedServer = servers.find((server, index) => getServerKey(server, index) === selectedServerKey) ?? servers[0];
|
|
@@ -4763,7 +4766,7 @@ function useOpenApiRequestTarget(spec, path, operation, operationSource) {
|
|
|
4763
4766
|
const requestContents = getMediaTypeEntries(getRequestBody$1(spec, operation)?.content, spec);
|
|
4764
4767
|
const [mediaType, setMediaType] = (0, react.useState)(requestContents[0]?.mediaType ?? "");
|
|
4765
4768
|
const selectedContent = requestContents.find((entry) => entry.mediaType === mediaType) ?? requestContents[0];
|
|
4766
|
-
const [body, setBody] = (0, react.useState)(
|
|
4769
|
+
const [body, setBody] = (0, react.useState)(requestBodyForExample(spec, selectedContent?.value, requestExample));
|
|
4767
4770
|
const [bodyFiles, setBodyFiles] = (0, react.useState)({});
|
|
4768
4771
|
function selectServer(value) {
|
|
4769
4772
|
const nextServer = servers.find((server, index) => getServerKey(server, index) === value) ?? servers[0];
|
|
@@ -4925,12 +4928,12 @@ function parameterGroupLabel(location, t) {
|
|
|
4925
4928
|
return t("openapi.queryParameters");
|
|
4926
4929
|
}
|
|
4927
4930
|
function OpenApiRequestWorkbench(arg0) {
|
|
4928
|
-
const { spec, path, method, operation, operationSource = "path", compact = false, onClose } = arg0;
|
|
4931
|
+
const { spec, path, method, operation, operationSource = "path", requestExample, compact = false, onClose } = arg0;
|
|
4929
4932
|
const t = require_i18n.useBuiltInText();
|
|
4930
4933
|
const parameters = getOperationParameters(spec, path, operation, operationSource);
|
|
4931
|
-
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);
|
|
4934
|
+
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);
|
|
4932
4935
|
const requestExamples = getRequestExampleEntries(parameters, selectedContent?.value);
|
|
4933
|
-
const [selectedRequestExampleKey, setSelectedRequestExampleKey] = (0, react.useState)(requestExamples[0]?.key ?? "");
|
|
4936
|
+
const [selectedRequestExampleKey, setSelectedRequestExampleKey] = (0, react.useState)(requestExample ?? requestExamples[0]?.key ?? "");
|
|
4934
4937
|
const currentRequestExampleKey = requestExamples.some((example) => example.key === selectedRequestExampleKey) ? selectedRequestExampleKey : requestExamples[0]?.key ?? "";
|
|
4935
4938
|
const parameterState = useOpenApiParameterState(spec, parameters, (parameter) => initialParameterValue(spec, parameter), currentRequestExampleKey);
|
|
4936
4939
|
const { parameterValues, parameterEnabled, parameterIssues, setParameterGroupValues, setParameterIncluded, updateParameterValue, applyParameterExample } = parameterState;
|
|
@@ -4945,6 +4948,7 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
4945
4948
|
})).filter((group) => group.parameters.length > 0);
|
|
4946
4949
|
const pathParameters = parameters.filter((parameter) => parameter.in === "path");
|
|
4947
4950
|
const hasRequestConfiguration = authOptions.length > 0 || serverVariableEntries.length > 0 || parameters.length > 0 || requestContents.length > 0;
|
|
4951
|
+
const showResponse = compact || Boolean(exchange || error);
|
|
4948
4952
|
function applyRequestExample(exampleKey) {
|
|
4949
4953
|
setSelectedRequestExampleKey(exampleKey);
|
|
4950
4954
|
applyParameterExample(exampleKey);
|
|
@@ -5156,9 +5160,9 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
5156
5160
|
});
|
|
5157
5161
|
}
|
|
5158
5162
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5159
|
-
className: (0, clsx.default)("clarify-
|
|
5163
|
+
className: (0, clsx.default)("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)"),
|
|
5160
5164
|
children: [renderHeader(), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5161
|
-
className: "grid min-h-0 flex-1 gap-0 px-0 lg:grid-cols-[minmax(0,1.12fr)_minmax(22rem,0.88fr)]",
|
|
5165
|
+
className: (0, clsx.default)("grid min-h-0 flex-1 gap-0 px-0", showResponse && "lg:grid-cols-[minmax(0,1.12fr)_minmax(22rem,0.88fr)]"),
|
|
5162
5166
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5163
5167
|
className: "flex min-h-0 min-w-0 flex-col overflow-y-auto",
|
|
5164
5168
|
children: [
|
|
@@ -5195,13 +5199,13 @@ function OpenApiRequestWorkbench(arg0) {
|
|
|
5195
5199
|
})
|
|
5196
5200
|
}) : null
|
|
5197
5201
|
]
|
|
5198
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5202
|
+
}), showResponse ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5199
5203
|
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",
|
|
5200
5204
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OpenApiResponseViewer, {
|
|
5201
5205
|
exchange,
|
|
5202
5206
|
error
|
|
5203
5207
|
})
|
|
5204
|
-
})]
|
|
5208
|
+
}) : null]
|
|
5205
5209
|
})]
|
|
5206
5210
|
});
|
|
5207
5211
|
}
|
|
@@ -5215,7 +5219,7 @@ function OpenApiRequestDialog(arg0) {
|
|
|
5215
5219
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogBackdrop, { className: "fixed inset-0 bg-(--clarify-ui-overlay-background) backdrop-blur-sm" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5216
5220
|
className: "fixed inset-0 grid place-items-center overflow-y-auto p-3 sm:p-6",
|
|
5217
5221
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_headlessui_react.DialogPanel, {
|
|
5218
|
-
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))]",
|
|
5222
|
+
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))]",
|
|
5219
5223
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_headlessui_react.DialogTitle, {
|
|
5220
5224
|
className: "sr-only",
|
|
5221
5225
|
children: t("openapi.tryRequest")
|
|
@@ -5745,10 +5749,10 @@ Object.defineProperty(exports, "getMediaTypeEntries", {
|
|
|
5745
5749
|
return getMediaTypeEntries;
|
|
5746
5750
|
}
|
|
5747
5751
|
});
|
|
5748
|
-
Object.defineProperty(exports, "
|
|
5752
|
+
Object.defineProperty(exports, "getOpenApiOperationEntryById", {
|
|
5749
5753
|
enumerable: true,
|
|
5750
5754
|
get: function() {
|
|
5751
|
-
return
|
|
5755
|
+
return getOpenApiOperationEntryById;
|
|
5752
5756
|
}
|
|
5753
5757
|
});
|
|
5754
5758
|
Object.defineProperty(exports, "getRequestBody", {
|
|
@@ -5782,4 +5786,4 @@ Object.defineProperty(exports, "primitives_exports", {
|
|
|
5782
5786
|
}
|
|
5783
5787
|
});
|
|
5784
5788
|
|
|
5785
|
-
//# sourceMappingURL=OpenApiOperation-
|
|
5789
|
+
//# sourceMappingURL=OpenApiOperation-C77uiDjW.cjs.map
|