@thehammer/template-verification 0.2.7 → 0.2.8

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.
@@ -4,8 +4,8 @@ import type { CitationPage } from "../lib/citations";
4
4
  * ordered verbatim quotes on the right, and the page-level actions.
5
5
  *
6
6
  * Renders ONLY the body — the collapsed header row lives in
7
- * {@link CitationPageList} because `DanxAccordion` renders its header as a
8
- * `<button>`, and the view/download controls here are themselves buttons.
7
+ * {@link CitationPageList} because the disclosure's header is itself a
8
+ * `<button>`, and the view/download controls here are buttons too.
9
9
  *
10
10
  * The thumbnail is a `DanxFile` in `downloadable` mode: hovering it exposes
11
11
  * danx-ui's own download control, and clicking it opens the full-screen viewer.
@@ -0,0 +1,61 @@
1
+ /**
2
+ * A minimal, accessible collapsible-section list — the package's own, on purpose.
3
+ *
4
+ * danx-ui ships `DanxAccordion`, but a template app does NOT resolve danx-ui from
5
+ * this package's node_modules: the danxbot build marks it external and the browser
6
+ * resolves it at load time from the shell's vendor chunk, which pins
7
+ * `@thehammer/danx-ui: ^0.8.17` (see danxbot `spa-template-shell/package.json`).
8
+ * `DanxAccordion` does not exist there, and importing it fails the template's vite
9
+ * build with a Rollup "not exported" error — which is exactly what happened on the
10
+ * first attempt to ship this feature.
11
+ *
12
+ * The rule this encodes: this package must only use danx-ui surface that exists at
13
+ * the FLOOR of its declared peer range, never whatever the local install happens to
14
+ * resolve. A ~40-line disclosure is a much cheaper guarantee than a version bump
15
+ * coordinated across the shell and every template.
16
+ *
17
+ * The header is a `<button>` (its own accessible toggle), so slot content placed in
18
+ * it must not itself be interactive — put actions in the `panel` slot.
19
+ */
20
+ type __VLS_Props = {
21
+ /** Sections to render, in order. `value` is the open/closed key. */
22
+ items: Array<{
23
+ value: string;
24
+ label?: string;
25
+ }>;
26
+ /** Open section keys. Any number may be open at once. */
27
+ modelValue: string[];
28
+ /** Prefix for the generated aria ids — unique per usage on a page. */
29
+ idPrefix?: string;
30
+ };
31
+ declare var __VLS_1: {
32
+ item: {
33
+ value: string;
34
+ label?: string | undefined;
35
+ };
36
+ isOpen: boolean;
37
+ }, __VLS_3: {
38
+ item: {
39
+ value: string;
40
+ label?: string | undefined;
41
+ };
42
+ isOpen: boolean;
43
+ };
44
+ type __VLS_Slots = {} & {
45
+ header?: (props: typeof __VLS_1) => any;
46
+ } & {
47
+ panel?: (props: typeof __VLS_3) => any;
48
+ };
49
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ "update:modelValue": (value: string[]) => any;
51
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
52
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
53
+ }>, {
54
+ idPrefix: string;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
56
+ export default _default;
57
+ type __VLS_WithSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };