@celestia-island/hikari 0.55.375 → 0.55.377
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
|
@@ -123,7 +123,7 @@ describe("emergency alert layering contract", () => {
|
|
|
123
123
|
expect(root).not.toContain("var(--color-background");
|
|
124
124
|
// Dark-ink DIRECTION, not a literal: every RGB channel must be
|
|
125
125
|
// dark (<60) and the veil substantial (alpha >= 40%). A future
|
|
126
|
-
// retune (55%→52%,
|
|
126
|
+
// retune (55%→52%, 12 14 20 etc.) passes; a light recolor
|
|
127
127
|
// (200 210 220) fails on semantics, not on mismatched text.
|
|
128
128
|
// EXACTLY ONE declaration per property, counted by NAME in any
|
|
129
129
|
// value form: a later duplicate wins the cascade silently, so a
|
|
@@ -23,13 +23,16 @@
|
|
|
23
23
|
--hk-emergency-line-soft: color-mix(in srgb, var(--hk-emergency-line) 55%, transparent);
|
|
24
24
|
--hk-emergency-edge-glow: color-mix(in srgb, var(--hk-emergency-line) 22%, transparent);
|
|
25
25
|
--hk-emergency-wash: color-mix(in srgb, var(--hk-emergency-line) 14%, transparent);
|
|
26
|
-
--hk-emergency-band-bg: rgb(var(--color-surface,
|
|
26
|
+
--hk-emergency-band-bg: rgb(var(--color-surface, 255 255 255) / 96%);
|
|
27
27
|
// The scrim is DARK INK ON PURPOSE — theme-independent. Pointing it
|
|
28
28
|
// at --color-background (the 0.55.370 default) makes it a WHITE veil
|
|
29
29
|
// in light themes: the page never darkens, and the takeover reads as
|
|
30
30
|
// a pastel banner on plain paper (2026-11-14 field report). A scrim
|
|
31
|
-
// darkens what is behind it; that is mode-independent.
|
|
32
|
-
|
|
31
|
+
// darkens what is behind it; that is mode-independent. The ink is
|
|
32
|
+
// the house pure black (HkModal / HkDrawer scrims = rgba(0,0,0,α)
|
|
33
|
+
// behind their own --hk-*-overlay-bg vars); this takeover dims at
|
|
34
|
+
// 55% versus their 45% — a takeover sits above work, not beside it.
|
|
35
|
+
--hk-emergency-scrim: rgb(0 0 0 / 55%);
|
|
33
36
|
|
|
34
37
|
position: fixed;
|
|
35
38
|
// Chrome-band leg: in native hosts the window titlebar owns the top
|
|
@@ -95,9 +98,9 @@
|
|
|
95
98
|
// a deep soft shadow lifts it off the scrim so the takeover reads
|
|
96
99
|
// as layered, not pasted (0.55.370 field note: without this the
|
|
97
100
|
// light band floated flat on the light page).
|
|
98
|
-
box-shadow: 0 24px 72px rgb(
|
|
101
|
+
box-shadow: 0 24px 72px rgb(0 0 0 / 45%);
|
|
99
102
|
text-align: center;
|
|
100
|
-
color: rgb(var(--color-text,
|
|
103
|
+
color: rgb(var(--color-text, 30 32 36));
|
|
101
104
|
font-family: var(--font-sans, system-ui, sans-serif);
|
|
102
105
|
|
|
103
106
|
// FUI double line: a second, fainter signal line hugging each edge
|
|
@@ -183,7 +186,7 @@
|
|
|
183
186
|
font-weight: 700;
|
|
184
187
|
line-height: 1.2;
|
|
185
188
|
letter-spacing: 0.01em;
|
|
186
|
-
color: rgb(var(--color-text,
|
|
189
|
+
color: rgb(var(--color-text, 30 32 36));
|
|
187
190
|
}
|
|
188
191
|
|
|
189
192
|
.hk-emergency-desc {
|
|
@@ -191,7 +194,7 @@
|
|
|
191
194
|
max-width: 56ch;
|
|
192
195
|
font-size: clamp(1rem, 2vw, 1.125rem);
|
|
193
196
|
line-height: 1.6;
|
|
194
|
-
color: rgb(var(--color-muted,
|
|
197
|
+
color: rgb(var(--color-muted, 118 122 128));
|
|
195
198
|
white-space: pre-line;
|
|
196
199
|
}
|
|
197
200
|
|
|
@@ -200,7 +203,7 @@
|
|
|
200
203
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
201
204
|
font-size: 0.8125rem;
|
|
202
205
|
letter-spacing: 0.08em;
|
|
203
|
-
color: rgb(var(--color-muted,
|
|
206
|
+
color: rgb(var(--color-muted, 118 122 128));
|
|
204
207
|
}
|
|
205
208
|
|
|
206
209
|
.hk-emergency-actions {
|
|
@@ -224,7 +227,7 @@
|
|
|
224
227
|
.is-warning .hk-emergency-actions .hk-btn-primary {
|
|
225
228
|
background: var(--hk-emergency-wash);
|
|
226
229
|
border-color: var(--hk-emergency-line);
|
|
227
|
-
color: rgb(var(--color-text,
|
|
230
|
+
color: rgb(var(--color-text, 30 32 36));
|
|
228
231
|
}
|
|
229
232
|
|
|
230
233
|
.is-warning .hk-emergency-actions .hk-btn-primary:hover:not(:disabled):not(:focus-visible) {
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
import hljs from "highlight.js/lib/core";
|
|
16
16
|
import { ref } from "vue";
|
|
17
17
|
|
|
18
|
+
import { wasmHighlight, wasmSupportedLanguages } from "./wasmHighlight";
|
|
19
|
+
|
|
18
20
|
import { LANGUAGE_LOADERS } from "./highlightLanguages";
|
|
19
21
|
|
|
20
22
|
// Bumped each time a grammar registers; read inside highlight() so reactive
|
|
@@ -216,6 +218,12 @@ export function highlight(code: string, lang?: string): string {
|
|
|
216
218
|
|
|
217
219
|
const name = lang ? normalize(lang) : "";
|
|
218
220
|
if (name) {
|
|
221
|
+
// Wasm component first: it is synchronous and always loaded (the
|
|
222
|
+
// grammars are compiled in), so languages it covers never hit the
|
|
223
|
+
// lazy hljs loader — no flash of unstyled code.
|
|
224
|
+
const wasmResult = wasmHighlight(code, name);
|
|
225
|
+
if (wasmResult !== null) return wasmResult;
|
|
226
|
+
|
|
219
227
|
if (loaded.has(name)) {
|
|
220
228
|
try {
|
|
221
229
|
return hljs.highlight(code, { language: name }).value;
|