@codemirror/search
Advanced tools
Comparing version 0.19.3 to 0.19.4
@@ -0,1 +1,7 @@ | ||
## 0.19.4 (2021-12-02) | ||
### Bug fixes | ||
The search panel will no longer show the replace interface when the editor is read-only. | ||
## 0.19.3 (2021-11-22) | ||
@@ -2,0 +8,0 @@ |
@@ -968,7 +968,9 @@ import { EditorView, Decoration, ViewPlugin, runScopeHandlers } from '@codemirror/view'; | ||
elt("label", null, [reField, phrase("regexp")]), | ||
elt("br"), | ||
replaceField, | ||
button("replace", () => replaceNext(conf.view), [phrase("replace")]), | ||
button("replaceAll", () => replaceAll(conf.view), [phrase("replace all")]), | ||
elt("button", { name: "close", onclick: () => closeSearchPanel(conf.view), "aria-label": phrase("close"), type: "button" }, ["×"]) | ||
...conf.view.state.readOnly ? [] : [ | ||
elt("br"), | ||
replaceField, | ||
button("replace", () => replaceNext(conf.view), [phrase("replace")]), | ||
button("replaceAll", () => replaceAll(conf.view), [phrase("replace all")]), | ||
elt("button", { name: "close", onclick: () => closeSearchPanel(conf.view), "aria-label": phrase("close"), type: "button" }, ["×"]) | ||
] | ||
]); | ||
@@ -975,0 +977,0 @@ return panel; |
{ | ||
"name": "@codemirror/search", | ||
"version": "0.19.3", | ||
"version": "0.19.4", | ||
"description": "Search functionality for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92800
2286