Skip to content

Commit 46d9401

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix-dialog-title
2 parents d0d5404 + b03fb88 commit 46d9401

17 files changed

Lines changed: 995 additions & 604 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
node-version: lts/*
2626

27-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
27+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
2828
name: 🟧 Install pnpm
2929
with:
3030
cache: true

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
node-version: lts/*
3333

34-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
3535
name: 🟧 Install pnpm
3636
with:
3737
cache: true
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
node-version: lts/*
5555

56-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
56+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
5757
name: 🟧 Install pnpm
5858
with:
5959
cache: true
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
node-version: lts/*
7777

78-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
78+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
7979
name: 🟧 Install pnpm
8080
with:
8181
cache: true
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
node-version: lts/*
105105

106-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
106+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
107107
name: 🟧 Install pnpm
108108
with:
109109
cache: true
@@ -142,7 +142,7 @@ jobs:
142142
with:
143143
node-version: lts/*
144144

145-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
145+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
146146
name: 🟧 Install pnpm
147147
with:
148148
cache: true
@@ -172,7 +172,7 @@ jobs:
172172
with:
173173
node-version: lts/*
174174

175-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
175+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
176176
name: 🟧 Install pnpm
177177
with:
178178
cache: true
@@ -200,7 +200,7 @@ jobs:
200200
with:
201201
node-version: lts/*
202202

203-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
203+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
204204
name: 🟧 Install pnpm
205205
with:
206206
cache: true
@@ -225,7 +225,7 @@ jobs:
225225
with:
226226
node-version: lts/*
227227

228-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
228+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
229229
name: 🟧 Install pnpm
230230
with:
231231
cache: true

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
node-version: lts/*
3434

35-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
35+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # 4e1c8eafbd745f64b1ef30a7d7ed7965034c486c
3636
name: 🟧 Install pnpm
3737
with:
3838
cache: true

.github/workflows/welcome.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: 🎉 Welcome new contributor
1717
steps:
1818
- name: 🎉 Welcome new contributor
19-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
19+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2020
with:
2121
script: |
2222
const pr = context.payload.pull_request;

app/components/Package/SkillsModal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ function getWarningTooltip(skill: SkillListItem): string | undefined {
170170
aria-hidden="true"
171171
:text="getWarningTooltip(skill)"
172172
to="#skills-modal"
173+
defer
173174
>
174175
<span class="i-lucide:circle-alert w-3.5 h-3.5 text-amber-500" />
175176
</TooltipApp>

app/components/Tooltip/App.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const props = defineProps<{
88
interactive?: boolean
99
/** Teleport target for the tooltip content (defaults to 'body') */
1010
to?: string | HTMLElement
11+
/** Whether to defer teleport rendering until after the component is mounted */
12+
defer?: boolean
1113
/** Offset distance in pixels (default: 4) */
1214
offset?: number
1315
}>()
@@ -52,6 +54,7 @@ const tooltipAttrs = computed(() => {
5254
:position
5355
:interactive
5456
:to
57+
:defer
5558
:offset
5659
:tooltip-attr="tooltipAttrs"
5760
@mouseenter="show"

app/components/Tooltip/Base.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const props = withDefaults(
1717
tooltipAttr?: HTMLAttributes
1818
/** Teleport target for the tooltip content (defaults to 'body') */
1919
to?: string | HTMLElement
20+
/** Whether to defer teleport rendering until after the component is mounted */
21+
defer?: boolean
2022
/** Offset distance in pixels (default: 4) */
2123
offset?: number
2224
/** Strategy for the tooltip - prefer fixed for sticky containers (defaults to 'absolute') */
@@ -46,7 +48,7 @@ const { floatingStyles } = useFloating(triggerRef, tooltipRef, {
4648
<div ref="triggerRef" class="inline-flex">
4749
<slot />
4850

49-
<Teleport :to="props.to">
51+
<Teleport :to="props.to" :defer>
5052
<Transition
5153
enter-active-class="transition-opacity duration-150 motion-reduce:transition-none"
5254
leave-active-class="transition-opacity duration-100 motion-reduce:transition-none"

docs/content/2.guide/2.keyboard-shortcuts.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ navigation:
77

88
npmx.dev supports keyboard navigation for faster browsing.
99

10-
## Use global shortcuts
10+
## Global shortcuts
1111

12-
| Key | Action |
13-
| --- | ---------------- |
14-
| `/` | Focus search bar |
15-
| `.` | Open code viewer |
12+
| Key | Action |
13+
| --- | ------------------------ |
14+
| `/` | Focus search bar |
15+
| `?` | Highlight keyboard hints |
16+
| `,` | Open settings |
17+
| `c` | Open compare |
18+
19+
::tip
20+
These shortcuts work anywhere on the site. Press `/` from any page to quickly search for a package.
21+
::
1622

17-
## Navigate search results
23+
## Search results
1824

1925
| Key | Action |
2026
| ------------------------- | --------------------- |
2127
| `Arrow Up` / `Arrow Down` | Move through results |
2228
| `Enter` | Open selected package |
2329

24-
## Browse code
25-
26-
When in the code viewer:
30+
## Package page
2731

28-
| Key | Action |
29-
| ------------------------- | ------------------ |
30-
| `Arrow Up` / `Arrow Down` | Navigate file tree |
31-
| `Enter` | Open selected file |
32-
| `Escape` | Close code viewer |
33-
34-
::tip
35-
These shortcuts work anywhere on the site. Press `/` from any page to quickly search for a package.
36-
::
32+
| Key | Action |
33+
| --- | ---------------- |
34+
| `.` | Open code viewer |
35+
| `d` | Open docs |
36+
| `c` | Compare package |

0 commit comments

Comments
 (0)