@clarify-labs/renderer 0.11.7 → 0.11.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/output/{ClarifyShell-CKvXZj0f.js → ClarifyShell-CGoRrkn1.js} +120 -68
- package/output/ClarifyShell-CGoRrkn1.js.map +1 -0
- package/output/{ClarifyShell-CukbPOAd.cjs → ClarifyShell-D8OGIUWq.cjs} +120 -68
- package/output/ClarifyShell-D8OGIUWq.cjs.map +1 -0
- package/output/{MermaidViewer-FOg263MO.cjs → MermaidViewer-CFqy0BnO.cjs} +3 -3
- package/output/{MermaidViewer-FOg263MO.cjs.map → MermaidViewer-CFqy0BnO.cjs.map} +1 -1
- package/output/{MermaidViewer-_tpH0JNn.js → MermaidViewer-TdU3sRfy.js} +3 -3
- package/output/{MermaidViewer-_tpH0JNn.js.map → MermaidViewer-TdU3sRfy.js.map} +1 -1
- package/output/{OpenApiOperation-c-I6Nw9j.cjs → OpenApiOperation-Bd68uxXq.cjs} +9 -8
- package/output/{OpenApiOperation-c-I6Nw9j.cjs.map → OpenApiOperation-Bd68uxXq.cjs.map} +1 -1
- package/output/{OpenApiOperation-Dv9u2GEJ.js → OpenApiOperation-vCuIKI4O.js} +9 -8
- package/output/{OpenApiOperation-Dv9u2GEJ.js.map → OpenApiOperation-vCuIKI4O.js.map} +1 -1
- package/output/{PageActions-DviEypf6.js → PageActions-CqXr0SyW.js} +112 -75
- package/output/PageActions-CqXr0SyW.js.map +1 -0
- package/output/{PageActions-ob2OJusG.cjs → PageActions-DPYXFL6N.cjs} +117 -74
- package/output/PageActions-DPYXFL6N.cjs.map +1 -0
- package/output/{SearchDialog-89JAjQMh.js → SearchDialog-BQcbGNvl.js} +29 -20
- package/output/SearchDialog-BQcbGNvl.js.map +1 -0
- package/output/{SearchDialog-CTiUIKeo.cjs → SearchDialog-CExM6Bxd.cjs} +29 -20
- package/output/SearchDialog-CExM6Bxd.cjs.map +1 -0
- package/output/app/AppShell.d.ts +1 -2
- package/output/app/BuiltInNotFoundPage.d.ts +1 -0
- package/output/app/PageActions.d.ts +0 -1
- package/output/client.cjs +3 -3
- package/output/client.js +3 -3
- package/output/context.d.ts +2 -1
- package/output/core/context.d.ts +9 -0
- package/output/core/types.d.ts +4 -0
- package/output/{i18n-Cff810G_.js → i18n-D4O3z-sP.js} +24 -3
- package/output/i18n-D4O3z-sP.js.map +1 -0
- package/output/{i18n-Cjfk1N7i.cjs → i18n-Dw4Jlho-.cjs} +36 -3
- package/output/i18n-Dw4Jlho-.cjs.map +1 -0
- package/output/index.cjs +11 -7
- package/output/index.cjs.map +1 -1
- package/output/index.d.ts +3 -2
- package/output/index.js +8 -8
- package/output/index.js.map +1 -1
- package/output/preview.cjs +6 -6
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +6 -6
- package/output/preview.js.map +1 -1
- package/output/{render-BxiVlY6q.cjs → render-CqBz1q82.cjs} +2 -2
- package/output/{render-BxiVlY6q.cjs.map → render-CqBz1q82.cjs.map} +1 -1
- package/output/{render-B41PHjt8.js → render-DQRifjrn.js} +2 -2
- package/output/{render-B41PHjt8.js.map → render-DQRifjrn.js.map} +1 -1
- package/output/renderer.css +4 -0
- package/output/server.cjs +2 -2
- package/output/server.js +2 -2
- package/output/shell/ContentActions.d.ts +0 -1
- package/output/shell/Header.d.ts +1 -2
- package/output/shell/Search.d.ts +3 -6
- package/output/shell/mobile.d.ts +1 -2
- package/output/shell/search/SearchDialog.d.ts +2 -1
- package/output/shell/search/pagefind.d.ts +3 -2
- package/output/theme/ThemeRoot.d.ts +0 -2
- package/output/theme/randomTheme.d.ts +2 -1
- package/output/utils/href.d.ts +2 -0
- package/package.json +1 -1
- package/output/ClarifyShell-CKvXZj0f.js.map +0 -1
- package/output/ClarifyShell-CukbPOAd.cjs.map +0 -1
- package/output/PageActions-DviEypf6.js.map +0 -1
- package/output/PageActions-ob2OJusG.cjs.map +0 -1
- package/output/SearchDialog-89JAjQMh.js.map +0 -1
- package/output/SearchDialog-CTiUIKeo.cjs.map +0 -1
- package/output/i18n-Cff810G_.js.map +0 -1
- package/output/i18n-Cjfk1N7i.cjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as useConfig,
|
|
2
|
-
import { C as isExternalHref,
|
|
1
|
+
import { a as useConfig, l as useLocale, o as useConfigOptional, t as useBuiltInText } from "./i18n-D4O3z-sP.js";
|
|
2
|
+
import { C as isExternalHref, D 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-CqXr0SyW.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";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { Dialog, DialogBackdrop, DialogPanel, DialogTitle, Listbox, ListboxButton, ListboxOption, ListboxOptions, Tab, TabGroup, TabList, TabPanel, TabPanels, Transition } from "@headlessui/react";
|
|
8
9
|
import { AlertTriangle, ArrowRight, ArrowUpRight, Check, CheckCircle2, CheckIcon, ChevronDown, ChevronDownIcon, ChevronRight, ChevronsUpDownIcon, CircleAlertIcon, CircleCheck, Clipboard, ClipboardIcon, CodeIcon, CopyIcon, DownloadIcon, EraserIcon, File, FileX2Icon, Folder, FolderOpen, Info, InfoIcon, Lightbulb, LinkIcon, LoaderCircleIcon, Maximize2, PackageIcon, RotateCcwIcon, SearchIcon, SendIcon, ServerIcon, X, XCircle, XIcon } from "lucide-react";
|
|
9
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { motion, useInView } from "framer-motion";
|
|
11
11
|
import { create } from "zustand";
|
|
12
12
|
import ReactMarkdown from "react-markdown";
|
|
@@ -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-TdU3sRfy.js"));
|
|
257
257
|
var mermaidModulePromise;
|
|
258
258
|
async function loadMermaid() {
|
|
259
259
|
mermaidModulePromise = mermaidModulePromise ?? import("mermaid").then((module) => module.default);
|
|
@@ -5498,6 +5498,7 @@ function EndpointIdentity(arg0) {
|
|
|
5498
5498
|
}
|
|
5499
5499
|
function OpenApiOperation(arg0) {
|
|
5500
5500
|
const { spec, path, method, operation, operationSource = "path" } = arg0;
|
|
5501
|
+
const playgroundEnabled = useConfigOptional()?.features.openapi.playground ?? true;
|
|
5501
5502
|
const id = getOpenApiOperationSectionId(operation);
|
|
5502
5503
|
const summary = operation.summary ?? `${method} ${path}`;
|
|
5503
5504
|
const description = operation.description;
|
|
@@ -5527,9 +5528,9 @@ function OpenApiOperation(arg0) {
|
|
|
5527
5528
|
onSelectServer: serverState.onSelectServer,
|
|
5528
5529
|
onChangeServerVariable: serverState.onChangeServerVariable,
|
|
5529
5530
|
onToggleServer: serverState.onToggleServer,
|
|
5530
|
-
onTryRequest: () => setRequestOpen(true)
|
|
5531
|
+
onTryRequest: playgroundEnabled ? () => setRequestOpen(true) : void 0
|
|
5531
5532
|
}),
|
|
5532
|
-
/* @__PURE__ */ jsx(OpenApiRequestDialog, {
|
|
5533
|
+
playgroundEnabled ? /* @__PURE__ */ jsx(OpenApiRequestDialog, {
|
|
5533
5534
|
open: requestOpen,
|
|
5534
5535
|
onClose: () => setRequestOpen(false),
|
|
5535
5536
|
spec,
|
|
@@ -5537,7 +5538,7 @@ function OpenApiOperation(arg0) {
|
|
|
5537
5538
|
method,
|
|
5538
5539
|
operation,
|
|
5539
5540
|
operationSource
|
|
5540
|
-
}),
|
|
5541
|
+
}) : null,
|
|
5541
5542
|
/* @__PURE__ */ jsx(EndpointRequest, {
|
|
5542
5543
|
spec,
|
|
5543
5544
|
path,
|
|
@@ -5573,4 +5574,4 @@ function OpenApiOperation(arg0) {
|
|
|
5573
5574
|
//#endregion
|
|
5574
5575
|
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 };
|
|
5575
5576
|
|
|
5576
|
-
//# sourceMappingURL=OpenApiOperation-
|
|
5577
|
+
//# sourceMappingURL=OpenApiOperation-vCuIKI4O.js.map
|