@difizen/libro-cofine-editor 0.2.34 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,6 @@ export declare class LibroE2EditorContribution implements CodeEditorContribution
|
|
|
7
7
|
defaultConfig: Required<import("./libro-e2-editor.js").LibroE2EditorConfig>;
|
|
8
8
|
constructor(libroE2EditorFactory: LibroE2EditorFactory);
|
|
9
9
|
stateFactory: EditorStateFactory<any>;
|
|
10
|
-
canHandle(
|
|
10
|
+
canHandle(): number;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=editor-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-contribution.d.ts","sourceRoot":"","sources":["../src/editor-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"editor-contribution.d.ts","sourceRoot":"","sources":["../src/editor-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAGL,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,qBACa,yBAA0B,YAAW,sBAAsB;IAEtE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,OAAO,EAAE,iBAAiB,CAAC;IAE3B,aAAa,+DAAwB;gBAGL,oBAAoB,EAAE,oBAAoB;IAK1E,YAAY,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAKnC;IAEF,SAAS,IAAI,MAAM;CAGpB"}
|
|
@@ -9,7 +9,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
10
10
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
11
11
|
import { CodeEditorContribution, LanguageSpecRegistry } from '@difizen/libro-code-editor';
|
|
12
|
-
import { MIME } from '@difizen/libro-common';
|
|
13
12
|
import { inject, singleton } from '@difizen/mana-app';
|
|
14
13
|
import { e2StateFactory, libroE2DefaultConfig, LibroE2EditorFactory } from "./libro-e2-editor.js";
|
|
15
14
|
export var LibroE2EditorContribution = (_dec = singleton({
|
|
@@ -31,12 +30,8 @@ export var LibroE2EditorContribution = (_dec = singleton({
|
|
|
31
30
|
LibroE2EditorContribution = inject(LibroE2EditorFactory)(LibroE2EditorContribution, undefined, 0) || LibroE2EditorContribution;
|
|
32
31
|
_createClass(LibroE2EditorContribution, [{
|
|
33
32
|
key: "canHandle",
|
|
34
|
-
value: function canHandle(
|
|
35
|
-
|
|
36
|
-
if (mimes.includes(mime)) {
|
|
37
|
-
return 50 + 1;
|
|
38
|
-
}
|
|
39
|
-
return 0;
|
|
33
|
+
value: function canHandle() {
|
|
34
|
+
return 50;
|
|
40
35
|
}
|
|
41
36
|
}]);
|
|
42
37
|
return LibroE2EditorContribution;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-cofine-editor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.35",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@difizen/monaco-editor-core": "0.39.4",
|
|
36
|
-
"@difizen/libro-cofine-editor-core": "^0.2.
|
|
37
|
-
"@difizen/libro-cofine-textmate": "^0.2.
|
|
38
|
-
"@difizen/libro-lsp": "^0.2.
|
|
39
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
40
|
-
"@difizen/libro-common": "^0.2.
|
|
41
|
-
"@difizen/libro-core": "^0.2.
|
|
36
|
+
"@difizen/libro-cofine-editor-core": "^0.2.35",
|
|
37
|
+
"@difizen/libro-cofine-textmate": "^0.2.35",
|
|
38
|
+
"@difizen/libro-lsp": "^0.2.35",
|
|
39
|
+
"@difizen/libro-code-editor": "^0.2.35",
|
|
40
|
+
"@difizen/libro-common": "^0.2.35",
|
|
41
|
+
"@difizen/libro-core": "^0.2.35",
|
|
42
42
|
"@difizen/mana-app": "latest",
|
|
43
43
|
"resize-observer-polyfill": "^1.5.1",
|
|
44
44
|
"vscode-languageserver-protocol": "^3.17.4",
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
CodeEditorContribution,
|
|
4
4
|
LanguageSpecRegistry,
|
|
5
5
|
} from '@difizen/libro-code-editor';
|
|
6
|
-
import { MIME } from '@difizen/libro-common';
|
|
7
6
|
import { inject, singleton } from '@difizen/mana-app';
|
|
8
7
|
|
|
9
8
|
import {
|
|
@@ -34,11 +33,7 @@ export class LibroE2EditorContribution implements CodeEditorContribution {
|
|
|
34
33
|
});
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
canHandle(
|
|
38
|
-
|
|
39
|
-
if (mimes.includes(mime)) {
|
|
40
|
-
return 50 + 1;
|
|
41
|
-
}
|
|
42
|
-
return 0;
|
|
36
|
+
canHandle(): number {
|
|
37
|
+
return 50;
|
|
43
38
|
}
|
|
44
39
|
}
|