@umami/shiso 1.15.0 → 1.17.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/CHANGELOG.md +8 -0
- package/bin/shiso.mjs +0 -0
- package/dist/chunks/App.js +228 -110
- package/dist/chunks/docs.js +180 -180
- package/dist/entry-server.js +1 -1
- package/docs.schema.json +1131 -1003
- package/package.json +1 -1
- package/scripts/lib/openapi.mjs +6 -1
- package/src/App.tsx +9 -1
- package/src/components/DocContent.tsx +15 -6
- package/src/components/LanguageSwitcher.tsx +10 -3
- package/src/components/PageActions.tsx +134 -0
- package/src/components/docs/Changelog.tsx +22 -8
- package/src/lib/locale.ts +25 -0
- package/src/lib/site-model.ts +2 -0
- package/src/lib/types.ts +24 -0
- package/src/styles/global.css +1 -1
package/dist/chunks/App.js
CHANGED
|
@@ -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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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_e9c1e83f6bc6140c3efaf3427f2fbf0a/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.
|
|
@@ -1261,7 +1261,7 @@ function CodeBlock({ children, className, style, ...rest }) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
1263
|
//#endregion
|
|
1264
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1264
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs
|
|
1265
1265
|
const ESCAPE = "Escape";
|
|
1266
1266
|
function isStationaryWebKitPointer(event) {
|
|
1267
1267
|
return webkit && event.movementX === 0 && event.movementY === 0;
|
|
@@ -1702,7 +1702,7 @@ function useListNavigation(context, props) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
//#endregion
|
|
1705
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
1705
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/floating-ui-react/hooks/useTypeahead.mjs
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Provides a matching callback that can be used to focus an item as the user
|
|
1708
1708
|
* types, often used in tandem with `useListNavigation()`.
|
|
@@ -2043,7 +2043,7 @@ function ConfiguredIcon({ icon, size = 14 }) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
|
|
2045
2045
|
//#endregion
|
|
2046
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2046
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/positioner/MenuPositionerContext.mjs
|
|
2047
2047
|
const MenuPositionerContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2048
2048
|
MenuPositionerContext.displayName = "MenuPositionerContext";
|
|
2049
2049
|
function useMenuPositionerContext(optional) {
|
|
@@ -2053,7 +2053,7 @@ function useMenuPositionerContext(optional) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
2055
|
//#endregion
|
|
2056
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2056
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/root/MenuRootContext.mjs
|
|
2057
2057
|
const MenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2058
2058
|
MenuRootContext.displayName = "MenuRootContext";
|
|
2059
2059
|
function useMenuRootContext(optional) {
|
|
@@ -2063,7 +2063,7 @@ function useMenuRootContext(optional) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
|
|
2065
2065
|
//#endregion
|
|
2066
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2066
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/context-menu/root/ContextMenuRootContext.mjs
|
|
2067
2067
|
const ContextMenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2068
2068
|
ContextMenuRootContext.displayName = "ContextMenuRootContext";
|
|
2069
2069
|
function useContextMenuRootContext(optional = true) {
|
|
@@ -2073,7 +2073,7 @@ function useContextMenuRootContext(optional = true) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
|
|
2075
2075
|
//#endregion
|
|
2076
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2076
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/item/useMenuItemCommonProps.mjs
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Returns common props shared by all menu item types.
|
|
2079
2079
|
* This hook extracts the shared logic for id, role, tabIndex, onKeyDown,
|
|
@@ -2133,7 +2133,7 @@ function useMenuItemCommonProps(params) {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
|
|
2135
2135
|
//#endregion
|
|
2136
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2136
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/item/useMenuItem.mjs
|
|
2137
2137
|
const REGULAR_ITEM = { type: "regular-item" };
|
|
2138
2138
|
function useMenuItem(params) {
|
|
2139
2139
|
const { closeOnClick, disabled, highlighted, id, store, typingRef = store.context.typingRef, nativeButton, itemMetadata, nodeId } = params;
|
|
@@ -2172,7 +2172,7 @@ function useMenuItem(params) {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
//#endregion
|
|
2175
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2175
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/item/MenuItem.mjs
|
|
2176
2176
|
/**
|
|
2177
2177
|
* An individual interactive item in the menu.
|
|
2178
2178
|
* Renders a `<div>` element.
|
|
@@ -2222,7 +2222,7 @@ const MenuItem = /*#__PURE__*/ React.forwardRef(function MenuItem(componentProps
|
|
|
2222
2222
|
MenuItem.displayName = "MenuItem";
|
|
2223
2223
|
|
|
2224
2224
|
//#endregion
|
|
2225
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2225
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
2226
2226
|
const ToolbarRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2227
2227
|
ToolbarRootContext.displayName = "ToolbarRootContext";
|
|
2228
2228
|
function useToolbarRootContext(optional) {
|
|
@@ -2232,7 +2232,7 @@ function useToolbarRootContext(optional) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
|
|
2234
2234
|
//#endregion
|
|
2235
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2235
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/popup/MenuPopup.mjs
|
|
2236
2236
|
/**
|
|
2237
2237
|
* A container for the menu items.
|
|
2238
2238
|
* Renders a `<div>` element.
|
|
@@ -2327,7 +2327,7 @@ const MenuPopup = /*#__PURE__*/ React.forwardRef(function MenuPopup(componentPro
|
|
|
2327
2327
|
MenuPopup.displayName = "MenuPopup";
|
|
2328
2328
|
|
|
2329
2329
|
//#endregion
|
|
2330
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2330
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/portal/MenuPortalContext.mjs
|
|
2331
2331
|
const MenuPortalContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2332
2332
|
MenuPortalContext.displayName = "MenuPortalContext";
|
|
2333
2333
|
function useMenuPortalContext() {
|
|
@@ -2337,7 +2337,7 @@ function useMenuPortalContext() {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
|
|
2339
2339
|
//#endregion
|
|
2340
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2340
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/portal/MenuPortal.mjs
|
|
2341
2341
|
/**
|
|
2342
2342
|
* A portal element that moves the popup to a different part of the DOM.
|
|
2343
2343
|
* By default, the portal element is appended to `<body>`.
|
|
@@ -2360,7 +2360,7 @@ const MenuPortal = /*#__PURE__*/ React.forwardRef(function MenuPortal(props, for
|
|
|
2360
2360
|
MenuPortal.displayName = "MenuPortal";
|
|
2361
2361
|
|
|
2362
2362
|
//#endregion
|
|
2363
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2363
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
|
|
2364
2364
|
const VIEWPORT_WIDTH_TOLERANCE_PX = 20;
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when
|
|
@@ -2386,7 +2386,7 @@ function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, refer
|
|
|
2386
2386
|
}
|
|
2387
2387
|
|
|
2388
2388
|
//#endregion
|
|
2389
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2389
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/positioner/MenuPositioner.mjs
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Positions the menu popup against the trigger.
|
|
2392
2392
|
* Renders a `<div>` element.
|
|
@@ -2595,7 +2595,7 @@ const MenuPositioner = /*#__PURE__*/ React.forwardRef(function MenuPositioner(co
|
|
|
2595
2595
|
MenuPositioner.displayName = "MenuPositioner";
|
|
2596
2596
|
|
|
2597
2597
|
//#endregion
|
|
2598
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2598
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menubar/MenubarContext.mjs
|
|
2599
2599
|
const MenubarContext = /*#__PURE__*/ React.createContext(null);
|
|
2600
2600
|
MenubarContext.displayName = "MenubarContext";
|
|
2601
2601
|
function useMenubarContext(optional) {
|
|
@@ -2605,7 +2605,7 @@ function useMenubarContext(optional) {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
2607
|
//#endregion
|
|
2608
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2608
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/store/MenuStore.mjs
|
|
2609
2609
|
const selectors = {
|
|
2610
2610
|
...popupStoreSelectors,
|
|
2611
2611
|
disabled: (state) => state.parent.type === "menubar" ? state.parent.context.disabled || state.disabled : state.disabled,
|
|
@@ -2720,7 +2720,7 @@ function createInitialState() {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
|
|
2722
2722
|
//#endregion
|
|
2723
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2723
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/submenu-root/MenuSubmenuRootContext.mjs
|
|
2724
2724
|
const MenuSubmenuRootContext = /*#__PURE__*/ React.createContext(void 0);
|
|
2725
2725
|
MenuSubmenuRootContext.displayName = "MenuSubmenuRootContext";
|
|
2726
2726
|
function useMenuSubmenuRootContext() {
|
|
@@ -2728,7 +2728,7 @@ function useMenuSubmenuRootContext() {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
|
|
2730
2730
|
//#endregion
|
|
2731
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
2731
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/root/MenuRoot.mjs
|
|
2732
2732
|
/**
|
|
2733
2733
|
* Groups all parts of the menu.
|
|
2734
2734
|
* Doesn't render its own HTML element.
|
|
@@ -3029,7 +3029,7 @@ function useMenuRootStore(initialState) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
3031
|
//#endregion
|
|
3032
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3032
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
|
|
3033
3033
|
const BOUNDARY_OFFSET = 5;
|
|
3034
3034
|
/**
|
|
3035
3035
|
* Determines if a mouse event occurred within the bounds of an element
|
|
@@ -3063,7 +3063,7 @@ function getPseudoElementBounds(element) {
|
|
|
3063
3063
|
}
|
|
3064
3064
|
|
|
3065
3065
|
//#endregion
|
|
3066
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3066
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/internals/composite/item/CompositeItem.mjs
|
|
3067
3067
|
function CompositeItem(componentProps) {
|
|
3068
3068
|
const { render, className, style, state = EMPTY_OBJECT, props = EMPTY_ARRAY, refs = EMPTY_ARRAY, metadata, stateAttributesMapping, tag = "div", ...elementProps } = componentProps;
|
|
3069
3069
|
const { compositeProps, compositeRef } = useCompositeItem({ metadata });
|
|
@@ -3080,7 +3080,7 @@ function CompositeItem(componentProps) {
|
|
|
3080
3080
|
}
|
|
3081
3081
|
|
|
3082
3082
|
//#endregion
|
|
3083
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3083
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/utils/findRootOwnerId.mjs
|
|
3084
3084
|
function findRootOwnerId(node) {
|
|
3085
3085
|
if (isHTMLElement(node) && node.hasAttribute("data-rootownerid")) return node.getAttribute("data-rootownerid");
|
|
3086
3086
|
if (isLastTraversableNode(node)) return;
|
|
@@ -3088,7 +3088,7 @@ function findRootOwnerId(node) {
|
|
|
3088
3088
|
}
|
|
3089
3089
|
|
|
3090
3090
|
//#endregion
|
|
3091
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3091
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/utils/popups/useTriggerFocusGuards.mjs
|
|
3092
3092
|
/**
|
|
3093
3093
|
* Minimal store interface required by the focus guard hook.
|
|
3094
3094
|
* Both PopoverStore and MenuStore satisfy this interface.
|
|
@@ -3132,7 +3132,7 @@ function useTriggerFocusGuards(store, triggerElementRef) {
|
|
|
3132
3132
|
}
|
|
3133
3133
|
|
|
3134
3134
|
//#endregion
|
|
3135
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3135
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/utils/useMixedToggleClickHandler.mjs
|
|
3136
3136
|
/**
|
|
3137
3137
|
* Returns `click` and `mousedown` handlers that fix the behavior of triggers of popups that are toggled by different events.
|
|
3138
3138
|
* For example, a button that opens a popup on mousedown and closes it on click.
|
|
@@ -3167,7 +3167,7 @@ function useMixedToggleClickHandler(params) {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
|
|
3169
3169
|
//#endregion
|
|
3170
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@
|
|
3170
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.7.0_@types_e9c1e83f6bc6140c3efaf3427f2fbf0a/node_modules/@base-ui/react/menu/trigger/MenuTrigger.mjs
|
|
3171
3171
|
/**
|
|
3172
3172
|
* A button that opens the menu.
|
|
3173
3173
|
* Renders a `<button>` element.
|
|
@@ -4076,6 +4076,66 @@ function isNodeHidden(node) {
|
|
|
4076
4076
|
return !!node.hidden || node.children.every(isNodeHidden);
|
|
4077
4077
|
}
|
|
4078
4078
|
|
|
4079
|
+
//#endregion
|
|
4080
|
+
//#region src/lib/locale.ts
|
|
4081
|
+
/** Primary language subtags written right-to-left. */
|
|
4082
|
+
const RTL_LANGUAGES = /* @__PURE__ */ new Set([
|
|
4083
|
+
"ar",
|
|
4084
|
+
"ckb",
|
|
4085
|
+
"dv",
|
|
4086
|
+
"fa",
|
|
4087
|
+
"he",
|
|
4088
|
+
"iw",
|
|
4089
|
+
"ps",
|
|
4090
|
+
"sd",
|
|
4091
|
+
"ug",
|
|
4092
|
+
"ur",
|
|
4093
|
+
"yi"
|
|
4094
|
+
]);
|
|
4095
|
+
/** BCP 47-shaped tags with a 2-3 letter primary subtag, e.g. "es" or "pt-BR". */
|
|
4096
|
+
const LOCALE_PATTERN = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
4097
|
+
function isValidLocale(value) {
|
|
4098
|
+
if (!value || !LOCALE_PATTERN.test(value)) return false;
|
|
4099
|
+
try {
|
|
4100
|
+
return Intl.getCanonicalLocales(value).length > 0;
|
|
4101
|
+
} catch {
|
|
4102
|
+
return false;
|
|
4103
|
+
}
|
|
4104
|
+
}
|
|
4105
|
+
/**
|
|
4106
|
+
* Locale for a page: its scope's language code when valid, then the
|
|
4107
|
+
* site-wide shiso.config `locale`, then en-US.
|
|
4108
|
+
*/
|
|
4109
|
+
function resolveLocale(language, fallback) {
|
|
4110
|
+
if (isValidLocale(language)) return Intl.getCanonicalLocales(language)[0];
|
|
4111
|
+
if (isValidLocale(fallback)) return Intl.getCanonicalLocales(fallback)[0];
|
|
4112
|
+
return "en-US";
|
|
4113
|
+
}
|
|
4114
|
+
/** Document direction for a locale, e.g. "ar" and "he" read right-to-left. */
|
|
4115
|
+
function getTextDirection(locale) {
|
|
4116
|
+
const primary = locale.split("-")[0]?.toLowerCase() || "";
|
|
4117
|
+
return RTL_LANGUAGES.has(primary) ? "rtl" : "ltr";
|
|
4118
|
+
}
|
|
4119
|
+
/**
|
|
4120
|
+
* A language's name written in that language, for language selectors:
|
|
4121
|
+
* "ja" -> "日本語", "zh-Hant" -> "繁體中文", "es" -> "Español". Labels that
|
|
4122
|
+
* are not valid locale codes (e.g. "English") are returned unchanged.
|
|
4123
|
+
*/
|
|
4124
|
+
function getLanguageName(language) {
|
|
4125
|
+
if (!isValidLocale(language)) return language;
|
|
4126
|
+
const locale = Intl.getCanonicalLocales(language)[0];
|
|
4127
|
+
try {
|
|
4128
|
+
const name = new Intl.DisplayNames([locale], {
|
|
4129
|
+
type: "language",
|
|
4130
|
+
fallback: "none"
|
|
4131
|
+
}).of(locale);
|
|
4132
|
+
if (!name) return language;
|
|
4133
|
+
return name.charAt(0).toLocaleUpperCase(locale) + name.slice(1);
|
|
4134
|
+
} catch {
|
|
4135
|
+
return language;
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4079
4139
|
//#endregion
|
|
4080
4140
|
//#region src/lib/content.ts
|
|
4081
4141
|
/**
|
|
@@ -4123,47 +4183,6 @@ function getLastModified(filePath) {
|
|
|
4123
4183
|
return LAST_MODIFIED[filePath];
|
|
4124
4184
|
}
|
|
4125
4185
|
|
|
4126
|
-
//#endregion
|
|
4127
|
-
//#region src/lib/locale.ts
|
|
4128
|
-
/** Primary language subtags written right-to-left. */
|
|
4129
|
-
const RTL_LANGUAGES = /* @__PURE__ */ new Set([
|
|
4130
|
-
"ar",
|
|
4131
|
-
"ckb",
|
|
4132
|
-
"dv",
|
|
4133
|
-
"fa",
|
|
4134
|
-
"he",
|
|
4135
|
-
"iw",
|
|
4136
|
-
"ps",
|
|
4137
|
-
"sd",
|
|
4138
|
-
"ug",
|
|
4139
|
-
"ur",
|
|
4140
|
-
"yi"
|
|
4141
|
-
]);
|
|
4142
|
-
/** BCP 47-shaped tags with a 2-3 letter primary subtag, e.g. "es" or "pt-BR". */
|
|
4143
|
-
const LOCALE_PATTERN = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
4144
|
-
function isValidLocale(value) {
|
|
4145
|
-
if (!value || !LOCALE_PATTERN.test(value)) return false;
|
|
4146
|
-
try {
|
|
4147
|
-
return Intl.getCanonicalLocales(value).length > 0;
|
|
4148
|
-
} catch {
|
|
4149
|
-
return false;
|
|
4150
|
-
}
|
|
4151
|
-
}
|
|
4152
|
-
/**
|
|
4153
|
-
* Locale for a page: its scope's language code when valid, then the
|
|
4154
|
-
* site-wide shiso.config `locale`, then en-US.
|
|
4155
|
-
*/
|
|
4156
|
-
function resolveLocale(language, fallback) {
|
|
4157
|
-
if (isValidLocale(language)) return Intl.getCanonicalLocales(language)[0];
|
|
4158
|
-
if (isValidLocale(fallback)) return Intl.getCanonicalLocales(fallback)[0];
|
|
4159
|
-
return "en-US";
|
|
4160
|
-
}
|
|
4161
|
-
/** Document direction for a locale, e.g. "ar" and "he" read right-to-left. */
|
|
4162
|
-
function getTextDirection(locale) {
|
|
4163
|
-
const primary = locale.split("-")[0]?.toLowerCase() || "";
|
|
4164
|
-
return RTL_LANGUAGES.has(primary) ? "rtl" : "ltr";
|
|
4165
|
-
}
|
|
4166
|
-
|
|
4167
4186
|
//#endregion
|
|
4168
4187
|
//#region src/lib/code-blocks.ts
|
|
4169
4188
|
const DEFAULT_CODE_THEME = {
|
|
@@ -4329,6 +4348,8 @@ function resolveSiteModel(config, docs, shiso) {
|
|
|
4329
4348
|
...config.errors?.["404"],
|
|
4330
4349
|
redirect: config.errors?.["404"]?.redirect !== false
|
|
4331
4350
|
},
|
|
4351
|
+
editLink: config.editLink || null,
|
|
4352
|
+
feedback: config.feedback || null,
|
|
4332
4353
|
showTimestamp: config.metadata?.timestamp === true,
|
|
4333
4354
|
drilldown: config.interaction?.drilldown,
|
|
4334
4355
|
locale: shiso?.locale || "en-US",
|
|
@@ -4546,7 +4567,8 @@ function getPageTitle(pageTitle) {
|
|
|
4546
4567
|
* Language selector for multi-language sites. Each option is a language's
|
|
4547
4568
|
* landing scope — its default version — so switching languages always lands
|
|
4548
4569
|
* on that language's default-version first page. Hidden languages never
|
|
4549
|
-
* appear as options.
|
|
4570
|
+
* appear as options. Each language is shown by its native name, e.g. "ja"
|
|
4571
|
+
* as "日本語".
|
|
4550
4572
|
*/
|
|
4551
4573
|
function LanguageSwitcher() {
|
|
4552
4574
|
const { pathname } = useLocation();
|
|
@@ -4559,7 +4581,7 @@ function LanguageSwitcher() {
|
|
|
4559
4581
|
variant: "outline",
|
|
4560
4582
|
className: "h-auto gap-1.5 rounded-md bg-card px-2.5 py-1.5 text-sm font-medium text-foreground"
|
|
4561
4583
|
}),
|
|
4562
|
-
children: [current.language, /* @__PURE__ */ jsx(ChevronRight, { className: "size-3.5 rotate-90 text-muted-foreground" })]
|
|
4584
|
+
children: [getLanguageName(current.language), /* @__PURE__ */ jsx(ChevronRight, { className: "size-3.5 rotate-90 text-muted-foreground" })]
|
|
4563
4585
|
}), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
4564
4586
|
align: "start",
|
|
4565
4587
|
className: "min-w-32",
|
|
@@ -4569,14 +4591,15 @@ function LanguageSwitcher() {
|
|
|
4569
4591
|
},
|
|
4570
4592
|
children: [/* @__PURE__ */ jsx("span", {
|
|
4571
4593
|
className: "grow",
|
|
4572
|
-
|
|
4594
|
+
lang: isValidLocale(scope.language) ? scope.language : void 0,
|
|
4595
|
+
children: scope.language ? getLanguageName(scope.language) : null
|
|
4573
4596
|
}), scope.language === current.language ? /* @__PURE__ */ jsx(Check, { className: "size-3.5" }) : null]
|
|
4574
4597
|
}, scope.id))
|
|
4575
4598
|
})] });
|
|
4576
4599
|
}
|
|
4577
4600
|
|
|
4578
4601
|
//#endregion
|
|
4579
|
-
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-
|
|
4602
|
+
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
4580
4603
|
var U = 1;
|
|
4581
4604
|
var Y$1 = .9;
|
|
4582
4605
|
var H = .8;
|
|
@@ -4648,7 +4671,7 @@ function isFrame(element) {
|
|
|
4648
4671
|
__name$14(isFrame, "isFrame");
|
|
4649
4672
|
|
|
4650
4673
|
//#endregion
|
|
4651
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-
|
|
4674
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-ref_60a8f511f5a953d1cc58e5040847ca1c/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
4652
4675
|
var __defProp$13 = Object.defineProperty;
|
|
4653
4676
|
var __name$13 = (target, value) => __defProp$13(target, "name", {
|
|
4654
4677
|
value,
|
|
@@ -4683,7 +4706,7 @@ function useComposedRefs(...refs) {
|
|
|
4683
4706
|
__name$13(useComposedRefs, "useComposedRefs");
|
|
4684
4707
|
|
|
4685
4708
|
//#endregion
|
|
4686
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.
|
|
4709
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.2_dc174a77f999d3bc0470f0b9c664f7ff/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4687
4710
|
var __defProp$12 = Object.defineProperty;
|
|
4688
4711
|
var __name$12 = (target, value) => __defProp$12(target, "name", {
|
|
4689
4712
|
value,
|
|
@@ -4786,7 +4809,7 @@ function composeContextScopes(...scopes) {
|
|
|
4786
4809
|
__name$12(composeContextScopes, "composeContextScopes");
|
|
4787
4810
|
|
|
4788
4811
|
//#endregion
|
|
4789
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-
|
|
4812
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-_c99e7a4bfc0168fd072fc8506ded8cde/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
4790
4813
|
var useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {};
|
|
4791
4814
|
|
|
4792
4815
|
//#endregion
|
|
@@ -4808,7 +4831,7 @@ function useId$1(deterministicId) {
|
|
|
4808
4831
|
__name$11(useId$1, "useId");
|
|
4809
4832
|
|
|
4810
4833
|
//#endregion
|
|
4811
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-
|
|
4834
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-_e8d5e8242c04825bf34212c7f6280f14/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4812
4835
|
var __defProp$10 = Object.defineProperty;
|
|
4813
4836
|
var __name$10 = (target, value) => __defProp$10(target, "name", {
|
|
4814
4837
|
value,
|
|
@@ -4832,7 +4855,7 @@ function useEffectEvent(callback) {
|
|
|
4832
4855
|
__name$10(useEffectEvent, "useEffectEvent");
|
|
4833
4856
|
|
|
4834
4857
|
//#endregion
|
|
4835
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-
|
|
4858
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-control_22187853d61b94632003c277d0370b10/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
4836
4859
|
var __defProp$9 = Object.defineProperty;
|
|
4837
4860
|
var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
4838
4861
|
value,
|
|
@@ -5065,7 +5088,7 @@ var createSlottableError = /* @__PURE__ */ __name$8((ownerName) => {
|
|
|
5065
5088
|
var use = React[" use ".trim().toString()];
|
|
5066
5089
|
|
|
5067
5090
|
//#endregion
|
|
5068
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@
|
|
5091
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5069
5092
|
var __defProp$7 = Object.defineProperty;
|
|
5070
5093
|
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
5071
5094
|
value,
|
|
@@ -5112,7 +5135,7 @@ function dispatchDiscreteCustomEvent(target, event) {
|
|
|
5112
5135
|
__name$7(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
5113
5136
|
|
|
5114
5137
|
//#endregion
|
|
5115
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-
|
|
5138
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callbac_b03f33a0fc5867b4ab17368fb2aecc43/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
5116
5139
|
var __defProp$6 = Object.defineProperty;
|
|
5117
5140
|
var __name$6 = (target, value) => __defProp$6(target, "name", {
|
|
5118
5141
|
value,
|
|
@@ -5128,7 +5151,7 @@ function useCallbackRef$1(callback) {
|
|
|
5128
5151
|
__name$6(useCallbackRef$1, "useCallbackRef");
|
|
5129
5152
|
|
|
5130
5153
|
//#endregion
|
|
5131
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-
|
|
5154
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable_40e495cae3a960f65f80435c18b02650/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
5132
5155
|
var __defProp$5 = Object.defineProperty;
|
|
5133
5156
|
var __name$5 = (target, value) => __defProp$5(target, "name", {
|
|
5134
5157
|
value,
|
|
@@ -5393,7 +5416,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
|
5393
5416
|
__name$5(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
|
|
5394
5417
|
|
|
5395
5418
|
//#endregion
|
|
5396
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-
|
|
5419
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope_3b4e29b84c639c7da7ed6c275ef9f34b/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
5397
5420
|
var __defProp$4 = Object.defineProperty;
|
|
5398
5421
|
var __name$4 = (target, value) => __defProp$4(target, "name", {
|
|
5399
5422
|
value,
|
|
@@ -5600,7 +5623,7 @@ function removeLinks(items) {
|
|
|
5600
5623
|
__name$4(removeLinks, "removeLinks");
|
|
5601
5624
|
|
|
5602
5625
|
//#endregion
|
|
5603
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.
|
|
5626
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1._7d49bbd59f67da7ea06e84940374bb40/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
5604
5627
|
var __defProp$3 = Object.defineProperty;
|
|
5605
5628
|
var __name$3 = (target, value) => __defProp$3(target, "name", {
|
|
5606
5629
|
value,
|
|
@@ -5618,7 +5641,7 @@ var Portal = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name$3(function
|
|
|
5618
5641
|
}, "Portal"));
|
|
5619
5642
|
|
|
5620
5643
|
//#endregion
|
|
5621
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.
|
|
5644
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1._c16522d094fa2977c5a9a5cd628ab890/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5622
5645
|
var __defProp$2 = Object.defineProperty;
|
|
5623
5646
|
var __name$2 = (target, value) => __defProp$2(target, "name", {
|
|
5624
5647
|
value,
|
|
@@ -5761,7 +5784,7 @@ function getElementRef(element) {
|
|
|
5761
5784
|
__name$2(getElementRef, "getElementRef");
|
|
5762
5785
|
|
|
5763
5786
|
//#endregion
|
|
5764
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-
|
|
5787
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guard_0b6dc35411495c11d7017f4d480bfd1d/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
5765
5788
|
var __defProp$1 = Object.defineProperty;
|
|
5766
5789
|
var __name$1 = (target, value) => __defProp$1(target, "name", {
|
|
5767
5790
|
value,
|
|
@@ -5838,7 +5861,7 @@ function __spreadArray(to, from, pack) {
|
|
|
5838
5861
|
}
|
|
5839
5862
|
|
|
5840
5863
|
//#endregion
|
|
5841
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
5864
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3_6765803d5ca9f56610f613c0cdac7218/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
5842
5865
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
5843
5866
|
var fullWidthClassName = "width-before-scroll-bar";
|
|
5844
5867
|
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
@@ -6116,7 +6139,7 @@ var getNonce = function() {
|
|
|
6116
6139
|
};
|
|
6117
6140
|
|
|
6118
6141
|
//#endregion
|
|
6119
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6142
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_b6136bc3c152300a6c842c4b9688e211/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
6120
6143
|
function makeStyleTag() {
|
|
6121
6144
|
if (!document) return null;
|
|
6122
6145
|
var tag = document.createElement("style");
|
|
@@ -6156,7 +6179,7 @@ var stylesheetSingleton = function() {
|
|
|
6156
6179
|
};
|
|
6157
6180
|
|
|
6158
6181
|
//#endregion
|
|
6159
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6182
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_b6136bc3c152300a6c842c4b9688e211/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
6160
6183
|
/**
|
|
6161
6184
|
* creates a hook to control style singleton
|
|
6162
6185
|
* @see {@link styleSingleton} for a safer component version
|
|
@@ -6179,7 +6202,7 @@ var styleHookSingleton = function() {
|
|
|
6179
6202
|
};
|
|
6180
6203
|
|
|
6181
6204
|
//#endregion
|
|
6182
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.
|
|
6205
|
+
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_b6136bc3c152300a6c842c4b9688e211/node_modules/react-style-singleton/dist/es2015/component.js
|
|
6183
6206
|
/**
|
|
6184
6207
|
* create a Component to add styles on demand
|
|
6185
6208
|
* - styles are added when first instance is mounted
|
|
@@ -6197,7 +6220,7 @@ var styleSingleton = function() {
|
|
|
6197
6220
|
};
|
|
6198
6221
|
|
|
6199
6222
|
//#endregion
|
|
6200
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
6223
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3_6765803d5ca9f56610f613c0cdac7218/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
6201
6224
|
var zeroGap = {
|
|
6202
6225
|
left: 0,
|
|
6203
6226
|
top: 0,
|
|
@@ -6233,7 +6256,7 @@ var getGapWidth = function(gapMode) {
|
|
|
6233
6256
|
};
|
|
6234
6257
|
|
|
6235
6258
|
//#endregion
|
|
6236
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.
|
|
6259
|
+
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3_6765803d5ca9f56610f613c0cdac7218/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
6237
6260
|
var Style = styleSingleton();
|
|
6238
6261
|
var lockAttribute = "data-scroll-locked";
|
|
6239
6262
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
@@ -6648,7 +6671,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
6648
6671
|
};
|
|
6649
6672
|
|
|
6650
6673
|
//#endregion
|
|
6651
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.
|
|
6674
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1._f43cda4f5f60c6fd8f384ced683c6d90/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
6652
6675
|
var __defProp = Object.defineProperty;
|
|
6653
6676
|
var __name = (target, value) => __defProp(target, "name", {
|
|
6654
6677
|
value,
|
|
@@ -6839,7 +6862,7 @@ function getState(open) {
|
|
|
6839
6862
|
__name(getState, "getState");
|
|
6840
6863
|
|
|
6841
6864
|
//#endregion
|
|
6842
|
-
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-
|
|
6865
|
+
//#region ../../node_modules/.pnpm/cmdk@1.1.1_@types+react-dom_b7833f22e642c0a58838e454e2cd1ba9/node_modules/cmdk/dist/index.mjs
|
|
6843
6866
|
var N = "[cmdk-group=\"\"]";
|
|
6844
6867
|
var Y = "[cmdk-group-items=\"\"]";
|
|
6845
6868
|
var be = "[cmdk-group-heading=\"\"]";
|
|
@@ -8277,6 +8300,98 @@ function OpenApiOperation({ operation }) {
|
|
|
8277
8300
|
});
|
|
8278
8301
|
}
|
|
8279
8302
|
|
|
8303
|
+
//#endregion
|
|
8304
|
+
//#region src/components/PageActions.tsx
|
|
8305
|
+
function editHref(template, filePath) {
|
|
8306
|
+
if (!template) return void 0;
|
|
8307
|
+
const file = filePath.replace(/^\/+/, "").split("/").map(encodeURIComponent).join("/");
|
|
8308
|
+
const href = template.replaceAll("$file", file);
|
|
8309
|
+
try {
|
|
8310
|
+
const url = new URL(href);
|
|
8311
|
+
if (url.protocol === "https:" || url.protocol === "http:") return url.href;
|
|
8312
|
+
} catch {}
|
|
8313
|
+
}
|
|
8314
|
+
function PageActions({ page, frontmatter, site, lastUpdated }) {
|
|
8315
|
+
const [status, setStatus] = useState("idle");
|
|
8316
|
+
const [rating, setRating] = useState();
|
|
8317
|
+
const request = useRef(null);
|
|
8318
|
+
useEffect(() => () => request.current?.abort(), []);
|
|
8319
|
+
const feedback = frontmatter?.feedback === false ? null : site.feedback;
|
|
8320
|
+
const href = frontmatter?.editLink === false ? void 0 : editHref(typeof frontmatter?.editLink === "string" ? frontmatter.editLink : site.editLink?.url, page.filePath);
|
|
8321
|
+
async function submit(helpful) {
|
|
8322
|
+
if (!feedback || request.current || status === "success") return;
|
|
8323
|
+
const controller = new AbortController();
|
|
8324
|
+
request.current = controller;
|
|
8325
|
+
setRating(helpful);
|
|
8326
|
+
setStatus("pending");
|
|
8327
|
+
const timeout = window.setTimeout(() => controller.abort(), 15e3);
|
|
8328
|
+
try {
|
|
8329
|
+
const endpoint = new URL(toHref(feedback.endpoint), window.location.origin);
|
|
8330
|
+
if (!["https:", "http:"].includes(endpoint.protocol)) throw new Error("Invalid endpoint");
|
|
8331
|
+
if (!(await fetch(endpoint.href, {
|
|
8332
|
+
method: "POST",
|
|
8333
|
+
headers: { "Content-Type": "application/json" },
|
|
8334
|
+
body: JSON.stringify({
|
|
8335
|
+
helpful,
|
|
8336
|
+
path: toHref(page.url),
|
|
8337
|
+
title: frontmatter?.title || page.label,
|
|
8338
|
+
language: page.language,
|
|
8339
|
+
version: page.version
|
|
8340
|
+
}),
|
|
8341
|
+
signal: controller.signal
|
|
8342
|
+
})).ok) throw new Error("Feedback submission failed");
|
|
8343
|
+
setStatus("success");
|
|
8344
|
+
} catch {
|
|
8345
|
+
setStatus("error");
|
|
8346
|
+
} finally {
|
|
8347
|
+
window.clearTimeout(timeout);
|
|
8348
|
+
request.current = null;
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
if (!href && !feedback && !lastUpdated) return null;
|
|
8352
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [(lastUpdated || href) && /* @__PURE__ */ jsxs("div", {
|
|
8353
|
+
className: "mt-8 flex items-baseline gap-4 text-sm text-muted-foreground",
|
|
8354
|
+
"data-pagefind-ignore": true,
|
|
8355
|
+
children: [lastUpdated && /* @__PURE__ */ jsx("div", {
|
|
8356
|
+
className: "min-w-0",
|
|
8357
|
+
children: lastUpdated
|
|
8358
|
+
}), href && /* @__PURE__ */ jsxs("a", {
|
|
8359
|
+
href,
|
|
8360
|
+
target: "_blank",
|
|
8361
|
+
rel: "noopener noreferrer",
|
|
8362
|
+
className: "ml-auto inline-flex shrink-0 items-center gap-1.5 text-right no-underline hover:text-primary",
|
|
8363
|
+
children: [site.editLink?.label || "Edit this page", /* @__PURE__ */ jsx(ExternalLink, {
|
|
8364
|
+
size: 14,
|
|
8365
|
+
"aria-hidden": "true"
|
|
8366
|
+
})]
|
|
8367
|
+
})]
|
|
8368
|
+
}), feedback && /* @__PURE__ */ jsxs("div", {
|
|
8369
|
+
className: "mt-8 flex flex-col gap-2 border-t border-border pt-6 text-sm",
|
|
8370
|
+
"aria-busy": status === "pending",
|
|
8371
|
+
"data-pagefind-ignore": true,
|
|
8372
|
+
children: [/* @__PURE__ */ jsxs("fieldset", {
|
|
8373
|
+
"aria-label": feedback.prompt || "Was this page helpful?",
|
|
8374
|
+
className: "flex flex-wrap items-center gap-2",
|
|
8375
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
8376
|
+
className: "mr-2 text-muted-foreground",
|
|
8377
|
+
children: feedback.prompt || "Was this page helpful?"
|
|
8378
|
+
}), [true, false].map((helpful) => /* @__PURE__ */ jsx("button", {
|
|
8379
|
+
type: "button",
|
|
8380
|
+
"aria-pressed": rating === helpful,
|
|
8381
|
+
disabled: status === "pending" || status === "success",
|
|
8382
|
+
onClick: () => void submit(helpful),
|
|
8383
|
+
className: "rounded-md border border-border px-3 py-1.5 text-foreground hover:bg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:cursor-default disabled:opacity-60 aria-pressed:border-primary aria-pressed:text-primary",
|
|
8384
|
+
children: helpful ? feedback.helpfulLabel || "Yes" : feedback.unhelpfulLabel || "No"
|
|
8385
|
+
}, String(helpful)))]
|
|
8386
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
8387
|
+
role: "status",
|
|
8388
|
+
"aria-live": "polite",
|
|
8389
|
+
className: "text-muted-foreground",
|
|
8390
|
+
children: [status === "success" && (feedback.successMessage || "Thanks for your feedback!"), status === "error" && (feedback.errorMessage || "Could not send feedback. Please try again.")]
|
|
8391
|
+
})]
|
|
8392
|
+
})] });
|
|
8393
|
+
}
|
|
8394
|
+
|
|
8280
8395
|
//#endregion
|
|
8281
8396
|
//#region src/components/DocContent.tsx
|
|
8282
8397
|
/**
|
|
@@ -8377,17 +8492,19 @@ function DocContent({ page, doc, site }) {
|
|
|
8377
8492
|
children: /* @__PURE__ */ jsx(Content, {})
|
|
8378
8493
|
}),
|
|
8379
8494
|
operation && /* @__PURE__ */ jsx(OpenApiOperation, { operation }),
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8495
|
+
/* @__PURE__ */ jsx(PageActions, {
|
|
8496
|
+
page,
|
|
8497
|
+
frontmatter: doc.frontmatter,
|
|
8498
|
+
site,
|
|
8499
|
+
lastUpdated: lastModified ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
8383
8500
|
site.labels.lastUpdated,
|
|
8384
8501
|
" ",
|
|
8385
8502
|
/* @__PURE__ */ jsx("time", {
|
|
8386
8503
|
dateTime: lastModified,
|
|
8387
8504
|
children: dateFormat.format(new Date(lastModified))
|
|
8388
8505
|
})
|
|
8389
|
-
]
|
|
8390
|
-
}),
|
|
8506
|
+
] }) : void 0
|
|
8507
|
+
}, page.url),
|
|
8391
8508
|
related.length > 0 && /* @__PURE__ */ jsxs("nav", {
|
|
8392
8509
|
className: "mt-8",
|
|
8393
8510
|
"aria-label": site.labels.relatedTopics,
|
|
@@ -9014,8 +9131,9 @@ function StandalonePageView({ page, site }) {
|
|
|
9014
9131
|
|
|
9015
9132
|
//#endregion
|
|
9016
9133
|
//#region src/App.tsx
|
|
9134
|
+
const { mermaidSource: _mermaidSource, usePanelContent: _usePanelContent, useSetPanelContent: _useSetPanelContent, ...mdxDocsComponents } = docs_exports;
|
|
9017
9135
|
const mdxComponents = {
|
|
9018
|
-
...
|
|
9136
|
+
...mdxDocsComponents,
|
|
9019
9137
|
img: ZoomableImage,
|
|
9020
9138
|
pre: CodeBlock
|
|
9021
9139
|
};
|