@hansenexus/hud 0.5.2 → 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.
- package/README.md +64 -14
- package/dist/{a11y-B5DUaiCs.js → a11y-BGWw4jBr.js} +14 -2
- package/dist/{a11y-panel-p_t4eD7p.js → a11y-panel-DcfXnPHk.js} +1 -1
- package/dist/{access-D_ewAEJG.d.ts → access-Bc709qpl.d.ts} +1 -1
- package/dist/{access-panel-CEfTr9ZI.js → access-panel-grAsMEDk.js} +1 -1
- package/dist/auto/runtime.d.ts +9 -9
- package/dist/auto.d.ts +2 -2
- package/dist/auto.js +5 -5
- package/dist/{data-panel-BmcHCQnM.js → data-panel-B6WPNmV6.js} +1 -1
- package/dist/{data-store-ChF1td_P.js → data-store-FNTQKMkG.js} +1 -1
- package/dist/{define-hud-CHPedaQ5.d.ts → define-hud-DTv3njuU.d.ts} +15 -5
- package/dist/{design-D0kGgPoP.js → design-BXG1a4we.js} +21 -5
- package/dist/{dispatch-panel-B-xr_Giy.js → dispatch-panel-BDHgMhOk.js} +1 -1
- package/dist/{force-state-panel-_otVYh9i.js → force-state-panel-mu-txJnA.js} +1 -1
- package/dist/{handler-BpVhxEmU.js → handler-BKzaOhlJ.js} +1 -1
- package/dist/{handler-DtYVCZY6.d.ts → handler-DMzSTqyG.d.ts} +1 -1
- package/dist/icons-ByDyNq_E.js +71 -0
- package/dist/{index-BnQ0dTZf.d.ts → index-B1vHAY9p.d.ts} +2 -1
- package/dist/{index-DstI_ike.d.ts → index-BJJoAXJ2.d.ts} +5 -1
- package/dist/{index-BAV_1W8a.d.ts → index-BNoPbSYD.d.ts} +3 -1
- package/dist/{index-CwfX-W87.d.ts → index-BR5OB7DO.d.ts} +3 -0
- package/dist/index-C3wzZS3o.d.ts +116 -0
- package/dist/{index-DcH9V3cU.d.ts → index-CQXiuMZQ.d.ts} +3 -0
- package/dist/{index-Hhh7OXzU.d.ts → index-Caohnz3B.d.ts} +7 -1
- package/dist/{index-ReFbhQ9p.d.ts → index-D-hI-DRJ.d.ts} +5 -0
- package/dist/{index-DqOyNf1u.d.ts → index-DLCSLWW4.d.ts} +4 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1230 -88
- package/dist/{inspect-C9Ft8fqn.js → inspect-CSkm8tn3.js} +14 -2
- package/dist/{inspect-root-BkaupBMp.js → inspect-root-CmiFX0e5.js} +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/{observe-CdDnDBRP.js → observe-CBNLU148.js} +12 -2
- package/dist/{observe-panel-Cgp1M8oT.js → observe-panel-zU5LD-U9.js} +1 -1
- package/dist/{ops-panel-CEqDe_UT.js → ops-panel-DHhAnChL.js} +1 -1
- package/dist/plugins/a11y.d.ts +1 -1
- package/dist/plugins/a11y.js +1 -1
- package/dist/plugins/access/server.d.ts +3 -3
- package/dist/plugins/access/server.js +1 -1
- package/dist/plugins/access.d.ts +5 -2
- package/dist/plugins/access.js +18 -5
- package/dist/plugins/agent/server.js +1 -1
- package/dist/plugins/agent.d.ts +4 -2
- package/dist/plugins/agent.js +6 -3
- package/dist/plugins/capture/server.js +1 -1
- package/dist/plugins/capture.d.ts +2 -2
- package/dist/plugins/capture.js +1 -1
- package/dist/plugins/data/server.d.ts +1 -1
- package/dist/plugins/data/server.js +1 -1
- package/dist/plugins/data.d.ts +1 -1
- package/dist/plugins/data.js +30 -9
- package/dist/plugins/design/server.d.ts +1 -1
- package/dist/plugins/design/server.js +1 -1
- package/dist/plugins/design.d.ts +1 -1
- package/dist/plugins/design.js +1 -1
- package/dist/plugins/inspect.d.ts +1 -1
- package/dist/plugins/inspect.js +1 -1
- package/dist/plugins/observe.d.ts +1 -1
- package/dist/plugins/observe.js +1 -1
- package/dist/plugins/ops/server.d.ts +1 -1
- package/dist/plugins/ops/server.js +1 -1
- package/dist/plugins/ops.d.ts +5 -1
- package/dist/plugins/ops.js +16 -4
- package/dist/plugins/routes/server.js +1 -1
- package/dist/plugins/routes.d.ts +1 -1
- package/dist/plugins/routes.js +3 -1
- package/dist/plugins/seo.d.ts +1 -1
- package/dist/plugins/seo.js +1 -1
- package/dist/plugins/vitals.d.ts +1 -1
- package/dist/plugins/vitals.js +9 -1
- package/dist/{plugins-BZvDqGx5.d.ts → plugins-BZT-1LBe.d.ts} +32 -3
- package/dist/{plugins-DVy_vaYr.js → plugins-CcW_K7c2.js} +9 -1
- package/dist/{poll-CjKsWZi8.js → poll-Dm0OijM4.js} +1 -1
- package/dist/{seo-Dq9q_QkO.js → seo-BnnGq_vj.js} +13 -2
- package/dist/{seo-panel-CfiY-TnT.js → seo-panel-BThx56KM.js} +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -2
- package/dist/{sessions-panel-COvhPAzv.js → sessions-panel-MknKsTge.js} +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/{unlock-store-4V3vR4Eg.js → unlock-store-CrGXQx1V.js} +1 -1
- package/dist/{variants-panel-BDoSkwBJ.js → variants-panel-B6zWcknV.js} +1 -1
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +1 -1
- package/package.json +1 -1
- package/dist/index-gCZBO53s.d.ts +0 -73
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { a as HudCapability, c as HudPlugin } from "./plugins-BZT-1LBe.js";
|
|
2
|
+
import { o as HudDock } from "./define-hud-DTv3njuU.js";
|
|
3
|
+
import { ComponentType, ReactNode } from "react";
|
|
4
|
+
//#region src/core/grabber/outline.d.ts
|
|
5
|
+
interface ElementOutlineProps {
|
|
6
|
+
/** The element to outline; `null` renders nothing. */
|
|
7
|
+
element: Element | null;
|
|
8
|
+
label: string;
|
|
9
|
+
/** Called on Escape, on a pointer press outside the overlay's own root, or once the element leaves the DOM. */
|
|
10
|
+
onDismiss: () => void;
|
|
11
|
+
/** Scroll the element into view when it changes. Default true. */
|
|
12
|
+
reveal?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Outlines one element with the grabber's overlay without entering grab mode:
|
|
16
|
+
* findings in a panel point at the page this way. The box follows scrolling
|
|
17
|
+
* and resizes; the outline goes away on Escape, on a press on the page, or
|
|
18
|
+
* when the element is removed.
|
|
19
|
+
*/
|
|
20
|
+
declare function ElementOutline({ element, label, onDismiss, reveal }: ElementOutlineProps): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/core/grabber/picker.d.ts
|
|
23
|
+
interface PickPoint {
|
|
24
|
+
clientX: number;
|
|
25
|
+
clientY: number;
|
|
26
|
+
}
|
|
27
|
+
interface ElementPickerProps {
|
|
28
|
+
active: boolean;
|
|
29
|
+
onPick: (element: Element, point: PickPoint) => void;
|
|
30
|
+
onCancel: () => void;
|
|
31
|
+
/** Banner text while active. */
|
|
32
|
+
hint?: string;
|
|
33
|
+
/** Label next to the hover outline. Default: the tag name. */
|
|
34
|
+
describe?: (element: Element) => string;
|
|
35
|
+
/** Extra elements to leave alone, on top of the picker's own shadow host. */
|
|
36
|
+
ignore?: (element: Element) => boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Styles for the picker overlay. The picker renders where it is mounted, so
|
|
40
|
+
* the caller puts these into the same (shadow) root. Colours fall back when
|
|
41
|
+
* the `--hud-*` tokens are absent.
|
|
42
|
+
*/
|
|
43
|
+
declare const PICKER_CSS = "\n.grab-layer { position: fixed; inset: 0; pointer-events: none; }\n.grab-hint {\n position: fixed;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n padding: 3px 12px;\n border-radius: 0 0 6px 6px;\n white-space: nowrap;\n background: var(--hud-accent, #0369a1);\n color: var(--hud-accent-fg, #ffffff);\n font: 600 11px/1.5 var(--hud-mono, ui-monospace, monospace);\n}\n.grab-outline {\n position: fixed;\n border: 1.5px solid var(--hud-accent, #0369a1);\n background: color-mix(in srgb, var(--hud-accent, #0369a1) 8%, transparent);\n border-radius: 3px;\n}\n.grab-label {\n position: fixed;\n max-width: min(480px, calc(100vw - 8px));\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 1px 6px;\n border-radius: 3px;\n background: var(--hud-accent, #0369a1);\n color: var(--hud-accent-fg, #ffffff);\n font: 600 10px/1.6 var(--hud-mono, ui-monospace, monospace);\n}\n";
|
|
44
|
+
/**
|
|
45
|
+
* Click-to-pick controller: crosshair, hover outline with a label, the next
|
|
46
|
+
* click picks, Escape cancels. Events inside the picker's own shadow host
|
|
47
|
+
* (the HUD's pill and panels) pass through untouched, so panels stay usable
|
|
48
|
+
* and mounted during a grab.
|
|
49
|
+
*/
|
|
50
|
+
declare function ElementPicker({ active, onPick, onCancel, hint, describe, ignore }: ElementPickerProps): import("react").JSX.Element;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/core/icons.d.ts
|
|
53
|
+
/**
|
|
54
|
+
* The rail's icon set: lucide shapes as path data, one `<symbol>` each in a
|
|
55
|
+
* sprite the shell renders once inside its shadow root. No icon library: the
|
|
56
|
+
* core budget is 40 KB gzip and a plugin's icon is one `<use>`.
|
|
57
|
+
*/
|
|
58
|
+
declare const HUD_ICON_PATHS: {
|
|
59
|
+
readonly bug: "m8 2 1.88 1.88M14.12 3.88 16 2M9 7.13v-1a3.003 3.003 0 1 1 6 0v1M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6M12 20v-9M6.53 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M20.97 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4";
|
|
60
|
+
readonly database: "M3 5a9 3 0 1 0 18 0 9 3 0 1 0-18 0M3 5v14a9 3 0 0 0 18 0V5M3 12a9 3 0 0 0 18 0";
|
|
61
|
+
readonly "git-branch": "M6 3v12M18 9a9 9 0 0 1-9 9M21 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0";
|
|
62
|
+
readonly send: "M14.5 10.5 22 3M22 3l-7 19-4-8.5L2 9z";
|
|
63
|
+
readonly terminal: "m4 17 6-6-6-6M12 19h8";
|
|
64
|
+
readonly palette: "M13.5 6.5h.01M17.5 10.5h.01M8.5 7.5h.01M6.5 12.5h.01M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.9 0 1.6-.7 1.6-1.6 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.9.7-1.6 1.6-1.6H16c3.3 0 6-2.7 6-6 0-4.9-4.5-8.6-10-8.6";
|
|
65
|
+
readonly layers: "m12 2 9 4.5-9 4.5-9-4.5zM3 12l9 4.5 9-4.5M3 17l9 4.5 9-4.5";
|
|
66
|
+
readonly toggle: "M8 6h8a6 6 0 0 1 0 12H8A6 6 0 0 1 8 6zM19 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0";
|
|
67
|
+
readonly crosshair: "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0M12 3v4M12 17v4M3 12h4M17 12h4";
|
|
68
|
+
readonly ellipsis: "M6 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0M13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0M20 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0";
|
|
69
|
+
readonly plug: "M12 22v-5M9 8V2M15 8V2M18 8H6v5a6 6 0 0 0 12 0V8z";
|
|
70
|
+
readonly gauge: "m12 14 4-4M3.34 19a10 10 0 1 1 17.32 0";
|
|
71
|
+
readonly lock: "M7 11V7a5 5 0 0 1 10 0v4M5 11h14v10H5z";
|
|
72
|
+
readonly search: "m21 21-4.35-4.35M17 11a6 6 0 1 1-12 0 6 6 0 0 1 12 0";
|
|
73
|
+
readonly accessibility: "M17 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0m1 15 1-7-6 1M5 8l3-3 5.5 3-2.36 3.5M4.24 14.5a5 5 0 0 0 6.88 6M13.76 17.5a5 5 0 0 0-6.88-6";
|
|
74
|
+
readonly activity: "M22 12h-4l-3 9L9 3l-3 9H2";
|
|
75
|
+
readonly route: "M9 19a3 3 0 1 1-6 0 3 3 0 0 1 6 0M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15";
|
|
76
|
+
readonly wrench: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z";
|
|
77
|
+
readonly x: "M18 6 6 18M6 6l12 12";
|
|
78
|
+
readonly grip: "M10 6h.01M14 6h.01M10 12h.01M14 12h.01M10 18h.01M14 18h.01";
|
|
79
|
+
readonly "chevron-up": "m18 15-6-6-6 6";
|
|
80
|
+
readonly "chevron-down": "m6 9 6 6 6-6";
|
|
81
|
+
readonly eye: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12zM15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0";
|
|
82
|
+
readonly "eye-off": "M10.7 5.1A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.3 3.2M6.6 6.6A16 16 0 0 0 2 12s3.5 7 10 7a10 10 0 0 0 5.4-1.6M2 2l20 20M9.9 9.9a3 3 0 1 0 4.2 4.2";
|
|
83
|
+
};
|
|
84
|
+
type HudIconName = keyof typeof HUD_ICON_PATHS;
|
|
85
|
+
declare const HUD_ICON_NAMES: readonly HudIconName[];
|
|
86
|
+
/**
|
|
87
|
+
* A plugin `icon` from the built-in set: `definePlugin({ icon: hudIcon("database") })`.
|
|
88
|
+
* The same name returns the same component, so plugin objects stay comparable.
|
|
89
|
+
*/
|
|
90
|
+
declare function hudIcon(name: HudIconName): ComponentType;
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/shell/hud.d.ts
|
|
93
|
+
interface HudProps {
|
|
94
|
+
/** App slug: labels the dock and keys the persisted layout. */
|
|
95
|
+
appSlug: string;
|
|
96
|
+
/** Label of the env chip. Default "DEV". */
|
|
97
|
+
envLabel?: string;
|
|
98
|
+
/** Client halves of the plugins, in dock order. Keep the array stable across renders. */
|
|
99
|
+
plugins?: readonly HudPlugin[];
|
|
100
|
+
/** Base path of the plugin routes. Default "/api/hud". */
|
|
101
|
+
apiBase?: string;
|
|
102
|
+
/** Capability check. Default: grant all (core assumes development). Keep it stable. */
|
|
103
|
+
can?: (capability: HudCapability) => boolean;
|
|
104
|
+
/** The edge rail (default) or the horizontal corner pill. */
|
|
105
|
+
dock?: HudDock;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The HUD shell: a shadow-rooted dock (rail or pill) and floating panels.
|
|
109
|
+
*
|
|
110
|
+
* It renders unconditionally. Keeping it out of production builds is the
|
|
111
|
+
* loader's job, at the import site, so a bundler can drop the whole module
|
|
112
|
+
* (see `@hansenexus/hud/next`).
|
|
113
|
+
*/
|
|
114
|
+
declare function Hud({ appSlug, envLabel, plugins, apiBase, can, dock }: HudProps): import("react").JSX.Element;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { hudIcon as a, PICKER_CSS as c, ElementOutlineProps as d, HudIconName as i, PickPoint as l, HudProps as n, ElementPicker as o, HUD_ICON_NAMES as r, ElementPickerProps as s, Hud as t, ElementOutline as u };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as HudBadge } from "./plugins-BZT-1LBe.js";
|
|
1
2
|
//#region src/plugins/seo/seo-panel.d.ts
|
|
2
3
|
/** Every check grouped, worst level first in the summary; head changes re-check automatically. */
|
|
3
4
|
declare function SeoPanel(): import("react").JSX.Element;
|
|
@@ -36,6 +37,8 @@ interface SeoSnapshot {
|
|
|
36
37
|
declare function seo(): {
|
|
37
38
|
readonly id: "seo";
|
|
38
39
|
readonly title: "SEO";
|
|
40
|
+
readonly icon: import("react").ComponentType;
|
|
41
|
+
readonly badge: () => HudBadge | null;
|
|
39
42
|
readonly pill: () => import("react").JSX.Element;
|
|
40
43
|
readonly panel: import("react").LazyExoticComponent<typeof SeoPanel>;
|
|
41
44
|
readonly commands: readonly [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as HudBadge, u as HudPluginProps } from "./plugins-BZT-1LBe.js";
|
|
2
2
|
//#region src/plugins/design/force-state-panel.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Toggles every mounted `StateBoundary` between its real state and a forced
|
|
@@ -13,6 +13,8 @@ declare function ForceStatePanel(): import("react").JSX.Element;
|
|
|
13
13
|
* core `.dot`, since the plugin stylesheet only loads with the panel.
|
|
14
14
|
*/
|
|
15
15
|
declare function ForceStatePill(): import("react").JSX.Element;
|
|
16
|
+
/** The rail badge: the forced count, nothing while no boundary is forced. */
|
|
17
|
+
declare function useForceStateBadge(): HudBadge | null;
|
|
16
18
|
//#endregion
|
|
17
19
|
//#region src/plugins/design/tokens.d.ts
|
|
18
20
|
interface HudTokenDescriptor {
|
|
@@ -95,6 +97,7 @@ interface HudVariantsAdapter {
|
|
|
95
97
|
declare function tokens(adapter: HudTokensAdapter): {
|
|
96
98
|
readonly id: "tokens";
|
|
97
99
|
readonly title: "Tokens";
|
|
100
|
+
readonly icon: import("react").ComponentType;
|
|
98
101
|
readonly panel: () => import("react").JSX.Element;
|
|
99
102
|
};
|
|
100
103
|
/**
|
|
@@ -107,6 +110,7 @@ declare function tokens(adapter: HudTokensAdapter): {
|
|
|
107
110
|
declare function variants(adapter?: HudVariantsAdapter): {
|
|
108
111
|
readonly id: "variants";
|
|
109
112
|
readonly title: "Variants";
|
|
113
|
+
readonly icon: import("react").ComponentType;
|
|
110
114
|
readonly panel: ({ ctx }: HudPluginProps) => import("react").JSX.Element;
|
|
111
115
|
};
|
|
112
116
|
/**
|
|
@@ -117,6 +121,8 @@ declare function forceState(): {
|
|
|
117
121
|
readonly id: "states";
|
|
118
122
|
readonly title: "States";
|
|
119
123
|
readonly capability: "state.force";
|
|
124
|
+
readonly icon: import("react").ComponentType;
|
|
125
|
+
readonly badge: typeof useForceStateBadge;
|
|
120
126
|
readonly pill: typeof ForceStatePill;
|
|
121
127
|
readonly panel: import("react").LazyExoticComponent<typeof ForceStatePanel>;
|
|
122
128
|
readonly commands: readonly [{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { r as HudBadge } from "./plugins-BZT-1LBe.js";
|
|
1
2
|
import { Metric } from "web-vitals";
|
|
2
3
|
//#region src/plugins/vitals/vitals-panel.d.ts
|
|
3
4
|
declare function VitalsPanel(): import("react").JSX.Element;
|
|
@@ -14,10 +15,14 @@ type VitalsSnapshot = Partial<Record<VitalName, Vital>>;
|
|
|
14
15
|
//#endregion
|
|
15
16
|
//#region src/plugins/vitals/index.d.ts
|
|
16
17
|
declare function VitalsPill(): import("react").JSX.Element;
|
|
18
|
+
/** The LCP rating as a rail badge; nothing until it is reported. */
|
|
19
|
+
declare function useVitalsBadge(): HudBadge | null;
|
|
17
20
|
/** Core Web Vitals: LCP in the pill, all five metrics in the panel. Client only. */
|
|
18
21
|
declare function vitals(): {
|
|
19
22
|
readonly id: "vitals";
|
|
20
23
|
readonly title: "Vitals";
|
|
24
|
+
readonly icon: import("react").ComponentType;
|
|
25
|
+
readonly badge: typeof useVitalsBadge;
|
|
21
26
|
readonly pill: typeof VitalsPill;
|
|
22
27
|
readonly panel: import("react").LazyExoticComponent<typeof VitalsPanel>;
|
|
23
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { l as HudPluginContext, r as HudBadge, u as HudPluginProps } from "./plugins-BZT-1LBe.js";
|
|
2
|
+
import "./index-C3wzZS3o.js";
|
|
3
3
|
//#region src/plugins/a11y/axe.d.ts
|
|
4
4
|
type AxeImpact = "critical" | "serious" | "moderate" | "minor";
|
|
5
5
|
/** Element path as axe reports it: selectors per shadow-DOM or frame hop. */
|
|
@@ -53,6 +53,8 @@ type A11yOptions = A11yRunOptions;
|
|
|
53
53
|
declare function a11y(options?: A11yOptions): {
|
|
54
54
|
readonly id: "a11y";
|
|
55
55
|
readonly title: "A11y";
|
|
56
|
+
readonly icon: import("react").ComponentType;
|
|
57
|
+
readonly badge: () => HudBadge | null;
|
|
56
58
|
readonly pill: () => import("react").JSX.Element;
|
|
57
59
|
readonly panel: ({ ctx }: HudPluginProps) => import("react").JSX.Element;
|
|
58
60
|
readonly commands: readonly [{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as GrabScreenshotImage, i as GrabScreenshot, n as GrabAnchor, o as matchComponentHints, r as GrabPayload, s as GrabComponent, t as ComponentHint } from "./payload-MUQ9ciER.js";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { i as defineHud, n as HudAutoPlugins, r as HudMountProps, t as DefineHudOptions } from "./define-hud-
|
|
4
|
-
import { a as
|
|
2
|
+
import { _ as HudGrab, a as HudCapability, b as useGrab, c as HudPlugin, g as ratingTone, h as definePlugin, i as HudBadgeTone, l as HudPluginContext, m as PinEdge, n as HudApiError, o as HudCommand, r as HudBadge, t as HudAccessControl, u as HudPluginProps, v as HudGrabState, y as HudHighlight } from "./plugins-BZT-1LBe.js";
|
|
3
|
+
import { a as DockSide, i as defineHud, n as HudAutoPlugins, o as HudDock, r as HudMountProps, t as DefineHudOptions } from "./define-hud-DTv3njuU.js";
|
|
4
|
+
import { a as hudIcon, c as PICKER_CSS, d as ElementOutlineProps, i as HudIconName, l as PickPoint, n as HudProps, o as ElementPicker, r as HUD_ICON_NAMES, s as ElementPickerProps, t as Hud, u as ElementOutline } from "./index-C3wzZS3o.js";
|
|
5
5
|
import { n as HUD_HOST_TAG, t as HUD_DEV_MARKER } from "./marker-CMrvxPmS.js";
|
|
6
|
-
export { type ComponentHint, type DefineHudOptions, ElementOutline, type ElementOutlineProps, ElementPicker, type ElementPickerProps, type GrabAnchor, type GrabComponent, type GrabPayload, type GrabScreenshot, type GrabScreenshotImage, HUD_DEV_MARKER, HUD_HOST_TAG, Hud, type HudAccessControl, HudApiError, type HudAutoPlugins, type HudCapability, type HudCommand, type HudGrab, type HudGrabState, type HudHighlight, type HudMountProps, type HudPlugin, type HudPluginContext, type HudPluginProps, type HudProps, PICKER_CSS, type PickPoint, type PinEdge, defineHud, definePlugin, matchComponentHints, useGrab };
|
|
6
|
+
export { type ComponentHint, type DefineHudOptions, type DockSide, ElementOutline, type ElementOutlineProps, ElementPicker, type ElementPickerProps, type GrabAnchor, type GrabComponent, type GrabPayload, type GrabScreenshot, type GrabScreenshotImage, HUD_DEV_MARKER, HUD_HOST_TAG, HUD_ICON_NAMES, Hud, type HudAccessControl, HudApiError, type HudAutoPlugins, type HudBadge, type HudBadgeTone, type HudCapability, type HudCommand, type HudDock, type HudGrab, type HudGrabState, type HudHighlight, type HudIconName, type HudMountProps, type HudPlugin, type HudPluginContext, type HudPluginProps, type HudProps, PICKER_CSS, type PickPoint, type PinEdge, defineHud, definePlugin, hudIcon, matchComponentHints, ratingTone, useGrab };
|