Skip to content

Commit 977bba8

Browse files
committed
fix: remove basic setup
1 parent 5b937d5 commit 977bba8

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"vite-tsconfig-paths": "^3.4.1"
7373
},
7474
"peerDependencies": {
75-
"@codemirror/basic-setup": "^0.20.0",
7675
"@codemirror/commands": "^0.20.0",
7776
"@codemirror/state": "^0.20.0",
7877
"@codemirror/view": "^0.20.4",
@@ -82,7 +81,6 @@
8281
"node": ">=14"
8382
},
8483
"dependencies": {
85-
"@codemirror/basic-setup": "^0.20.0",
8684
"@codemirror/commands": "^0.20.0",
8785
"@codemirror/state": "^0.20.0",
8886
"@codemirror/view": "^0.20.4",

src/lib/createCodeMirror.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {EditorState, SelectionRange, StateEffect} from '@codemirror/state';
2-
import {basicSetup as defaultBasicSetup} from '@codemirror/basic-setup';
32
import {EditorView, keymap, placeholder as extendPlaceholder} from '@codemirror/view';
43
import {indentWithTab as defaultIndentWithTab} from '@codemirror/commands';
54
import {createEffect, createMemo, createSignal, on, onCleanup} from 'solid-js';
@@ -31,7 +30,6 @@ export function createCodeMirror(initialOptions: CodeMirrorOptions) {
3130
const computedExtensions = createMemo(() => {
3231
const {
3332
indentWithTab,
34-
basicSetup,
3533
placeholder,
3634
editable,
3735
onUpdate,
@@ -42,7 +40,6 @@ export function createCodeMirror(initialOptions: CodeMirrorOptions) {
4240

4341
return [
4442
indentWithTab ? keymap.of([defaultIndentWithTab]) : null,
45-
basicSetup ? defaultBasicSetup : null,
4643
placeholder && extendPlaceholder ? extendPlaceholder(placeholder) : null,
4744
!editable ? EditorView.editable.of(false) : null,
4845
!!onUpdate && typeof onUpdate === 'function' ? EditorView.updateListener.of(onUpdate) : null,

src/lib/types/codeMirrorProps.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ export interface CodeMirrorComponentProps extends Omit<EditorStateConfig, 'doc'
4545
* Enables a placeholder—a piece of example content to show when the editor is empty.
4646
*/
4747
placeholder?: string | HTMLElement;
48-
/**
49-
* Whether to optional basicSetup by default
50-
* @default true
51-
*/
52-
basicSetup?: boolean;
5348
/**
5449
* This disables editing of the editor content by the user.
5550
* @default true

src/lib/utils/extractCodeMirrorProps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const extractCodeMirrorProps = (
2222
'width',
2323
'minWidth',
2424
'maxWidth',
25-
'basicSetup',
2625
'placeholder',
2726
'editable',
2827
'root',

0 commit comments

Comments
 (0)