@8wave/ai-elements 0.121.0-beta.51 → 0.121.0-beta.52

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.
@@ -32,6 +32,12 @@ type __VLS_Props = {
32
32
  * (Agent Studio's assistant) keeps the chat in step with it.
33
33
  */
34
34
  theme?: 'light' | 'dark';
35
+ /**
36
+ * While the page has a modal dialog open, the chat moves into it
37
+ * and stays usable, where the rest of the page is inert.
38
+ * Boolean or attribute string ("true"/"false").
39
+ */
40
+ followPageDialogs?: boolean | string;
35
41
  };
36
42
  declare var __VLS_74: {}, __VLS_77: {}, __VLS_95: string, __VLS_96: {};
37
43
  type __VLS_Slots = {} & {
@@ -65,6 +71,7 @@ declare const __VLS_base: DefineComponent<__VLS_Props, {
65
71
  forwardedSlots: string;
66
72
  cookieName: string;
67
73
  displayMode: "widget" | "fullscreen" | "panel";
74
+ followPageDialogs: boolean | string;
68
75
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
69
76
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
70
77
  declare const _default: typeof __VLS_export;
@@ -17,3 +17,21 @@ export declare function usePageModalStop(modal: ShallowRef<HTMLDialogElement | n
17
17
  stopLabel: () => string;
18
18
  onStop: () => void;
19
19
  }): void;
20
+ /** The attribute of the element that keeps the widget's place in the page while it is in a dialog. */
21
+ export declare const DOCK_PLACEHOLDER_ATTRIBUTE = "data-agent-studio-placeholder";
22
+ /**
23
+ * The chat inside the page's modal dialog (spec `page-tools-improvements.md`,
24
+ * M11). A modal makes everything outside it inert, the widget too: while
25
+ * `enabled`, the widget moves into the dialog on top, fixed where it was on
26
+ * screen, over a placeholder that keeps its place in the page, and goes back
27
+ * when the dialog closes, fades out or leaves the page, or when its place goes
28
+ * out of sight (a panel the user closed). A browser without `moveBefore` keeps
29
+ * the widget where it is: a plain move would take it out of the page, and its
30
+ * state with it.
31
+ *
32
+ * Returns whether the widget is in the dialog and takes clicks there, which is
33
+ * checked on the first frame and again on every change the dock sees: until
34
+ * then, and wherever it does not, the card in the top layer and the stop in
35
+ * the page's dialog stay on.
36
+ */
37
+ export declare function usePageModalDock(host: HTMLElement | null, enabled: MaybeRefOrGetter<boolean>): ShallowRef<boolean>;
@@ -28,6 +28,7 @@ export declare const EmbeddedChatWidgetCe: VueElementConstructor<{
28
28
  displayMode?: "widget" | "fullscreen" | "panel";
29
29
  systemTheme?: "light" | "dark";
30
30
  theme?: "light" | "dark";
31
+ followPageDialogs?: boolean | string;
31
32
  }>;
32
33
  declare module 'vue' {
33
34
  interface GlobalComponents {
@@ -116,6 +117,8 @@ export interface EmbeddedChatWidgetElement extends HTMLElement {
116
117
  displayMode?: 'widget' | 'fullscreen' | 'panel';
117
118
  /** The color scheme, over the agent's own setting too (`systemTheme` applies only to an agent set to automatic). */
118
119
  theme?: 'light' | 'dark';
120
+ /** While the page has a modal dialog open, the chat moves into it and stays usable (spec `page-tools-improvements.md`, M11). */
121
+ followPageDialogs?: boolean;
119
122
  forwardedSlots?: string;
120
123
  customCss?: string;
121
124
  sendMessage(text: string): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.51",
4
+ "version": "0.121.0-beta.52",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",