diff --git a/package.json b/package.json index 1a5fd3e..1928fd7 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@antfu/ni": "^0.23.0", "@antfu/utils": "^0.7.10", "@iconify-json/svg-spinners": "^1.1.3", - "@shikijs/core": "^1.14.1", + "@shikijs/core": "^1.15.0", "@types/adm-zip": "^0.5.5", "@types/cson": "^7.20.3", "@types/js-yaml": "^4.0.9", diff --git a/playground/package.json b/playground/package.json index aba6b1d..90958e4 100644 --- a/playground/package.json +++ b/playground/package.json @@ -10,8 +10,8 @@ "test": "vitest" }, "dependencies": { + "@shikijs/core": "^1.15.0", "@vueuse/core": "^11.0.3", - "shiki": "1.0.0-beta.0", "vue": "^3.4.38", "vue-router": "^4.4.3" }, diff --git a/playground/src/App.vue b/playground/src/App.vue index 201739d..1956620 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,13 +1,13 @@ + + diff --git a/playground/src/SegmentControl.vue b/playground/src/SegmentControl.vue new file mode 100644 index 0000000..3fffbfd --- /dev/null +++ b/playground/src/SegmentControl.vue @@ -0,0 +1,31 @@ + + + diff --git a/playground/src/state.ts b/playground/src/state.ts new file mode 100644 index 0000000..b0b9b75 --- /dev/null +++ b/playground/src/state.ts @@ -0,0 +1,5 @@ +export const isDark = useDark() + +export const theme = useStorage('tm-theme', 'vitesse-dark') +export const grammar = useStorage('tm-grammar', 'javascript') +export const engine = useStorage<'wasm' | 'js'>('tm-use-engine', 'wasm') diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1450595..1f5ece7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^1.1.3 version: 1.1.3 '@shikijs/core': - specifier: ^1.14.1 - version: 1.14.1 + specifier: ^1.15.0 + version: 1.15.0 '@types/adm-zip': specifier: ^0.5.5 version: 0.5.5 @@ -138,12 +138,12 @@ importers: playground: dependencies: + '@shikijs/core': + specifier: ^1.15.0 + version: 1.15.0 '@vueuse/core': specifier: ^11.0.3 version: 11.0.3(vue@3.4.38(typescript@5.5.4)) - shiki: - specifier: 1.0.0-beta.0 - version: 1.0.0-beta.0 vue: specifier: ^3.4.38 version: 3.4.38(typescript@5.5.4) @@ -1334,11 +1334,8 @@ packages: cpu: [x64] os: [win32] - '@shikijs/core@1.0.0-beta.0': - resolution: {integrity: sha512-uicyrkx379Q5sxQuGV3kduHPWIAkjxmeA5A4J6syscx8wiEyIV06i/Q6s9GeKLCb857Hi90H8e/FoFSbcjnZsw==} - - '@shikijs/core@1.14.1': - resolution: {integrity: sha512-KyHIIpKNaT20FtFPFjCQB5WVSTpLR/n+jQXhWHWVUMm9MaOaG9BGOG0MSyt7yA4+Lm+4c9rTc03tt3nYzeYSfw==} + '@shikijs/core@1.15.0': + resolution: {integrity: sha512-wUcOmlcEN/ub8i4pcjnAABExIUo7xwhZTBa43CwHu5KO9e/zLJlXYYNjeE+5K7W8VHiVtvRC2wcuaXyd0yG8rg==} '@sindresorhus/merge-streams@2.3.0': resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} @@ -3601,9 +3598,6 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shiki@1.0.0-beta.0: - resolution: {integrity: sha512-CcP0IhEDQ3LWfJC44cfxfId9pjJi9Nephl8DxgrL4tKWprI/oz6deZyL0vB+XWxhTx/1uonzWQKaSQPwKx5dTA==} - siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -5119,9 +5113,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.21.1': optional: true - '@shikijs/core@1.0.0-beta.0': {} - - '@shikijs/core@1.14.1': + '@shikijs/core@1.15.0': dependencies: '@types/hast': 3.0.4 @@ -7800,10 +7792,6 @@ snapshots: shebang-regex@3.0.0: {} - shiki@1.0.0-beta.0: - dependencies: - '@shikijs/core': 1.0.0-beta.0 - siginfo@2.0.0: {} signal-exit@4.1.0: {}