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,130 @@
1
+ import { ccount as f } from "../../ccount/index.js";
2
+ import { ok as k } from "../../devlop/lib/default.js";
3
+ import { unicodeWhitespace as p, unicodePunctuation as d } from "../../micromark-util-character/index.js";
4
+ import { findAndReplace as g } from "../../mdast-util-find-and-replace/lib/index.js";
5
+ const a = "phrasing", u = ["autolink", "link", "image", "label"];
6
+ function b() {
7
+ return {
8
+ transforms: [y],
9
+ enter: {
10
+ literalAutolink: w,
11
+ literalAutolinkEmail: s,
12
+ literalAutolinkHttp: s,
13
+ literalAutolinkWww: s
14
+ },
15
+ exit: {
16
+ literalAutolink: L,
17
+ literalAutolinkEmail: m,
18
+ literalAutolinkHttp: x,
19
+ literalAutolinkWww: A
20
+ }
21
+ };
22
+ }
23
+ function I() {
24
+ return {
25
+ unsafe: [
26
+ {
27
+ character: "@",
28
+ before: "[+\\-.\\w]",
29
+ after: "[\\-.\\w]",
30
+ inConstruct: a,
31
+ notInConstruct: u
32
+ },
33
+ {
34
+ character: ".",
35
+ before: "[Ww]",
36
+ after: "[\\-.\\w]",
37
+ inConstruct: a,
38
+ notInConstruct: u
39
+ },
40
+ {
41
+ character: ":",
42
+ before: "[ps]",
43
+ after: "\\/",
44
+ inConstruct: a,
45
+ notInConstruct: u
46
+ }
47
+ ]
48
+ };
49
+ }
50
+ function w(t) {
51
+ this.enter({ type: "link", title: null, url: "", children: [] }, t);
52
+ }
53
+ function s(t) {
54
+ this.config.enter.autolinkProtocol.call(this, t);
55
+ }
56
+ function x(t) {
57
+ this.config.exit.autolinkProtocol.call(this, t);
58
+ }
59
+ function A(t) {
60
+ this.config.exit.data.call(this, t);
61
+ const e = this.stack[this.stack.length - 1];
62
+ k(e.type === "link"), e.url = "http://" + this.sliceSerialize(t);
63
+ }
64
+ function m(t) {
65
+ this.config.exit.autolinkEmail.call(this, t);
66
+ }
67
+ function L(t) {
68
+ this.exit(t);
69
+ }
70
+ function y(t) {
71
+ g(
72
+ t,
73
+ [
74
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, P],
75
+ [new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), E]
76
+ ],
77
+ { ignore: ["link", "linkReference"] }
78
+ );
79
+ }
80
+ function P(t, e, i, n, o) {
81
+ let l = "";
82
+ if (!h(o) || (/^w/i.test(e) && (i = e + i, e = "", l = "http://"), !W(i)))
83
+ return !1;
84
+ const r = _(i + n);
85
+ if (!r[0]) return !1;
86
+ const c = {
87
+ type: "link",
88
+ title: null,
89
+ url: l + e + r[0],
90
+ children: [{ type: "text", value: e + r[0] }]
91
+ };
92
+ return r[1] ? [c, { type: "text", value: r[1] }] : c;
93
+ }
94
+ function E(t, e, i, n) {
95
+ return (
96
+ // Not an expected previous character.
97
+ !h(n, !0) || // Label ends in not allowed character.
98
+ /[-\d_]$/.test(i) ? !1 : {
99
+ type: "link",
100
+ title: null,
101
+ url: "mailto:" + e + "@" + i,
102
+ children: [{ type: "text", value: e + "@" + i }]
103
+ }
104
+ );
105
+ }
106
+ function W(t) {
107
+ const e = t.split(".");
108
+ return !(e.length < 2 || e[e.length - 1] && (/_/.test(e[e.length - 1]) || !/[a-zA-Z\d]/.test(e[e.length - 1])) || e[e.length - 2] && (/_/.test(e[e.length - 2]) || !/[a-zA-Z\d]/.test(e[e.length - 2])));
109
+ }
110
+ function _(t) {
111
+ const e = /[!"&'),.:;<>?\]}]+$/.exec(t);
112
+ if (!e)
113
+ return [t, void 0];
114
+ t = t.slice(0, e.index);
115
+ let i = e[0], n = i.indexOf(")");
116
+ const o = f(t, "(");
117
+ let l = f(t, ")");
118
+ for (; n !== -1 && o > l; )
119
+ t += i.slice(0, n + 1), i = i.slice(n + 1), n = i.indexOf(")"), l++;
120
+ return [t, i];
121
+ }
122
+ function h(t, e) {
123
+ const i = t.input.charCodeAt(t.index - 1);
124
+ return (t.index === 0 || p(i) || d(i)) && // If it’s an email, the previous character should not be a slash.
125
+ (!e || i !== 47);
126
+ }
127
+ export {
128
+ b as gfmAutolinkLiteralFromMarkdown,
129
+ I as gfmAutolinkLiteralToMarkdown
130
+ };
@@ -0,0 +1,95 @@
1
+ import { ok as a } from "../../devlop/lib/default.js";
2
+ import { normalizeIdentifier as s } from "../../micromark-util-normalize-identifier/index.js";
3
+ u.peek = S;
4
+ function F() {
5
+ this.buffer();
6
+ }
7
+ function b(e) {
8
+ this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
9
+ }
10
+ function k() {
11
+ this.buffer();
12
+ }
13
+ function d(e) {
14
+ this.enter(
15
+ { type: "footnoteDefinition", identifier: "", label: "", children: [] },
16
+ e
17
+ );
18
+ }
19
+ function x(e) {
20
+ const n = this.resume(), t = this.stack[this.stack.length - 1];
21
+ a(t.type === "footnoteReference"), t.identifier = s(
22
+ this.sliceSerialize(e)
23
+ ).toLowerCase(), t.label = n;
24
+ }
25
+ function D(e) {
26
+ this.exit(e);
27
+ }
28
+ function p(e) {
29
+ const n = this.resume(), t = this.stack[this.stack.length - 1];
30
+ a(t.type === "footnoteDefinition"), t.identifier = s(
31
+ this.sliceSerialize(e)
32
+ ).toLowerCase(), t.label = n;
33
+ }
34
+ function C(e) {
35
+ this.exit(e);
36
+ }
37
+ function S() {
38
+ return "[";
39
+ }
40
+ function u(e, n, t, r) {
41
+ const l = t.createTracker(r);
42
+ let o = l.move("[^");
43
+ const c = t.enter("footnoteReference"), i = t.enter("reference");
44
+ return o += l.move(
45
+ t.safe(t.associationId(e), { after: "]", before: o })
46
+ ), i(), c(), o += l.move("]"), o;
47
+ }
48
+ function R() {
49
+ return {
50
+ enter: {
51
+ gfmFootnoteCallString: F,
52
+ gfmFootnoteCall: b,
53
+ gfmFootnoteDefinitionLabelString: k,
54
+ gfmFootnoteDefinition: d
55
+ },
56
+ exit: {
57
+ gfmFootnoteCallString: x,
58
+ gfmFootnoteCall: D,
59
+ gfmFootnoteDefinitionLabelString: p,
60
+ gfmFootnoteDefinition: C
61
+ }
62
+ };
63
+ }
64
+ function y(e) {
65
+ let n = !1;
66
+ return e && e.firstLineBlank && (n = !0), {
67
+ handlers: { footnoteDefinition: t, footnoteReference: u },
68
+ // This is on by default already.
69
+ unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
70
+ };
71
+ function t(r, l, o, c) {
72
+ const i = o.createTracker(c);
73
+ let f = i.move("[^");
74
+ const h = o.enter("footnoteDefinition"), g = o.enter("label");
75
+ return f += i.move(
76
+ o.safe(o.associationId(r), { before: f, after: "]" })
77
+ ), g(), f += i.move("]:"), r.children && r.children.length > 0 && (i.shift(4), f += i.move(
78
+ (n ? `
79
+ ` : " ") + o.indentLines(
80
+ o.containerFlow(r, i.current()),
81
+ n ? m : v
82
+ )
83
+ )), h(), f;
84
+ }
85
+ }
86
+ function v(e, n, t) {
87
+ return n === 0 ? e : m(e, n, t);
88
+ }
89
+ function m(e, n, t) {
90
+ return (t ? "" : " ") + e;
91
+ }
92
+ export {
93
+ R as gfmFootnoteFromMarkdown,
94
+ y as gfmFootnoteToMarkdown
95
+ };
@@ -0,0 +1,54 @@
1
+ const h = [
2
+ "autolink",
3
+ "destinationLiteral",
4
+ "destinationRaw",
5
+ "reference",
6
+ "titleQuote",
7
+ "titleApostrophe"
8
+ ];
9
+ o.attention = k;
10
+ o.peek = l;
11
+ function g() {
12
+ return {
13
+ canContainEols: ["delete"],
14
+ enter: { strikethrough: s },
15
+ exit: { strikethrough: a }
16
+ };
17
+ }
18
+ function d() {
19
+ return {
20
+ handlers: { delete: o },
21
+ unsafe: [
22
+ {
23
+ character: "~",
24
+ inConstruct: "phrasing",
25
+ notInConstruct: h
26
+ }
27
+ ]
28
+ };
29
+ }
30
+ function s(e) {
31
+ this.enter({ type: "delete", children: [], position: void 0 }, e);
32
+ }
33
+ function a(e) {
34
+ this.exit(e);
35
+ }
36
+ function o(e, f, t, u) {
37
+ const n = t.createTracker(u), i = t.stack.includes("strikethrough") ? "~" : "~~", c = t.enter("strikethrough");
38
+ let r = n.move(i);
39
+ return r += t.containerPhrasing(e, {
40
+ ...n.current(),
41
+ before: r,
42
+ after: "~"
43
+ }), r += n.move(i), c(), r;
44
+ }
45
+ function k() {
46
+ return { construct: "strikethrough", markers: ["~"], sizes: [2, 1] };
47
+ }
48
+ function l() {
49
+ return "~";
50
+ }
51
+ export {
52
+ g as gfmStrikethroughFromMarkdown,
53
+ d as gfmStrikethroughToMarkdown
54
+ };
@@ -0,0 +1,135 @@
1
+ import { ok as k } from "../../devlop/lib/default.js";
2
+ import { markdownTable as R } from "../../markdown-table/index.js";
3
+ import { handle as D } from "../../mdast-util-to-markdown/lib/handle/index.js";
4
+ function M() {
5
+ return {
6
+ enter: {
7
+ table: v,
8
+ tableData: g,
9
+ tableHeader: g,
10
+ tableRow: _
11
+ },
12
+ exit: {
13
+ codeText: A,
14
+ table: y,
15
+ tableData: u,
16
+ tableHeader: u,
17
+ tableRow: u
18
+ }
19
+ };
20
+ }
21
+ function v(e) {
22
+ const l = e._align;
23
+ this.enter(
24
+ {
25
+ type: "table",
26
+ align: l.map(function(c) {
27
+ return c === "none" ? null : c;
28
+ }),
29
+ children: []
30
+ },
31
+ e
32
+ ), this.data.inTable = !0;
33
+ }
34
+ function y(e) {
35
+ this.exit(e), this.data.inTable = void 0;
36
+ }
37
+ function _(e) {
38
+ this.enter({ type: "tableRow", children: [] }, e);
39
+ }
40
+ function u(e) {
41
+ this.exit(e);
42
+ }
43
+ function g(e) {
44
+ this.enter({ type: "tableCell", children: [] }, e);
45
+ }
46
+ function A(e) {
47
+ let l = this.resume();
48
+ this.data.inTable && (l = l.replace(/\\([\\|])/g, B));
49
+ const c = this.stack[this.stack.length - 1];
50
+ k(c.type === "inlineCode"), c.value = l, this.exit(e);
51
+ }
52
+ function B(e, l) {
53
+ return l === "|" ? l : e;
54
+ }
55
+ function z(e) {
56
+ const l = e || {}, c = l.tableCellPadding, C = l.tablePipeAlign, x = l.stringLength, h = c ? " " : "|";
57
+ return {
58
+ unsafe: [
59
+ { character: "\r", inConstruct: "tableCell" },
60
+ { character: `
61
+ `, inConstruct: "tableCell" },
62
+ // A pipe, when followed by a tab or space (padding), or a dash or colon
63
+ // (unpadded delimiter row), could result in a table.
64
+ { atBreak: !0, character: "|", after: "[ :-]" },
65
+ // A pipe in a cell must be encoded.
66
+ { character: "|", inConstruct: "tableCell" },
67
+ // A colon must be followed by a dash, in which case it could start a
68
+ // delimiter row.
69
+ { atBreak: !0, character: ":", after: "-" },
70
+ // A delimiter row can also start with a dash, when followed by more
71
+ // dashes, a colon, or a pipe.
72
+ // This is a stricter version than the built in check for lists, thematic
73
+ // breaks, and setex heading underlines though:
74
+ // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>
75
+ { atBreak: !0, character: "-", after: "[:|-]" }
76
+ ],
77
+ handlers: {
78
+ inlineCode: m,
79
+ table: T,
80
+ tableCell: b,
81
+ tableRow: p
82
+ }
83
+ };
84
+ function T(t, r, a, n) {
85
+ return d(w(t, a, n), t.align);
86
+ }
87
+ function p(t, r, a, n) {
88
+ const i = f(t, a, n), o = d([i]);
89
+ return o.slice(0, o.indexOf(`
90
+ `));
91
+ }
92
+ function b(t, r, a, n) {
93
+ const i = a.enter("tableCell"), o = a.enter("phrasing"), s = a.containerPhrasing(t, {
94
+ ...n,
95
+ before: h,
96
+ after: h
97
+ });
98
+ return o(), i(), s;
99
+ }
100
+ function d(t, r) {
101
+ return R(t, {
102
+ align: r,
103
+ // @ts-expect-error: `markdown-table` types should support `null`.
104
+ alignDelimiters: C,
105
+ // @ts-expect-error: `markdown-table` types should support `null`.
106
+ padding: c,
107
+ // @ts-expect-error: `markdown-table` types should support `null`.
108
+ stringLength: x
109
+ });
110
+ }
111
+ function w(t, r, a) {
112
+ const n = t.children;
113
+ let i = -1;
114
+ const o = [], s = r.enter("table");
115
+ for (; ++i < n.length; )
116
+ o[i] = f(n[i], r, a);
117
+ return s(), o;
118
+ }
119
+ function f(t, r, a) {
120
+ const n = t.children;
121
+ let i = -1;
122
+ const o = [], s = r.enter("tableRow");
123
+ for (; ++i < n.length; )
124
+ o[i] = b(n[i], t, r, a);
125
+ return s(), o;
126
+ }
127
+ function m(t, r, a) {
128
+ let n = D.inlineCode(t, r, a);
129
+ return a.stack.includes("tableCell") && (n = n.replace(/\|/g, "\\$&")), n;
130
+ }
131
+ }
132
+ export {
133
+ M as gfmTableFromMarkdown,
134
+ z as gfmTableToMarkdown
135
+ };
@@ -0,0 +1,58 @@
1
+ import { ok as l } from "../../devlop/lib/default.js";
2
+ import { handle as f } from "../../mdast-util-to-markdown/lib/handle/index.js";
3
+ function y() {
4
+ return {
5
+ exit: {
6
+ taskListCheckValueChecked: h,
7
+ taskListCheckValueUnchecked: h,
8
+ paragraph: u
9
+ }
10
+ };
11
+ }
12
+ function b() {
13
+ return {
14
+ unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
15
+ handlers: { listItem: m }
16
+ };
17
+ }
18
+ function h(s) {
19
+ const e = this.stack[this.stack.length - 2];
20
+ l(e.type === "listItem"), e.checked = s.type === "taskListCheckValueChecked";
21
+ }
22
+ function u(s) {
23
+ const e = this.stack[this.stack.length - 2];
24
+ if (e && e.type === "listItem" && typeof e.checked == "boolean") {
25
+ const i = this.stack[this.stack.length - 1];
26
+ l(i.type === "paragraph");
27
+ const t = i.children[0];
28
+ if (t && t.type === "text") {
29
+ const a = e.children;
30
+ let c = -1, n;
31
+ for (; ++c < a.length; ) {
32
+ const r = a[c];
33
+ if (r.type === "paragraph") {
34
+ n = r;
35
+ break;
36
+ }
37
+ }
38
+ n === i && (t.value = t.value.slice(1), t.value.length === 0 ? i.children.shift() : i.position && t.position && typeof t.position.start.offset == "number" && (t.position.start.column++, t.position.start.offset++, i.position.start = Object.assign({}, t.position.start)));
39
+ }
40
+ }
41
+ this.exit(s);
42
+ }
43
+ function m(s, e, i, t) {
44
+ const a = s.children[0], c = typeof s.checked == "boolean" && a && a.type === "paragraph", n = "[" + (s.checked ? "x" : " ") + "] ", r = i.createTracker(t);
45
+ c && r.move(n);
46
+ let o = f.listItem(s, e, i, {
47
+ ...t,
48
+ ...r.current()
49
+ });
50
+ return c && (o = o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, k)), o;
51
+ function k(p) {
52
+ return p + n;
53
+ }
54
+ }
55
+ export {
56
+ y as gfmTaskListItemFromMarkdown,
57
+ b as gfmTaskListItemToMarkdown
58
+ };
@@ -0,0 +1,30 @@
1
+ import { convert as e } from "../../unist-util-is/lib/index.js";
2
+ const n = (
3
+ /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
4
+ e([
5
+ "break",
6
+ "delete",
7
+ "emphasis",
8
+ // To do: next major: removed since footnotes were added to GFM.
9
+ "footnote",
10
+ "footnoteReference",
11
+ "image",
12
+ "imageReference",
13
+ "inlineCode",
14
+ // Enabled by `mdast-util-math`:
15
+ "inlineMath",
16
+ "link",
17
+ "linkReference",
18
+ // Enabled by `mdast-util-mdx`:
19
+ "mdxJsxTextElement",
20
+ // Enabled by `mdast-util-mdx`:
21
+ "mdxTextExpression",
22
+ "strong",
23
+ "text",
24
+ // Enabled by `mdast-util-directive`:
25
+ "textDirective"
26
+ ])
27
+ );
28
+ export {
29
+ n as phrasing
30
+ };
@@ -0,0 +1,90 @@
1
+ import x from "../../@ungap/structured-clone/esm/index.js";
2
+ import { normalizeUri as N } from "../../micromark-util-sanitize-uri/index.js";
3
+ function L(e, o) {
4
+ const r = [{ type: "text", value: "↩" }];
5
+ return o > 1 && r.push({
6
+ type: "element",
7
+ tagName: "sup",
8
+ properties: {},
9
+ children: [{ type: "text", value: String(o) }]
10
+ }), r;
11
+ }
12
+ function k(e, o) {
13
+ return "Back to reference " + (e + 1) + (o > 1 ? "-" + o : "");
14
+ }
15
+ function C(e) {
16
+ const o = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = e.options.footnoteBackContent || L, s = e.options.footnoteBackLabel || k, y = e.options.footnoteLabel || "Footnotes", g = e.options.footnoteLabelTagName || "h2", b = e.options.footnoteLabelProperties || {
17
+ className: ["sr-only"]
18
+ }, f = [];
19
+ let a = -1;
20
+ for (; ++a < e.footnoteOrder.length; ) {
21
+ const p = e.footnoteById.get(
22
+ e.footnoteOrder[a]
23
+ );
24
+ if (!p)
25
+ continue;
26
+ const c = e.all(p), u = String(p.identifier).toUpperCase(), d = N(u.toLowerCase());
27
+ let l = 0;
28
+ const i = [], h = e.footnoteCounts.get(u);
29
+ for (; h !== void 0 && ++l <= h; ) {
30
+ i.length > 0 && i.push({ type: "text", value: " " });
31
+ let t = typeof r == "string" ? r : r(a, l);
32
+ typeof t == "string" && (t = { type: "text", value: t }), i.push({
33
+ type: "element",
34
+ tagName: "a",
35
+ properties: {
36
+ href: "#" + o + "fnref-" + d + (l > 1 ? "-" + l : ""),
37
+ dataFootnoteBackref: "",
38
+ ariaLabel: typeof s == "string" ? s : s(a, l),
39
+ className: ["data-footnote-backref"]
40
+ },
41
+ children: Array.isArray(t) ? t : [t]
42
+ });
43
+ }
44
+ const n = c[c.length - 1];
45
+ if (n && n.type === "element" && n.tagName === "p") {
46
+ const t = n.children[n.children.length - 1];
47
+ t && t.type === "text" ? t.value += " " : n.children.push({ type: "text", value: " " }), n.children.push(...i);
48
+ } else
49
+ c.push(...i);
50
+ const m = {
51
+ type: "element",
52
+ tagName: "li",
53
+ properties: { id: o + "fn-" + d },
54
+ children: e.wrap(c, !0)
55
+ };
56
+ e.patch(p, m), f.push(m);
57
+ }
58
+ if (f.length !== 0)
59
+ return {
60
+ type: "element",
61
+ tagName: "section",
62
+ properties: { dataFootnotes: !0, className: ["footnotes"] },
63
+ children: [
64
+ {
65
+ type: "element",
66
+ tagName: g,
67
+ properties: {
68
+ ...x(b),
69
+ id: "footnote-label"
70
+ },
71
+ children: [{ type: "text", value: y }]
72
+ },
73
+ { type: "text", value: `
74
+ ` },
75
+ {
76
+ type: "element",
77
+ tagName: "ol",
78
+ properties: {},
79
+ children: e.wrap(f, !0)
80
+ },
81
+ { type: "text", value: `
82
+ ` }
83
+ ]
84
+ };
85
+ }
86
+ export {
87
+ L as defaultFootnoteBackContent,
88
+ k as defaultFootnoteBackLabel,
89
+ C as footer
90
+ };
@@ -0,0 +1,12 @@
1
+ function p(e, r) {
2
+ const l = {
3
+ type: "element",
4
+ tagName: "blockquote",
5
+ properties: {},
6
+ children: e.wrap(e.all(r), !0)
7
+ };
8
+ return e.patch(r, l), e.applyData(r, l);
9
+ }
10
+ export {
11
+ p as blockquote
12
+ };
@@ -0,0 +1,8 @@
1
+ function a(e, t) {
2
+ const r = { type: "element", tagName: "br", properties: {}, children: [] };
3
+ return e.patch(t, r), [e.applyData(t, r), { type: "text", value: `
4
+ ` }];
5
+ }
6
+ export {
7
+ a as hardBreak
8
+ };
@@ -0,0 +1,15 @@
1
+ function r(a, e) {
2
+ const c = e.value ? e.value + `
3
+ ` : "", l = {}, p = e.lang ? e.lang.split(/\s+/) : [];
4
+ p.length > 0 && (l.className = ["language-" + p[0]]);
5
+ let t = {
6
+ type: "element",
7
+ tagName: "code",
8
+ properties: l,
9
+ children: [{ type: "text", value: c }]
10
+ };
11
+ return e.meta && (t.data = { meta: e.meta }), a.patch(e, t), t = a.applyData(e, t), t = { type: "element", tagName: "pre", properties: {}, children: [t] }, a.patch(e, t), t;
12
+ }
13
+ export {
14
+ r as code
15
+ };
@@ -0,0 +1,12 @@
1
+ function l(e, r) {
2
+ const t = {
3
+ type: "element",
4
+ tagName: "del",
5
+ properties: {},
6
+ children: e.all(r)
7
+ };
8
+ return e.patch(r, t), e.applyData(r, t);
9
+ }
10
+ export {
11
+ l as strikethrough
12
+ };
@@ -0,0 +1,12 @@
1
+ function t(e, p) {
2
+ const r = {
3
+ type: "element",
4
+ tagName: "em",
5
+ properties: {},
6
+ children: e.all(p)
7
+ };
8
+ return e.patch(p, r), e.applyData(p, r);
9
+ }
10
+ export {
11
+ t as emphasis
12
+ };
@@ -0,0 +1,28 @@
1
+ import { normalizeUri as s } from "../../../micromark-util-sanitize-uri/index.js";
2
+ function d(e, r) {
3
+ const i = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = String(r.identifier).toUpperCase(), f = s(t.toLowerCase()), l = e.footnoteOrder.indexOf(t);
4
+ let n, o = e.footnoteCounts.get(t);
5
+ o === void 0 ? (o = 0, e.footnoteOrder.push(t), n = e.footnoteOrder.length) : n = l + 1, o += 1, e.footnoteCounts.set(t, o);
6
+ const p = {
7
+ type: "element",
8
+ tagName: "a",
9
+ properties: {
10
+ href: "#" + i + "fn-" + f,
11
+ id: i + "fnref-" + f + (o > 1 ? "-" + o : ""),
12
+ dataFootnoteRef: !0,
13
+ ariaDescribedBy: ["footnote-label"]
14
+ },
15
+ children: [{ type: "text", value: String(n) }]
16
+ };
17
+ e.patch(r, p);
18
+ const c = {
19
+ type: "element",
20
+ tagName: "sup",
21
+ properties: {},
22
+ children: [p]
23
+ };
24
+ return e.patch(r, c), e.applyData(r, c);
25
+ }
26
+ export {
27
+ d as footnoteReference
28
+ };