@ctrl/ngx-codemirror
Advanced tools
Comparing version 4.1.1 to 5.0.0
@@ -30,6 +30,6 @@ (function (global, factory) { | ||
/* called when the editor is scrolled */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.scroll = new core.EventEmitter(); | ||
/* called when file(s) are dropped */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.drop = new core.EventEmitter(); | ||
@@ -63,2 +63,3 @@ this.value = ''; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._codeMirror = typeof CodeMirror !== 'undefined' ? CodeMirror : require('codemirror'); | ||
@@ -72,6 +73,2 @@ return this._codeMirror; | ||
var _this = this; | ||
if (!this.ref) { | ||
return; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._ngZone.runOutsideAngular(function () { | ||
@@ -148,4 +145,3 @@ _this.codeMirror = _this.codeMirrorGlobal.fromTextArea(_this.ref.nativeElement, _this._options); | ||
var cur = this.codeMirror.getValue(); | ||
if (value !== cur && | ||
normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
if (value !== cur && normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
this.value = value; | ||
@@ -206,3 +202,3 @@ if (this.preserveScrollPosition) { | ||
drop: [{ type: core.Output }], | ||
ref: [{ type: core.ViewChild, args: ['ref', { static: true },] }] | ||
ref: [{ type: core.ViewChild, args: ['ref',] }] | ||
}; | ||
@@ -209,0 +205,0 @@ |
import { AfterViewInit, DoCheck, ElementRef, EventEmitter, KeyValueDiffers, NgZone, OnDestroy } from '@angular/core'; | ||
import { ControlValueAccessor } from '@angular/forms'; | ||
import { Editor, EditorChangeLinkedList, EditorFromTextArea, ScrollInfo } from 'codemirror'; | ||
import { Editor, EditorChange, EditorFromTextArea, ScrollInfo } from 'codemirror'; | ||
export declare class CodemirrorComponent implements AfterViewInit, OnDestroy, ControlValueAccessor, DoCheck { | ||
@@ -22,3 +22,3 @@ private _differs; | ||
drop: EventEmitter<[Editor, DragEvent]>; | ||
ref: ElementRef; | ||
ref: ElementRef<HTMLTextAreaElement>; | ||
value: string; | ||
@@ -39,3 +39,3 @@ disabled: boolean; | ||
ngOnDestroy(): void; | ||
codemirrorValueChanged(cm: Editor, change: EditorChangeLinkedList): void; | ||
codemirrorValueChanged(cm: Editor, change: EditorChange): void; | ||
setOptionIfChanged(optionName: string, newValue: any): void; | ||
@@ -42,0 +42,0 @@ focusChanged(focused: boolean): void; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CodemirrorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":34,"character":1},"arguments":[{"selector":"ngx-codemirror","template":"\n <textarea\n [name]=\"name\"\n class=\"ngx-codemirror {{ className }}\"\n [class.ngx-codemirror--focused]=\"isFocused\"\n autocomplete=\"off\"\n [autofocus]=\"autoFocus\"\n #ref\n >\n </textarea>\n ","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":49,"character":15},"useExisting":{"__symbolic":"reference","name":"CodemirrorComponent"},"multi":true}],"preserveWhitespaces":false,"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":55,"character":19},"member":"OnPush"}}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"autoFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":69,"character":3}}]}],"preserveScrollPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":3}}]}],"cursorActivity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":79,"character":3}}]}],"focusChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":81,"character":3}}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":84,"character":3}}]}],"drop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":87,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":88,"character":3},"arguments":["ref",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"KeyValueDiffers","line":101,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":101,"character":66}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"codemirrorValueChanged":[{"__symbolic":"method"}],"setOptionIfChanged":[{"__symbolic":"method"}],"focusChanged":[{"__symbolic":"method"}],"scrollChanged":[{"__symbolic":"method"}],"cursorActive":[{"__symbolic":"method"}],"dropFiles":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"CodemirrorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","name":"CodemirrorComponent"}],"declarations":[{"__symbolic":"reference","name":"CodemirrorComponent"}]}]}],"members":{}}},"origins":{"CodemirrorComponent":"./codemirror.component","CodemirrorModule":"./codemirror.module"},"importAs":"@ctrl/ngx-codemirror"} | ||
{"__symbolic":"module","version":4,"metadata":{"CodemirrorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":29,"character":1},"arguments":[{"selector":"ngx-codemirror","template":"\n <textarea\n [name]=\"name\"\n class=\"ngx-codemirror {{ className }}\"\n [class.ngx-codemirror--focused]=\"isFocused\"\n autocomplete=\"off\"\n [autofocus]=\"autoFocus\"\n #ref\n >\n </textarea>\n ","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":44,"character":15},"useExisting":{"__symbolic":"reference","name":"CodemirrorComponent"},"multi":true}],"preserveWhitespaces":false,"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":50,"character":19},"member":"OnPush"}}]}],"members":{"className":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"autoFocus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":3}}]}],"preserveScrollPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":3}}]}],"cursorActivity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":75,"character":3}}]}],"focusChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":77,"character":3}}]}],"scroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":80,"character":3}}]}],"drop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":83,"character":3}}]}],"ref":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":84,"character":3},"arguments":["ref"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"KeyValueDiffers","line":97,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":97,"character":66}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"codemirrorValueChanged":[{"__symbolic":"method"}],"setOptionIfChanged":[{"__symbolic":"method"}],"focusChanged":[{"__symbolic":"method"}],"scrollChanged":[{"__symbolic":"method"}],"cursorActive":[{"__symbolic":"method"}],"dropFiles":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}},"CodemirrorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","name":"CodemirrorComponent"}],"declarations":[{"__symbolic":"reference","name":"CodemirrorComponent"}]}]}],"members":{}}},"origins":{"CodemirrorComponent":"./codemirror.component","CodemirrorModule":"./codemirror.module"},"importAs":"@ctrl/ngx-codemirror"} |
@@ -26,6 +26,6 @@ import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, Input, KeyValueDiffers, NgZone, Output, ViewChild, } from '@angular/core'; | ||
/* called when the editor is scrolled */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.scroll = new EventEmitter(); | ||
/* called when file(s) are dropped */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.drop = new EventEmitter(); | ||
@@ -54,2 +54,3 @@ this.value = ''; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._codeMirror = typeof CodeMirror !== 'undefined' ? CodeMirror : require('codemirror'); | ||
@@ -59,6 +60,2 @@ return this._codeMirror; | ||
ngAfterViewInit() { | ||
if (!this.ref) { | ||
return; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._ngZone.runOutsideAngular(() => { | ||
@@ -134,4 +131,3 @@ this.codeMirror = this.codeMirrorGlobal.fromTextArea(this.ref.nativeElement, this._options); | ||
const cur = this.codeMirror.getValue(); | ||
if (value !== cur && | ||
normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
if (value !== cur && normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
this.value = value; | ||
@@ -201,4 +197,4 @@ if (this.preserveScrollPosition) { | ||
drop: [{ type: Output }], | ||
ref: [{ type: ViewChild, args: ['ref', { static: true },] }] | ||
ref: [{ type: ViewChild, args: ['ref',] }] | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZW1pcnJvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vc3JjL2xpYi8iLCJzb3VyY2VzIjpbImNvZGVtaXJyb3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUdULFlBQVksRUFDWixVQUFVLEVBQ1YsS0FBSyxFQUVMLGVBQWUsRUFDZixNQUFNLEVBR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udCc7XG5cbkBOZ01vZHVsZSh7XG4gIGV4cG9ydHM6IFtDb2RlbWlycm9yQ29tcG9uZW50XSxcbiAgZGVjbGFyYXRpb25zOiBbQ29kZW1pcnJvckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIENvZGVtaXJyb3JNb2R1bGUge31cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZW1pcnJvci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2NvZGVtaXJyb3IubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFNN0QsTUFBTSxPQUFPLGdCQUFnQjs7O1lBSjVCLFFBQVEsU0FBQztnQkFDUixPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztnQkFDOUIsWUFBWSxFQUFFLENBQUMsbUJBQW1CLENBQUM7YUFDcEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBDb2RlbWlycm9yQ29tcG9uZW50IH0gZnJvbSAnLi9jb2RlbWlycm9yLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGV4cG9ydHM6IFtDb2RlbWlycm9yQ29tcG9uZW50XSxcbiAgZGVjbGFyYXRpb25zOiBbQ29kZW1pcnJvckNvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIENvZGVtaXJyb3JNb2R1bGUge31cbiJdfQ== |
@@ -5,2 +5,2 @@ /** | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3RybC1uZ3gtY29kZW1pcnJvci5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi9zcmMvbGliLyIsInNvdXJjZXMiOlsiY3RybC1uZ3gtY29kZW1pcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3RybC1uZ3gtY29kZW1pcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvY3RybC1uZ3gtY29kZW1pcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
export * from './codemirror.component'; | ||
export * from './codemirror.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi9zcmMvbGliLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvZGVtaXJyb3IuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY29kZW1pcnJvci5tb2R1bGUnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvZGVtaXJyb3IuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY29kZW1pcnJvci5tb2R1bGUnO1xuIl19 |
@@ -27,6 +27,6 @@ import { EventEmitter, Component, forwardRef, ChangeDetectionStrategy, KeyValueDiffers, NgZone, Input, Output, ViewChild, NgModule } from '@angular/core'; | ||
/* called when the editor is scrolled */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.scroll = new EventEmitter(); | ||
/* called when file(s) are dropped */ | ||
// tslint:disable-next-line:no-output-native | ||
// eslint-disable-next-line @angular-eslint/no-output-native | ||
this.drop = new EventEmitter(); | ||
@@ -55,2 +55,3 @@ this.value = ''; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._codeMirror = typeof CodeMirror !== 'undefined' ? CodeMirror : require('codemirror'); | ||
@@ -60,6 +61,2 @@ return this._codeMirror; | ||
ngAfterViewInit() { | ||
if (!this.ref) { | ||
return; | ||
} | ||
// in order to allow for universal rendering, we import Codemirror runtime with `require` to prevent node errors | ||
this._ngZone.runOutsideAngular(() => { | ||
@@ -135,4 +132,3 @@ this.codeMirror = this.codeMirrorGlobal.fromTextArea(this.ref.nativeElement, this._options); | ||
const cur = this.codeMirror.getValue(); | ||
if (value !== cur && | ||
normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
if (value !== cur && normalizeLineEndings(cur) !== normalizeLineEndings(value)) { | ||
this.value = value; | ||
@@ -202,3 +198,3 @@ if (this.preserveScrollPosition) { | ||
drop: [{ type: Output }], | ||
ref: [{ type: ViewChild, args: ['ref', { static: true },] }] | ||
ref: [{ type: ViewChild, args: ['ref',] }] | ||
}; | ||
@@ -205,0 +201,0 @@ |
{ | ||
"$schema": "../../node_modules/ng-packagr/package.schema.json", | ||
"name": "@ctrl/ngx-codemirror", | ||
"version": "4.1.1", | ||
"version": "5.0.0", | ||
"license": "MIT", | ||
"description": "CodeMirror wrapper for Angular", | ||
"dependencies": { | ||
"@types/codemirror": "^0.0.99", | ||
"tslib": "^2.0.0" | ||
"@types/codemirror": "^5.60.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": ">=10.0.0-0", | ||
"@angular/forms": ">=10.0.0-0", | ||
"codemirror": ">=5.58.0" | ||
"@angular/core": ">=12.0.0-0", | ||
"@angular/forms": ">=12.0.0-0", | ||
"codemirror": ">=5.61.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "repository": "scttcper/ngx-codemirror", |
# ngx-codemirror [![npm](https://badgen.net/npm/v/@ctrl/ngx-codemirror)](https://www.npmjs.com/package/@ctrl/ngx-codemirror) [![CircleCI](https://badgen.net/circleci/github/scttcper/ngx-codemirror)](https://circleci.com/gh/scttcper/ngx-codemirror) [![coverage](https://badgen.net/codecov/c/github/scttcper/ngx-codemirror)](https://codecov.io/gh/scttcper/ngx-codemirror) | ||
DEMO: https://ngx-codemirror.vercel.app | ||
DEMO: https://ngx-codemirror.vercel.app | ||
@@ -9,8 +9,9 @@ ## Dependencies | ||
| @ctrl/ngx-codemirror | Angular | | ||
| -------------------- | ------- | | ||
| 1.3.10 | 6.x 7.x | | ||
| 2.2.1 | 8.x | | ||
| 3.1.3 | 9.x | | ||
| current | >= 10.x | | ||
| @ctrl/ngx-codemirror | Angular | | ||
| -------------------- | --------- | | ||
| 1.3.10 | 6.x 7.x | | ||
| 2.2.1 | 8.x | | ||
| 3.1.3 | 9.x | | ||
| 4.1.1 | 10.x 11.x | | ||
| current | >= 12.x | | ||
@@ -60,3 +61,3 @@ An Angular component wrapper for [CodeMirror](https://codemirror.net/) that extends ngModel. Based on [JedWatson/react-codemirror](https://github.com/JedWatson/react-codemirror) | ||
```scss | ||
```css | ||
@import '~codemirror/lib/codemirror'; | ||
@@ -63,0 +64,0 @@ @import '~codemirror/theme/material'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
104
81247
16
698
+ Added@types/codemirror@5.60.15(transitive)
- Removed@types/codemirror@0.0.99(transitive)
Updated@types/codemirror@^5.60.0
Updatedtslib@^2.1.0