nuxt-ignis 0.5.2 → 0.5.3

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 (409) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.env +1 -1
  3. package/.nuxt/components.d.ts +480 -858
  4. package/.nuxt/content/components.ts +177 -320
  5. package/.nuxt/dev/index.mjs +542 -530
  6. package/.nuxt/dev/index.mjs.map +1 -1
  7. package/.nuxt/dist/server/client.manifest.mjs +1 -1
  8. package/.nuxt/dist/server/client.precomputed.mjs +1 -1
  9. package/.nuxt/eslint-typegen.d.ts +60 -111
  10. package/.nuxt/eslint.config.d.mts +2 -2
  11. package/.nuxt/eslint.config.mjs +9 -9
  12. package/.nuxt/imports.d.ts +71 -70
  13. package/.nuxt/manifest/latest.json +1 -1
  14. package/.nuxt/manifest/meta/dev.json +1 -1
  15. package/.nuxt/module/nuxt-robots.d.ts +13 -12
  16. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  17. package/.nuxt/module/nuxt-site-config.d.ts +8 -8
  18. package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
  19. package/.nuxt/nitro.json +4 -4
  20. package/.nuxt/nuxt.d.ts +6 -6
  21. package/.nuxt/nuxt.json +2 -2
  22. package/.nuxt/nuxt.node.d.ts +7 -6
  23. package/.nuxt/tsconfig.app.json +192 -188
  24. package/.nuxt/tsconfig.json +195 -191
  25. package/.nuxt/tsconfig.node.json +108 -104
  26. package/.nuxt/tsconfig.server.json +128 -127
  27. package/.nuxt/tsconfig.shared.json +62 -62
  28. package/.nuxt/types/build.d.ts +1 -1
  29. package/.nuxt/types/components.d.ts +480 -858
  30. package/.nuxt/types/i18n-plugin.d.ts +2 -2
  31. package/.nuxt/types/imports.d.ts +368 -366
  32. package/.nuxt/types/modules.d.ts +22 -24
  33. package/.nuxt/types/nitro-imports.d.ts +66 -66
  34. package/.nuxt/types/nitro-nuxt.d.ts +1 -1
  35. package/.nuxt/types/nitro-routes.d.ts +16 -16
  36. package/.nuxt/types/plugins.d.ts +37 -37
  37. package/.nuxt/types/runtime-config.d.ts +3 -1
  38. package/.output/nitro.json +2 -2
  39. package/.output/public/_ignis-config.json +6 -0
  40. package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
  41. package/.output/public/_nuxt/-z2jk33i.js +1 -0
  42. package/.output/public/_nuxt/3L5yAyVe.js +1 -0
  43. package/.output/public/_nuxt/8nlalpbc.js +1 -0
  44. package/.output/public/_nuxt/As5Zy5cG.js +1 -0
  45. package/.output/public/_nuxt/B-TDuiGE.js +1 -0
  46. package/.output/public/_nuxt/B04mZI32.js +1 -0
  47. package/.output/public/_nuxt/B3zmx-p1.js +1 -0
  48. package/.output/public/_nuxt/B4eQjLRH.js +1 -0
  49. package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
  50. package/.output/public/_nuxt/BB2ULiwb.js +1 -0
  51. package/.output/public/_nuxt/BEvX3xjB.js +1 -0
  52. package/.output/public/_nuxt/BFcGh2xo.js +1 -0
  53. package/.output/public/_nuxt/BFdGKCUO.js +1 -0
  54. package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
  55. package/.output/public/_nuxt/BeRTSVEP.js +1 -0
  56. package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
  57. package/.output/public/_nuxt/BvFz8iHh.js +1 -0
  58. package/.output/public/_nuxt/BwUgVogm.js +1 -0
  59. package/.output/public/_nuxt/C1fHW8CN.js +1 -0
  60. package/.output/public/_nuxt/C1getMtX.js +49 -0
  61. package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
  62. package/.output/public/_nuxt/CExm4AMI.js +1 -0
  63. package/.output/public/_nuxt/CHcd0nHy.js +1 -0
  64. package/.output/public/_nuxt/CTbEZMxa.js +1 -0
  65. package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
  66. package/.output/public/_nuxt/Cna7T5zY.js +1 -0
  67. package/.output/public/_nuxt/CnghUxEk.js +1 -0
  68. package/.output/public/_nuxt/CvJSUdvI.js +1 -0
  69. package/.output/public/_nuxt/CwgBHvd_.js +1 -0
  70. package/.output/public/_nuxt/D1nIr4-J.js +1 -0
  71. package/.output/public/_nuxt/D2atCez-.js +1 -0
  72. package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
  73. package/.output/public/_nuxt/D5duQQkG.js +1 -0
  74. package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
  75. package/.output/public/_nuxt/DB3c8m3K.js +1 -0
  76. package/.output/public/_nuxt/DFP1sKjc.js +1 -0
  77. package/.output/public/_nuxt/DI5_qtj_.js +1 -0
  78. package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
  79. package/.output/public/_nuxt/DN3AlbuD.js +1 -0
  80. package/.output/public/_nuxt/DPDbQA17.js +1 -0
  81. package/.output/public/_nuxt/DSErOj49.js +1 -0
  82. package/.output/public/_nuxt/DXrSmKSt.js +1 -0
  83. package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
  84. package/.output/public/_nuxt/DgCebJqk.js +1 -0
  85. package/.output/public/_nuxt/DhhwMwQM.js +1 -0
  86. package/.output/public/_nuxt/Djhwz52y.js +1 -0
  87. package/.output/public/_nuxt/DnE1KSqg.js +1 -0
  88. package/.output/public/_nuxt/DncFEy6i.js +1 -0
  89. package/.output/public/_nuxt/DpZCZGQO.js +1 -0
  90. package/.output/public/_nuxt/Dx95U2T3.js +1 -0
  91. package/.output/public/_nuxt/FUdAqSn9.js +9 -0
  92. package/.output/public/_nuxt/GvxWNFgu.js +1 -0
  93. package/.output/public/_nuxt/HgKyGH3C.js +1 -0
  94. package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
  95. package/.output/public/_nuxt/LpFrvoF7.js +1 -0
  96. package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
  97. package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
  98. package/.output/public/_nuxt/U1_7ggcx.js +1 -0
  99. package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
  100. package/.output/public/_nuxt/ahq42_9S.js +1 -0
  101. package/.output/public/_nuxt/b0AtYQ73.js +1 -0
  102. package/.output/public/_nuxt/builds/latest.json +1 -1
  103. package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
  104. package/.output/public/_nuxt/efC_w6sP.js +1 -0
  105. package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
  106. package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
  107. package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
  108. package/.output/public/_nuxt/ulE7jr93.js +1 -0
  109. package/.output/public/_nuxt/xHyrElgL.js +1 -0
  110. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  111. package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
  112. package/.output/server/chunks/_/nitro.mjs +1176 -1775
  113. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  114. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  115. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  116. package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
  117. package/.output/server/chunks/raw/headers.mjs.map +1 -1
  118. package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
  119. package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
  120. package/.output/server/chunks/routes/renderer.mjs +27 -2
  121. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  122. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
  123. package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
  124. package/.output/server/chunks/virtual/global-sources.mjs +0 -8
  125. package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
  126. package/.output/server/index.mjs +1 -1
  127. package/.output/server/index.mjs.map +1 -1
  128. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib/decode_codepoint.js → entities@7.0.0/dist/commonjs/decode-codepoint.js} +16 -15
  129. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
  130. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
  131. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
  132. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
  133. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
  134. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
  135. package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
  136. package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
  137. package/.output/server/node_modules/@intlify/core/package.json +3 -3
  138. package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
  139. package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
  140. package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
  141. package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
  142. package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
  143. package/.output/server/node_modules/@intlify/shared/package.json +1 -1
  144. package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
  145. package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
  146. package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
  147. package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
  148. package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
  149. package/.output/server/node_modules/@poppinss/string/package.json +28 -25
  150. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
  151. package/.output/server/node_modules/@shikijs/core/package.json +2 -2
  152. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
  153. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
  154. package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
  155. package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
  156. package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
  157. package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
  158. package/.output/server/node_modules/@shikijs/types/package.json +1 -1
  159. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
  160. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
  161. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
  162. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
  166. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
  167. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
  168. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
  169. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
  170. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
  171. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
  172. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  173. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
  174. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
  175. package/.output/server/node_modules/devalue/index.js +1 -0
  176. package/.output/server/node_modules/devalue/package.json +1 -1
  177. package/.output/server/node_modules/devalue/src/parse.js +5 -1
  178. package/.output/server/node_modules/devalue/src/stringify.js +7 -3
  179. package/.output/server/node_modules/devalue/src/uneval.js +7 -3
  180. package/.output/server/node_modules/devalue/src/utils.js +5 -1
  181. package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
  182. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
  183. package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
  184. package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
  185. package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
  186. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  187. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
  188. package/.output/server/node_modules/jose/package.json +1 -1
  189. package/.output/server/node_modules/node-mock-http/package.json +10 -10
  190. package/.output/server/node_modules/regex/package.json +6 -6
  191. package/.output/server/node_modules/regex/src/atomic.js +6 -3
  192. package/.output/server/node_modules/shiki/package.json +7 -7
  193. package/.output/server/node_modules/strnum/package.json +1 -1
  194. package/.output/server/node_modules/strnum/strnum.js +1 -1
  195. package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
  196. package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
  197. package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
  198. package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
  199. package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
  200. package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
  201. package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
  202. package/.output/server/node_modules/unhead/package.json +1 -1
  203. package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
  204. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
  205. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
  206. package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
  207. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
  208. package/.output/server/node_modules/vue-router/package.json +2 -3
  209. package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
  210. package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
  211. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
  212. package/.output/server/node_modules/yaml/dist/errors.js +1 -1
  213. package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
  214. package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
  215. package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
  216. package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
  217. package/.output/server/node_modules/yaml/package.json +4 -4
  218. package/.output/server/package.json +35 -38
  219. package/bin/set-app-vue.js +1 -1
  220. package/bin/set-css.js +1 -1
  221. package/bin/set-eslint.js +1 -1
  222. package/bin/setup.js +3 -3
  223. package/eslint.config.mjs +7 -4
  224. package/package.json +7 -7
  225. package/public/_ignis-config.json +6 -0
  226. package/vitest.config.ts +1 -3
  227. package/.output/public/_nuxt/-PRJHlJd.js +0 -1
  228. package/.output/public/_nuxt/38NkCNo_.js +0 -0
  229. package/.output/public/_nuxt/4p0_eEbF.js +0 -0
  230. package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
  231. package/.output/public/_nuxt/5msm7UDY.js +0 -0
  232. package/.output/public/_nuxt/7I_cTX05.js +0 -1
  233. package/.output/public/_nuxt/7N8aGG8C.js +0 -1
  234. package/.output/public/_nuxt/9j0d6I4O.js +0 -0
  235. package/.output/public/_nuxt/B7b1sBVf.js +0 -0
  236. package/.output/public/_nuxt/B7pFyPXj.js +0 -1
  237. package/.output/public/_nuxt/B8s7UrMM.js +0 -1
  238. package/.output/public/_nuxt/BHBmrOu8.js +0 -1
  239. package/.output/public/_nuxt/BHIv_dM4.js +0 -0
  240. package/.output/public/_nuxt/BI2n4fU-.js +0 -0
  241. package/.output/public/_nuxt/BJos6QuZ.js +0 -0
  242. package/.output/public/_nuxt/BKsXoEBs.js +0 -0
  243. package/.output/public/_nuxt/BNKvjWkT.js +0 -1
  244. package/.output/public/_nuxt/BQmtXkqc.js +0 -1
  245. package/.output/public/_nuxt/BQuCJQB8.js +0 -0
  246. package/.output/public/_nuxt/BSEIdlOb.js +0 -0
  247. package/.output/public/_nuxt/BST7mczs.js +0 -1
  248. package/.output/public/_nuxt/BTAjWPAo.js +0 -1
  249. package/.output/public/_nuxt/BYIIksjz.js +0 -0
  250. package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
  251. package/.output/public/_nuxt/Bg-6qayI.js +0 -1
  252. package/.output/public/_nuxt/BgP-osMP.js +0 -1
  253. package/.output/public/_nuxt/BiCkyLWS.js +0 -1
  254. package/.output/public/_nuxt/BjN_umGo.js +0 -1
  255. package/.output/public/_nuxt/BqK0HYmw.js +0 -1
  256. package/.output/public/_nuxt/BrSteMIA.js +0 -1
  257. package/.output/public/_nuxt/C-MeLOeF.js +0 -1
  258. package/.output/public/_nuxt/C-OKZMJp.js +0 -1
  259. package/.output/public/_nuxt/C6tJinWY.js +0 -0
  260. package/.output/public/_nuxt/C7lLQr2h.js +0 -0
  261. package/.output/public/_nuxt/CDLGLk8m.js +0 -1
  262. package/.output/public/_nuxt/CDT62st6.js +0 -1
  263. package/.output/public/_nuxt/CFimyBH-.js +0 -0
  264. package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
  265. package/.output/public/_nuxt/CKPnIC-C.js +0 -0
  266. package/.output/public/_nuxt/COPw3T3p.js +0 -1
  267. package/.output/public/_nuxt/CQGFUxxa.js +0 -1
  268. package/.output/public/_nuxt/CSX_cLY6.js +0 -1
  269. package/.output/public/_nuxt/CaVNnfk7.js +0 -0
  270. package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
  271. package/.output/public/_nuxt/CdygaddQ.js +0 -9
  272. package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
  273. package/.output/public/_nuxt/CfmMK6-y.js +0 -1
  274. package/.output/public/_nuxt/Civ5r6YF.js +0 -1
  275. package/.output/public/_nuxt/CkdnMzBA.js +0 -0
  276. package/.output/public/_nuxt/CnlJVizr.js +0 -1
  277. package/.output/public/_nuxt/Coqgx10n.js +0 -0
  278. package/.output/public/_nuxt/CxMUMwzI.js +0 -1
  279. package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
  280. package/.output/public/_nuxt/CzKgiVVn.js +0 -1
  281. package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
  282. package/.output/public/_nuxt/D2vgCRoc.js +0 -1
  283. package/.output/public/_nuxt/D4fuXfD_.js +0 -1
  284. package/.output/public/_nuxt/D5IuxRu4.js +0 -1
  285. package/.output/public/_nuxt/D5j9Embb.js +0 -1
  286. package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
  287. package/.output/public/_nuxt/DAIwjxRT.js +0 -0
  288. package/.output/public/_nuxt/DBEY94Mo.js +0 -0
  289. package/.output/public/_nuxt/DCQOMtdo.js +0 -1
  290. package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
  291. package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
  292. package/.output/public/_nuxt/DL4qe-W_.js +0 -0
  293. package/.output/public/_nuxt/DLKI6lgi.js +0 -0
  294. package/.output/public/_nuxt/DOAeoYpG.js +0 -0
  295. package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
  296. package/.output/public/_nuxt/DP_txrAq.js +0 -1
  297. package/.output/public/_nuxt/DQKS5ddY.js +0 -1
  298. package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
  299. package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
  300. package/.output/public/_nuxt/DdWDmJe7.js +0 -0
  301. package/.output/public/_nuxt/Df59gZou.js +0 -0
  302. package/.output/public/_nuxt/DiIccoHR.js +0 -0
  303. package/.output/public/_nuxt/DiL3rzK6.js +0 -1
  304. package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
  305. package/.output/public/_nuxt/DmRrrdJv.js +0 -1
  306. package/.output/public/_nuxt/Do5nYv4E.js +0 -0
  307. package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
  308. package/.output/public/_nuxt/DrE64K_R.js +0 -1
  309. package/.output/public/_nuxt/DrskXsQH.js +0 -1
  310. package/.output/public/_nuxt/Ds7AWph0.js +0 -0
  311. package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
  312. package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
  313. package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
  314. package/.output/public/_nuxt/QyE4cqYn.js +0 -1
  315. package/.output/public/_nuxt/Tcmkoyas.js +0 -1
  316. package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
  317. package/.output/public/_nuxt/VOEA7UHD.js +0 -0
  318. package/.output/public/_nuxt/WOOfaOjG.js +0 -1
  319. package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
  320. package/.output/public/_nuxt/ZDbum-dK.js +0 -1
  321. package/.output/public/_nuxt/ZTY82FYd.js +0 -0
  322. package/.output/public/_nuxt/asVu8S_S.js +0 -51
  323. package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
  324. package/.output/public/_nuxt/cjlVjclE.js +0 -1
  325. package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
  326. package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
  327. package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
  328. package/.output/public/_nuxt/gmjYz5n6.js +0 -0
  329. package/.output/public/_nuxt/iatO0zkI.js +0 -1
  330. package/.output/public/_nuxt/jieRiiOw.js +0 -0
  331. package/.output/public/_nuxt/lAhMwKxb.js +0 -1
  332. package/.output/public/_nuxt/mHcxE7OD.js +0 -0
  333. package/.output/public/_nuxt/n17zLPF6.js +0 -0
  334. package/.output/public/_nuxt/ncv2QjU2.js +0 -1
  335. package/.output/public/_nuxt/osXHzmfu.js +0 -1
  336. package/.output/public/_nuxt/plapqmiu.js +0 -1
  337. package/.output/public/_nuxt/pnNmDVjA.js +0 -0
  338. package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
  339. package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
  340. package/.output/public/_nuxt/t9C3L8ir.js +0 -1
  341. package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
  342. package/.output/public/_nuxt/z6h75OXJ.js +0 -1
  343. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
  344. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
  345. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
  346. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
  347. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
  348. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
  349. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
  350. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
  351. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
  352. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
  353. package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
  354. package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
  355. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
  356. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
  357. package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
  358. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
  359. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
  360. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
  361. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
  362. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
  363. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
  364. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
  365. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
  366. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
  367. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
  368. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
  369. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
  370. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
  371. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
  372. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
  373. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
  374. package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
  375. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
  376. package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
  377. package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
  378. package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
  379. package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
  380. package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
  381. package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
  382. package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
  383. package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
  384. package/.output/server/node_modules/bytes/index.js +0 -170
  385. package/.output/server/node_modules/bytes/package.json +0 -42
  386. package/.output/server/node_modules/truncatise/index.js +0 -188
  387. package/.output/server/node_modules/truncatise/package.json +0 -36
  388. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
  389. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
  390. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
  391. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
  392. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
  393. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
  394. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
  395. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
  396. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
  397. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
  398. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
  399. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
  400. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
  401. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
  402. /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
  403. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
  404. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
  405. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
  406. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
  407. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
  408. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
  409. /package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/server-renderer/index.mjs +0 -0
@@ -57,6 +57,9 @@ function addClassToHast(node, className) {
57
57
  }
58
58
 
59
59
  function splitLines(code, preserveEnding = false) {
60
+ if (code.length === 0) {
61
+ return [["", 0]];
62
+ }
60
63
  const parts = code.split(/(\r?\n)/g);
61
64
  let index = 0;
62
65
  const lines = [];
@@ -102,14 +105,26 @@ function createPositionConverter(code) {
102
105
  }
103
106
  function guessEmbeddedLanguages(code, _lang, highlighter) {
104
107
  const langs = /* @__PURE__ */ new Set();
105
- for (const match of code.matchAll(/lang=["']([\w-]+)["']/g)) {
106
- langs.add(match[1]);
108
+ for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
109
+ const lang = match[1].toLowerCase().trim();
110
+ if (lang)
111
+ langs.add(lang);
107
112
  }
108
113
  for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
109
- langs.add(match[1]);
114
+ const lang = match[1].toLowerCase().trim();
115
+ if (lang)
116
+ langs.add(lang);
110
117
  }
111
118
  for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
112
- langs.add(match[1]);
119
+ const lang = match[1].toLowerCase().trim();
120
+ if (lang)
121
+ langs.add(lang);
122
+ }
123
+ for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
124
+ const fullType = match[1].toLowerCase().trim();
125
+ const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
126
+ if (lang)
127
+ langs.add(lang);
113
128
  }
114
129
  if (!highlighter)
115
130
  return Array.from(langs);
@@ -844,15 +859,26 @@ function tokenizeAnsiWithTheme(theme, fileContents, options) {
844
859
  );
845
860
  }
846
861
  function dimColor(color) {
847
- const hexMatch = color.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);
862
+ const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
848
863
  if (hexMatch) {
849
- if (hexMatch[3]) {
850
- const alpha = Math.round(Number.parseInt(hexMatch[3], 16) / 2).toString(16).padStart(2, "0");
851
- return `#${hexMatch[1]}${hexMatch[2]}${alpha}`;
852
- } else if (hexMatch[2]) {
853
- return `#${hexMatch[1]}${hexMatch[2]}80`;
854
- } else {
855
- return `#${Array.from(hexMatch[1]).map((x) => `${x}${x}`).join("")}80`;
864
+ const hex = hexMatch[1];
865
+ if (hex.length === 8) {
866
+ const alpha = Math.round(Number.parseInt(hex.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
867
+ return `#${hex.slice(0, 6)}${alpha}`;
868
+ } else if (hex.length === 6) {
869
+ return `#${hex}80`;
870
+ } else if (hex.length === 4) {
871
+ const r = hex[0];
872
+ const g = hex[1];
873
+ const b = hex[2];
874
+ const a = hex[3];
875
+ const alpha = Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0");
876
+ return `#${r}${r}${g}${g}${b}${b}${alpha}`;
877
+ } else if (hex.length === 3) {
878
+ const r = hex[0];
879
+ const g = hex[1];
880
+ const b = hex[2];
881
+ return `#${r}${r}${g}${g}${b}${b}80`;
856
882
  }
857
883
  }
858
884
  const cssVarMatch = color.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
@@ -863,15 +889,15 @@ function dimColor(color) {
863
889
 
864
890
  function codeToTokensBase(internal, code, options = {}) {
865
891
  const {
866
- lang = "text",
867
892
  theme: themeName = internal.getLoadedThemes()[0]
868
893
  } = options;
894
+ const lang = internal.resolveLangAlias(options.lang || "text");
869
895
  if (isPlainLang(lang) || isNoneTheme(themeName))
870
896
  return splitLines(code).map((line) => [{ content: line[0], offset: line[1] }]);
871
897
  const { theme, colorMap } = internal.setTheme(themeName);
872
898
  if (lang === "ansi")
873
899
  return tokenizeAnsiWithTheme(theme, code, options);
874
- const _grammar = internal.getLanguage(lang);
900
+ const _grammar = internal.getLanguage(options.lang || "text");
875
901
  if (options.grammarState) {
876
902
  if (options.grammarState.lang !== _grammar.name) {
877
903
  throw new ShikiError$1(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
@@ -1386,6 +1412,8 @@ function tokensToHast(tokens, options, transformerContext, grammarState = getLas
1386
1412
  lineNode = transformer?.line?.call(context, lineNode, idx + 1) || lineNode;
1387
1413
  lineNodes.push(lineNode);
1388
1414
  lines.push(lineNode);
1415
+ } else if (structure === "inline") {
1416
+ lineNodes.push(lineNode);
1389
1417
  }
1390
1418
  });
1391
1419
  if (structure === "classic") {
@@ -1395,6 +1423,45 @@ function tokensToHast(tokens, options, transformerContext, grammarState = getLas
1395
1423
  for (const transformer of transformers)
1396
1424
  preNode = transformer?.pre?.call(context, preNode) || preNode;
1397
1425
  root.children.push(preNode);
1426
+ } else if (structure === "inline") {
1427
+ const syntheticLines = [];
1428
+ let currentLine = {
1429
+ type: "element",
1430
+ tagName: "span",
1431
+ properties: { class: "line" },
1432
+ children: []
1433
+ };
1434
+ for (const child of root.children) {
1435
+ if (child.type === "element" && child.tagName === "br") {
1436
+ syntheticLines.push(currentLine);
1437
+ currentLine = {
1438
+ type: "element",
1439
+ tagName: "span",
1440
+ properties: { class: "line" },
1441
+ children: []
1442
+ };
1443
+ } else if (child.type === "element" || child.type === "text") {
1444
+ currentLine.children.push(child);
1445
+ }
1446
+ }
1447
+ syntheticLines.push(currentLine);
1448
+ const syntheticCode = {
1449
+ type: "element",
1450
+ tagName: "code",
1451
+ properties: {},
1452
+ children: syntheticLines
1453
+ };
1454
+ let transformedCode = syntheticCode;
1455
+ for (const transformer of transformers)
1456
+ transformedCode = transformer?.code?.call(context, transformedCode) || transformedCode;
1457
+ root.children = [];
1458
+ for (let i = 0; i < transformedCode.children.length; i++) {
1459
+ if (i > 0)
1460
+ root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1461
+ const line = transformedCode.children[i];
1462
+ if (line.type === "element")
1463
+ root.children.push(...line.children);
1464
+ }
1398
1465
  }
1399
1466
  let result = root;
1400
1467
  for (const transformer of transformers)
@@ -1407,12 +1474,12 @@ function mergeWhitespaceTokens(tokens) {
1407
1474
  return tokens.map((line) => {
1408
1475
  const newLine = [];
1409
1476
  let carryOnContent = "";
1410
- let firstOffset = 0;
1477
+ let firstOffset;
1411
1478
  line.forEach((token, idx) => {
1412
1479
  const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1413
1480
  const couldMerge = !isDecorated;
1414
1481
  if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
1415
- if (!firstOffset)
1482
+ if (firstOffset === void 0)
1416
1483
  firstOffset = token.offset;
1417
1484
  carryOnContent += token.content;
1418
1485
  } else {
@@ -1432,7 +1499,7 @@ function mergeWhitespaceTokens(tokens) {
1432
1499
  token
1433
1500
  );
1434
1501
  }
1435
- firstOffset = 0;
1502
+ firstOffset = void 0;
1436
1503
  carryOnContent = "";
1437
1504
  } else {
1438
1505
  newLine.push(token);
@@ -1644,6 +1711,21 @@ class ShikiError extends Error {
1644
1711
  }
1645
1712
  }
1646
1713
 
1714
+ function resolveLangAlias(name, alias) {
1715
+ if (!alias)
1716
+ return name;
1717
+ if (alias[name]) {
1718
+ const resolved = /* @__PURE__ */ new Set([name]);
1719
+ while (alias[name]) {
1720
+ name = alias[name];
1721
+ if (resolved.has(name))
1722
+ throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
1723
+ resolved.add(name);
1724
+ }
1725
+ }
1726
+ return name;
1727
+ }
1728
+
1647
1729
  class Registry extends Registry$1 {
1648
1730
  constructor(_resolver, _themes, _langs, _alias = {}) {
1649
1731
  super(_resolver);
@@ -1694,15 +1776,7 @@ class Registry extends Registry$1 {
1694
1776
  this._syncRegistry.setTheme(textmateTheme);
1695
1777
  }
1696
1778
  getGrammar(name) {
1697
- if (this._alias[name]) {
1698
- const resolved = /* @__PURE__ */ new Set([name]);
1699
- while (this._alias[name]) {
1700
- name = this._alias[name];
1701
- if (resolved.has(name))
1702
- throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
1703
- resolved.add(name);
1704
- }
1705
- }
1779
+ name = resolveLangAlias(name, this._alias);
1706
1780
  return this._resolvedGrammars.get(name);
1707
1781
  }
1708
1782
  loadLanguage(lang) {
@@ -1769,8 +1843,9 @@ class Registry extends Registry$1 {
1769
1843
  resolveEmbeddedLanguages(lang) {
1770
1844
  this._langMap.set(lang.name, lang);
1771
1845
  this._langGraph.set(lang.name, lang);
1772
- if (lang.embeddedLangs) {
1773
- for (const embeddedLang of lang.embeddedLangs)
1846
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
1847
+ if (embedded) {
1848
+ for (const embeddedLang of embedded)
1774
1849
  this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
1775
1850
  }
1776
1851
  }
@@ -1837,6 +1912,9 @@ function createShikiInternalSync(options) {
1837
1912
  const resolver = new Resolver(options.engine, langs);
1838
1913
  const _registry = new Registry(resolver, themes, langs, options.langAlias);
1839
1914
  let _lastTheme;
1915
+ function resolveLangAlias$1(name) {
1916
+ return resolveLangAlias(name, options.langAlias);
1917
+ }
1840
1918
  function getLanguage(name) {
1841
1919
  ensureNotDisposed();
1842
1920
  const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
@@ -1908,6 +1986,7 @@ function createShikiInternalSync(options) {
1908
1986
  getLanguage,
1909
1987
  getLoadedThemes,
1910
1988
  getLoadedLanguages,
1989
+ resolveLangAlias: resolveLangAlias$1,
1911
1990
  loadLanguage,
1912
1991
  loadLanguageSync,
1913
1992
  loadTheme,
@@ -1991,16 +2070,16 @@ function makeSingletonHighlighterCore(createHighlighter) {
1991
2070
  }
1992
2071
  const getSingletonHighlighterCore = /* @__PURE__ */ makeSingletonHighlighterCore(createHighlighterCore);
1993
2072
 
1994
- function createdBundledHighlighter(options) {
2073
+ function createBundledHighlighter(options) {
1995
2074
  const bundledLanguages = options.langs;
1996
2075
  const bundledThemes = options.themes;
1997
2076
  const engine = options.engine;
1998
2077
  async function createHighlighter(options2) {
1999
2078
  function resolveLang(lang) {
2000
2079
  if (typeof lang === "string") {
2080
+ lang = options2.langAlias?.[lang] || lang;
2001
2081
  if (isSpecialLang(lang))
2002
2082
  return [];
2003
- lang = options2.langAlias?.[lang] || lang;
2004
2083
  const bundle = bundledLanguages[lang];
2005
2084
  if (!bundle)
2006
2085
  throw new ShikiError$1(`Language \`${lang}\` is not included in this bundle. You may want to load it from external source.`);
@@ -2117,6 +2196,7 @@ function createSingletonShorthands(createHighlighter, config) {
2117
2196
  }
2118
2197
  };
2119
2198
  }
2199
+ const createdBundledHighlighter = createBundledHighlighter;
2120
2200
 
2121
2201
  function createCssVariablesTheme(options = {}) {
2122
2202
  const {
@@ -2353,4 +2433,4 @@ function createCssVariablesTheme(options = {}) {
2353
2433
  return theme;
2354
2434
  }
2355
2435
 
2356
- export { addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createdBundledHighlighter, enableDeprecationWarnings, flatTokenVariants, getSingletonHighlighterCore, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };
2436
+ export { addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createBundledHighlighter, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createdBundledHighlighter, enableDeprecationWarnings, flatTokenVariants, getSingletonHighlighterCore, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "3.15.0",
4
+ "version": "3.18.0",
5
5
  "description": "Core of Shiki",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "@shikijs/vscode-textmate": "^10.0.2",
40
40
  "@types/hast": "^3.0.4",
41
41
  "hast-util-to-html": "^9.0.5",
42
- "@shikijs/types": "3.15.0"
42
+ "@shikijs/types": "3.18.0"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "unbuild",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/engine-javascript",
3
3
  "type": "module",
4
- "version": "3.17.0",
4
+ "version": "3.20.0",
5
5
  "description": "Engine for Shiki using JavaScript's native RegExp",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@shikijs/vscode-textmate": "^10.0.2",
32
32
  "oniguruma-to-es": "^4.3.4",
33
- "@shikijs/types": "3.17.0"
33
+ "@shikijs/types": "3.20.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "unbuild",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/engine-oniguruma",
3
3
  "type": "module",
4
- "version": "3.17.0",
4
+ "version": "3.20.0",
5
5
  "description": "Engine for Shiki using Oniguruma RegExp engine in WebAssembly",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@shikijs/vscode-textmate": "^10.0.2",
33
- "@shikijs/types": "3.17.0"
33
+ "@shikijs/types": "3.20.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "vscode-oniguruma": "1.7.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/langs",
3
3
  "type": "module",
4
- "version": "3.17.0",
4
+ "version": "3.20.0",
5
5
  "description": "TextMate grammars for Shiki in ESM",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -357,7 +357,7 @@
357
357
  "dist"
358
358
  ],
359
359
  "dependencies": {
360
- "@shikijs/types": "3.17.0"
360
+ "@shikijs/types": "3.20.0"
361
361
  },
362
362
  "devDependencies": {
363
363
  "tm-grammars": "^1.26.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/themes",
3
3
  "type": "module",
4
- "version": "3.17.0",
4
+ "version": "3.20.0",
5
5
  "description": "TextMate themes for Shiki in ESM",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -87,7 +87,7 @@
87
87
  "dist"
88
88
  ],
89
89
  "dependencies": {
90
- "@shikijs/types": "3.17.0"
90
+ "@shikijs/types": "3.20.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "tm-themes": "^1.10.13"
@@ -60,7 +60,32 @@ function parseComments(lines, jsx, matchAlgorithm) {
60
60
  if (head?.type !== "text")
61
61
  continue;
62
62
  const isLast = i === elements.length - 1;
63
- const match = matchToken(head.value, isLast);
63
+ let match = matchToken(head.value, isLast);
64
+ let additionalTokens;
65
+ if (!match && i > 0 && head.value.trim().startsWith("[!code")) {
66
+ const prevToken = elements[i - 1];
67
+ if (prevToken?.type === "element") {
68
+ const prevHead = prevToken.children.at(0);
69
+ if (prevHead?.type === "text" && prevHead.value.includes("//")) {
70
+ const combinedValue = prevHead.value + head.value;
71
+ const combinedMatch = matchToken(combinedValue, isLast);
72
+ if (combinedMatch) {
73
+ match = combinedMatch;
74
+ out.push({
75
+ info: combinedMatch,
76
+ line,
77
+ token: prevToken,
78
+ // Use the previous token as the main token
79
+ isLineCommentOnly: elements.length === 2 && prevToken.children.length === 1 && token.children.length === 1,
80
+ isJsxStyle: false,
81
+ additionalTokens: [token]
82
+ // Current token is the additional one
83
+ });
84
+ continue;
85
+ }
86
+ }
87
+ }
88
+ }
64
89
  if (!match)
65
90
  continue;
66
91
  if (jsx && !isLast && i !== 0) {
@@ -70,7 +95,8 @@ function parseComments(lines, jsx, matchAlgorithm) {
70
95
  line,
71
96
  token,
72
97
  isLineCommentOnly: elements.length === 3 && token.children.length === 1,
73
- isJsxStyle
98
+ isJsxStyle,
99
+ additionalTokens
74
100
  });
75
101
  } else {
76
102
  out.push({
@@ -78,7 +104,8 @@ function parseComments(lines, jsx, matchAlgorithm) {
78
104
  line,
79
105
  token,
80
106
  isLineCommentOnly: elements.length === 1 && token.children.length === 1,
81
- isJsxStyle: false
107
+ isJsxStyle: false,
108
+ additionalTokens
82
109
  });
83
110
  }
84
111
  }
@@ -158,11 +185,28 @@ function createCommentNotationTransformer(name, regex, onMatch, matchAlgorithm)
158
185
  } else if (isEmpty && comment.isJsxStyle) {
159
186
  comment.line.children.splice(comment.line.children.indexOf(comment.token) - 1, 3);
160
187
  } else if (isEmpty) {
188
+ if (comment.additionalTokens) {
189
+ for (let j = comment.additionalTokens.length - 1; j >= 0; j--) {
190
+ const additionalToken = comment.additionalTokens[j];
191
+ const tokenIndex = comment.line.children.indexOf(additionalToken);
192
+ if (tokenIndex !== -1) {
193
+ comment.line.children.splice(tokenIndex, 1);
194
+ }
195
+ }
196
+ }
161
197
  comment.line.children.splice(comment.line.children.indexOf(comment.token), 1);
162
198
  } else {
163
199
  const head = comment.token.children[0];
164
200
  if (head.type === "text") {
165
201
  head.value = comment.info.join("");
202
+ if (comment.additionalTokens) {
203
+ for (const additionalToken of comment.additionalTokens) {
204
+ const additionalHead = additionalToken.children[0];
205
+ if (additionalHead?.type === "text") {
206
+ additionalHead.value = "";
207
+ }
208
+ }
209
+ }
166
210
  }
167
211
  }
168
212
  }
@@ -197,28 +241,24 @@ function parseMetaHighlightString(meta) {
197
241
  if (!match)
198
242
  return null;
199
243
  const lines = match[1].split(",").flatMap((v) => {
200
- const num = v.split("-").map((v2) => Number.parseInt(v2, 10));
201
- if (num.length === 1)
202
- return [num[0]];
203
- return Array.from({ length: num[1] - num[0] + 1 }, (_, i) => i + num[0]);
244
+ const range = v.split("-").map((n) => Number.parseInt(n, 10));
245
+ return range.length === 1 ? [range[0]] : Array.from({ length: range[1] - range[0] + 1 }, (_, i) => range[0] + i);
204
246
  });
205
247
  return lines;
206
248
  }
207
249
  const symbol = Symbol("highlighted-lines");
208
250
  function transformerMetaHighlight(options = {}) {
209
- const {
210
- className = "highlighted"
211
- } = options;
251
+ const { className = "highlighted", zeroIndexed = false } = options;
212
252
  return {
213
253
  name: "@shikijs/transformers:meta-highlight",
214
- line(node, line) {
215
- if (!this.options.meta?.__raw) {
254
+ line(node, lineNumber) {
255
+ if (!this.options.meta?.__raw)
216
256
  return;
217
- }
218
257
  const meta = this.meta;
219
258
  meta[symbol] ??= parseMetaHighlightString(this.options.meta.__raw);
220
- const lines = meta[symbol] ?? [];
221
- if (lines.includes(line))
259
+ const highlightedLines = meta[symbol] ?? [];
260
+ const effectiveLine = zeroIndexed ? lineNumber - 1 : lineNumber;
261
+ if (highlightedLines.includes(effectiveLine))
222
262
  this.addClassToHast(node, className);
223
263
  return node;
224
264
  }
@@ -282,7 +322,7 @@ function transformerNotationMap(options = {}, name = "@shikijs/transformers:nota
282
322
  } = options;
283
323
  return createCommentNotationTransformer(
284
324
  name,
285
- new RegExp(`\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]`),
325
+ new RegExp(`#?\\s*\\[!code (${Object.keys(classMap).map(escapeRegExp).join("|")})(:\\d+)?\\]`, "gi"),
286
326
  function([_, match, range = ":1"], _line, _comment, lines, index) {
287
327
  const lineNum = Number.parseInt(range.slice(1), 10);
288
328
  for (let i = index; i < Math.min(index + lineNum, lines.length); i++) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/transformers",
3
3
  "type": "module",
4
- "version": "3.15.0",
4
+ "version": "3.18.0",
5
5
  "description": "Collective of common transformers transformers for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -27,8 +27,8 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@shikijs/core": "3.15.0",
31
- "@shikijs/types": "3.15.0"
30
+ "@shikijs/core": "3.18.0",
31
+ "@shikijs/types": "3.18.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/types",
3
3
  "type": "module",
4
- "version": "3.15.0",
4
+ "version": "3.18.0",
5
5
  "description": "Type definitions for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",