@usememos/editor 26.10.23 → 26.10.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/theme.css CHANGED
@@ -7,9 +7,9 @@
7
7
  * --mbe-<name>-dark on the root or any ancestor (:root works): the rules
8
8
  * below read them with the default palette as fallback.
9
9
  * Light and dark follow prefers-color-scheme; data-theme="light" or
10
- * data-theme="dark", or a `light` or `dark` class (the Tailwind and shadcn
11
- * convention), on the root or an ancestor forces one, as does the theme
12
- * option's colorScheme.
10
+ * data-theme="dark", or a `light` or `dark` class (as Tailwind-style
11
+ * theming toggles it), on the root or an ancestor forces one, as does the
12
+ * theme option's colorScheme.
13
13
  */
14
14
  .mbe-root,
15
15
  .mbe-ui {
@@ -13,7 +13,7 @@ export type { MarkdownOptions } from './markdown/options.js';
13
13
  export { docToHtml } from './clipboard/toHtml.js';
14
14
  export { htmlToDoc } from './clipboard/fromHtml.js';
15
15
  export type { BlockView, CodeDecorationContext, Extension, ExtensionContext, KeyHandler, SyntaxView } from './extension.js';
16
- export { shadcnTheme, type ColorScheme, type Theme, type ThemeClasses, type ThemeColors, type ThemeTokens } from './theme.js';
16
+ export { type ColorScheme, type Theme, type ThemeClasses, type ThemeColors, type ThemeTokens } from './theme.js';
17
17
  export { defaultKeymap } from './extensions/keymap.js';
18
18
  export { math, type MathOptions } from './extensions/math.js';
19
19
  export { footnotes, type FootnotesOptions } from './extensions/footnotes.js';
@@ -94,13 +94,6 @@ export interface Theme {
94
94
  /** Default `auto`. */
95
95
  readonly colorScheme?: ColorScheme;
96
96
  }
97
- /**
98
- * The editor in an app styled with shadcn/ui: colors, font and radius from
99
- * shadcn's CSS variables (`--foreground`, `--primary`, `--radius`, …), so the
100
- * editor follows the app's theme, and light or dark from the `dark` class.
101
- * Spread it to change a part: `{ tokens: { ...shadcnTheme.tokens, radius: 4 } }`.
102
- */
103
- export declare const shadcnTheme: Theme;
104
97
  /** Merges class maps; a later map wins for the same key, and `heading` and `token` merge per entry. */
105
98
  export declare function mergeClasses(maps: readonly (ThemeClasses | undefined)[]): ThemeClasses;
106
99
  /** The token properties that change how text measures: a view that laid out text (a diagram) renders again when one changes. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usememos/editor",
3
- "version": "26.10.23",
3
+ "version": "26.10.24",
4
4
  "description": "A block editor for Markdown. Zero runtime dependencies, with an optional React component.",
5
5
  "keywords": [
6
6
  "markdown",