rn-shiki 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (375) hide show
  1. package/lib/commonjs/components/syntax/SyntaxHighlighter.js +2 -2
  2. package/lib/commonjs/syntax/highlighter/index.js +1 -0
  3. package/lib/commonjs/syntax/highlighter/index.js.map +1 -1
  4. package/lib/module/components/syntax/SyntaxHighlighter.js +2 -2
  5. package/lib/module/components/syntax/SyntaxHighlighter.js.map +1 -1
  6. package/lib/module/syntax/highlighter/index.js +1 -0
  7. package/lib/module/syntax/highlighter/index.js.map +1 -1
  8. package/lib/typescript/syntax/highlighter/index.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. package/scripts/build.js +7 -11
  11. package/src/components/syntax/SyntaxHighlighter.tsx +2 -2
  12. package/src/types/shiki.d.ts +4 -3
  13. package/tsconfig.json +5 -0
  14. package/vendor/shiki/langs/abap.d.ts +3 -5
  15. package/vendor/shiki/langs/actionscript-3.d.ts +3 -5
  16. package/vendor/shiki/langs/ada.d.ts +3 -5
  17. package/vendor/shiki/langs/adoc.d.ts +3 -5
  18. package/vendor/shiki/langs/angular-expression.d.ts +3 -5
  19. package/vendor/shiki/langs/angular-html.d.ts +3 -5
  20. package/vendor/shiki/langs/angular-inline-style.d.ts +3 -5
  21. package/vendor/shiki/langs/angular-inline-template.d.ts +3 -5
  22. package/vendor/shiki/langs/angular-let-declaration.d.ts +3 -5
  23. package/vendor/shiki/langs/angular-template-blocks.d.ts +3 -5
  24. package/vendor/shiki/langs/angular-template.d.ts +3 -5
  25. package/vendor/shiki/langs/angular-ts.d.ts +3 -5
  26. package/vendor/shiki/langs/apache.d.ts +3 -5
  27. package/vendor/shiki/langs/apex.d.ts +3 -5
  28. package/vendor/shiki/langs/apl.d.ts +3 -5
  29. package/vendor/shiki/langs/applescript.d.ts +3 -5
  30. package/vendor/shiki/langs/ara.d.ts +3 -5
  31. package/vendor/shiki/langs/asciidoc.d.ts +3 -5
  32. package/vendor/shiki/langs/asm.d.ts +3 -5
  33. package/vendor/shiki/langs/astro.d.ts +3 -5
  34. package/vendor/shiki/langs/awk.d.ts +3 -5
  35. package/vendor/shiki/langs/ballerina.d.ts +3 -5
  36. package/vendor/shiki/langs/bash.d.ts +3 -5
  37. package/vendor/shiki/langs/bat.d.ts +3 -5
  38. package/vendor/shiki/langs/batch.d.ts +3 -5
  39. package/vendor/shiki/langs/be.d.ts +3 -5
  40. package/vendor/shiki/langs/beancount.d.ts +3 -5
  41. package/vendor/shiki/langs/berry.d.ts +3 -5
  42. package/vendor/shiki/langs/bibtex.d.ts +3 -5
  43. package/vendor/shiki/langs/bicep.d.ts +3 -5
  44. package/vendor/shiki/langs/blade.d.ts +3 -5
  45. package/vendor/shiki/langs/c.d.ts +3 -5
  46. package/vendor/shiki/langs/cadence.d.ts +3 -5
  47. package/vendor/shiki/langs/cdc.d.ts +3 -5
  48. package/vendor/shiki/langs/clarity.d.ts +3 -5
  49. package/vendor/shiki/langs/clj.d.ts +3 -5
  50. package/vendor/shiki/langs/clojure.d.ts +3 -5
  51. package/vendor/shiki/langs/closure-templates.d.ts +3 -5
  52. package/vendor/shiki/langs/cmake.d.ts +3 -5
  53. package/vendor/shiki/langs/cmd.d.ts +3 -5
  54. package/vendor/shiki/langs/cobol.d.ts +3 -5
  55. package/vendor/shiki/langs/codeowners.d.ts +3 -5
  56. package/vendor/shiki/langs/codeql.d.ts +3 -5
  57. package/vendor/shiki/langs/coffee.d.ts +3 -5
  58. package/vendor/shiki/langs/coffeescript.d.ts +3 -5
  59. package/vendor/shiki/langs/common-lisp.d.ts +3 -5
  60. package/vendor/shiki/langs/console.d.ts +3 -5
  61. package/vendor/shiki/langs/coq.d.ts +3 -5
  62. package/vendor/shiki/langs/cpp-macro.d.ts +3 -5
  63. package/vendor/shiki/langs/cpp.d.ts +3 -5
  64. package/vendor/shiki/langs/cql.d.ts +3 -5
  65. package/vendor/shiki/langs/crystal.d.ts +3 -5
  66. package/vendor/shiki/langs/cs.d.ts +3 -5
  67. package/vendor/shiki/langs/csharp.d.ts +3 -5
  68. package/vendor/shiki/langs/css.d.ts +3 -5
  69. package/vendor/shiki/langs/csv.d.ts +3 -5
  70. package/vendor/shiki/langs/cue.d.ts +3 -5
  71. package/vendor/shiki/langs/cypher.d.ts +3 -5
  72. package/vendor/shiki/langs/d.d.ts +3 -5
  73. package/vendor/shiki/langs/dart.d.ts +3 -5
  74. package/vendor/shiki/langs/dax.d.ts +3 -5
  75. package/vendor/shiki/langs/desktop.d.ts +3 -5
  76. package/vendor/shiki/langs/diff.d.ts +3 -5
  77. package/vendor/shiki/langs/docker.d.ts +3 -5
  78. package/vendor/shiki/langs/dockerfile.d.ts +3 -5
  79. package/vendor/shiki/langs/dotenv.d.ts +3 -5
  80. package/vendor/shiki/langs/dream-maker.d.ts +3 -5
  81. package/vendor/shiki/langs/edge.d.ts +3 -5
  82. package/vendor/shiki/langs/elisp.d.ts +3 -5
  83. package/vendor/shiki/langs/elixir.d.ts +3 -5
  84. package/vendor/shiki/langs/elm.d.ts +3 -5
  85. package/vendor/shiki/langs/emacs-lisp.d.ts +3 -5
  86. package/vendor/shiki/langs/erb.d.ts +3 -5
  87. package/vendor/shiki/langs/erl.d.ts +3 -5
  88. package/vendor/shiki/langs/erlang.d.ts +3 -5
  89. package/vendor/shiki/langs/es-tag-css.d.ts +3 -5
  90. package/vendor/shiki/langs/es-tag-glsl.d.ts +3 -5
  91. package/vendor/shiki/langs/es-tag-html.d.ts +3 -5
  92. package/vendor/shiki/langs/es-tag-sql.d.ts +3 -5
  93. package/vendor/shiki/langs/es-tag-xml.d.ts +3 -5
  94. package/vendor/shiki/langs/f.d.ts +3 -5
  95. package/vendor/shiki/langs/f03.d.ts +3 -5
  96. package/vendor/shiki/langs/f08.d.ts +3 -5
  97. package/vendor/shiki/langs/f18.d.ts +3 -5
  98. package/vendor/shiki/langs/f77.d.ts +3 -5
  99. package/vendor/shiki/langs/f90.d.ts +3 -5
  100. package/vendor/shiki/langs/f95.d.ts +3 -5
  101. package/vendor/shiki/langs/fennel.d.ts +3 -5
  102. package/vendor/shiki/langs/fish.d.ts +3 -5
  103. package/vendor/shiki/langs/fluent.d.ts +3 -5
  104. package/vendor/shiki/langs/for.d.ts +3 -5
  105. package/vendor/shiki/langs/fortran-fixed-form.d.ts +3 -5
  106. package/vendor/shiki/langs/fortran-free-form.d.ts +3 -5
  107. package/vendor/shiki/langs/fs.d.ts +3 -5
  108. package/vendor/shiki/langs/fsharp.d.ts +3 -5
  109. package/vendor/shiki/langs/fsl.d.ts +3 -5
  110. package/vendor/shiki/langs/ftl.d.ts +3 -5
  111. package/vendor/shiki/langs/gdresource.d.ts +3 -5
  112. package/vendor/shiki/langs/gdscript.d.ts +3 -5
  113. package/vendor/shiki/langs/gdshader.d.ts +3 -5
  114. package/vendor/shiki/langs/genie.d.ts +3 -5
  115. package/vendor/shiki/langs/gherkin.d.ts +3 -5
  116. package/vendor/shiki/langs/git-commit.d.ts +3 -5
  117. package/vendor/shiki/langs/git-rebase.d.ts +3 -5
  118. package/vendor/shiki/langs/gjs.d.ts +3 -5
  119. package/vendor/shiki/langs/gleam.d.ts +3 -5
  120. package/vendor/shiki/langs/glimmer-js.d.ts +3 -5
  121. package/vendor/shiki/langs/glimmer-ts.d.ts +3 -5
  122. package/vendor/shiki/langs/glsl.d.ts +3 -5
  123. package/vendor/shiki/langs/gnuplot.d.ts +3 -5
  124. package/vendor/shiki/langs/go.d.ts +3 -5
  125. package/vendor/shiki/langs/gql.d.ts +3 -5
  126. package/vendor/shiki/langs/graphql.d.ts +3 -5
  127. package/vendor/shiki/langs/groovy.d.ts +3 -5
  128. package/vendor/shiki/langs/gts.d.ts +3 -5
  129. package/vendor/shiki/langs/hack.d.ts +3 -5
  130. package/vendor/shiki/langs/haml.d.ts +3 -5
  131. package/vendor/shiki/langs/handlebars.d.ts +3 -5
  132. package/vendor/shiki/langs/haskell.d.ts +3 -5
  133. package/vendor/shiki/langs/haxe.d.ts +3 -5
  134. package/vendor/shiki/langs/hbs.d.ts +3 -5
  135. package/vendor/shiki/langs/hcl.d.ts +3 -5
  136. package/vendor/shiki/langs/hjson.d.ts +3 -5
  137. package/vendor/shiki/langs/hlsl.d.ts +3 -5
  138. package/vendor/shiki/langs/hs.d.ts +3 -5
  139. package/vendor/shiki/langs/html-derivative.d.ts +3 -5
  140. package/vendor/shiki/langs/html.d.ts +3 -5
  141. package/vendor/shiki/langs/http.d.ts +3 -5
  142. package/vendor/shiki/langs/hxml.d.ts +3 -5
  143. package/vendor/shiki/langs/hy.d.ts +3 -5
  144. package/vendor/shiki/langs/imba.d.ts +3 -5
  145. package/vendor/shiki/langs/ini.d.ts +3 -5
  146. package/vendor/shiki/langs/jade.d.ts +3 -5
  147. package/vendor/shiki/langs/java.d.ts +3 -5
  148. package/vendor/shiki/langs/javascript.d.ts +3 -5
  149. package/vendor/shiki/langs/jinja-html.d.ts +3 -5
  150. package/vendor/shiki/langs/jinja.d.ts +3 -5
  151. package/vendor/shiki/langs/jison.d.ts +3 -5
  152. package/vendor/shiki/langs/jl.d.ts +3 -5
  153. package/vendor/shiki/langs/js.d.ts +3 -5
  154. package/vendor/shiki/langs/json.d.ts +3 -5
  155. package/vendor/shiki/langs/json5.d.ts +3 -5
  156. package/vendor/shiki/langs/jsonc.d.ts +3 -5
  157. package/vendor/shiki/langs/jsonl.d.ts +3 -5
  158. package/vendor/shiki/langs/jsonnet.d.ts +3 -5
  159. package/vendor/shiki/langs/jssm.d.ts +3 -5
  160. package/vendor/shiki/langs/jsx.d.ts +3 -5
  161. package/vendor/shiki/langs/julia.d.ts +3 -5
  162. package/vendor/shiki/langs/kotlin.d.ts +3 -5
  163. package/vendor/shiki/langs/kql.d.ts +3 -5
  164. package/vendor/shiki/langs/kt.d.ts +3 -5
  165. package/vendor/shiki/langs/kts.d.ts +3 -5
  166. package/vendor/shiki/langs/kusto.d.ts +3 -5
  167. package/vendor/shiki/langs/latex.d.ts +3 -5
  168. package/vendor/shiki/langs/lean.d.ts +3 -5
  169. package/vendor/shiki/langs/lean4.d.ts +3 -5
  170. package/vendor/shiki/langs/less.d.ts +3 -5
  171. package/vendor/shiki/langs/liquid.d.ts +3 -5
  172. package/vendor/shiki/langs/lisp.d.ts +3 -5
  173. package/vendor/shiki/langs/lit.d.ts +3 -5
  174. package/vendor/shiki/langs/log.d.ts +3 -5
  175. package/vendor/shiki/langs/logo.d.ts +3 -5
  176. package/vendor/shiki/langs/lua.d.ts +3 -5
  177. package/vendor/shiki/langs/luau.d.ts +3 -5
  178. package/vendor/shiki/langs/make.d.ts +3 -5
  179. package/vendor/shiki/langs/makefile.d.ts +3 -5
  180. package/vendor/shiki/langs/markdown-vue.d.ts +3 -5
  181. package/vendor/shiki/langs/markdown.d.ts +3 -5
  182. package/vendor/shiki/langs/marko.d.ts +3 -5
  183. package/vendor/shiki/langs/matlab.d.ts +3 -5
  184. package/vendor/shiki/langs/md.d.ts +3 -5
  185. package/vendor/shiki/langs/mdc.d.ts +3 -5
  186. package/vendor/shiki/langs/mdx.d.ts +3 -5
  187. package/vendor/shiki/langs/mediawiki.d.ts +3 -5
  188. package/vendor/shiki/langs/mermaid.d.ts +3 -5
  189. package/vendor/shiki/langs/mips.d.ts +3 -5
  190. package/vendor/shiki/langs/mipsasm.d.ts +3 -5
  191. package/vendor/shiki/langs/mmd.d.ts +3 -5
  192. package/vendor/shiki/langs/mojo.d.ts +3 -5
  193. package/vendor/shiki/langs/move.d.ts +3 -5
  194. package/vendor/shiki/langs/nar.d.ts +3 -5
  195. package/vendor/shiki/langs/narrat.d.ts +3 -5
  196. package/vendor/shiki/langs/nextflow.d.ts +3 -5
  197. package/vendor/shiki/langs/nf.d.ts +3 -5
  198. package/vendor/shiki/langs/nginx.d.ts +3 -5
  199. package/vendor/shiki/langs/nim.d.ts +3 -5
  200. package/vendor/shiki/langs/nix.d.ts +3 -5
  201. package/vendor/shiki/langs/nu.d.ts +3 -5
  202. package/vendor/shiki/langs/nushell.d.ts +3 -5
  203. package/vendor/shiki/langs/objc.d.ts +3 -5
  204. package/vendor/shiki/langs/objective-c.d.ts +3 -5
  205. package/vendor/shiki/langs/objective-cpp.d.ts +3 -5
  206. package/vendor/shiki/langs/ocaml.d.ts +3 -5
  207. package/vendor/shiki/langs/pascal.d.ts +3 -5
  208. package/vendor/shiki/langs/perl.d.ts +3 -5
  209. package/vendor/shiki/langs/perl6.d.ts +3 -5
  210. package/vendor/shiki/langs/php.d.ts +3 -5
  211. package/vendor/shiki/langs/plsql.d.ts +3 -5
  212. package/vendor/shiki/langs/po.d.ts +3 -5
  213. package/vendor/shiki/langs/postcss.d.ts +3 -5
  214. package/vendor/shiki/langs/pot.d.ts +3 -5
  215. package/vendor/shiki/langs/potx.d.ts +3 -5
  216. package/vendor/shiki/langs/powerquery.d.ts +3 -5
  217. package/vendor/shiki/langs/powershell.d.ts +3 -5
  218. package/vendor/shiki/langs/prisma.d.ts +3 -5
  219. package/vendor/shiki/langs/prolog.d.ts +3 -5
  220. package/vendor/shiki/langs/properties.d.ts +3 -5
  221. package/vendor/shiki/langs/proto.d.ts +3 -5
  222. package/vendor/shiki/langs/protobuf.d.ts +3 -5
  223. package/vendor/shiki/langs/ps.d.ts +3 -5
  224. package/vendor/shiki/langs/ps1.d.ts +3 -5
  225. package/vendor/shiki/langs/pug.d.ts +3 -5
  226. package/vendor/shiki/langs/puppet.d.ts +3 -5
  227. package/vendor/shiki/langs/purescript.d.ts +3 -5
  228. package/vendor/shiki/langs/py.d.ts +3 -5
  229. package/vendor/shiki/langs/python.d.ts +3 -5
  230. package/vendor/shiki/langs/ql.d.ts +3 -5
  231. package/vendor/shiki/langs/qml.d.ts +3 -5
  232. package/vendor/shiki/langs/qmldir.d.ts +3 -5
  233. package/vendor/shiki/langs/qss.d.ts +3 -5
  234. package/vendor/shiki/langs/r.d.ts +3 -5
  235. package/vendor/shiki/langs/racket.d.ts +3 -5
  236. package/vendor/shiki/langs/raku.d.ts +3 -5
  237. package/vendor/shiki/langs/razor.d.ts +3 -5
  238. package/vendor/shiki/langs/rb.d.ts +3 -5
  239. package/vendor/shiki/langs/reg.d.ts +3 -5
  240. package/vendor/shiki/langs/regex.d.ts +3 -5
  241. package/vendor/shiki/langs/regexp.d.ts +3 -5
  242. package/vendor/shiki/langs/rel.d.ts +3 -5
  243. package/vendor/shiki/langs/riscv.d.ts +3 -5
  244. package/vendor/shiki/langs/rs.d.ts +3 -5
  245. package/vendor/shiki/langs/rst.d.ts +3 -5
  246. package/vendor/shiki/langs/ruby.d.ts +3 -5
  247. package/vendor/shiki/langs/rust.d.ts +3 -5
  248. package/vendor/shiki/langs/sas.d.ts +3 -5
  249. package/vendor/shiki/langs/sass.d.ts +3 -5
  250. package/vendor/shiki/langs/scala.d.ts +3 -5
  251. package/vendor/shiki/langs/scheme.d.ts +3 -5
  252. package/vendor/shiki/langs/scss.d.ts +3 -5
  253. package/vendor/shiki/langs/sh.d.ts +3 -5
  254. package/vendor/shiki/langs/shader.d.ts +3 -5
  255. package/vendor/shiki/langs/shaderlab.d.ts +3 -5
  256. package/vendor/shiki/langs/shell.d.ts +3 -5
  257. package/vendor/shiki/langs/shellscript.d.ts +3 -5
  258. package/vendor/shiki/langs/shellsession.d.ts +3 -5
  259. package/vendor/shiki/langs/smalltalk.d.ts +3 -5
  260. package/vendor/shiki/langs/solidity.d.ts +3 -5
  261. package/vendor/shiki/langs/soy.d.ts +3 -5
  262. package/vendor/shiki/langs/sparql.d.ts +3 -5
  263. package/vendor/shiki/langs/spl.d.ts +3 -5
  264. package/vendor/shiki/langs/splunk.d.ts +3 -5
  265. package/vendor/shiki/langs/sql.d.ts +3 -5
  266. package/vendor/shiki/langs/ssh-config.d.ts +3 -5
  267. package/vendor/shiki/langs/stata.d.ts +3 -5
  268. package/vendor/shiki/langs/styl.d.ts +3 -5
  269. package/vendor/shiki/langs/stylus.d.ts +3 -5
  270. package/vendor/shiki/langs/svelte.d.ts +3 -5
  271. package/vendor/shiki/langs/swift.d.ts +3 -5
  272. package/vendor/shiki/langs/system-verilog.d.ts +3 -5
  273. package/vendor/shiki/langs/systemd.d.ts +3 -5
  274. package/vendor/shiki/langs/tasl.d.ts +3 -5
  275. package/vendor/shiki/langs/tcl.d.ts +3 -5
  276. package/vendor/shiki/langs/templ.d.ts +3 -5
  277. package/vendor/shiki/langs/terraform.d.ts +3 -5
  278. package/vendor/shiki/langs/tex.d.ts +3 -5
  279. package/vendor/shiki/langs/tf.d.ts +3 -5
  280. package/vendor/shiki/langs/tfvars.d.ts +3 -5
  281. package/vendor/shiki/langs/toml.d.ts +3 -5
  282. package/vendor/shiki/langs/ts-tags.d.ts +3 -5
  283. package/vendor/shiki/langs/ts.d.ts +3 -5
  284. package/vendor/shiki/langs/tsp.d.ts +3 -5
  285. package/vendor/shiki/langs/tsv.d.ts +3 -5
  286. package/vendor/shiki/langs/tsx.d.ts +3 -5
  287. package/vendor/shiki/langs/turtle.d.ts +3 -5
  288. package/vendor/shiki/langs/twig.d.ts +3 -5
  289. package/vendor/shiki/langs/typ.d.ts +3 -5
  290. package/vendor/shiki/langs/typescript.d.ts +3 -5
  291. package/vendor/shiki/langs/typespec.d.ts +3 -5
  292. package/vendor/shiki/langs/typst.d.ts +3 -5
  293. package/vendor/shiki/langs/v.d.ts +3 -5
  294. package/vendor/shiki/langs/vala.d.ts +3 -5
  295. package/vendor/shiki/langs/vb.d.ts +3 -5
  296. package/vendor/shiki/langs/verilog.d.ts +3 -5
  297. package/vendor/shiki/langs/vhdl.d.ts +3 -5
  298. package/vendor/shiki/langs/vim.d.ts +3 -5
  299. package/vendor/shiki/langs/viml.d.ts +3 -5
  300. package/vendor/shiki/langs/vimscript.d.ts +3 -5
  301. package/vendor/shiki/langs/vue-directives.d.ts +3 -5
  302. package/vendor/shiki/langs/vue-html.d.ts +3 -5
  303. package/vendor/shiki/langs/vue-interpolations.d.ts +3 -5
  304. package/vendor/shiki/langs/vue-sfc-style-variable-injection.d.ts +3 -5
  305. package/vendor/shiki/langs/vue.d.ts +3 -5
  306. package/vendor/shiki/langs/vy.d.ts +3 -5
  307. package/vendor/shiki/langs/vyper.d.ts +3 -5
  308. package/vendor/shiki/langs/wasm.d.ts +3 -5
  309. package/vendor/shiki/langs/wenyan.d.ts +3 -5
  310. package/vendor/shiki/langs/wgsl.d.ts +3 -5
  311. package/vendor/shiki/langs/wiki.d.ts +3 -5
  312. package/vendor/shiki/langs/wikitext.d.ts +3 -5
  313. package/vendor/shiki/langs/wl.d.ts +3 -5
  314. package/vendor/shiki/langs/wolfram.d.ts +3 -5
  315. package/vendor/shiki/langs/xml.d.ts +3 -5
  316. package/vendor/shiki/langs/xsl.d.ts +3 -5
  317. package/vendor/shiki/langs/yaml.d.ts +3 -5
  318. package/vendor/shiki/langs/yml.d.ts +3 -5
  319. package/vendor/shiki/langs/zenscript.d.ts +3 -5
  320. package/vendor/shiki/langs/zig.d.ts +3 -5
  321. package/vendor/shiki/langs/zsh.d.ts +3 -5
  322. package/vendor/shiki/manifest.json +365 -367
  323. package/vendor/shiki/themes/andromeeda.d.ts +3 -5
  324. package/vendor/shiki/themes/aurora-x.d.ts +3 -5
  325. package/vendor/shiki/themes/ayu-dark.d.ts +3 -5
  326. package/vendor/shiki/themes/catppuccin-frappe.d.ts +3 -5
  327. package/vendor/shiki/themes/catppuccin-latte.d.ts +3 -5
  328. package/vendor/shiki/themes/catppuccin-macchiato.d.ts +3 -5
  329. package/vendor/shiki/themes/catppuccin-mocha.d.ts +3 -5
  330. package/vendor/shiki/themes/dark-plus.d.ts +3 -5
  331. package/vendor/shiki/themes/dracula-soft.d.ts +3 -5
  332. package/vendor/shiki/themes/dracula.d.ts +3 -5
  333. package/vendor/shiki/themes/everforest-dark.d.ts +3 -5
  334. package/vendor/shiki/themes/everforest-light.d.ts +3 -5
  335. package/vendor/shiki/themes/github-dark-default.d.ts +3 -5
  336. package/vendor/shiki/themes/github-dark-dimmed.d.ts +3 -5
  337. package/vendor/shiki/themes/github-dark-high-contrast.d.ts +3 -5
  338. package/vendor/shiki/themes/github-dark.d.ts +3 -5
  339. package/vendor/shiki/themes/github-light-default.d.ts +3 -5
  340. package/vendor/shiki/themes/github-light-high-contrast.d.ts +3 -5
  341. package/vendor/shiki/themes/github-light.d.ts +3 -5
  342. package/vendor/shiki/themes/houston.d.ts +3 -5
  343. package/vendor/shiki/themes/kanagawa-dragon.d.ts +3 -5
  344. package/vendor/shiki/themes/kanagawa-lotus.d.ts +3 -5
  345. package/vendor/shiki/themes/kanagawa-wave.d.ts +3 -5
  346. package/vendor/shiki/themes/laserwave.d.ts +3 -5
  347. package/vendor/shiki/themes/light-plus.d.ts +3 -5
  348. package/vendor/shiki/themes/material-theme-darker.d.ts +3 -5
  349. package/vendor/shiki/themes/material-theme-lighter.d.ts +3 -5
  350. package/vendor/shiki/themes/material-theme-ocean.d.ts +3 -5
  351. package/vendor/shiki/themes/material-theme-palenight.d.ts +3 -5
  352. package/vendor/shiki/themes/material-theme.d.ts +3 -5
  353. package/vendor/shiki/themes/min-dark.d.ts +3 -5
  354. package/vendor/shiki/themes/min-light.d.ts +3 -5
  355. package/vendor/shiki/themes/monokai.d.ts +3 -5
  356. package/vendor/shiki/themes/night-owl.d.ts +3 -5
  357. package/vendor/shiki/themes/nord.d.ts +3 -5
  358. package/vendor/shiki/themes/one-dark-pro.d.ts +3 -5
  359. package/vendor/shiki/themes/one-light.d.ts +3 -5
  360. package/vendor/shiki/themes/plastic.d.ts +3 -5
  361. package/vendor/shiki/themes/poimandres.d.ts +3 -5
  362. package/vendor/shiki/themes/red.d.ts +3 -5
  363. package/vendor/shiki/themes/rose-pine-dawn.d.ts +3 -5
  364. package/vendor/shiki/themes/rose-pine-moon.d.ts +3 -5
  365. package/vendor/shiki/themes/rose-pine.d.ts +3 -5
  366. package/vendor/shiki/themes/slack-dark.d.ts +3 -5
  367. package/vendor/shiki/themes/slack-ochin.d.ts +3 -5
  368. package/vendor/shiki/themes/snazzy-light.d.ts +3 -5
  369. package/vendor/shiki/themes/solarized-dark.d.ts +3 -5
  370. package/vendor/shiki/themes/solarized-light.d.ts +3 -5
  371. package/vendor/shiki/themes/tokyo-night.d.ts +3 -5
  372. package/vendor/shiki/themes/vesper.d.ts +3 -5
  373. package/vendor/shiki/themes/vitesse-black.d.ts +3 -5
  374. package/vendor/shiki/themes/vitesse-dark.d.ts +3 -5
  375. package/vendor/shiki/themes/vitesse-light.d.ts +3 -5
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _typescript = _interopRequireDefault(require("../../../vendor/shiki/langs/typescript"));
10
- var _githubDark = _interopRequireDefault(require("../../../vendor/shiki/themes/github-dark"));
9
+ var _typescript = _interopRequireDefault(require("vendor/shiki/langs/typescript"));
10
+ var _githubDark = _interopRequireDefault(require("vendor/shiki/themes/github-dark"));
11
11
  var _useSyntaxHighlighter = require("../../hooks/useSyntaxHighlighter");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -23,6 +23,7 @@ async function createHighlighter({
23
23
  }
24
24
  try {
25
25
  const highlighter = await initializeHighlighter(langs, themes);
26
+ console.log('Initialized highlighter:', highlighter);
26
27
  return highlighter;
27
28
  } catch (error) {
28
29
  console.error('Failed to create highlighter:', error);
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_engineJavascript","initializeHighlighter","langs","themes","createHighlighterCore","engine","createJavaScriptRegexEngine","createHighlighter","length","Error","highlighter","error","console","processTokens","tokens","map","token","content","color","fontStyle","toString"],"sourceRoot":"../../../../src","sources":["syntax/highlighter/index.ts"],"mappings":";;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,eAAeE,qBAAqBA,CAACC,KAAsB,EAAEC,MAAoB,EAA8D;EAC7I,OAAO,IAAAC,2BAAqB,EAAC;IAC3BC,MAAM,EAAE,IAAAC,6CAA2B,EAAC,CAAC;IACrCJ,KAAK;IACLC;EACF,CAAC,CAAC;AACJ;AAEO,eAAeI,iBAAiBA,CAAC;EAAEL,KAAK;EAAEC;AAAyD,CAAC,EAA8D;EACvK,IAAI,CAACD,KAAK,EAAEM,MAAM,IAAI,CAACL,MAAM,EAAEK,MAAM,EAAE;IACrC,MAAM,IAAIC,KAAK,CAAC,uEAAuE,CAAC;EAC1F;EAEA,IAAI;IACF,MAAMC,WAAW,GAAG,MAAMT,qBAAqB,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC9D,OAAOO,WAAW;EACpB,CAAC,CACD,OAAOC,KAAK,EAAE;IACZC,OAAO,CAACD,KAAK,CAAC,+BAA+B,EAAEA,KAAK,CAAC;IACrD,MAAMA,KAAK;EACb;AACF;AAEO,SAASE,aAAaA,CAACC,MAAqB,EAAe;EAChE,OAAOA,MAAM,CAACC,GAAG,CAACC,KAAK,KAAK;IAC1BC,OAAO,EAAED,KAAK,CAACC,OAAO;IACtBC,KAAK,EAAEF,KAAK,CAACE,KAAK,IAAI,SAAS;IAC/BC,SAAS,EAAEH,KAAK,CAACG,SAAS,EAAEC,QAAQ,CAAC;EACvC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_engineJavascript","initializeHighlighter","langs","themes","createHighlighterCore","engine","createJavaScriptRegexEngine","createHighlighter","length","Error","highlighter","console","log","error","processTokens","tokens","map","token","content","color","fontStyle","toString"],"sourceRoot":"../../../../src","sources":["syntax/highlighter/index.ts"],"mappings":";;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,eAAeE,qBAAqBA,CAACC,KAAsB,EAAEC,MAAoB,EAA8D;EAC7I,OAAO,IAAAC,2BAAqB,EAAC;IAC3BC,MAAM,EAAE,IAAAC,6CAA2B,EAAC,CAAC;IACrCJ,KAAK;IACLC;EACF,CAAC,CAAC;AACJ;AAEO,eAAeI,iBAAiBA,CAAC;EAAEL,KAAK;EAAEC;AAAyD,CAAC,EAA8D;EACvK,IAAI,CAACD,KAAK,EAAEM,MAAM,IAAI,CAACL,MAAM,EAAEK,MAAM,EAAE;IACrC,MAAM,IAAIC,KAAK,CAAC,uEAAuE,CAAC;EAC1F;EAEA,IAAI;IACF,MAAMC,WAAW,GAAG,MAAMT,qBAAqB,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC9DQ,OAAO,CAACC,GAAG,CAAC,0BAA0B,EAAEF,WAAW,CAAC;IACpD,OAAOA,WAAW;EACpB,CAAC,CACD,OAAOG,KAAK,EAAE;IACZF,OAAO,CAACE,KAAK,CAAC,+BAA+B,EAAEA,KAAK,CAAC;IACrD,MAAMA,KAAK;EACb;AACF;AAEO,SAASC,aAAaA,CAACC,MAAqB,EAAe;EAChE,OAAOA,MAAM,CAACC,GAAG,CAACC,KAAK,KAAK;IAC1BC,OAAO,EAAED,KAAK,CAACC,OAAO;IACtBC,KAAK,EAAEF,KAAK,CAACE,KAAK,IAAI,SAAS;IAC/BC,SAAS,EAAEH,KAAK,CAACG,SAAS,EAAEC,QAAQ,CAAC;EACvC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
@@ -2,8 +2,8 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { Text, View } from 'react-native';
5
- import typescript from '../../../vendor/shiki/langs/typescript';
6
- import githubDark from '../../../vendor/shiki/themes/github-dark';
5
+ import typescript from 'vendor/shiki/langs/typescript';
6
+ import githubDark from 'vendor/shiki/themes/github-dark';
7
7
  import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter';
8
8
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
9
9
  function SyntaxHighlighter({
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","typescript","githubDark","useSyntaxHighlighter","jsxs","_jsxs","jsx","_jsx","SyntaxHighlighter","text","lang","langName","theme","themeName","fontSize","tokens","error","isLoading","style","color","fontFamily","children","map","line","lineIndex","flexDirection","flexWrap","token","tokenIndex","fontStyle","content","replace"],"sourceRoot":"../../../../src","sources":["components/syntax/SyntaxHighlighter.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,OAAOC,UAAU,MAAM,wCAAwC;AAC/D,OAAOC,UAAU,MAAM,0CAA0C;AACjE,SAASC,oBAAoB,QAAQ,kCAAkC;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAWvE,SAASC,iBAAiBA,CAAC;EACzBC,IAAI;EACJC,IAAI,GAAGT,UAAU;EACjBU,QAAQ,GAAG,YAAY;EACvBC,KAAK,GAAGV,UAAU;EAClBW,SAAS,GAAG,aAAa;EACzBC;AACsB,CAAC,EAAE;EACzB,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGd,oBAAoB,CAAC;IACxDM,IAAI;IACJC,IAAI;IACJC,QAAQ;IACRC,KAAK;IACLC;EACF,CAAC,CAAC;EAEF,IAAIG,KAAK,EAAE;IACT,oBACEX,KAAA,CAACN,IAAI;MAACmB,KAAK,EAAE;QAAEC,KAAK,EAAE,SAAS;QAAEC,UAAU,EAAE,WAAW;QAAEN;MAAS,CAAE;MAAAO,QAAA,GAAC,QAEpE,EAACL,KAAK;IAAA,CACF,CAAC;EAEX;EAEA,IAAIC,SAAS,EAAE;IACb,oBAAOV,IAAA,CAACR,IAAI;MAACmB,KAAK,EAAE;QAAEC,KAAK,EAAE,SAAS;QAAEC,UAAU,EAAE,WAAW;QAAEN;MAAS,CAAE;MAAAO,QAAA,EAAC;IAAU,CAAM,CAAC;EAChG;EAEA,oBACEd,IAAA,CAACP,IAAI;IAAAqB,QAAA,EACFN,MAAM,CAACO,GAAG,CAAC,CAACC,IAAI,EAAEC,SAAS,kBAC1BnB,KAAA,CAACL,IAAI;MAA2BkB,KAAK,EAAE;QAAEO,aAAa,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAO,CAAE;MAAAL,QAAA,GAC/EE,IAAI,CAACD,GAAG,CAAC,CAACK,KAAK,EAAEC,UAAU,kBAC1BrB,IAAA,CAACR,IAAI;QAEHmB,KAAK,EAAE;UACLC,KAAK,EAAEQ,KAAK,CAACR,KAAK,IAAI,SAAS;UAC/BC,UAAU,EAAE,WAAW;UACvBN,QAAQ;UACRe,SAAS,EAAEF,KAAK,CAACE;QACnB,CAAE;QAAAR,QAAA,EAEDM,KAAK,CAACG,OAAO,CAACC,OAAO,CAAC,IAAI,EAAE,QAAQ;MAAC,GARjC,GAAGP,SAAS,IAAII,UAAU,EAS3B,CACP,CAAC,eACFrB,IAAA,CAACR,IAAI;QAACmB,KAAK,EAAE;UAAEC,KAAK,EAAE,SAAS;UAAEC,UAAU,EAAE,WAAW;UAAEN;QAAS,CAAE;QAAAO,QAAA,EAAE;MAAI,CAAO,CAAC;IAAA,GAd1E,QAAQG,SAAS,EAetB,CACP;EAAC,CACE,CAAC;AAEX;AAEA,eAAehB,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["React","Text","View","typescript","githubDark","useSyntaxHighlighter","jsxs","_jsxs","jsx","_jsx","SyntaxHighlighter","text","lang","langName","theme","themeName","fontSize","tokens","error","isLoading","style","color","fontFamily","children","map","line","lineIndex","flexDirection","flexWrap","token","tokenIndex","fontStyle","content","replace"],"sourceRoot":"../../../../src","sources":["components/syntax/SyntaxHighlighter.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,OAAOC,UAAU,MAAM,+BAA+B;AACtD,OAAOC,UAAU,MAAM,iCAAiC;AACxD,SAASC,oBAAoB,QAAQ,kCAAkC;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAWvE,SAASC,iBAAiBA,CAAC;EACzBC,IAAI;EACJC,IAAI,GAAGT,UAAU;EACjBU,QAAQ,GAAG,YAAY;EACvBC,KAAK,GAAGV,UAAU;EAClBW,SAAS,GAAG,aAAa;EACzBC;AACsB,CAAC,EAAE;EACzB,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGd,oBAAoB,CAAC;IACxDM,IAAI;IACJC,IAAI;IACJC,QAAQ;IACRC,KAAK;IACLC;EACF,CAAC,CAAC;EAEF,IAAIG,KAAK,EAAE;IACT,oBACEX,KAAA,CAACN,IAAI;MAACmB,KAAK,EAAE;QAAEC,KAAK,EAAE,SAAS;QAAEC,UAAU,EAAE,WAAW;QAAEN;MAAS,CAAE;MAAAO,QAAA,GAAC,QAEpE,EAACL,KAAK;IAAA,CACF,CAAC;EAEX;EAEA,IAAIC,SAAS,EAAE;IACb,oBAAOV,IAAA,CAACR,IAAI;MAACmB,KAAK,EAAE;QAAEC,KAAK,EAAE,SAAS;QAAEC,UAAU,EAAE,WAAW;QAAEN;MAAS,CAAE;MAAAO,QAAA,EAAC;IAAU,CAAM,CAAC;EAChG;EAEA,oBACEd,IAAA,CAACP,IAAI;IAAAqB,QAAA,EACFN,MAAM,CAACO,GAAG,CAAC,CAACC,IAAI,EAAEC,SAAS,kBAC1BnB,KAAA,CAACL,IAAI;MAA2BkB,KAAK,EAAE;QAAEO,aAAa,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAO,CAAE;MAAAL,QAAA,GAC/EE,IAAI,CAACD,GAAG,CAAC,CAACK,KAAK,EAAEC,UAAU,kBAC1BrB,IAAA,CAACR,IAAI;QAEHmB,KAAK,EAAE;UACLC,KAAK,EAAEQ,KAAK,CAACR,KAAK,IAAI,SAAS;UAC/BC,UAAU,EAAE,WAAW;UACvBN,QAAQ;UACRe,SAAS,EAAEF,KAAK,CAACE;QACnB,CAAE;QAAAR,QAAA,EAEDM,KAAK,CAACG,OAAO,CAACC,OAAO,CAAC,IAAI,EAAE,QAAQ;MAAC,GARjC,GAAGP,SAAS,IAAII,UAAU,EAS3B,CACP,CAAC,eACFrB,IAAA,CAACR,IAAI;QAACmB,KAAK,EAAE;UAAEC,KAAK,EAAE,SAAS;UAAEC,UAAU,EAAE,WAAW;UAAEN;QAAS,CAAE;QAAAO,QAAA,EAAE;MAAI,CAAO,CAAC;IAAA,GAd1E,QAAQG,SAAS,EAetB,CACP;EAAC,CACE,CAAC;AAEX;AAEA,eAAehB,iBAAiB","ignoreList":[]}
@@ -18,6 +18,7 @@ export async function createHighlighter({
18
18
  }
19
19
  try {
20
20
  const highlighter = await initializeHighlighter(langs, themes);
21
+ console.log('Initialized highlighter:', highlighter);
21
22
  return highlighter;
22
23
  } catch (error) {
23
24
  console.error('Failed to create highlighter:', error);
@@ -1 +1 @@
1
- {"version":3,"names":["createHighlighterCore","createJavaScriptRegexEngine","initializeHighlighter","langs","themes","engine","createHighlighter","length","Error","highlighter","error","console","processTokens","tokens","map","token","content","color","fontStyle","toString"],"sourceRoot":"../../../../src","sources":["syntax/highlighter/index.ts"],"mappings":";;AAEA,SAASA,qBAAqB,QAAQ,iCAAiC;AACvE,SAASC,2BAA2B,QAAQ,8CAA8C;AAE1F,eAAeC,qBAAqBA,CAACC,KAAsB,EAAEC,MAAoB,EAA8D;EAC7I,OAAOJ,qBAAqB,CAAC;IAC3BK,MAAM,EAAEJ,2BAA2B,CAAC,CAAC;IACrCE,KAAK;IACLC;EACF,CAAC,CAAC;AACJ;AAEA,OAAO,eAAeE,iBAAiBA,CAAC;EAAEH,KAAK;EAAEC;AAAyD,CAAC,EAA8D;EACvK,IAAI,CAACD,KAAK,EAAEI,MAAM,IAAI,CAACH,MAAM,EAAEG,MAAM,EAAE;IACrC,MAAM,IAAIC,KAAK,CAAC,uEAAuE,CAAC;EAC1F;EAEA,IAAI;IACF,MAAMC,WAAW,GAAG,MAAMP,qBAAqB,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC9D,OAAOK,WAAW;EACpB,CAAC,CACD,OAAOC,KAAK,EAAE;IACZC,OAAO,CAACD,KAAK,CAAC,+BAA+B,EAAEA,KAAK,CAAC;IACrD,MAAMA,KAAK;EACb;AACF;AAEA,OAAO,SAASE,aAAaA,CAACC,MAAqB,EAAe;EAChE,OAAOA,MAAM,CAACC,GAAG,CAACC,KAAK,KAAK;IAC1BC,OAAO,EAAED,KAAK,CAACC,OAAO;IACtBC,KAAK,EAAEF,KAAK,CAACE,KAAK,IAAI,SAAS;IAC/BC,SAAS,EAAEH,KAAK,CAACG,SAAS,EAAEC,QAAQ,CAAC;EACvC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
1
+ {"version":3,"names":["createHighlighterCore","createJavaScriptRegexEngine","initializeHighlighter","langs","themes","engine","createHighlighter","length","Error","highlighter","console","log","error","processTokens","tokens","map","token","content","color","fontStyle","toString"],"sourceRoot":"../../../../src","sources":["syntax/highlighter/index.ts"],"mappings":";;AAEA,SAASA,qBAAqB,QAAQ,iCAAiC;AACvE,SAASC,2BAA2B,QAAQ,8CAA8C;AAE1F,eAAeC,qBAAqBA,CAACC,KAAsB,EAAEC,MAAoB,EAA8D;EAC7I,OAAOJ,qBAAqB,CAAC;IAC3BK,MAAM,EAAEJ,2BAA2B,CAAC,CAAC;IACrCE,KAAK;IACLC;EACF,CAAC,CAAC;AACJ;AAEA,OAAO,eAAeE,iBAAiBA,CAAC;EAAEH,KAAK;EAAEC;AAAyD,CAAC,EAA8D;EACvK,IAAI,CAACD,KAAK,EAAEI,MAAM,IAAI,CAACH,MAAM,EAAEG,MAAM,EAAE;IACrC,MAAM,IAAIC,KAAK,CAAC,uEAAuE,CAAC;EAC1F;EAEA,IAAI;IACF,MAAMC,WAAW,GAAG,MAAMP,qBAAqB,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC9DM,OAAO,CAACC,GAAG,CAAC,0BAA0B,EAAEF,WAAW,CAAC;IACpD,OAAOA,WAAW;EACpB,CAAC,CACD,OAAOG,KAAK,EAAE;IACZF,OAAO,CAACE,KAAK,CAAC,+BAA+B,EAAEA,KAAK,CAAC;IACrD,MAAMA,KAAK;EACb;AACF;AAEA,OAAO,SAASC,aAAaA,CAACC,MAAqB,EAAe;EAChE,OAAOA,MAAM,CAACC,GAAG,CAACC,KAAK,KAAK;IAC1BC,OAAO,EAAED,KAAK,CAACC,OAAO;IACtBC,KAAK,EAAEF,KAAK,CAACE,KAAK,IAAI,SAAS;IAC/BC,SAAS,EAAEH,KAAK,CAACG,SAAS,EAAEC,QAAQ,CAAC;EACvC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/syntax/highlighter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,wBAAsB,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAavK;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,CAMhE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/syntax/highlighter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAWvE,wBAAsB,iBAAiB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAcvK;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,CAMhE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rn-shiki",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
package/scripts/build.js CHANGED
@@ -15,20 +15,20 @@ function createDeclarationFile(outputPath, name) {
15
15
  // Remove .js extension and create paths
16
16
  const jsPath = outputPath.replace(/\\/g, '/')
17
17
  const dtsPath = jsPath.replace('.js', '.d.ts')
18
- const modulePath = jsPath.replace('.js', '')
19
18
 
20
- // Get the correct type based on the path
21
- const typeAnnotation = outputPath.includes('/themes/') ? 'import("shiki").ThemeInput' : 'import("shiki").LanguageInput'
19
+ // Calculate the relative module path without stripping off 'vendor/shiki'
20
+ const modulePath = `vendor/shiki/${path.relative(VENDOR_DIR, jsPath).replace('.js', '')}`
21
+
22
+ // Determine correct type annotation
23
+ const typeAnnotation = outputPath.includes('/themes/') ? 'ThemeInput' : 'LanguageInput'
22
24
 
23
25
  // Replace hyphens in name to create a valid TypeScript identifier
24
26
  const safeName = name.replace(/-/g, '_')
25
27
 
26
28
  const dtsContent = `\
27
- import type { ThemeInput, LanguageInput } from 'shiki'
28
-
29
29
  declare module '${modulePath}' {
30
- const ${safeName}: ${typeAnnotation}
31
- export default ${safeName}
30
+ const ${safeName}: import('shiki').${typeAnnotation};
31
+ export default ${safeName};
32
32
  }
33
33
  `
34
34
  fs.writeFileSync(dtsPath, dtsContent)
@@ -109,14 +109,10 @@ const coreModules = [
109
109
  {
110
110
  input: 'shiki/dist/core.mjs',
111
111
  output: 'vendor/shiki/core/core.js',
112
- name: 'core',
113
- type: 'typeof import("shiki/core")',
114
112
  },
115
113
  {
116
114
  input: 'shiki/dist/engine-javascript.mjs',
117
115
  output: 'vendor/shiki/core/engine-javascript.js',
118
- name: 'engine_javascript', // Use underscore in name to prevent TypeScript errors
119
- type: 'typeof import("shiki/engine/javascript")',
120
116
  },
121
117
  ...langFiles,
122
118
  ...themeFiles,
@@ -1,8 +1,8 @@
1
1
  import type { LanguageInput, ThemeInput } from 'shiki'
2
2
  import React from 'react'
3
3
  import { Text, View } from 'react-native'
4
- import typescript from '../../../vendor/shiki/langs/typescript.js'
5
- import githubDark from '../../../vendor/shiki/themes/github-dark.js'
4
+ import typescript from 'vendor/shiki/langs/typescript'
5
+ import githubDark from 'vendor/shiki/themes/github-dark'
6
6
  import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
7
7
 
8
8
  interface SyntaxHighlighterProps {
@@ -1,7 +1,8 @@
1
1
  declare module '*/vendor/shiki/core/core' {
2
- export * from 'shiki/core'
3
- }
2
+ import type { LanguageInput, ThemeInput } from 'shiki'
4
3
 
4
+ export function createHighlighterCore(options: { engine: any, langs: LanguageInput[], themes: ThemeInput[] }): any
5
+ }
5
6
  declare module '*/vendor/shiki/core/engine-javascript' {
6
- export * from 'shiki/engine/javascript'
7
+ export function createJavaScriptRegexEngine(): any
7
8
  }
package/tsconfig.json CHANGED
@@ -3,8 +3,13 @@
3
3
  "target": "esnext",
4
4
  "jsx": "react-native",
5
5
  "lib": ["esnext"],
6
+ "baseUrl": "./",
6
7
  "module": "esnext",
7
8
  "moduleResolution": "node",
9
+ "paths": {
10
+ "vendor/*": ["vendor/*"],
11
+ "shiki": ["node_modules/shiki"]
12
+ },
8
13
  "resolveJsonModule": true,
9
14
  "allowJs": false,
10
15
  "strict": true,
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/abap' {
4
- const abap: import("shiki").LanguageInput
5
- export default abap
1
+ declare module 'vendor/shiki/langs/abap' {
2
+ const abap: import('shiki').LanguageInput;
3
+ export default abap;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/actionscript-3' {
4
- const actionscript_3: import("shiki").LanguageInput
5
- export default actionscript_3
1
+ declare module 'vendor/shiki/langs/actionscript-3' {
2
+ const actionscript_3: import('shiki').LanguageInput;
3
+ export default actionscript_3;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/ada' {
4
- const ada: import("shiki").LanguageInput
5
- export default ada
1
+ declare module 'vendor/shiki/langs/ada' {
2
+ const ada: import('shiki').LanguageInput;
3
+ export default ada;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/adoc' {
4
- const adoc: import("shiki").LanguageInput
5
- export default adoc
1
+ declare module 'vendor/shiki/langs/adoc' {
2
+ const adoc: import('shiki').LanguageInput;
3
+ export default adoc;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-expression' {
4
- const angular_expression: import("shiki").LanguageInput
5
- export default angular_expression
1
+ declare module 'vendor/shiki/langs/angular-expression' {
2
+ const angular_expression: import('shiki').LanguageInput;
3
+ export default angular_expression;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-html' {
4
- const angular_html: import("shiki").LanguageInput
5
- export default angular_html
1
+ declare module 'vendor/shiki/langs/angular-html' {
2
+ const angular_html: import('shiki').LanguageInput;
3
+ export default angular_html;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-inline-style' {
4
- const angular_inline_style: import("shiki").LanguageInput
5
- export default angular_inline_style
1
+ declare module 'vendor/shiki/langs/angular-inline-style' {
2
+ const angular_inline_style: import('shiki').LanguageInput;
3
+ export default angular_inline_style;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-inline-template' {
4
- const angular_inline_template: import("shiki").LanguageInput
5
- export default angular_inline_template
1
+ declare module 'vendor/shiki/langs/angular-inline-template' {
2
+ const angular_inline_template: import('shiki').LanguageInput;
3
+ export default angular_inline_template;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-let-declaration' {
4
- const angular_let_declaration: import("shiki").LanguageInput
5
- export default angular_let_declaration
1
+ declare module 'vendor/shiki/langs/angular-let-declaration' {
2
+ const angular_let_declaration: import('shiki').LanguageInput;
3
+ export default angular_let_declaration;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-template-blocks' {
4
- const angular_template_blocks: import("shiki").LanguageInput
5
- export default angular_template_blocks
1
+ declare module 'vendor/shiki/langs/angular-template-blocks' {
2
+ const angular_template_blocks: import('shiki').LanguageInput;
3
+ export default angular_template_blocks;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-template' {
4
- const angular_template: import("shiki").LanguageInput
5
- export default angular_template
1
+ declare module 'vendor/shiki/langs/angular-template' {
2
+ const angular_template: import('shiki').LanguageInput;
3
+ export default angular_template;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/angular-ts' {
4
- const angular_ts: import("shiki").LanguageInput
5
- export default angular_ts
1
+ declare module 'vendor/shiki/langs/angular-ts' {
2
+ const angular_ts: import('shiki').LanguageInput;
3
+ export default angular_ts;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/apache' {
4
- const apache: import("shiki").LanguageInput
5
- export default apache
1
+ declare module 'vendor/shiki/langs/apache' {
2
+ const apache: import('shiki').LanguageInput;
3
+ export default apache;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/apex' {
4
- const apex: import("shiki").LanguageInput
5
- export default apex
1
+ declare module 'vendor/shiki/langs/apex' {
2
+ const apex: import('shiki').LanguageInput;
3
+ export default apex;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/apl' {
4
- const apl: import("shiki").LanguageInput
5
- export default apl
1
+ declare module 'vendor/shiki/langs/apl' {
2
+ const apl: import('shiki').LanguageInput;
3
+ export default apl;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/applescript' {
4
- const applescript: import("shiki").LanguageInput
5
- export default applescript
1
+ declare module 'vendor/shiki/langs/applescript' {
2
+ const applescript: import('shiki').LanguageInput;
3
+ export default applescript;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/ara' {
4
- const ara: import("shiki").LanguageInput
5
- export default ara
1
+ declare module 'vendor/shiki/langs/ara' {
2
+ const ara: import('shiki').LanguageInput;
3
+ export default ara;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/asciidoc' {
4
- const asciidoc: import("shiki").LanguageInput
5
- export default asciidoc
1
+ declare module 'vendor/shiki/langs/asciidoc' {
2
+ const asciidoc: import('shiki').LanguageInput;
3
+ export default asciidoc;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/asm' {
4
- const asm: import("shiki").LanguageInput
5
- export default asm
1
+ declare module 'vendor/shiki/langs/asm' {
2
+ const asm: import('shiki').LanguageInput;
3
+ export default asm;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/astro' {
4
- const astro: import("shiki").LanguageInput
5
- export default astro
1
+ declare module 'vendor/shiki/langs/astro' {
2
+ const astro: import('shiki').LanguageInput;
3
+ export default astro;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/awk' {
4
- const awk: import("shiki").LanguageInput
5
- export default awk
1
+ declare module 'vendor/shiki/langs/awk' {
2
+ const awk: import('shiki').LanguageInput;
3
+ export default awk;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/ballerina' {
4
- const ballerina: import("shiki").LanguageInput
5
- export default ballerina
1
+ declare module 'vendor/shiki/langs/ballerina' {
2
+ const ballerina: import('shiki').LanguageInput;
3
+ export default ballerina;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/bash' {
4
- const bash: import("shiki").LanguageInput
5
- export default bash
1
+ declare module 'vendor/shiki/langs/bash' {
2
+ const bash: import('shiki').LanguageInput;
3
+ export default bash;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/bat' {
4
- const bat: import("shiki").LanguageInput
5
- export default bat
1
+ declare module 'vendor/shiki/langs/bat' {
2
+ const bat: import('shiki').LanguageInput;
3
+ export default bat;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/batch' {
4
- const batch: import("shiki").LanguageInput
5
- export default batch
1
+ declare module 'vendor/shiki/langs/batch' {
2
+ const batch: import('shiki').LanguageInput;
3
+ export default batch;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/be' {
4
- const be: import("shiki").LanguageInput
5
- export default be
1
+ declare module 'vendor/shiki/langs/be' {
2
+ const be: import('shiki').LanguageInput;
3
+ export default be;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/beancount' {
4
- const beancount: import("shiki").LanguageInput
5
- export default beancount
1
+ declare module 'vendor/shiki/langs/beancount' {
2
+ const beancount: import('shiki').LanguageInput;
3
+ export default beancount;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/berry' {
4
- const berry: import("shiki").LanguageInput
5
- export default berry
1
+ declare module 'vendor/shiki/langs/berry' {
2
+ const berry: import('shiki').LanguageInput;
3
+ export default berry;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/bibtex' {
4
- const bibtex: import("shiki").LanguageInput
5
- export default bibtex
1
+ declare module 'vendor/shiki/langs/bibtex' {
2
+ const bibtex: import('shiki').LanguageInput;
3
+ export default bibtex;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/bicep' {
4
- const bicep: import("shiki").LanguageInput
5
- export default bicep
1
+ declare module 'vendor/shiki/langs/bicep' {
2
+ const bicep: import('shiki').LanguageInput;
3
+ export default bicep;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/blade' {
4
- const blade: import("shiki").LanguageInput
5
- export default blade
1
+ declare module 'vendor/shiki/langs/blade' {
2
+ const blade: import('shiki').LanguageInput;
3
+ export default blade;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/c' {
4
- const c: import("shiki").LanguageInput
5
- export default c
1
+ declare module 'vendor/shiki/langs/c' {
2
+ const c: import('shiki').LanguageInput;
3
+ export default c;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/cadence' {
4
- const cadence: import("shiki").LanguageInput
5
- export default cadence
1
+ declare module 'vendor/shiki/langs/cadence' {
2
+ const cadence: import('shiki').LanguageInput;
3
+ export default cadence;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/cdc' {
4
- const cdc: import("shiki").LanguageInput
5
- export default cdc
1
+ declare module 'vendor/shiki/langs/cdc' {
2
+ const cdc: import('shiki').LanguageInput;
3
+ export default cdc;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/clarity' {
4
- const clarity: import("shiki").LanguageInput
5
- export default clarity
1
+ declare module 'vendor/shiki/langs/clarity' {
2
+ const clarity: import('shiki').LanguageInput;
3
+ export default clarity;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/clj' {
4
- const clj: import("shiki").LanguageInput
5
- export default clj
1
+ declare module 'vendor/shiki/langs/clj' {
2
+ const clj: import('shiki').LanguageInput;
3
+ export default clj;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/clojure' {
4
- const clojure: import("shiki").LanguageInput
5
- export default clojure
1
+ declare module 'vendor/shiki/langs/clojure' {
2
+ const clojure: import('shiki').LanguageInput;
3
+ export default clojure;
6
4
  }
@@ -1,6 +1,4 @@
1
- import type { ThemeInput, LanguageInput } from 'shiki'
2
-
3
- declare module '/Users/ryan/Sites/rn-shiki/vendor/shiki/langs/closure-templates' {
4
- const closure_templates: import("shiki").LanguageInput
5
- export default closure_templates
1
+ declare module 'vendor/shiki/langs/closure-templates' {
2
+ const closure_templates: import('shiki').LanguageInput;
3
+ export default closure_templates;
6
4
  }