@mt-gloss/ui 0.1.93 → 0.1.95
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/{COMMITS-DAem0P4s.js → COMMITS-By42AA8m.js} +93 -77
- package/composites-panels.js +226 -53
- package/index.js +1 -1
- package/lib/composites/panels/asserter/domWalkAsserter.d.ts +17 -0
- package/lib/composites/panels/hooks/useTransitionToPanel.d.ts +2 -0
- package/lib/composites/panels/index.d.ts +9 -0
- package/lib/composites/panels/orchestrator/transitionToPanel.d.ts +21 -0
- package/lib/composites/panels/shells/SettingsShell.d.ts +9 -1
- package/lib/composites/panels/stage3d/CloneCard.d.ts +7 -0
- package/lib/composites/panels/stage3d/CloneStage.d.ts +5 -0
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AssertReport } from '../orchestrator/transitionToPanel';
|
|
2
|
+
export type { AssertReport };
|
|
3
|
+
/**
|
|
4
|
+
* Pure DOM-walk — exported separately for tests + external callers that want a
|
|
5
|
+
* one-shot probe without flipping the global flag.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertPanelDomShape(): AssertReport;
|
|
8
|
+
/**
|
|
9
|
+
* Enable the Q12-12 asserter. First call assigns `window.__panelsAsserter`
|
|
10
|
+
* (only on first enable — avoids repeated reassignment per Rule 29).
|
|
11
|
+
*/
|
|
12
|
+
export declare function enablePanelAsserter(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Disable the asserter. Keeps `lastReport` accessible (test 8 invariant) and
|
|
15
|
+
* keeps the window surface attached so future enable() calls don't reassign.
|
|
16
|
+
*/
|
|
17
|
+
export declare function disablePanelAsserter(): void;
|
|
@@ -21,6 +21,15 @@ export { positionKey } from './utils/positionKey';
|
|
|
21
21
|
export { useReducedMotionPanel } from './hooks/useReducedMotionPanel';
|
|
22
22
|
export { PanelMount } from './PanelMount';
|
|
23
23
|
export type { PanelMountProps } from './PanelMount';
|
|
24
|
+
export { transitionToPanel } from './orchestrator/transitionToPanel';
|
|
25
|
+
export type { TransitionToPanelArgs, AssertReport } from './orchestrator/transitionToPanel';
|
|
26
|
+
export { useTransitionToPanel } from './hooks/useTransitionToPanel';
|
|
27
|
+
export { CloneStage } from './stage3d/CloneStage';
|
|
28
|
+
export type { CloneStageProps } from './stage3d/CloneStage';
|
|
29
|
+
export { CloneCard } from './stage3d/CloneCard';
|
|
30
|
+
export type { CloneCardProps } from './stage3d/CloneCard';
|
|
31
|
+
export { enablePanelAsserter, disablePanelAsserter, assertPanelDomShape, } from './asserter/domWalkAsserter';
|
|
32
|
+
export type { SettingsShellProps } from './shells/SettingsShell';
|
|
24
33
|
export { usePanelCoordinator } from './hooks/usePanelCoordinator';
|
|
25
34
|
export type { UsePanelCoordinatorReturn } from './hooks/usePanelCoordinator';
|
|
26
35
|
export { reducer, initialState } from './coordinator/coordinator';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelAction, PanelId, PanelState, TriggerContext } from '../coordinator/types';
|
|
2
|
+
export interface AssertReport {
|
|
3
|
+
valid?: boolean;
|
|
4
|
+
mount?: 'present' | 'absent';
|
|
5
|
+
chrome?: 'present' | 'absent';
|
|
6
|
+
frozen?: 'cleaned' | 'lingering';
|
|
7
|
+
orphans?: string[];
|
|
8
|
+
branch?: string;
|
|
9
|
+
timestamp?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TransitionToPanelArgs {
|
|
12
|
+
panelId: PanelId;
|
|
13
|
+
trigger: TriggerContext;
|
|
14
|
+
state: PanelState;
|
|
15
|
+
dispatch: (action: PanelAction) => void;
|
|
16
|
+
mountEl: HTMLElement | null;
|
|
17
|
+
chromeEl: HTMLElement | null;
|
|
18
|
+
reducedMotion: boolean;
|
|
19
|
+
onAssert?: (report: AssertReport) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function transitionToPanel(args: TransitionToPanelArgs): void;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
import { PanelShellProps } from '../PanelHost';
|
|
2
|
-
export
|
|
2
|
+
export interface SettingsShellProps extends PanelShellProps {
|
|
3
|
+
/** Span of the source card (1|2|3). Plumbed by V2FeedbackSurface HOF. */
|
|
4
|
+
cardSpan?: 1 | 2 | 3;
|
|
5
|
+
/** Visible label on the clone card. Defaults to 'Metric'. */
|
|
6
|
+
cardLabel?: string;
|
|
7
|
+
/** Visible value on the clone card. Defaults to '—'. */
|
|
8
|
+
cardValue?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function SettingsShell({ isOpen, cardSpan, cardLabel, cardValue, }: SettingsShellProps): import("react/jsx-runtime").JSX.Element;
|