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.
- package/.data/content/contents.sqlite +0 -0
- package/.env +1 -1
- package/.nuxt/components.d.ts +480 -858
- package/.nuxt/content/components.ts +177 -320
- package/.nuxt/dev/index.mjs +542 -530
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.mjs +1 -1
- package/.nuxt/dist/server/client.precomputed.mjs +1 -1
- package/.nuxt/eslint-typegen.d.ts +60 -111
- package/.nuxt/eslint.config.d.mts +2 -2
- package/.nuxt/eslint.config.mjs +9 -9
- package/.nuxt/imports.d.ts +71 -70
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +13 -12
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +8 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
- package/.nuxt/nitro.json +4 -4
- package/.nuxt/nuxt.d.ts +6 -6
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +7 -6
- package/.nuxt/tsconfig.app.json +192 -188
- package/.nuxt/tsconfig.json +195 -191
- package/.nuxt/tsconfig.node.json +108 -104
- package/.nuxt/tsconfig.server.json +128 -127
- package/.nuxt/tsconfig.shared.json +62 -62
- package/.nuxt/types/build.d.ts +1 -1
- package/.nuxt/types/components.d.ts +480 -858
- package/.nuxt/types/i18n-plugin.d.ts +2 -2
- package/.nuxt/types/imports.d.ts +368 -366
- package/.nuxt/types/modules.d.ts +22 -24
- package/.nuxt/types/nitro-imports.d.ts +66 -66
- package/.nuxt/types/nitro-nuxt.d.ts +1 -1
- package/.nuxt/types/nitro-routes.d.ts +16 -16
- package/.nuxt/types/plugins.d.ts +37 -37
- package/.nuxt/types/runtime-config.d.ts +3 -1
- package/.output/nitro.json +2 -2
- package/.output/public/_ignis-config.json +6 -0
- package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
- package/.output/public/_nuxt/-z2jk33i.js +1 -0
- package/.output/public/_nuxt/3L5yAyVe.js +1 -0
- package/.output/public/_nuxt/8nlalpbc.js +1 -0
- package/.output/public/_nuxt/As5Zy5cG.js +1 -0
- package/.output/public/_nuxt/B-TDuiGE.js +1 -0
- package/.output/public/_nuxt/B04mZI32.js +1 -0
- package/.output/public/_nuxt/B3zmx-p1.js +1 -0
- package/.output/public/_nuxt/B4eQjLRH.js +1 -0
- package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
- package/.output/public/_nuxt/BB2ULiwb.js +1 -0
- package/.output/public/_nuxt/BEvX3xjB.js +1 -0
- package/.output/public/_nuxt/BFcGh2xo.js +1 -0
- package/.output/public/_nuxt/BFdGKCUO.js +1 -0
- package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
- package/.output/public/_nuxt/BeRTSVEP.js +1 -0
- package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
- package/.output/public/_nuxt/BvFz8iHh.js +1 -0
- package/.output/public/_nuxt/BwUgVogm.js +1 -0
- package/.output/public/_nuxt/C1fHW8CN.js +1 -0
- package/.output/public/_nuxt/C1getMtX.js +49 -0
- package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
- package/.output/public/_nuxt/CExm4AMI.js +1 -0
- package/.output/public/_nuxt/CHcd0nHy.js +1 -0
- package/.output/public/_nuxt/CTbEZMxa.js +1 -0
- package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
- package/.output/public/_nuxt/Cna7T5zY.js +1 -0
- package/.output/public/_nuxt/CnghUxEk.js +1 -0
- package/.output/public/_nuxt/CvJSUdvI.js +1 -0
- package/.output/public/_nuxt/CwgBHvd_.js +1 -0
- package/.output/public/_nuxt/D1nIr4-J.js +1 -0
- package/.output/public/_nuxt/D2atCez-.js +1 -0
- package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
- package/.output/public/_nuxt/D5duQQkG.js +1 -0
- package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
- package/.output/public/_nuxt/DB3c8m3K.js +1 -0
- package/.output/public/_nuxt/DFP1sKjc.js +1 -0
- package/.output/public/_nuxt/DI5_qtj_.js +1 -0
- package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
- package/.output/public/_nuxt/DN3AlbuD.js +1 -0
- package/.output/public/_nuxt/DPDbQA17.js +1 -0
- package/.output/public/_nuxt/DSErOj49.js +1 -0
- package/.output/public/_nuxt/DXrSmKSt.js +1 -0
- package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
- package/.output/public/_nuxt/DgCebJqk.js +1 -0
- package/.output/public/_nuxt/DhhwMwQM.js +1 -0
- package/.output/public/_nuxt/Djhwz52y.js +1 -0
- package/.output/public/_nuxt/DnE1KSqg.js +1 -0
- package/.output/public/_nuxt/DncFEy6i.js +1 -0
- package/.output/public/_nuxt/DpZCZGQO.js +1 -0
- package/.output/public/_nuxt/Dx95U2T3.js +1 -0
- package/.output/public/_nuxt/FUdAqSn9.js +9 -0
- package/.output/public/_nuxt/GvxWNFgu.js +1 -0
- package/.output/public/_nuxt/HgKyGH3C.js +1 -0
- package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
- package/.output/public/_nuxt/LpFrvoF7.js +1 -0
- package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
- package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
- package/.output/public/_nuxt/U1_7ggcx.js +1 -0
- package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
- package/.output/public/_nuxt/ahq42_9S.js +1 -0
- package/.output/public/_nuxt/b0AtYQ73.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
- package/.output/public/_nuxt/efC_w6sP.js +1 -0
- package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
- package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
- package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
- package/.output/public/_nuxt/ulE7jr93.js +1 -0
- package/.output/public/_nuxt/xHyrElgL.js +1 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +1176 -1775
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
- package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
- package/.output/server/chunks/raw/headers.mjs.map +1 -1
- package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
- package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +27 -2
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
- package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
- package/.output/server/chunks/virtual/global-sources.mjs +0 -8
- package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/index.mjs.map +1 -1
- 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
- package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
- package/.output/server/node_modules/@intlify/core/package.json +3 -3
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
- package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
- package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
- package/.output/server/node_modules/@intlify/shared/package.json +1 -1
- package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
- package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
- package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
- package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
- package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
- package/.output/server/node_modules/@poppinss/string/package.json +28 -25
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
- package/.output/server/node_modules/@shikijs/core/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
- package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
- package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
- package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
- package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
- package/.output/server/node_modules/@shikijs/types/package.json +1 -1
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
- package/.output/server/node_modules/devalue/index.js +1 -0
- package/.output/server/node_modules/devalue/package.json +1 -1
- package/.output/server/node_modules/devalue/src/parse.js +5 -1
- package/.output/server/node_modules/devalue/src/stringify.js +7 -3
- package/.output/server/node_modules/devalue/src/uneval.js +7 -3
- package/.output/server/node_modules/devalue/src/utils.js +5 -1
- package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
- package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
- package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
- package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
- package/.output/server/node_modules/jose/package.json +1 -1
- package/.output/server/node_modules/node-mock-http/package.json +10 -10
- package/.output/server/node_modules/regex/package.json +6 -6
- package/.output/server/node_modules/regex/src/atomic.js +6 -3
- package/.output/server/node_modules/shiki/package.json +7 -7
- package/.output/server/node_modules/strnum/package.json +1 -1
- package/.output/server/node_modules/strnum/strnum.js +1 -1
- package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
- package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
- package/.output/server/node_modules/vue-router/package.json +2 -3
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
- package/.output/server/node_modules/yaml/dist/errors.js +1 -1
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
- package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
- package/.output/server/node_modules/yaml/package.json +4 -4
- package/.output/server/package.json +35 -38
- package/bin/set-app-vue.js +1 -1
- package/bin/set-css.js +1 -1
- package/bin/set-eslint.js +1 -1
- package/bin/setup.js +3 -3
- package/eslint.config.mjs +7 -4
- package/package.json +7 -7
- package/public/_ignis-config.json +6 -0
- package/vitest.config.ts +1 -3
- package/.output/public/_nuxt/-PRJHlJd.js +0 -1
- package/.output/public/_nuxt/38NkCNo_.js +0 -0
- package/.output/public/_nuxt/4p0_eEbF.js +0 -0
- package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
- package/.output/public/_nuxt/5msm7UDY.js +0 -0
- package/.output/public/_nuxt/7I_cTX05.js +0 -1
- package/.output/public/_nuxt/7N8aGG8C.js +0 -1
- package/.output/public/_nuxt/9j0d6I4O.js +0 -0
- package/.output/public/_nuxt/B7b1sBVf.js +0 -0
- package/.output/public/_nuxt/B7pFyPXj.js +0 -1
- package/.output/public/_nuxt/B8s7UrMM.js +0 -1
- package/.output/public/_nuxt/BHBmrOu8.js +0 -1
- package/.output/public/_nuxt/BHIv_dM4.js +0 -0
- package/.output/public/_nuxt/BI2n4fU-.js +0 -0
- package/.output/public/_nuxt/BJos6QuZ.js +0 -0
- package/.output/public/_nuxt/BKsXoEBs.js +0 -0
- package/.output/public/_nuxt/BNKvjWkT.js +0 -1
- package/.output/public/_nuxt/BQmtXkqc.js +0 -1
- package/.output/public/_nuxt/BQuCJQB8.js +0 -0
- package/.output/public/_nuxt/BSEIdlOb.js +0 -0
- package/.output/public/_nuxt/BST7mczs.js +0 -1
- package/.output/public/_nuxt/BTAjWPAo.js +0 -1
- package/.output/public/_nuxt/BYIIksjz.js +0 -0
- package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
- package/.output/public/_nuxt/Bg-6qayI.js +0 -1
- package/.output/public/_nuxt/BgP-osMP.js +0 -1
- package/.output/public/_nuxt/BiCkyLWS.js +0 -1
- package/.output/public/_nuxt/BjN_umGo.js +0 -1
- package/.output/public/_nuxt/BqK0HYmw.js +0 -1
- package/.output/public/_nuxt/BrSteMIA.js +0 -1
- package/.output/public/_nuxt/C-MeLOeF.js +0 -1
- package/.output/public/_nuxt/C-OKZMJp.js +0 -1
- package/.output/public/_nuxt/C6tJinWY.js +0 -0
- package/.output/public/_nuxt/C7lLQr2h.js +0 -0
- package/.output/public/_nuxt/CDLGLk8m.js +0 -1
- package/.output/public/_nuxt/CDT62st6.js +0 -1
- package/.output/public/_nuxt/CFimyBH-.js +0 -0
- package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
- package/.output/public/_nuxt/CKPnIC-C.js +0 -0
- package/.output/public/_nuxt/COPw3T3p.js +0 -1
- package/.output/public/_nuxt/CQGFUxxa.js +0 -1
- package/.output/public/_nuxt/CSX_cLY6.js +0 -1
- package/.output/public/_nuxt/CaVNnfk7.js +0 -0
- package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
- package/.output/public/_nuxt/CdygaddQ.js +0 -9
- package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
- package/.output/public/_nuxt/CfmMK6-y.js +0 -1
- package/.output/public/_nuxt/Civ5r6YF.js +0 -1
- package/.output/public/_nuxt/CkdnMzBA.js +0 -0
- package/.output/public/_nuxt/CnlJVizr.js +0 -1
- package/.output/public/_nuxt/Coqgx10n.js +0 -0
- package/.output/public/_nuxt/CxMUMwzI.js +0 -1
- package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
- package/.output/public/_nuxt/CzKgiVVn.js +0 -1
- package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
- package/.output/public/_nuxt/D2vgCRoc.js +0 -1
- package/.output/public/_nuxt/D4fuXfD_.js +0 -1
- package/.output/public/_nuxt/D5IuxRu4.js +0 -1
- package/.output/public/_nuxt/D5j9Embb.js +0 -1
- package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
- package/.output/public/_nuxt/DAIwjxRT.js +0 -0
- package/.output/public/_nuxt/DBEY94Mo.js +0 -0
- package/.output/public/_nuxt/DCQOMtdo.js +0 -1
- package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
- package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
- package/.output/public/_nuxt/DL4qe-W_.js +0 -0
- package/.output/public/_nuxt/DLKI6lgi.js +0 -0
- package/.output/public/_nuxt/DOAeoYpG.js +0 -0
- package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
- package/.output/public/_nuxt/DP_txrAq.js +0 -1
- package/.output/public/_nuxt/DQKS5ddY.js +0 -1
- package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
- package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
- package/.output/public/_nuxt/DdWDmJe7.js +0 -0
- package/.output/public/_nuxt/Df59gZou.js +0 -0
- package/.output/public/_nuxt/DiIccoHR.js +0 -0
- package/.output/public/_nuxt/DiL3rzK6.js +0 -1
- package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
- package/.output/public/_nuxt/DmRrrdJv.js +0 -1
- package/.output/public/_nuxt/Do5nYv4E.js +0 -0
- package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
- package/.output/public/_nuxt/DrE64K_R.js +0 -1
- package/.output/public/_nuxt/DrskXsQH.js +0 -1
- package/.output/public/_nuxt/Ds7AWph0.js +0 -0
- package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
- package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
- package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
- package/.output/public/_nuxt/QyE4cqYn.js +0 -1
- package/.output/public/_nuxt/Tcmkoyas.js +0 -1
- package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
- package/.output/public/_nuxt/VOEA7UHD.js +0 -0
- package/.output/public/_nuxt/WOOfaOjG.js +0 -1
- package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
- package/.output/public/_nuxt/ZDbum-dK.js +0 -1
- package/.output/public/_nuxt/ZTY82FYd.js +0 -0
- package/.output/public/_nuxt/asVu8S_S.js +0 -51
- package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
- package/.output/public/_nuxt/cjlVjclE.js +0 -1
- package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
- package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
- package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
- package/.output/public/_nuxt/gmjYz5n6.js +0 -0
- package/.output/public/_nuxt/iatO0zkI.js +0 -1
- package/.output/public/_nuxt/jieRiiOw.js +0 -0
- package/.output/public/_nuxt/lAhMwKxb.js +0 -1
- package/.output/public/_nuxt/mHcxE7OD.js +0 -0
- package/.output/public/_nuxt/n17zLPF6.js +0 -0
- package/.output/public/_nuxt/ncv2QjU2.js +0 -1
- package/.output/public/_nuxt/osXHzmfu.js +0 -1
- package/.output/public/_nuxt/plapqmiu.js +0 -1
- package/.output/public/_nuxt/pnNmDVjA.js +0 -0
- package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
- package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
- package/.output/public/_nuxt/t9C3L8ir.js +0 -1
- package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
- package/.output/public/_nuxt/z6h75OXJ.js +0 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
- package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
- package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
- package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
- package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
- package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
- package/.output/server/node_modules/bytes/index.js +0 -170
- package/.output/server/node_modules/bytes/package.json +0 -42
- package/.output/server/node_modules/truncatise/index.js +0 -188
- package/.output/server/node_modules/truncatise/package.json +0 -36
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
- /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(
|
|
106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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})
|
|
862
|
+
const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
|
|
848
863
|
if (hexMatch) {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
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
|
|
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 (
|
|
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
|
-
|
|
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
|
-
|
|
1773
|
-
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
|
201
|
-
|
|
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,
|
|
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
|
|
221
|
-
|
|
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(
|
|
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.
|
|
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.
|
|
31
|
-
"@shikijs/types": "3.
|
|
30
|
+
"@shikijs/core": "3.18.0",
|
|
31
|
+
"@shikijs/types": "3.18.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "unbuild",
|