@marketrix.ai/widget 4.0.114 → 4.0.115
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.
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* `LAYER_TOKENS` is the z-index ladder (screen-edge glow < panel < dialog < toast), based just above the
|
|
10
10
|
* 2^31-ish ceiling most host pages use so the widget sits over everything without the values overflowing a
|
|
11
|
-
* 32-bit int.
|
|
11
|
+
* 32-bit int. `showHighlight`/`showPopup` are a separate, much higher pair near the int32 ceiling: Show
|
|
12
|
+
* mode's coaching overlay (`ShowModeService`) mounts to the HOST page, outside the shadow root, to point at
|
|
13
|
+
* the widget's OWN chrome — it must outrank every value in this ladder by a wide margin, not sit one step
|
|
14
|
+
* above `toast`.
|
|
12
15
|
*/
|
|
13
16
|
import type { CSSProperties } from 'react';
|
|
14
17
|
export type RadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'pill';
|
|
@@ -33,6 +36,8 @@ export declare const LAYER_TOKENS: {
|
|
|
33
36
|
panel: number;
|
|
34
37
|
dialog: number;
|
|
35
38
|
toast: number;
|
|
39
|
+
showHighlight: number;
|
|
40
|
+
showPopup: number;
|
|
36
41
|
};
|
|
37
42
|
export declare const notificationToneStyles: Record<NotificationTone, {
|
|
38
43
|
background: string;
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
* highlight is sized and placed over its element, so the first paint and every reposition run through it;
|
|
18
18
|
* placement takes the first of right/left/above/below that fits then clamps, its 120px height an assumption,
|
|
19
19
|
* and the watchdog tests `document.body.contains` first, covering removal as well as occlusion.
|
|
20
|
+
* `ACCENT_COLOR`/`TEXT_COLOR` are raw literals rather than design-system tokens: the highlight and popup
|
|
21
|
+
* mount to `document.body` on the HOST page, outside the shadow root, so `index.css`'s `:host`-scoped
|
|
22
|
+
* CSS custom properties never reach them.
|
|
20
23
|
*/
|
|
21
24
|
interface ShowModeOptions {
|
|
22
25
|
element: HTMLElement;
|