@jupyterlab/codemirror 4.3.0-beta.3 → 4.3.0-rc.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/lib/extension.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ const INLINE_MATH_BRACKET = 'InlineMathBracket';
|
|
|
8
8
|
const BLOCK_MATH_DOLLAR = 'BlockMathDollar';
|
|
9
9
|
const BLOCK_MATH_BRACKET = 'BlockMathBracket';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Length of the delimiter for a math expression
|
|
12
12
|
*/
|
|
13
13
|
const DELIMITER_LENGTH = {
|
|
14
14
|
[INLINE_MATH_DOLLAR]: 1,
|
package/lib/searchprovider.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare abstract class EditorSearchProvider<T extends CodeEditor.IModel =
|
|
|
93
93
|
*/
|
|
94
94
|
setIsActive(v: boolean): Promise<void>;
|
|
95
95
|
/**
|
|
96
|
-
* Set whether search should be
|
|
96
|
+
* Set whether search should be limited to specified text selection.
|
|
97
97
|
*/
|
|
98
98
|
setSearchSelection(selection: CodeEditor.IRange | null): Promise<void>;
|
|
99
99
|
/**
|
package/lib/searchprovider.js
CHANGED
|
@@ -114,7 +114,7 @@ export class EditorSearchProvider {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
|
-
* Set whether search should be
|
|
117
|
+
* Set whether search should be limited to specified text selection.
|
|
118
118
|
*/
|
|
119
119
|
async setSearchSelection(selection) {
|
|
120
120
|
if (this._inSelection === selection) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/codemirror",
|
|
3
|
-
"version": "4.3.0-
|
|
3
|
+
"version": "4.3.0-rc.0",
|
|
4
4
|
"description": "JupyterLab - CodeMirror Editor Provider",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"@codemirror/state": "^6.4.1",
|
|
59
59
|
"@codemirror/view": "^6.26.3",
|
|
60
60
|
"@jupyter/ydoc": "^3.0.0-a8",
|
|
61
|
-
"@jupyterlab/codeeditor": "^4.3.0-
|
|
62
|
-
"@jupyterlab/coreutils": "^6.3.0-
|
|
63
|
-
"@jupyterlab/documentsearch": "^4.3.0-
|
|
64
|
-
"@jupyterlab/nbformat": "^4.3.0-
|
|
65
|
-
"@jupyterlab/translation": "^4.3.0-
|
|
61
|
+
"@jupyterlab/codeeditor": "^4.3.0-rc.0",
|
|
62
|
+
"@jupyterlab/coreutils": "^6.3.0-rc.0",
|
|
63
|
+
"@jupyterlab/documentsearch": "^4.3.0-rc.0",
|
|
64
|
+
"@jupyterlab/nbformat": "^4.3.0-rc.0",
|
|
65
|
+
"@jupyterlab/translation": "^4.3.0-rc.0",
|
|
66
66
|
"@lezer/common": "^1.2.1",
|
|
67
67
|
"@lezer/generator": "^1.7.0",
|
|
68
68
|
"@lezer/highlight": "^1.2.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"yjs": "^13.5.40"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@jupyterlab/testing": "^4.3.0-
|
|
76
|
+
"@jupyterlab/testing": "^4.3.0-rc.0",
|
|
77
77
|
"@lezer/generator": "^1.7.0",
|
|
78
78
|
"@lezer/lr": "^1.4.0",
|
|
79
79
|
"@types/jest": "^29.2.0",
|
package/src/extension.ts
CHANGED
|
@@ -17,7 +17,7 @@ const BLOCK_MATH_DOLLAR = 'BlockMathDollar';
|
|
|
17
17
|
const BLOCK_MATH_BRACKET = 'BlockMathBracket';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Length of the delimiter for a math expression
|
|
21
21
|
*/
|
|
22
22
|
const DELIMITER_LENGTH: Record<string, number> = {
|
|
23
23
|
[INLINE_MATH_DOLLAR]: 1,
|
package/src/searchprovider.ts
CHANGED
|
@@ -210,7 +210,7 @@ export abstract class EditorSearchProvider<
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
|
-
* Set whether search should be
|
|
213
|
+
* Set whether search should be limited to specified text selection.
|
|
214
214
|
*/
|
|
215
215
|
async setSearchSelection(selection: CodeEditor.IRange | null): Promise<void> {
|
|
216
216
|
if (this._inSelection === selection) {
|