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,225 @@
1
+ import { markdownLineEnding as V } from "../../micromark-util-character/index.js";
2
+ import { push as W, splice as X } from "../../micromark-util-chunked/index.js";
3
+ import { resolveAll as Y } from "../../micromark-util-resolve-all/index.js";
4
+ function re(d, l, u) {
5
+ let n = {
6
+ _bufferIndex: -1,
7
+ _index: 0,
8
+ line: u && u.line || 1,
9
+ column: u && u.column || 1,
10
+ offset: u && u.offset || 0
11
+ };
12
+ const f = {}, o = [];
13
+ let r = [], h = [];
14
+ const S = {
15
+ attempt: m(J),
16
+ check: m(P),
17
+ consume: D,
18
+ enter: G,
19
+ exit: H,
20
+ interrupt: m(P, {
21
+ interrupt: !0
22
+ })
23
+ }, t = {
24
+ code: null,
25
+ containerState: {},
26
+ defineSkip: R,
27
+ events: [],
28
+ now: v,
29
+ parser: d,
30
+ previous: null,
31
+ sliceSerialize: M,
32
+ sliceStream: j,
33
+ write: L
34
+ };
35
+ let O = l.tokenize.call(t, S);
36
+ return l.resolveAll && o.push(l), t;
37
+ function L(e) {
38
+ return r = W(r, e), q(), r[r.length - 1] !== null ? [] : (T(l, 0), t.events = Y(o, t.events, t), t.events);
39
+ }
40
+ function M(e, s) {
41
+ return $(j(e), s);
42
+ }
43
+ function j(e) {
44
+ return Z(r, e);
45
+ }
46
+ function v() {
47
+ const {
48
+ _bufferIndex: e,
49
+ _index: s,
50
+ line: c,
51
+ column: a,
52
+ offset: p
53
+ } = n;
54
+ return {
55
+ _bufferIndex: e,
56
+ _index: s,
57
+ line: c,
58
+ column: a,
59
+ offset: p
60
+ };
61
+ }
62
+ function R(e) {
63
+ f[e.line] = e.column, g();
64
+ }
65
+ function q() {
66
+ for (; n._index < r.length; ) {
67
+ const e = r[n._index];
68
+ if (typeof e == "string") {
69
+ const s = n._index;
70
+ for (n._bufferIndex < 0 && (n._bufferIndex = 0); n._index === s && n._bufferIndex < e.length; )
71
+ z(e.charCodeAt(n._bufferIndex));
72
+ } else
73
+ z(e);
74
+ }
75
+ }
76
+ function z(e) {
77
+ O = O(e);
78
+ }
79
+ function D(e) {
80
+ V(e) ? (n.line++, n.column = 1, n.offset += e === -3 ? 2 : 1, g()) : e !== -1 && (n.column++, n.offset++), n._bufferIndex < 0 ? n._index++ : (n._bufferIndex++, n._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
81
+ // strings.
82
+ /** @type {string} */
83
+ r[n._index].length && (n._bufferIndex = -1, n._index++)), t.previous = e;
84
+ }
85
+ function G(e, s) {
86
+ const c = s || {};
87
+ return c.type = e, c.start = v(), t.events.push(["enter", c, t]), h.push(c), c;
88
+ }
89
+ function H(e) {
90
+ const s = h.pop();
91
+ return s.end = v(), t.events.push(["exit", s, t]), s;
92
+ }
93
+ function J(e, s) {
94
+ T(e, s.from);
95
+ }
96
+ function P(e, s) {
97
+ s.restore();
98
+ }
99
+ function m(e, s) {
100
+ return c;
101
+ function c(a, p, _) {
102
+ let C, k, B, y;
103
+ return Array.isArray(a) ? (
104
+ /* c8 ignore next 1 */
105
+ A(a)
106
+ ) : "tokenize" in a ? (
107
+ // Looks like a construct.
108
+ A([
109
+ /** @type {Construct} */
110
+ a
111
+ ])
112
+ ) : N(a);
113
+ function N(i) {
114
+ return w;
115
+ function w(x) {
116
+ const b = x !== null && i[x], I = x !== null && i.null, U = [
117
+ // To do: add more extension tests.
118
+ /* c8 ignore next 2 */
119
+ ...Array.isArray(b) ? b : b ? [b] : [],
120
+ ...Array.isArray(I) ? I : I ? [I] : []
121
+ ];
122
+ return A(U)(x);
123
+ }
124
+ }
125
+ function A(i) {
126
+ return C = i, k = 0, i.length === 0 ? _ : E(i[k]);
127
+ }
128
+ function E(i) {
129
+ return w;
130
+ function w(x) {
131
+ return y = K(), B = i, i.partial || (t.currentConstruct = i), i.name && t.parser.constructs.disable.null.includes(i.name) ? F() : i.tokenize.call(
132
+ // If we do have fields, create an object w/ `context` as its
133
+ // prototype.
134
+ // This allows a “live binding”, which is needed for `interrupt`.
135
+ s ? Object.assign(Object.create(t), s) : t,
136
+ S,
137
+ Q,
138
+ F
139
+ )(x);
140
+ }
141
+ }
142
+ function Q(i) {
143
+ return e(B, y), p;
144
+ }
145
+ function F(i) {
146
+ return y.restore(), ++k < C.length ? E(C[k]) : _;
147
+ }
148
+ }
149
+ }
150
+ function T(e, s) {
151
+ e.resolveAll && !o.includes(e) && o.push(e), e.resolve && X(t.events, s, t.events.length - s, e.resolve(t.events.slice(s), t)), e.resolveTo && (t.events = e.resolveTo(t.events, t));
152
+ }
153
+ function K() {
154
+ const e = v(), s = t.previous, c = t.currentConstruct, a = t.events.length, p = Array.from(h);
155
+ return {
156
+ from: a,
157
+ restore: _
158
+ };
159
+ function _() {
160
+ n = e, t.previous = s, t.currentConstruct = c, t.events.length = a, h = p, g();
161
+ }
162
+ }
163
+ function g() {
164
+ n.line in f && n.column < 2 && (n.column = f[n.line], n.offset += f[n.line] - 1);
165
+ }
166
+ }
167
+ function Z(d, l) {
168
+ const u = l.start._index, n = l.start._bufferIndex, f = l.end._index, o = l.end._bufferIndex;
169
+ let r;
170
+ if (u === f)
171
+ r = [d[u].slice(n, o)];
172
+ else {
173
+ if (r = d.slice(u, f), n > -1) {
174
+ const h = r[0];
175
+ typeof h == "string" ? r[0] = h.slice(n) : r.shift();
176
+ }
177
+ o > 0 && r.push(d[f].slice(0, o));
178
+ }
179
+ return r;
180
+ }
181
+ function $(d, l) {
182
+ let u = -1;
183
+ const n = [];
184
+ let f;
185
+ for (; ++u < d.length; ) {
186
+ const o = d[u];
187
+ let r;
188
+ if (typeof o == "string")
189
+ r = o;
190
+ else
191
+ switch (o) {
192
+ case -5: {
193
+ r = "\r";
194
+ break;
195
+ }
196
+ case -4: {
197
+ r = `
198
+ `;
199
+ break;
200
+ }
201
+ case -3: {
202
+ r = `\r
203
+ `;
204
+ break;
205
+ }
206
+ case -2: {
207
+ r = l ? " " : " ";
208
+ break;
209
+ }
210
+ case -1: {
211
+ if (!l && f)
212
+ continue;
213
+ r = " ";
214
+ break;
215
+ }
216
+ default:
217
+ r = String.fromCharCode(o);
218
+ }
219
+ f = o === -2, n.push(r);
220
+ }
221
+ return n.join("");
222
+ }
223
+ export {
224
+ re as createTokenizer
225
+ };
@@ -0,0 +1,37 @@
1
+ import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as m } from "../../../micromark-util-character/index.js";
3
+ const g = {
4
+ tokenize: x
5
+ };
6
+ function x(n) {
7
+ const i = n.attempt(this.parser.constructs.contentInitial, e, p);
8
+ let r;
9
+ return i;
10
+ function e(t) {
11
+ if (t === null) {
12
+ n.consume(t);
13
+ return;
14
+ }
15
+ return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), l(n, i, "linePrefix");
16
+ }
17
+ function p(t) {
18
+ return n.enter("paragraph"), u(t);
19
+ }
20
+ function u(t) {
21
+ const a = n.enter("chunkText", {
22
+ contentType: "text",
23
+ previous: r
24
+ });
25
+ return r && (r.next = a), r = a, o(t);
26
+ }
27
+ function o(t) {
28
+ if (t === null) {
29
+ n.exit("chunkText"), n.exit("paragraph"), n.consume(t);
30
+ return;
31
+ }
32
+ return m(t) ? (n.consume(t), n.exit("chunkText"), u) : (n.consume(t), o);
33
+ }
34
+ }
35
+ export {
36
+ g as content
37
+ };
@@ -0,0 +1,128 @@
1
+ import { factorySpace as I } from "../../../micromark-factory-space/index.js";
2
+ import { markdownLineEnding as N } from "../../../micromark-util-character/index.js";
3
+ import { EditMap as y } from "../../../micromark-util-edit-map/index.js";
4
+ const L = {
5
+ tokenize: T
6
+ }, z = {
7
+ tokenize: M
8
+ };
9
+ function T(i) {
10
+ const n = this, l = [];
11
+ let s = 0, t, d, w;
12
+ return h;
13
+ function h(e) {
14
+ if (s < l.length) {
15
+ const r = l[s];
16
+ return n.containerState = r[1], i.attempt(r[0].continuation, B, p)(e);
17
+ }
18
+ return p(e);
19
+ }
20
+ function B(e) {
21
+ if (s++, n.containerState._closeFlow) {
22
+ n.containerState._closeFlow = void 0, t && x();
23
+ const r = n.events.length;
24
+ let u = r, o;
25
+ for (; u--; )
26
+ if (n.events[u][0] === "exit" && n.events[u][1].type === "chunkFlow") {
27
+ o = n.events[u][1].end;
28
+ break;
29
+ }
30
+ f(s);
31
+ let c = r;
32
+ for (; c < n.events.length; )
33
+ n.events[c][1].end = {
34
+ ...o
35
+ }, c++;
36
+ const a = new y();
37
+ return a.add(u + 1, 0, n.events.slice(r)), a.add(r, c - r, []), a.consume(n.events), p(e);
38
+ }
39
+ return h(e);
40
+ }
41
+ function p(e) {
42
+ if (s === l.length) {
43
+ if (!t)
44
+ return m(e);
45
+ if (t.currentConstruct && t.currentConstruct.concrete)
46
+ return v(e);
47
+ n.interrupt = !!(t.currentConstruct && !t._gfmTableDynamicInterruptHack);
48
+ }
49
+ return n.containerState = {}, i.check(z, _, b)(e);
50
+ }
51
+ function _(e) {
52
+ return t && x(), f(s), m(e);
53
+ }
54
+ function b(e) {
55
+ return n.parser.lazy[n.now().line] = s !== l.length, w = n.now().offset, v(e);
56
+ }
57
+ function m(e) {
58
+ return n.containerState = {}, i.attempt(z, E, v)(e);
59
+ }
60
+ function E(e) {
61
+ return s++, l.push([n.currentConstruct, n.containerState]), m(e);
62
+ }
63
+ function v(e) {
64
+ if (e === null) {
65
+ t && x(), f(0), i.consume(e);
66
+ return;
67
+ }
68
+ return t = t || n.parser.flow(n.now()), i.enter("chunkFlow", {
69
+ _tokenizer: t,
70
+ contentType: "flow",
71
+ previous: d
72
+ }), k(e);
73
+ }
74
+ function k(e) {
75
+ if (e === null) {
76
+ S(i.exit("chunkFlow"), !0), f(0), i.consume(e);
77
+ return;
78
+ }
79
+ return N(e) ? (i.consume(e), S(i.exit("chunkFlow")), s = 0, n.interrupt = void 0, h) : (i.consume(e), k);
80
+ }
81
+ function S(e, r) {
82
+ const u = n.sliceStream(e);
83
+ if (r && u.push(null), e.previous = d, d && (d.next = e), d = e, t.defineSkip(e.start), t.write(u), n.parser.lazy[e.start.line]) {
84
+ let o = t.events.length;
85
+ for (; o--; )
86
+ if (
87
+ // The token starts before the line ending…
88
+ t.events[o][1].start.offset < w && // …and either is not ended yet…
89
+ (!t.events[o][1].end || // …or ends after it.
90
+ t.events[o][1].end.offset > w)
91
+ )
92
+ return;
93
+ const c = n.events.length;
94
+ let a = c, g, F;
95
+ for (; a--; )
96
+ if (n.events[a][0] === "exit" && n.events[a][1].type === "chunkFlow") {
97
+ if (g) {
98
+ F = n.events[a][1].end;
99
+ break;
100
+ }
101
+ g = !0;
102
+ }
103
+ for (f(s), o = c; o < n.events.length; )
104
+ n.events[o][1].end = {
105
+ ...F
106
+ }, o++;
107
+ const C = new y();
108
+ C.add(a + 1, 0, n.events.slice(c)), C.add(c, o - c, []), C.consume(n.events);
109
+ }
110
+ }
111
+ function f(e) {
112
+ let r = l.length;
113
+ for (; r-- > e; ) {
114
+ const u = l[r];
115
+ n.containerState = u[1], u[0].exit.call(n, i);
116
+ }
117
+ l.length = e;
118
+ }
119
+ function x() {
120
+ t.write([null]), d = void 0, t = void 0, n.containerState._closeFlow = void 0;
121
+ }
122
+ }
123
+ function M(i, n, l) {
124
+ return I(i, i.attempt(this.parser.constructs.document, n, l), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
125
+ }
126
+ export {
127
+ L as document
128
+ };
@@ -0,0 +1,33 @@
1
+ import { factorySpace as l } from "../../../micromark-factory-space/index.js";
2
+ import { blankLine as a } from "../../../micromark-core-commonmark/lib/blank-line.js";
3
+ import { content as e } from "../../../micromark-core-commonmark/lib/content.js";
4
+ const d = {
5
+ tokenize: m
6
+ };
7
+ function m(n) {
8
+ const o = this, i = n.attempt(
9
+ // Try to parse a blank line.
10
+ a,
11
+ u,
12
+ // Try to parse initial flow (essentially, only code).
13
+ n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
14
+ );
15
+ return i;
16
+ function u(t) {
17
+ if (t === null) {
18
+ n.consume(t);
19
+ return;
20
+ }
21
+ return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
22
+ }
23
+ function r(t) {
24
+ if (t === null) {
25
+ n.consume(t);
26
+ return;
27
+ }
28
+ return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
29
+ }
30
+ }
31
+ export {
32
+ d as flow
33
+ };
@@ -0,0 +1,98 @@
1
+ import { EditMap as g } from "../../../micromark-util-edit-map/index.js";
2
+ const y = {
3
+ resolveAll: p()
4
+ }, b = x("string"), T = x("text");
5
+ function x(i) {
6
+ return {
7
+ resolveAll: p(i === "text" ? m : void 0),
8
+ tokenize: o
9
+ };
10
+ function o(n) {
11
+ const r = this, t = this.parser.constructs[i], l = n.attempt(t, f, u);
12
+ return f;
13
+ function f(e) {
14
+ return s(e) ? l(e) : u(e);
15
+ }
16
+ function u(e) {
17
+ if (e === null) {
18
+ n.consume(e);
19
+ return;
20
+ }
21
+ return n.enter("data"), n.consume(e), a;
22
+ }
23
+ function a(e) {
24
+ return s(e) ? (n.exit("data"), l(e)) : (n.consume(e), a);
25
+ }
26
+ function s(e) {
27
+ if (e === null)
28
+ return !0;
29
+ const d = t[e];
30
+ let c = -1;
31
+ if (d)
32
+ for (; ++c < d.length; ) {
33
+ const h = d[c];
34
+ if (!h.previous || h.previous.call(r, r.previous))
35
+ return !0;
36
+ }
37
+ return !1;
38
+ }
39
+ }
40
+ }
41
+ function p(i) {
42
+ return o;
43
+ function o(n, r) {
44
+ let t = -1, l;
45
+ for (; ++t <= n.length; )
46
+ l === void 0 ? n[t] && n[t][1].type === "data" && (l = t, t++) : (!n[t] || n[t][1].type !== "data") && (t !== l + 2 && (n[l][1].end = n[t - 1][1].end, n.splice(l + 2, t - l - 2), t = l + 2), l = void 0);
47
+ return i ? i(n, r) : n;
48
+ }
49
+ }
50
+ function m(i, o) {
51
+ const n = new g();
52
+ let r = 0;
53
+ for (; ++r <= i.length; )
54
+ if ((r === i.length || i[r][1].type === "lineEnding") && i[r - 1][1].type === "data") {
55
+ const t = i[r - 1][1], l = o.sliceStream(t);
56
+ let f = l.length, u = -1, a = 0, s;
57
+ for (; f--; ) {
58
+ const e = l[f];
59
+ if (typeof e == "string") {
60
+ for (u = e.length; e.charCodeAt(u - 1) === 32; )
61
+ a++, u--;
62
+ if (u)
63
+ break;
64
+ u = -1;
65
+ } else if (e === -2)
66
+ s = !0, a++;
67
+ else if (e !== -1) {
68
+ f++;
69
+ break;
70
+ }
71
+ }
72
+ if (o._contentTypeTextTrailing && r === i.length && (a = 0), a) {
73
+ const e = {
74
+ type: r === i.length || s || a < 2 ? "lineSuffix" : "hardBreakTrailing",
75
+ start: {
76
+ _bufferIndex: f ? u : t.start._bufferIndex + u,
77
+ _index: t.start._index + f,
78
+ line: t.end.line,
79
+ column: t.end.column - a,
80
+ offset: t.end.offset - a
81
+ },
82
+ end: {
83
+ ...t.end
84
+ }
85
+ };
86
+ t.end = {
87
+ ...e.start
88
+ }, t.start.offset === t.end.offset ? Object.assign(t, e) : n.add(r, 0, [["enter", e, o], ["exit", e, o]]);
89
+ }
90
+ r++;
91
+ }
92
+ return n.consume(i), i;
93
+ }
94
+ export {
95
+ y as resolver,
96
+ b as string,
97
+ T as text
98
+ };
@@ -0,0 +1,32 @@
1
+ import { combineExtensions as c } from "../../micromark-util-combine-extensions/index.js";
2
+ import { content as i } from "./initialize/content.js";
3
+ import { document as m } from "./initialize/document.js";
4
+ import { flow as f } from "./initialize/flow.js";
5
+ import { text as u, string as p } from "./initialize/text.js";
6
+ import * as a from "./constructs.js";
7
+ import { createTokenizer as x } from "./create-tokenizer.js";
8
+ function y(r) {
9
+ const o = {
10
+ constructs: (
11
+ /** @type {FullNormalizedExtension} */
12
+ c([a, ...(r || {}).extensions || []])
13
+ ),
14
+ content: t(i),
15
+ defined: [],
16
+ document: t(m),
17
+ flow: t(f),
18
+ lazy: {},
19
+ string: t(p),
20
+ text: t(u)
21
+ };
22
+ return o;
23
+ function t(n) {
24
+ return e;
25
+ function e(s) {
26
+ return x(o, n, s);
27
+ }
28
+ }
29
+ }
30
+ export {
31
+ y as parse
32
+ };
@@ -0,0 +1,9 @@
1
+ import { subtokenize as r } from "../../micromark-util-subtokenize/index.js";
2
+ function e(o) {
3
+ for (; !r(o); )
4
+ ;
5
+ return o;
6
+ }
7
+ export {
8
+ e as postprocess
9
+ };
@@ -0,0 +1,44 @@
1
+ const f = /[\0\t\n\r]/g;
2
+ function x() {
3
+ let s = 1, c = "", d = !0, i;
4
+ return u;
5
+ function u(e, p, a) {
6
+ e = c + (typeof e == "string" ? e.toString() : new TextDecoder(p || void 0).decode(e));
7
+ const t = [];
8
+ let n = 0;
9
+ for (c = "", d && (e.charCodeAt(0) === 65279 && n++, d = void 0); n < e.length; ) {
10
+ f.lastIndex = n;
11
+ const o = f.exec(e), r = o && o.index !== void 0 ? o.index : e.length, h = e.charCodeAt(r);
12
+ if (!o) {
13
+ c = e.slice(n);
14
+ break;
15
+ }
16
+ if (h === 10 && n === r && i)
17
+ t.push(-3), i = void 0;
18
+ else
19
+ switch (i && (t.push(-5), i = void 0), n < r && (t.push(e.slice(n, r)), s += r - n), h) {
20
+ case 0: {
21
+ t.push(65533), s++;
22
+ break;
23
+ }
24
+ case 9: {
25
+ const l = Math.ceil(s / 4) * 4;
26
+ for (t.push(-2); s++ < l; )
27
+ t.push(-1);
28
+ break;
29
+ }
30
+ case 10: {
31
+ t.push(-4), s = 1;
32
+ break;
33
+ }
34
+ default:
35
+ i = !0, s = 1;
36
+ }
37
+ n = r + 1;
38
+ }
39
+ return a && (i && t.push(-5), c && t.push(c), t.push(null)), t;
40
+ }
41
+ }
42
+ export {
43
+ x as preprocess
44
+ };
@@ -0,0 +1,87 @@
1
+ import { push as p, splice as S } from "../../micromark-util-chunked/index.js";
2
+ import { classifyCharacter as h } from "../../micromark-util-classify-character/index.js";
3
+ import { resolveAll as q } from "../../micromark-util-resolve-all/index.js";
4
+ const z = {
5
+ name: "attention",
6
+ resolveAll: g,
7
+ tokenize: y
8
+ };
9
+ function g(t, n) {
10
+ let e = -1, o;
11
+ for (; ++e < t.length; )
12
+ if (t[e][0] === "enter" && t[e][1].type === "attentionSequence" && t[e][1]._close) {
13
+ let r = e;
14
+ for (; r--; )
15
+ if (t[r][0] === "exit" && t[r][1].type === "attentionSequence" && t[r][1]._open && // If the markers are the same:
16
+ n.sliceSerialize(t[r][1]).charCodeAt(0) === n.sliceSerialize(t[e][1]).charCodeAt(0)) {
17
+ if ((t[r][1]._close || t[e][1]._open) && (t[e][1].end.offset - t[e][1].start.offset) % 3 && !((t[r][1].end.offset - t[r][1].start.offset + t[e][1].end.offset - t[e][1].start.offset) % 3))
18
+ continue;
19
+ const a = t[r][1].end.offset - t[r][1].start.offset > 1 && t[e][1].end.offset - t[e][1].start.offset > 1 ? 2 : 1, d = {
20
+ ...t[r][1].end
21
+ }, c = {
22
+ ...t[e][1].start
23
+ };
24
+ m(d, -a), m(c, a);
25
+ const i = {
26
+ type: a > 1 ? "strongSequence" : "emphasisSequence",
27
+ start: d,
28
+ end: {
29
+ ...t[r][1].end
30
+ }
31
+ }, s = {
32
+ type: a > 1 ? "strongSequence" : "emphasisSequence",
33
+ start: {
34
+ ...t[e][1].start
35
+ },
36
+ end: c
37
+ }, f = {
38
+ type: a > 1 ? "strongText" : "emphasisText",
39
+ start: {
40
+ ...t[r][1].end
41
+ },
42
+ end: {
43
+ ...t[e][1].start
44
+ }
45
+ }, l = {
46
+ type: a > 1 ? "strong" : "emphasis",
47
+ start: {
48
+ ...i.start
49
+ },
50
+ end: {
51
+ ...s.end
52
+ }
53
+ };
54
+ t[r][1].end = {
55
+ ...i.start
56
+ }, t[e][1].start = {
57
+ ...s.end
58
+ }, o = [], t[r][1].end.offset - t[r][1].start.offset && (o = p(o, [["enter", t[r][1], n], ["exit", t[r][1], n]])), o = p(o, [["enter", l, n], ["enter", i, n], ["exit", i, n], ["enter", f, n]]), o = p(o, q(n.parser.constructs.insideSpan.null, t.slice(r + 1, e), n)), o = p(o, [["exit", f, n], ["enter", s, n], ["exit", s, n], ["exit", l, n]]);
59
+ let u = 0;
60
+ t[e][1].end.offset - t[e][1].start.offset && (u = 2, o = p(o, [["enter", t[e][1], n], ["exit", t[e][1], n]])), S(t, r - 1, e - r + 3, o), e = r + o.length - u - 2;
61
+ break;
62
+ }
63
+ }
64
+ for (e = -1; ++e < t.length; )
65
+ t[e][1].type === "attentionSequence" && (t[e][1].type = "data");
66
+ return t;
67
+ }
68
+ function y(t, n) {
69
+ const e = this.parser.constructs.attentionMarkers.null, o = this.previous, r = h(o);
70
+ let a;
71
+ return d;
72
+ function d(i) {
73
+ return a = i, t.enter("attentionSequence"), c(i);
74
+ }
75
+ function c(i) {
76
+ if (i === a)
77
+ return t.consume(i), c;
78
+ const s = t.exit("attentionSequence"), f = h(i), l = !f || f === 2 && r || e.includes(i) && i !== 42 && i !== 95, u = !r || r === 2 && f || e.includes(o) && o !== 42 && o !== 95;
79
+ return s._open = !!(a === 42 ? l : l && (r || !u)), s._close = !!(a === 42 ? u : u && (f || !l)), n(i);
80
+ }
81
+ }
82
+ function m(t, n) {
83
+ t.column += n, t.offset += n, t._bufferIndex += n;
84
+ }
85
+ export {
86
+ z as attention
87
+ };