@prismicio/client 7.7.5-alpha.0 → 7.8.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 (809) hide show
  1. package/dist/index.cjs +0 -8
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +0 -5
  4. package/dist/index.js +1 -9
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json.cjs +1 -1
  7. package/dist/package.json.js +1 -1
  8. package/dist/types/api/repository.d.ts +4 -0
  9. package/package.json +2 -16
  10. package/src/index.ts +0 -8
  11. package/src/types/api/repository.ts +5 -0
  12. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
  13. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
  14. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
  15. package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
  16. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
  17. package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
  18. package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
  19. package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
  20. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
  21. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
  22. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
  23. package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
  24. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
  25. package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
  26. package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
  27. package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
  28. package/dist/_node_modules/bail/index.cjs +0 -9
  29. package/dist/_node_modules/bail/index.cjs.map +0 -1
  30. package/dist/_node_modules/bail/index.js +0 -9
  31. package/dist/_node_modules/bail/index.js.map +0 -1
  32. package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
  33. package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
  34. package/dist/_node_modules/bcp-47-match/index.js +0 -74
  35. package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
  36. package/dist/_node_modules/boolbase/index.cjs +0 -13
  37. package/dist/_node_modules/boolbase/index.cjs.map +0 -1
  38. package/dist/_node_modules/boolbase/index.js +0 -14
  39. package/dist/_node_modules/boolbase/index.js.map +0 -1
  40. package/dist/_node_modules/ccount/index.cjs +0 -17
  41. package/dist/_node_modules/ccount/index.cjs.map +0 -1
  42. package/dist/_node_modules/ccount/index.js +0 -17
  43. package/dist/_node_modules/ccount/index.js.map +0 -1
  44. package/dist/_node_modules/character-entities/index.cjs +0 -2131
  45. package/dist/_node_modules/character-entities/index.cjs.map +0 -1
  46. package/dist/_node_modules/character-entities/index.js +0 -2131
  47. package/dist/_node_modules/character-entities/index.js.map +0 -1
  48. package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
  49. package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
  50. package/dist/_node_modules/character-entities-html4/index.js +0 -258
  51. package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
  52. package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
  53. package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
  54. package/dist/_node_modules/character-entities-legacy/index.js +0 -112
  55. package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
  56. package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
  57. package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
  58. package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
  59. package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
  60. package/dist/_node_modules/devlop/lib/default.cjs +0 -6
  61. package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
  62. package/dist/_node_modules/devlop/lib/default.js +0 -6
  63. package/dist/_node_modules/devlop/lib/default.js.map +0 -1
  64. package/dist/_node_modules/direction/index.cjs +0 -12
  65. package/dist/_node_modules/direction/index.cjs.map +0 -1
  66. package/dist/_node_modules/direction/index.js +0 -12
  67. package/dist/_node_modules/direction/index.js.map +0 -1
  68. package/dist/_node_modules/extend/index.cjs +0 -89
  69. package/dist/_node_modules/extend/index.cjs.map +0 -1
  70. package/dist/_node_modules/extend/index.js +0 -90
  71. package/dist/_node_modules/extend/index.js.map +0 -1
  72. package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
  73. package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
  74. package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
  75. package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
  76. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
  77. package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
  78. package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
  79. package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
  80. package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
  81. package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
  82. package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
  83. package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
  84. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
  85. package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
  86. package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
  87. package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
  88. package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
  89. package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
  90. package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
  91. package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
  92. package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
  93. package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  94. package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
  95. package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
  96. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
  97. package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
  98. package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
  99. package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
  100. package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
  101. package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
  102. package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
  103. package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
  104. package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
  105. package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
  106. package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
  107. package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
  108. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
  109. package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
  110. package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
  111. package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
  112. package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
  113. package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
  114. package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
  115. package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
  116. package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
  117. package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
  118. package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
  119. package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
  120. package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
  121. package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
  122. package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
  123. package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
  124. package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
  125. package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
  126. package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
  127. package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
  128. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
  129. package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
  130. package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
  131. package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
  132. package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
  133. package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
  134. package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
  135. package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
  136. package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
  137. package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
  138. package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
  139. package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
  140. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
  141. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
  142. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
  143. package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
  144. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
  145. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
  146. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
  147. package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
  148. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
  149. package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
  150. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
  151. package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
  152. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
  153. package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
  154. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
  155. package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
  156. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
  157. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
  158. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
  159. package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
  160. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
  161. package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
  162. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
  163. package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
  164. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
  165. package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
  166. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
  167. package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
  168. package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
  169. package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
  170. package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
  171. package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
  172. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
  173. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
  174. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
  175. package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
  176. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
  177. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
  178. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
  179. package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
  180. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
  181. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
  182. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
  183. package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
  184. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
  185. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
  186. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
  187. package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
  188. package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
  189. package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
  190. package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
  191. package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
  192. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
  193. package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
  194. package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
  195. package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
  196. package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
  197. package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
  198. package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
  199. package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
  200. package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
  201. package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
  202. package/dist/_node_modules/hastscript/lib/index.js +0 -10
  203. package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
  204. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
  205. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
  206. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
  207. package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
  208. package/dist/_node_modules/html-void-elements/index.cjs +0 -26
  209. package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
  210. package/dist/_node_modules/html-void-elements/index.js +0 -26
  211. package/dist/_node_modules/html-void-elements/index.js.map +0 -1
  212. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
  213. package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
  214. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
  215. package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
  216. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
  217. package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
  218. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
  219. package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
  220. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
  221. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
  222. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
  223. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
  224. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
  225. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
  226. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
  227. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
  228. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
  229. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
  230. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
  231. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
  232. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
  233. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
  234. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
  235. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
  236. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
  237. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
  238. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
  239. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
  240. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
  241. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
  242. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
  243. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
  244. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
  245. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
  246. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
  247. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
  248. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
  249. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
  250. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
  251. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
  252. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
  253. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
  254. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
  255. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
  256. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
  257. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
  258. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
  259. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
  260. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
  261. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
  262. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
  263. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
  264. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
  265. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
  266. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
  267. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
  268. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
  269. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
  270. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
  271. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
  272. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
  273. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
  274. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
  275. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
  276. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
  277. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
  278. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
  279. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
  280. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
  281. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
  282. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
  283. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
  284. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
  285. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
  286. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
  287. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
  288. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
  289. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
  290. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
  291. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
  292. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
  293. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
  294. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
  295. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
  296. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
  297. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
  298. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
  299. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
  300. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
  301. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
  302. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
  303. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
  304. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
  305. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
  306. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
  307. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
  308. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
  309. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
  310. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
  311. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
  312. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
  313. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
  314. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
  315. package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
  316. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
  317. package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
  318. package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
  319. package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
  320. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
  321. package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
  322. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
  323. package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
  324. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
  325. package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
  326. package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
  327. package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
  328. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
  329. package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
  330. package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
  331. package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
  332. package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
  333. package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
  334. package/dist/_node_modules/micromark/lib/constructs.js +0 -94
  335. package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
  336. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
  337. package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
  338. package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
  339. package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
  340. package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
  341. package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
  342. package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
  343. package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
  344. package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
  345. package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
  346. package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
  347. package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
  348. package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
  349. package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
  350. package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
  351. package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
  352. package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
  353. package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
  354. package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
  355. package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
  356. package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
  357. package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
  358. package/dist/_node_modules/micromark/lib/parse.js +0 -35
  359. package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
  360. package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
  361. package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
  362. package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
  363. package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
  364. package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
  365. package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
  366. package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
  367. package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
  368. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
  369. package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
  370. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
  371. package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
  372. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
  373. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
  374. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
  375. package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
  376. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
  377. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
  378. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
  379. package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
  380. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
  381. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
  382. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
  383. package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
  384. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
  385. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
  386. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
  387. package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
  388. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
  389. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
  390. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
  391. package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
  392. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
  393. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
  394. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
  395. package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
  396. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
  397. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
  398. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
  399. package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
  400. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
  401. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
  402. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
  403. package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
  404. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
  405. package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
  406. package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
  407. package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
  408. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
  409. package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
  410. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
  411. package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
  412. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
  413. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
  414. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
  415. package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
  416. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
  417. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
  418. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
  419. package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
  420. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
  421. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
  422. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
  423. package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
  424. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
  425. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
  426. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
  427. package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
  428. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
  429. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
  430. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
  431. package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
  432. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
  433. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
  434. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
  435. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
  436. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
  437. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
  438. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
  439. package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
  440. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
  441. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
  442. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
  443. package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
  444. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
  445. package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
  446. package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
  447. package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
  448. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
  449. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
  450. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
  451. package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
  452. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
  453. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
  454. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
  455. package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
  456. package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
  457. package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
  458. package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
  459. package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
  460. package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
  461. package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
  462. package/dist/_node_modules/micromark-factory-label/index.js +0 -64
  463. package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
  464. package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
  465. package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
  466. package/dist/_node_modules/micromark-factory-space/index.js +0 -25
  467. package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
  468. package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
  469. package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
  470. package/dist/_node_modules/micromark-factory-title/index.js +0 -66
  471. package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
  472. package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
  473. package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
  474. package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
  475. package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
  476. package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
  477. package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
  478. package/dist/_node_modules/micromark-util-character/index.js +0 -45
  479. package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
  480. package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
  481. package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
  482. package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
  483. package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
  484. package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
  485. package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
  486. package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
  487. package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
  488. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
  489. package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
  490. package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
  491. package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
  492. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
  493. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
  494. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
  495. package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
  496. package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
  497. package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
  498. package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
  499. package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
  500. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
  501. package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
  502. package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
  503. package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
  504. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
  505. package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
  506. package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
  507. package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
  508. package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
  509. package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
  510. package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
  511. package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
  512. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
  513. package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
  514. package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
  515. package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
  516. package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
  517. package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
  518. package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
  519. package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
  520. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
  521. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
  522. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
  523. package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
  524. package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
  525. package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
  526. package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
  527. package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
  528. package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
  529. package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
  530. package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
  531. package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
  532. package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
  533. package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
  534. package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
  535. package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
  536. package/dist/_node_modules/property-information/index.cjs +0 -14
  537. package/dist/_node_modules/property-information/index.cjs.map +0 -1
  538. package/dist/_node_modules/property-information/index.js +0 -14
  539. package/dist/_node_modules/property-information/index.js.map +0 -1
  540. package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
  541. package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
  542. package/dist/_node_modules/property-information/lib/aria.js +0 -62
  543. package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
  544. package/dist/_node_modules/property-information/lib/find.cjs +0 -41
  545. package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
  546. package/dist/_node_modules/property-information/lib/find.js +0 -41
  547. package/dist/_node_modules/property-information/lib/find.js.map +0 -1
  548. package/dist/_node_modules/property-information/lib/html.cjs +0 -369
  549. package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
  550. package/dist/_node_modules/property-information/lib/html.js +0 -369
  551. package/dist/_node_modules/property-information/lib/html.js.map +0 -1
  552. package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
  553. package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
  554. package/dist/_node_modules/property-information/lib/normalize.js +0 -7
  555. package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
  556. package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
  557. package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
  558. package/dist/_node_modules/property-information/lib/svg.js +0 -567
  559. package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
  560. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
  561. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  562. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
  563. package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
  564. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
  565. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  566. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
  567. package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
  568. package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
  569. package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
  570. package/dist/_node_modules/property-information/lib/util/create.js +0 -31
  571. package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
  572. package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
  573. package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  574. package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
  575. package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
  576. package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
  577. package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
  578. package/dist/_node_modules/property-information/lib/util/info.js +0 -25
  579. package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
  580. package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
  581. package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
  582. package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
  583. package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
  584. package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
  585. package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
  586. package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
  587. package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
  588. package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
  589. package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
  590. package/dist/_node_modules/property-information/lib/util/types.js +0 -21
  591. package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
  592. package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
  593. package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
  594. package/dist/_node_modules/property-information/lib/xlink.js +0 -20
  595. package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
  596. package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
  597. package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
  598. package/dist/_node_modules/property-information/lib/xml.js +0 -12
  599. package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
  600. package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
  601. package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
  602. package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
  603. package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
  604. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
  605. package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
  606. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
  607. package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
  608. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
  609. package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
  610. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
  611. package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
  612. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
  613. package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
  614. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
  615. package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
  616. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
  617. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
  618. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
  619. package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
  620. package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
  621. package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
  622. package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
  623. package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
  624. package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
  625. package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
  626. package/dist/_node_modules/remark-parse/lib/index.js +0 -20
  627. package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
  628. package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
  629. package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
  630. package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
  631. package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
  632. package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
  633. package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
  634. package/dist/_node_modules/space-separated-tokens/index.js +0 -12
  635. package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
  636. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
  637. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
  638. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
  639. package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
  640. package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
  641. package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
  642. package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
  643. package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
  644. package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
  645. package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
  646. package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
  647. package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
  648. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
  649. package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
  650. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
  651. package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
  652. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
  653. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
  654. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
  655. package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
  656. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
  657. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
  658. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
  659. package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
  660. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
  661. package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
  662. package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
  663. package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
  664. package/dist/_node_modules/trim-lines/index.cjs +0 -42
  665. package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
  666. package/dist/_node_modules/trim-lines/index.js +0 -42
  667. package/dist/_node_modules/trim-lines/index.js.map +0 -1
  668. package/dist/_node_modules/trough/lib/index.cjs +0 -87
  669. package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
  670. package/dist/_node_modules/trough/lib/index.js +0 -87
  671. package/dist/_node_modules/trough/lib/index.js.map +0 -1
  672. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
  673. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
  674. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
  675. package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
  676. package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
  677. package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
  678. package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
  679. package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
  680. package/dist/_node_modules/unified/lib/index.cjs +0 -637
  681. package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
  682. package/dist/_node_modules/unified/lib/index.js +0 -637
  683. package/dist/_node_modules/unified/lib/index.js.map +0 -1
  684. package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
  685. package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
  686. package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
  687. package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
  688. package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
  689. package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
  690. package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
  691. package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
  692. package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
  693. package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
  694. package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
  695. package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
  696. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
  697. package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
  698. package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
  699. package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
  700. package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
  701. package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
  702. package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
  703. package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
  704. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
  705. package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
  706. package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
  707. package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
  708. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
  709. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
  710. package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
  711. package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
  712. package/dist/_node_modules/vfile/lib/index.cjs +0 -463
  713. package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
  714. package/dist/_node_modules/vfile/lib/index.js +0 -463
  715. package/dist/_node_modules/vfile/lib/index.js.map +0 -1
  716. package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
  717. package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
  718. package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
  719. package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
  720. package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
  721. package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
  722. package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
  723. package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
  724. package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
  725. package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
  726. package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
  727. package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
  728. package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
  729. package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
  730. package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
  731. package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
  732. package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
  733. package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
  734. package/dist/_node_modules/vfile-location/lib/index.js +0 -50
  735. package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
  736. package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
  737. package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
  738. package/dist/_node_modules/vfile-message/lib/index.js +0 -139
  739. package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
  740. package/dist/_node_modules/web-namespaces/index.cjs +0 -12
  741. package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
  742. package/dist/_node_modules/web-namespaces/index.js +0 -12
  743. package/dist/_node_modules/web-namespaces/index.js.map +0 -1
  744. package/dist/_node_modules/zwitch/index.cjs +0 -23
  745. package/dist/_node_modules/zwitch/index.cjs.map +0 -1
  746. package/dist/_node_modules/zwitch/index.js +0 -23
  747. package/dist/_node_modules/zwitch/index.js.map +0 -1
  748. package/dist/_virtual/_commonjsHelpers.cjs +0 -7
  749. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  750. package/dist/_virtual/_commonjsHelpers.js +0 -7
  751. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  752. package/dist/_virtual/index.cjs +0 -9
  753. package/dist/_virtual/index.cjs.map +0 -1
  754. package/dist/_virtual/index.js +0 -9
  755. package/dist/_virtual/index.js.map +0 -1
  756. package/dist/errors/PrismicRichTextError.cjs +0 -6
  757. package/dist/errors/PrismicRichTextError.cjs.map +0 -1
  758. package/dist/errors/PrismicRichTextError.d.ts +0 -2
  759. package/dist/errors/PrismicRichTextError.js +0 -6
  760. package/dist/errors/PrismicRichTextError.js.map +0 -1
  761. package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
  762. package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
  763. package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
  764. package/dist/errors/PrismicRichTextSerializerError.js +0 -7
  765. package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
  766. package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
  767. package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
  768. package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
  769. package/dist/helpers/unstable_htmlAsRichText.js +0 -11
  770. package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
  771. package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
  772. package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
  773. package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
  774. package/dist/helpers/unstable_markdownAsRichText.js +0 -12
  775. package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
  776. package/dist/lib/RichTextFieldBuilder.cjs +0 -115
  777. package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
  778. package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
  779. package/dist/lib/RichTextFieldBuilder.js +0 -115
  780. package/dist/lib/RichTextFieldBuilder.js.map +0 -1
  781. package/dist/lib/filterRichTextField.cjs +0 -88
  782. package/dist/lib/filterRichTextField.cjs.map +0 -1
  783. package/dist/lib/filterRichTextField.d.ts +0 -12
  784. package/dist/lib/filterRichTextField.js +0 -88
  785. package/dist/lib/filterRichTextField.js.map +0 -1
  786. package/dist/lib/hastSerializerHelpers.cjs +0 -96
  787. package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
  788. package/dist/lib/hastSerializerHelpers.d.ts +0 -28
  789. package/dist/lib/hastSerializerHelpers.js +0 -96
  790. package/dist/lib/hastSerializerHelpers.js.map +0 -1
  791. package/dist/lib/hastToRichText.cjs +0 -164
  792. package/dist/lib/hastToRichText.cjs.map +0 -1
  793. package/dist/lib/hastToRichText.d.ts +0 -30
  794. package/dist/lib/hastToRichText.js +0 -164
  795. package/dist/lib/hastToRichText.js.map +0 -1
  796. package/dist/lib/rehypeRichText.cjs +0 -60
  797. package/dist/lib/rehypeRichText.cjs.map +0 -1
  798. package/dist/lib/rehypeRichText.d.ts +0 -66
  799. package/dist/lib/rehypeRichText.js +0 -60
  800. package/dist/lib/rehypeRichText.js.map +0 -1
  801. package/src/errors/PrismicRichTextError.ts +0 -1
  802. package/src/errors/PrismicRichTextSerializerError.ts +0 -3
  803. package/src/helpers/unstable_htmlAsRichText.ts +0 -122
  804. package/src/helpers/unstable_markdownAsRichText.ts +0 -53
  805. package/src/lib/RichTextFieldBuilder.ts +0 -164
  806. package/src/lib/filterRichTextField.ts +0 -159
  807. package/src/lib/hastSerializerHelpers.ts +0 -157
  808. package/src/lib/hastToRichText.ts +0 -295
  809. package/src/lib/rehypeRichText.ts +0 -184
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function thematicBreak(state, node) {
4
- const result = {
5
- type: "element",
6
- tagName: "hr",
7
- properties: {},
8
- children: []
9
- };
10
- state.patch(node, result);
11
- return state.applyData(node, result);
12
- }
13
- exports.thematicBreak = thematicBreak;
14
- //# sourceMappingURL=thematic-break.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thematic-break.cjs","sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ThematicBreak} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function thematicBreak(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'hr',\n properties: {},\n children: []\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":[],"mappings":";;AAmBO,SAAS,cAAc,OAAO,MAAM;AAEzC,QAAM,SAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAU,CAAE;AAAA,EACb;AACD,QAAM,MAAM,MAAM,MAAM;AACxB,SAAO,MAAM,UAAU,MAAM,MAAM;AACrC;;","x_google_ignoreList":[0]}
@@ -1,14 +0,0 @@
1
- function thematicBreak(state, node) {
2
- const result = {
3
- type: "element",
4
- tagName: "hr",
5
- properties: {},
6
- children: []
7
- };
8
- state.patch(node, result);
9
- return state.applyData(node, result);
10
- }
11
- export {
12
- thematicBreak
13
- };
14
- //# sourceMappingURL=thematic-break.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thematic-break.js","sources":["../../../../../node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ThematicBreak} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function thematicBreak(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'hr',\n properties: {},\n children: []\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n"],"names":[],"mappings":"AAmBO,SAAS,cAAc,OAAO,MAAM;AAEzC,QAAM,SAAS;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY,CAAE;AAAA,IACd,UAAU,CAAE;AAAA,EACb;AACD,QAAM,MAAM,MAAM,MAAM;AACxB,SAAO,MAAM,UAAU,MAAM,MAAM;AACrC;","x_google_ignoreList":[0]}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const footer = require("./footer.cjs");
4
- const state = require("./state.cjs");
5
- function toHast(tree, options) {
6
- const state$1 = state.createState(tree, options);
7
- const node = state$1.one(tree, void 0);
8
- const foot = footer.footer(state$1);
9
- const result = Array.isArray(node) ? { type: "root", children: node } : node || { type: "root", children: [] };
10
- if (foot) {
11
- result.children.push({ type: "text", value: "\n" }, foot);
12
- }
13
- return result;
14
- }
15
- exports.toHast = toHast;
16
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../node_modules/mdast-util-to-hast/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('./state.js').Options} Options\n */\n\nimport {ok as assert} from 'devlop'\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * * `hast-util-to-html` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful\n * if you completely trust authors\n * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only\n * way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=x></p>\n * <script>alert(x) // `x` now refers to the DOM `p#x` element</script>\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `<div>` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {HastNodes}\n * hast tree.\n */\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, undefined)\n const foot = footer(state)\n /** @type {HastNodes} */\n const result = Array.isArray(node)\n ? {type: 'root', children: node}\n : node || {type: 'root', children: []}\n\n if (foot) {\n // If there’s a footer, there were definitions, meaning block\n // content.\n // So `result` is a parent node.\n assert('children' in result)\n result.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n return result\n}\n"],"names":["state","createState","footer"],"mappings":";;;;AAuFO,SAAS,OAAO,MAAM,SAAS;AACpC,QAAMA,UAAQC,MAAAA,YAAY,MAAM,OAAO;AACvC,QAAM,OAAOD,QAAM,IAAI,MAAM,MAAS;AACtC,QAAM,OAAOE,OAAM,OAACF,OAAK;AAEzB,QAAM,SAAS,MAAM,QAAQ,IAAI,IAC7B,EAAC,MAAM,QAAQ,UAAU,KAAI,IAC7B,QAAQ,EAAC,MAAM,QAAQ,UAAU,CAAA,EAAE;AAEvC,MAAI,MAAM;AAKR,WAAO,SAAS,KAAK,EAAC,MAAM,QAAQ,OAAO,KAAI,GAAG,IAAI;AAAA,EACvD;AAED,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1,16 +0,0 @@
1
- import { footer } from "./footer.js";
2
- import { createState } from "./state.js";
3
- function toHast(tree, options) {
4
- const state = createState(tree, options);
5
- const node = state.one(tree, void 0);
6
- const foot = footer(state);
7
- const result = Array.isArray(node) ? { type: "root", children: node } : node || { type: "root", children: [] };
8
- if (foot) {
9
- result.children.push({ type: "text", value: "\n" }, foot);
10
- }
11
- return result;
12
- }
13
- export {
14
- toHast
15
- };
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/mdast-util-to-hast/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('./state.js').Options} Options\n */\n\nimport {ok as assert} from 'devlop'\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * * `hast-util-to-html` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful\n * if you completely trust authors\n * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only\n * way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=x></p>\n * <script>alert(x) // `x` now refers to the DOM `p#x` element</script>\n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `<div>` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {HastNodes}\n * hast tree.\n */\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, undefined)\n const foot = footer(state)\n /** @type {HastNodes} */\n const result = Array.isArray(node)\n ? {type: 'root', children: node}\n : node || {type: 'root', children: []}\n\n if (foot) {\n // If there’s a footer, there were definitions, meaning block\n // content.\n // So `result` is a parent node.\n assert('children' in result)\n result.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n return result\n}\n"],"names":[],"mappings":";;AAuFO,SAAS,OAAO,MAAM,SAAS;AACpC,QAAM,QAAQ,YAAY,MAAM,OAAO;AACvC,QAAM,OAAO,MAAM,IAAI,MAAM,MAAS;AACtC,QAAM,OAAO,OAAO,KAAK;AAEzB,QAAM,SAAS,MAAM,QAAQ,IAAI,IAC7B,EAAC,MAAM,QAAQ,UAAU,KAAI,IAC7B,QAAQ,EAAC,MAAM,QAAQ,UAAU,CAAA,EAAE;AAEvC,MAAI,MAAM;AAKR,WAAO,SAAS,KAAK,EAAC,MAAM,QAAQ,OAAO,KAAI,GAAG,IAAI;AAAA,EACvD;AAED,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- function revert(state, node) {
4
- const subtype = node.referenceType;
5
- let suffix = "]";
6
- if (subtype === "collapsed") {
7
- suffix += "[]";
8
- } else if (subtype === "full") {
9
- suffix += "[" + (node.label || node.identifier) + "]";
10
- }
11
- if (node.type === "imageReference") {
12
- return [{ type: "text", value: "![" + node.alt + suffix }];
13
- }
14
- const contents = state.all(node);
15
- const head = contents[0];
16
- if (head && head.type === "text") {
17
- head.value = "[" + head.value;
18
- } else {
19
- contents.unshift({ type: "text", value: "[" });
20
- }
21
- const tail = contents[contents.length - 1];
22
- if (tail && tail.type === "text") {
23
- tail.value += suffix;
24
- } else {
25
- contents.push({ type: "text", value: suffix });
26
- }
27
- return contents;
28
- }
29
- exports.revert = revert;
30
- //# sourceMappingURL=revert.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revert.cjs","sources":["../../../../node_modules/mdast-util-to-hast/lib/revert.js"],"sourcesContent":["/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Reference} Reference\n *\n * @typedef {import('./state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {Extract<Nodes, Reference>} node\n * Reference node (image, link).\n * @returns {Array<ElementContent>}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return [{type: 'text', value: '![' + node.alt + suffix}]\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n"],"names":[],"mappings":";;AAsBO,SAAS,OAAO,OAAO,MAAM;AAClC,QAAM,UAAU,KAAK;AACrB,MAAI,SAAS;AAEb,MAAI,YAAY,aAAa;AAC3B,cAAU;AAAA,EACd,WAAa,YAAY,QAAQ;AAC7B,cAAU,OAAO,KAAK,SAAS,KAAK,cAAc;AAAA,EACnD;AAED,MAAI,KAAK,SAAS,kBAAkB;AAClC,WAAO,CAAC,EAAC,MAAM,QAAQ,OAAO,OAAO,KAAK,MAAM,OAAM,CAAC;AAAA,EACxD;AAED,QAAM,WAAW,MAAM,IAAI,IAAI;AAC/B,QAAM,OAAO,SAAS,CAAC;AAEvB,MAAI,QAAQ,KAAK,SAAS,QAAQ;AAChC,SAAK,QAAQ,MAAM,KAAK;AAAA,EAC5B,OAAS;AACL,aAAS,QAAQ,EAAC,MAAM,QAAQ,OAAO,IAAG,CAAC;AAAA,EAC5C;AAED,QAAM,OAAO,SAAS,SAAS,SAAS,CAAC;AAEzC,MAAI,QAAQ,KAAK,SAAS,QAAQ;AAChC,SAAK,SAAS;AAAA,EAClB,OAAS;AACL,aAAS,KAAK,EAAC,MAAM,QAAQ,OAAO,OAAM,CAAC;AAAA,EAC5C;AAED,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1,30 +0,0 @@
1
- function revert(state, node) {
2
- const subtype = node.referenceType;
3
- let suffix = "]";
4
- if (subtype === "collapsed") {
5
- suffix += "[]";
6
- } else if (subtype === "full") {
7
- suffix += "[" + (node.label || node.identifier) + "]";
8
- }
9
- if (node.type === "imageReference") {
10
- return [{ type: "text", value: "![" + node.alt + suffix }];
11
- }
12
- const contents = state.all(node);
13
- const head = contents[0];
14
- if (head && head.type === "text") {
15
- head.value = "[" + head.value;
16
- } else {
17
- contents.unshift({ type: "text", value: "[" });
18
- }
19
- const tail = contents[contents.length - 1];
20
- if (tail && tail.type === "text") {
21
- tail.value += suffix;
22
- } else {
23
- contents.push({ type: "text", value: suffix });
24
- }
25
- return contents;
26
- }
27
- export {
28
- revert
29
- };
30
- //# sourceMappingURL=revert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revert.js","sources":["../../../../node_modules/mdast-util-to-hast/lib/revert.js"],"sourcesContent":["/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Reference} Reference\n *\n * @typedef {import('./state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {Extract<Nodes, Reference>} node\n * Reference node (image, link).\n * @returns {Array<ElementContent>}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return [{type: 'text', value: '![' + node.alt + suffix}]\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n"],"names":[],"mappings":"AAsBO,SAAS,OAAO,OAAO,MAAM;AAClC,QAAM,UAAU,KAAK;AACrB,MAAI,SAAS;AAEb,MAAI,YAAY,aAAa;AAC3B,cAAU;AAAA,EACd,WAAa,YAAY,QAAQ;AAC7B,cAAU,OAAO,KAAK,SAAS,KAAK,cAAc;AAAA,EACnD;AAED,MAAI,KAAK,SAAS,kBAAkB;AAClC,WAAO,CAAC,EAAC,MAAM,QAAQ,OAAO,OAAO,KAAK,MAAM,OAAM,CAAC;AAAA,EACxD;AAED,QAAM,WAAW,MAAM,IAAI,IAAI;AAC/B,QAAM,OAAO,SAAS,CAAC;AAEvB,MAAI,QAAQ,KAAK,SAAS,QAAQ;AAChC,SAAK,QAAQ,MAAM,KAAK;AAAA,EAC5B,OAAS;AACL,aAAS,QAAQ,EAAC,MAAM,QAAQ,OAAO,IAAG,CAAC;AAAA,EAC5C;AAED,QAAM,OAAO,SAAS,SAAS,SAAS,CAAC;AAEzC,MAAI,QAAQ,KAAK,SAAS,QAAQ;AAChC,SAAK,SAAS;AAAA,EAClB,OAAS;AACL,aAAS,KAAK,EAAC,MAAM,QAAQ,OAAO,OAAM,CAAC;AAAA,EAC5C;AAED,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -1,149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index$2 = require("../../@ungap/structured-clone/esm/index.cjs");
4
- const index = require("./handlers/index.cjs");
5
- const index$1 = require("../../unist-util-visit/lib/index.cjs");
6
- const index$3 = require("../../unist-util-position/lib/index.cjs");
7
- const own = {}.hasOwnProperty;
8
- const emptyOptions = {};
9
- function createState(tree, options) {
10
- const settings = options || emptyOptions;
11
- const definitionById = /* @__PURE__ */ new Map();
12
- const footnoteById = /* @__PURE__ */ new Map();
13
- const footnoteCounts = /* @__PURE__ */ new Map();
14
- const handlers = { ...index.handlers, ...settings.handlers };
15
- const state = {
16
- all,
17
- applyData,
18
- definitionById,
19
- footnoteById,
20
- footnoteCounts,
21
- footnoteOrder: [],
22
- handlers,
23
- one,
24
- options: settings,
25
- patch,
26
- wrap
27
- };
28
- index$1.visit(tree, function(node) {
29
- if (node.type === "definition" || node.type === "footnoteDefinition") {
30
- const map = node.type === "definition" ? definitionById : footnoteById;
31
- const id = String(node.identifier).toUpperCase();
32
- if (!map.has(id)) {
33
- map.set(id, node);
34
- }
35
- }
36
- });
37
- return state;
38
- function one(node, parent) {
39
- const type = node.type;
40
- const handle = state.handlers[type];
41
- if (own.call(state.handlers, type) && handle) {
42
- return handle(state, node, parent);
43
- }
44
- if (state.options.passThrough && state.options.passThrough.includes(type)) {
45
- if ("children" in node) {
46
- const { children, ...shallow } = node;
47
- const result = index$2.default(shallow);
48
- result.children = state.all(node);
49
- return result;
50
- }
51
- return index$2.default(node);
52
- }
53
- const unknown = state.options.unknownHandler || defaultUnknownHandler;
54
- return unknown(state, node, parent);
55
- }
56
- function all(parent) {
57
- const values = [];
58
- if ("children" in parent) {
59
- const nodes = parent.children;
60
- let index2 = -1;
61
- while (++index2 < nodes.length) {
62
- const result = state.one(nodes[index2], parent);
63
- if (result) {
64
- if (index2 && nodes[index2 - 1].type === "break") {
65
- if (!Array.isArray(result) && result.type === "text") {
66
- result.value = trimMarkdownSpaceStart(result.value);
67
- }
68
- if (!Array.isArray(result) && result.type === "element") {
69
- const head = result.children[0];
70
- if (head && head.type === "text") {
71
- head.value = trimMarkdownSpaceStart(head.value);
72
- }
73
- }
74
- }
75
- if (Array.isArray(result)) {
76
- values.push(...result);
77
- } else {
78
- values.push(result);
79
- }
80
- }
81
- }
82
- }
83
- return values;
84
- }
85
- }
86
- function patch(from, to) {
87
- if (from.position) to.position = index$3.position(from);
88
- }
89
- function applyData(from, to) {
90
- let result = to;
91
- if (from && from.data) {
92
- const hName = from.data.hName;
93
- const hChildren = from.data.hChildren;
94
- const hProperties = from.data.hProperties;
95
- if (typeof hName === "string") {
96
- if (result.type === "element") {
97
- result.tagName = hName;
98
- } else {
99
- const children = "children" in result ? result.children : [result];
100
- result = { type: "element", tagName: hName, properties: {}, children };
101
- }
102
- }
103
- if (result.type === "element" && hProperties) {
104
- Object.assign(result.properties, index$2.default(hProperties));
105
- }
106
- if ("children" in result && result.children && hChildren !== null && hChildren !== void 0) {
107
- result.children = hChildren;
108
- }
109
- }
110
- return result;
111
- }
112
- function defaultUnknownHandler(state, node) {
113
- const data = node.data || {};
114
- const result = "value" in node && !(own.call(data, "hProperties") || own.call(data, "hChildren")) ? { type: "text", value: node.value } : {
115
- type: "element",
116
- tagName: "div",
117
- properties: {},
118
- children: state.all(node)
119
- };
120
- state.patch(node, result);
121
- return state.applyData(node, result);
122
- }
123
- function wrap(nodes, loose) {
124
- const result = [];
125
- let index2 = -1;
126
- if (loose) {
127
- result.push({ type: "text", value: "\n" });
128
- }
129
- while (++index2 < nodes.length) {
130
- if (index2) result.push({ type: "text", value: "\n" });
131
- result.push(nodes[index2]);
132
- }
133
- if (loose && nodes.length > 0) {
134
- result.push({ type: "text", value: "\n" });
135
- }
136
- return result;
137
- }
138
- function trimMarkdownSpaceStart(value) {
139
- let index2 = 0;
140
- let code = value.charCodeAt(index2);
141
- while (code === 9 || code === 32) {
142
- index2++;
143
- code = value.charCodeAt(index2);
144
- }
145
- return value.slice(index2);
146
- }
147
- exports.createState = createState;
148
- exports.wrap = wrap;
149
- //# sourceMappingURL=state.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.cjs","sources":["../../../../node_modules/mdast-util-to-hast/lib/state.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').RootContent} HastRootContent\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('mdast').Parents} MdastParents\n *\n * @typedef {import('vfile').VFile} VFile\n *\n * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate\n * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate\n */\n\n/**\n * @callback Handler\n * Handle a node.\n * @param {State} state\n * Info passed around.\n * @param {any} node\n * mdast node to handle.\n * @param {MdastParents | undefined} parent\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * hast node.\n *\n * @typedef {Partial<Record<MdastNodes['type'], Handler>>} Handlers\n * Handle nodes.\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Whether to persist raw HTML in markdown in the hast tree (default:\n * `false`).\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n * Prefix to use before the `id` property on footnotes to prevent them from\n * *clobbering* (default: `'user-content-'`).\n *\n * Pass `''` for trusted markdown and when you are careful with\n * polyfilling.\n * You could pass a different prefix.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=\"x\"></p>\n * <script>alert(x) // `x` now refers to the `p#x` DOM element</script>\n * ```\n *\n * The above example shows that elements are made available by browsers, by\n * their ID, on the `window` object.\n * This is a security risk because you might be expecting some other variable\n * at that place.\n * It can also break polyfills.\n * Using a prefix solves these problems.\n * @property {VFile | null | undefined} [file]\n * Corresponding virtual file representing the input document (optional).\n * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]\n * Content of the backreference back to references (default: `defaultFootnoteBackContent`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackContent(_, rereferenceIndex) {\n * const result = [{type: 'text', value: '↩'}]\n *\n * if (rereferenceIndex > 1) {\n * result.push({\n * type: 'element',\n * tagName: 'sup',\n * properties: {},\n * children: [{type: 'text', value: String(rereferenceIndex)}]\n * })\n * }\n *\n * return result\n * }\n * ```\n *\n * This content is used in the `a` element of each backreference (the `↩`\n * links).\n * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]\n * Label to describe the backreference back to references (default:\n * `defaultFootnoteBackLabel`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n * return (\n * 'Back to reference ' +\n * (referenceIndex + 1) +\n * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n * )\n * }\n * ```\n *\n * Change it when the markdown is not in English.\n *\n * This label is used in the `ariaLabel` property on each backreference\n * (the `↩` links).\n * It affects users of assistive technology.\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n * Textual label to use for the footnotes section (default: `'Footnotes'`).\n *\n * Change it when the markdown is not in English.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n * Properties to use on the footnote label (default: `{className:\n * ['sr-only']}`).\n *\n * Change it to show the label and add other properties.\n *\n * This label is typically hidden visually (assuming an `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass an empty string.\n * You can also add different properties.\n *\n * > **Note**: `id: 'footnote-label'` is always added, because footnote\n * > calls use it with `aria-describedby` to provide an accessible label.\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n * HTML tag name to use for the footnote label element (default: `'h2'`).\n *\n * Change it to match your document structure.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {Handlers | null | undefined} [handlers]\n * Extra handlers for nodes (optional).\n * @property {Array<MdastNodes['type']> | null | undefined} [passThrough]\n * List of custom mdast node types to pass through (keep) in hast (note that\n * the node itself is passed, but eventual children are transformed)\n * (optional).\n * @property {Handler | null | undefined} [unknownHandler]\n * Handler for all unknown nodes (optional).\n *\n * @typedef State\n * Info passed around.\n * @property {(node: MdastNodes) => Array<HastElementContent>} all\n * Transform the children of an mdast parent to hast.\n * @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => HastElement | Type} applyData\n * Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {Map<string, MdastDefinition>} definitionById\n * Definitions by their identifier.\n * @property {Map<string, MdastFootnoteDefinition>} footnoteById\n * Footnote definitions by their identifier.\n * @property {Map<string, number>} footnoteCounts\n * Counts for how often the same footnote was called.\n * @property {Array<string>} footnoteOrder\n * Identifiers of order when footnote calls first appear in tree order.\n * @property {Handlers} handlers\n * Applied handlers.\n * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array<HastElementContent> | HastElementContent | undefined} one\n * Transform an mdast node to hast.\n * @property {Options} options\n * Configuration.\n * @property {(from: MdastNodes, node: HastNodes) => undefined} patch\n * Copy a node’s positional info.\n * @property {<Type extends HastRootContent>(nodes: Array<Type>, loose?: boolean | undefined) => Array<HastText | Type>} wrap\n * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {visit} from 'unist-util-visit'\nimport {position} from 'unist-util-position'\nimport {handlers as defaultHandlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n * mdast node to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {State}\n * `state` function.\n */\nexport function createState(tree, options) {\n const settings = options || emptyOptions\n /** @type {Map<string, MdastDefinition>} */\n const definitionById = new Map()\n /** @type {Map<string, MdastFootnoteDefinition>} */\n const footnoteById = new Map()\n /** @type {Map<string, number>} */\n const footnoteCounts = new Map()\n /** @type {Handlers} */\n // @ts-expect-error: the root handler returns a root.\n // Hard to type.\n const handlers = {...defaultHandlers, ...settings.handlers}\n\n /** @type {State} */\n const state = {\n all,\n applyData,\n definitionById,\n footnoteById,\n footnoteCounts,\n footnoteOrder: [],\n handlers,\n one,\n options: settings,\n patch,\n wrap\n }\n\n visit(tree, function (node) {\n if (node.type === 'definition' || node.type === 'footnoteDefinition') {\n const map = node.type === 'definition' ? definitionById : footnoteById\n const id = String(node.identifier).toUpperCase()\n\n // Mimick CM behavior of link definitions.\n // See: <https://github.com/syntax-tree/mdast-util-definitions/blob/9032189/lib/index.js#L20-L21>.\n if (!map.has(id)) {\n // @ts-expect-error: node type matches map.\n map.set(id, node)\n }\n }\n })\n\n return state\n\n /**\n * Transform an mdast node into a hast node.\n *\n * @param {MdastNodes} node\n * mdast node.\n * @param {MdastParents | undefined} [parent]\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * Resulting hast node.\n */\n function one(node, parent) {\n const type = node.type\n const handle = state.handlers[type]\n\n if (own.call(state.handlers, type) && handle) {\n return handle(state, node, parent)\n }\n\n if (state.options.passThrough && state.options.passThrough.includes(type)) {\n if ('children' in node) {\n const {children, ...shallow} = node\n const result = structuredClone(shallow)\n // @ts-expect-error: TS doesn’t understand…\n result.children = state.all(node)\n // @ts-expect-error: TS doesn’t understand…\n return result\n }\n\n // @ts-expect-error: it’s custom.\n return structuredClone(node)\n }\n\n const unknown = state.options.unknownHandler || defaultUnknownHandler\n\n return unknown(state, node, parent)\n }\n\n /**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {MdastNodes} parent\n * mdast node to compile\n * @returns {Array<HastElementContent>}\n * Resulting hast nodes.\n */\n function all(parent) {\n /** @type {Array<HastElementContent>} */\n const values = []\n\n if ('children' in parent) {\n const nodes = parent.children\n let index = -1\n while (++index < nodes.length) {\n const result = state.one(nodes[index], parent)\n\n // To do: see if we van clean this? Can we merge texts?\n if (result) {\n if (index && nodes[index - 1].type === 'break') {\n if (!Array.isArray(result) && result.type === 'text') {\n result.value = trimMarkdownSpaceStart(result.value)\n }\n\n if (!Array.isArray(result) && result.type === 'element') {\n const head = result.children[0]\n\n if (head && head.type === 'text') {\n head.value = trimMarkdownSpaceStart(head.value)\n }\n }\n }\n\n if (Array.isArray(result)) {\n values.push(...result)\n } else {\n values.push(result)\n }\n }\n }\n }\n\n return values\n }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n * mdast node to copy from.\n * @param {HastNodes} to\n * hast node to copy into.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n * Node type.\n * @param {MdastNodes} from\n * mdast node to use data from.\n * @param {Type} to\n * hast node to change.\n * @returns {HastElement | Type}\n * Nothing.\n */\nfunction applyData(from, to) {\n /** @type {HastElement | Type} */\n let result = to\n\n // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n if (from && from.data) {\n const hName = from.data.hName\n const hChildren = from.data.hChildren\n const hProperties = from.data.hProperties\n\n if (typeof hName === 'string') {\n // Transforming the node resulted in an element with a different name\n // than wanted:\n if (result.type === 'element') {\n result.tagName = hName\n }\n // Transforming the node resulted in a non-element, which happens for\n // raw, text, and root nodes (unless custom handlers are passed).\n // The intent of `hName` is to create an element, but likely also to keep\n // the content around (otherwise: pass `hChildren`).\n else {\n /** @type {Array<HastElementContent>} */\n // @ts-expect-error: assume no doctypes in `root`.\n const children = 'children' in result ? result.children : [result]\n result = {type: 'element', tagName: hName, properties: {}, children}\n }\n }\n\n if (result.type === 'element' && hProperties) {\n Object.assign(result.properties, structuredClone(hProperties))\n }\n\n if (\n 'children' in result &&\n result.children &&\n hChildren !== null &&\n hChildren !== undefined\n ) {\n result.children = hChildren\n }\n }\n\n return result\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastNodes} node\n * Unknown mdast node.\n * @returns {HastElement | HastText}\n * Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n const data = node.data || {}\n /** @type {HastElement | HastText} */\n const result =\n 'value' in node &&\n !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n ? {type: 'text', value: node.value}\n : {\n type: 'element',\n tagName: 'div',\n properties: {},\n children: state.all(node)\n }\n\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastRootContent} Type\n * Node type.\n * @param {Array<Type>} nodes\n * List of nodes to wrap.\n * @param {boolean | undefined} [loose=false]\n * Whether to add line endings at start and end (default: `false`).\n * @returns {Array<HastText | Type>}\n * Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n /** @type {Array<HastText | Type>} */\n const result = []\n let index = -1\n\n if (loose) {\n result.push({type: 'text', value: '\\n'})\n }\n\n while (++index < nodes.length) {\n if (index) result.push({type: 'text', value: '\\n'})\n result.push(nodes[index])\n }\n\n if (loose && nodes.length > 0) {\n result.push({type: 'text', value: '\\n'})\n }\n\n return result\n}\n\n/**\n * Trim spaces and tabs at the start of `value`.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Result.\n */\nfunction trimMarkdownSpaceStart(value) {\n let index = 0\n let code = value.charCodeAt(index)\n\n while (code === 9 || code === 32) {\n index++\n code = value.charCodeAt(index)\n }\n\n return value.slice(index)\n}\n"],"names":["defaultHandlers","visit","structuredClone","index","position"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,149 +0,0 @@
1
- import structuredClone from "../../@ungap/structured-clone/esm/index.js";
2
- import { handlers } from "./handlers/index.js";
3
- import { visit } from "../../unist-util-visit/lib/index.js";
4
- import { position } from "../../unist-util-position/lib/index.js";
5
- const own = {}.hasOwnProperty;
6
- const emptyOptions = {};
7
- function createState(tree, options) {
8
- const settings = options || emptyOptions;
9
- const definitionById = /* @__PURE__ */ new Map();
10
- const footnoteById = /* @__PURE__ */ new Map();
11
- const footnoteCounts = /* @__PURE__ */ new Map();
12
- const handlers$1 = { ...handlers, ...settings.handlers };
13
- const state = {
14
- all,
15
- applyData,
16
- definitionById,
17
- footnoteById,
18
- footnoteCounts,
19
- footnoteOrder: [],
20
- handlers: handlers$1,
21
- one,
22
- options: settings,
23
- patch,
24
- wrap
25
- };
26
- visit(tree, function(node) {
27
- if (node.type === "definition" || node.type === "footnoteDefinition") {
28
- const map = node.type === "definition" ? definitionById : footnoteById;
29
- const id = String(node.identifier).toUpperCase();
30
- if (!map.has(id)) {
31
- map.set(id, node);
32
- }
33
- }
34
- });
35
- return state;
36
- function one(node, parent) {
37
- const type = node.type;
38
- const handle = state.handlers[type];
39
- if (own.call(state.handlers, type) && handle) {
40
- return handle(state, node, parent);
41
- }
42
- if (state.options.passThrough && state.options.passThrough.includes(type)) {
43
- if ("children" in node) {
44
- const { children, ...shallow } = node;
45
- const result = structuredClone(shallow);
46
- result.children = state.all(node);
47
- return result;
48
- }
49
- return structuredClone(node);
50
- }
51
- const unknown = state.options.unknownHandler || defaultUnknownHandler;
52
- return unknown(state, node, parent);
53
- }
54
- function all(parent) {
55
- const values = [];
56
- if ("children" in parent) {
57
- const nodes = parent.children;
58
- let index = -1;
59
- while (++index < nodes.length) {
60
- const result = state.one(nodes[index], parent);
61
- if (result) {
62
- if (index && nodes[index - 1].type === "break") {
63
- if (!Array.isArray(result) && result.type === "text") {
64
- result.value = trimMarkdownSpaceStart(result.value);
65
- }
66
- if (!Array.isArray(result) && result.type === "element") {
67
- const head = result.children[0];
68
- if (head && head.type === "text") {
69
- head.value = trimMarkdownSpaceStart(head.value);
70
- }
71
- }
72
- }
73
- if (Array.isArray(result)) {
74
- values.push(...result);
75
- } else {
76
- values.push(result);
77
- }
78
- }
79
- }
80
- }
81
- return values;
82
- }
83
- }
84
- function patch(from, to) {
85
- if (from.position) to.position = position(from);
86
- }
87
- function applyData(from, to) {
88
- let result = to;
89
- if (from && from.data) {
90
- const hName = from.data.hName;
91
- const hChildren = from.data.hChildren;
92
- const hProperties = from.data.hProperties;
93
- if (typeof hName === "string") {
94
- if (result.type === "element") {
95
- result.tagName = hName;
96
- } else {
97
- const children = "children" in result ? result.children : [result];
98
- result = { type: "element", tagName: hName, properties: {}, children };
99
- }
100
- }
101
- if (result.type === "element" && hProperties) {
102
- Object.assign(result.properties, structuredClone(hProperties));
103
- }
104
- if ("children" in result && result.children && hChildren !== null && hChildren !== void 0) {
105
- result.children = hChildren;
106
- }
107
- }
108
- return result;
109
- }
110
- function defaultUnknownHandler(state, node) {
111
- const data = node.data || {};
112
- const result = "value" in node && !(own.call(data, "hProperties") || own.call(data, "hChildren")) ? { type: "text", value: node.value } : {
113
- type: "element",
114
- tagName: "div",
115
- properties: {},
116
- children: state.all(node)
117
- };
118
- state.patch(node, result);
119
- return state.applyData(node, result);
120
- }
121
- function wrap(nodes, loose) {
122
- const result = [];
123
- let index = -1;
124
- if (loose) {
125
- result.push({ type: "text", value: "\n" });
126
- }
127
- while (++index < nodes.length) {
128
- if (index) result.push({ type: "text", value: "\n" });
129
- result.push(nodes[index]);
130
- }
131
- if (loose && nodes.length > 0) {
132
- result.push({ type: "text", value: "\n" });
133
- }
134
- return result;
135
- }
136
- function trimMarkdownSpaceStart(value) {
137
- let index = 0;
138
- let code = value.charCodeAt(index);
139
- while (code === 9 || code === 32) {
140
- index++;
141
- code = value.charCodeAt(index);
142
- }
143
- return value.slice(index);
144
- }
145
- export {
146
- createState,
147
- wrap
148
- };
149
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sources":["../../../../node_modules/mdast-util-to-hast/lib/state.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').RootContent} HastRootContent\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('mdast').Parents} MdastParents\n *\n * @typedef {import('vfile').VFile} VFile\n *\n * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate\n * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate\n */\n\n/**\n * @callback Handler\n * Handle a node.\n * @param {State} state\n * Info passed around.\n * @param {any} node\n * mdast node to handle.\n * @param {MdastParents | undefined} parent\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * hast node.\n *\n * @typedef {Partial<Record<MdastNodes['type'], Handler>>} Handlers\n * Handle nodes.\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n * Whether to persist raw HTML in markdown in the hast tree (default:\n * `false`).\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n * Prefix to use before the `id` property on footnotes to prevent them from\n * *clobbering* (default: `'user-content-'`).\n *\n * Pass `''` for trusted markdown and when you are careful with\n * polyfilling.\n * You could pass a different prefix.\n *\n * DOM clobbering is this:\n *\n * ```html\n * <p id=\"x\"></p>\n * <script>alert(x) // `x` now refers to the `p#x` DOM element</script>\n * ```\n *\n * The above example shows that elements are made available by browsers, by\n * their ID, on the `window` object.\n * This is a security risk because you might be expecting some other variable\n * at that place.\n * It can also break polyfills.\n * Using a prefix solves these problems.\n * @property {VFile | null | undefined} [file]\n * Corresponding virtual file representing the input document (optional).\n * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]\n * Content of the backreference back to references (default: `defaultFootnoteBackContent`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackContent(_, rereferenceIndex) {\n * const result = [{type: 'text', value: '↩'}]\n *\n * if (rereferenceIndex > 1) {\n * result.push({\n * type: 'element',\n * tagName: 'sup',\n * properties: {},\n * children: [{type: 'text', value: String(rereferenceIndex)}]\n * })\n * }\n *\n * return result\n * }\n * ```\n *\n * This content is used in the `a` element of each backreference (the `↩`\n * links).\n * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]\n * Label to describe the backreference back to references (default:\n * `defaultFootnoteBackLabel`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n * return (\n * 'Back to reference ' +\n * (referenceIndex + 1) +\n * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n * )\n * }\n * ```\n *\n * Change it when the markdown is not in English.\n *\n * This label is used in the `ariaLabel` property on each backreference\n * (the `↩` links).\n * It affects users of assistive technology.\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n * Textual label to use for the footnotes section (default: `'Footnotes'`).\n *\n * Change it when the markdown is not in English.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n * Properties to use on the footnote label (default: `{className:\n * ['sr-only']}`).\n *\n * Change it to show the label and add other properties.\n *\n * This label is typically hidden visually (assuming an `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass an empty string.\n * You can also add different properties.\n *\n * > **Note**: `id: 'footnote-label'` is always added, because footnote\n * > calls use it with `aria-describedby` to provide an accessible label.\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n * HTML tag name to use for the footnote label element (default: `'h2'`).\n *\n * Change it to match your document structure.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {Handlers | null | undefined} [handlers]\n * Extra handlers for nodes (optional).\n * @property {Array<MdastNodes['type']> | null | undefined} [passThrough]\n * List of custom mdast node types to pass through (keep) in hast (note that\n * the node itself is passed, but eventual children are transformed)\n * (optional).\n * @property {Handler | null | undefined} [unknownHandler]\n * Handler for all unknown nodes (optional).\n *\n * @typedef State\n * Info passed around.\n * @property {(node: MdastNodes) => Array<HastElementContent>} all\n * Transform the children of an mdast parent to hast.\n * @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => HastElement | Type} applyData\n * Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {Map<string, MdastDefinition>} definitionById\n * Definitions by their identifier.\n * @property {Map<string, MdastFootnoteDefinition>} footnoteById\n * Footnote definitions by their identifier.\n * @property {Map<string, number>} footnoteCounts\n * Counts for how often the same footnote was called.\n * @property {Array<string>} footnoteOrder\n * Identifiers of order when footnote calls first appear in tree order.\n * @property {Handlers} handlers\n * Applied handlers.\n * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array<HastElementContent> | HastElementContent | undefined} one\n * Transform an mdast node to hast.\n * @property {Options} options\n * Configuration.\n * @property {(from: MdastNodes, node: HastNodes) => undefined} patch\n * Copy a node’s positional info.\n * @property {<Type extends HastRootContent>(nodes: Array<Type>, loose?: boolean | undefined) => Array<HastText | Type>} wrap\n * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {visit} from 'unist-util-visit'\nimport {position} from 'unist-util-position'\nimport {handlers as defaultHandlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n * mdast node to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {State}\n * `state` function.\n */\nexport function createState(tree, options) {\n const settings = options || emptyOptions\n /** @type {Map<string, MdastDefinition>} */\n const definitionById = new Map()\n /** @type {Map<string, MdastFootnoteDefinition>} */\n const footnoteById = new Map()\n /** @type {Map<string, number>} */\n const footnoteCounts = new Map()\n /** @type {Handlers} */\n // @ts-expect-error: the root handler returns a root.\n // Hard to type.\n const handlers = {...defaultHandlers, ...settings.handlers}\n\n /** @type {State} */\n const state = {\n all,\n applyData,\n definitionById,\n footnoteById,\n footnoteCounts,\n footnoteOrder: [],\n handlers,\n one,\n options: settings,\n patch,\n wrap\n }\n\n visit(tree, function (node) {\n if (node.type === 'definition' || node.type === 'footnoteDefinition') {\n const map = node.type === 'definition' ? definitionById : footnoteById\n const id = String(node.identifier).toUpperCase()\n\n // Mimick CM behavior of link definitions.\n // See: <https://github.com/syntax-tree/mdast-util-definitions/blob/9032189/lib/index.js#L20-L21>.\n if (!map.has(id)) {\n // @ts-expect-error: node type matches map.\n map.set(id, node)\n }\n }\n })\n\n return state\n\n /**\n * Transform an mdast node into a hast node.\n *\n * @param {MdastNodes} node\n * mdast node.\n * @param {MdastParents | undefined} [parent]\n * Parent of `node`.\n * @returns {Array<HastElementContent> | HastElementContent | undefined}\n * Resulting hast node.\n */\n function one(node, parent) {\n const type = node.type\n const handle = state.handlers[type]\n\n if (own.call(state.handlers, type) && handle) {\n return handle(state, node, parent)\n }\n\n if (state.options.passThrough && state.options.passThrough.includes(type)) {\n if ('children' in node) {\n const {children, ...shallow} = node\n const result = structuredClone(shallow)\n // @ts-expect-error: TS doesn’t understand…\n result.children = state.all(node)\n // @ts-expect-error: TS doesn’t understand…\n return result\n }\n\n // @ts-expect-error: it’s custom.\n return structuredClone(node)\n }\n\n const unknown = state.options.unknownHandler || defaultUnknownHandler\n\n return unknown(state, node, parent)\n }\n\n /**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {MdastNodes} parent\n * mdast node to compile\n * @returns {Array<HastElementContent>}\n * Resulting hast nodes.\n */\n function all(parent) {\n /** @type {Array<HastElementContent>} */\n const values = []\n\n if ('children' in parent) {\n const nodes = parent.children\n let index = -1\n while (++index < nodes.length) {\n const result = state.one(nodes[index], parent)\n\n // To do: see if we van clean this? Can we merge texts?\n if (result) {\n if (index && nodes[index - 1].type === 'break') {\n if (!Array.isArray(result) && result.type === 'text') {\n result.value = trimMarkdownSpaceStart(result.value)\n }\n\n if (!Array.isArray(result) && result.type === 'element') {\n const head = result.children[0]\n\n if (head && head.type === 'text') {\n head.value = trimMarkdownSpaceStart(head.value)\n }\n }\n }\n\n if (Array.isArray(result)) {\n values.push(...result)\n } else {\n values.push(result)\n }\n }\n }\n }\n\n return values\n }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n * mdast node to copy from.\n * @param {HastNodes} to\n * hast node to copy into.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n * Node type.\n * @param {MdastNodes} from\n * mdast node to use data from.\n * @param {Type} to\n * hast node to change.\n * @returns {HastElement | Type}\n * Nothing.\n */\nfunction applyData(from, to) {\n /** @type {HastElement | Type} */\n let result = to\n\n // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n if (from && from.data) {\n const hName = from.data.hName\n const hChildren = from.data.hChildren\n const hProperties = from.data.hProperties\n\n if (typeof hName === 'string') {\n // Transforming the node resulted in an element with a different name\n // than wanted:\n if (result.type === 'element') {\n result.tagName = hName\n }\n // Transforming the node resulted in a non-element, which happens for\n // raw, text, and root nodes (unless custom handlers are passed).\n // The intent of `hName` is to create an element, but likely also to keep\n // the content around (otherwise: pass `hChildren`).\n else {\n /** @type {Array<HastElementContent>} */\n // @ts-expect-error: assume no doctypes in `root`.\n const children = 'children' in result ? result.children : [result]\n result = {type: 'element', tagName: hName, properties: {}, children}\n }\n }\n\n if (result.type === 'element' && hProperties) {\n Object.assign(result.properties, structuredClone(hProperties))\n }\n\n if (\n 'children' in result &&\n result.children &&\n hChildren !== null &&\n hChildren !== undefined\n ) {\n result.children = hChildren\n }\n }\n\n return result\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastNodes} node\n * Unknown mdast node.\n * @returns {HastElement | HastText}\n * Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n const data = node.data || {}\n /** @type {HastElement | HastText} */\n const result =\n 'value' in node &&\n !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n ? {type: 'text', value: node.value}\n : {\n type: 'element',\n tagName: 'div',\n properties: {},\n children: state.all(node)\n }\n\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastRootContent} Type\n * Node type.\n * @param {Array<Type>} nodes\n * List of nodes to wrap.\n * @param {boolean | undefined} [loose=false]\n * Whether to add line endings at start and end (default: `false`).\n * @returns {Array<HastText | Type>}\n * Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n /** @type {Array<HastText | Type>} */\n const result = []\n let index = -1\n\n if (loose) {\n result.push({type: 'text', value: '\\n'})\n }\n\n while (++index < nodes.length) {\n if (index) result.push({type: 'text', value: '\\n'})\n result.push(nodes[index])\n }\n\n if (loose && nodes.length > 0) {\n result.push({type: 'text', value: '\\n'})\n }\n\n return result\n}\n\n/**\n * Trim spaces and tabs at the start of `value`.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Result.\n */\nfunction trimMarkdownSpaceStart(value) {\n let index = 0\n let code = value.charCodeAt(index)\n\n while (code === 9 || code === 32) {\n index++\n code = value.charCodeAt(index)\n }\n\n return value.slice(index)\n}\n"],"names":["handlers","defaultHandlers"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const emptyOptions = {};
4
- function toString(value, options) {
5
- const settings = emptyOptions;
6
- const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
7
- const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
8
- return one(value, includeImageAlt, includeHtml);
9
- }
10
- function one(value, includeImageAlt, includeHtml) {
11
- if (node(value)) {
12
- if ("value" in value) {
13
- return value.type === "html" && !includeHtml ? "" : value.value;
14
- }
15
- if (includeImageAlt && "alt" in value && value.alt) {
16
- return value.alt;
17
- }
18
- if ("children" in value) {
19
- return all(value.children, includeImageAlt, includeHtml);
20
- }
21
- }
22
- if (Array.isArray(value)) {
23
- return all(value, includeImageAlt, includeHtml);
24
- }
25
- return "";
26
- }
27
- function all(values, includeImageAlt, includeHtml) {
28
- const result = [];
29
- let index = -1;
30
- while (++index < values.length) {
31
- result[index] = one(values[index], includeImageAlt, includeHtml);
32
- }
33
- return result.join("");
34
- }
35
- function node(value) {
36
- return Boolean(value && typeof value === "object");
37
- }
38
- exports.toString = toString;
39
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../node_modules/mdast-util-to-string/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Nodes} Nodes\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s (default: `true`).\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML (default: `true`).\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} [value]\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\n return value.type === 'html' && !includeHtml ? '' : value.value\n }\n\n if (includeImageAlt && 'alt' in value && value.alt) {\n return value.alt\n }\n\n if ('children' in value) {\n return all(value.children, includeImageAlt, includeHtml)\n }\n }\n\n if (Array.isArray(value)) {\n return all(value, includeImageAlt, includeHtml)\n }\n\n return ''\n}\n\n/**\n * Serialize a list of nodes.\n *\n * @param {Array<unknown>} values\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized nodes.\n */\nfunction all(values, includeImageAlt, includeHtml) {\n /** @type {Array<string>} */\n const result = []\n let index = -1\n\n while (++index < values.length) {\n result[index] = one(values[index], includeImageAlt, includeHtml)\n }\n\n return result.join('')\n}\n\n/**\n * Check if `value` looks like a node.\n *\n * @param {unknown} value\n * Thing.\n * @returns {value is Nodes}\n * Whether `value` is a node.\n */\nfunction node(value) {\n return Boolean(value && typeof value === 'object')\n}\n"],"names":[],"mappings":";;AAYA,MAAM,eAAe,CAAE;AAehB,SAAS,SAAS,OAAO,SAAS;AACvC,QAAM,WAAsB;AAC5B,QAAM,kBACJ,OAAO,SAAS,oBAAoB,YAChC,SAAS,kBACT;AACN,QAAM,cACJ,OAAO,SAAS,gBAAgB,YAAY,SAAS,cAAc;AAErE,SAAO,IAAI,OAAO,iBAAiB,WAAW;AAChD;AAcA,SAAS,IAAI,OAAO,iBAAiB,aAAa;AAChD,MAAI,KAAK,KAAK,GAAG;AACf,QAAI,WAAW,OAAO;AACpB,aAAO,MAAM,SAAS,UAAU,CAAC,cAAc,KAAK,MAAM;AAAA,IAC3D;AAED,QAAI,mBAAmB,SAAS,SAAS,MAAM,KAAK;AAClD,aAAO,MAAM;AAAA,IACd;AAED,QAAI,cAAc,OAAO;AACvB,aAAO,IAAI,MAAM,UAAU,iBAAiB,WAAW;AAAA,IACxD;AAAA,EACF;AAED,MAAI,MAAM,QAAQ,KAAK,GAAG;AACxB,WAAO,IAAI,OAAO,iBAAiB,WAAW;AAAA,EAC/C;AAED,SAAO;AACT;AAcA,SAAS,IAAI,QAAQ,iBAAiB,aAAa;AAEjD,QAAM,SAAS,CAAE;AACjB,MAAI,QAAQ;AAEZ,SAAO,EAAE,QAAQ,OAAO,QAAQ;AAC9B,WAAO,KAAK,IAAI,IAAI,OAAO,KAAK,GAAG,iBAAiB,WAAW;AAAA,EAChE;AAED,SAAO,OAAO,KAAK,EAAE;AACvB;AAUA,SAAS,KAAK,OAAO;AACnB,SAAO,QAAQ,SAAS,OAAO,UAAU,QAAQ;AACnD;;","x_google_ignoreList":[0]}