@astrojs/starlight 0.0.10 → 0.0.12
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/CHANGELOG.md +12 -0
- package/components/Search.astro +1 -1
- package/package.json +1 -1
- package/translations/en.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#85](https://github.com/withastro/starlight/pull/85) [`c86c1d6`](https://github.com/withastro/starlight/commit/c86c1d6e93d978d13e42bbc449e0225a06793ba3) Thanks [@BryceRussell](https://github.com/BryceRussell)! - Improve outside click detection on the search modal
|
|
8
|
+
|
|
9
|
+
## 0.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4da9cbd`](https://github.com/withastro/starlight/commit/4da9cbd7e643c97acbf4c2016aefb8f712bc9869) Thanks [@delucis](https://github.com/delucis)! - Fix typo in English UI strings
|
|
14
|
+
|
|
3
15
|
## 0.0.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/components/Search.astro
CHANGED
|
@@ -63,7 +63,7 @@ const t = useTranslations(Astro.props.locale);
|
|
|
63
63
|
|
|
64
64
|
/** Close the modal if a user clicks outside of the modal. */
|
|
65
65
|
const onWindowClick = (event: MouseEvent) => {
|
|
66
|
-
if (!dialogFrame.contains(event.target as Node)) closeModal();
|
|
66
|
+
if (document.body.contains(event.target as Node) && !dialogFrame.contains(event.target as Node)) closeModal();
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
const openModal = (event?: MouseEvent) => {
|
package/package.json
CHANGED
package/translations/en.json
CHANGED
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"i18n.untranslatedContent": "This content is not available in your language yet.",
|
|
16
16
|
"page.editLink": "Edit page",
|
|
17
17
|
"page.lastUpdated": "Last updated:",
|
|
18
|
-
"page.previousLink": "
|
|
19
|
-
"page.nextLink": "
|
|
18
|
+
"page.previousLink": "Previous",
|
|
19
|
+
"page.nextLink": "Next"
|
|
20
20
|
}
|