@jupyterlab/codeeditor 4.0.8 → 4.0.10
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/lib/editor.d.ts +4 -1
- package/lib/editor.js.map +1 -1
- package/package.json +10 -10
- package/src/editor.ts +5 -1
package/lib/editor.d.ts
CHANGED
|
@@ -191,11 +191,14 @@ export declare namespace CodeEditor {
|
|
|
191
191
|
* Set the primary position of the cursor.
|
|
192
192
|
*
|
|
193
193
|
* @param position - The new primary position.
|
|
194
|
+
* @param options - Adjustment options allowing to disable scrolling.
|
|
194
195
|
*
|
|
195
196
|
* #### Notes
|
|
196
197
|
* This will remove any secondary cursors.
|
|
197
198
|
*/
|
|
198
|
-
setCursorPosition(position: IPosition
|
|
199
|
+
setCursorPosition(position: IPosition, options?: {
|
|
200
|
+
scroll?: boolean;
|
|
201
|
+
}): void;
|
|
199
202
|
/**
|
|
200
203
|
* Returns the primary selection, never `null`.
|
|
201
204
|
*/
|
package/lib/editor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAe,KAAK,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAkB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxE,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,KAAW,UAAU,
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAG3D,OAAO,EAAe,KAAK,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAkB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxE,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;G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W,CAAC;QAC1B,CAAC;QAED;;WAEG;QACH,OAAO;YACL,IAAI,IAAI,CAAC,WAAW,EAAE;gBACpB,OAAO;aACR;YACD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YAC3B,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;aAC5B;YACD,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;KAWF;IAhFY,gBAAK,QAgFjB,CAAA;AAsUH,CAAC,EA/hBgB,UAAU,KAAV,UAAU,QA+hB1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/codeeditor",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
4
4
|
"description": "JupyterLab - Abstract Code Editor",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@codemirror/state": "^6.2.0",
|
|
46
|
-
"@jupyter/ydoc": "^1.
|
|
47
|
-
"@jupyterlab/coreutils": "^6.0.
|
|
48
|
-
"@jupyterlab/nbformat": "^4.0.
|
|
49
|
-
"@jupyterlab/observables": "^5.0.
|
|
50
|
-
"@jupyterlab/statusbar": "^4.0.
|
|
51
|
-
"@jupyterlab/translation": "^4.0.
|
|
52
|
-
"@jupyterlab/ui-components": "^4.0.
|
|
46
|
+
"@jupyter/ydoc": "^1.1.1",
|
|
47
|
+
"@jupyterlab/coreutils": "^6.0.10",
|
|
48
|
+
"@jupyterlab/nbformat": "^4.0.10",
|
|
49
|
+
"@jupyterlab/observables": "^5.0.10",
|
|
50
|
+
"@jupyterlab/statusbar": "^4.0.10",
|
|
51
|
+
"@jupyterlab/translation": "^4.0.10",
|
|
52
|
+
"@jupyterlab/ui-components": "^4.0.10",
|
|
53
53
|
"@lumino/coreutils": "^2.1.2",
|
|
54
54
|
"@lumino/disposable": "^2.1.2",
|
|
55
|
-
"@lumino/dragdrop": "^2.1.
|
|
55
|
+
"@lumino/dragdrop": "^2.1.4",
|
|
56
56
|
"@lumino/messaging": "^2.0.1",
|
|
57
57
|
"@lumino/signaling": "^2.1.2",
|
|
58
58
|
"@lumino/widgets": "^2.3.0",
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@jupyterlab/testing": "^4.0.
|
|
62
|
+
"@jupyterlab/testing": "^4.0.10",
|
|
63
63
|
"@types/jest": "^29.2.0",
|
|
64
64
|
"jest": "^29.2.0",
|
|
65
65
|
"rimraf": "~3.0.0",
|
package/src/editor.ts
CHANGED
|
@@ -255,11 +255,15 @@ export namespace CodeEditor {
|
|
|
255
255
|
* Set the primary position of the cursor.
|
|
256
256
|
*
|
|
257
257
|
* @param position - The new primary position.
|
|
258
|
+
* @param options - Adjustment options allowing to disable scrolling.
|
|
258
259
|
*
|
|
259
260
|
* #### Notes
|
|
260
261
|
* This will remove any secondary cursors.
|
|
261
262
|
*/
|
|
262
|
-
setCursorPosition(
|
|
263
|
+
setCursorPosition(
|
|
264
|
+
position: IPosition,
|
|
265
|
+
options?: { scroll?: boolean }
|
|
266
|
+
): void;
|
|
263
267
|
|
|
264
268
|
/**
|
|
265
269
|
* Returns the primary selection, never `null`.
|