UNPKG

@composable-svelte/code

Version:

Code editor, syntax highlighting, and node-based canvas components for Composable Svelte - Built with Prism.js, CodeMirror, and SvelteFlow

16 lines (15 loc) 1.01 kB
/** * @composable-svelte/code * * Code editor and syntax highlighting components for Composable Svelte * * Built with Prism.js and CodeMirror following Composable Architecture patterns * * @packageDocumentation */ // CodeHighlight - Read-only syntax highlighting export { CodeHighlight, codeHighlightReducer, highlightCode, loadLanguage, createInitialState } from './code-highlight/index'; // CodeEditor - Interactive code editor with CodeMirror export { CodeEditor, codeEditorReducer, createEditorView, loadLanguage as loadEditorLanguage, updateEditorValue, updateEditorLanguage, updateEditorTheme, updateEditorReadOnly, updateTabSize, focusEditor, blurEditor, createInitialState as createEditorInitialState } from './code-editor/index'; // NodeCanvas - Node-based canvas editor with SvelteFlow export { NodeCanvas, nodeCanvasReducer, createConnectionValidator, permissiveValidator, strictValidator, composeValidators, createInitialNodeCanvasState, nodesToArray, edgesToArray } from './node-canvas/index';