@mt-gloss/ui 0.1.113 → 0.1.114
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-DG0Q_9DU.js → COMMITS-Bzrd0rgy.js} +49 -45
- package/composites-panels.js +512 -444
- package/index.js +2 -2
- package/lib/composites/panels/coordinator/settingsBufferSchemas.d.ts +7 -2
- package/lib/composites/panels/shells/SettingsShell.d.ts +4 -0
- package/lib/composites/panels/shells/settings/ColorControls.d.ts +5 -1
- package/lib/composites/panels/shells/settings/ThresholdControls.d.ts +5 -1
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import * as B from "react";
|
|
|
5
5
|
import F, { useRef as P, useEffect as A, useState as I, useCallback as N, useId as Je, forwardRef as et, useMemo as re, useLayoutEffect as Ie, createContext as tt, useContext as at } from "react";
|
|
6
6
|
import { motion as G, useMotionValue as nt, AnimatePresence as rt, useDragControls as st } from "framer-motion";
|
|
7
7
|
import { createPortal as Ee } from "react-dom";
|
|
8
|
-
import { u as it } from "./COMMITS-
|
|
9
|
-
import { C as jo, c as Uo, b as Yo, P as Zo, S as qo, e as Qo, i as Xo, r as Jo, a as el, d as tl } from "./COMMITS-
|
|
8
|
+
import { u as it } from "./COMMITS-Bzrd0rgy.js";
|
|
9
|
+
import { C as jo, c as Uo, b as Yo, P as Zo, S as qo, e as Qo, i as Xo, r as Jo, a as el, d as tl } from "./COMMITS-Bzrd0rgy.js";
|
|
10
10
|
import { B as ot, U as fe } from "./UIContext-Dm0GYHFT.js";
|
|
11
11
|
import { a as nl, u as rl } from "./UIContext-Dm0GYHFT.js";
|
|
12
12
|
import { B as il, D as ol, M as ll, O as cl, a as dl, S as ul, T as ml, e as pl } from "./MetricCard-Cyoxhb_S.js";
|
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
* Fallback values per spike §6.1.4:
|
|
7
7
|
* threshold → 80, timeframe → 30, accent → null, slots → []
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Phase 17.2 additions:
|
|
10
|
+
* thresholdEnabled → false, accentEnabled → false
|
|
11
|
+
*
|
|
12
|
+
* @param key buffer-value key (e.g. 'threshold', 'timeframe', 'accent',
|
|
13
|
+
* 'slots', 'thresholdEnabled', 'accentEnabled')
|
|
14
|
+
* @param value unknown — number (sliders), string (color hex), string[]
|
|
15
|
+
* (slots), or boolean (toggles)
|
|
11
16
|
* @returns normalized value (clamped, parsed, or passthrough)
|
|
12
17
|
*/
|
|
13
18
|
export declare function normalizeBufferValue(key: string, value: unknown): unknown;
|
|
@@ -53,6 +53,10 @@ export interface SettingsShellProps extends PanelShellProps {
|
|
|
53
53
|
accent: AccentSwatch;
|
|
54
54
|
/** GAP-03 (sprint 2026-05-15): persisted slot order. Max 3, empty array valid. */
|
|
55
55
|
slots: ReadonlyArray<string>;
|
|
56
|
+
/** Phase 17.2 Fix #2 — opt-in toggle for threshold overlay. Default false. */
|
|
57
|
+
thresholdEnabled: boolean;
|
|
58
|
+
/** Phase 17.2 Fix #2 — opt-in toggle for accent override. Default false. */
|
|
59
|
+
accentEnabled: boolean;
|
|
56
60
|
}>;
|
|
57
61
|
}
|
|
58
62
|
export declare function SettingsShell({ isOpen, cardSpan, cardLabel, cardValue, previewSlot, dimensions, initialTab, initialValues, }: SettingsShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,10 @@ export type AccentSwatch = typeof SWATCHES[number];
|
|
|
4
4
|
export interface ColorControlsProps {
|
|
5
5
|
value: AccentSwatch | null;
|
|
6
6
|
onSelect: (hex: AccentSwatch) => void;
|
|
7
|
+
/** Phase 17.2 Fix #2 — opt-in toggle. Defaults false. */
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
/** Phase 17.2 Fix #2 — toggle dispatch (parent wires SET_BUFFER_VALUE 'accentEnabled'). */
|
|
10
|
+
onToggleEnabled?: (next: boolean) => void;
|
|
7
11
|
}
|
|
8
|
-
export declare function ColorControls({ value, onSelect }: ColorControlsProps): React.ReactElement;
|
|
12
|
+
export declare function ColorControls({ value, onSelect, enabled, onToggleEnabled, }: ColorControlsProps): React.ReactElement;
|
|
9
13
|
export {};
|
|
@@ -2,5 +2,9 @@ import { default as React } from 'react';
|
|
|
2
2
|
export interface ThresholdControlsProps {
|
|
3
3
|
value: number;
|
|
4
4
|
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
/** Phase 17.2 Fix #2 — opt-in toggle. Defaults false. */
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/** Phase 17.2 Fix #2 — toggle dispatch (parent wires SET_BUFFER_VALUE 'thresholdEnabled'). */
|
|
8
|
+
onToggleEnabled?: (next: boolean) => void;
|
|
5
9
|
}
|
|
6
|
-
export declare function ThresholdControls({ value, onChange }: ThresholdControlsProps): React.ReactElement;
|
|
10
|
+
export declare function ThresholdControls({ value, onChange, enabled, onToggleEnabled, }: ThresholdControlsProps): React.ReactElement;
|