@astrojs/starlight 0.37.5 → 0.37.7
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/Icons.ts +7 -0
- package/package.json +1 -1
- package/user-components/rehype-steps.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.37.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3726](https://github.com/withastro/starlight/pull/3726) [`8a09b60`](https://github.com/withastro/starlight/commit/8a09b60b03ae2b99d3418f41e984ffa46468e3a2) Thanks [@delucis](https://github.com/delucis)! - Fixes an issue using components containing scripts inside Starlight’s steps component in versions of Astro >= 5.16.9
|
|
8
|
+
|
|
9
|
+
## 0.37.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#3645](https://github.com/withastro/starlight/pull/3645) [`a562096`](https://github.com/withastro/starlight/commit/a562096380287fa7fa925664d04071a5831f274b) Thanks [@mschoeffmann](https://github.com/mschoeffmann)! - Adds icons for Chrome, Edge, Firefox, and Safari
|
|
14
|
+
|
|
3
15
|
## 0.37.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/components/Icons.ts
CHANGED
|
@@ -193,6 +193,13 @@ export const BuiltInIcons = {
|
|
|
193
193
|
'<path d="M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2"/>',
|
|
194
194
|
substack:
|
|
195
195
|
'<path d="M22.5 8.2h-21V5.4h21v2.8zm-21 2.6V24L12 18.1 22.5 24V10.8h-21zM22.5 0h-21v2.8h21V0z"/>',
|
|
196
|
+
chrome:
|
|
197
|
+
'<path d="M9.83 21.76A10 10 0 0 1 3.33 7l4.3 7.42a5 5 0 0 0 4.97 2.55zM12 22l4.29-7.42A5 5 0 0 0 17 12a5 5 0 0 0-1-3h5.54a10 10 0 0 1 .46 3 10 10 0 0 1-10 10m2.57-8.45a3 3 0 0 1-5.17-.05l-.03-.05a3 3 0 1 1 5.23.05zM4.63 5.24A10 10 0 0 1 12 2a10 10 0 0 1 8.66 5H12a5 5 0 0 0-4.6 3.03z"/>',
|
|
198
|
+
edge: '<path d="M10.86 15.37a5 5 0 0 1-1.31-2.72q-.46.69-.73 1.5a5.97 5.97 0 0 0 3.4 7.18c2.34.78 4.97-.61 6.7-2.13.26-.35 2.31-2.16 1.29-2.36-3.02 1.55-7.02 1.11-9.35-1.47m.6-5.81c1.04-.01.04-.43-.39-.75a7 7 0 0 0-3.44-.85C3.78 8 1 10.41 2.3 14.4c.94 3.88 4.31 7 8.29 7.5a7.3 7.3 0 0 1-3.29-6.12c.08-2.53 1.64-5.5 4.16-6.22M2.78 8.24C5.82 6 10.66 6.18 13.28 9c1.02 1.11 1.72 3 .79 4.37-1.74 1.88 3.08 2.13 4.11 1.85 3.74-.72 4.73-5.07 2.95-8.07-1.7-3.4-5.47-5.18-9.17-5.15a9.8 9.8 0 0 0-9.18 6.24"/>',
|
|
199
|
+
firefox:
|
|
200
|
+
'<path d="M6.85 6.74q.02 0 0 0M21.28 8.6a5.6 5.6 0 0 0-2.01-2.54c.56 1.11.89 2.22 1.02 3.04v.02c-1.13-2.82-3.05-3.96-4.62-6.44q-.13-.18-.24-.38l-.11-.21a2 2 0 0 1-.15-.4l-.02-.02h-.03a7.3 7.3 0 0 0-3.38 5.04q-1.05.06-1.99.51c-.12.05-.17.19-.13.31.05.14.21.21.34.15a5 5 0 0 1 1.74-.45h.05l.25-.01q.74-.01 1.44.2l.06.02.25.06.16.08.14.06.2.09.09.05.2.11.12.07a5 5 0 0 1 1.75 1.81A3.5 3.5 0 0 0 14 9.19c3.6 1.81 2.63 8-2.36 7.76a4 4 0 0 1-1.76-.45 4.3 4.3 0 0 1-2.38-3.27s.5-1.73 3.33-1.73c.31 0 1.17-.86 1.2-1.1 0-.09-1.74-.78-2.42-1.45l-.69-.66-.26-.19a4.6 4.6 0 0 1-.03-2.45A8 8 0 0 0 6.22 7.5c-.4-.5-.37-2.15-.35-2.5l-.33.18q-.53.38-.98.82-.52.55-.94 1.14a9 9 0 0 0-1.34 3.04c0 .01-.1.41-.17.92l-.03.23-.08.58v.41A10.02 10.02 0 0 0 21.88 14l.05-.37c.2-1.72-.02-3.52-.65-5.03"/>',
|
|
201
|
+
safari:
|
|
202
|
+
'<path d="M5.4 13.2H3.6V12h1.8zm1.944-5.868-.852.852L5.22 6.912l.852-.852zM12 5.4h-1.2V3.6H12zm6.6 5.4h1.8V12h-1.8zm-1.944 5.868.852-.852 1.272 1.272-.852.852zM12 18.6h1.2v1.8H12zm.924-5.676-1.848-1.848L9.24 14.76zM12 21.6a9.6 9.6 0 0 0 9.6-9.6c0-2.508-.96-4.8-2.532-6.492l-4.524 9.036-9.036 4.524A9.6 9.6 0 0 0 12 21.6m0-19.2A9.6 9.6 0 0 0 2.4 12c0 2.508.96 4.8 2.532 6.492l4.524-9.036 9.036-4.524A9.6 9.6 0 0 0 12 2.4M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0"/>',
|
|
196
203
|
};
|
|
197
204
|
|
|
198
205
|
export const Icons = {
|
package/package.json
CHANGED
|
@@ -12,7 +12,16 @@ const stepsProcessor = rehype()
|
|
|
12
12
|
.data('settings', { fragment: true })
|
|
13
13
|
.use(function steps() {
|
|
14
14
|
return (tree: Root, vfile: VFile) => {
|
|
15
|
-
const rootElements = tree.children.filter(
|
|
15
|
+
const rootElements = tree.children.filter(
|
|
16
|
+
(item): item is Element =>
|
|
17
|
+
item.type === 'element' &&
|
|
18
|
+
// Since Astro 5.16.9, `<script>` elements from nested child elements can end up hoisted
|
|
19
|
+
// into the `<Steps>` slot due to our use of `Astro.slots.render()`. We can safely ignore
|
|
20
|
+
// these, so we filter them out here.
|
|
21
|
+
// TODO: we may be able to remove this in the future if the upstream issue is fixed.
|
|
22
|
+
// See: https://github.com/withastro/astro/issues/15627
|
|
23
|
+
item.tagName !== 'script'
|
|
24
|
+
);
|
|
16
25
|
const [rootElement] = rootElements;
|
|
17
26
|
|
|
18
27
|
if (!rootElement) {
|