@mintlify/msft-sdk 1.1.54 → 1.1.56

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,56 +1,56 @@
1
1
  import { jsx as y, jsxs as L } from "react/jsx-runtime";
2
2
  import { useState as _, useRef as I, useEffect as z } from "react";
3
3
  import { cn as A } from "../../utils/cn.js";
4
- function N({ toc: i }) {
5
- const [v, m] = _(""), d = I(!1), s = I();
4
+ function N({ toc: l }) {
5
+ const [v, a] = _(""), d = I(!1), s = I();
6
6
  return z(() => {
7
7
  var u;
8
- if (i.length === 0) return;
8
+ if (l.length === 0) return;
9
9
  d.current = !1, s.current && clearTimeout(s.current);
10
10
  const o = window.location.hash.slice(1);
11
- m(o || ((u = i[0]) == null ? void 0 : u.slug) || "");
11
+ a(o || ((u = l[0]) == null ? void 0 : u.slug) || "");
12
12
  const f = () => {
13
13
  const n = window.location.hash.slice(1);
14
- n && m(n);
14
+ n && a(n);
15
15
  }, t = document.getElementById("main-content"), x = () => {
16
16
  var B, S;
17
- if (!t) return (B = i[0]) == null ? void 0 : B.slug;
18
- const n = window.getComputedStyle(document.documentElement), w = parseFloat(n.getPropertyValue("--scroll-mt") || "0"), R = parseFloat(n.fontSize), C = w * R + 100, g = t.scrollTop, E = t.scrollHeight - t.clientHeight, T = g >= E - 10, r = i.map((l) => {
19
- const c = document.getElementById(l.slug);
17
+ if (!t) return (B = l[0]) == null ? void 0 : B.slug;
18
+ const n = window.getComputedStyle(document.documentElement), w = parseFloat(n.getPropertyValue("--scroll-mt") || "0"), R = parseFloat(n.fontSize), C = w * R + 100, g = t.scrollTop, E = t.scrollHeight - t.clientHeight, T = g >= E - 10, r = l.map((i) => {
19
+ const c = document.getElementById(i.slug);
20
20
  if (!c) return null;
21
21
  const h = c.getBoundingClientRect(), b = t.getBoundingClientRect(), k = h.top - b.top + g;
22
- return { id: l.slug, top: k };
22
+ return { id: i.slug, top: k };
23
23
  }).filter(Boolean);
24
- if (r.length === 0) return (S = i[0]) == null ? void 0 : S.slug;
24
+ if (r.length === 0) return (S = l[0]) == null ? void 0 : S.slug;
25
25
  if (T) {
26
- const l = t.getBoundingClientRect();
26
+ const i = t.getBoundingClientRect();
27
27
  for (let c = r.length - 1; c >= 0; c--) {
28
28
  const h = document.getElementById(r[c].id);
29
29
  if (h) {
30
30
  const b = h.getBoundingClientRect();
31
- if (b.top <= l.bottom && b.bottom >= l.top)
31
+ if (b.top <= i.bottom && b.bottom >= i.top)
32
32
  return r[c].id;
33
33
  }
34
34
  }
35
35
  return r[r.length - 1].id;
36
36
  }
37
37
  let p = r[0];
38
- for (const l of r)
39
- g + C >= l.top && (p = l);
38
+ for (const i of r)
39
+ g + C >= i.top && (p = i);
40
40
  return p == null ? void 0 : p.id;
41
41
  }, e = () => {
42
42
  if (d.current) return;
43
43
  const n = x();
44
- n && n !== v && (m(n), history.replaceState(null, "", `#${n}`));
44
+ n && n !== v && (a(n), history.replaceState(null, "", `#${n}`));
45
45
  };
46
46
  window.addEventListener("hashchange", f), t ? t.addEventListener("scroll", e, {
47
47
  passive: !0
48
48
  }) : window.addEventListener("scroll", e, { passive: !0 });
49
- let a;
50
- return o || (a = setTimeout(e, 100)), () => {
51
- a && clearTimeout(a), s.current && clearTimeout(s.current), window.removeEventListener("hashchange", f), t ? t.removeEventListener("scroll", e) : window.removeEventListener("scroll", e);
49
+ let m;
50
+ return o || (m = setTimeout(e, 100)), () => {
51
+ m && clearTimeout(m), s.current && clearTimeout(s.current), window.removeEventListener("hashchange", f), t ? t.removeEventListener("scroll", e) : window.removeEventListener("scroll", e);
52
52
  };
53
- }, [i, v]), /* @__PURE__ */ y("ul", { className: "mint:list-none mint:flex mint:flex-col mint:gap-2 mint:text-sm mint:text-[#6b7280] mint:dark:text-[#adadad] mint:font-medium mint:relative mint:pl-[0.15rem] mint:before:content-[''] mint:before:absolute mint:before:left-[0.15rem] mint:before:top-0 mint:before:bottom-0 mint:before:w-[2px] mint:before:bg-[#f2f3f3] mint:dark:before:bg-[#222223] mint:before:rounded-full", children: i.map((o, f) => {
53
+ }, [l, v]), /* @__PURE__ */ y("ul", { className: "mint:list-none mint:flex mint:flex-col mint:gap-1 mint:text-sm mint:text-[#6b7280] mint:dark:text-[#adadad] mint:font-medium mint:relative mint:pl-[0.15rem] mint:before:content-[''] mint:before:absolute mint:before:left-[0.15rem] mint:before:top-0 mint:before:bottom-0 mint:before:w-[2px] mint:before:bg-[#f2f3f3] mint:dark:before:bg-[#222223] mint:before:rounded-full", children: l.map((o, f) => {
54
54
  const t = v === o.slug;
55
55
  return /* @__PURE__ */ L("li", { className: "mint:relative", children: [
56
56
  t && /* @__PURE__ */ y("div", { className: "mint:absolute mint:left-0 mint:top-0 mint:bottom-0 mint:w-[2px] mint:rounded-full mint:bg-[#643fb2] mint:dark:bg-[#c9aaf9] mint:z-1" }),
@@ -59,10 +59,10 @@ function N({ toc: i }) {
59
59
  {
60
60
  href: `#${o.slug}`,
61
61
  onClick: (x) => {
62
- x.preventDefault(), m(o.slug), d.current = !0, s.current && clearTimeout(s.current);
63
- const e = document.getElementById("main-content"), a = document.getElementById(o.slug);
64
- if (e && a) {
65
- const u = window.getComputedStyle(document.documentElement), n = parseFloat(u.getPropertyValue("--scroll-mt") || "0"), w = parseFloat(u.fontSize), R = n * w, C = e.getBoundingClientRect(), E = a.getBoundingClientRect().top - C.top + e.scrollTop - R, T = e.scrollHeight - e.clientHeight, r = Math.min(E, T);
62
+ x.preventDefault(), a(o.slug), d.current = !0, s.current && clearTimeout(s.current);
63
+ const e = document.getElementById("main-content"), m = document.getElementById(o.slug);
64
+ if (e && m) {
65
+ const u = window.getComputedStyle(document.documentElement), n = parseFloat(u.getPropertyValue("--scroll-mt") || "0"), w = parseFloat(u.fontSize), R = n * w, C = e.getBoundingClientRect(), E = m.getBoundingClientRect().top - C.top + e.scrollTop - R, T = e.scrollHeight - e.clientHeight, r = Math.min(E, T);
66
66
  e.scrollTo({
67
67
  top: r,
68
68
  behavior: "instant"
@@ -73,7 +73,7 @@ function N({ toc: i }) {
73
73
  }, 100);
74
74
  },
75
75
  className: A(
76
- "mint:block mint:pl-6 mint:leading-relaxed mint:no-underline",
76
+ "mint:block mint:pl-6 mint:leading-[1.375rem] mint:no-underline",
77
77
  t ? "mint:text-[#643fb2] mint:dark:text-[#c9aaf9] mint:[text-shadow:-0.2px_0_0_currentColor,0.2px_0_0_currentColor]" : "mint:text-[#424242] mint:dark:text-[#d6d6d6] mint:dark:hover:text-[#d1d5db] mint:hover:text-[#111827]"
78
78
  ),
79
79
  children: o.title
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/toc/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport type { TocItem } from '../../types';\nimport { cn } from '../../utils/cn';\n\ninterface TableOfContentsProps {\n toc: TocItem[];\n}\n\nexport function TableOfContents({ toc }: TableOfContentsProps) {\n const [activeId, setActiveId] = useState('');\n const ignoreScrollRef = useRef(false);\n const ignoreTimeoutRef = useRef<NodeJS.Timeout>();\n\n useEffect(() => {\n if (toc.length === 0) return;\n\n ignoreScrollRef.current = false;\n if (ignoreTimeoutRef.current) {\n clearTimeout(ignoreTimeoutRef.current);\n }\n\n const hash = window.location.hash.slice(1);\n if (hash) {\n setActiveId(hash);\n } else {\n setActiveId(toc[0]?.slug || '');\n }\n\n const handleHashChange = () => {\n const hash = window.location.hash.slice(1);\n if (hash) {\n setActiveId(hash);\n }\n };\n\n const scrollContainer = document.getElementById('main-content');\n\n const getActiveHeading = () => {\n if (!scrollContainer) return toc[0]?.slug;\n\n const style = window.getComputedStyle(document.documentElement);\n const scrollMtRem = parseFloat(style.getPropertyValue('--scroll-mt') || '0');\n const fontSize = parseFloat(style.fontSize);\n const scrollOffset = scrollMtRem * fontSize + 100;\n\n const scrollY = scrollContainer.scrollTop;\n const maxScroll = scrollContainer.scrollHeight - scrollContainer.clientHeight;\n const isAtBottom = scrollY >= maxScroll - 10;\n\n const headingPositions = toc\n .map((item) => {\n const element = document.getElementById(item.slug);\n if (!element) return null;\n\n const rect = element.getBoundingClientRect();\n const containerRect = scrollContainer.getBoundingClientRect();\n const relativeTop = rect.top - containerRect.top + scrollY;\n\n return { id: item.slug, top: relativeTop };\n })\n .filter(Boolean) as Array<{ id: string; top: number }>;\n\n if (headingPositions.length === 0) return toc[0]?.slug;\n\n if (isAtBottom) {\n const containerRect = scrollContainer.getBoundingClientRect();\n for (let i = headingPositions.length - 1; i >= 0; i--) {\n const element = document.getElementById(headingPositions[i].id);\n if (element) {\n const rect = element.getBoundingClientRect();\n if (rect.top <= containerRect.bottom && rect.bottom >= containerRect.top) {\n return headingPositions[i].id;\n }\n }\n }\n return headingPositions[headingPositions.length - 1].id;\n }\n\n let currentHeading = headingPositions[0];\n for (const heading of headingPositions) {\n if (scrollY + scrollOffset >= heading.top) {\n currentHeading = heading;\n }\n }\n\n return currentHeading?.id;\n };\n\n const handleScroll = () => {\n if (ignoreScrollRef.current) return;\n\n const newActiveId = getActiveHeading();\n if (newActiveId && newActiveId !== activeId) {\n setActiveId(newActiveId);\n history.replaceState(null, '', `#${newActiveId}`);\n }\n };\n\n window.addEventListener('hashchange', handleHashChange);\n\n if (scrollContainer) {\n scrollContainer.addEventListener('scroll', handleScroll, {\n passive: true,\n });\n } else {\n window.addEventListener('scroll', handleScroll, { passive: true });\n }\n\n let timeoutId: NodeJS.Timeout | undefined;\n if (!hash) {\n timeoutId = setTimeout(handleScroll, 100);\n }\n\n return () => {\n if (timeoutId) clearTimeout(timeoutId);\n if (ignoreTimeoutRef.current) clearTimeout(ignoreTimeoutRef.current);\n window.removeEventListener('hashchange', handleHashChange);\n if (scrollContainer) {\n scrollContainer.removeEventListener('scroll', handleScroll);\n } else {\n window.removeEventListener('scroll', handleScroll);\n }\n };\n }, [toc, activeId]);\n\n return (\n <ul className=\"mint:list-none mint:flex mint:flex-col mint:gap-2 mint:text-sm mint:text-[#6b7280] mint:dark:text-[#adadad] mint:font-medium mint:relative mint:pl-[0.15rem] mint:before:content-[''] mint:before:absolute mint:before:left-[0.15rem] mint:before:top-0 mint:before:bottom-0 mint:before:w-[2px] mint:before:bg-[#f2f3f3] mint:dark:before:bg-[#222223] mint:before:rounded-full\">\n {toc.map((item, index) => {\n const isActive = activeId === item.slug;\n return (\n <li key={`${item.slug}-${index}`} className=\"mint:relative\">\n {isActive && (\n <div className=\"mint:absolute mint:left-0 mint:top-0 mint:bottom-0 mint:w-[2px] mint:rounded-full mint:bg-[#643fb2] mint:dark:bg-[#c9aaf9] mint:z-1\" />\n )}\n <a\n href={`#${item.slug}`}\n onClick={(e) => {\n e.preventDefault();\n\n setActiveId(item.slug);\n\n ignoreScrollRef.current = true;\n if (ignoreTimeoutRef.current) {\n clearTimeout(ignoreTimeoutRef.current);\n }\n\n const scrollContainer = document.getElementById('main-content');\n const targetElement = document.getElementById(item.slug);\n\n if (scrollContainer && targetElement) {\n const style = window.getComputedStyle(document.documentElement);\n const scrollMtRem = parseFloat(style.getPropertyValue('--scroll-mt') || '0');\n const fontSize = parseFloat(style.fontSize);\n const scrollOffset = scrollMtRem * fontSize;\n\n const containerRect = scrollContainer.getBoundingClientRect();\n const targetRect = targetElement.getBoundingClientRect();\n const relativeTop =\n targetRect.top - containerRect.top + scrollContainer.scrollTop - scrollOffset;\n\n const maxScroll = scrollContainer.scrollHeight - scrollContainer.clientHeight;\n const scrollTop = Math.min(relativeTop, maxScroll);\n\n scrollContainer.scrollTo({\n top: scrollTop,\n behavior: 'instant',\n });\n }\n\n history.replaceState(null, '', `#${item.slug}`);\n\n ignoreTimeoutRef.current = setTimeout(() => {\n ignoreScrollRef.current = false;\n }, 100);\n }}\n className={cn(\n 'mint:block mint:pl-6 mint:leading-relaxed mint:no-underline',\n isActive\n ? 'mint:text-[#643fb2] mint:dark:text-[#c9aaf9] mint:[text-shadow:-0.2px_0_0_currentColor,0.2px_0_0_currentColor]'\n : 'mint:text-[#424242] mint:dark:text-[#d6d6d6] mint:dark:hover:text-[#d1d5db] mint:hover:text-[#111827]'\n )}\n >\n {item.title}\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n"],"names":["TableOfContents","toc","activeId","setActiveId","useState","ignoreScrollRef","useRef","ignoreTimeoutRef","useEffect","hash","_a","handleHashChange","scrollContainer","getActiveHeading","style","scrollMtRem","fontSize","scrollOffset","scrollY","maxScroll","isAtBottom","headingPositions","item","element","rect","containerRect","relativeTop","_b","i","currentHeading","heading","handleScroll","newActiveId","timeoutId","jsx","index","isActive","jsxs","e","targetElement","scrollTop","cn"],"mappings":";;;AASO,SAASA,EAAgB,EAAE,KAAAC,KAA6B;AAC7D,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAE,GACrCC,IAAkBC,EAAO,EAAK,GAC9BC,IAAmBD,EAAA;AAEzB,SAAAE,EAAU,MAAM;;AACd,QAAIP,EAAI,WAAW,EAAG;AAEtB,IAAAI,EAAgB,UAAU,IACtBE,EAAiB,WACnB,aAAaA,EAAiB,OAAO;AAGvC,UAAME,IAAO,OAAO,SAAS,KAAK,MAAM,CAAC;AACzC,IACEN,EADEM,OAGUC,IAAAT,EAAI,CAAC,MAAL,gBAAAS,EAAQ,SAAQ,EAFZ;AAKlB,UAAMC,IAAmB,MAAM;AAC7B,YAAMF,IAAO,OAAO,SAAS,KAAK,MAAM,CAAC;AACzC,MAAIA,KACFN,EAAYM,CAAI;AAAA,IAEpB,GAEMG,IAAkB,SAAS,eAAe,cAAc,GAExDC,IAAmB,MAAM;;AAC7B,UAAI,CAACD,EAAiB,SAAOF,IAAAT,EAAI,CAAC,MAAL,gBAAAS,EAAQ;AAErC,YAAMI,IAAQ,OAAO,iBAAiB,SAAS,eAAe,GACxDC,IAAc,WAAWD,EAAM,iBAAiB,aAAa,KAAK,GAAG,GACrEE,IAAW,WAAWF,EAAM,QAAQ,GACpCG,IAAeF,IAAcC,IAAW,KAExCE,IAAUN,EAAgB,WAC1BO,IAAYP,EAAgB,eAAeA,EAAgB,cAC3DQ,IAAaF,KAA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B,YAAYK,GAE7DE,IAAYP,EAAgB,eAAeA,EAAgB,cAC3D4B,IAAY,KAAK,IAAId,GAAaP,CAAS;AAEjD,cAAAP,EAAgB,SAAS;AAAA,gBACvB,KAAK4B;AAAA,gBACL,UAAU;AAAA,cAAA,CACX;AAAA,YACH;AAEA,oBAAQ,aAAa,MAAM,IAAI,IAAIlB,EAAK,IAAI,EAAE,GAE9Cf,EAAiB,UAAU,WAAW,MAAM;AAC1C,cAAAF,EAAgB,UAAU;AAAA,YAC5B,GAAG,GAAG;AAAA,UACR;AAAA,UACA,WAAWoC;AAAA,YACT;AAAA,YACAL,IACI,mHACA;AAAA,UAAA;AAAA,UAGL,UAAAd,EAAK;AAAA,QAAA;AAAA,MAAA;AAAA,IACR,EAAA,GArDO,GAAGA,EAAK,IAAI,IAAIa,CAAK,EAsD9B;AAAA,EAEJ,CAAC,EAAA,CACH;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/toc/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport type { TocItem } from '../../types';\nimport { cn } from '../../utils/cn';\n\ninterface TableOfContentsProps {\n toc: TocItem[];\n}\n\nexport function TableOfContents({ toc }: TableOfContentsProps) {\n const [activeId, setActiveId] = useState('');\n const ignoreScrollRef = useRef(false);\n const ignoreTimeoutRef = useRef<NodeJS.Timeout>();\n\n useEffect(() => {\n if (toc.length === 0) return;\n\n ignoreScrollRef.current = false;\n if (ignoreTimeoutRef.current) {\n clearTimeout(ignoreTimeoutRef.current);\n }\n\n const hash = window.location.hash.slice(1);\n if (hash) {\n setActiveId(hash);\n } else {\n setActiveId(toc[0]?.slug || '');\n }\n\n const handleHashChange = () => {\n const hash = window.location.hash.slice(1);\n if (hash) {\n setActiveId(hash);\n }\n };\n\n const scrollContainer = document.getElementById('main-content');\n\n const getActiveHeading = () => {\n if (!scrollContainer) return toc[0]?.slug;\n\n const style = window.getComputedStyle(document.documentElement);\n const scrollMtRem = parseFloat(style.getPropertyValue('--scroll-mt') || '0');\n const fontSize = parseFloat(style.fontSize);\n const scrollOffset = scrollMtRem * fontSize + 100;\n\n const scrollY = scrollContainer.scrollTop;\n const maxScroll = scrollContainer.scrollHeight - scrollContainer.clientHeight;\n const isAtBottom = scrollY >= maxScroll - 10;\n\n const headingPositions = toc\n .map((item) => {\n const element = document.getElementById(item.slug);\n if (!element) return null;\n\n const rect = element.getBoundingClientRect();\n const containerRect = scrollContainer.getBoundingClientRect();\n const relativeTop = rect.top - containerRect.top + scrollY;\n\n return { id: item.slug, top: relativeTop };\n })\n .filter(Boolean) as Array<{ id: string; top: number }>;\n\n if (headingPositions.length === 0) return toc[0]?.slug;\n\n if (isAtBottom) {\n const containerRect = scrollContainer.getBoundingClientRect();\n for (let i = headingPositions.length - 1; i >= 0; i--) {\n const element = document.getElementById(headingPositions[i].id);\n if (element) {\n const rect = element.getBoundingClientRect();\n if (rect.top <= containerRect.bottom && rect.bottom >= containerRect.top) {\n return headingPositions[i].id;\n }\n }\n }\n return headingPositions[headingPositions.length - 1].id;\n }\n\n let currentHeading = headingPositions[0];\n for (const heading of headingPositions) {\n if (scrollY + scrollOffset >= heading.top) {\n currentHeading = heading;\n }\n }\n\n return currentHeading?.id;\n };\n\n const handleScroll = () => {\n if (ignoreScrollRef.current) return;\n\n const newActiveId = getActiveHeading();\n if (newActiveId && newActiveId !== activeId) {\n setActiveId(newActiveId);\n history.replaceState(null, '', `#${newActiveId}`);\n }\n };\n\n window.addEventListener('hashchange', handleHashChange);\n\n if (scrollContainer) {\n scrollContainer.addEventListener('scroll', handleScroll, {\n passive: true,\n });\n } else {\n window.addEventListener('scroll', handleScroll, { passive: true });\n }\n\n let timeoutId: NodeJS.Timeout | undefined;\n if (!hash) {\n timeoutId = setTimeout(handleScroll, 100);\n }\n\n return () => {\n if (timeoutId) clearTimeout(timeoutId);\n if (ignoreTimeoutRef.current) clearTimeout(ignoreTimeoutRef.current);\n window.removeEventListener('hashchange', handleHashChange);\n if (scrollContainer) {\n scrollContainer.removeEventListener('scroll', handleScroll);\n } else {\n window.removeEventListener('scroll', handleScroll);\n }\n };\n }, [toc, activeId]);\n\n return (\n <ul className=\"mint:list-none mint:flex mint:flex-col mint:gap-1 mint:text-sm mint:text-[#6b7280] mint:dark:text-[#adadad] mint:font-medium mint:relative mint:pl-[0.15rem] mint:before:content-[''] mint:before:absolute mint:before:left-[0.15rem] mint:before:top-0 mint:before:bottom-0 mint:before:w-[2px] mint:before:bg-[#f2f3f3] mint:dark:before:bg-[#222223] mint:before:rounded-full\">\n {toc.map((item, index) => {\n const isActive = activeId === item.slug;\n return (\n <li key={`${item.slug}-${index}`} className=\"mint:relative\">\n {isActive && (\n <div className=\"mint:absolute mint:left-0 mint:top-0 mint:bottom-0 mint:w-[2px] mint:rounded-full mint:bg-[#643fb2] mint:dark:bg-[#c9aaf9] mint:z-1\" />\n )}\n <a\n href={`#${item.slug}`}\n onClick={(e) => {\n e.preventDefault();\n\n setActiveId(item.slug);\n\n ignoreScrollRef.current = true;\n if (ignoreTimeoutRef.current) {\n clearTimeout(ignoreTimeoutRef.current);\n }\n\n const scrollContainer = document.getElementById('main-content');\n const targetElement = document.getElementById(item.slug);\n\n if (scrollContainer && targetElement) {\n const style = window.getComputedStyle(document.documentElement);\n const scrollMtRem = parseFloat(style.getPropertyValue('--scroll-mt') || '0');\n const fontSize = parseFloat(style.fontSize);\n const scrollOffset = scrollMtRem * fontSize;\n\n const containerRect = scrollContainer.getBoundingClientRect();\n const targetRect = targetElement.getBoundingClientRect();\n const relativeTop =\n targetRect.top - containerRect.top + scrollContainer.scrollTop - scrollOffset;\n\n const maxScroll = scrollContainer.scrollHeight - scrollContainer.clientHeight;\n const scrollTop = Math.min(relativeTop, maxScroll);\n\n scrollContainer.scrollTo({\n top: scrollTop,\n behavior: 'instant',\n });\n }\n\n history.replaceState(null, '', `#${item.slug}`);\n\n ignoreTimeoutRef.current = setTimeout(() => {\n ignoreScrollRef.current = false;\n }, 100);\n }}\n className={cn(\n 'mint:block mint:pl-6 mint:leading-[1.375rem] mint:no-underline',\n isActive\n ? 'mint:text-[#643fb2] mint:dark:text-[#c9aaf9] mint:[text-shadow:-0.2px_0_0_currentColor,0.2px_0_0_currentColor]'\n : 'mint:text-[#424242] mint:dark:text-[#d6d6d6] mint:dark:hover:text-[#d1d5db] mint:hover:text-[#111827]'\n )}\n >\n {item.title}\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n"],"names":["TableOfContents","toc","activeId","setActiveId","useState","ignoreScrollRef","useRef","ignoreTimeoutRef","useEffect","hash","_a","handleHashChange","scrollContainer","getActiveHeading","style","scrollMtRem","fontSize","scrollOffset","scrollY","maxScroll","isAtBottom","headingPositions","item","element","rect","containerRect","relativeTop","_b","i","currentHeading","heading","handleScroll","newActiveId","timeoutId","jsx","index","isActive","jsxs","e","targetElement","scrollTop","cn"],"mappings":";;;AASO,SAASA,EAAgB,EAAE,KAAAC,KAA6B;AAC7D,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAE,GACrCC,IAAkBC,EAAO,EAAK,GAC9BC,IAAmBD,EAAA;AAEzB,SAAAE,EAAU,MAAM;;AACd,QAAIP,EAAI,WAAW,EAAG;AAEtB,IAAAI,EAAgB,UAAU,IACtBE,EAAiB,WACnB,aAAaA,EAAiB,OAAO;AAGvC,UAAME,IAAO,OAAO,SAAS,KAAK,MAAM,CAAC;AACzC,IACEN,EADEM,OAGUC,IAAAT,EAAI,CAAC,MAAL,gBAAAS,EAAQ,SAAQ,EAFZ;AAKlB,UAAMC,IAAmB,MAAM;AAC7B,YAAMF,IAAO,OAAO,SAAS,KAAK,MAAM,CAAC;AACzC,MAAIA,KACFN,EAAYM,CAAI;AAAA,IAEpB,GAEMG,IAAkB,SAAS,eAAe,cAAc,GAExDC,IAAmB,MAAM;;AAC7B,UAAI,CAACD,EAAiB,SAAOF,IAAAT,EAAI,CAAC,MAAL,gBAAAS,EAAQ;AAErC,YAAMI,IAAQ,OAAO,iBAAiB,SAAS,eAAe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C,IAAc,WAAWD,EAAM,iBAAiB,aAAa,KAAK,GAAG,GACrEE,IAAW,WAAWF,EAAM,QAAQ,GACpCG,IAAeF,IAAcC,GAE7BS,IAAgBb,EAAgB,sBAAA,GAEhCc,IADaa,EAAc,sBAAA,EAEpB,MAAMd,EAAc,MAAMb,EAAgB,YAAYK,GAE7DE,IAAYP,EAAgB,eAAeA,EAAgB,cAC3D4B,IAAY,KAAK,IAAId,GAAaP,CAAS;AAEjD,cAAAP,EAAgB,SAAS;AAAA,gBACvB,KAAK4B;AAAA,gBACL,UAAU;AAAA,cAAA,CACX;AAAA,YACH;AAEA,oBAAQ,aAAa,MAAM,IAAI,IAAIlB,EAAK,IAAI,EAAE,GAE9Cf,EAAiB,UAAU,WAAW,MAAM;AAC1C,cAAAF,EAAgB,UAAU;AAAA,YAC5B,GAAG,GAAG;AAAA,UACR;AAAA,UACA,WAAWoC;AAAA,YACT;AAAA,YACAL,IACI,mHACA;AAAA,UAAA;AAAA,UAGL,UAAAd,EAAK;AAAA,QAAA;AAAA,MAAA;AAAA,IACR,EAAA,GArDO,GAAGA,EAAK,IAAI,IAAIa,CAAK,EAsD9B;AAAA,EAEJ,CAAC,EAAA,CACH;AAEJ;"}
package/dist/index.d.ts CHANGED
@@ -221,6 +221,23 @@ export declare type CircularRefObject = {
221
221
  [CIRCULAR_REF_KEY]: UUID;
222
222
  };
223
223
 
224
+ /**
225
+ * Cleans a page title by removing suffixes commonly added by Microsoft Learn
226
+ *
227
+ * Removes:
228
+ * - Everything after " - " (e.g., "- Azure App Service | Microsoft Learn")
229
+ * - Trailing "| Microsoft Learn" (as fallback if no dash is present)
230
+ *
231
+ * @example
232
+ * cleanTitle("Quickstart: Create a Node.js web app - Azure App Service | Microsoft Learn")
233
+ * // Returns: "Quickstart: Create a Node.js web app"
234
+ *
235
+ * @example
236
+ * cleanTitle("API Reference | Microsoft Learn")
237
+ * // Returns: "API Reference"
238
+ */
239
+ export declare function cleanTitle(title: string): string;
240
+
224
241
  export declare function cn(...inputs: ClassValue[]): string;
225
242
 
226
243
  export declare function CodeBlock({ children, className, fileName, language, blob, contentType, dataGroup, }: CodeBlockProps): JSX_2.Element;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { PlainTextPage as n } from "./components/plain-text-page.js";
5
5
  import { createDefaultComponents as l, defaultComponents as i } from "./components/content-components/default-components.js";
6
6
  import { ComponentsProvider as s, useComponents as C } from "./context/components-context.js";
7
7
  import { NavTree as P } from "./components/nav-tree/index.js";
8
- import { useApiReference as y } from "./components/Api/ApiReferenceProvider.js";
8
+ import { useApiReference as c } from "./components/Api/ApiReferenceProvider.js";
9
9
  import { ApiReferenceContext as T, ApiReferenceContext2 as b, ApiReferenceProvider as v, ApiReferenceProvider2 as A, DeploymentMetadataContext as H, DeploymentMetadataProvider as h, DocsConfigContext as D, DocsConfigProvider as R, PageContext as M, PageProvider as k } from "./contexts/ConfigContext.js";
10
10
  import { TableOfContents as w } from "./components/toc/index.js";
11
11
  import { PivotAwareTOC as L } from "./components/toc/pivot-aware-toc.js";
@@ -15,156 +15,158 @@ import { generateLlmsFullTxt as X, generateLlmsTxt as q } from "./utils/generate
15
15
  import { getNodeText as J } from "./utils/get-node-text.js";
16
16
  import { capitalize as j } from "./utils/string.js";
17
17
  import { cn as Q } from "./utils/cn.js";
18
- import { getClassNames as V, getTextContent as Y, isElement as _ } from "./utils/rehype.js";
19
- import { convertHtmlToMdx as ee } from "./parser/convert-html-to-mdx.js";
20
- import { serializeMdx as re } from "./parser/serialize-mdx.js";
21
- import { extractHeadings as pe } from "./plugins/extract-headings.js";
22
- import { rehypeRemoveHtmlComments as ae, removeHtmlComments as xe } from "./plugins/sanitize/remove-html-comments.js";
23
- import { Api as fe } from "./api-playground-2/Api.js";
24
- import { OperationPage as ie } from "./api-playground-2/OperationPage.js";
25
- import { SchemaPage as se } from "./api-playground-2/SchemaPage.js";
26
- import { ApiExamples as ge } from "./api-playground-2/ApiExamples.js";
27
- import { ApiFields as ue } from "./api-playground-2/ApiFields.js";
28
- import { Playground as ce } from "./api-playground-2/Playground.js";
29
- import { EndpointHeader as be } from "./api-playground-2/EndpointHeader.js";
30
- import { ApiPlaygroundContext as Ae } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
31
- import { usePlaygroundInputsStore as he, useSelectedSecurityOption as De } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
32
- import { useSendPlaygroundRequest as Me } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
33
- import { useInitializeInputs as Se } from "./api-playground-2/hooks/useInitializeInputs.js";
34
- import { useCopyPathWithInputs as Fe } from "./api-playground-2/hooks/useCopyPathWithInputs.js";
35
- import { addApiReferenceDataFromMdxAndDocsConfig as Ie } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
36
- import { processSecurityOptions as Ee } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
37
- import { getApiReferenceDataFromGraph as Ze } from "./api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js";
38
- import { ApiPlayground as Be } from "./api-playground/ApiPlayground/index.js";
39
- import { ApiPlaygroundContext as qe } from "./api-playground/ApiPlayground/ApiPlaygroundContext.js";
40
- import { default as Je } from "./api-playground/EndpointFields/index.js";
41
- import { CodeBlock as je } from "./components/content-components/code-block.js";
42
- import { Heading as Qe } from "./components/content-components/heading.js";
43
- import { Link as Ve } from "./components/content-components/link.js";
44
- import { Callout as _e } from "./components/content-components/callouts.js";
45
- import { ZonePivot as eo } from "./components/content-components/zone-pivots/zone-pivot.js";
46
- import { ZoneTarget as ro } from "./components/content-components/zone-pivots/zone-target.js";
47
- import { ZonePivotProvider as po } from "./components/content-components/zone-pivots/zone-pivot-context.js";
48
- import { ZonePivotSelector as ao } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
49
- import { ParamName as no } from "./components/content-components/param-name.js";
50
- import { Tabs as lo } from "./components/content-components/tabs/tabs.js";
51
- import { Tab as so } from "./components/content-components/tabs/tab.js";
52
- import { Details as go, Summary as Po } from "./components/content-components/details/details.js";
53
- import { Table as yo, TableBody as co, TableCaption as To, TableCell as bo, TableFooter as vo, TableHead as Ao, TableHeader as Ho, TableRow as ho } from "./components/content-components/table/index.js";
54
- import { LaTeX as Ro } from "./components/content-components/latex.js";
55
- import { allComponents as ko } from "./components/content-components/all-components.js";
56
- import { Home as wo } from "./components/content-components/home.js";
57
- import { MobileNavTree as Lo } from "./components/nav-tree/mobile-nav.js";
58
- import { rehypeCodeblocks as No } from "./plugins/rehype/rehype-code-blocks.js";
59
- import { remarkHeadingIds as Oo } from "./plugins/remark/remark-heading-ids.js";
60
- import { sanitizePreTags as zo } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
61
- import { rehypeCallouts as Xo } from "./plugins/sanitize/rehype-callouts.js";
62
- import { rehypeParamName as Go } from "./plugins/sanitize/rehype-param-name.js";
63
- import { rehypeTabs as Wo } from "./plugins/sanitize/rehype-tabs.js";
64
- import { rehypeDetails as Ko } from "./plugins/sanitize/rehype-details.js";
65
- import { rehypeHeadingIds as Uo } from "./plugins/sanitize/rehype-heading-ids.js";
66
- import { rehypeZonePivots as Yo } from "./plugins/sanitize/rehype-zone-pivots.js";
67
- import { mdxJsxFlowElementHandler as $o, rehypeRemark as er } from "./plugins/sanitize/rehype-remark.js";
68
- import { rehypeLatex as rr } from "./plugins/sanitize/rehype-latex.js";
69
- import { tableCellHandler as pr, tableHandler as mr, tableRowHandler as ar } from "./plugins/sanitize/rehype-table-align.js";
18
+ import { cleanTitle as V } from "./utils/clean-title.js";
19
+ import { getClassNames as _, getTextContent as $, isElement as ee } from "./utils/rehype.js";
20
+ import { convertHtmlToMdx as re } from "./parser/convert-html-to-mdx.js";
21
+ import { serializeMdx as pe } from "./parser/serialize-mdx.js";
22
+ import { extractHeadings as ae } from "./plugins/extract-headings.js";
23
+ import { rehypeRemoveHtmlComments as ne, removeHtmlComments as fe } from "./plugins/sanitize/remove-html-comments.js";
24
+ import { Api as ie } from "./api-playground-2/Api.js";
25
+ import { OperationPage as se } from "./api-playground-2/OperationPage.js";
26
+ import { SchemaPage as ge } from "./api-playground-2/SchemaPage.js";
27
+ import { ApiExamples as ue } from "./api-playground-2/ApiExamples.js";
28
+ import { ApiFields as ye } from "./api-playground-2/ApiFields.js";
29
+ import { Playground as be } from "./api-playground-2/Playground.js";
30
+ import { EndpointHeader as Ae } from "./api-playground-2/EndpointHeader.js";
31
+ import { ApiPlaygroundContext as he } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
32
+ import { usePlaygroundInputsStore as Re, useSelectedSecurityOption as Me } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
33
+ import { useSendPlaygroundRequest as Se } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
34
+ import { useInitializeInputs as Fe } from "./api-playground-2/hooks/useInitializeInputs.js";
35
+ import { useCopyPathWithInputs as Ie } from "./api-playground-2/hooks/useCopyPathWithInputs.js";
36
+ import { addApiReferenceDataFromMdxAndDocsConfig as Ee } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
37
+ import { processSecurityOptions as Ze } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
38
+ import { getApiReferenceDataFromGraph as Be } from "./api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js";
39
+ import { ApiPlayground as qe } from "./api-playground/ApiPlayground/index.js";
40
+ import { ApiPlaygroundContext as Je } from "./api-playground/ApiPlayground/ApiPlaygroundContext.js";
41
+ import { default as je } from "./api-playground/EndpointFields/index.js";
42
+ import { CodeBlock as Qe } from "./components/content-components/code-block.js";
43
+ import { Heading as Ve } from "./components/content-components/heading.js";
44
+ import { Link as _e } from "./components/content-components/link.js";
45
+ import { Callout as eo } from "./components/content-components/callouts.js";
46
+ import { ZonePivot as ro } from "./components/content-components/zone-pivots/zone-pivot.js";
47
+ import { ZoneTarget as po } from "./components/content-components/zone-pivots/zone-target.js";
48
+ import { ZonePivotProvider as ao } from "./components/content-components/zone-pivots/zone-pivot-context.js";
49
+ import { ZonePivotSelector as no } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
50
+ import { ParamName as lo } from "./components/content-components/param-name.js";
51
+ import { Tabs as so } from "./components/content-components/tabs/tabs.js";
52
+ import { Tab as go } from "./components/content-components/tabs/tab.js";
53
+ import { Details as uo, Summary as co } from "./components/content-components/details/details.js";
54
+ import { Table as To, TableBody as bo, TableCaption as vo, TableCell as Ao, TableFooter as Ho, TableHead as ho, TableHeader as Do, TableRow as Ro } from "./components/content-components/table/index.js";
55
+ import { LaTeX as ko } from "./components/content-components/latex.js";
56
+ import { allComponents as wo } from "./components/content-components/all-components.js";
57
+ import { Home as Lo } from "./components/content-components/home.js";
58
+ import { MobileNavTree as No } from "./components/nav-tree/mobile-nav.js";
59
+ import { rehypeCodeblocks as Oo } from "./plugins/rehype/rehype-code-blocks.js";
60
+ import { remarkHeadingIds as zo } from "./plugins/remark/remark-heading-ids.js";
61
+ import { sanitizePreTags as Xo } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
62
+ import { rehypeCallouts as Go } from "./plugins/sanitize/rehype-callouts.js";
63
+ import { rehypeParamName as Wo } from "./plugins/sanitize/rehype-param-name.js";
64
+ import { rehypeTabs as Ko } from "./plugins/sanitize/rehype-tabs.js";
65
+ import { rehypeDetails as Uo } from "./plugins/sanitize/rehype-details.js";
66
+ import { rehypeHeadingIds as Yo } from "./plugins/sanitize/rehype-heading-ids.js";
67
+ import { rehypeZonePivots as $o } from "./plugins/sanitize/rehype-zone-pivots.js";
68
+ import { mdxJsxFlowElementHandler as or, rehypeRemark as rr } from "./plugins/sanitize/rehype-remark.js";
69
+ import { rehypeLatex as pr } from "./plugins/sanitize/rehype-latex.js";
70
+ import { tableCellHandler as ar, tableHandler as xr, tableRowHandler as nr } from "./plugins/sanitize/rehype-table-align.js";
70
71
  export {
71
- fe as Api,
72
- ge as ApiExamples,
73
- ue as ApiFields,
74
- Be as ApiPlayground,
75
- Ae as ApiPlaygroundContext,
76
- qe as ApiPlaygroundContextLegacy,
72
+ ie as Api,
73
+ ue as ApiExamples,
74
+ ye as ApiFields,
75
+ qe as ApiPlayground,
76
+ he as ApiPlaygroundContext,
77
+ Je as ApiPlaygroundContextLegacy,
77
78
  T as ApiReferenceContext,
78
79
  b as ApiReferenceContext2,
79
80
  v as ApiReferenceProvider,
80
81
  A as ApiReferenceProvider2,
81
- _e as Callout,
82
- je as CodeBlock,
82
+ eo as Callout,
83
+ Qe as CodeBlock,
83
84
  s as ComponentsProvider,
84
85
  H as DeploymentMetadataContext,
85
86
  h as DeploymentMetadataProvider,
86
- go as Details,
87
+ uo as Details,
87
88
  D as DocsConfigContext,
88
89
  R as DocsConfigProvider,
89
90
  p as DocsLayout,
90
91
  r as DocsPage,
91
- Je as EndpointFields,
92
- be as EndpointHeader,
93
- Qe as Heading,
94
- wo as Home,
95
- Ro as LaTeX,
96
- Ve as Link,
92
+ je as EndpointFields,
93
+ Ae as EndpointHeader,
94
+ Ve as Heading,
95
+ Lo as Home,
96
+ ko as LaTeX,
97
+ _e as Link,
97
98
  a as MDXRenderer,
98
- Lo as MobileNavTree,
99
+ No as MobileNavTree,
99
100
  P as NavTree,
100
- ie as OperationPage,
101
+ se as OperationPage,
101
102
  M as PageContext,
102
103
  N as PageContextMenu,
103
104
  k as PageProvider,
104
- no as ParamName,
105
+ lo as ParamName,
105
106
  L as PivotAwareTOC,
106
107
  n as PlainTextPage,
107
- ce as Playground,
108
- se as SchemaPage,
109
- Po as Summary,
110
- so as Tab,
111
- yo as Table,
112
- co as TableBody,
113
- To as TableCaption,
114
- bo as TableCell,
115
- vo as TableFooter,
116
- Ao as TableHead,
117
- Ho as TableHeader,
108
+ be as Playground,
109
+ ge as SchemaPage,
110
+ co as Summary,
111
+ go as Tab,
112
+ To as Table,
113
+ bo as TableBody,
114
+ vo as TableCaption,
115
+ Ao as TableCell,
116
+ Ho as TableFooter,
117
+ ho as TableHead,
118
+ Do as TableHeader,
118
119
  w as TableOfContents,
119
- ho as TableRow,
120
- lo as Tabs,
121
- eo as ZonePivot,
122
- po as ZonePivotProvider,
123
- ao as ZonePivotSelector,
124
- ro as ZoneTarget,
125
- Ie as addApiReferenceDataFromMdxAndDocsConfig,
126
- ko as allComponents,
120
+ Ro as TableRow,
121
+ so as Tabs,
122
+ ro as ZonePivot,
123
+ ao as ZonePivotProvider,
124
+ no as ZonePivotSelector,
125
+ po as ZoneTarget,
126
+ Ee as addApiReferenceDataFromMdxAndDocsConfig,
127
+ wo as allComponents,
127
128
  j as capitalize,
129
+ V as cleanTitle,
128
130
  Q as cn,
129
- ee as convertHtmlToMdx,
131
+ re as convertHtmlToMdx,
130
132
  O as copyMarkdownToClipboard,
131
133
  l as createDefaultComponents,
132
134
  i as defaultComponents,
133
- pe as extractHeadings,
135
+ ae as extractHeadings,
134
136
  X as generateLlmsFullTxt,
135
137
  q as generateLlmsTxt,
136
- Ze as getApiReferenceDataFromGraph,
137
- V as getClassNames,
138
+ Be as getApiReferenceDataFromGraph,
139
+ _ as getClassNames,
138
140
  J as getNodeText,
139
141
  Z as getPageMarkdown,
140
- Y as getTextContent,
141
- _ as isElement,
142
- $o as mdxJsxFlowElementHandler,
143
- Ee as processSecurityOptions,
144
- Xo as rehypeCallouts,
145
- No as rehypeCodeblocks,
146
- Ko as rehypeDetails,
147
- Uo as rehypeHeadingIds,
148
- rr as rehypeLatex,
149
- Go as rehypeParamName,
150
- er as rehypeRemark,
151
- ae as rehypeRemoveHtmlComments,
152
- Wo as rehypeTabs,
153
- Yo as rehypeZonePivots,
154
- Oo as remarkHeadingIds,
155
- xe as removeHtmlComments,
156
- zo as sanitizePreTags,
157
- re as serializeMdx,
158
- pr as tableCellHandler,
159
- mr as tableHandler,
160
- ar as tableRowHandler,
161
- y as useApiReference,
142
+ $ as getTextContent,
143
+ ee as isElement,
144
+ or as mdxJsxFlowElementHandler,
145
+ Ze as processSecurityOptions,
146
+ Go as rehypeCallouts,
147
+ Oo as rehypeCodeblocks,
148
+ Uo as rehypeDetails,
149
+ Yo as rehypeHeadingIds,
150
+ pr as rehypeLatex,
151
+ Wo as rehypeParamName,
152
+ rr as rehypeRemark,
153
+ ne as rehypeRemoveHtmlComments,
154
+ Ko as rehypeTabs,
155
+ $o as rehypeZonePivots,
156
+ zo as remarkHeadingIds,
157
+ fe as removeHtmlComments,
158
+ Xo as sanitizePreTags,
159
+ pe as serializeMdx,
160
+ ar as tableCellHandler,
161
+ xr as tableHandler,
162
+ nr as tableRowHandler,
163
+ c as useApiReference,
162
164
  C as useComponents,
163
- Fe as useCopyPathWithInputs,
164
- Se as useInitializeInputs,
165
+ Ie as useCopyPathWithInputs,
166
+ Fe as useInitializeInputs,
165
167
  z as useMarkdownCopy,
166
- he as usePlaygroundInputsStore,
167
- De as useSelectedSecurityOption,
168
- Me as useSendPlaygroundRequest
168
+ Re as usePlaygroundInputsStore,
169
+ Me as useSelectedSecurityOption,
170
+ Se as useSendPlaygroundRequest
169
171
  };
170
172
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}