@astrojs/starlight 0.28.0 → 0.28.2
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.28.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2377](https://github.com/withastro/starlight/pull/2377) [`a257b83`](https://github.com/withastro/starlight/commit/a257b83f1e5704ff41bcbe85482ac81a1a61ce1f) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue with synced `<Tabs>` components containing nested `<Tabs>` causing tab panels to not render correctly.
|
|
8
|
+
|
|
9
|
+
## 0.28.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2334](https://github.com/withastro/starlight/pull/2334) [`79b9ade`](https://github.com/withastro/starlight/commit/79b9ade194cf704dad79267715a6970e0d7a7277) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue with Expressive Code UI labels not displaying correctly.
|
|
14
|
+
|
|
3
15
|
## 0.28.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -29,7 +29,7 @@ function addTranslationsForLocale(
|
|
|
29
29
|
'expressiveCode.terminalWindowFallbackTitle',
|
|
30
30
|
] as const;
|
|
31
31
|
translationKeys.forEach((key) => {
|
|
32
|
-
const translation = t(key);
|
|
32
|
+
const translation = t.exists(key) ? t(key) : undefined;
|
|
33
33
|
if (!translation) return;
|
|
34
34
|
const ecId = key.replace(/^expressiveCode\./, '');
|
|
35
35
|
pluginFramesTexts.overrideTexts(lang, { [ecId]: translation });
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ if (isSynced) {
|
|
|
54
54
|
const tabIndexToRestore = tabs.findIndex(
|
|
55
55
|
(tab) => tab instanceof HTMLAnchorElement && tab.textContent?.trim() === label
|
|
56
56
|
);
|
|
57
|
-
const panels = starlightTabs?.querySelectorAll('[role="tabpanel"]');
|
|
57
|
+
const panels = starlightTabs?.querySelectorAll(':scope > [role="tabpanel"]');
|
|
58
58
|
const newTab = tabs[tabIndexToRestore];
|
|
59
59
|
const newPanel = panels[tabIndexToRestore];
|
|
60
60
|
if (tabIndexToRestore < 1 || !newTab || !newPanel) return;
|
|
@@ -240,7 +240,7 @@ function isElementNode(node: ElementContent): node is Element {
|
|
|
240
240
|
function throwFileTreeValidationError(message: string): never {
|
|
241
241
|
throw new AstroError(
|
|
242
242
|
message,
|
|
243
|
-
'To learn more about the `<FileTree>` component, see https://starlight.astro.build/
|
|
243
|
+
'To learn more about the `<FileTree>` component, see https://starlight.astro.build/components/file-tree/'
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -67,7 +67,7 @@ export const processSteps = (html: string | undefined) => {
|
|
|
67
67
|
class StepsError extends AstroError {
|
|
68
68
|
constructor(message: string, html?: string) {
|
|
69
69
|
let hint =
|
|
70
|
-
'To learn more about the `<Steps>` component, see https://starlight.astro.build/
|
|
70
|
+
'To learn more about the `<Steps>` component, see https://starlight.astro.build/components/steps/';
|
|
71
71
|
if (html) {
|
|
72
72
|
hint += '\n\nFull HTML passed to `<Steps>`:\n' + prettyPrintHtml(html);
|
|
73
73
|
}
|