@umami/shiso 1.12.0 → 1.14.0
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/bin/shiso.mjs +0 -0
- package/dist/chunks/App.js +166 -139
- package/dist/chunks/abnfDiagram-VCTEODGH.js +109 -0
- package/dist/chunks/arc.js +130 -0
- package/dist/chunks/architecture-7GRP2DOG.js +4 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +7466 -0
- package/dist/chunks/array.js +8 -0
- package/dist/chunks/blockDiagram-I7D4REHJ.js +2546 -0
- package/dist/chunks/c4Diagram-7LVT6UL2.js +3654 -0
- package/dist/chunks/channel.js +9 -0
- package/dist/chunks/chunk-2Q5K7J3B.js +21 -0
- package/dist/chunks/chunk-4HAMMTFA.js +6106 -0
- package/dist/chunks/chunk-5VM5RSS4.js +21 -0
- package/dist/chunks/chunk-75Z2AOVW.js +2185 -0
- package/dist/chunks/chunk-DU6HZSFF.js +8729 -0
- package/dist/chunks/chunk-F27PBJKO.js +95 -0
- package/dist/chunks/chunk-FOHPRMQF.js +27162 -0
- package/dist/chunks/chunk-GMAD6QVW.js +2369 -0
- package/dist/chunks/chunk-GVQU2GXP.js +58 -0
- package/dist/chunks/chunk-IMKFNOWR.js +2593 -0
- package/dist/chunks/chunk-JWPE2WC7.js +12 -0
- package/dist/chunks/chunk-L3NEJ4N5.js +420 -0
- package/dist/chunks/chunk-OSK3NFVY.js +1029 -0
- package/dist/chunks/chunk-P2QGCYS3.js +95 -0
- package/dist/chunks/chunk-POPQ4Y6H.js +33 -0
- package/dist/chunks/chunk-PWAF6VOD.js +467 -0
- package/dist/chunks/chunk-SHT3W25Y.js +4813 -0
- package/dist/chunks/chunk-SVP7TREG.js +686 -0
- package/dist/chunks/chunk-TICWLB2K.js +3800 -0
- package/dist/chunks/chunk-XXDRQBXY.js +12 -0
- package/dist/chunks/chunk-Y2CYZVJY.js +15 -0
- package/dist/chunks/classDiagram-ZZMXUADV.js +33 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY.js +33 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.js +4268 -0
- package/dist/chunks/cynefin-OW5HDTMX.js +4 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ.js +482 -0
- package/dist/chunks/cytoscape.esm.js +28282 -0
- package/dist/chunks/dagre-GXQ25YYZ.js +583 -0
- package/dist/chunks/dagre.js +4235 -0
- package/dist/chunks/defaultLocale.js +246 -0
- package/dist/chunks/diagram-S7CK7UJ4.js +402 -0
- package/dist/chunks/diagram-UQ7AKVKN.js +291 -0
- package/dist/chunks/diagram-VSXAHHWV.js +553 -0
- package/dist/chunks/diagram-VX7I27RA.js +798 -0
- package/dist/chunks/diagram-Z3DM3KII.js +186 -0
- package/dist/chunks/dist.js +92 -0
- package/dist/chunks/docs.js +1163 -347
- package/dist/chunks/ebnfDiagram-PWID7BFC.js +123 -0
- package/dist/chunks/erDiagram-RLTQ6QDP.js +2295 -0
- package/dist/chunks/eventmodeling-NTZA5JFV.js +4 -0
- package/dist/chunks/flowDiagram-HODETNUW.js +17 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +3928 -0
- package/dist/chunks/gitGraph-4MIJSDKK.js +4 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX.js +1153 -0
- package/dist/chunks/graphlib.js +4194 -0
- package/dist/chunks/info-A6RAGUB7.js +4 -0
- package/dist/chunks/infoDiagram-27XIBGKW.js +25 -0
- package/dist/chunks/init.js +14 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U.js +971 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE.js +1226 -0
- package/dist/chunks/kanban-definition-UXKFOSKX.js +1241 -0
- package/dist/chunks/katex.js +26463 -0
- package/dist/chunks/line.js +48 -0
- package/dist/chunks/linear.js +391 -0
- package/dist/chunks/mermaid-parser.core.js +754 -0
- package/dist/chunks/mermaid.core.js +4898 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX.js +1309 -0
- package/dist/chunks/ordinal.js +84 -0
- package/dist/chunks/packet-AYTQ26CC.js +4 -0
- package/dist/chunks/path.js +106 -0
- package/dist/chunks/pegDiagram-XKGWAZYB.js +115 -0
- package/dist/chunks/pie-WAS4IAKB.js +4 -0
- package/dist/chunks/pieDiagram-E7YTZNPT.js +297 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC.js +2234 -0
- package/dist/chunks/radar-RG4KPBEZ.js +4 -0
- package/dist/chunks/railroad-74A4TZTK.js +4 -0
- package/dist/chunks/railroad-abnf-HS5TGJTU.js +4 -0
- package/dist/chunks/railroad-ebnf-LZEXJU2U.js +4 -0
- package/dist/chunks/railroad-peg-WCYAUIDC.js +4 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU.js +89 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE.js +2464 -0
- package/dist/chunks/rough.esm.js +1396 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB.js +1308 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4.js +5445 -0
- package/dist/chunks/sizeCapture-INFHLROL.js +56 -0
- package/dist/chunks/src.js +2653 -0
- package/dist/chunks/stateDiagram-D77RDMKH.js +368 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH.js +33 -0
- package/dist/chunks/swimlanes-42K2YHIH.js +6925 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N.js +32 -0
- package/dist/chunks/timeline-definition-24CTP7MA.js +1507 -0
- package/dist/chunks/treeView-Q6P3EWNA.js +4 -0
- package/dist/chunks/treemap-WGGIJYW6.js +4 -0
- package/dist/chunks/vennDiagram-4TSXK5OY.js +2803 -0
- package/dist/chunks/wardley-WFR3VGLG.js +4 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4.js +877 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z.js +2698 -0
- package/dist/components.js +2 -2
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +2 -2
- package/docs.schema.json +1 -1
- package/package.json +2 -1
- package/scripts/expand-navigation-globs.mjs +77 -8
- package/scripts/lib/openapi.mjs +24 -13
- package/src/components/CodeBlock.tsx +36 -0
- package/src/components/Docs.tsx +44 -21
- package/src/components/OpenApiOperation.tsx +39 -52
- package/src/components/SideNav.tsx +8 -3
- package/src/components/docs/Changelog.tsx +163 -0
- package/src/components/docs/Mermaid.tsx +164 -0
- package/src/components/docs/Panel.tsx +23 -0
- package/src/components/docs/Param.tsx +6 -0
- package/src/components/docs/PropertiesTable.tsx +52 -36
- package/src/components/docs/Tiles.tsx +59 -0
- package/src/components/docs/Tree.tsx +359 -0
- package/src/components/docs/Update.tsx +72 -0
- package/src/components/docs/index.ts +8 -2
- package/src/components/docs/panel-context.tsx +25 -0
- package/src/components/docs/styles.ts +47 -6
- package/src/components/icons/index.ts +4 -0
- package/src/lib/openapi.ts +17 -1
- package/src/lib/rehype-shiki.ts +18 -1
- package/types/components.d.ts +83 -14
- package/src/components/docs/ParamField.tsx +0 -45
- package/src/components/docs/ResponseField.tsx +0 -36
package/dist/chunks/App.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as useFloatingNodeId, $n as useRenderElement, $t as resolveIcon, A as safePolygon, An as isElementVisible, B as attachPreventUnmountOnClose, Bn as getTarget, Cn as getNextTabbable, D as useAnchorPositioning, Dn as findNonDisabledListIndex, Dt as Collapsible, E as getDisabledMountTransitionStyles, En as isOutsideEvent, Er as useNavigate, Et as Expandable, F as createInitialPopupStoreState, Fn as stopEvent, Ft as useCompositeItem, G as useTriggerDataForwarding, Gn as jsdom, H as useImplicitActiveTrigger, Hn as ARROW_LEFT, I as popupStoreSelectors, In as getFloatingFocusElement, J as useDismiss, Jn as useBaseUiId, K as useSyncedFloatingRootContext, Kn as webkit, L as PopupTriggerMap, Ln as isTypeableCombobox, M as useHoverFloatingInteraction, Mn as isListIndexDisabled, Mt as CodeGroup, N as useFocus, Nn as isVirtualClick, Nt as COMPOSITE_KEYS, O as popupTransitionStateMapping, On as getMaxListIndex, Ot as CollapsibleContent, P as usePopupHandleStore, Pn as isVirtualPointerEvent, Pt as inertValue, Q as FloatingTree, Qn as cn, R as FOCUSABLE_POPUP_PROPS, Rn as activeElement, Sn as useDirection, Sr as Route, T as usePositioner, Tn as getTabbableBeforeElement, Tr as useLocation, Tt as renderInlineMarkdown, U as useOpenStateTransitions, Un as ARROW_RIGHT, V as setPopupOpenState, Vn as ARROW_DOWN, W as usePopupInteractionProps, Wn as ARROW_UP, X as FloatingFocusManager, Xn as useTimeout, Xt as Badge$1, Y as useClick, Yn as useId$2, Yt as Badge, Z as FloatingNode, Zn as Button, _n as triggerPress, _r as Check, a as DialogTitle, an as useAnimationFrame, ar as ownerDocument, at as POPUP_COLLISION_AVOIDANCE, br as Link, bt as usePanelContent, c as useOpenInteractionType, cn as escapeKey, cr as useIsoLayoutEffect, ct as fastComponent, d as useScrollLock, dn as itemPress, dr as getParentNode, en as getIcon, er as EMPTY_ARRAY, et as useFloatingParentNodeId, f as DialogPortal$1, fn as listNavigation, fr as getWindow, g as DialogBackdrop, gn as triggerHover, gr as ChevronRight, gt as PropertiesTable, h as DialogClose, hn as triggerFocus, hr as X$1, i as DialogContent$1, in as useCompositeListItem, ir as dispatchClickWithModifiers, it as DROPDOWN_COLLISION_AVOIDANCE, j as useHoverReferenceInteraction, jn as isIndexOutOfListBounds, k as pressableTriggerOpenStateMapping, kn as getMinListIndex, kt as CollapsibleTrigger, l as DialogTitle$1, ln as focusOut, lr as useStableCallback, lt as fastComponentRef, m as DialogPopup, mn as siblingOpen, mr as isLastTraversableNode, n as ZoomableImage, nn as useAnimationsFinished, nr as useMergedRefs, nt as FloatingTreeStore, o as DialogTrigger, on as createChangeEventDetails, or as useCompositeRootContext, ot as enqueueFocus, p as InternalBackdrop, pn as outsidePress, pr as isHTMLElement, q as ReactStore, qn as mac, r as Dialog$1, rn as useValueAsRef, rr as useButton, rt as FloatingPortal, s as DialogTrigger$1, sn as cancelOpen, sr as mergeProps$1, st as FocusGuard, t as docs_exports, tn as useOpenChangeComplete, tr as EMPTY_OBJECT, tt as useFloatingTree, u as DialogRoot, un as imperativeAction, ur as useRefWithInit, vn as CompositeList, vr as createLucideIcon, w as TooltipProvider, wn as getTabbableAfterElement, wr as Routes, xn as addEventListener, xr as Navigate, yn as Mermaid, yt as PanelProvider, z as PopupHandleAttachment, zn as contains } from "./docs.js";
|
|
2
2
|
import { n as highlightTerms } from "./search.js";
|
|
3
3
|
import { resolveSearchProvider } from "../search.js";
|
|
4
4
|
import * as React from "react";
|
|
@@ -7,7 +7,7 @@ import "@fontsource-variable/inter/index.css";
|
|
|
7
7
|
import "@fontsource/jetbrains-mono/400.css";
|
|
8
8
|
import "@umami/shiso/styles.css";
|
|
9
9
|
import { MDXProvider } from "@mdx-js/react";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import * as ReactDOM from "react-dom";
|
|
12
12
|
import shiso from "virtual:shiso-config";
|
|
13
13
|
import rawConfig from "virtual:shiso-docs-config";
|
|
@@ -303,7 +303,7 @@ const __iconNode = [
|
|
|
303
303
|
const Sun = createLucideIcon("sun", __iconNode);
|
|
304
304
|
|
|
305
305
|
//#endregion
|
|
306
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
306
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/root/ScrollAreaRootContext.mjs
|
|
307
307
|
const ScrollAreaRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
308
308
|
ScrollAreaRootContext.displayName = "ScrollAreaRootContext";
|
|
309
309
|
function useScrollAreaRootContext() {
|
|
@@ -313,7 +313,7 @@ function useScrollAreaRootContext() {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
//#endregion
|
|
316
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
316
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/utils/getOffset.mjs
|
|
317
317
|
function getOffset$1(element, prop, axis) {
|
|
318
318
|
if (!element) return 0;
|
|
319
319
|
const styles = getComputedStyle(element);
|
|
@@ -324,7 +324,7 @@ function getOffset$1(element, prop, axis) {
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
//#endregion
|
|
327
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
327
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/styles.mjs
|
|
328
328
|
const DISABLE_SCROLLBAR_CLASS_NAME = "base-ui-disable-scrollbar";
|
|
329
329
|
const styleDisableScrollbar = {
|
|
330
330
|
className: DISABLE_SCROLLBAR_CLASS_NAME,
|
|
@@ -340,7 +340,7 @@ const styleDisableScrollbar = {
|
|
|
340
340
|
styleDisableScrollbar.getElement.displayName = "styleDisableScrollbar.getElement";
|
|
341
341
|
|
|
342
342
|
//#endregion
|
|
343
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
343
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/root/stateAttributes.mjs
|
|
344
344
|
const attr = (name) => (value) => value ? { [name]: "" } : null;
|
|
345
345
|
const scrollAreaStateAttributesMapping = {
|
|
346
346
|
hasOverflowX: attr("data-has-overflow-x"),
|
|
@@ -353,7 +353,7 @@ const scrollAreaStateAttributesMapping = {
|
|
|
353
353
|
};
|
|
354
354
|
|
|
355
355
|
//#endregion
|
|
356
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
356
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
|
|
357
357
|
const CSPContext = /*#__PURE__*/ React.createContext(void 0);
|
|
358
358
|
CSPContext.displayName = "CSPContext";
|
|
359
359
|
const DEFAULT_CSP_CONTEXT_VALUE = { disableStyleElements: false };
|
|
@@ -362,7 +362,7 @@ function useCSPContext() {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
//#endregion
|
|
365
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
365
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/root/ScrollAreaRoot.mjs
|
|
366
366
|
const DEFAULT_COORDS = {
|
|
367
367
|
x: 0,
|
|
368
368
|
y: 0
|
|
@@ -622,7 +622,7 @@ function normalizeOverflowEdgeThreshold(threshold) {
|
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
625
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/viewport/ScrollAreaViewportContext.mjs
|
|
626
626
|
const ScrollAreaViewportContext = /*#__PURE__*/ React.createContext(void 0);
|
|
627
627
|
ScrollAreaViewportContext.displayName = "ScrollAreaViewportContext";
|
|
628
628
|
function useScrollAreaViewportContext() {
|
|
@@ -632,13 +632,13 @@ function useScrollAreaViewportContext() {
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
//#endregion
|
|
635
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
635
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/clamp.mjs
|
|
636
636
|
function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
|
|
637
637
|
return Math.max(min, Math.min(val, max));
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
//#endregion
|
|
641
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
641
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/scrollEdges.mjs
|
|
642
642
|
const SCROLL_EDGE_TOLERANCE_PX = 1;
|
|
643
643
|
function normalizeScrollOffset(value, max) {
|
|
644
644
|
if (max <= 0) return 0;
|
|
@@ -654,7 +654,7 @@ function normalizeScrollOffset(value, max) {
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
//#endregion
|
|
657
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
657
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/viewport/ScrollAreaViewport.mjs
|
|
658
658
|
const OVERFLOW_EDGE_VARS = [
|
|
659
659
|
"--scroll-area-overflow-x-start",
|
|
660
660
|
"--scroll-area-overflow-x-end",
|
|
@@ -909,7 +909,7 @@ function applyOverscrollThumb(thumbEl, sizeVar, scrollFromStart, maxScroll, cont
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
//#endregion
|
|
912
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
912
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbarContext.mjs
|
|
913
913
|
const ScrollAreaScrollbarContext = /*#__PURE__*/ React.createContext(void 0);
|
|
914
914
|
ScrollAreaScrollbarContext.displayName = "ScrollAreaScrollbarContext";
|
|
915
915
|
function useScrollAreaScrollbarContext() {
|
|
@@ -919,7 +919,7 @@ function useScrollAreaScrollbarContext() {
|
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
//#endregion
|
|
922
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
922
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbar.mjs
|
|
923
923
|
/**
|
|
924
924
|
* A vertical or horizontal scrollbar for the scroll area.
|
|
925
925
|
* Renders a `<div>` element.
|
|
@@ -1042,7 +1042,7 @@ const ScrollAreaScrollbar = /*#__PURE__*/ React.forwardRef(function ScrollAreaSc
|
|
|
1042
1042
|
ScrollAreaScrollbar.displayName = "ScrollAreaScrollbar";
|
|
1043
1043
|
|
|
1044
1044
|
//#endregion
|
|
1045
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1045
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/content/ScrollAreaContent.mjs
|
|
1046
1046
|
/**
|
|
1047
1047
|
* A container for the content of the scroll area.
|
|
1048
1048
|
* Renders a `<div>` element.
|
|
@@ -1083,7 +1083,7 @@ const ScrollAreaContent = /*#__PURE__*/ React.forwardRef(function ScrollAreaCont
|
|
|
1083
1083
|
ScrollAreaContent.displayName = "ScrollAreaContent";
|
|
1084
1084
|
|
|
1085
1085
|
//#endregion
|
|
1086
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1086
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/thumb/ScrollAreaThumb.mjs
|
|
1087
1087
|
/**
|
|
1088
1088
|
* The draggable part of the scrollbar that indicates the current scroll position.
|
|
1089
1089
|
* Renders a `<div>` element.
|
|
@@ -1116,7 +1116,7 @@ const ScrollAreaThumb = /*#__PURE__*/ React.forwardRef(function ScrollAreaThumb(
|
|
|
1116
1116
|
ScrollAreaThumb.displayName = "ScrollAreaThumb";
|
|
1117
1117
|
|
|
1118
1118
|
//#endregion
|
|
1119
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1119
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/scroll-area/corner/ScrollAreaCorner.mjs
|
|
1120
1120
|
/**
|
|
1121
1121
|
* A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.
|
|
1122
1122
|
* Renders a `<div>` element.
|
|
@@ -1181,6 +1181,16 @@ function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
|
1181
1181
|
|
|
1182
1182
|
//#endregion
|
|
1183
1183
|
//#region src/components/CodeBlock.tsx
|
|
1184
|
+
function reactChildrenToText(node) {
|
|
1185
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
1186
|
+
if (Array.isArray(node)) return node.map(reactChildrenToText).join("");
|
|
1187
|
+
if (node && typeof node === "object" && "props" in node) {
|
|
1188
|
+
const props = node.props;
|
|
1189
|
+
if (typeof props?.value === "string") return props.value;
|
|
1190
|
+
return reactChildrenToText(props?.children);
|
|
1191
|
+
}
|
|
1192
|
+
return "";
|
|
1193
|
+
}
|
|
1184
1194
|
/**
|
|
1185
1195
|
* Joins the text of each rendered line. Lines marked as removed by
|
|
1186
1196
|
* `// [!code --]` are skipped so the clipboard holds the "after" state; in a
|
|
@@ -1193,9 +1203,15 @@ function copyText(pre, language) {
|
|
|
1193
1203
|
return lines.filter((line) => language === "diff" || line.dataset.diff !== "remove").map((line) => line.textContent || "").join("\n");
|
|
1194
1204
|
}
|
|
1195
1205
|
function CodeBlock({ children, className, style, ...rest }) {
|
|
1196
|
-
const { "data-title": title, "data-language": language, "data-line-start": lineStart, "data-line-count": lineCount, ...preProps } = rest;
|
|
1206
|
+
const { "data-title": title, "data-language": language, "data-line-start": lineStart, "data-line-count": lineCount, "data-placement": placement, "data-actions": actions, ...preProps } = rest;
|
|
1197
1207
|
const textInput = useRef(null);
|
|
1198
1208
|
const [copied, setCopied] = useState(false);
|
|
1209
|
+
if (language === "mermaid") return /* @__PURE__ */ jsx(Mermaid, {
|
|
1210
|
+
chart: reactChildrenToText(children).replace(/\n$/, ""),
|
|
1211
|
+
title,
|
|
1212
|
+
placement,
|
|
1213
|
+
actions: actions === void 0 ? void 0 : actions !== "false"
|
|
1214
|
+
});
|
|
1199
1215
|
const start = Number(lineStart) || 1;
|
|
1200
1216
|
const lastLine = start + Math.max(Number(lineCount) || 1, 1) - 1;
|
|
1201
1217
|
const gutter = `${String(lastLine).length}ch`;
|
|
@@ -1245,7 +1261,7 @@ function CodeBlock({ children, className, style, ...rest }) {
|
|
|
1245
1261
|
}
|
|
1246
1262
|
|
|
1247
1263
|
//#endregion
|
|
1248
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1264
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs
|
|
1249
1265
|
const ESCAPE = "Escape";
|
|
1250
1266
|
function isStationaryWebKitPointer(event) {
|
|
1251
1267
|
return webkit && event.movementX === 0 && event.movementY === 0;
|
|
@@ -1686,7 +1702,7 @@ function useListNavigation(context, props) {
|
|
|
1686
1702
|
}
|
|
1687
1703
|
|
|
1688
1704
|
//#endregion
|
|
1689
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1705
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/floating-ui-react/hooks/useTypeahead.mjs
|
|
1690
1706
|
/**
|
|
1691
1707
|
* Provides a matching callback that can be used to focus an item as the user
|
|
1692
1708
|
* types, often used in tandem with `useListNavigation()`.
|
|
@@ -2027,7 +2043,7 @@ function ConfiguredIcon({ icon, size = 14 }) {
|
|
|
2027
2043
|
}
|
|
2028
2044
|
|
|
2029
2045
|
//#endregion
|
|
2030
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2046
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/positioner/MenuPositionerContext.mjs
|
|
2031
2047
|
const MenuPositionerContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2032
2048
|
MenuPositionerContext.displayName = "MenuPositionerContext";
|
|
2033
2049
|
function useMenuPositionerContext(optional) {
|
|
@@ -2037,7 +2053,7 @@ function useMenuPositionerContext(optional) {
|
|
|
2037
2053
|
}
|
|
2038
2054
|
|
|
2039
2055
|
//#endregion
|
|
2040
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2056
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/root/MenuRootContext.mjs
|
|
2041
2057
|
const MenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2042
2058
|
MenuRootContext.displayName = "MenuRootContext";
|
|
2043
2059
|
function useMenuRootContext(optional) {
|
|
@@ -2047,7 +2063,7 @@ function useMenuRootContext(optional) {
|
|
|
2047
2063
|
}
|
|
2048
2064
|
|
|
2049
2065
|
//#endregion
|
|
2050
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2066
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/context-menu/root/ContextMenuRootContext.mjs
|
|
2051
2067
|
const ContextMenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2052
2068
|
ContextMenuRootContext.displayName = "ContextMenuRootContext";
|
|
2053
2069
|
function useContextMenuRootContext(optional = true) {
|
|
@@ -2057,7 +2073,7 @@ function useContextMenuRootContext(optional = true) {
|
|
|
2057
2073
|
}
|
|
2058
2074
|
|
|
2059
2075
|
//#endregion
|
|
2060
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2076
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/item/useMenuItemCommonProps.mjs
|
|
2061
2077
|
/**
|
|
2062
2078
|
* Returns common props shared by all menu item types.
|
|
2063
2079
|
* This hook extracts the shared logic for id, role, tabIndex, onKeyDown,
|
|
@@ -2117,7 +2133,7 @@ function useMenuItemCommonProps(params) {
|
|
|
2117
2133
|
}
|
|
2118
2134
|
|
|
2119
2135
|
//#endregion
|
|
2120
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2136
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/item/useMenuItem.mjs
|
|
2121
2137
|
const REGULAR_ITEM = { type: "regular-item" };
|
|
2122
2138
|
function useMenuItem(params) {
|
|
2123
2139
|
const { closeOnClick, disabled, highlighted, id, store, typingRef = store.context.typingRef, nativeButton, itemMetadata, nodeId } = params;
|
|
@@ -2156,7 +2172,7 @@ function useMenuItem(params) {
|
|
|
2156
2172
|
}
|
|
2157
2173
|
|
|
2158
2174
|
//#endregion
|
|
2159
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2175
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/item/MenuItem.mjs
|
|
2160
2176
|
/**
|
|
2161
2177
|
* An individual interactive item in the menu.
|
|
2162
2178
|
* Renders a `<div>` element.
|
|
@@ -2206,7 +2222,7 @@ const MenuItem = /*#__PURE__*/ React.forwardRef(function MenuItem(componentProps
|
|
|
2206
2222
|
MenuItem.displayName = "MenuItem";
|
|
2207
2223
|
|
|
2208
2224
|
//#endregion
|
|
2209
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2225
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
2210
2226
|
const ToolbarRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2211
2227
|
ToolbarRootContext.displayName = "ToolbarRootContext";
|
|
2212
2228
|
function useToolbarRootContext(optional) {
|
|
@@ -2216,7 +2232,7 @@ function useToolbarRootContext(optional) {
|
|
|
2216
2232
|
}
|
|
2217
2233
|
|
|
2218
2234
|
//#endregion
|
|
2219
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2235
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/popup/MenuPopup.mjs
|
|
2220
2236
|
/**
|
|
2221
2237
|
* A container for the menu items.
|
|
2222
2238
|
* Renders a `<div>` element.
|
|
@@ -2311,7 +2327,7 @@ const MenuPopup = /*#__PURE__*/ React.forwardRef(function MenuPopup(componentPro
|
|
|
2311
2327
|
MenuPopup.displayName = "MenuPopup";
|
|
2312
2328
|
|
|
2313
2329
|
//#endregion
|
|
2314
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2330
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/portal/MenuPortalContext.mjs
|
|
2315
2331
|
const MenuPortalContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2316
2332
|
MenuPortalContext.displayName = "MenuPortalContext";
|
|
2317
2333
|
function useMenuPortalContext() {
|
|
@@ -2321,7 +2337,7 @@ function useMenuPortalContext() {
|
|
|
2321
2337
|
}
|
|
2322
2338
|
|
|
2323
2339
|
//#endregion
|
|
2324
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2340
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/portal/MenuPortal.mjs
|
|
2325
2341
|
/**
|
|
2326
2342
|
* A portal element that moves the popup to a different part of the DOM.
|
|
2327
2343
|
* By default, the portal element is appended to `<body>`.
|
|
@@ -2344,7 +2360,7 @@ const MenuPortal = /*#__PURE__*/ React.forwardRef(function MenuPortal(props, for
|
|
|
2344
2360
|
MenuPortal.displayName = "MenuPortal";
|
|
2345
2361
|
|
|
2346
2362
|
//#endregion
|
|
2347
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2363
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
|
|
2348
2364
|
const VIEWPORT_WIDTH_TOLERANCE_PX = 20;
|
|
2349
2365
|
/**
|
|
2350
2366
|
* Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when
|
|
@@ -2370,7 +2386,7 @@ function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, refer
|
|
|
2370
2386
|
}
|
|
2371
2387
|
|
|
2372
2388
|
//#endregion
|
|
2373
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2389
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/positioner/MenuPositioner.mjs
|
|
2374
2390
|
/**
|
|
2375
2391
|
* Positions the menu popup against the trigger.
|
|
2376
2392
|
* Renders a `<div>` element.
|
|
@@ -2579,7 +2595,7 @@ const MenuPositioner = /*#__PURE__*/ React.forwardRef(function MenuPositioner(co
|
|
|
2579
2595
|
MenuPositioner.displayName = "MenuPositioner";
|
|
2580
2596
|
|
|
2581
2597
|
//#endregion
|
|
2582
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2598
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menubar/MenubarContext.mjs
|
|
2583
2599
|
const MenubarContext = /*#__PURE__*/ React.createContext(null);
|
|
2584
2600
|
MenubarContext.displayName = "MenubarContext";
|
|
2585
2601
|
function useMenubarContext(optional) {
|
|
@@ -2589,7 +2605,7 @@ function useMenubarContext(optional) {
|
|
|
2589
2605
|
}
|
|
2590
2606
|
|
|
2591
2607
|
//#endregion
|
|
2592
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2608
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/store/MenuStore.mjs
|
|
2593
2609
|
const selectors = {
|
|
2594
2610
|
...popupStoreSelectors,
|
|
2595
2611
|
disabled: (state) => state.parent.type === "menubar" ? state.parent.context.disabled || state.disabled : state.disabled,
|
|
@@ -2704,7 +2720,7 @@ function createInitialState() {
|
|
|
2704
2720
|
}
|
|
2705
2721
|
|
|
2706
2722
|
//#endregion
|
|
2707
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2723
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/submenu-root/MenuSubmenuRootContext.mjs
|
|
2708
2724
|
const MenuSubmenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2709
2725
|
MenuSubmenuRootContext.displayName = "MenuSubmenuRootContext";
|
|
2710
2726
|
function useMenuSubmenuRootContext() {
|
|
@@ -2712,7 +2728,7 @@ function useMenuSubmenuRootContext() {
|
|
|
2712
2728
|
}
|
|
2713
2729
|
|
|
2714
2730
|
//#endregion
|
|
2715
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2731
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/root/MenuRoot.mjs
|
|
2716
2732
|
/**
|
|
2717
2733
|
* Groups all parts of the menu.
|
|
2718
2734
|
* Doesn't render its own HTML element.
|
|
@@ -2755,8 +2771,8 @@ const MenuRoot = fastComponent(function MenuRoot(props) {
|
|
|
2755
2771
|
store.useControlledProp("openProp", openProp);
|
|
2756
2772
|
store.useControlledProp("triggerIdProp", triggerIdProp);
|
|
2757
2773
|
store.useContextCallback("onOpenChangeComplete", onOpenChangeComplete);
|
|
2758
|
-
const rootId = useId$
|
|
2759
|
-
const floatingId = useId$
|
|
2774
|
+
const rootId = useId$2();
|
|
2775
|
+
const floatingId = useId$2();
|
|
2760
2776
|
const floatingTreeRoot = store.useState("floatingTreeRoot");
|
|
2761
2777
|
const floatingNodeIdFromContext = useFloatingNodeId(floatingTreeRoot);
|
|
2762
2778
|
const floatingParentNodeIdFromContext = useFloatingParentNodeId();
|
|
@@ -3013,7 +3029,7 @@ function useMenuRootStore(initialState) {
|
|
|
3013
3029
|
}
|
|
3014
3030
|
|
|
3015
3031
|
//#endregion
|
|
3016
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3032
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
|
|
3017
3033
|
const BOUNDARY_OFFSET = 5;
|
|
3018
3034
|
/**
|
|
3019
3035
|
* Determines if a mouse event occurred within the bounds of an element
|
|
@@ -3047,7 +3063,7 @@ function getPseudoElementBounds(element) {
|
|
|
3047
3063
|
}
|
|
3048
3064
|
|
|
3049
3065
|
//#endregion
|
|
3050
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3066
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/internals/composite/item/CompositeItem.mjs
|
|
3051
3067
|
function CompositeItem(componentProps) {
|
|
3052
3068
|
const { render, className, style, state = EMPTY_OBJECT, props = EMPTY_ARRAY, refs = EMPTY_ARRAY, metadata, stateAttributesMapping, tag = "div", ...elementProps } = componentProps;
|
|
3053
3069
|
const { compositeProps, compositeRef } = useCompositeItem({ metadata });
|
|
@@ -3064,7 +3080,7 @@ function CompositeItem(componentProps) {
|
|
|
3064
3080
|
}
|
|
3065
3081
|
|
|
3066
3082
|
//#endregion
|
|
3067
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3083
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/utils/findRootOwnerId.mjs
|
|
3068
3084
|
function findRootOwnerId(node) {
|
|
3069
3085
|
if (isHTMLElement(node) && node.hasAttribute("data-rootownerid")) return node.getAttribute("data-rootownerid");
|
|
3070
3086
|
if (isLastTraversableNode(node)) return;
|
|
@@ -3072,7 +3088,7 @@ function findRootOwnerId(node) {
|
|
|
3072
3088
|
}
|
|
3073
3089
|
|
|
3074
3090
|
//#endregion
|
|
3075
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3091
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs
|
|
3076
3092
|
/**
|
|
3077
3093
|
* Minimal store interface required by the focus guard hook.
|
|
3078
3094
|
* Both PopoverStore and MenuStore satisfy this interface.
|
|
@@ -3116,7 +3132,7 @@ function useTriggerFocusGuards(store, triggerElementRef) {
|
|
|
3116
3132
|
}
|
|
3117
3133
|
|
|
3118
3134
|
//#endregion
|
|
3119
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3135
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/utils/useMixedToggleClickHandler.mjs
|
|
3120
3136
|
/**
|
|
3121
3137
|
* Returns `click` and `mousedown` handlers that fix the behavior of triggers of popups that are toggled by different events.
|
|
3122
3138
|
* For example, a button that opens a popup on mousedown and closes it on click.
|
|
@@ -3151,7 +3167,7 @@ function useMixedToggleClickHandler(params) {
|
|
|
3151
3167
|
}
|
|
3152
3168
|
|
|
3153
3169
|
//#endregion
|
|
3154
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3170
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types+react@19.2.18_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@base-ui/react/menu/trigger/MenuTrigger.mjs
|
|
3155
3171
|
/**
|
|
3156
3172
|
* A button that opens the menu.
|
|
3157
3173
|
* Renders a `<button>` element.
|
|
@@ -4560,7 +4576,7 @@ function LanguageSwitcher() {
|
|
|
4560
4576
|
}
|
|
4561
4577
|
|
|
4562
4578
|
//#endregion
|
|
4563
|
-
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
4579
|
+
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react@19.2.18_react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
4564
4580
|
var U = 1;
|
|
4565
4581
|
var Y$1 = .9;
|
|
4566
4582
|
var H = .8;
|
|
@@ -4632,7 +4648,7 @@ function isFrame(element) {
|
|
|
4632
4648
|
__name$14(isFrame, "isFrame");
|
|
4633
4649
|
|
|
4634
4650
|
//#endregion
|
|
4635
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-
|
|
4651
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4636
4652
|
var __defProp$13 = Object.defineProperty;
|
|
4637
4653
|
var __name$13 = (target, value) => __defProp$13(target, "name", {
|
|
4638
4654
|
value,
|
|
@@ -4667,7 +4683,7 @@ function useComposedRefs(...refs) {
|
|
|
4667
4683
|
__name$13(useComposedRefs, "useComposedRefs");
|
|
4668
4684
|
|
|
4669
4685
|
//#endregion
|
|
4670
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.
|
|
4686
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4671
4687
|
var __defProp$12 = Object.defineProperty;
|
|
4672
4688
|
var __name$12 = (target, value) => __defProp$12(target, "name", {
|
|
4673
4689
|
value,
|
|
@@ -4770,7 +4786,7 @@ function composeContextScopes(...scopes) {
|
|
|
4770
4786
|
__name$12(composeContextScopes, "composeContextScopes");
|
|
4771
4787
|
|
|
4772
4788
|
//#endregion
|
|
4773
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-
|
|
4789
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
4774
4790
|
var useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {};
|
|
4775
4791
|
|
|
4776
4792
|
//#endregion
|
|
@@ -4782,17 +4798,17 @@ var __name$11 = (target, value) => __defProp$11(target, "name", {
|
|
|
4782
4798
|
});
|
|
4783
4799
|
var useReactId = React[" useId ".trim().toString()] || (() => void 0);
|
|
4784
4800
|
var count$1 = 0;
|
|
4785
|
-
function useId(deterministicId) {
|
|
4801
|
+
function useId$1(deterministicId) {
|
|
4786
4802
|
const [id, setId] = React.useState(useReactId());
|
|
4787
4803
|
useLayoutEffect2(() => {
|
|
4788
4804
|
if (!deterministicId) setId((reactId) => reactId ?? String(count$1++));
|
|
4789
4805
|
}, [deterministicId]);
|
|
4790
4806
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
4791
4807
|
}
|
|
4792
|
-
__name$11(useId, "useId");
|
|
4808
|
+
__name$11(useId$1, "useId");
|
|
4793
4809
|
|
|
4794
4810
|
//#endregion
|
|
4795
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-
|
|
4811
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4796
4812
|
var __defProp$10 = Object.defineProperty;
|
|
4797
4813
|
var __name$10 = (target, value) => __defProp$10(target, "name", {
|
|
4798
4814
|
value,
|
|
@@ -4816,7 +4832,7 @@ function useEffectEvent(callback) {
|
|
|
4816
4832
|
__name$10(useEffectEvent, "useEffectEvent");
|
|
4817
4833
|
|
|
4818
4834
|
//#endregion
|
|
4819
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-
|
|
4835
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
4820
4836
|
var __defProp$9 = Object.defineProperty;
|
|
4821
4837
|
var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
4822
4838
|
value,
|
|
@@ -5049,7 +5065,7 @@ var createSlottableError = /* @__PURE__ */ __name$8((ownerName) => {
|
|
|
5049
5065
|
var use = React[" use ".trim().toString()];
|
|
5050
5066
|
|
|
5051
5067
|
//#endregion
|
|
5052
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@
|
|
5068
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+r_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5053
5069
|
var __defProp$7 = Object.defineProperty;
|
|
5054
5070
|
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
5055
5071
|
value,
|
|
@@ -5096,7 +5112,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
5096
5112
|
__name$7(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
5097
5113
|
|
|
5098
5114
|
//#endregion
|
|
5099
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-
|
|
5115
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
5100
5116
|
var __defProp$6 = Object.defineProperty;
|
|
5101
5117
|
var __name$6 = (target, value) => __defProp$6(target, "name", {
|
|
5102
5118
|
value,
|
|
@@ -5112,7 +5128,7 @@ function useCallbackRef$1(callback) {
|
|
|
5112
5128
|
__name$6(useCallbackRef$1, "useCallbackRef");
|
|
5113
5129
|
|
|
5114
5130
|
//#endregion
|
|
5115
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-
|
|
5131
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@19.2.4_@types+react@19.2.18___40e495cae3a960f65f80435c18b02650/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
5116
5132
|
var __defProp$5 = Object.defineProperty;
|
|
5117
5133
|
var __name$5 = (target, value) => __defProp$5(target, "name", {
|
|
5118
5134
|
value,
|
|
@@ -5377,7 +5393,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
5377
5393
|
__name$5(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
|
|
5378
5394
|
|
|
5379
5395
|
//#endregion
|
|
5380
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-
|
|
5396
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@19.2.4_@types+react@19.2.18__@types_3b4e29b84c639c7da7ed6c275ef9f34b/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
5381
5397
|
var __defProp$4 = Object.defineProperty;
|
|
5382
5398
|
var __name$4 = (target, value) => __defProp$4(target, "name", {
|
|
5383
5399
|
value,
|
|
@@ -5584,7 +5600,7 @@ function removeLinks(items) {
|
|
|
5584
5600
|
__name$4(removeLinks, "removeLinks");
|
|
5585
5601
|
|
|
5586
5602
|
//#endregion
|
|
5587
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.
|
|
5603
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.17_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_7d49bbd59f67da7ea06e84940374bb40/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
5588
5604
|
var __defProp$3 = Object.defineProperty;
|
|
5589
5605
|
var __name$3 = (target, value) => __defProp$3(target, "name", {
|
|
5590
5606
|
value,
|
|
@@ -5602,7 +5618,7 @@ var Portal = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name$3(function
|
|
|
5602
5618
|
}, "Portal"));
|
|
5603
5619
|
|
|
5604
5620
|
//#endregion
|
|
5605
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.
|
|
5621
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+re_c16522d094fa2977c5a9a5cd628ab890/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5606
5622
|
var __defProp$2 = Object.defineProperty;
|
|
5607
5623
|
var __name$2 = (target, value) => __defProp$2(target, "name", {
|
|
5608
5624
|
value,
|
|
@@ -5745,7 +5761,7 @@ function getElementRef(element) {
|
|
|
5745
5761
|
__name$2(getElementRef, "getElementRef");
|
|
5746
5762
|
|
|
5747
5763
|
//#endregion
|
|
5748
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-
|
|
5764
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
5749
5765
|
var __defProp$1 = Object.defineProperty;
|
|
5750
5766
|
var __name$1 = (target, value) => __defProp$1(target, "name", {
|
|
5751
5767
|
value,
|
|
@@ -5822,7 +5838,7 @@ function __spreadArray(to, from, pack) {
|
|
|
5822
5838
|
}
|
|
5823
5839
|
|
|
5824
5840
|
//#endregion
|
|
5825
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
5841
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
5826
5842
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
5827
5843
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
5828
5844
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
@@ -6100,7 +6116,7 @@ var getNonce = function() {
|
|
|
6100
6116
|
};
|
|
6101
6117
|
|
|
6102
6118
|
//#endregion
|
|
6103
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6119
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
6104
6120
|
function makeStyleTag() {
|
|
6105
6121
|
if (!document) return null;
|
|
6106
6122
|
var tag = document.createElement("style");
|
|
@@ -6140,7 +6156,7 @@ var stylesheetSingleton = function() {
|
|
|
6140
6156
|
};
|
|
6141
6157
|
|
|
6142
6158
|
//#endregion
|
|
6143
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6159
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
6144
6160
|
/**
|
|
6145
6161
|
* creates a hook to control style singleton
|
|
6146
6162
|
* @see {@link styleSingleton} for a safer component version
|
|
@@ -6163,7 +6179,7 @@ var styleHookSingleton = function() {
|
|
|
6163
6179
|
};
|
|
6164
6180
|
|
|
6165
6181
|
//#endregion
|
|
6166
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6182
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/component.js
|
|
6167
6183
|
/**
|
|
6168
6184
|
* create a Component to add styles on demand
|
|
6169
6185
|
* - styles are added when first instance is mounted
|
|
@@ -6181,7 +6197,7 @@ var styleSingleton = function() {
|
|
|
6181
6197
|
};
|
|
6182
6198
|
|
|
6183
6199
|
//#endregion
|
|
6184
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
6200
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
6185
6201
|
var zeroGap = {
|
|
6186
6202
|
left: 0,
|
|
6187
6203
|
top: 0,
|
|
@@ -6217,7 +6233,7 @@ var getGapWidth = function(gapMode) {
|
|
|
6217
6233
|
};
|
|
6218
6234
|
|
|
6219
6235
|
//#endregion
|
|
6220
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
6236
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
6221
6237
|
var Style = styleSingleton();
|
|
6222
6238
|
var lockAttribute = "data-scroll-locked";
|
|
6223
6239
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -6632,7 +6648,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
6632
6648
|
};
|
|
6633
6649
|
|
|
6634
6650
|
//#endregion
|
|
6635
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.
|
|
6651
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.23_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_f43cda4f5f60c6fd8f384ced683c6d90/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
6636
6652
|
var __defProp = Object.defineProperty;
|
|
6637
6653
|
var __name = (target, value) => __defProp(target, "name", {
|
|
6638
6654
|
value,
|
|
@@ -6657,9 +6673,9 @@ var Dialog = /* @__PURE__ */ __name((props) => {
|
|
|
6657
6673
|
scope: __scopeDialog,
|
|
6658
6674
|
triggerRef,
|
|
6659
6675
|
contentRef,
|
|
6660
|
-
contentId: useId(),
|
|
6661
|
-
titleId: useId(),
|
|
6662
|
-
descriptionId: useId(),
|
|
6676
|
+
contentId: useId$1(),
|
|
6677
|
+
titleId: useId$1(),
|
|
6678
|
+
descriptionId: useId$1(),
|
|
6663
6679
|
titlePresent: titleCount > 0,
|
|
6664
6680
|
descriptionPresent: descriptionCount > 0,
|
|
6665
6681
|
setTitleCount,
|
|
@@ -6798,7 +6814,7 @@ var DialogContentImpl = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(
|
|
|
6798
6814
|
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
|
|
6799
6815
|
const context = useDialogContext(CONTENT_NAME, __scopeDialog);
|
|
6800
6816
|
useFocusGuards();
|
|
6801
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(FocusScope, {
|
|
6817
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(FocusScope, {
|
|
6802
6818
|
asChild: true,
|
|
6803
6819
|
loop: true,
|
|
6804
6820
|
trapped: trapFocus,
|
|
@@ -6823,7 +6839,7 @@ function getState(open) {
|
|
|
6823
6839
|
__name(getState, "getState");
|
|
6824
6840
|
|
|
6825
6841
|
//#endregion
|
|
6826
|
-
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/index.mjs
|
|
6842
|
+
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react@19.2.18_react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/index.mjs
|
|
6827
6843
|
var N = "[cmdk-group=\"\"]";
|
|
6828
6844
|
var Y = "[cmdk-group-items=\"\"]";
|
|
6829
6845
|
var be = "[cmdk-group-heading=\"\"]";
|
|
@@ -6850,7 +6866,7 @@ var me = React.forwardRef((r, o) => {
|
|
|
6850
6866
|
groups: /* @__PURE__ */ new Set()
|
|
6851
6867
|
}
|
|
6852
6868
|
};
|
|
6853
|
-
}), u = L(() => /* @__PURE__ */ new Set()), c = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p = pe(r), { label: b, children: m, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = !1, vimBindings: j = !0, ...O } = r, $ = useId(), q = useId(), _ = useId(), I = React.useRef(null), v = ke();
|
|
6869
|
+
}), u = L(() => /* @__PURE__ */ new Set()), c = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p = pe(r), { label: b, children: m, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = !1, vimBindings: j = !0, ...O } = r, $ = useId$1(), q = useId$1(), _ = useId$1(), I = React.useRef(null), v = ke();
|
|
6854
6870
|
k(() => {
|
|
6855
6871
|
if (R !== void 0) {
|
|
6856
6872
|
let e = R.trim();
|
|
@@ -7048,7 +7064,7 @@ var me = React.forwardRef((r, o) => {
|
|
|
7048
7064
|
});
|
|
7049
7065
|
var he = React.forwardRef((r, o) => {
|
|
7050
7066
|
var _, I;
|
|
7051
|
-
let n = useId(), u = React.useRef(null), c = React.useContext(fe), d = K(), f = pe(r), p = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c == null ? void 0 : c.forceMount;
|
|
7067
|
+
let n = useId$1(), u = React.useRef(null), c = React.useContext(fe), d = K(), f = pe(r), p = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c == null ? void 0 : c.forceMount;
|
|
7052
7068
|
k(() => {
|
|
7053
7069
|
if (!p) return d.item(n, c == null ? void 0 : c.id);
|
|
7054
7070
|
}, [p]);
|
|
@@ -7089,7 +7105,7 @@ var he = React.forwardRef((r, o) => {
|
|
|
7089
7105
|
}, r.children);
|
|
7090
7106
|
});
|
|
7091
7107
|
var Ee = React.forwardRef((r, o) => {
|
|
7092
|
-
let { heading: n, children: u, forceMount: c, ...d } = r, f = useId(), p = React.useRef(null), b = React.useRef(null), m = useId(), R = K(), x = P((S) => c || R.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(f) : !0);
|
|
7108
|
+
let { heading: n, children: u, forceMount: c, ...d } = r, f = useId$1(), p = React.useRef(null), b = React.useRef(null), m = useId$1(), R = K(), x = P((S) => c || R.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(f) : !0);
|
|
7093
7109
|
k(() => R.group(f), []), ve(f, p, [
|
|
7094
7110
|
r.value,
|
|
7095
7111
|
r.heading,
|
|
@@ -7501,7 +7517,7 @@ function Search({ config, labels, className }) {
|
|
|
7501
7517
|
onSelect: () => select(result),
|
|
7502
7518
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
7503
7519
|
className: "text-[0.9rem] font-semibold text-foreground",
|
|
7504
|
-
children: [renderWithQueryHighlight(result.page, query), result.heading ? /* @__PURE__ */ jsxs(Fragment, { children: [" › ", renderWithQueryHighlight(result.heading, query)] }) : null]
|
|
7520
|
+
children: [renderWithQueryHighlight(result.page, query), result.heading ? /* @__PURE__ */ jsxs(Fragment$1, { children: [" › ", renderWithQueryHighlight(result.heading, query)] }) : null]
|
|
7505
7521
|
}), result.snippet && /* @__PURE__ */ jsx("div", {
|
|
7506
7522
|
className: "mt-[0.15rem] line-clamp-2 text-[0.8rem] text-muted-foreground",
|
|
7507
7523
|
children: renderSnippet(result.snippet)
|
|
@@ -7690,7 +7706,7 @@ function NavbarLinkItem({ link, primary = false }) {
|
|
|
7690
7706
|
const iconOnly = !link.label;
|
|
7691
7707
|
const accessibleLabel = link.ariaLabel || link.icon || link.href;
|
|
7692
7708
|
const className = primary ? `ml-1 inline-flex items-center justify-center rounded-full bg-primary text-sm font-semibold text-primary-foreground hover:opacity-90 ${iconOnly ? "size-8" : "gap-1.5 px-3.5 py-1.5"}` : `inline-flex items-center rounded-md text-sm font-medium text-foreground hover:bg-accent hover:text-foreground ${iconOnly ? "size-8 justify-center" : "gap-1.5 px-2.5 py-1.5"}`;
|
|
7693
|
-
const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ConfiguredIcon, { icon: link.icon }), link.label] });
|
|
7709
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ConfiguredIcon, { icon: link.icon }), link.label] });
|
|
7694
7710
|
if (isRoutedHref(link.href, link.target)) return /* @__PURE__ */ jsx(Link, {
|
|
7695
7711
|
to: link.href,
|
|
7696
7712
|
className,
|
|
@@ -7713,11 +7729,11 @@ function Header({ site }) {
|
|
|
7713
7729
|
const brandHref = logo?.href || (hasRootStandalonePage ? "/" : docsHomeUrl);
|
|
7714
7730
|
const hasBrand = !!name || !!logo?.light || !!logo?.dark;
|
|
7715
7731
|
const brandClassName = "inline-flex items-center gap-2 text-xl font-bold text-foreground tracking-[-0.03em]";
|
|
7716
|
-
const brandContent = /* @__PURE__ */ jsxs(Fragment, { children: [logo?.invert && logo.light ? /* @__PURE__ */ jsx("img", {
|
|
7732
|
+
const brandContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [logo?.invert && logo.light ? /* @__PURE__ */ jsx("img", {
|
|
7717
7733
|
src: logo.light,
|
|
7718
7734
|
alt: "",
|
|
7719
7735
|
className: "h-6 w-auto dark:brightness-0 dark:invert"
|
|
7720
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [logo?.light ? /* @__PURE__ */ jsx("img", {
|
|
7736
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [logo?.light ? /* @__PURE__ */ jsx("img", {
|
|
7721
7737
|
src: logo.light,
|
|
7722
7738
|
alt: "",
|
|
7723
7739
|
className: "h-6 w-auto dark:hidden"
|
|
@@ -8092,9 +8108,26 @@ function getOperation(key) {
|
|
|
8092
8108
|
const [method, ...rest] = key.trim().split(/\s+/);
|
|
8093
8109
|
return OPENAPI_OPERATIONS[`${method.toUpperCase()} ${rest.join(" ")}`];
|
|
8094
8110
|
}
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
return
|
|
8111
|
+
/** Parameter groups shared by the renderer and table of contents. */
|
|
8112
|
+
function operationParameterSections(operation) {
|
|
8113
|
+
return [
|
|
8114
|
+
{
|
|
8115
|
+
location: "header",
|
|
8116
|
+
name: "Headers"
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
location: "path",
|
|
8120
|
+
name: "Path parameters"
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
location: "query",
|
|
8124
|
+
name: "Query parameters"
|
|
8125
|
+
},
|
|
8126
|
+
{
|
|
8127
|
+
location: "cookie",
|
|
8128
|
+
name: "Cookie parameters"
|
|
8129
|
+
}
|
|
8130
|
+
].filter(({ location }) => operation.parameters[location].length > 0 || location === "header" && operation.security.length > 0);
|
|
8098
8131
|
}
|
|
8099
8132
|
/**
|
|
8100
8133
|
* Section headings for an operation, in render order. The single source of
|
|
@@ -8104,7 +8137,7 @@ function hasParameters(operation) {
|
|
|
8104
8137
|
function operationSections(operation) {
|
|
8105
8138
|
const slugger = createSlugger();
|
|
8106
8139
|
return [
|
|
8107
|
-
|
|
8140
|
+
...operationParameterSections(operation).map((section) => section.name),
|
|
8108
8141
|
operation.requestBody ? "Request body" : void 0,
|
|
8109
8142
|
operation.responses.length ? "Responses" : void 0,
|
|
8110
8143
|
operation.samples.length ? "Code samples" : void 0
|
|
@@ -8117,14 +8150,8 @@ function operationSections(operation) {
|
|
|
8117
8150
|
|
|
8118
8151
|
//#endregion
|
|
8119
8152
|
//#region src/components/OpenApiOperation.tsx
|
|
8120
|
-
const PARAM_LOCATIONS = [
|
|
8121
|
-
"path",
|
|
8122
|
-
"query",
|
|
8123
|
-
"header",
|
|
8124
|
-
"cookie"
|
|
8125
|
-
];
|
|
8126
8153
|
function FieldChildren({ node }) {
|
|
8127
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8154
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
8128
8155
|
node.description,
|
|
8129
8156
|
node.enum && node.enum.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
8130
8157
|
className: "mt-1",
|
|
@@ -8136,24 +8163,23 @@ function FieldChildren({ node }) {
|
|
|
8136
8163
|
}),
|
|
8137
8164
|
node.children && node.children.length > 0 && /* @__PURE__ */ jsx(Expandable, {
|
|
8138
8165
|
title: "properties",
|
|
8139
|
-
children:
|
|
8166
|
+
children: /* @__PURE__ */ jsx(SchemaTable, { nodes: node.children })
|
|
8140
8167
|
})
|
|
8141
8168
|
] });
|
|
8142
8169
|
}
|
|
8143
|
-
function
|
|
8144
|
-
return /* @__PURE__ */ jsx(
|
|
8170
|
+
function SchemaTable({ nodes }) {
|
|
8171
|
+
return /* @__PURE__ */ jsx(PropertiesTable, { children: nodes.map((node) => /* @__PURE__ */ jsx(PropertiesTable.Row, {
|
|
8145
8172
|
name: node.name || node.type,
|
|
8146
|
-
type: node.
|
|
8173
|
+
type: node.type,
|
|
8147
8174
|
required: node.required,
|
|
8148
8175
|
deprecated: node.deprecated,
|
|
8149
8176
|
default: node.default,
|
|
8150
8177
|
children: /* @__PURE__ */ jsx(FieldChildren, { node })
|
|
8151
|
-
});
|
|
8178
|
+
}, node.name || node.type)) });
|
|
8152
8179
|
}
|
|
8153
8180
|
/** Renders a schema tree: a root object's properties, or the node itself. */
|
|
8154
8181
|
function SchemaFields({ node }) {
|
|
8155
|
-
|
|
8156
|
-
return /* @__PURE__ */ jsx(SchemaField, { node });
|
|
8182
|
+
return /* @__PURE__ */ jsx(SchemaTable, { nodes: !node.name && node.children?.length ? node.children : [node] });
|
|
8157
8183
|
}
|
|
8158
8184
|
function HighlightedCode({ language, title, html, source, lineCount }) {
|
|
8159
8185
|
return /* @__PURE__ */ jsx(CodeBlock, {
|
|
@@ -8172,38 +8198,29 @@ function HighlightedCode({ language, title, html, source, lineCount }) {
|
|
|
8172
8198
|
/** The generated reference for one API operation, rendered under the page body. */
|
|
8173
8199
|
function OpenApiOperation({ operation }) {
|
|
8174
8200
|
const sections = new Map(operationSections(operation).map((entry) => [entry.name, entry.id]));
|
|
8175
|
-
const showParameters = sections.has("Parameters");
|
|
8176
8201
|
return /* @__PURE__ */ jsxs("div", {
|
|
8177
8202
|
className: "docs-markdown",
|
|
8178
8203
|
children: [
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
children:
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
required: parameter.required,
|
|
8200
|
-
children: [/* @__PURE__ */ jsx(FieldChildren, { node: {
|
|
8201
|
-
...parameter,
|
|
8202
|
-
name: void 0,
|
|
8203
|
-
description: void 0
|
|
8204
|
-
} }), parameter.description]
|
|
8205
|
-
}, `${location}-${parameter.name}`)))
|
|
8206
|
-
] }),
|
|
8204
|
+
operationParameterSections(operation).map(({ location, name }) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h2", {
|
|
8205
|
+
id: sections.get(name),
|
|
8206
|
+
children: name
|
|
8207
|
+
}), /* @__PURE__ */ jsxs(PropertiesTable, { children: [location === "header" && operation.security.length > 0 && /* @__PURE__ */ jsxs(PropertiesTable.Row, {
|
|
8208
|
+
name: "Authorization",
|
|
8209
|
+
type: "string",
|
|
8210
|
+
required: true,
|
|
8211
|
+
children: [
|
|
8212
|
+
"Authentication credentials, e.g. ",
|
|
8213
|
+
/* @__PURE__ */ jsx("code", { children: "Bearer <token>" }),
|
|
8214
|
+
"."
|
|
8215
|
+
]
|
|
8216
|
+
}), operation.parameters[location].map((parameter) => /* @__PURE__ */ jsx(PropertiesTable.Row, {
|
|
8217
|
+
name: parameter.name || parameter.type,
|
|
8218
|
+
type: parameter.type,
|
|
8219
|
+
required: parameter.required,
|
|
8220
|
+
deprecated: parameter.deprecated,
|
|
8221
|
+
default: parameter.default,
|
|
8222
|
+
children: /* @__PURE__ */ jsx(FieldChildren, { node: parameter })
|
|
8223
|
+
}, parameter.name))] })] }, location)),
|
|
8207
8224
|
operation.requestBody && /* @__PURE__ */ jsxs("section", { children: [
|
|
8208
8225
|
/* @__PURE__ */ jsx("h2", {
|
|
8209
8226
|
id: sections.get("Request body"),
|
|
@@ -8692,13 +8709,14 @@ function NavNodes({ nodes, pathname, depth, drilldown, expandLabel, collapseLabe
|
|
|
8692
8709
|
}),
|
|
8693
8710
|
children: [
|
|
8694
8711
|
resolveIcon(icon),
|
|
8695
|
-
label,
|
|
8696
8712
|
method ? /* @__PURE__ */ jsx(Badge, {
|
|
8697
8713
|
color: methodColor(method),
|
|
8698
8714
|
size: "xs",
|
|
8699
|
-
className: "
|
|
8715
|
+
className: "w-10 shrink-0 justify-center whitespace-nowrap font-mono",
|
|
8700
8716
|
children: method === "DELETE" ? "DEL" : method
|
|
8701
|
-
}) :
|
|
8717
|
+
}) : null,
|
|
8718
|
+
label,
|
|
8719
|
+
!method && tag ? /* @__PURE__ */ jsx(Badge$1, {
|
|
8702
8720
|
variant: "secondary",
|
|
8703
8721
|
className: "ml-auto h-auto rounded-sm px-[0.35rem] py-[0.05rem] text-[0.7rem] text-muted-foreground uppercase",
|
|
8704
8722
|
children: tag
|
|
@@ -8716,7 +8734,7 @@ function NavNodes({ nodes, pathname, depth, drilldown, expandLabel, collapseLabe
|
|
|
8716
8734
|
collapseLabel
|
|
8717
8735
|
}, `group-${node.label}`));
|
|
8718
8736
|
});
|
|
8719
|
-
return /* @__PURE__ */ jsx(Fragment, { children: rendered });
|
|
8737
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: rendered });
|
|
8720
8738
|
}
|
|
8721
8739
|
function SideNav({ tabs, navigation, anchors, activeTabId, isSticky, drilldown, navigationLabel, expandLabel, collapseLabel }) {
|
|
8722
8740
|
const { pathname } = useLocation();
|
|
@@ -8820,10 +8838,28 @@ function NotFound({ site }) {
|
|
|
8820
8838
|
});
|
|
8821
8839
|
}
|
|
8822
8840
|
function Docs({ page, doc, site }) {
|
|
8841
|
+
if (!page || !doc) return /* @__PURE__ */ jsxs("div", {
|
|
8842
|
+
className: "flex min-h-full flex-col",
|
|
8843
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
8844
|
+
className: "grow",
|
|
8845
|
+
children: /* @__PURE__ */ jsx(NotFound, { site })
|
|
8846
|
+
}), /* @__PURE__ */ jsx(Footer, { footer: site.footer })]
|
|
8847
|
+
});
|
|
8848
|
+
const operation = getOperation(doc.frontmatter?.openapi);
|
|
8849
|
+
const toc = operation ? [...doc.toc || [], ...operationSections(operation)] : doc.toc;
|
|
8850
|
+
return /* @__PURE__ */ jsx(PanelProvider, { children: /* @__PURE__ */ jsx(DocsBody, {
|
|
8851
|
+
page,
|
|
8852
|
+
doc,
|
|
8853
|
+
site,
|
|
8854
|
+
toc
|
|
8855
|
+
}) });
|
|
8856
|
+
}
|
|
8857
|
+
function DocsBody({ page, doc, site, toc }) {
|
|
8823
8858
|
const { pathname } = useLocation();
|
|
8824
8859
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
8825
8860
|
const scopeDocs = getScopeByPathname(pathname).docs;
|
|
8826
8861
|
const { tabs, navigation } = scopeDocs;
|
|
8862
|
+
const panel = usePanelContent();
|
|
8827
8863
|
useEffect(() => {
|
|
8828
8864
|
setMenuOpen(false);
|
|
8829
8865
|
if (!window.location.hash) window.scrollTo({
|
|
@@ -8831,15 +8867,6 @@ function Docs({ page, doc, site }) {
|
|
|
8831
8867
|
left: 0
|
|
8832
8868
|
});
|
|
8833
8869
|
}, [pathname]);
|
|
8834
|
-
if (!page || !doc) return /* @__PURE__ */ jsxs("div", {
|
|
8835
|
-
className: "flex min-h-full flex-col",
|
|
8836
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
8837
|
-
className: "grow",
|
|
8838
|
-
children: /* @__PURE__ */ jsx(NotFound, { site })
|
|
8839
|
-
}), /* @__PURE__ */ jsx(Footer, { footer: site.footer })]
|
|
8840
|
-
});
|
|
8841
|
-
const operation = getOperation(doc.frontmatter?.openapi);
|
|
8842
|
-
const toc = operation ? [...doc.toc || [], ...operationSections(operation)] : doc.toc;
|
|
8843
8870
|
return /* @__PURE__ */ jsxs("div", {
|
|
8844
8871
|
className: "flex min-h-full flex-col gap-6 lg:gap-0",
|
|
8845
8872
|
children: [/* @__PURE__ */ jsxs(Sheet, {
|
|
@@ -8906,7 +8933,7 @@ function Docs({ page, doc, site }) {
|
|
|
8906
8933
|
site
|
|
8907
8934
|
}), /* @__PURE__ */ jsx("div", {
|
|
8908
8935
|
className: "hidden min-w-0 max-w-60 basis-60 self-start lg:sticky lg:top-[calc(var(--header-height)+1.5rem)] lg:block lg:shrink-0",
|
|
8909
|
-
children: /* @__PURE__ */ jsx(PageLinks, {
|
|
8936
|
+
children: panel ?? /* @__PURE__ */ jsx(PageLinks, {
|
|
8910
8937
|
items: toc,
|
|
8911
8938
|
title: site.labels.tableOfContents,
|
|
8912
8939
|
navigationLabel: site.labels.tableOfContentsNavigation
|