rn-shiki 0.0.37-5 → 0.0.37-6

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.37-5",
4
+ "version": "0.0.37-6",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -34,21 +34,16 @@
34
34
  "shiki": "^1.1.7"
35
35
  },
36
36
  "dependencies": {
37
- "esbuild": "^0.24.0",
38
37
  "shiki": "^1.1.7"
39
38
  },
40
39
  "devDependencies": {
41
40
  "@antfu/eslint-config": "^3.8.0",
42
- "@babel/core": "^7.24.0",
43
- "@babel/preset-env": "^7.26.0",
44
41
  "@eslint-react/eslint-plugin": "^1.15.0",
45
42
  "@types/react": "^18.2.0",
46
43
  "@types/react-native": "^0.73.0",
47
- "babel-plugin-module-resolver": "^5.0.2",
48
44
  "eslint": "^9.13.0",
49
45
  "eslint-plugin-react-hooks": "^5.0.0",
50
46
  "eslint-plugin-react-refresh": "^0.4.13",
51
- "metro-react-native-babel-preset": "^0.77.0",
52
47
  "react": "^18.2.0",
53
48
  "react-native": "^0.73.0",
54
49
  "react-native-builder-bob": "^0.30.2",
@@ -1,7 +1,7 @@
1
1
  import type { ThemedToken } from 'shiki'
2
2
  import type { SyntaxHighlighterProps, TokensResult } from '../types/shiki'
3
3
  import { useEffect, useState } from 'react'
4
- import { createHighlighter } from '../syntax'
4
+ import { createHighlighter } from '../syntax/highlighter'
5
5
 
6
6
  export function useSyntaxHighlighter({ text, language, languageId, theme }: SyntaxHighlighterProps) {
7
7
  const [tokens, setTokens] = useState<ThemedToken[][]>([])
@@ -1,5 +1,5 @@
1
1
  import type { LanguageInput, ThemedToken, ThemeInput } from 'shiki'
2
- import type { TokenType } from '../../types'
2
+ import type { TokenType } from '../../types/shiki'
3
3
  import { createHighlighterCore } from 'shiki/dist/core.mjs'
4
4
  import { createJavaScriptRegexEngine } from 'shiki/dist/engine-javascript.mjs'
5
5
 
@@ -1 +0,0 @@
1
- export { createHighlighter, processTokens } from './highlighter'
@@ -1,6 +0,0 @@
1
- export interface TokenType {
2
- content: string
3
- color?: string
4
- fontStyle?: string
5
- fontWeight?: string
6
- }
@@ -1 +0,0 @@
1
- export * from './string'