notebook 7.4.4__py3-none-any.whl → 7.4.5__py3-none-any.whl
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.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/static/{132.9f8c8540fc63a49a9d74.js → 132.bbe0fd1e86fe078554cf.js} +2 -2
- notebook/static/{132.9f8c8540fc63a49a9d74.js.map → 132.bbe0fd1e86fe078554cf.js.map} +1 -1
- notebook/static/{1584.fa41c8f3ce855db5cab4.js → 1584.5e136a9d8643093bc7e9.js} +2 -2
- notebook/static/{1584.fa41c8f3ce855db5cab4.js.map → 1584.5e136a9d8643093bc7e9.js.map} +1 -1
- notebook/static/{1650.afa95e6a11189688bc0d.js → 1650.43e49e4c78755f921679.js} +4 -4
- notebook/static/{1650.afa95e6a11189688bc0d.js.map → 1650.43e49e4c78755f921679.js.map} +1 -1
- notebook/static/{1684.12280f8470722e2e1bdd.js → 1684.72557761abcc7d3f021b.js} +5 -5
- notebook/static/{1684.12280f8470722e2e1bdd.js.map → 1684.72557761abcc7d3f021b.js.map} +1 -1
- notebook/static/{1715.a61bcde14ed0fff41d06.js → 1715.eb47d8a8fb23246d8368.js} +2 -2
- notebook/static/{1715.a61bcde14ed0fff41d06.js.map → 1715.eb47d8a8fb23246d8368.js.map} +1 -1
- notebook/static/{2913.ae7fccede5f85a45ab8f.js → 2913.274b19d8f201991f4a69.js} +3 -3
- notebook/static/{2913.ae7fccede5f85a45ab8f.js.map → 2913.274b19d8f201991f4a69.js.map} +1 -1
- notebook/static/{2955.d8fd055f03b878034fe4.js → 2955.199d6b7c6b5d8531cad7.js} +302 -47
- notebook/static/2955.199d6b7c6b5d8531cad7.js.map +1 -0
- notebook/static/{3146.8a7a657d9a66a9f5d3c4.js → 3146.f98fbe7d5b55224f0160.js} +3 -3
- notebook/static/{3146.8a7a657d9a66a9f5d3c4.js.map → 3146.f98fbe7d5b55224f0160.js.map} +1 -1
- notebook/static/{3197.679087d3d6e90032272a.js → 3197.132cf892d4ef38649b32.js} +3 -3
- notebook/static/{3197.679087d3d6e90032272a.js.map → 3197.132cf892d4ef38649b32.js.map} +1 -1
- notebook/static/{3619.22c7d8abf7febc282c79.js → 3619.2e4bf80097f9890aef49.js} +2 -2
- notebook/static/{3619.22c7d8abf7febc282c79.js.map → 3619.2e4bf80097f9890aef49.js.map} +1 -1
- notebook/static/{3768.2ac0d5c2a3fec16d1571.js → 3768.0b6995cb2c93a75f2359.js} +19 -19
- notebook/static/{7302.d78f81cccff1a175f9e0.js.map → 3768.0b6995cb2c93a75f2359.js.map} +1 -1
- notebook/static/{4276.aa39300c806a420e8c6e.js → 4276.2edc46f98f304de431b0.js} +3 -3
- notebook/static/{4276.aa39300c806a420e8c6e.js.map → 4276.2edc46f98f304de431b0.js.map} +1 -1
- notebook/static/{4382.b125e3c487c540303bd8.js → 4382.c317254086f1ae2d605a.js} +3 -3
- notebook/static/{4382.b125e3c487c540303bd8.js.map → 4382.c317254086f1ae2d605a.js.map} +1 -1
- notebook/static/{4430.1661db8ba0104d6baef2.js → 4430.879d60462da8c4629a70.js} +2 -2
- notebook/static/{4430.1661db8ba0104d6baef2.js.map → 4430.879d60462da8c4629a70.js.map} +1 -1
- notebook/static/{4588.7618f6b98796be928f8c.js → 4588.46b592131684aa708905.js} +3 -3
- notebook/static/{4588.7618f6b98796be928f8c.js.map → 4588.46b592131684aa708905.js.map} +1 -1
- notebook/static/{4645.998914768dd63f7e3b6a.js → 4645.9017711a4d52533bd2ae.js} +5 -5
- notebook/static/{4645.998914768dd63f7e3b6a.js.map → 4645.9017711a4d52533bd2ae.js.map} +1 -1
- notebook/static/{4837.a9ef53721ea86ce81edf.js → 4837.2a30feab2693717d3d43.js} +3 -3
- notebook/static/{4837.a9ef53721ea86ce81edf.js.map → 4837.2a30feab2693717d3d43.js.map} +1 -1
- notebook/static/{4926.07f857be253dfe2d9b64.js → 4926.7f42350f683b70d59456.js} +3 -3
- notebook/static/{4926.07f857be253dfe2d9b64.js.map → 4926.7f42350f683b70d59456.js.map} +1 -1
- notebook/static/{5135.b7b086e4e6f05e7e005d.js → 5135.1cde65c1d79a0adc262d.js} +11 -11
- notebook/static/{5135.b7b086e4e6f05e7e005d.js.map → 5135.1cde65c1d79a0adc262d.js.map} +1 -1
- notebook/static/{5573.bb30245305dc034dfc1d.js → 5573.38e0610ea3d6d9b005b5.js} +17 -17
- notebook/static/{5573.bb30245305dc034dfc1d.js.map → 5573.38e0610ea3d6d9b005b5.js.map} +1 -1
- notebook/static/{5601.66a1a7b62201a024a7c3.js → 5601.ffda77b468bc8b17a221.js} +5 -5
- notebook/static/{5601.66a1a7b62201a024a7c3.js.map → 5601.ffda77b468bc8b17a221.js.map} +1 -1
- notebook/static/{5850.65dd0d81b5948c463df4.js → 5850.30a4d9a000a79095dcff.js} +3 -3
- notebook/static/{5850.65dd0d81b5948c463df4.js.map → 5850.30a4d9a000a79095dcff.js.map} +1 -1
- notebook/static/{6271.7ad87d1f14b9d74742ec.js → 6271.809bc8c9941039275a30.js} +3 -3
- notebook/static/{6271.7ad87d1f14b9d74742ec.js.map → 6271.809bc8c9941039275a30.js.map} +1 -1
- notebook/static/{6345.d502d596db3228f46015.js → 6345.348b6265ddf3713ab5d6.js} +5 -5
- notebook/static/{6345.d502d596db3228f46015.js.map → 6345.348b6265ddf3713ab5d6.js.map} +1 -1
- notebook/static/{2283.b2d8643ec28ab13849b3.js → 6653.6525abafd19e7997f79c.js} +2 -2
- notebook/static/{2283.b2d8643ec28ab13849b3.js.map → 6653.6525abafd19e7997f79c.js.map} +1 -1
- notebook/static/{7302.d78f81cccff1a175f9e0.js → 7302.3f668970091842fbc9ca.js} +19 -19
- notebook/static/{3768.2ac0d5c2a3fec16d1571.js.map → 7302.3f668970091842fbc9ca.js.map} +1 -1
- notebook/static/{7450.c047a6b002d188bafd58.js → 7450.beacefc07c8e386709fa.js} +2 -2
- notebook/static/{7450.c047a6b002d188bafd58.js.map → 7450.beacefc07c8e386709fa.js.map} +1 -1
- notebook/static/{7866.b49b1018f43def5a8f30.js → 7866.b73df9c77816d05d6784.js} +3 -3
- notebook/static/{7866.b49b1018f43def5a8f30.js.map → 7866.b73df9c77816d05d6784.js.map} +1 -1
- notebook/static/{7906.487df198bc7b2617234f.js → 7906.c3e50e3c279ee95b5b0c.js} +3 -3
- notebook/static/{7906.487df198bc7b2617234f.js.map → 7906.c3e50e3c279ee95b5b0c.js.map} +1 -1
- notebook/static/{7995.45be6443b704da1daafc.js → 7995.8f35600b7ffffa34c89b.js} +3 -3
- notebook/static/{7995.45be6443b704da1daafc.js.map → 7995.8f35600b7ffffa34c89b.js.map} +1 -1
- notebook/static/{5261.f12a52481f4cee8ba676.js → 8313.45ac616d61cf717bff16.js} +152 -148
- notebook/static/8313.45ac616d61cf717bff16.js.map +1 -0
- notebook/static/{8579.d62567e04de2f4dfcdce.js → 8579.973518a0960b2b927064.js} +14 -14
- notebook/static/{8579.d62567e04de2f4dfcdce.js.map → 8579.973518a0960b2b927064.js.map} +1 -1
- notebook/static/{8781.33cace3f177efaaab2ae.js → 8781.3f87f07359077c3a8a85.js} +60 -60
- notebook/static/{8781.33cace3f177efaaab2ae.js.map → 8781.3f87f07359077c3a8a85.js.map} +1 -1
- notebook/static/{8875.af28a3c042114a6f93aa.js → 8875.0604966d624b3656aa1c.js} +4 -4
- notebook/static/{8875.af28a3c042114a6f93aa.js.map → 8875.0604966d624b3656aa1c.js.map} +1 -1
- notebook/static/{9068.53ce96460d0830da310f.js → 9068.d8c4c8fa34c89c710d15.js} +3 -3
- notebook/static/{9068.53ce96460d0830da310f.js.map → 9068.d8c4c8fa34c89c710d15.js.map} +1 -1
- notebook/static/{9380.392ac30e0b6842ae2b78.js → 9380.b2ee26fa1e359ebe5fb8.js} +5 -5
- notebook/static/{9380.392ac30e0b6842ae2b78.js.map → 9380.b2ee26fa1e359ebe5fb8.js.map} +1 -1
- notebook/static/{9799.3d54e01276f72cee9ada.js → 9799.f8f37b03cc4afc27f8f0.js} +2 -2
- notebook/static/{9799.3d54e01276f72cee9ada.js.map → 9799.f8f37b03cc4afc27f8f0.js.map} +1 -1
- notebook/static/main.e99dd4f880b24bc94403.js +1180 -0
- notebook/static/main.e99dd4f880b24bc94403.js.map +1 -0
- notebook/static/{notebook_core.5321b49dd3857d00ab82.js → notebook_core.e0fcfe0884f9e1166813.js} +974 -893
- notebook/static/{notebook_core.5321b49dd3857d00ab82.js.map → notebook_core.e0fcfe0884f9e1166813.js.map} +1 -1
- notebook/static/third-party-licenses.json +104 -104
- notebook/templates/consoles.html +1 -1
- notebook/templates/edit.html +1 -1
- notebook/templates/error.html +1 -1
- notebook/templates/notebooks.html +1 -1
- notebook/templates/terminals.html +1 -1
- notebook/templates/tree.html +1 -1
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.4.5.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/261.ed6f8abd5781e8d11deb.js +1 -0
- notebook-7.4.4.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.0143b064f4b09edb4d20.js → notebook-7.4.5.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.5e057f374374b68b6acf.js +1 -1
- notebook-7.4.5.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.fb1e84fb9063ca0568af.js +1 -0
- notebook-7.4.4.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js → notebook-7.4.5.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.c48a681bb3e8043bbbd7.js +1 -1
- notebook-7.4.5.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.7e3d7768845089ad5f5f.js +1 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.4.4.dist-info → notebook-7.4.5.dist-info}/METADATA +2 -2
- {notebook-7.4.4.dist-info → notebook-7.4.5.dist-info}/RECORD +124 -124
- notebook/static/2955.d8fd055f03b878034fe4.js.map +0 -1
- notebook/static/5261.f12a52481f4cee8ba676.js.map +0 -1
- notebook/static/main.58cb79c84cf80ba7b6ed.js +0 -1180
- notebook/static/main.58cb79c84cf80ba7b6ed.js.map +0 -1
- notebook-7.4.4.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/557.2f882aef2c303890736d.js +0 -1
- notebook-7.4.4.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.7e52f03b261ea07bcb3d.js +0 -1
- notebook-7.4.4.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.da0f2149411be83933cb.js +0 -1
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/full-width-notebook.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.4.4.data → notebook-7.4.5.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.4.4.dist-info → notebook-7.4.5.dist-info}/WHEEL +0 -0
- {notebook-7.4.4.dist-info → notebook-7.4.5.dist-info}/entry_points.txt +0 -0
- {notebook-7.4.4.dist-info → notebook-7.4.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,70 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[
|
|
2
|
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[8313],{
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 28313:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
6
|
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
7
|
__webpack_require__.r(__webpack_exports__);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
// EXTERNAL MODULE: consume shared module (default) @codemirror/state@~6.5.2 (singleton) (fallback: ../node_modules/@codemirror/state/dist/index.js)
|
|
36
|
-
var dist_index_js_ = __webpack_require__(82990);
|
|
37
|
-
;// CONCATENATED MODULE: ../node_modules/crelt/index.js
|
|
38
|
-
function crelt() {
|
|
39
|
-
var elt = arguments[0]
|
|
40
|
-
if (typeof elt == "string") elt = document.createElement(elt)
|
|
41
|
-
var i = 1, next = arguments[1]
|
|
42
|
-
if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
|
|
43
|
-
for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
|
|
44
|
-
var value = next[name]
|
|
45
|
-
if (typeof value == "string") elt.setAttribute(name, value)
|
|
46
|
-
else if (value != null) elt[name] = value
|
|
47
|
-
}
|
|
48
|
-
i++
|
|
49
|
-
}
|
|
50
|
-
for (; i < arguments.length; i++) add(elt, arguments[i])
|
|
51
|
-
return elt
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function add(elt, child) {
|
|
55
|
-
if (typeof child == "string") {
|
|
56
|
-
elt.appendChild(document.createTextNode(child))
|
|
57
|
-
} else if (child == null) {
|
|
58
|
-
} else if (child.nodeType != null) {
|
|
59
|
-
elt.appendChild(child)
|
|
60
|
-
} else if (Array.isArray(child)) {
|
|
61
|
-
for (var i = 0; i < child.length; i++) add(elt, child[i])
|
|
62
|
-
} else {
|
|
63
|
-
throw new RangeError("Unsupported child node: " + child)
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
;// CONCATENATED MODULE: ../node_modules/@codemirror/search/dist/index.js
|
|
8
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
+
/* harmony export */ RegExpCursor: () => (/* binding */ RegExpCursor),
|
|
10
|
+
/* harmony export */ SearchCursor: () => (/* binding */ SearchCursor),
|
|
11
|
+
/* harmony export */ SearchQuery: () => (/* binding */ SearchQuery),
|
|
12
|
+
/* harmony export */ closeSearchPanel: () => (/* binding */ closeSearchPanel),
|
|
13
|
+
/* harmony export */ findNext: () => (/* binding */ findNext),
|
|
14
|
+
/* harmony export */ findPrevious: () => (/* binding */ findPrevious),
|
|
15
|
+
/* harmony export */ getSearchQuery: () => (/* binding */ getSearchQuery),
|
|
16
|
+
/* harmony export */ gotoLine: () => (/* binding */ gotoLine),
|
|
17
|
+
/* harmony export */ highlightSelectionMatches: () => (/* binding */ highlightSelectionMatches),
|
|
18
|
+
/* harmony export */ openSearchPanel: () => (/* binding */ openSearchPanel),
|
|
19
|
+
/* harmony export */ replaceAll: () => (/* binding */ replaceAll),
|
|
20
|
+
/* harmony export */ replaceNext: () => (/* binding */ replaceNext),
|
|
21
|
+
/* harmony export */ search: () => (/* binding */ search),
|
|
22
|
+
/* harmony export */ searchKeymap: () => (/* binding */ searchKeymap),
|
|
23
|
+
/* harmony export */ searchPanelOpen: () => (/* binding */ searchPanelOpen),
|
|
24
|
+
/* harmony export */ selectMatches: () => (/* binding */ selectMatches),
|
|
25
|
+
/* harmony export */ selectNextOccurrence: () => (/* binding */ selectNextOccurrence),
|
|
26
|
+
/* harmony export */ selectSelectionMatches: () => (/* binding */ selectSelectionMatches),
|
|
27
|
+
/* harmony export */ setSearchQuery: () => (/* binding */ setSearchQuery)
|
|
28
|
+
/* harmony export */ });
|
|
29
|
+
/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21486);
|
|
30
|
+
/* harmony import */ var _codemirror_view__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_codemirror_view__WEBPACK_IMPORTED_MODULE_0__);
|
|
31
|
+
/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82990);
|
|
32
|
+
/* harmony import */ var _codemirror_state__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__);
|
|
33
|
+
/* harmony import */ var crelt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76767);
|
|
68
34
|
|
|
69
35
|
|
|
70
36
|
|
|
@@ -118,7 +84,7 @@ class SearchCursor {
|
|
|
118
84
|
this.bufferPos = 0;
|
|
119
85
|
this.buffer = this.iter.value;
|
|
120
86
|
}
|
|
121
|
-
return (0,
|
|
87
|
+
return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointAt)(this.buffer, this.bufferPos);
|
|
122
88
|
}
|
|
123
89
|
/**
|
|
124
90
|
Look for the next match. Updates the iterator's
|
|
@@ -143,8 +109,8 @@ class SearchCursor {
|
|
|
143
109
|
this.done = true;
|
|
144
110
|
return this;
|
|
145
111
|
}
|
|
146
|
-
let str = (0,
|
|
147
|
-
this.bufferPos += (0,
|
|
112
|
+
let str = (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.fromCodePoint)(next), start = this.bufferStart + this.bufferPos;
|
|
113
|
+
this.bufferPos += (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.codePointSize)(next);
|
|
148
114
|
let norm = this.normalize(str);
|
|
149
115
|
if (norm.length)
|
|
150
116
|
for (let i = 0, pos = start;; i++) {
|
|
@@ -375,8 +341,8 @@ function toCharEnd(text, pos) {
|
|
|
375
341
|
|
|
376
342
|
function createLineDialog(view) {
|
|
377
343
|
let line = String(view.state.doc.lineAt(view.state.selection.main.head).number);
|
|
378
|
-
let input =
|
|
379
|
-
let dom =
|
|
344
|
+
let input = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", { class: "cm-textfield", name: "line", value: line });
|
|
345
|
+
let dom = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("form", {
|
|
380
346
|
class: "cm-gotoLine",
|
|
381
347
|
onkeydown: (event) => {
|
|
382
348
|
if (event.keyCode == 27) { // Escape
|
|
@@ -393,7 +359,7 @@ function createLineDialog(view) {
|
|
|
393
359
|
event.preventDefault();
|
|
394
360
|
go();
|
|
395
361
|
}
|
|
396
|
-
},
|
|
362
|
+
}, (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("label", view.state.phrase("Go to line"), ": ", input), " ", (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("button", { class: "cm-button", type: "submit" }, view.state.phrase("go")), (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("button", {
|
|
397
363
|
name: "close",
|
|
398
364
|
onclick: () => {
|
|
399
365
|
view.dispatch({ effects: dialogEffect.of(false) });
|
|
@@ -420,17 +386,17 @@ function createLineDialog(view) {
|
|
|
420
386
|
line = line * (sign == "-" ? -1 : 1) + startLine.number;
|
|
421
387
|
}
|
|
422
388
|
let docLine = state.doc.line(Math.max(1, Math.min(state.doc.lines, line)));
|
|
423
|
-
let selection =
|
|
389
|
+
let selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(docLine.from + Math.max(0, Math.min(col, docLine.length)));
|
|
424
390
|
view.dispatch({
|
|
425
|
-
effects: [dialogEffect.of(false),
|
|
391
|
+
effects: [dialogEffect.of(false), _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.scrollIntoView(selection.from, { y: 'center' })],
|
|
426
392
|
selection,
|
|
427
393
|
});
|
|
428
394
|
view.focus();
|
|
429
395
|
}
|
|
430
396
|
return { dom };
|
|
431
397
|
}
|
|
432
|
-
const dialogEffect = /*@__PURE__*/
|
|
433
|
-
const dialogField = /*@__PURE__*/
|
|
398
|
+
const dialogEffect = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();
|
|
399
|
+
const dialogField = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({
|
|
434
400
|
create() { return true; },
|
|
435
401
|
update(value, tr) {
|
|
436
402
|
for (let e of tr.effects)
|
|
@@ -438,7 +404,7 @@ const dialogField = /*@__PURE__*/dist_index_js_.StateField.define({
|
|
|
438
404
|
value = e.value;
|
|
439
405
|
return value;
|
|
440
406
|
},
|
|
441
|
-
provide: f =>
|
|
407
|
+
provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.showPanel.from(f, val => val ? createLineDialog : null)
|
|
442
408
|
});
|
|
443
409
|
/**
|
|
444
410
|
Command that shows a dialog asking the user for a line number, and
|
|
@@ -450,19 +416,19 @@ column position by adding `:` and a second number after the line
|
|
|
450
416
|
number.
|
|
451
417
|
*/
|
|
452
418
|
const gotoLine = view => {
|
|
453
|
-
let panel = (0,
|
|
419
|
+
let panel = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.getPanel)(view, createLineDialog);
|
|
454
420
|
if (!panel) {
|
|
455
421
|
let effects = [dialogEffect.of(true)];
|
|
456
422
|
if (view.state.field(dialogField, false) == null)
|
|
457
|
-
effects.push(
|
|
423
|
+
effects.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.appendConfig.of([dialogField, baseTheme$1]));
|
|
458
424
|
view.dispatch({ effects });
|
|
459
|
-
panel = (0,
|
|
425
|
+
panel = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.getPanel)(view, createLineDialog);
|
|
460
426
|
}
|
|
461
427
|
if (panel)
|
|
462
428
|
panel.dom.querySelector("input").select();
|
|
463
429
|
return true;
|
|
464
430
|
};
|
|
465
|
-
const baseTheme$1 = /*@__PURE__*/
|
|
431
|
+
const baseTheme$1 = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.baseTheme({
|
|
466
432
|
".cm-panel.cm-gotoLine": {
|
|
467
433
|
padding: "2px 6px 4px",
|
|
468
434
|
position: "relative",
|
|
@@ -485,9 +451,9 @@ const defaultHighlightOptions = {
|
|
|
485
451
|
maxMatches: 100,
|
|
486
452
|
wholeWords: false
|
|
487
453
|
};
|
|
488
|
-
const highlightConfig = /*@__PURE__*/
|
|
454
|
+
const highlightConfig = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({
|
|
489
455
|
combine(options) {
|
|
490
|
-
return (0,
|
|
456
|
+
return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(options, defaultHighlightOptions, {
|
|
491
457
|
highlightWordAroundCursor: (a, b) => a || b,
|
|
492
458
|
minSelectionLength: Math.min,
|
|
493
459
|
maxMatches: Math.min
|
|
@@ -506,19 +472,19 @@ function highlightSelectionMatches(options) {
|
|
|
506
472
|
ext.push(highlightConfig.of(options));
|
|
507
473
|
return ext;
|
|
508
474
|
}
|
|
509
|
-
const matchDeco = /*@__PURE__*/
|
|
510
|
-
const mainMatchDeco = /*@__PURE__*/
|
|
475
|
+
const matchDeco = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.mark({ class: "cm-selectionMatch" });
|
|
476
|
+
const mainMatchDeco = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
511
477
|
// Whether the characters directly outside the given positions are non-word characters
|
|
512
478
|
function insideWordBoundaries(check, state, from, to) {
|
|
513
|
-
return (from == 0 || check(state.sliceDoc(from - 1, from)) !=
|
|
514
|
-
(to == state.doc.length || check(state.sliceDoc(to, to + 1)) !=
|
|
479
|
+
return (from == 0 || check(state.sliceDoc(from - 1, from)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) &&
|
|
480
|
+
(to == state.doc.length || check(state.sliceDoc(to, to + 1)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word);
|
|
515
481
|
}
|
|
516
482
|
// Whether the characters directly at the given positions are word characters
|
|
517
483
|
function insideWord(check, state, from, to) {
|
|
518
|
-
return check(state.sliceDoc(from, from + 1)) ==
|
|
519
|
-
&& check(state.sliceDoc(to - 1, to)) ==
|
|
484
|
+
return check(state.sliceDoc(from, from + 1)) == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word
|
|
485
|
+
&& check(state.sliceDoc(to - 1, to)) == _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word;
|
|
520
486
|
}
|
|
521
|
-
const matchHighlighter = /*@__PURE__*/
|
|
487
|
+
const matchHighlighter = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.ViewPlugin.fromClass(class {
|
|
522
488
|
constructor(view) {
|
|
523
489
|
this.decorations = this.getDeco(view);
|
|
524
490
|
}
|
|
@@ -530,32 +496,32 @@ const matchHighlighter = /*@__PURE__*/index_js_.ViewPlugin.fromClass(class {
|
|
|
530
496
|
let conf = view.state.facet(highlightConfig);
|
|
531
497
|
let { state } = view, sel = state.selection;
|
|
532
498
|
if (sel.ranges.length > 1)
|
|
533
|
-
return
|
|
499
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
534
500
|
let range = sel.main, query, check = null;
|
|
535
501
|
if (range.empty) {
|
|
536
502
|
if (!conf.highlightWordAroundCursor)
|
|
537
|
-
return
|
|
503
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
538
504
|
let word = state.wordAt(range.head);
|
|
539
505
|
if (!word)
|
|
540
|
-
return
|
|
506
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
541
507
|
check = state.charCategorizer(range.head);
|
|
542
508
|
query = state.sliceDoc(word.from, word.to);
|
|
543
509
|
}
|
|
544
510
|
else {
|
|
545
511
|
let len = range.to - range.from;
|
|
546
512
|
if (len < conf.minSelectionLength || len > 200)
|
|
547
|
-
return
|
|
513
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
548
514
|
if (conf.wholeWords) {
|
|
549
515
|
query = state.sliceDoc(range.from, range.to); // TODO: allow and include leading/trailing space?
|
|
550
516
|
check = state.charCategorizer(range.head);
|
|
551
517
|
if (!(insideWordBoundaries(check, state, range.from, range.to) &&
|
|
552
518
|
insideWord(check, state, range.from, range.to)))
|
|
553
|
-
return
|
|
519
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
554
520
|
}
|
|
555
521
|
else {
|
|
556
522
|
query = state.sliceDoc(range.from, range.to);
|
|
557
523
|
if (!query)
|
|
558
|
-
return
|
|
524
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
559
525
|
}
|
|
560
526
|
}
|
|
561
527
|
let deco = [];
|
|
@@ -569,23 +535,23 @@ const matchHighlighter = /*@__PURE__*/index_js_.ViewPlugin.fromClass(class {
|
|
|
569
535
|
else if (from >= range.to || to <= range.from)
|
|
570
536
|
deco.push(matchDeco.range(from, to));
|
|
571
537
|
if (deco.length > conf.maxMatches)
|
|
572
|
-
return
|
|
538
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
573
539
|
}
|
|
574
540
|
}
|
|
575
541
|
}
|
|
576
|
-
return
|
|
542
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.set(deco);
|
|
577
543
|
}
|
|
578
544
|
}, {
|
|
579
545
|
decorations: v => v.decorations
|
|
580
546
|
});
|
|
581
|
-
const defaultTheme = /*@__PURE__*/
|
|
547
|
+
const defaultTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.baseTheme({
|
|
582
548
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
583
549
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
584
550
|
});
|
|
585
551
|
// Select the words around the cursors.
|
|
586
552
|
const selectWord = ({ state, dispatch }) => {
|
|
587
553
|
let { selection } = state;
|
|
588
|
-
let newSel =
|
|
554
|
+
let newSel = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(selection.ranges.map(range => state.wordAt(range.head) || _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.cursor(range.head)), selection.mainIndex);
|
|
589
555
|
if (newSel.eq(selection))
|
|
590
556
|
return false;
|
|
591
557
|
dispatch(state.update({ selection: newSel }));
|
|
@@ -631,22 +597,22 @@ const selectNextOccurrence = ({ state, dispatch }) => {
|
|
|
631
597
|
if (!range)
|
|
632
598
|
return false;
|
|
633
599
|
dispatch(state.update({
|
|
634
|
-
selection: state.selection.addRange(
|
|
635
|
-
effects:
|
|
600
|
+
selection: state.selection.addRange(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(range.from, range.to), false),
|
|
601
|
+
effects: _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.scrollIntoView(range.to)
|
|
636
602
|
}));
|
|
637
603
|
return true;
|
|
638
604
|
};
|
|
639
605
|
|
|
640
|
-
const searchConfigFacet = /*@__PURE__*/
|
|
606
|
+
const searchConfigFacet = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Facet.define({
|
|
641
607
|
combine(configs) {
|
|
642
|
-
return (0,
|
|
608
|
+
return (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.combineConfig)(configs, {
|
|
643
609
|
top: false,
|
|
644
610
|
caseSensitive: false,
|
|
645
611
|
literal: false,
|
|
646
612
|
regexp: false,
|
|
647
613
|
wholeWord: false,
|
|
648
614
|
createPanel: view => new SearchPanel(view),
|
|
649
|
-
scrollToMatch: range =>
|
|
615
|
+
scrollToMatch: range => _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.scrollIntoView(range)
|
|
650
616
|
});
|
|
651
617
|
}
|
|
652
618
|
});
|
|
@@ -702,7 +668,7 @@ class SearchQuery {
|
|
|
702
668
|
range in the given state.
|
|
703
669
|
*/
|
|
704
670
|
getCursor(state, from = 0, to) {
|
|
705
|
-
let st = state.doc ? state :
|
|
671
|
+
let st = state.doc ? state : _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorState.create({ doc: state });
|
|
706
672
|
if (to == null)
|
|
707
673
|
to = st.doc.length;
|
|
708
674
|
return this.regexp ? regexpCursor(this, st, from, to) : stringCursor(this, st, from, to);
|
|
@@ -722,10 +688,10 @@ function stringWordTest(doc, categorizer) {
|
|
|
722
688
|
bufPos = Math.max(0, from - 2);
|
|
723
689
|
buf = doc.sliceString(bufPos, Math.min(doc.length, to + 2));
|
|
724
690
|
}
|
|
725
|
-
return (categorizer(charBefore(buf, from - bufPos)) !=
|
|
726
|
-
categorizer(charAfter(buf, from - bufPos)) !=
|
|
727
|
-
(categorizer(charAfter(buf, to - bufPos)) !=
|
|
728
|
-
categorizer(charBefore(buf, to - bufPos)) !=
|
|
691
|
+
return (categorizer(charBefore(buf, from - bufPos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word ||
|
|
692
|
+
categorizer(charAfter(buf, from - bufPos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) &&
|
|
693
|
+
(categorizer(charAfter(buf, to - bufPos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word ||
|
|
694
|
+
categorizer(charBefore(buf, to - bufPos)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word);
|
|
729
695
|
};
|
|
730
696
|
}
|
|
731
697
|
class StringQuery extends QueryType {
|
|
@@ -784,17 +750,17 @@ function regexpCursor(spec, state, from, to) {
|
|
|
784
750
|
}, from, to);
|
|
785
751
|
}
|
|
786
752
|
function charBefore(str, index) {
|
|
787
|
-
return str.slice((0,
|
|
753
|
+
return str.slice((0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(str, index, false), index);
|
|
788
754
|
}
|
|
789
755
|
function charAfter(str, index) {
|
|
790
|
-
return str.slice(index, (0,
|
|
756
|
+
return str.slice(index, (0,_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.findClusterBreak)(str, index));
|
|
791
757
|
}
|
|
792
758
|
function regexpWordTest(categorizer) {
|
|
793
759
|
return (_from, _to, match) => !match[0].length ||
|
|
794
|
-
(categorizer(charBefore(match.input, match.index)) !=
|
|
795
|
-
categorizer(charAfter(match.input, match.index)) !=
|
|
796
|
-
(categorizer(charAfter(match.input, match.index + match[0].length)) !=
|
|
797
|
-
categorizer(charBefore(match.input, match.index + match[0].length)) !=
|
|
760
|
+
(categorizer(charBefore(match.input, match.index)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word ||
|
|
761
|
+
categorizer(charAfter(match.input, match.index)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word) &&
|
|
762
|
+
(categorizer(charAfter(match.input, match.index + match[0].length)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word ||
|
|
763
|
+
categorizer(charBefore(match.input, match.index + match[0].length)) != _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.CharCategory.Word);
|
|
798
764
|
}
|
|
799
765
|
class RegExpQuery extends QueryType {
|
|
800
766
|
nextMatch(state, curFrom, curTo) {
|
|
@@ -855,9 +821,9 @@ this only has an effect if the search state has been initialized
|
|
|
855
821
|
by running [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) at least
|
|
856
822
|
once).
|
|
857
823
|
*/
|
|
858
|
-
const setSearchQuery = /*@__PURE__*/
|
|
859
|
-
const togglePanel = /*@__PURE__*/
|
|
860
|
-
const searchState = /*@__PURE__*/
|
|
824
|
+
const setSearchQuery = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();
|
|
825
|
+
const togglePanel = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.define();
|
|
826
|
+
const searchState = /*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateField.define({
|
|
861
827
|
create(state) {
|
|
862
828
|
return new SearchState(defaultQuery(state).create(), null);
|
|
863
829
|
},
|
|
@@ -870,7 +836,7 @@ const searchState = /*@__PURE__*/dist_index_js_.StateField.define({
|
|
|
870
836
|
}
|
|
871
837
|
return value;
|
|
872
838
|
},
|
|
873
|
-
provide: f =>
|
|
839
|
+
provide: f => _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.showPanel.from(f, val => val.panel)
|
|
874
840
|
});
|
|
875
841
|
/**
|
|
876
842
|
Get the current search query from an editor state.
|
|
@@ -892,8 +858,8 @@ class SearchState {
|
|
|
892
858
|
this.panel = panel;
|
|
893
859
|
}
|
|
894
860
|
}
|
|
895
|
-
const matchMark = /*@__PURE__*/
|
|
896
|
-
const searchHighlighter = /*@__PURE__*/
|
|
861
|
+
const matchMark = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.mark({ class: "cm-searchMatch" }), selectedMatchMark = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.mark({ class: "cm-searchMatch cm-searchMatch-selected" });
|
|
862
|
+
const searchHighlighter = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.ViewPlugin.fromClass(class {
|
|
897
863
|
constructor(view) {
|
|
898
864
|
this.view = view;
|
|
899
865
|
this.decorations = this.highlight(view.state.field(searchState));
|
|
@@ -905,9 +871,9 @@ const searchHighlighter = /*@__PURE__*/index_js_.ViewPlugin.fromClass(class {
|
|
|
905
871
|
}
|
|
906
872
|
highlight({ query, panel }) {
|
|
907
873
|
if (!panel || !query.spec.valid)
|
|
908
|
-
return
|
|
874
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.Decoration.none;
|
|
909
875
|
let { view } = this;
|
|
910
|
-
let builder = new
|
|
876
|
+
let builder = new _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.RangeSetBuilder();
|
|
911
877
|
for (let i = 0, ranges = view.visibleRanges, l = ranges.length; i < l; i++) {
|
|
912
878
|
let { from, to } = ranges[i];
|
|
913
879
|
while (i < l - 1 && to > ranges[i + 1].from - 2 * 250 /* RegExp.HighlightMargin */)
|
|
@@ -939,7 +905,7 @@ const findNext = /*@__PURE__*/searchCommand((view, { query }) => {
|
|
|
939
905
|
let next = query.nextMatch(view.state, to, to);
|
|
940
906
|
if (!next)
|
|
941
907
|
return false;
|
|
942
|
-
let selection =
|
|
908
|
+
let selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.single(next.from, next.to);
|
|
943
909
|
let config = view.state.facet(searchConfigFacet);
|
|
944
910
|
view.dispatch({
|
|
945
911
|
selection,
|
|
@@ -959,7 +925,7 @@ const findPrevious = /*@__PURE__*/searchCommand((view, { query }) => {
|
|
|
959
925
|
let prev = query.prevMatch(state, from, from);
|
|
960
926
|
if (!prev)
|
|
961
927
|
return false;
|
|
962
|
-
let selection =
|
|
928
|
+
let selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.single(prev.from, prev.to);
|
|
963
929
|
let config = view.state.facet(searchConfigFacet);
|
|
964
930
|
view.dispatch({
|
|
965
931
|
selection,
|
|
@@ -977,7 +943,7 @@ const selectMatches = /*@__PURE__*/searchCommand((view, { query }) => {
|
|
|
977
943
|
if (!ranges || !ranges.length)
|
|
978
944
|
return false;
|
|
979
945
|
view.dispatch({
|
|
980
|
-
selection:
|
|
946
|
+
selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges.map(r => _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(r.from, r.to))),
|
|
981
947
|
userEvent: "select.search.matches"
|
|
982
948
|
});
|
|
983
949
|
return true;
|
|
@@ -996,10 +962,10 @@ const selectSelectionMatches = ({ state, dispatch }) => {
|
|
|
996
962
|
return false;
|
|
997
963
|
if (cur.value.from == from)
|
|
998
964
|
main = ranges.length;
|
|
999
|
-
ranges.push(
|
|
965
|
+
ranges.push(_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.range(cur.value.from, cur.value.to));
|
|
1000
966
|
}
|
|
1001
967
|
dispatch(state.update({
|
|
1002
|
-
selection:
|
|
968
|
+
selection: _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.create(ranges, main),
|
|
1003
969
|
userEvent: "select.search.matches"
|
|
1004
970
|
}));
|
|
1005
971
|
return true;
|
|
@@ -1021,11 +987,11 @@ const replaceNext = /*@__PURE__*/searchCommand((view, { query }) => {
|
|
|
1021
987
|
replacement = state.toText(query.getReplacement(next));
|
|
1022
988
|
changes.push({ from: next.from, to: next.to, insert: replacement });
|
|
1023
989
|
next = query.nextMatch(state, next.from, next.to);
|
|
1024
|
-
effects.push(
|
|
990
|
+
effects.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
|
1025
991
|
}
|
|
1026
992
|
if (next) {
|
|
1027
993
|
let off = changes.length == 0 || changes[0].from >= match.to ? 0 : match.to - match.from - replacement.length;
|
|
1028
|
-
selection =
|
|
994
|
+
selection = _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.EditorSelection.single(next.from - off, next.to - off);
|
|
1029
995
|
effects.push(announceMatch(view, next));
|
|
1030
996
|
effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main, view));
|
|
1031
997
|
}
|
|
@@ -1051,7 +1017,7 @@ const replaceAll = /*@__PURE__*/searchCommand((view, { query }) => {
|
|
|
1051
1017
|
let announceText = view.state.phrase("replaced $ matches", changes.length) + ".";
|
|
1052
1018
|
view.dispatch({
|
|
1053
1019
|
changes,
|
|
1054
|
-
effects:
|
|
1020
|
+
effects: _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.announce.of(announceText),
|
|
1055
1021
|
userEvent: "input.replace.all"
|
|
1056
1022
|
});
|
|
1057
1023
|
return true;
|
|
@@ -1075,7 +1041,7 @@ function defaultQuery(state, fallback) {
|
|
|
1075
1041
|
});
|
|
1076
1042
|
}
|
|
1077
1043
|
function getSearchInput(view) {
|
|
1078
|
-
let panel = (0,
|
|
1044
|
+
let panel = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.getPanel)(view, createSearchPanel);
|
|
1079
1045
|
return panel && panel.dom.querySelector("[main-field]");
|
|
1080
1046
|
}
|
|
1081
1047
|
function selectSearchInput(view) {
|
|
@@ -1101,7 +1067,7 @@ const openSearchPanel = view => {
|
|
|
1101
1067
|
else {
|
|
1102
1068
|
view.dispatch({ effects: [
|
|
1103
1069
|
togglePanel.of(true),
|
|
1104
|
-
state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) :
|
|
1070
|
+
state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) : _codemirror_state__WEBPACK_IMPORTED_MODULE_1__.StateEffect.appendConfig.of(searchExtensions)
|
|
1105
1071
|
] });
|
|
1106
1072
|
}
|
|
1107
1073
|
return true;
|
|
@@ -1113,7 +1079,7 @@ const closeSearchPanel = view => {
|
|
|
1113
1079
|
let state = view.state.field(searchState, false);
|
|
1114
1080
|
if (!state || !state.panel)
|
|
1115
1081
|
return false;
|
|
1116
|
-
let panel = (0,
|
|
1082
|
+
let panel = (0,_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.getPanel)(view, createSearchPanel);
|
|
1117
1083
|
if (panel && panel.dom.contains(view.root.activeElement))
|
|
1118
1084
|
view.focus();
|
|
1119
1085
|
view.dispatch({ effects: togglePanel.of(false) });
|
|
@@ -1142,7 +1108,7 @@ class SearchPanel {
|
|
|
1142
1108
|
this.view = view;
|
|
1143
1109
|
let query = this.query = view.state.field(searchState).query.spec;
|
|
1144
1110
|
this.commit = this.commit.bind(this);
|
|
1145
|
-
this.searchField =
|
|
1111
|
+
this.searchField = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", {
|
|
1146
1112
|
value: query.search,
|
|
1147
1113
|
placeholder: phrase(view, "Find"),
|
|
1148
1114
|
"aria-label": phrase(view, "Find"),
|
|
@@ -1153,7 +1119,7 @@ class SearchPanel {
|
|
|
1153
1119
|
onchange: this.commit,
|
|
1154
1120
|
onkeyup: this.commit
|
|
1155
1121
|
});
|
|
1156
|
-
this.replaceField =
|
|
1122
|
+
this.replaceField = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", {
|
|
1157
1123
|
value: query.replace,
|
|
1158
1124
|
placeholder: phrase(view, "Replace"),
|
|
1159
1125
|
"aria-label": phrase(view, "Replace"),
|
|
@@ -1163,21 +1129,21 @@ class SearchPanel {
|
|
|
1163
1129
|
onchange: this.commit,
|
|
1164
1130
|
onkeyup: this.commit
|
|
1165
1131
|
});
|
|
1166
|
-
this.caseField =
|
|
1132
|
+
this.caseField = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", {
|
|
1167
1133
|
type: "checkbox",
|
|
1168
1134
|
name: "case",
|
|
1169
1135
|
form: "",
|
|
1170
1136
|
checked: query.caseSensitive,
|
|
1171
1137
|
onchange: this.commit
|
|
1172
1138
|
});
|
|
1173
|
-
this.reField =
|
|
1139
|
+
this.reField = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", {
|
|
1174
1140
|
type: "checkbox",
|
|
1175
1141
|
name: "re",
|
|
1176
1142
|
form: "",
|
|
1177
1143
|
checked: query.regexp,
|
|
1178
1144
|
onchange: this.commit
|
|
1179
1145
|
});
|
|
1180
|
-
this.wordField =
|
|
1146
|
+
this.wordField = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("input", {
|
|
1181
1147
|
type: "checkbox",
|
|
1182
1148
|
name: "word",
|
|
1183
1149
|
form: "",
|
|
@@ -1185,23 +1151,23 @@ class SearchPanel {
|
|
|
1185
1151
|
onchange: this.commit
|
|
1186
1152
|
});
|
|
1187
1153
|
function button(name, onclick, content) {
|
|
1188
|
-
return
|
|
1154
|
+
return (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("button", { class: "cm-button", name, onclick, type: "button" }, content);
|
|
1189
1155
|
}
|
|
1190
|
-
this.dom =
|
|
1156
|
+
this.dom = (0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("div", { onkeydown: (e) => this.keydown(e), class: "cm-search" }, [
|
|
1191
1157
|
this.searchField,
|
|
1192
1158
|
button("next", () => findNext(view), [phrase(view, "next")]),
|
|
1193
1159
|
button("prev", () => findPrevious(view), [phrase(view, "previous")]),
|
|
1194
1160
|
button("select", () => selectMatches(view), [phrase(view, "all")]),
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1161
|
+
(0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("label", null, [this.caseField, phrase(view, "match case")]),
|
|
1162
|
+
(0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("label", null, [this.reField, phrase(view, "regexp")]),
|
|
1163
|
+
(0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("label", null, [this.wordField, phrase(view, "by word")]),
|
|
1198
1164
|
...view.state.readOnly ? [] : [
|
|
1199
|
-
|
|
1165
|
+
(0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("br"),
|
|
1200
1166
|
this.replaceField,
|
|
1201
1167
|
button("replace", () => replaceNext(view), [phrase(view, "replace")]),
|
|
1202
1168
|
button("replaceAll", () => replaceAll(view), [phrase(view, "replace all")])
|
|
1203
1169
|
],
|
|
1204
|
-
|
|
1170
|
+
(0,crelt__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)("button", {
|
|
1205
1171
|
name: "close",
|
|
1206
1172
|
onclick: () => closeSearchPanel(view),
|
|
1207
1173
|
"aria-label": phrase(view, "close"),
|
|
@@ -1223,7 +1189,7 @@ class SearchPanel {
|
|
|
1223
1189
|
}
|
|
1224
1190
|
}
|
|
1225
1191
|
keydown(e) {
|
|
1226
|
-
if ((0,
|
|
1192
|
+
if ((0,_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.runScopeHandlers)(this.view, e, "search-panel")) {
|
|
1227
1193
|
e.preventDefault();
|
|
1228
1194
|
}
|
|
1229
1195
|
else if (e.keyCode == 13 && e.target == this.searchField) {
|
|
@@ -1277,9 +1243,9 @@ function announceMatch(view, { from, to }) {
|
|
|
1277
1243
|
break;
|
|
1278
1244
|
}
|
|
1279
1245
|
}
|
|
1280
|
-
return
|
|
1246
|
+
return _codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.announce.of(`${view.state.phrase("current match")}. ${text} ${view.state.phrase("on line")} ${line.number}.`);
|
|
1281
1247
|
}
|
|
1282
|
-
const baseTheme = /*@__PURE__*/
|
|
1248
|
+
const baseTheme = /*@__PURE__*/_codemirror_view__WEBPACK_IMPORTED_MODULE_0__.EditorView.baseTheme({
|
|
1283
1249
|
".cm-panel.cm-search": {
|
|
1284
1250
|
padding: "2px 6px 4px",
|
|
1285
1251
|
position: "relative",
|
|
@@ -1311,14 +1277,52 @@ const baseTheme = /*@__PURE__*/index_js_.EditorView.baseTheme({
|
|
|
1311
1277
|
});
|
|
1312
1278
|
const searchExtensions = [
|
|
1313
1279
|
searchState,
|
|
1314
|
-
/*@__PURE__*/
|
|
1280
|
+
/*@__PURE__*/_codemirror_state__WEBPACK_IMPORTED_MODULE_1__.Prec.low(searchHighlighter),
|
|
1315
1281
|
baseTheme
|
|
1316
1282
|
];
|
|
1317
1283
|
|
|
1318
1284
|
|
|
1319
1285
|
|
|
1320
1286
|
|
|
1287
|
+
/***/ }),
|
|
1288
|
+
|
|
1289
|
+
/***/ 76767:
|
|
1290
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1291
|
+
|
|
1292
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1293
|
+
/* harmony export */ Z: () => (/* binding */ crelt)
|
|
1294
|
+
/* harmony export */ });
|
|
1295
|
+
function crelt() {
|
|
1296
|
+
var elt = arguments[0]
|
|
1297
|
+
if (typeof elt == "string") elt = document.createElement(elt)
|
|
1298
|
+
var i = 1, next = arguments[1]
|
|
1299
|
+
if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
|
|
1300
|
+
for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
|
|
1301
|
+
var value = next[name]
|
|
1302
|
+
if (typeof value == "string") elt.setAttribute(name, value)
|
|
1303
|
+
else if (value != null) elt[name] = value
|
|
1304
|
+
}
|
|
1305
|
+
i++
|
|
1306
|
+
}
|
|
1307
|
+
for (; i < arguments.length; i++) add(elt, arguments[i])
|
|
1308
|
+
return elt
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
function add(elt, child) {
|
|
1312
|
+
if (typeof child == "string") {
|
|
1313
|
+
elt.appendChild(document.createTextNode(child))
|
|
1314
|
+
} else if (child == null) {
|
|
1315
|
+
} else if (child.nodeType != null) {
|
|
1316
|
+
elt.appendChild(child)
|
|
1317
|
+
} else if (Array.isArray(child)) {
|
|
1318
|
+
for (var i = 0; i < child.length; i++) add(elt, child[i])
|
|
1319
|
+
} else {
|
|
1320
|
+
throw new RangeError("Unsupported child node: " + child)
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
|
|
1321
1325
|
/***/ })
|
|
1322
1326
|
|
|
1323
1327
|
}]);
|
|
1324
|
-
//# sourceMappingURL=
|
|
1328
|
+
//# sourceMappingURL=8313.45ac616d61cf717bff16.js.map?v=45ac616d61cf717bff16
|