From 142b0c406322d009c00d820b0ca776432533907f Mon Sep 17 00:00:00 2001 From: Obada Khalili <54270856+obadakhalili@users.noreply.github.com> Date: Thu, 12 Feb 2026 05:07:39 +0200 Subject: [PATCH] Exports of crepe package point at incorrect path (#2252) * exports point at incorrect path * fix: also update docs and references --------- Co-authored-by: Saul-Mirone --- docs/api/crepe.md | 6 +++--- packages/crepe/package.json | 8 ++++---- storybook/stories/crepe/crepe-dark.stories.ts | 2 +- storybook/stories/crepe/crepe.stories.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/api/crepe.md b/docs/api/crepe.md index 9aada9e81a0..62f21793381 100644 --- a/docs/api/crepe.md +++ b/docs/api/crepe.md @@ -539,7 +539,7 @@ import '@milkdown/crepe/theme/common/block-edit.css' import '@milkdown/crepe/theme/common/toolbar.css' // And introduce the theme -import '@milkdown/crepe/theme/crepe.css' +import '@milkdown/crepe/theme/classic.css' const builder = new CrepeBuilder({ root: '#editor', @@ -581,12 +581,12 @@ Crepe comes with several built-in themes that can be imported: ```typescript // Light themes -import '@milkdown/crepe/theme/crepe.css' +import '@milkdown/crepe/theme/classic.css' import '@milkdown/crepe/theme/nord.css' import '@milkdown/crepe/theme/frame.css' // Dark themes -import '@milkdown/crepe/theme/crepe-dark.css' +import '@milkdown/crepe/theme/classic-dark.css' import '@milkdown/crepe/theme/nord-dark.css' import '@milkdown/crepe/theme/frame-dark.css' ``` diff --git a/packages/crepe/package.json b/packages/crepe/package.json index b8ee24ab288..3c04a426123 100644 --- a/packages/crepe/package.json +++ b/packages/crepe/package.json @@ -53,8 +53,8 @@ "import": "./src/feature/toolbar/index.ts" }, "./theme/common/*": "./src/theme/common/*", - "./theme/crepe.css": "./src/theme/crepe/style.css", - "./theme/crepe-dark.css": "./src/theme/crepe-dark/style.css", + "./theme/classic.css": "./src/theme/crepe/style.css", + "./theme/classic-dark.css": "./src/theme/crepe-dark/style.css", "./theme/nord.css": "./src/theme/nord/style.css", "./theme/nord-dark.css": "./src/theme/nord-dark/style.css", "./theme/frame.css": "./src/theme/frame/style.css", @@ -126,8 +126,8 @@ "types": "./lib/types/feature/toolbar/index.d.ts" }, "./theme/common/*": "./lib/theme/common/*", - "./theme/classic.css": "./lib/theme/classic/style.css", - "./theme/classic-dark.css": "./lib/theme/classic-dark/style.css", + "./theme/classic.css": "./lib/theme/crepe/style.css", + "./theme/classic-dark.css": "./lib/theme/crepe-dark/style.css", "./theme/nord.css": "./lib/theme/nord/style.css", "./theme/nord-dark.css": "./lib/theme/nord-dark/style.css", "./theme/frame.css": "./lib/theme/frame/style.css", diff --git a/storybook/stories/crepe/crepe-dark.stories.ts b/storybook/stories/crepe/crepe-dark.stories.ts index 7503dfe4461..ce2d9c169c2 100644 --- a/storybook/stories/crepe/crepe-dark.stories.ts +++ b/storybook/stories/crepe/crepe-dark.stories.ts @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/html' -import crepeDark from '@milkdown/crepe/theme/crepe-dark.css?inline' +import crepeDark from '@milkdown/crepe/theme/classic-dark.css?inline' import { basicDark } from '@uiw/codemirror-theme-basic' import type { Args } from './setup' diff --git a/storybook/stories/crepe/crepe.stories.ts b/storybook/stories/crepe/crepe.stories.ts index 405fcf088d3..ef5bddea207 100644 --- a/storybook/stories/crepe/crepe.stories.ts +++ b/storybook/stories/crepe/crepe.stories.ts @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/html' -import crepe from '@milkdown/crepe/theme/crepe.css?inline' +import crepe from '@milkdown/crepe/theme/classic.css?inline' import { basicLight } from '@uiw/codemirror-theme-basic' import type { Args } from './setup'