Skip to content

Commit

Permalink
Fix packages & add SelectionRange
Browse files Browse the repository at this point in the history
  • Loading branch information
pankgeorg committed Sep 18, 2021
1 parent cca05ca commit ff6431c
Show file tree
Hide file tree
Showing 9 changed files with 34,466 additions and 26,315 deletions.
2,251 changes: 2,077 additions & 174 deletions dist/bundle.d.ts

Large diffs are not rendered by default.

32,145 changes: 17,824 additions & 14,321 deletions dist/bundle.js

Large diffs are not rendered by default.

25,920 changes: 14,318 additions & 11,602 deletions dist/index.bundle.js

Large diffs are not rendered by default.

294 changes: 210 additions & 84 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var state = require('@codemirror/state');
var streamParser = require('@codemirror/stream-parser');
var julia = require('@codemirror/legacy-modes/mode/julia');
var langJulia = require('lang-julia');
var gutter = require('@codemirror/gutter');
var view = require('@codemirror/view');
var history = require('@codemirror/history');
Expand All @@ -18,116 +19,241 @@ var closebrackets = require('@codemirror/closebrackets');
var autocomplete = require('@codemirror/autocomplete');
var search = require('@codemirror/search');
var comment = require('@codemirror/comment');
var common = require('@lezer/common');


const basicSetup = [
gutter.lineNumbers(),
view.highlightSpecialChars(),
history.history(),
fold.foldGutter(),
view.drawSelection(),
state.EditorState.allowMultipleSelections.of(true),
language.indentOnInput(),
highlight.defaultHighlightStyle.fallback,
matchbrackets.bracketMatching(),
closebrackets.closeBrackets(),
autocomplete.autocompletion(),
rectangularSelection.rectangularSelection(),
view.highlightActiveLine(),
search.highlightSelectionMatches(),
view.keymap.of([
...closebrackets.closeBracketsKeymap,
...commands.defaultKeymap,
...search.searchKeymap,
...history.historyKeymap,
...fold.foldKeymap,
...comment.commentKeymap,
...autocomplete.completionKeymap,
// ...lint.lintKeymap,
]),
];

Object.defineProperty(exports, 'Compartment', {
enumerable: true,
get: function () {
return state.Compartment;
}
enumerable: true,
get: function () {
return state.Compartment;
}
});
Object.defineProperty(exports, 'EditorSelection', {
enumerable: true,
get: function () {
return state.EditorSelection;
}
enumerable: true,
get: function () {
return state.EditorSelection;
}
});
Object.defineProperty(exports, 'EditorState', {
enumerable: true,
get: function () {
return state.EditorState;
}
enumerable: true,
get: function () {
return state.EditorState;
}
});
Object.defineProperty(exports, 'SelectionRange', {
enumerable: true,
get: function () {
return state.SelectionRange;
}
});
Object.defineProperty(exports, 'StreamLanguage', {
enumerable: true,
get: function () {
return streamParser.StreamLanguage;
}
enumerable: true,
get: function () {
return streamParser.StreamLanguage;
}
});
Object.defineProperty(exports, 'julia_legacy', {
enumerable: true,
get: function () {
return julia.julia;
}
});
Object.defineProperty(exports, 'julia_andrey', {
enumerable: true,
get: function () {
return langJulia.julia;
}
});
Object.defineProperty(exports, 'julia', {
enumerable: true,
get: function () {
return julia.julia;
}
Object.defineProperty(exports, 'lineNumbers', {
enumerable: true,
get: function () {
return gutter.lineNumbers;
}
});
Object.defineProperty(exports, 'Decoration', {
enumerable: true,
get: function () {
return view.Decoration;
}
});
Object.defineProperty(exports, 'EditorView', {
enumerable: true,
get: function () {
return view.EditorView;
}
enumerable: true,
get: function () {
return view.EditorView;
}
});
Object.defineProperty(exports, 'ViewPlugin', {
enumerable: true,
get: function () {
return view.ViewPlugin;
}
});
Object.defineProperty(exports, 'ViewUpdate', {
enumerable: true,
get: function () {
return view.ViewUpdate;
}
});
Object.defineProperty(exports, 'WidgetType', {
enumerable: true,
get: function () {
return view.WidgetType;
}
});
Object.defineProperty(exports, 'drawSelection', {
enumerable: true,
get: function () {
return view.drawSelection;
}
});
Object.defineProperty(exports, 'highlightSpecialChars', {
enumerable: true,
get: function () {
return view.highlightSpecialChars;
}
});
Object.defineProperty(exports, 'keymap', {
enumerable: true,
get: function () {
return view.keymap;
}
enumerable: true,
get: function () {
return view.keymap;
}
});
Object.defineProperty(exports, 'placeholder', {
enumerable: true,
get: function () {
return view.placeholder;
}
});
Object.defineProperty(exports, 'history', {
enumerable: true,
get: function () {
return history.history;
}
enumerable: true,
get: function () {
return history.history;
}
});
Object.defineProperty(exports, 'historyKeymap', {
enumerable: true,
get: function () {
return history.historyKeymap;
}
enumerable: true,
get: function () {
return history.historyKeymap;
}
});
Object.defineProperty(exports, 'defaultKeymap', {
enumerable: true,
get: function () {
return commands.defaultKeymap;
}
enumerable: true,
get: function () {
return commands.defaultKeymap;
}
});
Object.defineProperty(exports, 'indentLess', {
enumerable: true,
get: function () {
return commands.indentLess;
}
enumerable: true,
get: function () {
return commands.indentLess;
}
});
Object.defineProperty(exports, 'indentMore', {
enumerable: true,
get: function () {
return commands.indentMore;
}
enumerable: true,
get: function () {
return commands.indentMore;
}
});
Object.defineProperty(exports, 'HighlightStyle', {
enumerable: true,
get: function () {
return highlight.HighlightStyle;
}
enumerable: true,
get: function () {
return highlight.HighlightStyle;
}
});
Object.defineProperty(exports, 'defaultHighlightStyle', {
enumerable: true,
get: function () {
return highlight.defaultHighlightStyle;
}
});
Object.defineProperty(exports, 'tags', {
enumerable: true,
get: function () {
return highlight.tags;
}
enumerable: true,
get: function () {
return highlight.tags;
}
});
Object.defineProperty(exports, 'indentOnInput', {
enumerable: true,
get: function () {
return language.indentOnInput;
}
});
Object.defineProperty(exports, 'syntaxTree', {
enumerable: true,
get: function () {
return language.syntaxTree;
}
});
Object.defineProperty(exports, 'rectangularSelection', {
enumerable: true,
get: function () {
return rectangularSelection.rectangularSelection;
}
});
Object.defineProperty(exports, 'foldGutter', {
enumerable: true,
get: function () {
return fold.foldGutter;
}
});
Object.defineProperty(exports, 'foldKeymap', {
enumerable: true,
get: function () {
return fold.foldKeymap;
}
});
Object.defineProperty(exports, 'bracketMatching', {
enumerable: true,
get: function () {
return matchbrackets.bracketMatching;
}
});
Object.defineProperty(exports, 'closeBrackets', {
enumerable: true,
get: function () {
return closebrackets.closeBrackets;
}
});
Object.defineProperty(exports, 'closeBracketsKeymap', {
enumerable: true,
get: function () {
return closebrackets.closeBracketsKeymap;
}
});
Object.defineProperty(exports, 'autocompletion', {
enumerable: true,
get: function () {
return autocomplete.autocompletion;
}
});
Object.defineProperty(exports, 'completionKeymap', {
enumerable: true,
get: function () {
return autocomplete.completionKeymap;
}
});
Object.defineProperty(exports, 'highlightSelectionMatches', {
enumerable: true,
get: function () {
return search.highlightSelectionMatches;
}
});
Object.defineProperty(exports, 'searchKeymap', {
enumerable: true,
get: function () {
return search.searchKeymap;
}
});
Object.defineProperty(exports, 'commentKeymap', {
enumerable: true,
get: function () {
return comment.commentKeymap;
}
});
Object.defineProperty(exports, 'TreeCursor', {
enumerable: true,
get: function () {
return common.TreeCursor;
}
});
exports.basicSetup = basicSetup;
24 changes: 15 additions & 9 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import * as _codemirror_state from '@codemirror/state';
export { Compartment, EditorSelection, EditorState } from '@codemirror/state';
export { Compartment, EditorSelection, EditorState, SelectionRange } from '@codemirror/state';
export { StreamLanguage } from '@codemirror/stream-parser';
export { julia } from '@codemirror/legacy-modes/mode/julia';
export { EditorView, keymap } from '@codemirror/view';
export { julia as julia_legacy } from '@codemirror/legacy-modes/mode/julia';
export { julia as julia_andrey } from 'lang-julia';
export { lineNumbers } from '@codemirror/gutter';
export { Decoration, EditorView, ViewPlugin, ViewUpdate, WidgetType, drawSelection, highlightSpecialChars, keymap, placeholder } from '@codemirror/view';
export { history, historyKeymap } from '@codemirror/history';
export { defaultKeymap, indentLess, indentMore } from '@codemirror/commands';
export { HighlightStyle, tags } from '@codemirror/highlight';

declare const basicSetup: _codemirror_state.Extension[];

export { basicSetup };
export { HighlightStyle, defaultHighlightStyle, tags } from '@codemirror/highlight';
export { indentOnInput, syntaxTree } from '@codemirror/language';
export { rectangularSelection } from '@codemirror/rectangular-selection';
export { foldGutter, foldKeymap } from '@codemirror/fold';
export { bracketMatching } from '@codemirror/matchbrackets';
export { closeBrackets, closeBracketsKeymap } from '@codemirror/closebrackets';
export { autocompletion, completionKeymap } from '@codemirror/autocomplete';
export { highlightSelectionMatches, searchKeymap } from '@codemirror/search';
export { commentKeymap } from '@codemirror/comment';
export { TreeCursor } from '@lezer/common';
Loading

0 comments on commit ff6431c

Please sign in to comment.