Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/04-theming/07-custom-code-block/src/shiki.bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
DynamicImportThemeRegistration,
HighlighterGeneric,
} from "@shikijs/types";
import { createdBundledHighlighter } from "@shikijs/core";
import { createBundledHighlighter } from "@shikijs/core";
import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript";

type BundledLanguage = "typescript" | "ts" | "javascript" | "js" | "vue";
Expand All @@ -24,7 +24,7 @@ const bundledThemes = {
"dark-plus": () => import("@shikijs/themes/dark-plus"),
} as Record<BundledTheme, DynamicImportThemeRegistration>;

const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<
const createHighlighter = /* @__PURE__ */ createBundledHighlighter<
BundledLanguage,
BundledTheme
>({
Expand Down
11 changes: 5 additions & 6 deletions packages/code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@
},
"dependencies": {
"@blocknote/core": "0.47.3",
"@shikijs/core": "^3",
"@shikijs/engine-javascript": "^3",
"@shikijs/langs": "^3",
"@shikijs/langs-precompiled": "^3",
"@shikijs/themes": "^3",
"@shikijs/types": "^3"
"@shikijs/core": "^4",
"@shikijs/engine-javascript": "^4",
"@shikijs/langs-precompiled": "^4",
"@shikijs/themes": "^4",
"@shikijs/types": "^4"
},
"devDependencies": {
"eslint": "^8.57.1",
Expand Down
7 changes: 3 additions & 4 deletions packages/code-block/src/shiki.bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
DynamicImportThemeRegistration,
HighlighterGeneric,
} from "@shikijs/types";
import { createdBundledHighlighter } from "@shikijs/core";
import { createBundledHighlighter } from "@shikijs/core";
import { createJavaScriptRegexEngine } from "@shikijs/engine-javascript";

type BundledLanguage = "typescript" | "ts" | "javascript" | "js" | "vue";
Expand Down Expand Up @@ -77,8 +77,7 @@ const bundledLanguages = {
rust: () => import("@shikijs/langs-precompiled/rust"),
rs: () => import("@shikijs/langs-precompiled/rust"),
scala: () => import("@shikijs/langs-precompiled/scala"),
// Swift does not support pre-compilation right now
swift: () => import("@shikijs/langs/swift"),
swift: () => import("@shikijs/langs-precompiled/swift"),
kotlin: () => import("@shikijs/langs-precompiled/kotlin"),
kt: () => import("@shikijs/langs-precompiled/kotlin"),
kts: () => import("@shikijs/langs-precompiled/kotlin"),
Expand All @@ -91,7 +90,7 @@ const bundledThemes = {
"github-light": () => import("@shikijs/themes/github-light"),
} as Record<BundledTheme, DynamicImportThemeRegistration>;

const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<
const createHighlighter = /* @__PURE__ */ createBundledHighlighter<
BundledLanguage,
BundledTheme
>({
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"dependencies": {
"@emoji-mart/data": "^1.2.1",
"@handlewithcare/prosemirror-inputrules": "^0.1.4",
"@shikijs/types": "^3",
"@shikijs/types": "^4",
"@tanstack/store": "^0.7.7",
"@tiptap/core": "^3.13.0",
"@tiptap/extension-bold": "^3.13.0",
Expand All @@ -108,7 +108,7 @@
"emoji-mart": "^5.6.0",
"fast-deep-equal": "^3.1.3",
"hast-util-from-dom": "^5.0.1",
"prosemirror-highlight": "^0.13.0",
"prosemirror-highlight": "^0.15.1",
"prosemirror-model": "^1.25.4",
"prosemirror-state": "^1.4.4",
"prosemirror-tables": "^1.8.3",
Expand Down
58 changes: 35 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading