Skip to content

Commit 7fe8390

Browse files
authored
Merge branch 'main' into serhalp/cmdk-palette
2 parents d4afc5c + 38820a3 commit 7fe8390

13 files changed

Lines changed: 85 additions & 26 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

23-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
23+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
2424
with:
2525
node-version: lts/*
2626
cache: true

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
2727
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2828

29-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
29+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
3030
with:
3131
node-version: lts/*
3232
cache: true

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030

31-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
31+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
3232
with:
3333
node-version: lts/*
3434
run-install: false
@@ -46,7 +46,7 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4848

49-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
49+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
5050
with:
5151
node-version: lts/*
5252
cache: true
@@ -61,7 +61,7 @@ jobs:
6161
steps:
6262
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363

64-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
64+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
6565
with:
6666
node-version: lts/*
6767
cache: true
@@ -82,7 +82,7 @@ jobs:
8282
steps:
8383
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8484

85-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
85+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
8686
with:
8787
node-version: lts/*
8888
cache: true
@@ -114,7 +114,7 @@ jobs:
114114
steps:
115115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116116

117-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
117+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
118118
with:
119119
node-version: lts/*
120120
cache: true
@@ -137,7 +137,7 @@ jobs:
137137
steps:
138138
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139139

140-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
140+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
141141
with:
142142
node-version: lts/*
143143
cache: true
@@ -158,7 +158,7 @@ jobs:
158158
steps:
159159
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
160160

161-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
161+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
162162
with:
163163
node-version: lts/*
164164
cache: true
@@ -173,7 +173,7 @@ jobs:
173173
steps:
174174
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
175175

176-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
176+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
177177
with:
178178
node-version: lts/*
179179
run-install: false

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# Makes the action clone the entire git history
2929
fetch-depth: 0
3030

31-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
31+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
3232
with:
3333
node-version: lts/*
3434
cache: true

.github/workflows/release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
23+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
2424
with:
2525
node-version: lts/*
2626
run-install: false

.github/workflows/release-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
26+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
2727
with:
2828
node-version: lts/*
2929
run-install: false
@@ -95,7 +95,7 @@ jobs:
9595
with:
9696
ref: release
9797

98-
- uses: voidzero-dev/setup-vp@a03302daa50cf2f017c8c7345730c2740df207d6 # v1
98+
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
9999
with:
100100
node-version: lts/*
101101
registry-url: https://registry.npmjs.org

app/components/Package/Versions.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,16 @@ const visibleTagRows = computed(() => {
211211
)
212212
: rowsMaybeFilteredForDeprecation
213213
const first = rows.slice(0, MAX_VISIBLE_TAGS)
214-
const latestTagRow = rows.find(row => row.tag === 'latest')
215-
// Ensure 'latest' tag is always included (at the end) if not already present
216-
if (latestTagRow && !first.includes(latestTagRow)) {
217-
first.pop()
218-
first.push(latestTagRow)
214+
215+
// When no filter is active, ensure 'latest' is always shown (even if not fully loaded)
216+
if (!isFilterActive.value) {
217+
const latestTagRow = rows.find(row => row.tag === 'latest')
218+
if (latestTagRow && !first.includes(latestTagRow)) {
219+
first.pop()
220+
first.push(latestTagRow)
221+
}
219222
}
223+
220224
return first
221225
})
222226

app/components/Readme.vue

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,25 @@ function handleClick(event: MouseEvent) {
112112
.readme :deep([data-level='1']) {
113113
font-size: 1.5rem;
114114
}
115+
115116
.readme :deep([data-level='2']) {
116117
font-size: 1.25rem;
117118
padding-bottom: 0.5rem;
118119
border-bottom: 1px solid var(--border);
119120
}
121+
120122
.readme :deep([data-level='3']) {
121123
font-size: 1.125rem;
122124
}
125+
123126
.readme :deep([data-level='4']) {
124127
font-size: 1rem;
125128
}
129+
126130
.readme :deep([data-level='5']) {
127131
font-size: 0.925rem;
128132
}
133+
129134
.readme :deep([data-level='6']) {
130135
font-size: 0.875rem;
131136
}
@@ -137,9 +142,11 @@ function handleClick(event: MouseEvent) {
137142
.readme :deep(a) {
138143
@apply underline-offset-[0.2rem] underline decoration-1 decoration-fg/30 font-mono text-fg transition-colors duration-200;
139144
}
145+
140146
.readme :deep(a:hover) {
141147
@apply decoration-accent text-accent;
142148
}
149+
143150
.readme :deep(a:focus-visible) {
144151
@apply decoration-accent text-accent;
145152
}
@@ -318,10 +325,12 @@ function handleClick(event: MouseEvent) {
318325
border-inline-start-color: var(--syntax-str);
319326
background: rgba(59, 130, 246, 0.05);
320327
}
328+
321329
.readme :deep(blockquote[data-callout='note']::before) {
322330
content: var(--i18n-note, 'Note');
323331
color: #3b82f6;
324332
}
333+
325334
.readme :deep(blockquote[data-callout='note']::after) {
326335
background-color: #3b82f6;
327336
-webkit-mask: icon('i-lucide:info') no-repeat;
@@ -333,10 +342,12 @@ function handleClick(event: MouseEvent) {
333342
border-inline-start-color: #22c55e;
334343
background: rgba(34, 197, 94, 0.05);
335344
}
345+
336346
.readme :deep(blockquote[data-callout='tip']::before) {
337347
content: var(--i18n-tip, 'Tip');
338348
color: #22c55e;
339349
}
350+
340351
.readme :deep(blockquote[data-callout='tip']::after) {
341352
background-color: #22c55e;
342353
-webkit-mask: icon('i-lucide:lightbulb') no-repeat;
@@ -348,10 +359,12 @@ function handleClick(event: MouseEvent) {
348359
border-inline-start-color: var(--syntax-fn);
349360
background: rgba(168, 85, 247, 0.05);
350361
}
362+
351363
.readme :deep(blockquote[data-callout='important']::before) {
352364
content: var(--i18n-important, 'Important');
353365
color: var(--syntax-fn);
354366
}
367+
355368
.readme :deep(blockquote[data-callout='important']::after) {
356369
background-color: var(--syntax-fn);
357370
-webkit-mask: icon('i-lucide:pin') no-repeat;
@@ -363,10 +376,12 @@ function handleClick(event: MouseEvent) {
363376
border-inline-start-color: #eab308;
364377
background: rgba(234, 179, 8, 0.05);
365378
}
379+
366380
.readme :deep(blockquote[data-callout='warning']::before) {
367381
content: var(--i18n-warning, 'Warning');
368382
color: #eab308;
369383
}
384+
370385
.readme :deep(blockquote[data-callout='warning']::after) {
371386
background-color: #eab308;
372387
-webkit-mask: icon('i-lucide:triangle-alert') no-repeat;
@@ -378,10 +393,12 @@ function handleClick(event: MouseEvent) {
378393
border-inline-start-color: #ef4444;
379394
background: rgba(239, 68, 68, 0.05);
380395
}
396+
381397
.readme :deep(blockquote[data-callout='caution']::before) {
382398
content: var(--i18n-caution, 'Caution');
383399
color: #ef4444;
384400
}
401+
385402
.readme :deep(blockquote[data-callout='caution']::after) {
386403
background-color: #ef4444;
387404
-webkit-mask: icon('i-lucide:circle-alert') no-repeat;
@@ -457,4 +474,18 @@ function handleClick(event: MouseEvent) {
457474
white-space: nowrap;
458475
border-width: 0;
459476
}
477+
478+
/* Details element */
479+
.readme :deep(details) {
480+
/**
481+
* same size as [data-level='5']
482+
*/
483+
font-size: 0.925rem;
484+
color: var(--fg-subtle);
485+
486+
summary {
487+
font-size: 1rem;
488+
color: var(--fg-muted);
489+
}
490+
}
460491
</style>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@iconify-json/svg-spinners": "1.2.4",
5858
"@iconify-json/vscode-icons": "1.2.45",
5959
"@intlify/shared": "11.3.0",
60+
"@li/regexp-escape-polyfill": "jsr:0.3.4",
6061
"@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@904b935",
6162
"@napi-rs/canvas": "0.1.97",
6263
"@nuxt/a11y": "1.0.0-alpha.1",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)