Skip to content

Commit

Permalink
build: include editor theme in the library
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Dec 9, 2024
1 parent c5194ff commit 9db0521
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/playground/src/RichTextComposer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
} from 'svelte-lexical';
import {prepopulatedRichText} from './prepopulatedRichText';
import type {SettingsStore} from './settings/setttingsStore';
import PlaygroundEditorTheme from './themes/PlaygroundEditorTheme';
import {editorTheme as PlaygroundEditorTheme} from 'svelte-lexical';
import ToolbarPlayground from './ToolbarPlayground.svelte';
import {createWebsocketProvider} from './collaboration';
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-lexical/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@ export {
} from './core/nodeSelectionStore.js';

export {$getSelection} from 'lexical';

// theme
export {default as editorTheme} from './themes/PlaygroundEditorTheme.js';
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {EditorThemeClasses} from 'svelte-lexical';

import './CommentEditorTheme.css';

import baseTheme from './PlaygroundEditorTheme';
import baseTheme from './PlaygroundEditorTheme.js';

const theme: EditorThemeClasses = {
...baseTheme,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {EditorThemeClasses} from 'svelte-lexical';

import './StickyEditorTheme.css';

import baseTheme from './PlaygroundEditorTheme';
import baseTheme from './PlaygroundEditorTheme.js';

const theme: EditorThemeClasses = {
...baseTheme,
Expand Down

0 comments on commit 9db0521

Please sign in to comment.