3545d00d46
Replaces most editing components with CM components, enabling vim mode and completions everywhere Fixes #205 Fixes #221 Fixes #222 Fixes #223
32 lines
914 B
TypeScript
32 lines
914 B
TypeScript
export * from "../common/deps.ts";
|
|
|
|
export { Fragment, h, render as preactRender } from "preact";
|
|
export type { ComponentChildren, FunctionalComponent } from "preact";
|
|
export {
|
|
useEffect,
|
|
useReducer,
|
|
useRef,
|
|
useState,
|
|
} from "https://esm.sh/preact@10.11.1/hooks";
|
|
|
|
export {
|
|
Book as BookIcon,
|
|
Home as HomeIcon,
|
|
Terminal as TerminalIcon,
|
|
} from "https://esm.sh/preact-feather@4.2.1";
|
|
|
|
// Y collab
|
|
export * as Y from "yjs";
|
|
export {
|
|
yCollab,
|
|
yUndoManagerKeymap,
|
|
} from "https://esm.sh/y-codemirror.next@0.3.2?external=yjs,@codemirror/state,@codemirror/commands,@codemirror/history,@codemirror/view";
|
|
export { WebsocketProvider } from "https://esm.sh/y-websocket@1.4.5?external=yjs";
|
|
|
|
// Vim mode
|
|
export {
|
|
getCM as vimGetCm,
|
|
Vim,
|
|
vim,
|
|
} from "https://esm.sh/@replit/codemirror-vim@6.0.4?external=@codemirror/state,@codemirror/language,@codemirror/view,@codemirror/search,@codemirror/commands";
|