@getsoren/design-system 4.70.0 → 4.71.1
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/dist/main.cjs +73 -73
- package/dist/main.js +4209 -4113
- package/dist/src/components/DataDisplay/AiAssistant/AiAssistant.d.ts +1 -0
- package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantSpotlight.d.ts +12 -0
- package/dist/src/components/DataDisplay/AiAssistant/types.d.ts +10 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ declare const AiAssistant: {
|
|
|
11
11
|
Header: ({ title, subtitle, onClose, icon }: import('./types').AiAssistantHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
Nudge: ({ open, title, onClose, content, children, activeStep, onStepChange, labels, dataTestId, }: import('./types').AiAssistantNudgeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
13
|
Panel: ({ open, isBusy, children, dataTestId }: import('./types').AiAssistantPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
Spotlight: ({ anchor, blocking, onWindowClick, dataTestId, }: import('./types').AiAssistantSpotlightProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
15
|
ThinkingOrb: ({ size }: import('./types').AiAssistantThinkingOrbProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
16
|
};
|
|
16
17
|
export default AiAssistant;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AiAssistantSpotlightProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* The assistant's visual language for POINTING at things (host apps use it for
|
|
4
|
+
* contextual nudges and guided tours): dims the whole screen except a window around
|
|
5
|
+
* `anchor`, crowned by the "magic AI" shine — a comet orbiting a constant luminous
|
|
6
|
+
* ring — and a breathing aura, all in the orb's brand orange. Non-blocking by default
|
|
7
|
+
* (pointer-events none, the host app stays fully usable); `blocking` adds a
|
|
8
|
+
* full-screen click shield for guided walks. Purely presentational: consumers own
|
|
9
|
+
* anchor resolution, auto-scroll and interaction semantics.
|
|
10
|
+
*/
|
|
11
|
+
declare const AiAssistantSpotlight: ({ anchor, blocking, onWindowClick, dataTestId, }: AiAssistantSpotlightProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AiAssistantSpotlight;
|
|
@@ -33,6 +33,16 @@ export interface AiAssistantNudgeProps {
|
|
|
33
33
|
/** Test hook on the bubble ("assistantNudge"); the close and next buttons append "Close" / "Next" */
|
|
34
34
|
dataTestId?: string;
|
|
35
35
|
}
|
|
36
|
+
export interface AiAssistantSpotlightProps {
|
|
37
|
+
/** Element the spotlight follows while mounted (rect re-read on resize/scroll/tick) */
|
|
38
|
+
anchor: HTMLElement;
|
|
39
|
+
/** Shield the whole app: every click is swallowed, the lit window is the only click target */
|
|
40
|
+
blocking?: boolean;
|
|
41
|
+
/** Blocking mode only: the user clicked the lit window */
|
|
42
|
+
onWindowClick?: () => void;
|
|
43
|
+
/** Test hook on the lit window ("assistantSpotlight"); the blocking shield appends "Overlay" */
|
|
44
|
+
dataTestId?: string;
|
|
45
|
+
}
|
|
36
46
|
export interface AiAssistantPanelProps {
|
|
37
47
|
/** Panel visibility — grows out of the Fab when opening, unmounted when closed */
|
|
38
48
|
open: boolean;
|