Skip to content

Commit f5c7eed

Browse files
committed
Merge branch 'main' into chore-add-compare-to-route-rules
2 parents 87e3b6d + 78e0188 commit f5c7eed

File tree

20 files changed

+624
-811
lines changed

20 files changed

+624
-811
lines changed

app/components/Code/Viewer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ watch(
6262
function handleImportLinkNavigate() {
6363
if (!codeRef.value) return
6464
65-
const anchors = codeRef.value.querySelectorAll('a.import-link')
65+
const anchors = codeRef.value.querySelectorAll<HTMLAnchorElement>('a.import-link')
6666
anchors.forEach(anchor => {
6767
// NOTE: We do not need to remove previous listeners because we re-create the entire HTML content on each html update
6868
anchor.addEventListener('click', event => {
69+
if (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) return
6970
const href = anchor.getAttribute('href')
7071
if (href) {
7172
event.preventDefault()

app/components/Compare/ReplacementSuggestion.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const docUrl = computed(() => {
2525
class="flex items-start gap-2 px-3 py-2 rounded-lg text-sm"
2626
:class="
2727
variant === 'nodep'
28-
? 'bg-amber-500/10 border border-amber-600/30 text-amber-700 dark:text-amber-400'
28+
? 'bg-amber-500/10 border border-amber-600/30 text-amber-800 dark:text-amber-400'
2929
: 'bg-blue-500/10 border border-blue-600/30 text-blue-700 dark:text-blue-400'
3030
"
3131
>

app/components/DependencyPathPopup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function parsePackageString(pkg: string): { name: string; version: string } {
6868
<!-- Path badge button -->
6969
<button
7070
type="button"
71-
class="path-badge font-mono text-3xs px-1.5 py-0.5 rounded bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400 transition-all duration-200 ease-out whitespace-nowrap flex items-center gap-1 hover:bg-amber-500/20 hover:border-amber-500/50"
71+
class="path-badge font-mono text-3xs px-1.5 py-0.5 rounded bg-amber-500/10 border border-amber-500/30 text-amber-800 dark:text-amber-400 transition-all duration-200 ease-out whitespace-nowrap flex items-center gap-1 hover:bg-amber-500/20 hover:border-amber-500/50"
7272
:aria-expanded="isOpen"
7373
@click.stop="togglePopup"
7474
>

app/components/Package/Dependencies.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const numberFormatter = useNumberFormatter()
117117
<LinkBase
118118
v-if="getDeprecatedDepInfo(dep)"
119119
:to="packageRoute(dep, getDeprecatedDepInfo(dep)!.version)"
120-
class="shrink-0 text-purple-500"
120+
class="shrink-0 text-purple-700 dark:text-purple-500"
121121
:title="getDeprecatedDepInfo(dep)!.message"
122122
classicon="i-carbon:warning-hex"
123123
>

app/components/Package/MetricsBadges.vue

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ const typesHref = computed(() => {
5757
<ul class="flex items-center gap-1.5 list-none m-0 p-0">
5858
<!-- TypeScript types badge -->
5959
<li v-if="!props.isBinary" class="contents">
60-
<TooltipApp :text="typesTooltip">
60+
<TooltipApp :text="typesTooltip" strategy="fixed">
6161
<LinkBase
6262
v-if="typesHref"
6363
variant="button-secondary"
6464
size="small"
6565
:to="typesHref"
66-
classicon="i-carbon-checkmark"
66+
classicon="i-carbon:checkmark"
6767
>
6868
{{ $t('package.metrics.types_label') }}
6969
</LinkBase>
@@ -73,10 +73,10 @@ const typesHref = computed(() => {
7373
:tabindex="0"
7474
:classicon="
7575
isLoading
76-
? 'i-carbon-circle-dash motion-safe:animate-spin'
76+
? 'i-carbon:circle-dash motion-safe:animate-spin'
7777
: hasTypes
78-
? 'i-carbon-checkmark'
79-
: 'i-carbon-close'
78+
? 'i-carbon:checkmark'
79+
: 'i-carbon:close'
8080
"
8181
>
8282
{{ $t('package.metrics.types_label') }}
@@ -88,16 +88,17 @@ const typesHref = computed(() => {
8888
<li class="contents">
8989
<TooltipApp
9090
:text="isLoading ? '' : hasEsm ? $t('package.metrics.esm') : $t('package.metrics.no_esm')"
91+
strategy="fixed"
9192
>
9293
<TagStatic
9394
tabindex="0"
9495
:variant="hasEsm && !isLoading ? 'default' : 'ghost'"
9596
:classicon="
9697
isLoading
97-
? 'i-carbon-circle-dash motion-safe:animate-spin'
98+
? 'i-carbon:circle-dash motion-safe:animate-spin'
9899
: hasEsm
99-
? 'i-carbon-checkmark'
100-
: 'i-carbon-close'
100+
? 'i-carbon:checkmark'
101+
: 'i-carbon:close'
101102
"
102103
>
103104
ESM
@@ -107,12 +108,12 @@ const typesHref = computed(() => {
107108

108109
<!-- CJS badge -->
109110
<li v-if="isLoading || hasCjs" class="contents">
110-
<TooltipApp :text="isLoading ? '' : $t('package.metrics.cjs')">
111+
<TooltipApp :text="isLoading ? '' : $t('package.metrics.cjs')" strategy="fixed">
111112
<TagStatic
112113
tabindex="0"
113114
:variant="isLoading ? 'ghost' : 'default'"
114115
:classicon="
115-
isLoading ? 'i-carbon-circle-dash motion-safe:animate-spin' : 'i-carbon-checkmark'
116+
isLoading ? 'i-carbon:circle-dash motion-safe:animate-spin' : 'i-carbon:checkmark'
116117
"
117118
>
118119
CJS

app/components/Package/Replacement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const docPath = computed(() => {
1818

1919
<template>
2020
<div
21-
class="border border-amber-600/40 bg-amber-500/10 rounded-lg px-3 py-2 text-base text-amber-700 dark:text-amber-400"
21+
class="border border-amber-600/40 bg-amber-500/10 rounded-lg px-3 py-2 text-base text-amber-800 dark:text-amber-400"
2222
>
2323
<h2 class="font-medium mb-1 flex items-center gap-2">
2424
<span class="i-carbon-idea w-4 h-4" aria-hidden="true" />

0 commit comments

Comments
 (0)