@hpcc-js/codemirror 2.49.0 → 2.53.0
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.
- package/dist/index.es6.js +5 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +6 -5
- package/src/Editor.ts +2 -1
- package/src/__package__.ts +2 -2
- package/types/Editor.d.ts +1 -1
- package/types/Editor.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/Editor.d.ts +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/codemirror",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.53.0",
|
|
4
4
|
"description": "hpcc-js - Viz Code Mirror",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"docs": "typedoc --options tdoptions.json ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/common": "^2.
|
|
40
|
+
"@hpcc-js/common": "^2.60.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@hpcc-js/bundle": "^2.10.
|
|
44
|
-
"@hpcc-js/codemirror-shim": "^2.
|
|
43
|
+
"@hpcc-js/bundle": "^2.10.20",
|
|
44
|
+
"@hpcc-js/codemirror-shim": "^2.27.0",
|
|
45
45
|
"@rollup/plugin-alias": "3.1.0",
|
|
46
46
|
"@rollup/plugin-commonjs": "12.0.0",
|
|
47
47
|
"@rollup/plugin-node-resolve": "8.0.0",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@typescript-eslint/parser": "4.31.0",
|
|
50
50
|
"downlevel-dts": "0.6.0",
|
|
51
51
|
"eslint": "7.32.0",
|
|
52
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
52
53
|
"npm-run-all": "4.1.5",
|
|
53
54
|
"rimraf": "2.6.3",
|
|
54
55
|
"rollup": "2.10.7",
|
|
@@ -70,5 +71,5 @@
|
|
|
70
71
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
71
72
|
},
|
|
72
73
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "61f20bb45f0d3baae7366f041ee87ee58ff7bb13"
|
|
74
75
|
}
|
package/src/Editor.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Editor extends HTMLWidget {
|
|
|
33
33
|
return gutters;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
addGutterMarker(lineNumber: number, commentText: string, backgroundColor: string = null, fontFamily: string = null, fontSize: string = null, onmouseenter = () => {}, onmouseleave = () => {}) {
|
|
36
|
+
addGutterMarker(lineNumber: number, commentText: string, backgroundColor: string = null, fontFamily: string = null, fontSize: string = null, onmouseenter = () => {}, onmouseleave = () => {}, onclick = (event: MouseEvent) => {}) {
|
|
37
37
|
const line = this._codemirror.getLineHandle(lineNumber);
|
|
38
38
|
const marker = document.createElement("div");
|
|
39
39
|
marker.textContent = commentText;
|
|
@@ -51,6 +51,7 @@ export class Editor extends HTMLWidget {
|
|
|
51
51
|
this._codemirror.setGutterMarker(line, "CodeMirror-guttermarker", marker);
|
|
52
52
|
marker.onmouseenter = onmouseenter;
|
|
53
53
|
marker.onmouseleave = onmouseleave;
|
|
54
|
+
marker.onclick = onclick;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
removeGutterMarker(lineNumber: number){
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/codemirror";
|
|
2
|
-
export const PKG_VERSION = "2.
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "2.53.0";
|
|
3
|
+
export const BUILD_VERSION = "2.94.0";
|
package/types/Editor.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Editor extends HTMLWidget {
|
|
|
13
13
|
className: string;
|
|
14
14
|
style: string;
|
|
15
15
|
})[];
|
|
16
|
-
addGutterMarker(lineNumber: number, commentText: string, backgroundColor?: string, fontFamily?: string, fontSize?: string, onmouseenter?: () => void, onmouseleave?: () => void): void;
|
|
16
|
+
addGutterMarker(lineNumber: number, commentText: string, backgroundColor?: string, fontFamily?: string, fontSize?: string, onmouseenter?: () => void, onmouseleave?: () => void, onclick?: (event: MouseEvent) => void): void;
|
|
17
17
|
removeGutterMarker(lineNumber: number): void;
|
|
18
18
|
hasFocus(): boolean;
|
|
19
19
|
text(): string;
|
package/types/Editor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../src/Editor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAW,MAAM,iBAAiB,CAAC;AAEtD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,MAAO,SAAQ,UAAU;IAClC,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,WAAW,CAAM;IACzB,SAAS,CAAC,YAAY,EAAE,MAAM,CAAM;IAEpC,OAAO,IAAI,GAAG;IASd,aAAa,IAAI,CAAC,MAAM,GAAG;QAAC,SAAS,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,CAAC,EAAE;IAW9D,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,GAAE,MAAa,EAAE,UAAU,GAAE,MAAa,EAAE,QAAQ,GAAE,MAAa,EAAE,YAAY,aAAW,EAAE,YAAY,aAAW;
|
|
1
|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GAAG,MAAM,GAAG,IAAI;IAKxE,kBAAkB,IAAI,IAAI;IAQ1B,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS;IAIhC,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIzC,kBAAkB,CAAC,GAAG,EAAE,MAAM;IAa9B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,UAAO;IAShD,KAAK,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAStB,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IASvB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE;IAGzB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;CAG9C;AAGD,MAAM,WAAW,MAAM;IACnB,QAAQ,IAAI,OAAO,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,iBAAiB,IAAI,MAAM,CAAC;IAC5B,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,eAAe,IAAI,MAAM,CAAC;IAC1B,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/codemirror";
|
|
2
|
-
export declare const PKG_VERSION = "2.
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
2
|
+
export declare const PKG_VERSION = "2.53.0";
|
|
3
|
+
export declare const BUILD_VERSION = "2.94.0";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
package/types-3.4/Editor.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class Editor extends HTMLWidget {
|
|
|
13
13
|
className: string;
|
|
14
14
|
style: string;
|
|
15
15
|
})[];
|
|
16
|
-
addGutterMarker(lineNumber: number, commentText: string, backgroundColor?: string, fontFamily?: string, fontSize?: string, onmouseenter?: () => void, onmouseleave?: () => void): void;
|
|
16
|
+
addGutterMarker(lineNumber: number, commentText: string, backgroundColor?: string, fontFamily?: string, fontSize?: string, onmouseenter?: () => void, onmouseleave?: () => void, onclick?: (event: MouseEvent) => void): void;
|
|
17
17
|
removeGutterMarker(lineNumber: number): void;
|
|
18
18
|
hasFocus(): boolean;
|
|
19
19
|
text(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/codemirror";
|
|
2
|
-
export declare const PKG_VERSION = "2.
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
2
|
+
export declare const PKG_VERSION = "2.53.0";
|
|
3
|
+
export declare const BUILD_VERSION = "2.94.0";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|