@mt-gloss/ui 0.1.146 → 0.1.148
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-PC2MRjv_.js → COMMITS-eopq0SRK.js} +79 -78
- package/composites-panels.js +453 -433
- package/index.js +2 -2
- package/lib/composites/panels/shells/CatalogReplaceShell.d.ts +9 -1
- package/lib/composites/panels/shells/SettingsShell.d.ts +16 -1
- package/lib/primitives/dashboard/SettingsTabStrip/types.d.ts +1 -1
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as U, c as j, g as Ne, u as Be } from "./COMMITS-
|
|
2
|
-
import { H as ir, N as lr, C as or, f as cr, P as dr, l as ur, S as mr, b as pr, k as gr, j as hr, i as fr, p as br, a as vr, r as yr, e as wr, h as _r, d as Cr } from "./COMMITS-
|
|
1
|
+
import { s as U, c as j, g as Ne, u as Be } from "./COMMITS-eopq0SRK.js";
|
|
2
|
+
import { H as ir, N as lr, C as or, f as cr, P as dr, l as ur, S as mr, b as pr, k as gr, j as hr, i as fr, p as br, a as vr, r as yr, e as wr, h as _r, d as Cr } from "./COMMITS-eopq0SRK.js";
|
|
3
3
|
import { u as ze, C as Ge } from "./Expandable-D-GbTjIp.js";
|
|
4
4
|
import { Q as kr, V as Sr, T as Dr, U as xr, a5 as Tr, b8 as Rr, aB as Mr, aj as Pr, $ as Ar, ap as Er, N as Fr, aa as Ir, P as Lr, B as Or, a as $r, A as Br, K as zr, bi as Gr, J as Hr, L as Wr, E as Kr, D as Vr, H as jr, F as Ur, bq as Yr, b as qr, c as Qr, O as Jr, q as Xr, af as Zr, aP as es, A as ts, K as as, J as ns, L as rs, E as ss, D as is, H as ls, F as os, b1 as cs, b4 as ds, b3 as us, b2 as ms, b5 as ps, aE as gs, a7 as hs, a6 as fs, as as bs, m as vs, o as ys, aH as ws, ad as _s, ba as Cs, ab as Ns, _ as ks, bA as Ss, bz as Ds, bB as xs, ar as Ts, aS as Rs, bc as Ms, bo as Ps, p as As, ao as Es, bu as Fs, bl as Is, a2 as Ls, at as Os, a4 as $s, bt as Bs, bJ as zs, G as Gs, f as Hs, ac as Ws, bC as Ks, aV as Vs, t as js, x as Us, I as Ys, i as qs, ay as Qs, bF as Js, M as Xs, y as Zs, W as ei, Z as ti, X as ai, Y as ni, au as ri, bH as si, bE as ii, aq as li, w as oi, aU as ci, al as di, aM as ui, ai as mi, an as pi, aw as gi, aT as hi, ae as fi, av as bi, e as vi, R as yi, l as wi, r as _i, aJ as Ci, br as Ni, bs as ki, ak as Si, ag as Di, j as xi, z as Ti, b9 as Ri, ah as Mi, bG as Pi, be as Ai, bh as Ei, bf as Fi, bg as Ii, k as Li, bb as Oi, S as $i, bj as Bi, ax as zi, bd as Gi, bI as Hi, am as Wi, v as Ki, bD as Vi, n as ji, h as Ui, s as Yi, a0 as qi, a1 as Qi, a9 as Ji, bp as Xi, bw as Zi, aC as el, aD as tl, a8 as al, aQ as nl, aR as rl, aF as sl, aG as il, aI as ll, aX as ol, aY as cl, by as dl, bx as ul, a_ as ml, a$ as pl, az as gl, aA as hl, b7 as fl, b6 as bl, b0 as vl, aN as yl, aO as wl, aZ as _l, aK as Cl, aL as Nl, d as kl, bv as Sl, bk as Dl, bm as xl, bn as Tl, aW as Rl, a3 as Ml, bK as Pl, g as Al } from "./Expandable-D-GbTjIp.js";
|
|
5
5
|
import { jsxs as f, jsx as n, Fragment as I } from "react/jsx-runtime";
|
|
@@ -14,5 +14,13 @@ export interface CatalogReplaceShellProps extends PanelShellProps {
|
|
|
14
14
|
footerSlot?: ReactNode;
|
|
15
15
|
/** PHASE 17.1 D-08 — forwarded to inner CatalogTileGrid. */
|
|
16
16
|
renderTile?: (tile: CatalogTile) => ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Item 3 (2026-06-02) — invoked with the chosen tile id when the user commits
|
|
19
|
+
* the replacement, BEFORE the panel closes. Mirrors CatalogAddShell.onAdd.
|
|
20
|
+
* Previously the shell only dispatched CLOSE_PANEL and dropped the selection,
|
|
21
|
+
* so "Replace metric" never actually swapped the card. V2FeedbackSurface
|
|
22
|
+
* wires this to the grid's replace flow (handleCompleteReplace).
|
|
23
|
+
*/
|
|
24
|
+
onReplace?: (tileId: string) => void;
|
|
17
25
|
}
|
|
18
|
-
export declare function CatalogReplaceShell({ isOpen, replacingLabel, lenses, defaultLens, tilesByLens, renderTile, }: CatalogReplaceShellProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function CatalogReplaceShell({ isOpen, replacingLabel, lenses, defaultLens, tilesByLens, renderTile, onReplace, }: CatalogReplaceShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -72,5 +72,20 @@ export interface SettingsShellProps extends PanelShellProps {
|
|
|
72
72
|
* *registry-data* axis — different semantics (RESEARCH Finding 5).
|
|
73
73
|
*/
|
|
74
74
|
naturalSlots?: ReadonlyArray<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Item 2 (2026-06-02) — metric info shown in a dedicated "Info" tab (same tab
|
|
77
|
+
* strip as the setting dimensions), mirroring what the catalog displays. When
|
|
78
|
+
* provided, SettingsShell appends an 'info' tab to `dimensions` automatically,
|
|
79
|
+
* so even single-setting cards get the strip ([<setting> | Info]). Reptime
|
|
80
|
+
* builds this from getMetricInfo(metricTypeId).
|
|
81
|
+
*/
|
|
82
|
+
info?: SettingsInfo;
|
|
83
|
+
}
|
|
84
|
+
/** Item 2 (2026-06-02) — structured metric info for the Settings "Info" tab. */
|
|
85
|
+
export interface SettingsInfo {
|
|
86
|
+
title?: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
category?: string;
|
|
89
|
+
example?: string;
|
|
75
90
|
}
|
|
76
|
-
export declare function SettingsShell({ isOpen, cardSpan, cardLabel, cardValue, previewSlot, dimensions, initialTab, initialValues, pinnedTimeframe, naturalSlots, }: SettingsShellProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export declare function SettingsShell({ isOpen, cardSpan, cardLabel, cardValue, previewSlot, dimensions, initialTab, initialValues, pinnedTimeframe, naturalSlots, info, }: SettingsShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SettingsDimension = 'timeframe' | 'threshold' | 'slots' | 'color';
|
|
1
|
+
export type SettingsDimension = 'timeframe' | 'threshold' | 'slots' | 'color' | 'info';
|
|
2
2
|
export interface SettingsTabStripProps {
|
|
3
3
|
dimensions: ReadonlyArray<SettingsDimension>;
|
|
4
4
|
activeTab: SettingsDimension;
|