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,193 @@
1
+ import { asciiAlphanumeric as g, asciiAlpha as A, markdownLineEndingOrSpace as w, unicodeWhitespace as h, unicodePunctuation as v, asciiControl as _ } from "../../micromark-util-character/index.js";
2
+ const y = {
3
+ tokenize: U,
4
+ partial: !0
5
+ }, D = {
6
+ tokenize: j,
7
+ partial: !0
8
+ }, L = {
9
+ tokenize: q,
10
+ partial: !0
11
+ }, S = {
12
+ tokenize: F,
13
+ partial: !0
14
+ }, H = {
15
+ tokenize: G,
16
+ partial: !0
17
+ }, W = {
18
+ name: "wwwAutolink",
19
+ tokenize: R,
20
+ previous: C
21
+ }, b = {
22
+ name: "protocolAutolink",
23
+ tokenize: B,
24
+ previous: E
25
+ }, f = {
26
+ name: "emailAutolink",
27
+ tokenize: O,
28
+ previous: T
29
+ }, s = {};
30
+ function K() {
31
+ return {
32
+ text: s
33
+ };
34
+ }
35
+ let k = 48;
36
+ for (; k < 123; )
37
+ s[k] = f, k++, k === 58 ? k = 65 : k === 91 && (k = 97);
38
+ s[43] = f;
39
+ s[45] = f;
40
+ s[46] = f;
41
+ s[95] = f;
42
+ s[72] = [f, b];
43
+ s[104] = [f, b];
44
+ s[87] = [f, W];
45
+ s[119] = [f, W];
46
+ function O(t, m, l) {
47
+ const u = this;
48
+ let a, e;
49
+ return n;
50
+ function n(i) {
51
+ return !x(i) || !T.call(u, u.previous) || P(u.events) ? l(i) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), r(i));
52
+ }
53
+ function r(i) {
54
+ return x(i) ? (t.consume(i), r) : i === 64 ? (t.consume(i), p) : l(i);
55
+ }
56
+ function p(i) {
57
+ return i === 46 ? t.check(H, z, o)(i) : i === 45 || i === 95 || g(i) ? (e = !0, t.consume(i), p) : z(i);
58
+ }
59
+ function o(i) {
60
+ return t.consume(i), a = !0, p;
61
+ }
62
+ function z(i) {
63
+ return e && a && A(u.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), m(i)) : l(i);
64
+ }
65
+ }
66
+ function R(t, m, l) {
67
+ const u = this;
68
+ return a;
69
+ function a(n) {
70
+ return n !== 87 && n !== 119 || !C.call(u, u.previous) || P(u.events) ? l(n) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(y, t.attempt(D, t.attempt(L, e), l), l)(n));
71
+ }
72
+ function e(n) {
73
+ return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), m(n);
74
+ }
75
+ }
76
+ function B(t, m, l) {
77
+ const u = this;
78
+ let a = "", e = !1;
79
+ return n;
80
+ function n(i) {
81
+ return (i === 72 || i === 104) && E.call(u, u.previous) && !P(u.events) ? (t.enter("literalAutolink"), t.enter("literalAutolinkHttp"), a += String.fromCodePoint(i), t.consume(i), r) : l(i);
82
+ }
83
+ function r(i) {
84
+ if (A(i) && a.length < 5)
85
+ return a += String.fromCodePoint(i), t.consume(i), r;
86
+ if (i === 58) {
87
+ const I = a.toLowerCase();
88
+ if (I === "http" || I === "https")
89
+ return t.consume(i), p;
90
+ }
91
+ return l(i);
92
+ }
93
+ function p(i) {
94
+ return i === 47 ? (t.consume(i), e ? o : (e = !0, p)) : l(i);
95
+ }
96
+ function o(i) {
97
+ return i === null || _(i) || w(i) || h(i) || v(i) ? l(i) : t.attempt(D, t.attempt(L, z), l)(i);
98
+ }
99
+ function z(i) {
100
+ return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), m(i);
101
+ }
102
+ }
103
+ function U(t, m, l) {
104
+ let u = 0;
105
+ return a;
106
+ function a(n) {
107
+ return (n === 87 || n === 119) && u < 3 ? (u++, t.consume(n), a) : n === 46 && u === 3 ? (t.consume(n), e) : l(n);
108
+ }
109
+ function e(n) {
110
+ return n === null ? l(n) : m(n);
111
+ }
112
+ }
113
+ function j(t, m, l) {
114
+ let u, a, e;
115
+ return n;
116
+ function n(o) {
117
+ return o === 46 || o === 95 ? t.check(S, p, r)(o) : o === null || w(o) || h(o) || o !== 45 && v(o) ? p(o) : (e = !0, t.consume(o), n);
118
+ }
119
+ function r(o) {
120
+ return o === 95 ? u = !0 : (a = u, u = void 0), t.consume(o), n;
121
+ }
122
+ function p(o) {
123
+ return a || u || !e ? l(o) : m(o);
124
+ }
125
+ }
126
+ function q(t, m) {
127
+ let l = 0, u = 0;
128
+ return a;
129
+ function a(n) {
130
+ return n === 40 ? (l++, t.consume(n), a) : n === 41 && u < l ? e(n) : n === 33 || n === 34 || n === 38 || n === 39 || n === 41 || n === 42 || n === 44 || n === 46 || n === 58 || n === 59 || n === 60 || n === 63 || n === 93 || n === 95 || n === 126 ? t.check(S, m, e)(n) : n === null || w(n) || h(n) ? m(n) : (t.consume(n), a);
131
+ }
132
+ function e(n) {
133
+ return n === 41 && u++, t.consume(n), a;
134
+ }
135
+ }
136
+ function F(t, m, l) {
137
+ return u;
138
+ function u(r) {
139
+ return r === 33 || r === 34 || r === 39 || r === 41 || r === 42 || r === 44 || r === 46 || r === 58 || r === 59 || r === 63 || r === 95 || r === 126 ? (t.consume(r), u) : r === 38 ? (t.consume(r), e) : r === 93 ? (t.consume(r), a) : (
140
+ // `<` is an end.
141
+ r === 60 || // So is whitespace.
142
+ r === null || w(r) || h(r) ? m(r) : l(r)
143
+ );
144
+ }
145
+ function a(r) {
146
+ return r === null || r === 40 || r === 91 || w(r) || h(r) ? m(r) : u(r);
147
+ }
148
+ function e(r) {
149
+ return A(r) ? n(r) : l(r);
150
+ }
151
+ function n(r) {
152
+ return r === 59 ? (t.consume(r), u) : A(r) ? (t.consume(r), n) : l(r);
153
+ }
154
+ }
155
+ function G(t, m, l) {
156
+ return u;
157
+ function u(e) {
158
+ return t.consume(e), a;
159
+ }
160
+ function a(e) {
161
+ return g(e) ? l(e) : m(e);
162
+ }
163
+ }
164
+ function C(t) {
165
+ return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || w(t);
166
+ }
167
+ function E(t) {
168
+ return !A(t);
169
+ }
170
+ function T(t) {
171
+ return !(t === 47 || x(t));
172
+ }
173
+ function x(t) {
174
+ return t === 43 || t === 45 || t === 46 || t === 95 || g(t);
175
+ }
176
+ function P(t) {
177
+ let m = t.length, l = !1;
178
+ for (; m--; ) {
179
+ const u = t[m][1];
180
+ if ((u.type === "labelLink" || u.type === "labelImage") && !u._balanced) {
181
+ l = !0;
182
+ break;
183
+ }
184
+ if (u._gfmAutolinkLiteralWalkedInto) {
185
+ l = !1;
186
+ break;
187
+ }
188
+ }
189
+ return t.length > 0 && !l && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), l;
190
+ }
191
+ export {
192
+ K as gfmAutolinkLiteral
193
+ };
@@ -0,0 +1,192 @@
1
+ import { factorySpace as b } from "../../micromark-factory-space/index.js";
2
+ import { markdownLineEndingOrSpace as s } from "../../micromark-util-character/index.js";
3
+ import { normalizeIdentifier as p } from "../../micromark-util-normalize-identifier/index.js";
4
+ import { blankLine as D } from "../../micromark-core-commonmark/lib/blank-line.js";
5
+ const x = {
6
+ tokenize: d,
7
+ partial: !0
8
+ };
9
+ function P() {
10
+ return {
11
+ document: {
12
+ 91: {
13
+ name: "gfmFootnoteDefinition",
14
+ tokenize: L,
15
+ continuation: {
16
+ tokenize: z
17
+ },
18
+ exit: c
19
+ }
20
+ },
21
+ text: {
22
+ 91: {
23
+ name: "gfmFootnoteCall",
24
+ tokenize: y
25
+ },
26
+ 93: {
27
+ name: "gfmPotentialFootnoteCall",
28
+ add: "after",
29
+ tokenize: M,
30
+ resolveTo: S
31
+ }
32
+ }
33
+ };
34
+ }
35
+ function M(t, r, n) {
36
+ const o = this;
37
+ let u = o.events.length;
38
+ const l = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
39
+ let a;
40
+ for (; u--; ) {
41
+ const m = o.events[u][1];
42
+ if (m.type === "labelImage") {
43
+ a = m;
44
+ break;
45
+ }
46
+ if (m.type === "gfmFootnoteCall" || m.type === "labelLink" || m.type === "label" || m.type === "image" || m.type === "link")
47
+ break;
48
+ }
49
+ return f;
50
+ function f(m) {
51
+ if (!a || !a._balanced)
52
+ return n(m);
53
+ const g = p(o.sliceSerialize({
54
+ start: a.end,
55
+ end: o.now()
56
+ }));
57
+ return g.codePointAt(0) !== 94 || !l.includes(g.slice(1)) ? n(m) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(m), t.exit("gfmFootnoteCallLabelMarker"), r(m));
58
+ }
59
+ }
60
+ function S(t, r) {
61
+ let n = t.length;
62
+ for (; n--; )
63
+ if (t[n][1].type === "labelImage" && t[n][0] === "enter") {
64
+ t[n][1];
65
+ break;
66
+ }
67
+ t[n + 1][1].type = "data", t[n + 3][1].type = "gfmFootnoteCallLabelMarker";
68
+ const o = {
69
+ type: "gfmFootnoteCall",
70
+ start: Object.assign({}, t[n + 3][1].start),
71
+ end: Object.assign({}, t[t.length - 1][1].end)
72
+ }, u = {
73
+ type: "gfmFootnoteCallMarker",
74
+ start: Object.assign({}, t[n + 3][1].end),
75
+ end: Object.assign({}, t[n + 3][1].end)
76
+ };
77
+ u.end.column++, u.end.offset++, u.end._bufferIndex++;
78
+ const l = {
79
+ type: "gfmFootnoteCallString",
80
+ start: Object.assign({}, u.end),
81
+ end: Object.assign({}, t[t.length - 1][1].start)
82
+ }, a = {
83
+ type: "chunkString",
84
+ contentType: "string",
85
+ start: Object.assign({}, l.start),
86
+ end: Object.assign({}, l.end)
87
+ }, f = [
88
+ // Take the `labelImageMarker` (now `data`, the `!`)
89
+ t[n + 1],
90
+ t[n + 2],
91
+ ["enter", o, r],
92
+ // The `[`
93
+ t[n + 3],
94
+ t[n + 4],
95
+ // The `^`.
96
+ ["enter", u, r],
97
+ ["exit", u, r],
98
+ // Everything in between.
99
+ ["enter", l, r],
100
+ ["enter", a, r],
101
+ ["exit", a, r],
102
+ ["exit", l, r],
103
+ // The ending (`]`, properly parsed and labelled).
104
+ t[t.length - 2],
105
+ t[t.length - 1],
106
+ ["exit", o, r]
107
+ ];
108
+ return t.splice(n, t.length - n + 1, ...f), t;
109
+ }
110
+ function y(t, r, n) {
111
+ const o = this, u = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
112
+ let l = 0, a;
113
+ return f;
114
+ function f(i) {
115
+ return t.enter("gfmFootnoteCall"), t.enter("gfmFootnoteCallLabelMarker"), t.consume(i), t.exit("gfmFootnoteCallLabelMarker"), m;
116
+ }
117
+ function m(i) {
118
+ return i !== 94 ? n(i) : (t.enter("gfmFootnoteCallMarker"), t.consume(i), t.exit("gfmFootnoteCallMarker"), t.enter("gfmFootnoteCallString"), t.enter("chunkString").contentType = "string", g);
119
+ }
120
+ function g(i) {
121
+ if (
122
+ // Too long.
123
+ l > 999 || // Closing brace with nothing.
124
+ i === 93 && !a || // Space or tab is not supported by GFM for some reason.
125
+ // `\n` and `[` not being supported makes sense.
126
+ i === null || i === 91 || s(i)
127
+ )
128
+ return n(i);
129
+ if (i === 93) {
130
+ t.exit("chunkString");
131
+ const k = t.exit("gfmFootnoteCallString");
132
+ return u.includes(p(o.sliceSerialize(k))) ? (t.enter("gfmFootnoteCallLabelMarker"), t.consume(i), t.exit("gfmFootnoteCallLabelMarker"), t.exit("gfmFootnoteCall"), r) : n(i);
133
+ }
134
+ return s(i) || (a = !0), l++, t.consume(i), i === 92 ? F : g;
135
+ }
136
+ function F(i) {
137
+ return i === 91 || i === 92 || i === 93 ? (t.consume(i), l++, g) : g(i);
138
+ }
139
+ }
140
+ function L(t, r, n) {
141
+ const o = this, u = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
142
+ let l, a = 0, f;
143
+ return m;
144
+ function m(e) {
145
+ return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionLabelMarker"), g;
146
+ }
147
+ function g(e) {
148
+ return e === 94 ? (t.enter("gfmFootnoteDefinitionMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionMarker"), t.enter("gfmFootnoteDefinitionLabelString"), t.enter("chunkString").contentType = "string", F) : n(e);
149
+ }
150
+ function F(e) {
151
+ if (
152
+ // Too long.
153
+ a > 999 || // Closing brace with nothing.
154
+ e === 93 && !f || // Space or tab is not supported by GFM for some reason.
155
+ // `\n` and `[` not being supported makes sense.
156
+ e === null || e === 91 || s(e)
157
+ )
158
+ return n(e);
159
+ if (e === 93) {
160
+ t.exit("chunkString");
161
+ const C = t.exit("gfmFootnoteDefinitionLabelString");
162
+ return l = p(o.sliceSerialize(C)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), k;
163
+ }
164
+ return s(e) || (f = !0), a++, t.consume(e), e === 92 ? i : F;
165
+ }
166
+ function i(e) {
167
+ return e === 91 || e === 92 || e === 93 ? (t.consume(e), a++, F) : F(e);
168
+ }
169
+ function k(e) {
170
+ return e === 58 ? (t.enter("definitionMarker"), t.consume(e), t.exit("definitionMarker"), u.includes(l) || u.push(l), b(t, h, "gfmFootnoteDefinitionWhitespace")) : n(e);
171
+ }
172
+ function h(e) {
173
+ return r(e);
174
+ }
175
+ }
176
+ function z(t, r, n) {
177
+ return t.check(D, r, t.attempt(x, r, n));
178
+ }
179
+ function c(t) {
180
+ t.exit("gfmFootnoteDefinition");
181
+ }
182
+ function d(t, r, n) {
183
+ const o = this;
184
+ return b(t, u, "gfmFootnoteDefinitionIndent", 5);
185
+ function u(l) {
186
+ const a = o.events[o.events.length - 1];
187
+ return a && a[1].type === "gfmFootnoteDefinitionIndent" && a[2].sliceSerialize(a[1], !0).length === 4 ? r(l) : n(l);
188
+ }
189
+ }
190
+ export {
191
+ P as gfmFootnote
192
+ };
@@ -0,0 +1,67 @@
1
+ import { splice as g } from "../../micromark-util-chunked/index.js";
2
+ import { classifyCharacter as k } from "../../micromark-util-classify-character/index.js";
3
+ import { resolveAll as d } from "../../micromark-util-resolve-all/index.js";
4
+ function j(m) {
5
+ let l = (m || {}).singleTilde;
6
+ const f = {
7
+ name: "strikethrough",
8
+ tokenize: S,
9
+ resolveAll: y
10
+ };
11
+ return l == null && (l = !0), {
12
+ text: {
13
+ 126: f
14
+ },
15
+ insideSpan: {
16
+ null: [f]
17
+ },
18
+ attentionMarkers: {
19
+ null: [126]
20
+ }
21
+ };
22
+ function y(r, i) {
23
+ let t = -1;
24
+ for (; ++t < r.length; )
25
+ if (r[t][0] === "enter" && r[t][1].type === "strikethroughSequenceTemporary" && r[t][1]._close) {
26
+ let e = t;
27
+ for (; e--; )
28
+ if (r[e][0] === "exit" && r[e][1].type === "strikethroughSequenceTemporary" && r[e][1]._open && // If the sizes are the same:
29
+ r[t][1].end.offset - r[t][1].start.offset === r[e][1].end.offset - r[e][1].start.offset) {
30
+ r[t][1].type = "strikethroughSequence", r[e][1].type = "strikethroughSequence";
31
+ const s = {
32
+ type: "strikethrough",
33
+ start: Object.assign({}, r[e][1].start),
34
+ end: Object.assign({}, r[t][1].end)
35
+ }, u = {
36
+ type: "strikethroughText",
37
+ start: Object.assign({}, r[e][1].end),
38
+ end: Object.assign({}, r[t][1].start)
39
+ }, o = [["enter", s, i], ["enter", r[e][1], i], ["exit", r[e][1], i], ["enter", u, i]], h = i.parser.constructs.insideSpan.null;
40
+ h && g(o, o.length, 0, d(h, r.slice(e + 1, t), i)), g(o, o.length, 0, [["exit", u, i], ["enter", r[t][1], i], ["exit", r[t][1], i], ["exit", s, i]]), g(r, e - 1, t - e + 3, o), t = e + o.length - 2;
41
+ break;
42
+ }
43
+ }
44
+ for (t = -1; ++t < r.length; )
45
+ r[t][1].type === "strikethroughSequenceTemporary" && (r[t][1].type = "data");
46
+ return r;
47
+ }
48
+ function S(r, i, t) {
49
+ const e = this.previous, s = this.events;
50
+ let u = 0;
51
+ return o;
52
+ function o(n) {
53
+ return e === 126 && s[s.length - 1][1].type !== "characterEscape" ? t(n) : (r.enter("strikethroughSequenceTemporary"), h(n));
54
+ }
55
+ function h(n) {
56
+ const a = k(e);
57
+ if (n === 126)
58
+ return u > 1 ? t(n) : (r.consume(n), u++, h);
59
+ if (u < 2 && !l) return t(n);
60
+ const c = r.exit("strikethroughSequenceTemporary"), p = k(n);
61
+ return c._open = !p || p === 2 && !!a, c._close = !a || a === 2 && !!p, i(n);
62
+ }
63
+ }
64
+ }
65
+ export {
66
+ j as gfmStrikethrough
67
+ };
@@ -0,0 +1,75 @@
1
+ class c {
2
+ /**
3
+ * Create a new edit map.
4
+ */
5
+ constructor() {
6
+ this.map = [], this.index = /* @__PURE__ */ new Map();
7
+ }
8
+ /**
9
+ * Create an edit: a remove and/or add at a certain place.
10
+ *
11
+ * @param {number} index
12
+ * Index at which to apply the edit.
13
+ * @param {number} remove
14
+ * Count of items to remove at the index.
15
+ * @param {Array<Event>} add
16
+ * Items to add at the index.
17
+ * @returns {undefined}
18
+ * Nothing.
19
+ */
20
+ add(i, t, s) {
21
+ l(this, i, t, s);
22
+ }
23
+ // To do: add this when moving to `micromark`.
24
+ // /**
25
+ // * Create an edit: but insert `add` before existing additions.
26
+ // *
27
+ // * @param {number} index
28
+ // * @param {number} remove
29
+ // * @param {Array<Event>} add
30
+ // * @returns {undefined}
31
+ // */
32
+ // addBefore(index, remove, add) {
33
+ // addImplementation(this, index, remove, add, true)
34
+ // }
35
+ /**
36
+ * Done, change the events.
37
+ *
38
+ * @param {Array<Event>} events
39
+ * List of events to apply the edits to.
40
+ * @returns {undefined}
41
+ * Nothing.
42
+ */
43
+ consume(i) {
44
+ if (this.map.sort(function(h, p) {
45
+ return h[0] - p[0];
46
+ }), this.map.length === 0)
47
+ return;
48
+ let t = this.map.length;
49
+ const s = [];
50
+ for (; t > 0; )
51
+ t -= 1, s.push(i.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), i.length = this.map[t][0];
52
+ s.push(i.slice()), i.length = 0;
53
+ let n = s.pop();
54
+ for (; n; ) {
55
+ for (const h of n)
56
+ i.push(h);
57
+ n = s.pop();
58
+ }
59
+ this.map.length = 0, this.index.clear();
60
+ }
61
+ }
62
+ function l(e, i, t, s) {
63
+ if (t === 0 && s.length === 0)
64
+ return;
65
+ const n = e.index.get(i);
66
+ if (n) {
67
+ n[1] += t, n[2].push(...s);
68
+ return;
69
+ }
70
+ const h = [i, t, s];
71
+ e.map.push(h), e.index.set(i, h);
72
+ }
73
+ export {
74
+ c as EditMap
75
+ };
@@ -0,0 +1,23 @@
1
+ function a(i, t) {
2
+ let r = !1;
3
+ const l = [];
4
+ for (; t < i.length; ) {
5
+ const e = i[t];
6
+ if (r) {
7
+ if (e[0] === "enter")
8
+ e[1].type === "tableContent" && l.push(i[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
9
+ else if (e[1].type === "tableContent") {
10
+ if (i[t - 1][1].type === "tableDelimiterMarker") {
11
+ const n = l.length - 1;
12
+ l[n] = l[n] === "left" ? "center" : "right";
13
+ }
14
+ } else if (e[1].type === "tableDelimiterRow")
15
+ break;
16
+ } else e[0] === "enter" && e[1].type === "tableDelimiterRow" && (r = !0);
17
+ t += 1;
18
+ }
19
+ return l;
20
+ }
21
+ export {
22
+ a as gfmTableAlign
23
+ };
@@ -0,0 +1,149 @@
1
+ import { factorySpace as v } from "../../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as j, markdownSpace as g, markdownLineEndingOrSpace as P } from "../../micromark-util-character/index.js";
3
+ import { EditMap as N } from "./edit-map.js";
4
+ import { gfmTableAlign as I } from "./infer.js";
5
+ function U() {
6
+ return {
7
+ flow: {
8
+ null: {
9
+ name: "table",
10
+ tokenize: V,
11
+ resolveAll: _
12
+ }
13
+ }
14
+ };
15
+ }
16
+ function V(t, i, n) {
17
+ const a = this;
18
+ let s = 0, r = 0, l;
19
+ return D;
20
+ function D(e) {
21
+ let R = a.events.length - 1;
22
+ for (; R > -1; ) {
23
+ const {
24
+ type: z
25
+ } = a.events[R][1];
26
+ if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
27
+ z === "linePrefix")
28
+ R--;
29
+ else
30
+ break;
31
+ }
32
+ const M = R > -1 ? a.events[R][1].type : null, S = M === "tableHead" || M === "tableRow" ? H : p;
33
+ return S === H && a.parser.lazy[a.now().line] ? n(e) : S(e);
34
+ }
35
+ function p(e) {
36
+ return t.enter("tableHead"), t.enter("tableRow"), f(e);
37
+ }
38
+ function f(e) {
39
+ return e === 124 || (l = !0, r += 1), d(e);
40
+ }
41
+ function d(e) {
42
+ return e === null ? n(e) : j(e) ? r > 1 ? (r = 0, a.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(e), t.exit("lineEnding"), w) : n(e) : g(e) ? v(t, d, "whitespace")(e) : (r += 1, l && (l = !1, s += 1), e === 124 ? (t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), l = !0, d) : (t.enter("data"), b(e)));
43
+ }
44
+ function b(e) {
45
+ return e === null || e === 124 || P(e) ? (t.exit("data"), d(e)) : (t.consume(e), e === 92 ? m : b);
46
+ }
47
+ function m(e) {
48
+ return e === 92 || e === 124 ? (t.consume(e), b) : b(e);
49
+ }
50
+ function w(e) {
51
+ return a.interrupt = !1, a.parser.lazy[a.now().line] ? n(e) : (t.enter("tableDelimiterRow"), l = !1, g(e) ? v(t, u, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(e) : u(e));
52
+ }
53
+ function u(e) {
54
+ return e === 45 || e === 58 ? A(e) : e === 124 ? (l = !0, t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), T) : y(e);
55
+ }
56
+ function T(e) {
57
+ return g(e) ? v(t, A, "whitespace")(e) : A(e);
58
+ }
59
+ function A(e) {
60
+ return e === 58 ? (r += 1, l = !0, t.enter("tableDelimiterMarker"), t.consume(e), t.exit("tableDelimiterMarker"), B) : e === 45 ? (r += 1, B(e)) : e === null || j(e) ? E(e) : y(e);
61
+ }
62
+ function B(e) {
63
+ return e === 45 ? (t.enter("tableDelimiterFiller"), F(e)) : y(e);
64
+ }
65
+ function F(e) {
66
+ return e === 45 ? (t.consume(e), F) : e === 58 ? (l = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(e), t.exit("tableDelimiterMarker"), C) : (t.exit("tableDelimiterFiller"), C(e));
67
+ }
68
+ function C(e) {
69
+ return g(e) ? v(t, E, "whitespace")(e) : E(e);
70
+ }
71
+ function E(e) {
72
+ return e === 124 ? u(e) : e === null || j(e) ? !l || s !== r ? y(e) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), i(e)) : y(e);
73
+ }
74
+ function y(e) {
75
+ return n(e);
76
+ }
77
+ function H(e) {
78
+ return t.enter("tableRow"), o(e);
79
+ }
80
+ function o(e) {
81
+ return e === 124 ? (t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), o) : e === null || j(e) ? (t.exit("tableRow"), i(e)) : g(e) ? v(t, o, "whitespace")(e) : (t.enter("data"), O(e));
82
+ }
83
+ function O(e) {
84
+ return e === null || e === 124 || P(e) ? (t.exit("data"), o(e)) : (t.consume(e), e === 92 ? L : O);
85
+ }
86
+ function L(e) {
87
+ return e === 92 || e === 124 ? (t.consume(e), O) : O(e);
88
+ }
89
+ }
90
+ function _(t, i) {
91
+ let n = -1, a = !0, s = 0, r = [0, 0, 0, 0], l = [0, 0, 0, 0], D = !1, p = 0, f, d, b;
92
+ const m = new N();
93
+ for (; ++n < t.length; ) {
94
+ const w = t[n], u = w[1];
95
+ w[0] === "enter" ? u.type === "tableHead" ? (D = !1, p !== 0 && (x(m, i, p, f, d), d = void 0, p = 0), f = {
96
+ type: "table",
97
+ start: Object.assign({}, u.start),
98
+ // Note: correct end is set later.
99
+ end: Object.assign({}, u.end)
100
+ }, m.add(n, 0, [["enter", f, i]])) : u.type === "tableRow" || u.type === "tableDelimiterRow" ? (a = !0, b = void 0, r = [0, 0, 0, 0], l = [0, n + 1, 0, 0], D && (D = !1, d = {
101
+ type: "tableBody",
102
+ start: Object.assign({}, u.start),
103
+ // Note: correct end is set later.
104
+ end: Object.assign({}, u.end)
105
+ }, m.add(n, 0, [["enter", d, i]])), s = u.type === "tableDelimiterRow" ? 2 : d ? 3 : 1) : s && (u.type === "data" || u.type === "tableDelimiterMarker" || u.type === "tableDelimiterFiller") ? (a = !1, l[2] === 0 && (r[1] !== 0 && (l[0] = l[1], b = k(m, i, r, s, void 0, b), r = [0, 0, 0, 0]), l[2] = n)) : u.type === "tableCellDivider" && (a ? a = !1 : (r[1] !== 0 && (l[0] = l[1], b = k(m, i, r, s, void 0, b)), r = l, l = [r[1], n, 0, 0])) : u.type === "tableHead" ? (D = !0, p = n) : u.type === "tableRow" || u.type === "tableDelimiterRow" ? (p = n, r[1] !== 0 ? (l[0] = l[1], b = k(m, i, r, s, n, b)) : l[1] !== 0 && (b = k(m, i, l, s, n, b)), s = 0) : s && (u.type === "data" || u.type === "tableDelimiterMarker" || u.type === "tableDelimiterFiller") && (l[3] = n);
106
+ }
107
+ for (p !== 0 && x(m, i, p, f, d), m.consume(i.events), n = -1; ++n < i.events.length; ) {
108
+ const w = i.events[n];
109
+ w[0] === "enter" && w[1].type === "table" && (w[1]._align = I(i.events, n));
110
+ }
111
+ return t;
112
+ }
113
+ function k(t, i, n, a, s, r) {
114
+ const l = a === 1 ? "tableHeader" : a === 2 ? "tableDelimiter" : "tableData", D = "tableContent";
115
+ n[0] !== 0 && (r.end = Object.assign({}, h(i.events, n[0])), t.add(n[0], 0, [["exit", r, i]]));
116
+ const p = h(i.events, n[1]);
117
+ if (r = {
118
+ type: l,
119
+ start: Object.assign({}, p),
120
+ // Note: correct end is set later.
121
+ end: Object.assign({}, p)
122
+ }, t.add(n[1], 0, [["enter", r, i]]), n[2] !== 0) {
123
+ const f = h(i.events, n[2]), d = h(i.events, n[3]), b = {
124
+ type: D,
125
+ start: Object.assign({}, f),
126
+ end: Object.assign({}, d)
127
+ };
128
+ if (t.add(n[2], 0, [["enter", b, i]]), a !== 2) {
129
+ const m = i.events[n[2]], w = i.events[n[3]];
130
+ if (m[1].end = Object.assign({}, w[1].end), m[1].type = "chunkText", m[1].contentType = "text", n[3] > n[2] + 1) {
131
+ const u = n[2] + 1, T = n[3] - n[2] - 1;
132
+ t.add(u, T, []);
133
+ }
134
+ }
135
+ t.add(n[3] + 1, 0, [["exit", b, i]]);
136
+ }
137
+ return s !== void 0 && (r.end = Object.assign({}, h(i.events, s)), t.add(s, 0, [["exit", r, i]]), r = void 0), r;
138
+ }
139
+ function x(t, i, n, a, s) {
140
+ const r = [], l = h(i.events, n);
141
+ s && (s.end = Object.assign({}, l), r.push(["exit", s, i])), a.end = Object.assign({}, l), r.push(["exit", a, i]), t.add(n + 1, 0, r);
142
+ }
143
+ function h(t, i) {
144
+ const n = t[i], a = n[0] === "enter" ? "start" : "end";
145
+ return n[1][a];
146
+ }
147
+ export {
148
+ U as gfmTable
149
+ };