basalt-ui 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/AGENTS.md +2 -2
  2. package/CHANGELOG.md +209 -189
  3. package/MIGRATING.md +98 -28
  4. package/README.md +7 -8
  5. package/agent/rules/basalt-controls.md +1 -1
  6. package/agent/rules/basalt-state.md +1 -1
  7. package/agent/skills/basalt-design/SKILL.md +1 -1
  8. package/agent/templates/AGENTS-block.md.tpl +2 -2
  9. package/configs/oxlint-plugin.js +25 -68
  10. package/configs/oxlint-plugin.test.ts +19 -27
  11. package/dist/charts/BandStrip.d.ts +1 -1
  12. package/dist/charts/BandStrip.d.ts.map +1 -1
  13. package/dist/charts/BandStrip.js +1 -10
  14. package/dist/charts/MirroredBars.d.ts.map +1 -1
  15. package/dist/charts/MirroredBars.js +2 -9
  16. package/dist/charts/band-fold.d.ts +15 -0
  17. package/dist/charts/band-fold.d.ts.map +1 -0
  18. package/dist/charts/band-fold.js +19 -0
  19. package/dist/charts/index.d.ts +1 -0
  20. package/dist/charts/index.d.ts.map +1 -1
  21. package/dist/charts/index.js +3 -1
  22. package/dist/cli/audit-allows.d.ts.map +1 -1
  23. package/dist/cli/audit-allows.js +1 -1
  24. package/dist/cli/check-theme.d.ts.map +1 -1
  25. package/dist/cli/check-theme.js +4 -1
  26. package/dist/cli/config.d.ts +4 -4
  27. package/dist/cli/doctor-upgrade.d.ts +5 -4
  28. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  29. package/dist/cli/doctor-upgrade.js +23 -99
  30. package/dist/cli/doctor.d.ts +2 -1
  31. package/dist/cli/doctor.d.ts.map +1 -1
  32. package/dist/cli/doctor.js +23 -25
  33. package/dist/cli/help.d.ts.map +1 -1
  34. package/dist/cli/help.js +2 -3
  35. package/dist/cli/index.d.ts +15 -6
  36. package/dist/cli/index.d.ts.map +1 -1
  37. package/dist/cli/index.js +16 -27
  38. package/dist/cli/init.d.ts.map +1 -1
  39. package/dist/cli/init.js +9 -6
  40. package/dist/cli/install-root.d.ts +10 -0
  41. package/dist/cli/install-root.d.ts.map +1 -0
  42. package/dist/cli/install-root.js +32 -0
  43. package/dist/cli/router-wiring.d.ts +37 -0
  44. package/dist/cli/router-wiring.d.ts.map +1 -0
  45. package/dist/cli/router-wiring.js +116 -0
  46. package/dist/cli/source-text.d.ts +12 -0
  47. package/dist/cli/source-text.d.ts.map +1 -0
  48. package/dist/cli/source-text.js +46 -0
  49. package/dist/cli/sync.d.ts +0 -2
  50. package/dist/cli/sync.d.ts.map +1 -1
  51. package/dist/cli/sync.js +23 -21
  52. package/dist/cli/tokens-css.d.ts.map +1 -1
  53. package/dist/cli/tokens-css.js +1 -6
  54. package/dist/common/errors.d.ts +1 -6
  55. package/dist/common/errors.d.ts.map +1 -1
  56. package/dist/common/errors.js +0 -7
  57. package/dist/common/index.d.ts +1 -1
  58. package/dist/common/index.d.ts.map +1 -1
  59. package/dist/common/index.js +1 -9
  60. package/dist/common/props.d.ts +2 -2
  61. package/dist/common/vx-family.d.ts +1 -1
  62. package/dist/content/code-block.d.ts.map +1 -1
  63. package/dist/content/code-block.js +36 -27
  64. package/dist/content/code-block.module.css +19 -1
  65. package/dist/content/mermaid-sanitize.d.ts +15 -0
  66. package/dist/content/mermaid-sanitize.d.ts.map +1 -0
  67. package/dist/content/mermaid-sanitize.js +28 -0
  68. package/dist/content/mermaid.d.ts +6 -0
  69. package/dist/content/mermaid.d.ts.map +1 -1
  70. package/dist/content/mermaid.js +3 -1
  71. package/dist/content/toc-click-pin.d.ts +45 -0
  72. package/dist/content/toc-click-pin.d.ts.map +1 -0
  73. package/dist/content/toc-click-pin.js +111 -0
  74. package/dist/content/toc-spy.d.ts +25 -0
  75. package/dist/content/toc-spy.d.ts.map +1 -0
  76. package/dist/content/toc-spy.js +43 -0
  77. package/dist/content/toc.d.ts +1 -4
  78. package/dist/content/toc.d.ts.map +1 -1
  79. package/dist/content/toc.js +38 -49
  80. package/dist/controls/number-filter.d.ts.map +1 -1
  81. package/dist/controls/number-filter.js +1 -1
  82. package/dist/dashboard/index.d.ts +1 -1
  83. package/dist/dashboard/index.d.ts.map +1 -1
  84. package/dist/dashboard/index.js +1 -3
  85. package/dist/dashboard/section.d.ts +10 -2
  86. package/dist/dashboard/section.d.ts.map +1 -1
  87. package/dist/dashboard/section.js +20 -3
  88. package/dist/dashboard/stat-card.d.ts +2 -8
  89. package/dist/dashboard/stat-card.d.ts.map +1 -1
  90. package/dist/dashboard/stat-card.js +1 -1
  91. package/dist/guard/index.d.ts +13 -9
  92. package/dist/guard/index.d.ts.map +1 -1
  93. package/dist/guard/index.js +74 -37
  94. package/dist/guard/types.d.ts +8 -7
  95. package/dist/guard/types.d.ts.map +1 -1
  96. package/dist/guard/vx-names.d.ts +1 -1
  97. package/dist/guard/vx-names.d.ts.map +1 -1
  98. package/dist/guard/vx-names.js +1 -33
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/provider/index.d.ts.map +1 -1
  102. package/dist/provider/index.js +3 -2
  103. package/dist/router-tanstack/search-store.d.ts +1 -11
  104. package/dist/router-tanstack/search-store.d.ts.map +1 -1
  105. package/dist/router-tanstack/search-store.js +1 -2
  106. package/dist/shell/index.d.ts +1 -0
  107. package/dist/shell/index.d.ts.map +1 -1
  108. package/dist/shell/index.js +3 -0
  109. package/dist/shell/nav-types.d.ts +1 -1
  110. package/dist/shell/page-bar.d.ts +6 -0
  111. package/dist/shell/page-bar.d.ts.map +1 -1
  112. package/dist/shell/page-bar.js +12 -2
  113. package/dist/state/fields.d.ts +1 -1
  114. package/dist/state/fields.d.ts.map +1 -1
  115. package/dist/state/fields.js +3 -1
  116. package/dist/surfaces.d.ts +1 -1
  117. package/dist/surfaces.d.ts.map +1 -1
  118. package/dist/surfaces.js +5 -11
  119. package/dist/table/data-table.d.ts +2 -2
  120. package/dist/tokens/core.d.ts +0 -10
  121. package/dist/tokens/core.d.ts.map +1 -1
  122. package/dist/tokens/core.js +6 -44
  123. package/dist/vite-boot.d.ts +25 -0
  124. package/dist/vite-boot.d.ts.map +1 -0
  125. package/dist/vite-boot.js +36 -0
  126. package/dist/vite.d.ts +24 -3
  127. package/dist/vite.d.ts.map +1 -1
  128. package/dist/vite.js +7 -16
  129. package/llms.txt +26 -9
  130. package/package.json +8 -5
  131. package/src/charts/BandStrip.tsx +4 -16
  132. package/src/charts/MirroredBars.tsx +2 -11
  133. package/src/charts/band-fold.ts +26 -0
  134. package/src/charts/index.ts +1 -0
  135. package/src/cli/audit-allows.ts +1 -3
  136. package/src/cli/check-theme.ts +7 -1
  137. package/src/cli/config.ts +4 -4
  138. package/src/cli/doctor-upgrade.ts +29 -145
  139. package/src/cli/doctor.ts +25 -31
  140. package/src/cli/help.ts +1 -4
  141. package/src/cli/index.ts +27 -43
  142. package/src/cli/init.ts +9 -6
  143. package/src/cli/install-root.ts +40 -0
  144. package/src/cli/router-wiring.ts +185 -0
  145. package/src/cli/source-text.ts +62 -0
  146. package/src/cli/sync.ts +26 -22
  147. package/src/cli/tokens-css.ts +0 -5
  148. package/src/common/errors.ts +1 -18
  149. package/src/common/index.ts +1 -8
  150. package/src/common/props.ts +2 -2
  151. package/src/common/vx-family.ts +1 -1
  152. package/src/content/code-block.module.css +19 -1
  153. package/src/content/code-block.tsx +7 -2
  154. package/src/content/mermaid-sanitize.ts +49 -0
  155. package/src/content/mermaid.tsx +3 -2
  156. package/src/content/toc-click-pin.ts +156 -0
  157. package/src/content/toc-spy.ts +61 -0
  158. package/src/content/toc.tsx +47 -95
  159. package/src/controls/form-layout.tsx +1 -1
  160. package/src/controls/number-filter.tsx +6 -1
  161. package/src/dashboard/index.ts +1 -6
  162. package/src/dashboard/section.tsx +39 -8
  163. package/src/dashboard/stat-card.tsx +4 -11
  164. package/src/guard/index.ts +114 -89
  165. package/src/guard/types.ts +8 -7
  166. package/src/guard/vx-names.ts +1 -33
  167. package/src/index.ts +1 -2
  168. package/src/provider/index.tsx +6 -3
  169. package/src/router-tanstack/search-store.ts +2 -14
  170. package/src/shell/index.tsx +2 -0
  171. package/src/shell/nav-types.ts +1 -1
  172. package/src/shell/page-bar.tsx +21 -2
  173. package/src/state/fields.ts +7 -2
  174. package/src/surfaces.ts +5 -11
  175. package/src/table/data-table.tsx +2 -2
  176. package/src/tokens/core.ts +6 -67
  177. package/src/vite-boot.ts +109 -0
  178. package/src/vite.ts +32 -61
  179. package/dist/tokens.css +0 -331
@@ -11,12 +11,6 @@ function oneOf(component, prop, allowed, got) {
11
11
  `prop "${prop}" must be one of ${allowed.map((value) => `'${value}'`).join(" | ")} \u2014 got ${JSON.stringify(got)}.`
12
12
  );
13
13
  }
14
- function deprecatedProp(component, oldProp, newProp, removeIn, note) {
15
- return message(
16
- component,
17
- `prop "${oldProp}" is deprecated \u2014 use "${newProp}" instead. "${oldProp}" is removed in ${removeIn}.${note === void 0 ? "" : ` ${note}`}`
18
- );
19
- }
20
14
  function ignoredProp(component, prop, because) {
21
15
  return message(component, `prop "${prop}" is ignored because ${because}`);
22
16
  }
@@ -69,7 +63,6 @@ function toErrorMessage(err, fallback = "The request failed.") {
69
63
  }
70
64
  export {
71
65
  BASALT_PREFIX,
72
- deprecatedProp,
73
66
  duplicateMount,
74
67
  errorStatus,
75
68
  ignoredProp,
@@ -9,7 +9,7 @@
9
9
  export { type BasaltProps, type SlotClassNames, type SlotStylesProps } from './props.js';
10
10
  export { type Tone, type ToneWithNeutral, type Tier, cx } from './props.js';
11
11
  export { assignRef, mergeRefs } from './refs.js';
12
- export { BASALT_PREFIX, requiredProp, oneOf, deprecatedProp, duplicateMount, missingLayer, } from './errors.js';
12
+ export { BASALT_PREFIX, requiredProp, oneOf, duplicateMount, missingLayer } from './errors.js';
13
13
  export { useValidateProps, assertRequiredProps, resetValidatedProps } from './validate.js';
14
14
  export { scrollParentOf, SCROLLPORT_ATTRIBUTE } from './scroll-parent.js';
15
15
  export { useCoarsePointer } from './use-media-query.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AACrF,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,IAAI,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EACL,aAAa,EACb,YAAY,EACZ,KAAK,EACL,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AACrF,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,IAAI,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA"}
@@ -1,14 +1,7 @@
1
1
  import {} from "./props.js";
2
2
  import { cx } from "./props.js";
3
3
  import { assignRef, mergeRefs } from "./refs.js";
4
- import {
5
- BASALT_PREFIX,
6
- requiredProp,
7
- oneOf,
8
- deprecatedProp,
9
- duplicateMount,
10
- missingLayer
11
- } from "./errors.js";
4
+ import { BASALT_PREFIX, requiredProp, oneOf, duplicateMount, missingLayer } from "./errors.js";
12
5
  import { useValidateProps, assertRequiredProps, resetValidatedProps } from "./validate.js";
13
6
  import { scrollParentOf, SCROLLPORT_ATTRIBUTE } from "./scroll-parent.js";
14
7
  import { useCoarsePointer } from "./use-media-query.js";
@@ -22,7 +15,6 @@ export {
22
15
  assertRequiredProps,
23
16
  assignRef,
24
17
  cx,
25
- deprecatedProp,
26
18
  duplicateMount,
27
19
  mergeRefs,
28
20
  missingLayer,
@@ -41,8 +41,8 @@ export interface SlotStylesProps<S extends string> {
41
41
  readonly classNames?: SlotClassNames<S> | undefined;
42
42
  }
43
43
  /**
44
- * The ONE status vocabulary (audit A13). Five forks exist today — `StatCardTone` and
45
- * `SidebarBlockTone` are byte-identical to this, `CalloutKind` / `AccountBadgeTone` /
44
+ * The ONE status vocabulary (audit A13). Forks exist today — `SidebarBlockTone` is
45
+ * byte-identical to this, `CalloutKind` / `AccountBadgeTone` /
46
46
  * `NotificationIntent` each differ — and they stay put for now: an adopter aliases its fork to this
47
47
  * type, it does not get renamed out from under a consumer.
48
48
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * A `--vx-*` name's FAMILY — its leading lowercase run: `--vx-surface-bg` → `surface`, `--vx-ink2`
3
- * → `ink`, `--vx-tooltipBg` → `tooltip`, `--vx-fillHover-cyan` → `fill`. Dependency-free, because
3
+ * → `ink`, `--vx-tooltip-bg` → `tooltip`, `--vx-fill-hover-cyan` → `fill`. Dependency-free, because
4
4
  * three sides must agree on it byte for byte: the generator that writes `BASALT_VX_FAMILIES`, the
5
5
  * guard that judges every name inside one of those families, and the token factories that refuse a
6
6
  * consumer name inside one — the refusal is what makes the guard's judgement honest.
@@ -1 +1 @@
1
- {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/content/code-block.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAO1C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAC/B,CAAA;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAe,EACf,SAAS,EACT,KAAK,GACN,EAAE,cAAc,+BAuFhB"}
1
+ {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/content/code-block.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAO1C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAC/B,CAAA;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAe,EACf,SAAS,EACT,KAAK,GACN,EAAE,cAAc,+BA4FhB"}
@@ -46,33 +46,42 @@ function CodeBlock({
46
46
  };
47
47
  }, [html, code]);
48
48
  const containerClass = [classes.container, className].filter(Boolean).join(" ");
49
- return /* @__PURE__ */ jsxs("div", { className: containerClass, ...style !== void 0 && { style }, children: [
50
- title !== void 0 && /* @__PURE__ */ jsxs("div", { className: classes.header, children: [
51
- /* @__PURE__ */ jsx("span", { className: classes.title, children: title }),
52
- /* @__PURE__ */ jsxs("div", { className: classes.headerRight, children: [
53
- language !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.langBadge, children: language }),
54
- showCopy && /* @__PURE__ */ jsx(CopyAction, { value: code, ariaLabel: "Copy code" })
55
- ] })
56
- ] }),
57
- html !== null ? /* @__PURE__ */ jsx(
58
- "div",
59
- {
60
- ref: setBodyRef,
61
- className: classes.body,
62
- ...showOverflowFade && { "data-code-overflow": true },
63
- dangerouslySetInnerHTML: { __html: html }
64
- }
65
- ) : /* @__PURE__ */ jsx(
66
- "pre",
67
- {
68
- ref: setBodyRef,
69
- className: classes.body,
70
- ...showOverflowFade && { "data-code-overflow": true },
71
- children: /* @__PURE__ */ jsx("code", { children: code })
72
- }
73
- ),
74
- title === void 0 && showCopy && /* @__PURE__ */ jsx("div", { className: classes.floatingCopy, children: /* @__PURE__ */ jsx(CopyAction, { value: code, ariaLabel: "Copy code" }) })
75
- ] });
49
+ const showFloatingCopy = title === void 0 && showCopy;
50
+ return /* @__PURE__ */ jsxs(
51
+ "div",
52
+ {
53
+ className: containerClass,
54
+ ...showFloatingCopy && { "data-floating-copy": true },
55
+ ...style !== void 0 && { style },
56
+ children: [
57
+ title !== void 0 && /* @__PURE__ */ jsxs("div", { className: classes.header, children: [
58
+ /* @__PURE__ */ jsx("span", { className: classes.title, children: title }),
59
+ /* @__PURE__ */ jsxs("div", { className: classes.headerRight, children: [
60
+ language !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.langBadge, children: language }),
61
+ showCopy && /* @__PURE__ */ jsx(CopyAction, { value: code, ariaLabel: "Copy code" })
62
+ ] })
63
+ ] }),
64
+ html !== null ? /* @__PURE__ */ jsx(
65
+ "div",
66
+ {
67
+ ref: setBodyRef,
68
+ className: classes.body,
69
+ ...showOverflowFade && { "data-code-overflow": true },
70
+ dangerouslySetInnerHTML: { __html: html }
71
+ }
72
+ ) : /* @__PURE__ */ jsx(
73
+ "pre",
74
+ {
75
+ ref: setBodyRef,
76
+ className: classes.body,
77
+ ...showOverflowFade && { "data-code-overflow": true },
78
+ children: /* @__PURE__ */ jsx("code", { children: code })
79
+ }
80
+ ),
81
+ showFloatingCopy && /* @__PURE__ */ jsx("div", { className: classes.floatingCopy, children: /* @__PURE__ */ jsx(CopyAction, { value: code, ariaLabel: "Copy code" }) })
82
+ ]
83
+ }
84
+ );
76
85
  }
77
86
  export {
78
87
  CodeBlock
@@ -77,7 +77,13 @@
77
77
  );
78
78
  }
79
79
 
80
- .body :global(pre.shiki) {
80
+ /* Both body states — the highlighted wrapper's `pre.shiki` and the bare fallback `<pre class=body>`
81
+ * — outrank Prose's `.root.article pre` block margin (0,2,1): at a tie, stylesheet order decided
82
+ * whether the inner pre kept 18px, so the fallback was ~36px taller than the highlighted fence and
83
+ * the swap jumped. `.body.body` lifts the fallback to (0,3,0); the outer `.container` margin alone
84
+ * owns the rhythm. */
85
+ .container .body.body,
86
+ .container .body :global(pre.shiki) {
81
87
  margin: 0;
82
88
  padding: 0;
83
89
  background: transparent !important;
@@ -93,6 +99,18 @@ html[data-mantine-color-scheme='light'] .body :global(.shiki span) {
93
99
  color: var(--shiki-light);
94
100
  }
95
101
 
102
+ /* The floating button sits over the body's top-right corner, so the body reserves its box: the
103
+ * first line starts below offset + button height instead of running underneath it on touch (always
104
+ * visible) or on hover. `--code-block-copy-size` mirrors ActionIcon size="sm" (Mantine scopes its
105
+ * own `--ai-size-sm` to the button, out of the body's reach); the layout suite pins the two. */
106
+ .container[data-floating-copy] {
107
+ --code-block-copy-size: calc(1.375rem * var(--mantine-scale, 1));
108
+ }
109
+
110
+ .container[data-floating-copy] .body {
111
+ padding-top: calc(var(--vx-space-code-block-floating-copy-offset) + var(--code-block-copy-size));
112
+ }
113
+
96
114
  /* Floating copy button — shown only when there is no header (no title), revealed on hover/focus. */
97
115
  .floatingCopy {
98
116
  position: absolute;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Post-process for beautiful-mermaid's SVG (consumed by `./mermaid`).
3
+ *
4
+ * `buildStyleBlock(font)` treats the font as a family NAME: it emits a Google Fonts `@import` (plus
5
+ * a JetBrains Mono one when `mono` is set) and writes `text { font-family: '<font>', … }`. basalt
6
+ * feeds it `var(--basalt-font-sans)`, so the import is a broken request and the quoted `'var(…)'`
7
+ * is an invalid family. basalt self-hosts its fonts: drop the import, unquote the var().
8
+ *
9
+ * Patterns verified against beautiful-mermaid 1.1.3 (peer range ^1.1.0): the style block is a
10
+ * single `<style>` holding the `@import`s and one `text { font-family }` rule; `font-family`
11
+ * never appears as a presentation attribute. Only `<style>` content is rewritten — a node label
12
+ * that happens to contain the same text is left alone.
13
+ */
14
+ export declare function sanitizeMermaidFonts(svg: string): string;
15
+ //# sourceMappingURL=mermaid-sanitize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mermaid-sanitize.d.ts","sourceRoot":"","sources":["../../src/content/mermaid-sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA+BH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKxD"}
@@ -0,0 +1,28 @@
1
+ const STYLE_BLOCK = /(<style\b[^>]*>)([\s\S]*?)(<\/style>)/gi;
2
+ const HOST = String.raw`(?:https?:)?\/\/fonts\.googleapis\.com`;
3
+ const QUOTED_FORM = String.raw`(?:url\(\s*)?(['"])${HOST}[^'"}\n]*\1(?:\s*\))?`;
4
+ const URL_FORM = String.raw`url\(\s*${HOST}[^}'"\n]*?\)`;
5
+ const MEDIA_LIST = String.raw`(?:[ \t]+[^;{}\n]*)?`;
6
+ const GOOGLE_FONTS_IMPORT = new RegExp(
7
+ String.raw`@import\s+(?:${QUOTED_FORM}|${URL_FORM})${MEDIA_LIST}[ \t]*;?`,
8
+ "g"
9
+ );
10
+ const QUOTED_VAR_FONT_FAMILY = /(font-family\s*:\s*)(['"])(var\([^'"]*\))\2/g;
11
+ function sanitizeStyle(css) {
12
+ const cleaned = css.replace(GOOGLE_FONTS_IMPORT, "").replace(QUOTED_VAR_FONT_FAMILY, "$1$3");
13
+ if (process.env.NODE_ENV !== "production" && /googleapis/i.test(cleaned)) {
14
+ console.warn(
15
+ "[basalt] MermaidDiagram: a remote font import survived sanitization \u2014 beautiful-mermaid changed its <style> output; update src/content/mermaid-sanitize.ts."
16
+ );
17
+ }
18
+ return cleaned;
19
+ }
20
+ function sanitizeMermaidFonts(svg) {
21
+ return svg.replace(
22
+ STYLE_BLOCK,
23
+ (_block, open, css, close) => open + sanitizeStyle(css) + close
24
+ );
25
+ }
26
+ export {
27
+ sanitizeMermaidFonts
28
+ };
@@ -20,6 +20,12 @@
20
20
  * <MermaidDiagram code={'graph TD\n A --> B'} />
21
21
  */
22
22
  import type { CSSProperties, ReactNode } from 'react';
23
+ import type { RenderOptions } from 'beautiful-mermaid';
24
+ /**
25
+ * Static theme mapping onto the `--vx-*` token layer — every value is a `var(--vx-*)` string, so
26
+ * this object never changes across renders/schemes and can live at module scope.
27
+ */
28
+ export declare const MERMAID_THEME_OPTIONS: RenderOptions;
23
29
  export type MermaidDiagramProps = {
24
30
  /** Raw mermaid source (the fence body, without the surrounding ``` marks). */
25
31
  readonly code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../src/content/mermaid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAqCrD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,4SA0DvF"}
1
+ {"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../src/content/mermaid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAMtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAUnC,CAAA;AAUD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,4SA0DvF"}
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useState } from "react";
3
3
  import { CodeBlock } from "./code-block.js";
4
4
  import classes from "./mermaid.module.css";
5
+ import { sanitizeMermaidFonts } from "./mermaid-sanitize.js";
5
6
  const MERMAID_THEME_OPTIONS = {
6
7
  bg: "var(--vx-surface-panel)",
7
8
  fg: "var(--vx-ink)",
@@ -34,7 +35,7 @@ function MermaidDiagram({ code, className, style, fallback }) {
34
35
  const rendered = useMemo(() => {
35
36
  if (!mod) return null;
36
37
  try {
37
- return mod.renderMermaidSVG(code, MERMAID_THEME_OPTIONS);
38
+ return sanitizeMermaidFonts(mod.renderMermaidSVG(code, MERMAID_THEME_OPTIONS));
38
39
  } catch {
39
40
  return void 0;
40
41
  }
@@ -66,5 +67,6 @@ function MermaidDiagram({ code, className, style, fallback }) {
66
67
  );
67
68
  }
68
69
  export {
70
+ MERMAID_THEME_OPTIONS,
69
71
  MermaidDiagram
70
72
  };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * How long the scroller must be quiet before a pinned click counts as settled: the fallback for a
3
+ * browser without a reliable `scrollend`, and the only signal for a click that needs no scroll.
4
+ */
5
+ export declare const QUIET_MS = 200;
6
+ /** Scroll movement tolerated while held (sub-pixel offsets, fractional DPR). */
7
+ export declare const HOLD_EPSILON_PX = 2;
8
+ /** The document-level events that mean the reader is about to scroll (or may have). */
9
+ export declare const INTENT_EVENTS: readonly ["wheel", "touchstart", "keydown", "pointerdown"];
10
+ /**
11
+ * Did the reader just do something that scrolls (or may scroll) the page? `link` is the rail link
12
+ * that was activated: pointing at it is the click itself, and Enter on it is not a scroll key.
13
+ */
14
+ export declare function isScrollIntent(event: Event, link: Element | null): boolean;
15
+ type ClickPinState = {
16
+ readonly kind: 'idle';
17
+ } | {
18
+ readonly kind: 'pinned';
19
+ readonly id: string;
20
+ } | {
21
+ readonly kind: 'held';
22
+ readonly id: string;
23
+ readonly top: number;
24
+ };
25
+ export declare class ClickPin {
26
+ private readonly onIdle;
27
+ private current;
28
+ private stop;
29
+ /** `onIdle` runs when the machine hands the rail back, so the spy can re-resolve. */
30
+ constructor(onIdle: () => void);
31
+ get state(): ClickPinState;
32
+ /** The entry the click owns (pinned or held), or `null` when the spy answers. A pure query. */
33
+ get activeId(): string | null;
34
+ /** `link` is the rail link just activated; `scroller` the element the spy watches (`null` = document). */
35
+ click(id: string, link: Element | null, scroller: HTMLElement | null): void;
36
+ /** Items changed: a click on an id that no longer exists cannot stand. */
37
+ prune(ids: readonly string[]): void;
38
+ release(): void;
39
+ /** Unmount: idle, timer and listeners gone, no callback. */
40
+ dispose(): void;
41
+ }
42
+ /** `onIdle` must be stable (a state setter): it is captured once, at construction. */
43
+ export declare function useClickPin(onIdle: () => void): ClickPin;
44
+ export {};
45
+ //# sourceMappingURL=toc-click-pin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toc-click-pin.d.ts","sourceRoot":"","sources":["../../src/content/toc-click-pin.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,QAAQ,MAAM,CAAA;AAC3B,gFAAgF;AAChF,eAAO,MAAM,eAAe,IAAI,CAAA;AAsBhC,uFAAuF;AACvF,eAAO,MAAM,aAAa,4DAA6D,CAAA;AAEvF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,CAY1E;AAMD,KAAK,aAAa,GACd;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAExE,qBAAa,QAAQ;IAKP,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,IAAI,CAA4B;IAExC,qFAAqF;gBACxD,MAAM,EAAE,MAAM,IAAI;IAE/C,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,+FAA+F;IAC/F,IAAI,QAAQ,IAAI,MAAM,GAAG,IAAI,CAE5B;IAED,0GAA0G;IAC1G,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI;IAwC3E,0EAA0E;IAC1E,KAAK,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAInC,OAAO,IAAI,IAAI;IAMf,4DAA4D;IAC5D,OAAO,IAAI,IAAI;CAKhB;AAED,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,QAAQ,CAIxD"}
@@ -0,0 +1,111 @@
1
+ import { useEffect, useState } from "react";
2
+ const QUIET_MS = 200;
3
+ const HOLD_EPSILON_PX = 2;
4
+ const SCROLL_KEYS = /* @__PURE__ */ new Set([
5
+ "PageUp",
6
+ "PageDown",
7
+ "Home",
8
+ "End",
9
+ "ArrowUp",
10
+ "ArrowDown",
11
+ " "
12
+ ]);
13
+ const isEditable = (event) => event.composedPath().some(
14
+ (node) => node instanceof HTMLElement && (node.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(node.tagName))
15
+ );
16
+ const INTENT_EVENTS = ["wheel", "touchstart", "keydown", "pointerdown"];
17
+ function isScrollIntent(event, link) {
18
+ switch (event.type) {
19
+ case "wheel":
20
+ case "touchstart":
21
+ return true;
22
+ case "pointerdown":
23
+ return !(event.target instanceof Node && link?.contains(event.target));
24
+ case "keydown":
25
+ return event instanceof KeyboardEvent && SCROLL_KEYS.has(event.key) && !isEditable(event);
26
+ default:
27
+ return false;
28
+ }
29
+ }
30
+ function scrollTopOf(scroller) {
31
+ return scroller ? scroller.scrollTop : window.scrollY;
32
+ }
33
+ class ClickPin {
34
+ /** `onIdle` runs when the machine hands the rail back, so the spy can re-resolve. */
35
+ constructor(onIdle) {
36
+ this.onIdle = onIdle;
37
+ }
38
+ current = { kind: "idle" };
39
+ stop = null;
40
+ get state() {
41
+ return this.current;
42
+ }
43
+ /** The entry the click owns (pinned or held), or `null` when the spy answers. A pure query. */
44
+ get activeId() {
45
+ return this.current.kind === "idle" ? null : this.current.id;
46
+ }
47
+ /** `link` is the rail link just activated; `scroller` the element the spy watches (`null` = document). */
48
+ click(id, link, scroller) {
49
+ this.stop?.();
50
+ this.current = { kind: "pinned", id };
51
+ const target = scroller ?? window;
52
+ let quiet;
53
+ const hold = () => {
54
+ clearTimeout(quiet);
55
+ if (this.current.kind !== "pinned") return;
56
+ this.current = { kind: "held", id, top: scrollTopOf(scroller) };
57
+ };
58
+ const onScroll = () => {
59
+ const state = this.current;
60
+ if (state.kind === "pinned") {
61
+ clearTimeout(quiet);
62
+ quiet = setTimeout(hold, QUIET_MS);
63
+ } else if (state.kind === "held" && Math.abs(scrollTopOf(scroller) - state.top) > HOLD_EPSILON_PX) {
64
+ this.release();
65
+ }
66
+ };
67
+ const onIntent = (event) => {
68
+ if (isScrollIntent(event, link)) this.release();
69
+ };
70
+ quiet = setTimeout(hold, QUIET_MS);
71
+ target.addEventListener("scrollend", hold, { once: true });
72
+ target.addEventListener("scroll", onScroll, { passive: true });
73
+ for (const type of INTENT_EVENTS) document.addEventListener(type, onIntent, { capture: true });
74
+ this.stop = () => {
75
+ clearTimeout(quiet);
76
+ target.removeEventListener("scrollend", hold);
77
+ target.removeEventListener("scroll", onScroll);
78
+ for (const type of INTENT_EVENTS) {
79
+ document.removeEventListener(type, onIntent, { capture: true });
80
+ }
81
+ };
82
+ }
83
+ /** Items changed: a click on an id that no longer exists cannot stand. */
84
+ prune(ids) {
85
+ if (this.current.kind !== "idle" && !ids.includes(this.current.id)) this.release();
86
+ }
87
+ release() {
88
+ if (this.current.kind === "idle") return;
89
+ this.dispose();
90
+ this.onIdle();
91
+ }
92
+ /** Unmount: idle, timer and listeners gone, no callback. */
93
+ dispose() {
94
+ this.stop?.();
95
+ this.stop = null;
96
+ this.current = { kind: "idle" };
97
+ }
98
+ }
99
+ function useClickPin(onIdle) {
100
+ const [pin] = useState(() => new ClickPin(onIdle));
101
+ useEffect(() => () => pin.dispose(), [pin]);
102
+ return pin;
103
+ }
104
+ export {
105
+ ClickPin,
106
+ HOLD_EPSILON_PX,
107
+ INTENT_EVENTS,
108
+ QUIET_MS,
109
+ isScrollIntent,
110
+ useClickPin
111
+ };
@@ -0,0 +1,25 @@
1
+ /** The TOC scroll-spy's pure half: scroll geometry in, the reader's section out. */
2
+ /** Sub-pixel / fractional-DPR slack when asking "is the scrollport at its end". */
3
+ export declare const BOTTOM_EPSILON_PX = 2;
4
+ /** Distance below the scrollport's top where a heading counts as reached (the observer's top inset). */
5
+ export declare const ACTIVATION_TOP_PX = 80;
6
+ /** The observer's band: below the activation line, down to 30% of the scrollport. */
7
+ export declare const OBSERVER_ROOT_MARGIN = "-80px 0px -70% 0px";
8
+ export type ScrollMetrics = {
9
+ readonly top: number;
10
+ readonly scrollTop: number;
11
+ readonly clientHeight: number;
12
+ readonly scrollHeight: number;
13
+ };
14
+ /** The scrollport's geometry; `null` is the document, whose "top" is the viewport's. */
15
+ export declare function scrollMetrics(port: HTMLElement | null): ScrollMetrics;
16
+ /** Is there a scroll range at all? Content that fits has no "top" or "bottom" to be at. */
17
+ export declare function canScroll(m: ScrollMetrics): boolean;
18
+ export declare function isAtBottom(m: ScrollMetrics): boolean;
19
+ /**
20
+ * The reader's section. Nothing to scroll: the first heading. At the end: the last (its section may
21
+ * be too short to ever reach the band). Otherwise the topmost heading inside the band, else the last
22
+ * heading at or above the activation line, else the first.
23
+ */
24
+ export declare function pickActive(elements: readonly HTMLElement[], intersecting: ReadonlySet<string>, m: ScrollMetrics): string | undefined;
25
+ //# sourceMappingURL=toc-spy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toc-spy.d.ts","sourceRoot":"","sources":["../../src/content/toc-spy.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAEpF,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,IAAI,CAAA;AAClC,wGAAwG;AACxG,eAAO,MAAM,iBAAiB,KAAK,CAAA;AACnC,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,uBAAyC,CAAA;AAE1E,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,aAAa,CAerE;AAED,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAEnD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,SAAS,WAAW,EAAE,EAChC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EACjC,CAAC,EAAE,aAAa,GACf,MAAM,GAAG,SAAS,CAQpB"}
@@ -0,0 +1,43 @@
1
+ const BOTTOM_EPSILON_PX = 2;
2
+ const ACTIVATION_TOP_PX = 80;
3
+ const OBSERVER_ROOT_MARGIN = `-${ACTIVATION_TOP_PX}px 0px -70% 0px`;
4
+ function scrollMetrics(port) {
5
+ if (port) {
6
+ return {
7
+ top: port.getBoundingClientRect().top,
8
+ scrollTop: port.scrollTop,
9
+ clientHeight: port.clientHeight,
10
+ scrollHeight: port.scrollHeight
11
+ };
12
+ }
13
+ return {
14
+ top: 0,
15
+ scrollTop: window.scrollY,
16
+ clientHeight: window.innerHeight,
17
+ scrollHeight: document.documentElement.scrollHeight
18
+ };
19
+ }
20
+ function canScroll(m) {
21
+ return m.scrollHeight - m.clientHeight > BOTTOM_EPSILON_PX;
22
+ }
23
+ function isAtBottom(m) {
24
+ return canScroll(m) && m.scrollTop + m.clientHeight >= m.scrollHeight - BOTTOM_EPSILON_PX;
25
+ }
26
+ function pickActive(elements, intersecting, m) {
27
+ if (!canScroll(m)) return elements[0]?.id;
28
+ if (isAtBottom(m)) return elements[elements.length - 1]?.id;
29
+ const topmost = elements.find((el) => intersecting.has(el.id));
30
+ if (topmost) return topmost.id;
31
+ const line = m.top + ACTIVATION_TOP_PX;
32
+ const passed = elements.filter((el) => el.getBoundingClientRect().top <= line);
33
+ return (passed[passed.length - 1] ?? elements[0])?.id;
34
+ }
35
+ export {
36
+ ACTIVATION_TOP_PX,
37
+ BOTTOM_EPSILON_PX,
38
+ OBSERVER_ROOT_MARGIN,
39
+ canScroll,
40
+ isAtBottom,
41
+ pickActive,
42
+ scrollMetrics
43
+ };
@@ -17,10 +17,7 @@
17
17
  * a viewport-rooted observer measures the wrong band. `null` means the document scrolls, which is
18
18
  * the shell-less case and behaves exactly as before.
19
19
  *
20
- * The active rail item carries `aria-current="location"` (WAI-ARIA APG's own recommendation for a
21
- * link set that navigates within one page, rather than `"page"`/`"true"`) — both a genuine a11y fix
22
- * (previously `activeId` drove `classes.active` alone, so a screen reader had no signal at all) and
23
- * the one DOM-observable hook for `activeId` that does not depend on a CSS Modules class hash.
20
+ * The active item carries `aria-current="location"` (WAI-ARIA APG: a link set within one page).
24
21
  *
25
22
  * @example
26
23
  * import { TableOfContents, headingSlug } from 'basalt-ui/content'
@@ -1 +1 @@
1
- {"version":3,"file":"toc.d.ts","sourceRoot":"","sources":["../../src/content/toc.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAMlD,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IAC1B,8FAA8F;IAC9F,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACrD,wEAAwE;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AA4BD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,MAAuB,EACvB,KAAqB,EACrB,UAAU,EACV,SAAS,GACV,EAAE,oBAAoB,sCAgLtB"}
1
+ {"version":3,"file":"toc.d.ts","sourceRoot":"","sources":["../../src/content/toc.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAQlD,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,oEAAoE;IACpE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IAC1B,8FAA8F;IAC9F,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACrD,wEAAwE;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAsBD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,MAAuB,EACvB,KAAqB,EACrB,UAAU,EACV,SAAS,GACV,EAAE,oBAAoB,sCAuItB"}