@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.156",
3
+ "version": "0.55.157",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari Vue 3 component library — production-grade UI components based on shittim-chest design system",
@@ -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/HkContextRing pattern). Ring uses
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. HkContextRing's 0.75rem body). Hosts tune it via
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: HkTokenUsagePanel's bar fill).
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 HkContextRing's clickable ring honors. Key events
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
@@ -51,7 +51,7 @@
51
51
  opacity: 1;
52
52
  }
53
53
 
54
- /* Keyboard focus indicator (house HkContextRing pattern). */
54
+ /* Keyboard focus indicator (house focus-ring pattern). */
55
55
  .hk-tag-close:focus-visible {
56
56
  outline: 2px solid rgb(var(--color-primary));
57
57
  outline-offset: 2px;
@@ -416,7 +416,7 @@
416
416
  cursor: pointer;
417
417
 
418
418
  // Keyboard parity: the tsx gives completed steps role="button" +
419
- // tabindex 0 (HkContextRing outer-ring pattern).
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
- // ── Chat kit (upstreamed from shittim-chest's plana-legacy layer) ──────────
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
- * HkToolBlock syntax layer and its JSON viewer, see HkToolBlock.scss).
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
- * HkToolBlock syntax layer and its JSON viewer, see HkToolBlock.scss).
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
@@ -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,
@@ -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
- * useEngineHealth's baseUrl guard.
14
+ * the consuming app's health-probe guard.
15
15
  */
16
16
  function normalizeBase(baseUrl: string): string {
17
17
  return (baseUrl ?? "").replace(/\/+$/, "");