@celestia-island/hikari 0.55.156 → 0.55.157
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/package.json +1 -1
- package/src/animation/registerAnimations.ts +0 -1
- package/src/components/HkMarkdownRenderer.scss +1 -1
- package/src/components/HkPopover.scss +1 -1
- package/src/components/HkProgressBar.scss +1 -1
- package/src/components/HkStatCard.tsx +1 -1
- package/src/components/HkTag.scss +1 -1
- package/src/components/HkTimeline.scss +1 -1
- package/src/index.ts +1 -4
- package/src/styles/theme/channels.scss +1 -1
- package/src/tokens.scss +1 -1
- package/src/utils/format.ts +0 -4
- package/src/utils/powNonce.ts +1 -1
package/package.json
CHANGED
|
@@ -108,7 +108,6 @@ registerCssAnimation("hk-picker-pane-back-out");
|
|
|
108
108
|
// once; keyframes ride the component's inline <style>).
|
|
109
109
|
registerCssAnimation("hk-flip-out");
|
|
110
110
|
registerCssAnimation("hk-flip-in");
|
|
111
|
-
// components/HkVoiceInputPopup.scss — voice waveform bounce (loops
|
|
112
111
|
// forever while listening; upstreamed from chest's plana-legacy).
|
|
113
112
|
// components/HkPlaceholderMarquee.scss — overflowing placeholder sweep
|
|
114
113
|
// (loops forever; pure CSS, loop geometry on inline custom properties).
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/* Rendered GFM links are real anchors — keyboard-focusable, so they need
|
|
140
|
-
the house :focus-visible ring (HkFab
|
|
140
|
+
the house :focus-visible ring (HkFab house pattern). Ring uses
|
|
141
141
|
the same contract var as the link ink so it matches in every theme. */
|
|
142
142
|
.hk-markdown a:focus-visible {
|
|
143
143
|
outline: 2px solid var(--hi-color-primary, #7aa2f7);
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
* long-press selected it; every other window in the app carries an ✕).
|
|
206
206
|
* The title aligns to the CONTENT edge: the leading inset defaults to
|
|
207
207
|
* --space-12, matching the padded content blocks popover sheets host
|
|
208
|
-
* (e.g.
|
|
208
|
+
* (e.g. the house 0.75rem popover body). Hosts tune it via
|
|
209
209
|
* --hk-sheet-title-inset; the trailing inset hugs the close button. */
|
|
210
210
|
.hk-popover-sheet-header {
|
|
211
211
|
flex-shrink: 0;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
// Width is a size animation — progress steps snap instead of animating
|
|
138
|
-
// (house guard:
|
|
138
|
+
// (house guard: the family bar-fill pattern).
|
|
139
139
|
.hk-progress-bar-fill,
|
|
140
140
|
.hk-progress-bar-secondary,
|
|
141
141
|
.hk-progress-bar-seg {
|
|
@@ -104,7 +104,7 @@ export const HkStatCard = defineComponent({
|
|
|
104
104
|
tabindex: props.clickable ? 0 : undefined,
|
|
105
105
|
onClick: props.clickable ? (e: MouseEvent) => emit("click", e) : undefined,
|
|
106
106
|
// role="button" promises keyboard activation (Enter/Space) — the
|
|
107
|
-
// same contract
|
|
107
|
+
// same contract the house clickable-ring convention honors. Key events
|
|
108
108
|
// bubbling from a focusable INSIDE the card (an aside button) are
|
|
109
109
|
// left alone so they don't double-fire the card's click.
|
|
110
110
|
onKeydown: props.clickable
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
cursor: pointer;
|
|
417
417
|
|
|
418
418
|
// Keyboard parity: the tsx gives completed steps role="button" +
|
|
419
|
-
// tabindex 0 (
|
|
419
|
+
// tabindex 0 (house outer-ring pattern).
|
|
420
420
|
&:focus-visible {
|
|
421
421
|
outline: 2px solid var(--hi-color-primary);
|
|
422
422
|
outline-offset: 2px;
|
package/src/index.ts
CHANGED
|
@@ -549,15 +549,12 @@ export {
|
|
|
549
549
|
export { HK_ENGINE_HEALTH } from "./components/HkConnectionStatus";
|
|
550
550
|
export type { ProbeResult, EngineHealth, EngineNetworkInfo } from "./composables/engineHealthTypes";
|
|
551
551
|
|
|
552
|
-
// ──
|
|
552
|
+
// ── JSON viewer & shared formatters ──
|
|
553
553
|
export {
|
|
554
554
|
HkJsonTree as HJsonTree,
|
|
555
555
|
buildJsonTree,
|
|
556
556
|
type HJsonNode,
|
|
557
557
|
} from "./components/HkJsonTree";
|
|
558
|
-
// Canonical Hk* names for the directly-exported types above (2026-09-24
|
|
559
|
-
// unification follow-up, second batch — caught by the third-scan reverse
|
|
560
|
-
// validation). These types are defined with their H* names at the source.
|
|
561
558
|
|
|
562
559
|
export {
|
|
563
560
|
formatNumber,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* ── Syntax highlighting palette family: --code-* ───────────────────
|
|
9
9
|
* Token names consumed by hikari's highlighted-code surfaces (the
|
|
10
|
-
*
|
|
10
|
+
* The JSON-viewer syntax layer and its theme channels (HkJsonTree).
|
|
11
11
|
* The VALUES are intentionally NOT defined here: the family is owned by
|
|
12
12
|
* the host theme, which maps each token to mode-aware colors. The
|
|
13
13
|
* canonical mapping (dark = One Dark, light = GitHub Light) lives in the
|
package/src/tokens.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ── Syntax highlighting palette family: --code-* ───────────────────
|
|
2
2
|
* Token names consumed by hikari's highlighted-code surfaces (the
|
|
3
|
-
*
|
|
3
|
+
* The JSON-viewer syntax layer and its theme channels (HkJsonTree).
|
|
4
4
|
* The VALUES are intentionally NOT defined here: the family is owned by
|
|
5
5
|
* the host theme, which maps each token to mode-aware colors. The
|
|
6
6
|
* canonical mapping (dark = One Dark, light = GitHub Light) lives in the
|
package/src/utils/format.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* under a zh-Hans app on an en browser). */
|
|
15
15
|
import { activeLocale } from "../i18n/context";
|
|
16
16
|
|
|
17
|
-
/** "1234" -> "1.2k", "2500000" -> "2.5M". */
|
|
18
17
|
|
|
19
18
|
/** "1234" -> "1.2k". */
|
|
20
19
|
export function formatNumber(n: number): string {
|
|
@@ -31,10 +30,7 @@ export function formatBytes(bytes: number): string {
|
|
|
31
30
|
return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)}GB`;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
/** USD amount -> "$0.10" / "$1.5" / "$120". Negative/NaN clamp to 0. */
|
|
35
33
|
|
|
36
|
-
/** Timestamp -> "Just now" / "5m ago" / "3h ago" / "2d ago" / "2w ago" /
|
|
37
|
-
* locale date. */
|
|
38
34
|
export type RelativeTimeT = (
|
|
39
35
|
key: string,
|
|
40
36
|
fallback: string,
|
package/src/utils/powNonce.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type ChallengeDescriptor =
|
|
|
11
11
|
* undefined/missed config value would otherwise fetch `undefined/health`
|
|
12
12
|
* — a relative URL resolving to `<origin>/undefined/health` — and fail
|
|
13
13
|
* with a 404 that looks like a backend problem. Same pattern as
|
|
14
|
-
*
|
|
14
|
+
* the consuming app's health-probe guard.
|
|
15
15
|
*/
|
|
16
16
|
function normalizeBase(baseUrl: string): string {
|
|
17
17
|
return (baseUrl ?? "").replace(/\/+$/, "");
|