@mintlify/msft-sdk 1.1.66 → 1.1.68

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,106 +1,106 @@
1
- import { useCallback as j } from "react";
2
- import { NEXT_PUBLIC as b } from "../../env.js";
3
- import { encodeBasicAuth as w } from "../schemaGraph/utils.js";
4
- import { usePlaygroundInputsStore as z } from "./usePlaygroundInputsStore.js";
5
- const H = ({
1
+ import { useContext as w, useCallback as x } from "react";
2
+ import { encodeBasicAuth as z } from "../schemaGraph/utils.js";
3
+ import { usePlaygroundInputsStore as O } from "./usePlaygroundInputsStore.js";
4
+ import { ApiReferenceContext2 as F } from "../../contexts/ConfigContext.js";
5
+ const L = ({
6
6
  apiReferenceData: t,
7
- baseUrl: e,
7
+ baseUrl: r,
8
8
  contentType: o = "application/json",
9
- setResult: i,
10
- setIsSending: r
9
+ setResult: e,
10
+ setIsSending: a
11
11
  }) => {
12
- var y, h, m;
13
- const n = z((p) => p.getApiPlaygroundInputs), a = (y = t.operation) == null ? void 0 : y.disableProxy, c = (h = t.operation) == null ? void 0 : h.path, d = (m = t.operation) == null ? void 0 : m.method;
14
- return j(async () => {
15
- const p = n();
16
- if (r(!0), !c || !e || !d || !o || !e) {
17
- r(!1), i({
12
+ var m, b, g;
13
+ const { requestEndpointUrl: s, fileRequestEndpointUrl: n } = w(F), i = O((d) => d.getApiPlaygroundInputs), h = (m = t.operation) == null ? void 0 : m.disableProxy, p = (b = t.operation) == null ? void 0 : b.path, f = (g = t.operation) == null ? void 0 : g.method;
14
+ return x(async () => {
15
+ const d = i();
16
+ if (a(!0), !p || !r || !f || !o || !r) {
17
+ a(!1), e({
18
18
  error: !0,
19
19
  errorMessage: "Missing required fields to send a playground request"
20
20
  }), console.error(
21
21
  `Missing some required field to send a playground request:
22
22
 
23
- path=${c}
24
- method=${d}
23
+ path=${p}
24
+ method=${f}
25
25
  contentType=${o}
26
- baseUrl=${e}`
26
+ baseUrl=${r}`
27
27
  );
28
28
  return;
29
29
  }
30
- const A = await import("axios").then((s) => s.default), g = O(c, p.path), S = $(P(e, p.server), g);
31
- let f = x(p.header, o);
32
- f = C(f);
33
- const u = {
34
- method: d,
30
+ const A = await import("axios").then((c) => c.default), j = P(p, d.path), S = C($(r, d.server), j);
31
+ let u = E(d.header, o);
32
+ u = B(u);
33
+ const l = {
34
+ method: f,
35
35
  url: S,
36
- header: f,
37
- body: p.body,
38
- cookie: p.cookie,
39
- query: p.query
36
+ header: u,
37
+ body: d.body,
38
+ cookie: d.cookie,
39
+ query: d.query
40
40
  };
41
- let l;
41
+ let y;
42
42
  try {
43
- if (a) {
44
- const s = await E(u);
45
- l = s.status, i({
43
+ if (h) {
44
+ const c = await D(l);
45
+ y = c.status, e({
46
46
  error: !1,
47
47
  response: {
48
- status: s.status,
49
- statusText: s.statusText,
50
- headers: s.headers,
51
- data: s.data
48
+ status: c.status,
49
+ statusText: c.statusText,
50
+ headers: c.headers,
51
+ data: c.data
52
52
  }
53
53
  });
54
54
  } else if (o && o.includes("multipart/form-data")) {
55
- const s = await F(u);
56
- "response" in s && (l = s.response.status), i(s);
55
+ const c = await J(l, n);
56
+ "response" in c && (y = c.response.status), e(c);
57
57
  } else {
58
- const { data: s } = await A.post(
59
- `${b.BASE_PATH}/_mintlify/api/request`,
60
- u
58
+ const { data: c } = await A.post(
59
+ s,
60
+ l
61
61
  );
62
- "response" in s && (l = s.response.status), i(s);
62
+ "response" in c && (y = c.response.status), e(c);
63
63
  }
64
- } catch (s) {
65
- i({
64
+ } catch (c) {
65
+ e({
66
66
  error: !0,
67
67
  errorMessage: "unable to complete request"
68
- }), console.error(s);
68
+ }), console.error(c);
69
69
  }
70
- r(!1);
70
+ a(!1);
71
71
  }, [
72
- d,
73
- c,
72
+ f,
73
+ p,
74
+ a,
75
+ i,
74
76
  r,
75
- n,
76
- e,
77
77
  o,
78
- a,
79
- i
78
+ h,
79
+ e
80
80
  ]);
81
- }, O = (t, e) => Object.entries(e).reduce((o, [i, r]) => r == null ? o : o.replace(`{${i}}`, encodeURIComponent(r.toString())), t), P = (t, e) => {
81
+ }, P = (t, r) => Object.entries(r).reduce((o, [e, a]) => a == null ? o : o.replace(`{${e}}`, encodeURIComponent(a.toString())), t), $ = (t, r) => {
82
82
  let o = t;
83
- return Object.entries(e).forEach(([i, r]) => {
84
- r && (o = o.replace(`{${i}}`, r));
83
+ return Object.entries(r).forEach(([e, a]) => {
84
+ a && (o = o.replace(`{${e}}`, a));
85
85
  }), o;
86
- }, $ = (t, e) => t.replace(/\/$/, "") + "/" + e.replace(/^\//, ""), x = (t, e) => Object.keys(t).some((o) => o.toLowerCase() === "content-type") ? t : {
86
+ }, C = (t, r) => t.replace(/\/$/, "") + "/" + r.replace(/^\//, ""), E = (t, r) => Object.keys(t).some((o) => o.toLowerCase() === "content-type") ? t : {
87
87
  ...t,
88
- "content-type": e
89
- }, E = async (t) => {
90
- const e = await import("axios").then((n) => n.default), o = Object.keys(t.header).find(
91
- (n) => n.toLowerCase() === "content-type"
88
+ "content-type": r
89
+ }, D = async (t) => {
90
+ const r = await import("axios").then((s) => s.default), o = Object.keys(t.header).find(
91
+ (s) => s.toLowerCase() === "content-type"
92
92
  );
93
- let i = t.body, r = t.header;
93
+ let e = t.body, a = t.header;
94
94
  if (o != null && o.includes("multipart/form-data")) {
95
- const { data: n, headers: a } = B(t);
96
- i = n, r = a;
95
+ const { data: s, headers: n } = N(t);
96
+ e = s, a = n;
97
97
  }
98
- return e({
98
+ return r({
99
99
  url: t.url,
100
100
  method: t.method,
101
101
  params: t.query,
102
- data: i,
103
- headers: r,
102
+ data: e,
103
+ headers: a,
104
104
  // prevent axios from adding [] after array query params
105
105
  paramsSerializer: {
106
106
  indexes: null
@@ -110,11 +110,11 @@ baseUrl=${e}`
110
110
  validateStatus: () => !0,
111
111
  // prevent axios from parsing json, losing whitespace information, and using default utf-8 encoding
112
112
  // we can't use `responseEncoding` as it's ignored client-side
113
- transformResponse: (n) => Buffer.from(n).toString("base64")
113
+ transformResponse: (s) => Buffer.from(s).toString("base64")
114
114
  });
115
- }, F = async (t) => {
116
- const e = await import("axios").then((r) => r.default), o = new FormData();
117
- o.append(
115
+ }, J = async (t, r) => {
116
+ const o = await import("axios").then((s) => s.default), e = new FormData();
117
+ e.append(
118
118
  "requestInfo",
119
119
  JSON.stringify({
120
120
  method: t.method,
@@ -123,46 +123,46 @@ baseUrl=${e}`
123
123
  query: t.query,
124
124
  cookie: t.cookie
125
125
  })
126
- ), typeof t.body == "object" && t.body !== null && Object.entries(t.body).forEach(([r, n]) => {
127
- n instanceof File ? o.append(r, n) : Array.isArray(n) ? n.forEach((a) => {
128
- a instanceof File ? o.append(r, a) : a != null && o.append(r, typeof a == "object" ? JSON.stringify(a) : a.toString());
129
- }) : n != null && o.append(r, typeof n == "object" ? JSON.stringify(n) : n.toString());
126
+ ), typeof t.body == "object" && t.body !== null && Object.entries(t.body).forEach(([s, n]) => {
127
+ n instanceof File ? e.append(s, n) : Array.isArray(n) ? n.forEach((i) => {
128
+ i instanceof File ? e.append(s, i) : i != null && e.append(s, typeof i == "object" ? JSON.stringify(i) : i.toString());
129
+ }) : n != null && e.append(s, typeof n == "object" ? JSON.stringify(n) : n.toString());
130
130
  });
131
- const { data: i } = await e.post(
132
- `${b.BASE_PATH}/_mintlify/api/file-request`,
133
- o
131
+ const { data: a } = await o.post(
132
+ r,
133
+ e
134
134
  );
135
- return i;
136
- }, B = (t) => {
137
- var i;
138
- let e = t.body;
135
+ return a;
136
+ }, N = (t) => {
137
+ var e;
138
+ let r = t.body;
139
139
  const o = t.header;
140
- if ((i = o["content-type"]) != null && i.includes("multipart/form-data")) {
141
- const r = new FormData();
142
- typeof e == "object" && e !== null && (Object.entries(e).forEach(([n, a]) => {
143
- a instanceof File ? r.append(n, a) : Array.isArray(a) ? a.forEach((c) => {
144
- c instanceof File ? r.append(n, c) : c != null && r.append(
145
- n,
146
- typeof c == "object" ? JSON.stringify(c) : c.toString()
140
+ if ((e = o["content-type"]) != null && e.includes("multipart/form-data")) {
141
+ const a = new FormData();
142
+ typeof r == "object" && r !== null && (Object.entries(r).forEach(([s, n]) => {
143
+ n instanceof File ? a.append(s, n) : Array.isArray(n) ? n.forEach((i) => {
144
+ i instanceof File ? a.append(s, i) : i != null && a.append(
145
+ s,
146
+ typeof i == "object" ? JSON.stringify(i) : i.toString()
147
147
  );
148
- }) : a != null && r.append(
149
- n,
150
- typeof a == "object" ? JSON.stringify(a) : a.toString()
148
+ }) : n != null && a.append(
149
+ s,
150
+ typeof n == "object" ? JSON.stringify(n) : n.toString()
151
151
  );
152
- }), e = r, delete o["content-type"]);
152
+ }), r = a, delete o["content-type"]);
153
153
  }
154
- return { data: e, headers: o };
155
- }, C = (t) => {
154
+ return { data: r, headers: o };
155
+ }, B = (t) => {
156
156
  if (!t.Authorization || typeof t.Authorization != "object") return t;
157
157
  if (typeof t.Authorization == "object") {
158
- const e = "username" in t.Authorization ? t.Authorization.username : "", o = "password" in t.Authorization ? t.Authorization.password : "", i = w(e, o);
159
- t.Authorization = `Basic ${i}`, delete t.Authorization.username, delete t.Authorization.password;
158
+ const r = "username" in t.Authorization ? t.Authorization.username : "", o = "password" in t.Authorization ? t.Authorization.password : "", e = z(r, o);
159
+ t.Authorization = `Basic ${e}`, delete t.Authorization.username, delete t.Authorization.password;
160
160
  }
161
161
  return t;
162
162
  };
163
163
  export {
164
- O as addPathParams,
165
- P as addServerVariables,
166
- $ as joinWithSingleSlash,
167
- H as useSendPlaygroundRequest
164
+ P as addPathParams,
165
+ $ as addServerVariables,
166
+ C as joinWithSingleSlash,
167
+ L as useSendPlaygroundRequest
168
168
  };
@@ -1,46 +1,51 @@
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
- import { ComponentsProvider as P } from "../context/components-context.js";
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
+ import { useEffect as P } from "react";
3
+ import { ApiExamples as _ } from "../api-playground-2/ApiExamples.js";
4
+ import { ComponentsProvider as R } from "../context/components-context.js";
5
5
  /* empty css */
6
6
  import { cn as e } from "../utils/cn.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
- function K({
7
+ import { MDXRenderer as F } from "./mdx-renderer.js";
8
+ import { PageContextMenu as L } from "./page-context-menu.js";
9
+ import { Api as S } from "../api-playground-2/Api.js";
10
+ import { PageProvider as A, ApiReferenceProvider2 as B } from "../contexts/ConfigContext.js";
11
+ import { MINTLIFY_FILE_REQUEST_ENDPOINT_URL as U, MINTLIFY_REQUEST_ENDPOINT_URL as j } from "../constants/index.js";
12
+ function $({
12
13
  theme: a,
13
- className: h = "",
14
- pathname: r,
15
- markdownContent: f,
14
+ className: f = "",
15
+ pathname: l,
16
+ markdownContent: h,
16
17
  allPages: b,
17
- baseUrl: g,
18
- LinkComponent: p,
19
- contextMenu: n,
20
- apiReferenceData: i,
21
- pageMetadata: o
18
+ baseUrl: p,
19
+ LinkComponent: g,
20
+ contextMenu: i,
21
+ contextMenuEnabled: w = !0,
22
+ apiReferenceData: r,
23
+ pageMetadata: n,
24
+ playgroundDisplay: u = "simple",
25
+ requestEndpointUrl: x = j,
26
+ fileRequestEndpointUrl: v = U
22
27
  }) {
23
- return E(() => {
28
+ return P(() => {
24
29
  const { hash: s } = window.location;
25
30
  if (!s) return;
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;
31
+ const k = setTimeout(() => {
32
+ const N = s.substring(1), m = document.getElementById("main-content"), c = document.getElementById(N);
33
+ if (m && c) {
34
+ const d = window.getComputedStyle(document.documentElement), E = parseFloat(d.getPropertyValue("--scroll-mt") || "0"), T = parseFloat(d.fontSize), y = E * T, I = m.getBoundingClientRect(), C = c.getBoundingClientRect().top - I.top + m.scrollTop - y;
30
35
  m.scrollTo({
31
- top: y,
36
+ top: C,
32
37
  behavior: "instant"
33
38
  });
34
39
  }
35
40
  }, 100);
36
- return () => clearTimeout(w);
37
- }, [r]), /* @__PURE__ */ t(P, { LinkComponent: p, children: /* @__PURE__ */ t(
41
+ return () => clearTimeout(k);
42
+ }, [l]), /* @__PURE__ */ t(R, { LinkComponent: g, children: /* @__PURE__ */ t(
38
43
  "div",
39
44
  {
40
45
  className: e(
41
46
  "mintlify-docs",
42
47
  a === "dark" && "dark",
43
- h,
48
+ f,
44
49
  "mint:flex mint:flex-col mint:flex-1 mint:min-h-0 mint:h-full mint:overflow-hidden"
45
50
  ),
46
51
  children: /* @__PURE__ */ t(
@@ -60,60 +65,58 @@ function K({
60
65
  className: e(
61
66
  "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
67
  ),
63
- children: /* @__PURE__ */ l(
68
+ children: /* @__PURE__ */ o(
64
69
  "div",
65
70
  {
66
71
  className: "mint:flex mint:flex-row-reverse mint:gap-12 mint:justify-center mint:mx-auto mint:w-full",
67
72
  id: "content-layout-container",
68
73
  children: [
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(
74
+ (r == null ? void 0 : r.operation) && /* @__PURE__ */ t(
71
75
  "div",
72
76
  {
73
77
  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
- ]
78
+ children: /* @__PURE__ */ t(_, { apiReferenceData: r, noInputs: !0 })
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ l(
81
+ /* @__PURE__ */ o(
82
82
  "div",
83
83
  {
84
84
  className: e(
85
85
  "mint:w-full mint:overflow-x-visible mint:max-w-[730px]"
86
86
  ),
87
87
  children: [
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 })
88
+ n.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ o("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
89
+ /* @__PURE__ */ o("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: n.title }),
91
+ n.description && /* @__PURE__ */ t("p", { className: "mint:text-lg mint:text-[#4b5563] mint:dark:text-[#d1d5db] mint:m-0", children: n.description })
92
92
  ] }),
93
- r && /* @__PURE__ */ t(
94
- I,
93
+ l && w && /* @__PURE__ */ t(
94
+ L,
95
95
  {
96
96
  className: "mint:shrink-0",
97
- pathname: r,
98
- markdownContent: f,
97
+ pathname: l,
98
+ markdownContent: h,
99
99
  allPages: b,
100
- baseUrl: g,
101
- onCopyMarkdown: n == null ? void 0 : n.onCopyMarkdown,
102
- onViewMarkdown: n == null ? void 0 : n.onViewMarkdown
100
+ baseUrl: p,
101
+ onCopyMarkdown: i == null ? void 0 : i.onCopyMarkdown,
102
+ onViewMarkdown: i == null ? void 0 : i.onViewMarkdown
103
103
  }
104
104
  )
105
105
  ] }) }),
106
- /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(S, { value: {
107
- pageMetadata: o,
108
- pathname: r
106
+ /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(A, { value: {
107
+ pageMetadata: n,
108
+ pathname: l
109
109
  }, children: /* @__PURE__ */ t(
110
- A,
110
+ B,
111
111
  {
112
- pageMetadata: o,
112
+ playgroundDisplay: u,
113
+ pageMetadata: n,
113
114
  docsConfig: void 0,
114
115
  mdxExtracts: void 0,
115
- apiReferenceData2: i,
116
- children: /* @__PURE__ */ t(T, {})
116
+ apiReferenceData2: r,
117
+ requestEndpointUrl: x,
118
+ fileRequestEndpointUrl: v,
119
+ children: /* @__PURE__ */ t(S, {})
117
120
  }
118
121
  ) }) }) })
119
122
  ]
@@ -132,5 +135,5 @@ function K({
132
135
  ) });
133
136
  }
134
137
  export {
135
- K as ApiPage
138
+ $ as ApiPage
136
139
  };
@@ -1,23 +1,23 @@
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";
1
+ import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
+ import { TextAlignLeftFilled as S } from "@fluentui/react-icons";
3
+ import { useEffect as j } from "react";
4
+ import { ComponentsProvider as A } from "../context/components-context.js";
5
5
  /* empty css */
6
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";
7
+ import { MDXRenderer as B } from "./mdx-renderer.js";
8
+ import { PageContextMenu as R } 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 { ApiExamples as U } from "../api-playground-2/ApiExamples.js";
11
+ import { ApiExamples as G } from "../api-playground-2/ApiExamples.js";
12
12
  import { ApiReferenceProvider2 as Z } from "../contexts/ConfigContext.js";
13
13
  import { ZonePivotProvider as _ } from "./content-components/zone-pivots/zone-pivot-context.js";
14
14
  import { ZonePivotSelector as M } from "./content-components/zone-pivots/zone-pivot-selector.js";
15
15
  function dt({
16
16
  payload: i,
17
- toc: r,
17
+ toc: o,
18
18
  navTree: W,
19
19
  activeHref: X,
20
- theme: p,
20
+ theme: b,
21
21
  className: x = "",
22
22
  pathname: s,
23
23
  markdownContent: w,
@@ -27,13 +27,11 @@ function dt({
27
27
  LinkComponent: k,
28
28
  localization: N,
29
29
  telemetry: J,
30
- contextMenu: e,
31
- apiReferenceData: n
30
+ contextMenu: n,
31
+ apiReferenceData: r
32
32
  }) {
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 = { ...{
33
+ var f, h;
34
+ const T = i.serializedContent, a = ((f = i.mdxExtracts) == null ? void 0 : f.zonePivotGroups) || [], c = (h = i.mdxExtracts) == null ? void 0 : h.pivotTocItems, P = !i.title, C = { ...{
37
35
  onThisPage: "On this page",
38
36
  loading: "Loading...",
39
37
  errorTitle: "Error",
@@ -41,26 +39,26 @@ function dt({
41
39
  notFoundTitle: "Page not found",
42
40
  notFoundMessage: "The page you're looking for doesn't exist"
43
41
  }, ...N };
44
- return S(() => {
42
+ return j(() => {
45
43
  const { hash: m } = window.location;
46
44
  if (!m) return;
47
- const E = setTimeout(() => {
48
- const y = m.substring(1), l = document.getElementById("main-content"), g = document.getElementById(y);
45
+ const y = setTimeout(() => {
46
+ const E = m.substring(1), l = document.getElementById("main-content"), g = document.getElementById(E);
49
47
  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;
48
+ const p = window.getComputedStyle(document.documentElement), z = parseFloat(p.getPropertyValue("--scroll-mt") || "0"), I = parseFloat(p.fontSize), F = z * I, L = l.getBoundingClientRect(), O = g.getBoundingClientRect().top - L.top + l.scrollTop - F;
51
49
  l.scrollTo({
52
- top: L,
50
+ top: O,
53
51
  behavior: "instant"
54
52
  });
55
53
  }
56
54
  }, 100);
57
- return () => clearTimeout(E);
58
- }, [s]), /* @__PURE__ */ t(j, { LinkComponent: k, children: /* @__PURE__ */ t(
55
+ return () => clearTimeout(y);
56
+ }, [s]), /* @__PURE__ */ t(A, { LinkComponent: k, children: /* @__PURE__ */ t(
59
57
  "div",
60
58
  {
61
59
  className: d(
62
60
  "mintlify-docs",
63
- p === "dark" && "dark",
61
+ b === "dark" && "dark",
64
62
  x,
65
63
  "mint:flex mint:flex-col mint:flex-1 mint:min-h-0 mint:h-full mint:overflow-hidden"
66
64
  ),
@@ -81,29 +79,30 @@ function dt({
81
79
  className: d(
82
80
  "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"
83
81
  ),
84
- children: /* @__PURE__ */ t(_, { groups: c, children: /* @__PURE__ */ o(
82
+ children: /* @__PURE__ */ t(_, { groups: a, children: /* @__PURE__ */ e(
85
83
  "div",
86
84
  {
87
85
  className: "mint:flex mint:flex-row-reverse mint:gap-12 mint:justify-center mint:mx-auto mint:w-full",
88
86
  id: "content-layout-container",
89
87
  children: [
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(
88
+ r != null && r.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
89
  Z,
92
90
  {
93
91
  pageMetadata: { title: i.title, description: i.description },
94
92
  docsConfig: void 0,
95
93
  mdxExtracts: void 0,
96
- apiReferenceData2: n,
97
- children: /* @__PURE__ */ t(U, { noInputs: !0 })
94
+ apiReferenceData2: r,
95
+ playgroundDisplay: "simple",
96
+ children: /* @__PURE__ */ t(G, { noInputs: !0 })
98
97
  }
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]" }),
98
+ ) }) }) : 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: [
99
+ /* @__PURE__ */ e("div", { className: "mint:flex mint:items-center mint:gap-2 mint:mb-4", children: [
100
+ /* @__PURE__ */ t(S, { className: "mint:w-4 mint:h-4 mint:text-[#4b5563] mint:dark:text-[#adadad]" }),
102
101
  /* @__PURE__ */ t("h2", { className: "mint:text-sm mint:font-semibold mint:text-[#141414] mint:dark:text-white", children: C.onThisPage })
103
102
  ] }),
104
- a && Object.keys(a).length > 0 ? /* @__PURE__ */ t(V, { baseToc: r, pivotTocItems: a }) : /* @__PURE__ */ t(H, { toc: r })
103
+ c && Object.keys(c).length > 0 ? /* @__PURE__ */ t(V, { baseToc: o, pivotTocItems: c }) : /* @__PURE__ */ t(H, { toc: o })
105
104
  ] }) }) : null,
106
- /* @__PURE__ */ o(
105
+ /* @__PURE__ */ e(
107
106
  "div",
108
107
  {
109
108
  className: d(
@@ -111,25 +110,25 @@ function dt({
111
110
  P && "mint:max-w-none!"
112
111
  ),
113
112
  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: [
113
+ i.title && /* @__PURE__ */ t("header", { className: "mint:mb-6", children: /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col mint:gap-5", children: [
114
+ /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col mint:gap-2 mint:items-start", children: [
116
115
  /* @__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 }),
117
116
  i.description && /* @__PURE__ */ t("p", { className: "mint:text-lg mint:text-[#4b5563] mint:dark:text-[#d1d5db] mint:m-0", children: i.description })
118
117
  ] }),
119
118
  s && /* @__PURE__ */ t(
120
- G,
119
+ R,
121
120
  {
122
121
  className: "mint:shrink-0",
123
122
  pathname: s,
124
123
  markdownContent: w,
125
124
  allPages: v,
126
125
  baseUrl: u,
127
- onCopyMarkdown: e == null ? void 0 : e.onCopyMarkdown,
128
- onViewMarkdown: e == null ? void 0 : e.onViewMarkdown
126
+ onCopyMarkdown: n == null ? void 0 : n.onCopyMarkdown,
127
+ onViewMarkdown: n == null ? void 0 : n.onViewMarkdown
129
128
  }
130
129
  )
131
130
  ] }) }),
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(
131
+ a.length > 0 && /* @__PURE__ */ t("div", { className: "mint:mb-6 mint:flex mint:flex-wrap mint:gap-4", children: a.map((m) => /* @__PURE__ */ t(
133
132
  M,
134
133
  {
135
134
  group: m,
@@ -137,7 +136,7 @@ function dt({
137
136
  },
138
137
  m.id
139
138
  )) }),
140
- /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(T, {}) }) })
139
+ /* @__PURE__ */ t("div", { className: "mint:pt-4", children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(T, {}) }) })
141
140
  ]
142
141
  }
143
142
  )
@@ -1,4 +1,7 @@
1
- const E = 5e4;
1
+ import { NEXT_PUBLIC as _ } from "../env.js";
2
+ const T = 5e4, t = `${_.BASE_PATH}/_mintlify/api/request`, I = `${_.BASE_PATH}/_mintlify/api/file-request`;
2
3
  export {
3
- E as MAX_PREVIEW_BYTES
4
+ T as MAX_PREVIEW_BYTES,
5
+ I as MINTLIFY_FILE_REQUEST_ENDPOINT_URL,
6
+ t as MINTLIFY_REQUEST_ENDPOINT_URL
4
7
  };