@mintlify/msft-sdk 1.1.65 → 1.1.67

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.
@@ -1,20 +1,21 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { getShortenedMethodName as s, getMethodColor as c } from "./colors.js";
3
- import { cn as g } from "../../utils/cn.js";
4
- const h = ({ isActive: n = !1, method: t, shortMethod: e = !1, className: o }) => {
5
- const i = t.toUpperCase(), m = s(i), { activeNavPillBg: l, activeNavPillText: a, inactiveNavPillText: r, inactiveNavPillBg: d } = c(t);
3
+ import { cn as x } from "../../utils/cn.js";
4
+ const v = ({ isActive: n = !1, method: t, shortMethod: e = !1, className: m }) => {
5
+ const i = t.toUpperCase(), o = s(i), { activeNavPillBg: l, activeNavPillText: r, inactiveNavPillText: a, inactiveNavPillBg: d } = c(t);
6
6
  return /* @__PURE__ */ p(
7
7
  "span",
8
8
  {
9
- className: g(
9
+ className: x(
10
+ "mint:flex-shrink-0 mint:flex-grow-0",
10
11
  e ? "mint:px-1 mint:py-0.5 mint:rounded-md mint:text-[0.55rem] mint:leading-tight mint:font-bold" : "mint:px-2 mint:py-0.5 mint:rounded-md mint:text-sm mint:leading-tight mint:font-bold",
11
- n ? `${l} ${a}` : `${d} ${r}`,
12
- o
12
+ n ? `${l} ${r}` : `${d} ${a}`,
13
+ m
13
14
  ),
14
- children: e ? m : i
15
+ children: e ? o : i
15
16
  }
16
17
  );
17
18
  };
18
19
  export {
19
- h as MethodPill
20
+ v as MethodPill
20
21
  };
@@ -1,46 +1,46 @@
1
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
- import { useEffect as C } from "react";
3
- import { ApiExamples as E } from "../api-playground-2/ApiExamples.js";
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { useEffect as E } from "react";
3
+ import { ApiExamples as C } from "../api-playground-2/ApiExamples.js";
4
4
  import { ComponentsProvider as P } from "../context/components-context.js";
5
5
  /* empty css */
6
6
  import { cn as e } from "../utils/cn.js";
7
- import { MDXRenderer as T } from "./mdx-renderer.js";
8
- import { PageContextMenu as A } from "./page-context-menu.js";
9
- import { Api as B } from "../api-playground-2/Api.js";
10
- import { PageProvider as I, ApiReferenceProvider2 as j } from "../contexts/ConfigContext.js";
7
+ import { MDXRenderer as B } from "./mdx-renderer.js";
8
+ import { PageContextMenu as I } from "./page-context-menu.js";
9
+ import { Api as T } from "../api-playground-2/Api.js";
10
+ import { PageProvider as S, ApiReferenceProvider2 as A } from "../contexts/ConfigContext.js";
11
11
  function K({
12
12
  theme: a,
13
- className: f = "",
13
+ className: h = "",
14
14
  pathname: r,
15
- markdownContent: h,
15
+ markdownContent: f,
16
16
  allPages: b,
17
- baseUrl: p,
18
- LinkComponent: w,
19
- contextMenu: i,
20
- apiReferenceData: l,
21
- pageMetadata: n
17
+ baseUrl: g,
18
+ LinkComponent: p,
19
+ contextMenu: n,
20
+ apiReferenceData: i,
21
+ pageMetadata: o
22
22
  }) {
23
- return C(() => {
23
+ return E(() => {
24
24
  const { hash: s } = window.location;
25
25
  if (!s) return;
26
- const g = setTimeout(() => {
27
- const x = s.substring(1), m = document.getElementById("main-content"), c = document.getElementById(x);
28
- if (m && c) {
29
- const d = window.getComputedStyle(document.documentElement), u = parseFloat(d.getPropertyValue("--scroll-mt") || "0"), v = parseFloat(d.fontSize), k = u * v, N = m.getBoundingClientRect(), y = c.getBoundingClientRect().top - N.top + m.scrollTop - k;
26
+ const w = setTimeout(() => {
27
+ const x = s.substring(1), m = document.getElementById("main-content"), d = document.getElementById(x);
28
+ if (m && d) {
29
+ const c = window.getComputedStyle(document.documentElement), u = parseFloat(c.getPropertyValue("--scroll-mt") || "0"), v = parseFloat(c.fontSize), k = u * v, N = m.getBoundingClientRect(), y = d.getBoundingClientRect().top - N.top + m.scrollTop - k;
30
30
  m.scrollTo({
31
31
  top: y,
32
32
  behavior: "instant"
33
33
  });
34
34
  }
35
35
  }, 100);
36
- return () => clearTimeout(g);
37
- }, [r]), /* @__PURE__ */ t(P, { LinkComponent: w, children: /* @__PURE__ */ t(
36
+ return () => clearTimeout(w);
37
+ }, [r]), /* @__PURE__ */ t(P, { LinkComponent: p, children: /* @__PURE__ */ t(
38
38
  "div",
39
39
  {
40
40
  className: e(
41
41
  "mintlify-docs",
42
42
  a === "dark" && "dark",
43
- f,
43
+ h,
44
44
  "mint:flex mint:flex-col mint:flex-1 mint:min-h-0 mint:h-full mint:overflow-hidden"
45
45
  ),
46
46
  children: /* @__PURE__ */ t(
@@ -60,49 +60,60 @@ function K({
60
60
  className: e(
61
61
  "mint:flex-1 mint:p-8 mint:overflow-y-auto mint:overflow-x-hidden mint:rounded-tl-2xl mint:bg-white mint:dark:bg-[#1f1f1f] [scrollbar-gutter:stable] mint:overscroll-contain mint:lg:px-16 mint:lg:pt-12 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.2)_transparent] dark:[scrollbar-color:rgba(255,255,255,0.2)_transparent] mint:[&::-webkit-scrollbar]:w-1 mint:[&::-webkit-scrollbar-track]:bg-transparent mint:[&::-webkit-scrollbar-thumb]:bg-black/20 mint:dark:[&::-webkit-scrollbar-thumb]:bg-white/20 mint:[&::-webkit-scrollbar-thumb]:rounded mint:[&::-webkit-scrollbar-thumb:hover]:bg-black/30 mint:dark:[&::-webkit-scrollbar-thumb:hover]:bg-white/30"
62
62
  ),
63
- children: /* @__PURE__ */ o(
63
+ children: /* @__PURE__ */ l(
64
64
  "div",
65
65
  {
66
66
  className: "mint:flex mint:flex-row-reverse mint:gap-12 mint:justify-center mint:mx-auto mint:w-full",
67
67
  id: "content-layout-container",
68
68
  children: [
69
- l != null && l.operation ? /* @__PURE__ */ t("div", { className: "mint:hidden mint:xl:flex! mint:self-start mint:sticky mint:flex-col mint:max-w-md mint:top-0 mint:gap-6", children: /* @__PURE__ */ t(E, { apiReferenceData: l }) }) : null,
70
- /* @__PURE__ */ o(
69
+ (console.log("[DEBUG] apiPage.tsx - apiReferenceData:", i), console.log("[DEBUG] apiPage.tsx - apiReferenceData?.operation:", i == null ? void 0 : i.operation), console.log("[DEBUG] apiPage.tsx - Should render sidebar:", !!(i != null && i.operation)), null),
70
+ (i == null ? void 0 : i.operation) && /* @__PURE__ */ l(
71
+ "div",
72
+ {
73
+ className: "mint:self-start mint:sticky mint:flex-col mint:w-[448px] mint:top-4 mint:gap-6 mint:hidden mint:lg:flex",
74
+ style: { backgroundColor: "red", minHeight: "200px" },
75
+ children: [
76
+ /* @__PURE__ */ t("div", { style: { color: "white", padding: "10px" }, children: "SIDEBAR IS RENDERING" }),
77
+ /* @__PURE__ */ t(C, { apiReferenceData: i, noInputs: !0 })
78
+ ]
79
+ }
80
+ ),
81
+ /* @__PURE__ */ l(
71
82
  "div",
72
83
  {
73
84
  className: e(
74
85
  "mint:w-full mint:overflow-x-visible mint:max-w-[730px]"
75
86
  ),
76
87
  children: [
77
- n.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ o("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
78
- /* @__PURE__ */ o("div", { className: "mint:flex mint:flex-col mint:gap-2 mint:items-start", children: [
79
- /* @__PURE__ */ t("h1", { className: "mint:text-[1.875rem] mint:font-bold mint:text-[#141414] mint:dark:text-white mint:m-0 mint:leading-[1.2] mint:pt-3", children: n.title }),
80
- n.description && /* @__PURE__ */ t("p", { className: "mint:text-lg mint:text-[#4b5563] mint:dark:text-[#d1d5db] mint:m-0", children: n.description })
88
+ o.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ l("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
89
+ /* @__PURE__ */ l("div", { className: "mint:flex mint:flex-col mint:gap-2 mint:items-start", children: [
90
+ /* @__PURE__ */ t("h1", { className: "mint:text-[1.875rem] mint:font-bold mint:text-[#141414] mint:dark:text-white mint:m-0 mint:leading-[1.2] mint:pt-3", children: o.title }),
91
+ o.description && /* @__PURE__ */ t("p", { className: "mint:text-lg mint:text-[#4b5563] mint:dark:text-[#d1d5db] mint:m-0", children: o.description })
81
92
  ] }),
82
93
  r && /* @__PURE__ */ t(
83
- A,
94
+ I,
84
95
  {
85
96
  className: "mint:shrink-0",
86
97
  pathname: r,
87
- markdownContent: h,
98
+ markdownContent: f,
88
99
  allPages: b,
89
- baseUrl: p,
90
- onCopyMarkdown: i == null ? void 0 : i.onCopyMarkdown,
91
- onViewMarkdown: i == null ? void 0 : i.onViewMarkdown
100
+ baseUrl: g,
101
+ onCopyMarkdown: n == null ? void 0 : n.onCopyMarkdown,
102
+ onViewMarkdown: n == null ? void 0 : n.onViewMarkdown
92
103
  }
93
104
  )
94
105
  ] }) }),
95
- /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(I, { value: {
96
- pageMetadata: n,
106
+ /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(S, { value: {
107
+ pageMetadata: o,
97
108
  pathname: r
98
109
  }, children: /* @__PURE__ */ t(
99
- j,
110
+ A,
100
111
  {
101
- pageMetadata: n,
112
+ pageMetadata: o,
102
113
  docsConfig: void 0,
103
114
  mdxExtracts: void 0,
104
- apiReferenceData2: l,
105
- children: /* @__PURE__ */ t(B, {})
115
+ apiReferenceData2: i,
116
+ children: /* @__PURE__ */ t(T, {})
106
117
  }
107
118
  ) }) }) })
108
119
  ]
@@ -9,6 +9,9 @@ import "prismjs/components/prism-markdown.js";
9
9
  import "prismjs/components/prism-powershell.js";
10
10
  import "prismjs/components/prism-python.js";
11
11
  import "prismjs/components/prism-typescript.js";
12
+ import "prismjs/components/prism-java.js";
13
+ import "prismjs/components/prism-ruby.js";
14
+ import "prismjs/components/prism-go.js";
12
15
  import z, { useState as v, useEffect as F } from "react";
13
16
  import { cn as p } from "../../utils/cn.js";
14
17
  import { getNodeText as D } from "../../utils/get-node-text.js";
@@ -58,7 +61,7 @@ function C({ onClick: t, isCopied: e, showTooltip: r = !0 }) {
58
61
  )
59
62
  ] });
60
63
  }
61
- function tt({
64
+ function rt({
62
65
  textToCopy: t,
63
66
  showTooltip: e = !0
64
67
  }) {
@@ -67,7 +70,7 @@ function tt({
67
70
  c(t);
68
71
  }, isCopied: r, showTooltip: e });
69
72
  }
70
- function et({
73
+ function nt({
71
74
  data: t,
72
75
  showTooltip: e = !0
73
76
  }) {
@@ -76,7 +79,7 @@ function et({
76
79
  t.contentType && T.includes(t.contentType) ? n(t.blob, t.contentType) : t.type === "other" && t.content ? c(t.content) : console.error("Unsupported content type for clipboard");
77
80
  }, isCopied: r, showTooltip: e });
78
81
  }
79
- function ot({
82
+ function it({
80
83
  children: t,
81
84
  className: e,
82
85
  fileName: r,
@@ -174,9 +177,9 @@ function ot({
174
177
  );
175
178
  }
176
179
  export {
177
- ot as CodeBlock,
178
- et as CopyDataToClipboardButton,
180
+ it as CodeBlock,
181
+ nt as CopyDataToClipboardButton,
179
182
  C as CopyIconButton,
180
- tt as CopyToClipboardButton,
183
+ rt as CopyToClipboardButton,
181
184
  y as useCopyToClipboard
182
185
  };
@@ -1,4 +1,4 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import p from "prismjs";
3
3
  import "prismjs/components/prism-javascript.js";
4
4
  import "prismjs/components/prism-typescript.js";
@@ -8,19 +8,22 @@ import "prismjs/components/prism-json.js";
8
8
  import "prismjs/components/prism-markdown.js";
9
9
  import "prismjs/components/prism-csharp.js";
10
10
  import "prismjs/components/prism-powershell.js";
11
- function l({ language: r, children: t }) {
11
+ import "prismjs/components/prism-java.js";
12
+ require("prismjs/components/prism-ruby.js");
13
+ require("prismjs/components/prism-go.js");
14
+ function H({ language: r, children: t }) {
12
15
  const n = typeof t == "string" ? t : "";
13
16
  r = r ?? "text";
14
- let i = "";
17
+ let o = "";
15
18
  if (n)
16
19
  try {
17
20
  const e = p.languages[r] || p.languages.plaintext;
18
- i = p.highlight(n, e, r);
21
+ o = p.highlight(n, e, r);
19
22
  } catch (e) {
20
23
  console.error("Failed to highlight code:", e);
21
24
  }
22
- return typeof t == "string" && r && i ? /* @__PURE__ */ o("pre", { suppressHydrationWarning: !0, children: /* @__PURE__ */ o("code", { suppressHydrationWarning: !0, dangerouslySetInnerHTML: { __html: i } }) }) : /* @__PURE__ */ o("pre", { suppressHydrationWarning: !0, children: /* @__PURE__ */ o("code", { suppressHydrationWarning: !0, children: t }) });
25
+ return typeof t == "string" && r && o ? /* @__PURE__ */ i("pre", { suppressHydrationWarning: !0, children: /* @__PURE__ */ i("code", { suppressHydrationWarning: !0, dangerouslySetInnerHTML: { __html: o } }) }) : /* @__PURE__ */ i("pre", { suppressHydrationWarning: !0, children: /* @__PURE__ */ i("code", { suppressHydrationWarning: !0, children: t }) });
23
26
  }
24
27
  export {
25
- l as CodeSnippet
28
+ H as CodeSnippet
26
29
  };
@@ -1,62 +1,67 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { TextAlignLeftFilled as L } from "@fluentui/react-icons";
3
- import { useEffect as O } from "react";
4
- import { ComponentsProvider as S } from "../context/components-context.js";
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
+ import { TextAlignLeftFilled as O } from "@fluentui/react-icons";
3
+ import { useEffect as S } from "react";
4
+ import { ComponentsProvider as j } from "../context/components-context.js";
5
5
  /* empty css */
6
- import { cn as c } from "../utils/cn.js";
7
- import { MDXRenderer as j } from "./mdx-renderer.js";
8
- import { PageContextMenu as B } from "./page-context-menu.js";
6
+ import { cn as d } from "../utils/cn.js";
7
+ import { MDXRenderer as A } from "./mdx-renderer.js";
8
+ import { PageContextMenu as G } from "./page-context-menu.js";
9
9
  import { TableOfContents as H } from "./toc/index.js";
10
10
  import { PivotAwareTOC as V } from "./toc/pivot-aware-toc.js";
11
- import { ZonePivotProvider as A } from "./content-components/zone-pivots/zone-pivot-context.js";
12
- import { ZonePivotSelector as D } from "./content-components/zone-pivots/zone-pivot-selector.js";
13
- function rt({
11
+ import { ApiExamples as U } from "../api-playground-2/ApiExamples.js";
12
+ import { ApiReferenceProvider2 as Z } from "../contexts/ConfigContext.js";
13
+ import { ZonePivotProvider as _ } from "./content-components/zone-pivots/zone-pivot-context.js";
14
+ import { ZonePivotSelector as M } from "./content-components/zone-pivots/zone-pivot-selector.js";
15
+ function dt({
14
16
  payload: i,
15
- toc: o,
16
- navTree: G,
17
- activeHref: Z,
18
- theme: b,
19
- className: p = "",
20
- pathname: l,
21
- markdownContent: x,
22
- allPages: w,
17
+ toc: r,
18
+ navTree: W,
19
+ activeHref: X,
20
+ theme: p,
21
+ className: x = "",
22
+ pathname: s,
23
+ markdownContent: w,
24
+ allPages: v,
23
25
  baseUrl: u,
24
- bottomLinks: _,
25
- LinkComponent: v,
26
- localization: k,
27
- telemetry: W,
28
- contextMenu: n
26
+ bottomLinks: q,
27
+ LinkComponent: k,
28
+ localization: N,
29
+ telemetry: J,
30
+ contextMenu: e,
31
+ apiReferenceData: n
29
32
  }) {
30
- var d, f;
31
- const N = i.serializedContent, s = ((d = i.mdxExtracts) == null ? void 0 : d.zonePivotGroups) || [], a = (f = i.mdxExtracts) == null ? void 0 : f.pivotTocItems, T = !i.title, P = { ...{
33
+ var h, f;
34
+ const T = i.serializedContent, c = ((h = i.mdxExtracts) == null ? void 0 : h.zonePivotGroups) || [], a = (f = i.mdxExtracts) == null ? void 0 : f.pivotTocItems, P = !i.title;
35
+ console.log("[DEBUG] DocsPage - apiReferenceData from props:", n), console.log("[DEBUG] DocsPage - Has operation:", !!(n != null && n.operation));
36
+ const C = { ...{
32
37
  onThisPage: "On this page",
33
38
  loading: "Loading...",
34
39
  errorTitle: "Error",
35
40
  errorMessage: "Something went wrong",
36
41
  notFoundTitle: "Page not found",
37
42
  notFoundMessage: "The page you're looking for doesn't exist"
38
- }, ...k };
39
- return O(() => {
43
+ }, ...N };
44
+ return S(() => {
40
45
  const { hash: m } = window.location;
41
46
  if (!m) return;
42
- const C = setTimeout(() => {
43
- const y = m.substring(1), r = document.getElementById("main-content"), h = document.getElementById(y);
44
- if (r && h) {
45
- const g = window.getComputedStyle(document.documentElement), E = parseFloat(g.getPropertyValue("--scroll-mt") || "0"), z = parseFloat(g.fontSize), R = E * z, F = r.getBoundingClientRect(), I = h.getBoundingClientRect().top - F.top + r.scrollTop - R;
46
- r.scrollTo({
47
- top: I,
47
+ const E = setTimeout(() => {
48
+ const y = m.substring(1), l = document.getElementById("main-content"), g = document.getElementById(y);
49
+ if (l && g) {
50
+ const b = window.getComputedStyle(document.documentElement), z = parseFloat(b.getPropertyValue("--scroll-mt") || "0"), I = parseFloat(b.fontSize), B = z * I, F = l.getBoundingClientRect(), L = g.getBoundingClientRect().top - F.top + l.scrollTop - B;
51
+ l.scrollTo({
52
+ top: L,
48
53
  behavior: "instant"
49
54
  });
50
55
  }
51
56
  }, 100);
52
- return () => clearTimeout(C);
53
- }, [l]), /* @__PURE__ */ t(S, { LinkComponent: v, children: /* @__PURE__ */ t(
57
+ return () => clearTimeout(E);
58
+ }, [s]), /* @__PURE__ */ t(j, { LinkComponent: k, children: /* @__PURE__ */ t(
54
59
  "div",
55
60
  {
56
- className: c(
61
+ className: d(
57
62
  "mintlify-docs",
58
- b === "dark" && "dark",
59
- p,
63
+ p === "dark" && "dark",
64
+ x,
60
65
  "mint:flex mint:flex-col mint:flex-1 mint:min-h-0 mint:h-full mint:overflow-hidden"
61
66
  ),
62
67
  children: /* @__PURE__ */ t(
@@ -73,57 +78,66 @@ function rt({
73
78
  "div",
74
79
  {
75
80
  id: "main-content",
76
- className: c(
81
+ className: d(
77
82
  "mint:flex-1 mint:p-8 mint:overflow-y-auto mint:overflow-x-hidden mint:rounded-tl-2xl mint:bg-white mint:dark:bg-[#1f1f1f] [scrollbar-gutter:stable] mint:overscroll-contain mint:lg:px-16 mint:lg:pt-12 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.2)_transparent] dark:[scrollbar-color:rgba(255,255,255,0.2)_transparent] mint:[&::-webkit-scrollbar]:w-1 mint:[&::-webkit-scrollbar-track]:bg-transparent mint:[&::-webkit-scrollbar-thumb]:bg-black/20 mint:dark:[&::-webkit-scrollbar-thumb]:bg-white/20 mint:[&::-webkit-scrollbar-thumb]:rounded mint:[&::-webkit-scrollbar-thumb:hover]:bg-black/30 mint:dark:[&::-webkit-scrollbar-thumb:hover]:bg-white/30"
78
83
  ),
79
- children: /* @__PURE__ */ t(A, { groups: s, children: /* @__PURE__ */ e(
84
+ children: /* @__PURE__ */ t(_, { groups: c, children: /* @__PURE__ */ o(
80
85
  "div",
81
86
  {
82
87
  className: "mint:flex mint:flex-row-reverse mint:gap-12 mint:justify-center mint:mx-auto mint:w-full",
83
88
  id: "content-layout-container",
84
89
  children: [
85
- o && o.length > 0 ? /* @__PURE__ */ t("aside", { className: "mint:w-68 mint:shrink-0 mint:ml-8 mint:max-xl:hidden mint:xl:block", children: /* @__PURE__ */ e("div", { className: "mint:sticky mint:top-2 mint:p-2 mint:pb-6 mint:max-h-[calc(100vh-3.5rem)] mint:overflow-y-auto", children: [
86
- /* @__PURE__ */ e("div", { className: "mint:flex mint:items-center mint:gap-2 mint:mb-4", children: [
87
- /* @__PURE__ */ t(L, { className: "mint:w-4 mint:h-4 mint:text-[#4b5563] mint:dark:text-[#adadad]" }),
88
- /* @__PURE__ */ t("h2", { className: "mint:text-sm mint:font-semibold mint:text-[#141414] mint:dark:text-white", children: P.onThisPage })
90
+ n != null && n.operation ? /* @__PURE__ */ t("aside", { className: "mint:w-[448px] mint:shrink-0 mint:ml-8 mint:hidden mint:lg:block", children: /* @__PURE__ */ t("div", { className: "mint:sticky mint:top-4 mint:flex mint:flex-col mint:gap-6", children: /* @__PURE__ */ t(
91
+ Z,
92
+ {
93
+ pageMetadata: { title: i.title, description: i.description },
94
+ docsConfig: void 0,
95
+ mdxExtracts: void 0,
96
+ apiReferenceData2: n,
97
+ children: /* @__PURE__ */ t(U, { noInputs: !0 })
98
+ }
99
+ ) }) }) : r && r.length > 0 ? /* @__PURE__ */ t("aside", { className: "mint:w-68 mint:shrink-0 mint:ml-8 mint:max-xl:hidden mint:xl:block", children: /* @__PURE__ */ o("div", { className: "mint:sticky mint:top-2 mint:p-2 mint:pb-6 mint:max-h-[calc(100vh-3.5rem)] mint:overflow-y-auto", children: [
100
+ /* @__PURE__ */ o("div", { className: "mint:flex mint:items-center mint:gap-2 mint:mb-4", children: [
101
+ /* @__PURE__ */ t(O, { className: "mint:w-4 mint:h-4 mint:text-[#4b5563] mint:dark:text-[#adadad]" }),
102
+ /* @__PURE__ */ t("h2", { className: "mint:text-sm mint:font-semibold mint:text-[#141414] mint:dark:text-white", children: C.onThisPage })
89
103
  ] }),
90
- a && Object.keys(a).length > 0 ? /* @__PURE__ */ t(V, { baseToc: o, pivotTocItems: a }) : /* @__PURE__ */ t(H, { toc: o })
104
+ a && Object.keys(a).length > 0 ? /* @__PURE__ */ t(V, { baseToc: r, pivotTocItems: a }) : /* @__PURE__ */ t(H, { toc: r })
91
105
  ] }) }) : null,
92
- /* @__PURE__ */ e(
106
+ /* @__PURE__ */ o(
93
107
  "div",
94
108
  {
95
- className: c(
109
+ className: d(
96
110
  "mint:w-full mint:overflow-x-visible mint:max-w-[730px]",
97
- T && "mint:max-w-none!"
111
+ P && "mint:max-w-none!"
98
112
  ),
99
113
  children: [
100
- i.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
101
- /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col mint:gap-2 mint:items-start", children: [
114
+ i.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ o("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
115
+ /* @__PURE__ */ o("div", { className: "mint:flex mint:flex-col mint:gap-2 mint:items-start", children: [
102
116
  /* @__PURE__ */ t("h1", { className: "mint:text-[1.875rem] mint:font-bold mint:text-[#141414] mint:dark:text-white mint:m-0 mint:leading-[1.2] mint:pt-3", children: i.title }),
103
117
  i.description && /* @__PURE__ */ t("p", { className: "mint:text-lg mint:text-[#4b5563] mint:dark:text-[#d1d5db] mint:m-0", children: i.description })
104
118
  ] }),
105
- l && /* @__PURE__ */ t(
106
- B,
119
+ s && /* @__PURE__ */ t(
120
+ G,
107
121
  {
108
122
  className: "mint:shrink-0",
109
- pathname: l,
110
- markdownContent: x,
111
- allPages: w,
123
+ pathname: s,
124
+ markdownContent: w,
125
+ allPages: v,
112
126
  baseUrl: u,
113
- onCopyMarkdown: n == null ? void 0 : n.onCopyMarkdown,
114
- onViewMarkdown: n == null ? void 0 : n.onViewMarkdown
127
+ onCopyMarkdown: e == null ? void 0 : e.onCopyMarkdown,
128
+ onViewMarkdown: e == null ? void 0 : e.onViewMarkdown
115
129
  }
116
130
  )
117
131
  ] }) }),
118
- s.length > 0 && /* @__PURE__ */ t("div", { className: "mint:mb-6 mint:flex mint:flex-wrap mint:gap-4", children: s.map((m) => /* @__PURE__ */ t(
119
- D,
132
+ c.length > 0 && /* @__PURE__ */ t("div", { className: "mint:mb-6 mint:flex mint:flex-wrap mint:gap-4", children: c.map((m) => /* @__PURE__ */ t(
133
+ M,
120
134
  {
121
135
  group: m,
122
136
  className: "mint:flex mint:items-center mint:gap-2 mint:text-sm"
123
137
  },
124
138
  m.id
125
139
  )) }),
126
- /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(N, {}) }) })
140
+ /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(T, {}) }) })
127
141
  ]
128
142
  }
129
143
  )
@@ -140,5 +154,5 @@ function rt({
140
154
  ) });
141
155
  }
142
156
  export {
143
- rt as DocsPage
157
+ dt as DocsPage
144
158
  };
@@ -135,12 +135,12 @@ function $({ item: e, activeId: g, level: u = 0, activeHref: c }) {
135
135
  href: e.href,
136
136
  "aria-current": l ? "page" : void 0,
137
137
  className: h(
138
- "mint:relative mint:flex mint:items-center mint:gap-2 mint:py-1 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-lg mint:no-underline mint:text-[#707070] mint:dark:text-[#999999] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2 mint:[&_span]:flex-1 mint:leading-[1.375rem]",
138
+ "mint:relative mint:flex mint:items-center mint:gap-2 mint:py-1 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-lg mint:no-underline mint:text-[#707070] mint:dark:text-[#999999] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2 mint:leading-[1.375rem]",
139
139
  l ? S : "mint:hover:bg-[rgba(0,0,0,0.06)] mint:hover:text-[#242424] mint:dark:hover:bg-[rgba(128,128,128,0.05)] mint:dark:hover:text-[#ffffff]"
140
140
  ),
141
141
  children: [
142
142
  e.method && /* @__PURE__ */ i(j, { isActive: !!l, method: e.method, shortMethod: !0 }),
143
- e.toc_title
143
+ /* @__PURE__ */ i("span", { className: "mint:flex-1", children: e.toc_title })
144
144
  ]
145
145
  }
146
146
  ) });
@@ -1,11 +1,12 @@
1
- const c = {
1
+ const o = {
2
2
  curl: "bash",
3
3
  golang: "go",
4
4
  js: "javascript",
5
5
  sh: "bash",
6
6
  ts: "typescript",
7
- rb: "ruby"
8
- }, g = {
7
+ rb: "ruby",
8
+ java: "java"
9
+ }, c = {
9
10
  bash: "cURL",
10
11
  c: "C",
11
12
  "c#": "C#",
@@ -13,79 +14,69 @@ const c = {
13
14
  go: "Go",
14
15
  java: "Java",
15
16
  javascript: "JavaScript",
16
- php: "PHP",
17
17
  python: "Python",
18
18
  typescript: "TypeScript",
19
19
  ruby: "Ruby"
20
- }, e = {
20
+ }, t = {
21
21
  filename: "cURL",
22
22
  snippet: {
23
23
  target: "shell"
24
24
  },
25
25
  language: "bash"
26
- }, a = {
26
+ }, e = {
27
27
  filename: "Python",
28
28
  snippet: {
29
29
  target: "python",
30
30
  client: "requests"
31
31
  },
32
32
  language: "python"
33
- }, p = {
33
+ }, n = {
34
34
  filename: "JavaScript",
35
35
  snippet: {
36
36
  target: "javascript",
37
37
  client: "fetch"
38
38
  },
39
39
  language: "javascript"
40
- }, n = {
41
- filename: "PHP",
42
- snippet: {
43
- target: "php",
44
- client: "curl"
45
- },
46
- language: "php"
47
40
  }, s = {
48
41
  filename: "Go",
49
42
  snippet: {
50
43
  target: "go"
51
44
  },
52
45
  language: "go"
53
- }, r = {
46
+ }, p = {
54
47
  filename: "Java",
55
48
  snippet: {
56
49
  target: "java"
57
50
  },
58
51
  language: "java"
59
- }, i = {
52
+ }, r = {
60
53
  filename: "Ruby",
61
54
  snippet: {
62
55
  target: "ruby"
63
56
  },
64
57
  language: "ruby"
65
- }, l = [
58
+ }, g = [
59
+ t,
66
60
  e,
67
- a,
68
- p,
69
61
  n,
70
62
  s,
71
- r,
72
- i
73
- ], h = {
74
- bash: e,
75
- python: a,
76
- javascript: p,
77
- php: n,
63
+ p,
64
+ r
65
+ ], l = {
66
+ bash: t,
67
+ python: e,
68
+ javascript: n,
78
69
  go: s,
79
- java: r,
80
- ruby: i
81
- }, u = (o) => {
82
- const t = o.toLowerCase();
83
- return c[t] ?? t;
70
+ java: p,
71
+ ruby: r
72
+ }, u = (i) => {
73
+ const a = i.toLowerCase();
74
+ return o[a] ?? a;
84
75
  };
85
76
  export {
86
- h as langToPresetMap,
87
- g as shikiLangToDisplayLang,
88
- l as snippetPresets,
77
+ l as langToPresetMap,
78
+ c as shikiLangToDisplayLang,
79
+ g as snippetPresets,
89
80
  u as toShikiLang,
90
- c as userLangToShikiLang
81
+ o as userLangToShikiLang
91
82
  };
@@ -1,14 +1,11 @@
1
- import { useContext as n, useMemo as s } from "react";
2
- import { DocsConfigContext as m, PageContext as c, ApiReferenceContext2 as u } from "../contexts/ConfigContext.js";
3
- import { useEndpoint as l } from "./useEndpoint.js";
4
- const x = () => {
5
- const { docsConfig: e } = n(m), { pageMetadata: p } = n(c), o = l(), { apiReferenceData2: r } = n(u);
1
+ import { useContext as o, useMemo as i } from "react";
2
+ import { DocsConfigContext as s, PageContext as a, ApiReferenceContext2 as c } from "../contexts/ConfigContext.js";
3
+ import { useEndpoint as f } from "./useEndpoint.js";
4
+ const g = () => {
5
+ const { docsConfig: p } = o(s), { pageMetadata: r } = o(a), e = f(), { apiReferenceData2: n } = o(c);
6
6
  let t;
7
- return r.operation ? t = r.operation.type : t = o == null ? void 0 : o.type, s(() => {
8
- var a, i;
9
- return (t === "webhook" ? "simple" : p.playground || ((i = (a = e == null ? void 0 : e.api) == null ? void 0 : a.playground) == null ? void 0 : i.display)) ?? "interactive";
10
- }, [e, p, t]);
7
+ return n.operation ? t = n.operation.type : t = e == null ? void 0 : e.type, i(() => "simple", [p, r, t]);
11
8
  };
12
9
  export {
13
- x as useApiPlaygroundDisplay
10
+ g as useApiPlaygroundDisplay
14
11
  };