@monster-orange/den-ui 0.5.1 → 0.7.0

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.
Files changed (45) hide show
  1. package/README.md +515 -1
  2. package/bin/den-ui-parity.mjs +440 -0
  3. package/inventory/fonts-dir.cjs +8 -0
  4. package/inventory/fonts-dir.mjs +10 -0
  5. package/inventory/nav-inventory.d.ts +133 -0
  6. package/inventory/nav-inventory.js +839 -0
  7. package/inventory/reference/den-chromium-1280.json +5388 -0
  8. package/inventory/reference/den-chromium-390.json +3834 -0
  9. package/inventory/reference/den-webkit-1280.json +5388 -0
  10. package/inventory/reference/den-webkit-390.json +3834 -0
  11. package/package.json +40 -3
  12. package/src/busy-words.d.ts +2 -0
  13. package/src/busy-words.js +6 -0
  14. package/src/busy.css +155 -0
  15. package/src/busy.d.ts +80 -0
  16. package/src/busy.js +105 -35
  17. package/src/dialog.css +103 -0
  18. package/src/dialog.d.ts +44 -0
  19. package/src/dialog.js +95 -30
  20. package/src/icons.d.ts +4 -0
  21. package/src/icons.js +43 -0
  22. package/src/kit.d.ts +217 -0
  23. package/src/kit.js +299 -0
  24. package/src/marks/den.svg +6 -0
  25. package/src/report-shot.d.ts +47 -0
  26. package/src/report-shot.js +437 -0
  27. package/src/report.css +387 -0
  28. package/src/report.d.ts +61 -0
  29. package/src/report.js +909 -0
  30. package/src/shell-client.d.ts +149 -0
  31. package/src/shell-client.js +820 -0
  32. package/src/shell-html.d.ts +305 -0
  33. package/src/shell-html.js +903 -0
  34. package/src/shell.css +1010 -0
  35. package/src/strings.d.ts +18 -0
  36. package/src/strings.js +565 -0
  37. package/src/time.d.ts +18 -0
  38. package/src/time.js +14 -2
  39. package/src/tokens.css +81 -67
  40. package/src/update-pill.d.ts +17 -0
  41. package/src/version.d.ts +7 -0
  42. package/src/version.js +31 -0
  43. package/src/whatsnew.css +235 -0
  44. package/src/whatsnew.d.ts +36 -0
  45. package/src/whatsnew.js +411 -0
@@ -0,0 +1,44 @@
1
+ export type DialogKind = "confirm" | "text" | "tell";
2
+ export interface DialogOptions {
3
+ title?: string;
4
+ message?: string;
5
+ okLabel?: string;
6
+ cancelLabel?: string;
7
+ danger?: boolean;
8
+ /** askText: the field's first text. */
9
+ value?: string;
10
+ /** askText: the field's own name (default: the title). */
11
+ label?: string;
12
+ /** Focus goes back here on close (default: what opened it). */
13
+ opener?: Element | null;
14
+ }
15
+ export declare const DIALOG_WORDS: Record<string, Record<string, string>>;
16
+ export declare function configureDialog(h?: {
17
+ lang?: () => string;
18
+ words?: Record<string, Record<string, string>>;
19
+ report?: (() => string | null) | null;
20
+ /** Where dialog.css is, for a page that doesn't link it. */
21
+ css?: string | null;
22
+ }): void;
23
+ export declare function dialogWord(key: string): string;
24
+ export declare function dialogHtml(
25
+ kind: DialogKind,
26
+ opts: DialogOptions | null | undefined,
27
+ ids: { h: string; m: string },
28
+ ): string;
29
+ export declare function firstFocus(
30
+ kind: DialogKind,
31
+ opts?: DialogOptions | null,
32
+ ): "field" | "cancel" | "ok";
33
+ export declare function answerOf(
34
+ kind: DialogKind,
35
+ ok: boolean,
36
+ text?: string | null,
37
+ ): boolean | string | null | undefined;
38
+ export declare function askConfirm(opts: DialogOptions): Promise<boolean>;
39
+ export declare function askText(opts: DialogOptions): Promise<string | null>;
40
+ export declare function tell(opts: DialogOptions): Promise<void>;
41
+ /** What opened a pop-up: `hint`, the focused element, or the control just pressed. */
42
+ export declare function openerOf(hint?: Element | null): HTMLElement | null;
43
+ /** Focuses `el` again (no scroll) when it is still on the page and focusable. */
44
+ export declare function focusBack(el: Element | null | undefined): boolean;
package/src/dialog.js CHANGED
@@ -9,6 +9,9 @@
9
9
  * words: { en: {...}, ... }, extra or replaced shared words (ok, cancel)
10
10
  * report: () => html, the Report button's HTML for the footer
11
11
  * ("" or null: none)
12
+ * css: "/kit/dialog.css", where dialog.css is, for a page that
13
+ * doesn't link it (default: beside
14
+ * another kit stylesheet on the page)
12
15
  * })
13
16
  *
14
17
  * askConfirm(opts) → Promise<boolean> OK true; Cancel or Esc false
@@ -27,10 +30,76 @@
27
30
  * askConfirm and tell are role="alertdialog"; askText is role="dialog".
28
31
  * Each is named by its title (aria-labelledby) and described by its
29
32
  * message (aria-describedby). Focus moves in (Cancel for danger, the
30
- * field for askText, else OK) and goes back to what had it on close.
33
+ * field for askText, else OK) and goes back to what opened it on close
34
+ * (opts.opener, else the focused element or the control just pressed).
31
35
  * Enter in askText's field is OK.
32
36
  */
33
37
 
38
+ // Focus goes back to what opened a pop-up (here, Report, What's new). The
39
+ // browser's own dialog restore isn't enough: Safari doesn't focus a button
40
+ // on a click, so the element "focused before" a dialog opened from a click
41
+ // is the body. openerOf(hint) at open: the hint, else the focused element,
42
+ // else the control just pressed. focusBack(el) at close: focus it again,
43
+ // without scrolling, if it is still on the page and can take focus. Kept
44
+ // here, not in a file of its own: hosts that serve a list of kit files
45
+ // already serve this one.
46
+
47
+ const FOCUSABLE =
48
+ 'button, a[href], input, select, textarea, summary, [tabindex], [contenteditable=""], [contenteditable="true"]';
49
+
50
+ /** A press counts as the opener for this long (ms). */
51
+ const PRESS_MS = 1500;
52
+
53
+ let pressed = null;
54
+ let pressedAt = 0;
55
+
56
+ function focusable(el) {
57
+ if (!el || el.nodeType !== 1 || !el.isConnected) return false;
58
+ if (typeof document !== "undefined" && el === document.body) return false;
59
+ if (el.disabled) return false;
60
+ return !!el.matches?.(FOCUSABLE);
61
+ }
62
+
63
+ const controlOf = (t) =>
64
+ t && t.nodeType === 1 && t.closest ? t.closest(FOCUSABLE) : null;
65
+
66
+ // The control a pointer or key just pressed, seen before any page handler.
67
+ if (typeof document !== "undefined" && document.addEventListener) {
68
+ const note = (e) => {
69
+ const c = controlOf(e.target);
70
+ if (!c) return;
71
+ pressed = c;
72
+ pressedAt = Date.now();
73
+ };
74
+ for (const type of ["pointerdown", "mousedown", "click", "keydown"])
75
+ document.addEventListener(type, note, true);
76
+ }
77
+
78
+ /** What opened the pop-up: `hint`, the focused element, or the press. */
79
+ export function openerOf(hint) {
80
+ if (focusable(hint)) return hint;
81
+ const h = controlOf(hint);
82
+ if (focusable(h)) return h;
83
+ const at = typeof document !== "undefined" ? document.activeElement : null;
84
+ if (focusable(at)) return at;
85
+ const ev = typeof window !== "undefined" ? window.event : null;
86
+ const t = controlOf(ev?.target);
87
+ if (focusable(t)) return t;
88
+ if (focusable(pressed) && Date.now() - pressedAt < PRESS_MS) return pressed;
89
+ return null;
90
+ }
91
+
92
+ /** Focus `el` again (no scroll), when it is still there and focusable. */
93
+ export function focusBack(el) {
94
+ if (!focusable(el)) return false;
95
+ try {
96
+ el.focus({ preventScroll: true });
97
+ } catch {
98
+ return false;
99
+ }
100
+ return document.activeElement === el;
101
+ }
102
+
34
103
  export const DIALOG_WORDS = {
35
104
  en: { ok: "OK", cancel: "Cancel" },
36
105
  es: { ok: "Aceptar", cancel: "Cancelar" },
@@ -44,6 +113,7 @@ const hook = {
44
113
  "en",
45
114
  words: {},
46
115
  report: null,
116
+ css: null,
47
117
  };
48
118
 
49
119
  /** The product's language, words and Report (see the top of this file). */
@@ -72,30 +142,30 @@ const esc = (s) =>
72
142
  ],
73
143
  );
74
144
 
75
- /** Tokens only (UK-1): no colour of its own. */
76
- const CSS = `
77
- .dk-dlg{font-family:var(--sans);position:fixed;inset-block:auto;inset-inline:0;top:50%;transform:translateY(-50%);margin:0 auto;height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;width:min(440px,calc(100vw - 32px));max-width:100%;padding:0;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow-dialog);box-sizing:border-box}
78
- .dk-dlg::backdrop{background:color-mix(in srgb,var(--sunken) 70%,transparent)}
79
- .dk-b{padding:var(--space-4) calc(var(--space-4) + 2px);display:grid;gap:10px;margin:0}
80
- .dk-b h2{font-size:var(--fs-l);margin:0;overflow-wrap:anywhere}
81
- .dk-msg{margin:0;font-size:var(--fs-s);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:50dvh;overflow:auto}
82
- .dk-in{font:inherit;font-size:var(--fs-s);min-height:var(--tap-min);padding:0 var(--space-2);border:1px solid var(--border-strong);border-radius:var(--radius-button);background:var(--bg);color:var(--text);width:100%;box-sizing:border-box}
83
- .dk-in:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
84
- .dk-ft{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:flex-end;align-items:center}
85
- .dk-ft > :first-child:not(.dk-btn){margin-right:auto}
86
- .dk-btn{font:inherit;font-size:var(--fs-s);min-height:var(--tap-min);padding:0 var(--space-3);border-radius:var(--radius-button);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);cursor:pointer}
87
- .dk-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
88
- .dk-btn.dk-primary{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent)}
89
- .dk-btn.dk-danger{background:var(--bad);border-color:var(--bad);color:var(--on-accent)}
90
- @media (max-width:480px){.dk-btn{min-height:var(--tap)}}
91
- `;
92
-
145
+ /**
146
+ * The look is dialog.css: linked, never injected, so a page under
147
+ * style-src 'self' takes it. A page that links it (in its <head>) keeps
148
+ * its own link. Else it is linked from configureDialog({ css }), or from
149
+ * the folder of another kit stylesheet on the page (tokens.css, say).
150
+ */
151
+ const KIT_SHEET = /(^|\/)(tokens|base|fonts|busy|shell|update-pill)\.css$/;
93
152
  function ensureCss() {
94
153
  if (document.getElementById("dk-css")) return;
95
- const s = document.createElement("style");
96
- s.id = "dk-css";
97
- s.textContent = CSS;
98
- document.head.append(s);
154
+ let near = null;
155
+ for (const l of document.querySelectorAll('link[rel="stylesheet"]')) {
156
+ const u = new URL(l.href, location.href);
157
+ if (/(^|\/)dialog\.css$/.test(u.pathname)) return;
158
+ if (!near && KIT_SHEET.test(u.pathname)) near = u;
159
+ }
160
+ const href =
161
+ hook.css ||
162
+ (near ? new URL("dialog.css", near).href.replace(/\?.*$/, "") : null);
163
+ if (!href) return;
164
+ const l = document.createElement("link");
165
+ l.id = "dk-css";
166
+ l.rel = "stylesheet";
167
+ l.href = href;
168
+ document.head.append(l);
99
169
  }
100
170
 
101
171
  let seq = 0;
@@ -141,7 +211,7 @@ function open(kind, opts = {}) {
141
211
  ensureCss();
142
212
  const n = ++seq;
143
213
  const ids = { h: `dk-h-${n}`, m: `dk-m-${n}` };
144
- const opener = document.activeElement;
214
+ const opener = openerOf(opts.opener);
145
215
  const d = document.createElement("dialog");
146
216
  d.className = "dk-dlg";
147
217
  d.dataset.dkKind = kind;
@@ -164,12 +234,7 @@ function open(kind, opts = {}) {
164
234
  const answer = answerOf(kind, ok, field?.value);
165
235
  if (d.open) d.close();
166
236
  d.remove();
167
- try {
168
- if (opener && opener.isConnected && opener !== document.body)
169
- opener.focus?.();
170
- } catch {
171
- /* nothing to go back to */
172
- }
237
+ focusBack(opener);
173
238
  resolve(answer);
174
239
  };
175
240
  // Esc is Cancel (for tell, it closes). Handled on the dialog's own
package/src/icons.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /** The rail's icons, as SVG path markup by name. */
2
+ export declare const ICONS: Record<string, string>;
3
+ /** An icon's <svg> (aria-hidden), or "" for an unknown name. */
4
+ export declare function icon(name: string | undefined): string;
package/src/icons.js ADDED
@@ -0,0 +1,43 @@
1
+ /**
2
+ * den-ui icons: the shell's 24px line drawings (the rail, the Report
3
+ * button). icon(name) gives an <svg> string; a name it doesn't know, or
4
+ * markup starting with "<" (a product's own drawing), is used as given,
5
+ * else the page icon. Pure: it runs in Node too.
6
+ */
7
+ export const ICONS = {
8
+ // FB (den#81): the flat speech bubble with "!" (the Report button).
9
+ report: '<path d="M4 5h16v11H9l-5 4V5z"/><path d="M12 8v4M12 14.2v.01"/>',
10
+ overview: '<path d="M4 4h7v7H4zM13 4h7v4h-7zM13 10h7v10h-7zM4 13h7v7H4z"/>',
11
+ graph:
12
+ '<circle cx="6" cy="6" r="2.5"/><circle cx="18" cy="8" r="2.5"/><circle cx="9" cy="18" r="2.5"/><path d="M8.2 7.2 15.6 8M7 8.4l1.6 7.2M16.4 10.2l-5.6 6"/>',
13
+ services:
14
+ '<rect x="4" y="4" width="16" height="6" rx="1.5"/><rect x="4" y="14" width="16" height="6" rx="1.5"/><path d="M8 7h.01M8 17h.01"/>',
15
+ logs: '<path d="M5 5h14M5 9h10M5 13h14M5 17h8"/>',
16
+ tests:
17
+ '<path d="M9 4h6M10 4v5l-5 9a1.5 1.5 0 0 0 1.3 2h11.4a1.5 1.5 0 0 0 1.3-2l-5-9V4"/>',
18
+ envs: '<circle cx="12" cy="12" r="8"/><path d="M4 12h16M12 4c2.5 2.5 2.5 13.5 0 16M12 4c-2.5 2.5-2.5 13.5 0 16"/>',
19
+ releases: '<path d="M12 3v12M7 10l5 5 5-5M5 20h14"/>',
20
+ settings:
21
+ '<circle cx="12" cy="12" r="3"/><path d="M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1"/>',
22
+ page: '<rect x="5" y="4" width="14" height="16" rx="2"/><path d="M9 9h6M9 13h6"/>',
23
+ // The prototype's Agents icon: a terminal window with a prompt.
24
+ agents:
25
+ '<rect x="3" y="5" width="18" height="14" rx="2"/><path d="M7 10l3 2-3 2M12 15h5"/>',
26
+ edge: '<path d="M12 3l8 4v5c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V7z"/><path d="M8 12h8M12 8v8"/>',
27
+ // D73: a terminal: a prompt and a cursor, no window.
28
+ terminal: '<path d="M4 7l5 5-5 5M12 18h8"/>',
29
+ // ON-6: the server agent, a speech bubble with a spark.
30
+ assistant:
31
+ '<path d="M5 5h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-8l-4 3v-3H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z"/><path d="M12 8v4M10 10h4"/>',
32
+ // Hub: a node joined to three (the company's shared place).
33
+ hub: '<circle cx="12" cy="12" r="2.5"/><circle cx="5" cy="6" r="2"/><circle cx="19" cy="6" r="2"/><circle cx="12" cy="20" r="2"/><path d="M6.6 7.2l3.5 3.2M17.4 7.2l-3.5 3.2M12 14.5V18"/>',
34
+ // SEC-2a: who this browser is (the rail footer's identity chip).
35
+ person:
36
+ '<circle cx="12" cy="8" r="3.5"/><path d="M5 20c.8-3.6 3.6-5.5 7-5.5s6.2 1.9 7 5.5"/>',
37
+ };
38
+
39
+ /** An icon's <svg>, aria-hidden (the label is beside it). */
40
+ export function icon(name) {
41
+ const d = ICONS[name] || (/^</.test(name || "") ? name : ICONS.page);
42
+ return '<svg viewBox="0 0 24 24" aria-hidden="true">' + d + "</svg>";
43
+ }
package/src/kit.d.ts ADDED
@@ -0,0 +1,217 @@
1
+ import type { ChangelogEntry, WhatsNewOptions } from "./whatsnew.js";
2
+ import type { ReportAdapter, ReportOptions } from "./report.js";
3
+ import type {
4
+ RequestState,
5
+ BusyOptions,
6
+ Progress,
7
+ configureBusy,
8
+ } from "./busy.js";
9
+ import type {
10
+ AccountHydrateOptions,
11
+ AppearanceHandle,
12
+ AppearanceHydrateOptions,
13
+ setWaiting,
14
+ hydrateAppearance,
15
+ BellHandle,
16
+ BellHydrateOptions,
17
+ HydrateOptions,
18
+ ScopeHandle,
19
+ ScopeHydrateOptions,
20
+ SearchHandle,
21
+ SearchHydrateOptions,
22
+ Shell,
23
+ hydrateAccount,
24
+ attachMenuFilter,
25
+ hydrateBell,
26
+ hydrateScope,
27
+ hydrateSearch,
28
+ } from "./shell-client.js";
29
+ import type {
30
+ ShellModel,
31
+ shellHtml,
32
+ topBarHtml,
33
+ markHtml,
34
+ railHtml,
35
+ navItemHtml,
36
+ versionChipHtml,
37
+ reportButtonHtml,
38
+ reportPrefillOf,
39
+ scopeHtml,
40
+ scopeCrumbHtml,
41
+ searchHtml,
42
+ bellButtonHtml,
43
+ bellPanelHtml,
44
+ accountHtml,
45
+ accountMenuHtml,
46
+ settingsHtml,
47
+ appearanceButtonHtml,
48
+ appearanceMenuHtml,
49
+ waitingHtml,
50
+ icon,
51
+ esc,
52
+ } from "./shell-html.js";
53
+ import type { syncPinToggles } from "./shell-client.js";
54
+ import type { UpdatePill } from "./update-pill.js";
55
+
56
+ /** Every call to the product goes through it; the kit names no URL. */
57
+ export interface Adapter extends ReportAdapter {
58
+ changelog?: () => Promise<ChangelogEntry[]>;
59
+ applyUpdate?: () => Promise<unknown>;
60
+ request?: (id: string) => Promise<RequestState | null>;
61
+ }
62
+ export interface KitConfig {
63
+ lang?: string | (() => string);
64
+ product?: { name: string };
65
+ adapter?: Adapter;
66
+ reportOff?: boolean;
67
+ whatsNew?: Omit<WhatsNewOptions, "lang" | "changelog">;
68
+ report?: Omit<ReportOptions, "lang" | "adapter">;
69
+ }
70
+ export interface UpdateSetOptions {
71
+ version?: string;
72
+ message?: string;
73
+ reloadLabel?: string;
74
+ dismissLabel?: string;
75
+ cancelLabel?: string;
76
+ region?: string;
77
+ askFirst?: () => { message: string } | null;
78
+ onReload?: () => void;
79
+ onDismiss?: () => void;
80
+ }
81
+ export interface KitHydrateOptions extends HydrateOptions {
82
+ /** false: the version chip does not open What's new. */
83
+ versionChip?: boolean;
84
+ /** false: no [data-den-report] clicks or ⌘⇧F. */
85
+ report?: boolean;
86
+ /** 0.7.0: the scope crumbs' menus (false: not wired). */
87
+ scope?: ScopeHydrateOptions | false;
88
+ /** 0.7.0: the search field (false: not wired). */
89
+ search?: SearchHydrateOptions | false;
90
+ /** 0.7.0: the bell and its panel (false: not wired). */
91
+ bell?: Omit<BellHydrateOptions, "lang"> | false;
92
+ /** 0.7.0: the account entry as an action (false: not wired). */
93
+ account?: Omit<AccountHydrateOptions, "lang"> | false;
94
+ /** 0.7.0: ◐ ▾ and its menu (wired when given). */
95
+ appearance?: Omit<AppearanceHydrateOptions, "lang">;
96
+ }
97
+ /** The shell hydrate returns: the 0.7.0 pieces it found and wired. */
98
+ export interface KitShell extends Shell {
99
+ scope?: ScopeHandle;
100
+ search?: SearchHandle;
101
+ bell?: BellHandle;
102
+ appearance?: AppearanceHandle;
103
+ /** The account entry's menu, when it has one. */
104
+ account?: AppearanceHandle;
105
+ }
106
+ export declare function configure(o?: KitConfig): void;
107
+ export declare function t(
108
+ key: string,
109
+ vars?: Record<string, string | number>,
110
+ ): string;
111
+ export declare function strings(
112
+ lang: string,
113
+ table: Record<string, string>,
114
+ ): void;
115
+ export declare const version: {
116
+ label(
117
+ running: string | null | undefined,
118
+ changelog: { version: string }[],
119
+ ): string | null;
120
+ set(label: string): void;
121
+ unread(on: boolean): void;
122
+ /** 0.7.0: the update-waiting pill after the chip; null hides it. */
123
+ waiting: typeof setWaiting;
124
+ };
125
+ export declare const whatsNew: {
126
+ open(): void;
127
+ close(): void;
128
+ load(): Promise<ChangelogEntry[]>;
129
+ setEntries(list: ChangelogEntry[]): void;
130
+ };
131
+ export declare const update: {
132
+ set(o?: UpdateSetOptions): UpdatePill;
133
+ hide(): void;
134
+ };
135
+ export declare const report: {
136
+ open(opts?: {
137
+ prefill?: { kind?: string; title?: string; description?: string };
138
+ /** Focus goes back here on close (default: what opened it). */
139
+ opener?: Element | null;
140
+ draft?: string;
141
+ }): Promise<unknown>;
142
+ button(o?: {
143
+ inFoot?: boolean;
144
+ inTop?: boolean;
145
+ label?: string;
146
+ prefill?: { kind?: string; title?: string; description?: string };
147
+ }): string;
148
+ };
149
+ export declare const busy: {
150
+ run<T = unknown>(
151
+ action: string,
152
+ run: (
153
+ headers: Record<string, string>,
154
+ progress: Progress,
155
+ ) => Promise<T> | T,
156
+ opts?: BusyOptions<T>,
157
+ ): Promise<T | null>;
158
+ configure: typeof configureBusy;
159
+ };
160
+ export declare function hydrate(
161
+ root: ParentNode,
162
+ opts?: KitHydrateOptions,
163
+ ): KitShell;
164
+ export declare function mount(
165
+ root: Element,
166
+ model?: ShellModel & { hydrate?: KitHydrateOptions },
167
+ ): KitShell;
168
+
169
+ export interface DenUIKit {
170
+ configure: typeof configure;
171
+ hydrate: typeof hydrate;
172
+ mount: typeof mount;
173
+ shellHtml: typeof shellHtml;
174
+ topBarHtml: typeof topBarHtml;
175
+ markHtml: typeof markHtml;
176
+ railHtml: typeof railHtml;
177
+ navItemHtml: typeof navItemHtml;
178
+ versionChipHtml: typeof versionChipHtml;
179
+ reportButtonHtml: typeof reportButtonHtml;
180
+ reportPrefillOf: typeof reportPrefillOf;
181
+ scopeHtml: typeof scopeHtml;
182
+ scopeCrumbHtml: typeof scopeCrumbHtml;
183
+ searchHtml: typeof searchHtml;
184
+ bellButtonHtml: typeof bellButtonHtml;
185
+ bellPanelHtml: typeof bellPanelHtml;
186
+ accountHtml: typeof accountHtml;
187
+ accountMenuHtml: typeof accountMenuHtml;
188
+ settingsHtml: typeof settingsHtml;
189
+ appearanceButtonHtml: typeof appearanceButtonHtml;
190
+ appearanceMenuHtml: typeof appearanceMenuHtml;
191
+ waitingHtml: typeof waitingHtml;
192
+ hydrateAppearance: typeof hydrateAppearance;
193
+ setWaiting: typeof setWaiting;
194
+ hydrateScope: typeof hydrateScope;
195
+ hydrateSearch: typeof hydrateSearch;
196
+ hydrateBell: typeof hydrateBell;
197
+ hydrateAccount: typeof hydrateAccount;
198
+ attachMenuFilter: typeof attachMenuFilter;
199
+ syncPinToggles: typeof syncPinToggles;
200
+ icon: typeof icon;
201
+ esc: typeof esc;
202
+ t: typeof t;
203
+ strings: typeof strings;
204
+ version: typeof version;
205
+ whatsNew: typeof whatsNew;
206
+ update: typeof update;
207
+ report: typeof report;
208
+ busy: typeof busy;
209
+ }
210
+ declare const DenUI: DenUIKit;
211
+ export default DenUI;
212
+
213
+ declare global {
214
+ interface Window {
215
+ DenUI?: DenUIKit;
216
+ }
217
+ }