rn-shiki 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rn-shiki",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -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'
5
- import githubDark from '../../../vendor/shiki/themes/github-dark'
4
+ import typescript from '../../../vendor/shiki/langs/typescript.js'
5
+ import githubDark from '../../../vendor/shiki/themes/github-dark.js'
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
  }