@celestia-island/hikari 0.55.363 → 0.55.364
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,10 @@
|
|
|
1
1
|
import { computed, defineComponent, ref, type PropType } from "vue";
|
|
2
2
|
import { HButton, useI18n } from "@celestia-island/hikari";
|
|
3
3
|
import { solvePow, type PowChallenge, type PowSolution } from "../utils/pow";
|
|
4
|
+
// The component paints `.s-auth-submit` / `.s-auth-submit-error`; this stylesheet
|
|
5
|
+
// defines them. It existed but nothing imported it, so both classes shipped
|
|
6
|
+
// unstyled to every consumer.
|
|
7
|
+
import "./HkAuthSubmitButton.scss";
|
|
4
8
|
|
|
5
9
|
export interface AuthSubmitContext {
|
|
6
10
|
/** Solved PoW for the challenge the backend issued (if any). */
|
|
@@ -7,7 +7,12 @@ import HkMenu from "./HkMenu";
|
|
|
7
7
|
import type { HkMenuItem } from "./HkMenu";
|
|
8
8
|
import HkTooltip from "./HkTooltip";
|
|
9
9
|
import { hasRenderedContent } from "../runtime/hasRenderedContent";
|
|
10
|
-
import { useMediaQuery } from "../runtime/useMediaQuery";
|
|
10
|
+
import { releaseMediaQuery, useMediaQuery } from "../runtime/useMediaQuery";
|
|
11
|
+
|
|
12
|
+
/** The touch-first predicate, kept as ONE literal: use and release must
|
|
13
|
+
* name the same registry entry, or the release silently no-ops and the
|
|
14
|
+
* shared listener leaks. */
|
|
15
|
+
const TOUCH_FIRST_QUERY = "(hover: none), (pointer: coarse)";
|
|
11
16
|
import type { StatTone } from "./HkStatCard";
|
|
12
17
|
import { HK_SCROLL_PROGRESS_REGISTRAR, type HkScrollProgressHandle } from "./HkScrollProgressDock";
|
|
13
18
|
import "./HkCardList.scss";
|
|
@@ -176,7 +181,11 @@ export const HkListRow = defineComponent({
|
|
|
176
181
|
setup(props, { emit, slots }) {
|
|
177
182
|
// Touch-first clients get the named menu (tooltips never fire there);
|
|
178
183
|
// pointer clients get the inline icon lane whose names ride tooltips.
|
|
179
|
-
|
|
184
|
+
// Paired with releaseMediaQuery in onBeforeUnmount (the composable's
|
|
185
|
+
// contract): the theme panel mounts/unmounts rows per theme add and
|
|
186
|
+
// remove, so an unpaired handle would pin the shared listener forever.
|
|
187
|
+
const touchFirst = useMediaQuery(TOUCH_FIRST_QUERY);
|
|
188
|
+
onBeforeUnmount(() => releaseMediaQuery(TOUCH_FIRST_QUERY));
|
|
180
189
|
/** Touch-driven overlay reveal. Pointer devices reveal through CSS
|
|
181
190
|
* :hover/:focus-within — the common path stays declarative. */
|
|
182
191
|
const revealed = ref(false);
|
|
@@ -36,9 +36,16 @@ export interface KanbanMove {
|
|
|
36
36
|
fromLaneKey: string;
|
|
37
37
|
fromIndex: number;
|
|
38
38
|
toLaneKey: string;
|
|
39
|
-
/** Where the
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
/** Where the drop lands, in the target lane's PRE-REMOVAL
|
|
40
|
+
* coordinates: a drop ON a card names that card's current index
|
|
41
|
+
* (the dragged card is still rendered when the index is read), and
|
|
42
|
+
* a drop into a gap, on the header/footer, or at the tail names
|
|
43
|
+
* `cardCount` — the append-to-end semantic. Hosts inserting into a
|
|
44
|
+
* list that no longer contains the dragged card must therefore
|
|
45
|
+
* shift one slot left for same-lane FORWARD drops on a card
|
|
46
|
+
* (`toIndex > fromIndex` → insert at `toIndex - 1`); backward and
|
|
47
|
+
* cross-lane moves need no shift, and gap drops always mean
|
|
48
|
+
* "append". */
|
|
42
49
|
toIndex: number;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, onBeforeUnmount, watch, type PropType } from "vue";
|
|
2
2
|
import { drawnScale } from "../composables/layoutGeometry";
|
|
3
|
+
// The component paints `hk-placeholder-marquee*`; this sheet owns their layout.
|
|
4
|
+
import "./HkPlaceholderMarquee.scss";
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Overflow strategy for a placeholder that does not fit its input.
|
package/src/index.ts
CHANGED
|
@@ -649,6 +649,11 @@ export { leadingZeroBits, sha256, solvePow, solvePowSync, verifyPow } from "./ut
|
|
|
649
649
|
export type { PowChallenge, PowSolution } from "./utils/pow";
|
|
650
650
|
export { HkLocalePicker as HLocalePicker } from "./components/HkLocalePicker";
|
|
651
651
|
export { fetchChallenge, negotiateNonce } from "./utils/powNonce";
|
|
652
|
+
// Generic typing helpers (PA-15, 2026-11-13): chest carried byte-identical
|
|
653
|
+
// copies that had started drifting in comment wording. Exported so both
|
|
654
|
+
// webuis consume the one implementation.
|
|
655
|
+
export { asIndexable, asPropType } from "./utils/typing";
|
|
656
|
+
export type { HostWindow } from "./utils/typing";
|
|
652
657
|
export type { ChallengeDescriptor } from "./utils/powNonce";
|
|
653
658
|
export { HkAdminTablePage as HAdminTablePage } from "./components/HkAdminTablePage";
|
|
654
659
|
export type { HTableColumn } from "./components/HkAdminTablePage";
|