impact-nova 2.6.3 → 3.0.0-alpha.1

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 (456) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/utilities.js +4 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  8. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  9. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  13. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  14. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  16. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  19. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  20. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  21. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  22. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  23. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  25. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +31 -29
  26. package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
  27. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  28. package/dist/components/data/ag-grid-react/index.js +162 -146
  29. package/dist/components/data/data-table/data-table.js +85 -82
  30. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  31. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +8 -6
  32. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  33. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  34. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  35. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  36. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  37. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  38. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  39. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  40. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +4 -2
  41. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  42. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  43. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  44. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  45. package/dist/components/data-display/chart/chart.js +100 -93
  46. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  47. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  48. package/dist/components/data-display/chart/chart.utils.js +132 -35
  49. package/dist/components/data-display/chart/index.js +15 -13
  50. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  51. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  52. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  53. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  54. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  55. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  56. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  57. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  58. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  59. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  60. package/dist/components/data-display/globe-map/index.js +10 -0
  61. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  62. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  67. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  68. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  69. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  70. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  71. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  72. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  73. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  74. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  75. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  76. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  77. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  78. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  79. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  80. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  81. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  82. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  83. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  84. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  102. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  103. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  104. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  105. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  106. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  107. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  108. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  109. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  110. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  111. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  112. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  113. package/dist/components/data-display/notch-card/index.js +6 -0
  114. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  115. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  116. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  117. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  118. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  119. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  120. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  121. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  122. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  123. package/dist/components/feedback/popover/popover.js +1 -1
  124. package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
  125. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  126. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  127. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  128. package/dist/components/feedback/tooltip/tab-tooltip-render.js +6 -4
  129. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  130. package/dist/components/flows/filter-strip/index.js +4 -2
  131. package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
  132. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  133. package/dist/components/flows/iris-chat/index.js +55 -0
  134. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  135. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  136. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  137. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  138. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  139. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  140. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  141. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  142. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  143. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  144. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  145. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  146. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  147. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  148. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  149. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  150. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  151. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  152. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  153. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  154. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  155. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  156. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  157. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  158. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  159. package/dist/components/flows/wizard/index.d.ts +2 -2
  160. package/dist/components/flows/wizard/index.js +17 -13
  161. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  162. package/dist/components/flows/wizard/wizard-context.js +15 -7
  163. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  164. package/dist/components/flows/wizard/wizard.js +278 -174
  165. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  166. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  167. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  168. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  169. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  170. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  171. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  172. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  173. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  174. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  175. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  176. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  177. package/dist/components/forms/choice-card/choice-card.js +651 -170
  178. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  179. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  180. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  181. package/dist/components/forms/choice-card/index.d.ts +2 -1
  182. package/dist/components/forms/choice-card/index.js +27 -10
  183. package/dist/components/forms/combobox/combobox.js +1 -1
  184. package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
  185. package/dist/components/layout/header/header.d.ts +3 -2
  186. package/dist/components/layout/header/header.js +67 -47
  187. package/dist/components/layout/header/header.types.d.ts +1 -0
  188. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  189. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  190. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  191. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  192. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  193. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  194. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  195. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  196. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  197. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  198. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  199. package/dist/components/primitives/iris/iris.d.ts +24 -0
  200. package/dist/components/primitives/iris/iris.js +232 -0
  201. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  202. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  203. package/dist/components/primitives/iris/iris.variants.js +120 -0
  204. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  205. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  206. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  207. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  208. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  209. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  210. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  211. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  212. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  213. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  214. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  215. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  216. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  217. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  218. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  219. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  220. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  221. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  222. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  223. package/dist/components/primitives/stepper/stepper.js +134 -52
  224. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  225. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  226. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  227. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  228. package/dist/components/primitives/tabs/tabs.js +131 -59
  229. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  230. package/dist/i18n/defaultMessages.d.ts +100 -0
  231. package/dist/i18n/defaultMessages.js +118 -21
  232. package/dist/i18n/index.d.ts +1 -1
  233. package/dist/i18n/locales/de.js +99 -2
  234. package/dist/i18n/locales/es.js +99 -2
  235. package/dist/i18n/locales/hi.js +99 -2
  236. package/dist/i18n/locales/kn.js +99 -2
  237. package/dist/impact-nova-components.css +972 -2
  238. package/dist/impact-nova-tokens.scss +109 -1
  239. package/dist/impact-nova.css +1 -1
  240. package/dist/index.d.ts +1 -1
  241. package/dist/index.js +585 -551
  242. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  243. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  244. package/dist/lib/virtualized/index.d.ts +3 -0
  245. package/dist/lib/virtualized/index.js +35 -27
  246. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  247. package/dist/lib/virtualized/scroll-seek.js +61 -0
  248. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  249. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  250. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  251. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  252. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  253. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  254. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  255. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  256. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  257. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  258. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  259. package/dist/llms/rules/installation.js +1 -1
  260. package/dist/llms/rules/requirements.js +1 -1
  261. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  262. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  263. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  264. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  265. package/dist/node_modules/bail/index.js +7 -0
  266. package/dist/node_modules/ccount/index.js +12 -0
  267. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  268. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  269. package/dist/node_modules/devlop/lib/default.js +8 -0
  270. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  271. package/dist/node_modules/extend/index.js +43 -0
  272. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  273. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  274. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  275. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  276. package/dist/node_modules/is-plain-obj/index.js +9 -0
  277. package/dist/node_modules/longest-streak/index.js +12 -0
  278. package/dist/node_modules/markdown-table/index.js +75 -0
  279. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  280. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  281. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  282. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  283. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  284. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  285. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  286. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  287. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  288. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  289. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  290. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  291. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  292. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  293. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  294. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  295. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  296. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  297. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  298. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  299. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  300. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  301. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  302. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  303. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  304. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  305. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  306. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  307. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  308. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  309. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  310. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  311. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  312. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  314. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  315. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  316. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  317. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  318. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  319. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  320. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  321. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  322. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  323. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  324. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  325. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  326. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  327. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  328. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  329. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  330. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  331. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  332. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  333. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  334. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  335. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  336. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  337. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  338. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  339. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  340. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  341. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  342. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  343. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  344. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  345. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  346. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  347. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  348. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  349. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  350. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  351. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  352. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  353. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  354. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  355. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  356. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  357. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  358. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  359. package/dist/node_modules/micromark/lib/parse.js +32 -0
  360. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  361. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  362. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  363. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  364. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  365. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  366. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  367. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  368. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  369. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  370. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  371. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  372. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  373. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  374. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  375. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  376. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  377. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  378. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  379. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  380. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  381. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  382. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  383. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  384. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  385. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  386. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  387. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  388. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  389. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  390. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  391. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  392. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  393. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  394. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  395. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  396. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  397. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  398. package/dist/node_modules/micromark-util-character/index.js +39 -0
  399. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  400. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  401. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  402. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  403. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  404. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  405. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  406. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  407. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  408. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  409. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  410. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  411. package/dist/node_modules/property-information/index.js +12 -0
  412. package/dist/node_modules/property-information/lib/aria.js +61 -0
  413. package/dist/node_modules/property-information/lib/find.js +33 -0
  414. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  415. package/dist/node_modules/property-information/lib/html.js +378 -0
  416. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  417. package/dist/node_modules/property-information/lib/svg.js +568 -0
  418. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  419. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  420. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  421. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  422. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  423. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  424. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  425. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  426. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  427. package/dist/node_modules/property-information/lib/xml.js +11 -0
  428. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  429. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  430. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  431. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  432. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  433. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  434. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  435. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  436. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  437. package/dist/node_modules/trim-lines/index.js +28 -0
  438. package/dist/node_modules/trough/lib/index.js +60 -0
  439. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  440. package/dist/node_modules/unified/lib/index.js +529 -0
  441. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  442. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  443. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  444. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  445. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  446. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  447. package/dist/node_modules/vfile/lib/index.js +406 -0
  448. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  449. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  450. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  451. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  452. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  453. package/dist/providers/app-providers.js +13 -11
  454. package/dist/tailwind.config.js +3 -1
  455. package/dist/theme/tailwind-colors.js +2 -1
  456. package/package.json +39 -4
@@ -0,0 +1,12 @@
1
+ function r(p, e) {
2
+ const t = {
3
+ type: "element",
4
+ tagName: "h" + e.depth,
5
+ properties: {},
6
+ children: p.all(e)
7
+ };
8
+ return p.patch(e, t), p.applyData(e, t);
9
+ }
10
+ export {
11
+ r as heading
12
+ };
@@ -0,0 +1,9 @@
1
+ function u(l, r) {
2
+ if (l.options.allowDangerousHtml) {
3
+ const t = { type: "raw", value: r.value };
4
+ return l.patch(r, t), l.applyData(r, t);
5
+ }
6
+ }
7
+ export {
8
+ u as html
9
+ };
@@ -0,0 +1,14 @@
1
+ import { normalizeUri as o } from "../../../micromark-util-sanitize-uri/index.js";
2
+ import { revert as p } from "../revert.js";
3
+ function m(e, t) {
4
+ const l = String(t.identifier).toUpperCase(), i = e.definitionById.get(l);
5
+ if (!i)
6
+ return p(e, t);
7
+ const r = { src: o(i.url || ""), alt: t.alt };
8
+ i.title !== null && i.title !== void 0 && (r.title = i.title);
9
+ const n = { type: "element", tagName: "img", properties: r, children: [] };
10
+ return e.patch(t, n), e.applyData(t, n);
11
+ }
12
+ export {
13
+ m as imageReference
14
+ };
@@ -0,0 +1,10 @@
1
+ import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
2
+ function p(i, t) {
3
+ const l = { src: e(t.url) };
4
+ t.alt !== null && t.alt !== void 0 && (l.alt = t.alt), t.title !== null && t.title !== void 0 && (l.title = t.title);
5
+ const r = { type: "element", tagName: "img", properties: l, children: [] };
6
+ return i.patch(t, r), i.applyData(t, r);
7
+ }
8
+ export {
9
+ p as image
10
+ };
@@ -0,0 +1,58 @@
1
+ import { blockquote as r } from "./blockquote.js";
2
+ import { hardBreak as m } from "./break.js";
3
+ import { code as t } from "./code.js";
4
+ import { strikethrough as e } from "./delete.js";
5
+ import { emphasis as i } from "./emphasis.js";
6
+ import { footnoteReference as f } from "./footnote-reference.js";
7
+ import { heading as p } from "./heading.js";
8
+ import { html as n } from "./html.js";
9
+ import { imageReference as a } from "./image-reference.js";
10
+ import { image as l } from "./image.js";
11
+ import { inlineCode as d } from "./inline-code.js";
12
+ import { linkReference as h } from "./link-reference.js";
13
+ import { link as c } from "./link.js";
14
+ import { listItem as s } from "./list-item.js";
15
+ import { list as g } from "./list.js";
16
+ import { paragraph as k } from "./paragraph.js";
17
+ import { root as b } from "./root.js";
18
+ import { strong as u } from "./strong.js";
19
+ import { table as R } from "./table.js";
20
+ import { tableRow as x } from "./table-row.js";
21
+ import { tableCell as B } from "./table-cell.js";
22
+ import { text as C } from "./text.js";
23
+ import { thematicBreak as q } from "./thematic-break.js";
24
+ const V = {
25
+ blockquote: r,
26
+ break: m,
27
+ code: t,
28
+ delete: e,
29
+ emphasis: i,
30
+ footnoteReference: f,
31
+ heading: p,
32
+ html: n,
33
+ imageReference: a,
34
+ image: l,
35
+ inlineCode: d,
36
+ linkReference: h,
37
+ link: c,
38
+ listItem: s,
39
+ list: g,
40
+ paragraph: k,
41
+ // @ts-expect-error: root is different, but hard to type.
42
+ root: b,
43
+ strong: u,
44
+ table: R,
45
+ tableCell: B,
46
+ tableRow: x,
47
+ text: C,
48
+ thematicBreak: q,
49
+ toml: o,
50
+ yaml: o,
51
+ definition: o,
52
+ footnoteDefinition: o
53
+ };
54
+ function o() {
55
+ }
56
+ export {
57
+ V as handlers
58
+ };
@@ -0,0 +1,14 @@
1
+ function a(t, e) {
2
+ const p = { type: "text", value: e.value.replace(/\r?\n|\r/g, " ") };
3
+ t.patch(e, p);
4
+ const r = {
5
+ type: "element",
6
+ tagName: "code",
7
+ properties: {},
8
+ children: [p]
9
+ };
10
+ return t.patch(e, r), t.applyData(e, r);
11
+ }
12
+ export {
13
+ a as inlineCode
14
+ };
@@ -0,0 +1,19 @@
1
+ import { normalizeUri as f } from "../../../micromark-util-sanitize-uri/index.js";
2
+ import { revert as o } from "../revert.js";
3
+ function m(i, e) {
4
+ const l = String(e.identifier).toUpperCase(), t = i.definitionById.get(l);
5
+ if (!t)
6
+ return o(i, e);
7
+ const r = { href: f(t.url || "") };
8
+ t.title !== null && t.title !== void 0 && (r.title = t.title);
9
+ const n = {
10
+ type: "element",
11
+ tagName: "a",
12
+ properties: r,
13
+ children: i.all(e)
14
+ };
15
+ return i.patch(e, n), i.applyData(e, n);
16
+ }
17
+ export {
18
+ m as linkReference
19
+ };
@@ -0,0 +1,15 @@
1
+ import { normalizeUri as e } from "../../../micromark-util-sanitize-uri/index.js";
2
+ function a(l, t) {
3
+ const i = { href: e(t.url) };
4
+ t.title !== null && t.title !== void 0 && (i.title = t.title);
5
+ const r = {
6
+ type: "element",
7
+ tagName: "a",
8
+ properties: i,
9
+ children: l.all(t)
10
+ };
11
+ return l.patch(t, r), l.applyData(t, r);
12
+ }
13
+ export {
14
+ a as link
15
+ };
@@ -0,0 +1,42 @@
1
+ function f(l, e, s) {
2
+ const n = l.all(e), a = s ? m(s) : o(e), r = {}, p = [];
3
+ if (typeof e.checked == "boolean") {
4
+ const t = n[0];
5
+ let i;
6
+ t && t.type === "element" && t.tagName === "p" ? i = t : (i = { type: "element", tagName: "p", properties: {}, children: [] }, n.unshift(i)), i.children.length > 0 && i.children.unshift({ type: "text", value: " " }), i.children.unshift({
7
+ type: "element",
8
+ tagName: "input",
9
+ properties: { type: "checkbox", checked: e.checked, disabled: !0 },
10
+ children: []
11
+ }), r.className = ["task-list-item"];
12
+ }
13
+ let c = -1;
14
+ for (; ++c < n.length; ) {
15
+ const t = n[c];
16
+ (a || c !== 0 || t.type !== "element" || t.tagName !== "p") && p.push({ type: "text", value: `
17
+ ` }), t.type === "element" && t.tagName === "p" && !a ? p.push(...t.children) : p.push(t);
18
+ }
19
+ const h = n[n.length - 1];
20
+ h && (a || h.type !== "element" || h.tagName !== "p") && p.push({ type: "text", value: `
21
+ ` });
22
+ const u = { type: "element", tagName: "li", properties: r, children: p };
23
+ return l.patch(e, u), l.applyData(e, u);
24
+ }
25
+ function m(l) {
26
+ let e = !1;
27
+ if (l.type === "list") {
28
+ e = l.spread || !1;
29
+ const s = l.children;
30
+ let n = -1;
31
+ for (; !e && ++n < s.length; )
32
+ e = o(s[n]);
33
+ }
34
+ return e;
35
+ }
36
+ function o(l) {
37
+ const e = l.spread;
38
+ return e ?? l.children.length > 1;
39
+ }
40
+ export {
41
+ f as listItem
42
+ };
@@ -0,0 +1,21 @@
1
+ function p(r, t) {
2
+ const s = {}, a = r.all(t);
3
+ let l = -1;
4
+ for (typeof t.start == "number" && t.start !== 1 && (s.start = t.start); ++l < a.length; ) {
5
+ const e = a[l];
6
+ if (e.type === "element" && e.tagName === "li" && e.properties && Array.isArray(e.properties.className) && e.properties.className.includes("task-list-item")) {
7
+ s.className = ["contains-task-list"];
8
+ break;
9
+ }
10
+ }
11
+ const i = {
12
+ type: "element",
13
+ tagName: t.ordered ? "ol" : "ul",
14
+ properties: s,
15
+ children: r.wrap(a, !0)
16
+ };
17
+ return r.patch(t, i), r.applyData(t, i);
18
+ }
19
+ export {
20
+ p as list
21
+ };
@@ -0,0 +1,12 @@
1
+ function e(p, r) {
2
+ const a = {
3
+ type: "element",
4
+ tagName: "p",
5
+ properties: {},
6
+ children: p.all(r)
7
+ };
8
+ return p.patch(r, a), p.applyData(r, a);
9
+ }
10
+ export {
11
+ e as paragraph
12
+ };
@@ -0,0 +1,7 @@
1
+ function o(r, p) {
2
+ const l = { type: "root", children: r.wrap(r.all(p)) };
3
+ return r.patch(p, l), r.applyData(p, l);
4
+ }
5
+ export {
6
+ o as root
7
+ };
@@ -0,0 +1,12 @@
1
+ function p(r, t) {
2
+ const e = {
3
+ type: "element",
4
+ tagName: "strong",
5
+ properties: {},
6
+ children: r.all(t)
7
+ };
8
+ return r.patch(t, e), r.applyData(t, e);
9
+ }
10
+ export {
11
+ p as strong
12
+ };
@@ -0,0 +1,13 @@
1
+ function p(e, l) {
2
+ const t = {
3
+ type: "element",
4
+ tagName: "td",
5
+ // Assume body cell.
6
+ properties: {},
7
+ children: e.all(l)
8
+ };
9
+ return e.patch(l, t), e.applyData(l, t);
10
+ }
11
+ export {
12
+ p as tableCell
13
+ };
@@ -0,0 +1,21 @@
1
+ function f(e, l, n) {
2
+ const h = n ? n.children : void 0, p = (h ? h.indexOf(l) : 1) === 0 ? "th" : "td", c = n && n.type === "table" ? n.align : void 0, g = c ? c.length : l.children.length;
3
+ let r = -1;
4
+ const d = [];
5
+ for (; ++r < g; ) {
6
+ const i = l.children[r], s = {}, a = c ? c[r] : void 0;
7
+ a && (s.align = a);
8
+ let t = { type: "element", tagName: p, properties: s, children: [] };
9
+ i && (t.children = e.all(i), e.patch(i, t), t = e.applyData(i, t)), d.push(t);
10
+ }
11
+ const o = {
12
+ type: "element",
13
+ tagName: "tr",
14
+ properties: {},
15
+ children: e.wrap(d, !0)
16
+ };
17
+ return e.patch(l, o), e.applyData(l, o);
18
+ }
19
+ export {
20
+ f as tableRow
21
+ };
@@ -0,0 +1,32 @@
1
+ import { pointStart as a, pointEnd as h } from "../../../unist-util-position/lib/index.js";
2
+ function m(t, e) {
3
+ const n = t.all(e), i = n.shift(), p = [];
4
+ if (i) {
5
+ const r = {
6
+ type: "element",
7
+ tagName: "thead",
8
+ properties: {},
9
+ children: t.wrap([i], !0)
10
+ };
11
+ t.patch(e.children[0], r), p.push(r);
12
+ }
13
+ if (n.length > 0) {
14
+ const r = {
15
+ type: "element",
16
+ tagName: "tbody",
17
+ properties: {},
18
+ children: t.wrap(n, !0)
19
+ }, c = a(e.children[1]), o = h(e.children[e.children.length - 1]);
20
+ c && o && (r.position = { start: c, end: o }), p.push(r);
21
+ }
22
+ const l = {
23
+ type: "element",
24
+ tagName: "table",
25
+ properties: {},
26
+ children: t.wrap(p, !0)
27
+ };
28
+ return t.patch(e, l), t.applyData(e, l);
29
+ }
30
+ export {
31
+ m as table
32
+ };
@@ -0,0 +1,8 @@
1
+ import { trimLines as p } from "../../../trim-lines/index.js";
2
+ function i(r, t) {
3
+ const e = { type: "text", value: p(String(t.value)) };
4
+ return r.patch(t, e), r.applyData(t, e);
5
+ }
6
+ export {
7
+ i as text
8
+ };
@@ -0,0 +1,12 @@
1
+ function a(e, t) {
2
+ const r = {
3
+ type: "element",
4
+ tagName: "hr",
5
+ properties: {},
6
+ children: []
7
+ };
8
+ return e.patch(t, r), e.applyData(t, r);
9
+ }
10
+ export {
11
+ a as thematicBreak
12
+ };
@@ -0,0 +1,10 @@
1
+ import { footer as i } from "./footer.js";
2
+ import { createState as s } from "./state.js";
3
+ function p(o, c) {
4
+ const e = s(o, c), t = e.one(o, void 0), r = i(e), n = Array.isArray(t) ? { type: "root", children: t } : t || { type: "root", children: [] };
5
+ return r && n.children.push({ type: "text", value: `
6
+ ` }, r), n;
7
+ }
8
+ export {
9
+ p as toHast
10
+ };
@@ -0,0 +1,13 @@
1
+ function s(i, e) {
2
+ const f = e.referenceType;
3
+ let l = "]";
4
+ if (f === "collapsed" ? l += "[]" : f === "full" && (l += "[" + (e.label || e.identifier) + "]"), e.type === "imageReference")
5
+ return [{ type: "text", value: "![" + e.alt + l }];
6
+ const t = i.all(e), u = t[0];
7
+ u && u.type === "text" ? u.value = "[" + u.value : t.unshift({ type: "text", value: "[" });
8
+ const a = t[t.length - 1];
9
+ return a && a.type === "text" ? a.value += l : t.push({ type: "text", value: l }), t;
10
+ }
11
+ export {
12
+ s as revert
13
+ };
@@ -0,0 +1,104 @@
1
+ import d from "../../@ungap/structured-clone/esm/index.js";
2
+ import { handlers as A } from "./handlers/index.js";
3
+ import { visit as C } from "../../unist-util-visit/lib/index.js";
4
+ import { position as k } from "../../unist-util-position/lib/index.js";
5
+ const y = {}.hasOwnProperty, N = {};
6
+ function I(e, n) {
7
+ const t = n || N, r = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), f = { ...A, ...t.handlers }, l = {
8
+ all: v,
9
+ applyData: O,
10
+ definitionById: r,
11
+ footnoteById: p,
12
+ footnoteCounts: u,
13
+ footnoteOrder: [],
14
+ handlers: f,
15
+ one: g,
16
+ options: t,
17
+ patch: M,
18
+ wrap: S
19
+ };
20
+ return C(e, function(i) {
21
+ if (i.type === "definition" || i.type === "footnoteDefinition") {
22
+ const a = i.type === "definition" ? r : p, o = String(i.identifier).toUpperCase();
23
+ a.has(o) || a.set(o, i);
24
+ }
25
+ }), l;
26
+ function g(i, a) {
27
+ const o = i.type, c = l.handlers[o];
28
+ if (y.call(l.handlers, o) && c)
29
+ return c(l, i, a);
30
+ if (l.options.passThrough && l.options.passThrough.includes(o)) {
31
+ if ("children" in i) {
32
+ const { children: h, ...x } = i, m = d(x);
33
+ return m.children = l.all(i), m;
34
+ }
35
+ return d(i);
36
+ }
37
+ return (l.options.unknownHandler || P)(l, i, a);
38
+ }
39
+ function v(i) {
40
+ const a = [];
41
+ if ("children" in i) {
42
+ const o = i.children;
43
+ let c = -1;
44
+ for (; ++c < o.length; ) {
45
+ const s = l.one(o[c], i);
46
+ if (s) {
47
+ if (c && o[c - 1].type === "break" && (!Array.isArray(s) && s.type === "text" && (s.value = w(s.value)), !Array.isArray(s) && s.type === "element")) {
48
+ const h = s.children[0];
49
+ h && h.type === "text" && (h.value = w(h.value));
50
+ }
51
+ Array.isArray(s) ? a.push(...s) : a.push(s);
52
+ }
53
+ }
54
+ }
55
+ return a;
56
+ }
57
+ }
58
+ function M(e, n) {
59
+ e.position && (n.position = k(e));
60
+ }
61
+ function O(e, n) {
62
+ let t = n;
63
+ if (e && e.data) {
64
+ const r = e.data.hName, p = e.data.hChildren, u = e.data.hProperties;
65
+ if (typeof r == "string")
66
+ if (t.type === "element")
67
+ t.tagName = r;
68
+ else {
69
+ const f = "children" in t ? t.children : [t];
70
+ t = { type: "element", tagName: r, properties: {}, children: f };
71
+ }
72
+ t.type === "element" && u && Object.assign(t.properties, d(u)), "children" in t && t.children && p !== null && p !== void 0 && (t.children = p);
73
+ }
74
+ return t;
75
+ }
76
+ function P(e, n) {
77
+ const t = n.data || {}, r = "value" in n && !(y.call(t, "hProperties") || y.call(t, "hChildren")) ? { type: "text", value: n.value } : {
78
+ type: "element",
79
+ tagName: "div",
80
+ properties: {},
81
+ children: e.all(n)
82
+ };
83
+ return e.patch(n, r), e.applyData(n, r);
84
+ }
85
+ function S(e, n) {
86
+ const t = [];
87
+ let r = -1;
88
+ for (n && t.push({ type: "text", value: `
89
+ ` }); ++r < e.length; )
90
+ r && t.push({ type: "text", value: `
91
+ ` }), t.push(e[r]);
92
+ return n && e.length > 0 && t.push({ type: "text", value: `
93
+ ` }), t;
94
+ }
95
+ function w(e) {
96
+ let n = 0, t = e.charCodeAt(n);
97
+ for (; t === 9 || t === 32; )
98
+ n++, t = e.charCodeAt(n);
99
+ return e.slice(n);
100
+ }
101
+ export {
102
+ I as createState,
103
+ S as wrap
104
+ };
@@ -0,0 +1,15 @@
1
+ function k(e, o, n, c) {
2
+ const t = n.enter("blockquote"), r = n.createTracker(c);
3
+ r.move("> "), r.shift(2);
4
+ const u = n.indentLines(
5
+ n.containerFlow(e, r.current()),
6
+ i
7
+ );
8
+ return t(), u;
9
+ }
10
+ function i(e, o, n) {
11
+ return ">" + (n ? "" : " ") + e;
12
+ }
13
+ export {
14
+ k as blockquote
15
+ };
@@ -0,0 +1,15 @@
1
+ import { patternInScope as a } from "../util/pattern-in-scope.js";
2
+ function i(f, o, r, t) {
3
+ let n = -1;
4
+ for (; ++n < r.unsafe.length; ) {
5
+ const e = r.unsafe[n];
6
+ if (e.character === `
7
+ ` && !e.before && !e.after && a(r.stack, e))
8
+ return /[\t ]/.test(t.before) ? "" : " ";
9
+ }
10
+ return `\\
11
+ `;
12
+ }
13
+ export {
14
+ i as hardBreak
15
+ };
@@ -0,0 +1,44 @@
1
+ import { longestStreak as s } from "../../../longest-streak/index.js";
2
+ import { formatCodeAsIndented as l } from "../util/format-code-as-indented.js";
3
+ import { checkFence as x } from "../util/check-fence.js";
4
+ function F(n, i, e, u) {
5
+ const m = x(e), t = n.value || "";
6
+ if (l(n, e)) {
7
+ const o = e.enter("codeIndented"), v = e.indentLines(t, p);
8
+ return o(), v;
9
+ }
10
+ const r = e.createTracker(u), f = m.repeat(Math.max(s(t, m) + 1, 3)), d = e.enter("codeFenced"), a = m === "`" ? "GraveAccent" : "Tilde";
11
+ let c = r.move(f);
12
+ if (n.lang) {
13
+ const o = e.enter(`codeFencedLang${a}`);
14
+ c += r.move(
15
+ e.safe(n.lang, {
16
+ before: c,
17
+ after: " ",
18
+ encode: ["`"],
19
+ ...r.current()
20
+ })
21
+ ), o();
22
+ }
23
+ if (n.lang && n.meta) {
24
+ const o = e.enter(`codeFencedMeta${a}`);
25
+ c += r.move(" "), c += r.move(
26
+ e.safe(n.meta, {
27
+ before: c,
28
+ after: `
29
+ `,
30
+ encode: ["`"],
31
+ ...r.current()
32
+ })
33
+ ), o();
34
+ }
35
+ return c += r.move(`
36
+ `), t && (c += r.move(t + `
37
+ `)), c += r.move(f), d(), c;
38
+ }
39
+ function p(n, i, e) {
40
+ return (e ? "" : " ") + n;
41
+ }
42
+ export {
43
+ F as code
44
+ };
@@ -0,0 +1,34 @@
1
+ import { checkQuote as l } from "../util/check-quote.js";
2
+ function a(o, m, t, n) {
3
+ const f = l(t), u = f === '"' ? "Quote" : "Apostrophe", c = t.enter("definition");
4
+ let i = t.enter("label");
5
+ const e = t.createTracker(n);
6
+ let r = e.move("[");
7
+ return r += e.move(
8
+ t.safe(t.associationId(o), {
9
+ before: r,
10
+ after: "]",
11
+ ...e.current()
12
+ })
13
+ ), r += e.move("]: "), i(), // If there’s no url, or…
14
+ !o.url || // If there are control characters or whitespace.
15
+ /[\0- \u007F]/.test(o.url) ? (i = t.enter("destinationLiteral"), r += e.move("<"), r += e.move(
16
+ t.safe(o.url, { before: r, after: ">", ...e.current() })
17
+ ), r += e.move(">")) : (i = t.enter("destinationRaw"), r += e.move(
18
+ t.safe(o.url, {
19
+ before: r,
20
+ after: o.title ? " " : `
21
+ `,
22
+ ...e.current()
23
+ })
24
+ )), i(), o.title && (i = t.enter(`title${u}`), r += e.move(" " + f), r += e.move(
25
+ t.safe(o.title, {
26
+ before: r,
27
+ after: f,
28
+ ...e.current()
29
+ })
30
+ ), r += e.move(f), i()), c(), r;
31
+ }
32
+ export {
33
+ a as definition
34
+ };
@@ -0,0 +1,20 @@
1
+ import { checkEmphasis as a } from "../util/check-emphasis.js";
2
+ r.attention = c;
3
+ r.peek = p;
4
+ function r(n, t, e, i) {
5
+ const o = e.enter("phrasing"), s = e.containerPhrasing({ type: "root", children: [n] }, i);
6
+ return o(), s;
7
+ }
8
+ function c(n, t) {
9
+ return {
10
+ construct: "emphasis",
11
+ markers: a(t) === "*" ? ["*", "_"] : ["_", "*"],
12
+ sizes: [1]
13
+ };
14
+ }
15
+ function p(n, t, e) {
16
+ return e.options.emphasis || "*";
17
+ }
18
+ export {
19
+ r as emphasis
20
+ };
@@ -0,0 +1,35 @@
1
+ import { encodeCharacterReference as g } from "../util/encode-character-reference.js";
2
+ import { formatHeadingAsSetext as m } from "../util/format-heading-as-setext.js";
3
+ function b(r, p, e, h) {
4
+ const o = Math.max(Math.min(6, r.depth || 1), 1), c = e.createTracker(h);
5
+ if (m(r, e)) {
6
+ const x = e.enter("headingSetext"), u = e.enter("phrasing"), a = e.containerPhrasing(r, {
7
+ ...c.current(),
8
+ before: `
9
+ `,
10
+ after: `
11
+ `
12
+ });
13
+ return u(), x(), a + `
14
+ ` + (o === 1 ? "=" : "-").repeat(
15
+ // The whole size…
16
+ a.length - // Minus the position of the character after the last EOL (or
17
+ // 0 if there is none)…
18
+ (Math.max(a.lastIndexOf("\r"), a.lastIndexOf(`
19
+ `)) + 1)
20
+ );
21
+ }
22
+ const t = "#".repeat(o), f = e.enter("headingAtx"), s = e.enter("phrasing");
23
+ c.move(t + " ");
24
+ let n = e.containerPhrasing(r, {
25
+ before: "# ",
26
+ after: `
27
+ `,
28
+ ...c.current()
29
+ });
30
+ const i = n.charCodeAt(0);
31
+ return (i === 9 || i === 32) && (n = g(i) + n.slice(1)), n = n ? t + " " + n : t, e.options.closeAtx && (n += " " + t), s(), f(), n;
32
+ }
33
+ export {
34
+ b as heading
35
+ };
@@ -0,0 +1,10 @@
1
+ t.peek = n;
2
+ function t(e) {
3
+ return e.value || "";
4
+ }
5
+ function n() {
6
+ return "<";
7
+ }
8
+ export {
9
+ t as html
10
+ };