@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/README.md +21 -6
- package/dist/index.js +0 -18
- package/dist/index.js.map +2 -2
- package/dist/theme.css +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/theme.d.ts +0 -7
- package/package.json +1 -1
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 (
|
|
11
|
-
*
|
|
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 {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 {
|
|
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';
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -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. */
|