@8wave/ai-elements 0.121.0-beta.2 → 0.121.0-beta.3

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.
@@ -47,7 +47,6 @@ var e = {
47
47
  retryNow: "Try again now",
48
48
  feedback: "I want to make a report",
49
49
  download: "Download",
50
- dropFile: "Drop file here",
51
50
  attachFile: "Attach a file",
52
51
  takePhoto: "Take a photo",
53
52
  talk: "Talk",
@@ -59,6 +58,7 @@ var e = {
59
58
  upvote: "Helpful",
60
59
  downvote: "Not helpful",
61
60
  scrollToBottom: "Back to bottom",
61
+ dropFile: "Drop file here",
62
62
  deleteMyConversations: "Delete my conversations",
63
63
  manageProfile: "Manage your profile",
64
64
  signOut: "Sign out",
@@ -256,6 +256,7 @@ var e = {
256
256
  maxMessageLength: "Max message length",
257
257
  customCss: "Custom CSS",
258
258
  initialMessage: "Initial message",
259
+ greeting: "Greeting",
259
260
  messagePlaceholder: "Placeholder",
260
261
  dismissableNotice: "Notice",
261
262
  footer: "Footer",
@@ -458,6 +459,7 @@ var e = {
458
459
  workingGlow: "A light runs along the frame of the site while the agent works.",
459
460
  copilotPageCss: "Added to your site's page while the chat is open beside it: move a fixed header aside with right: var(--chatbot-copilot-width).",
460
461
  customCss: "CSS injected into the widget shadow DOM. Allows styling the chat interface from the outside.",
462
+ greeting: "On the chat page, in large type above the message field until the user writes. Left empty, the suggested text shows. {'{'}name{'}'} becomes the user's name.",
461
463
  dismissableNotice: "It will be hidden after the first message.",
462
464
  privacyPolicyNotice: "At the foot of the contact form, in Markdown.",
463
465
  fileUploadEnabled: "Allow users to attach files to their messages.",
@@ -772,7 +774,6 @@ var e = {
772
774
  retryNow: "Riprova ora",
773
775
  feedback: "Voglio fare una segnalazione",
774
776
  download: "Scarica",
775
- dropFile: "Trascina il file qui",
776
777
  attachFile: "Allega un file",
777
778
  takePhoto: "Scatta una foto",
778
779
  talk: "Parla",
@@ -784,6 +785,7 @@ var e = {
784
785
  upvote: "Utile",
785
786
  downvote: "Non utile",
786
787
  scrollToBottom: "Torna in fondo",
788
+ dropFile: "Trascina il file qui",
787
789
  deleteMyConversations: "Cancella le mie conversazioni",
788
790
  manageProfile: "Gestisci il tuo profilo",
789
791
  signOut: "Esci",
@@ -981,6 +983,7 @@ var e = {
981
983
  maxMessageLength: "Lunghezza massima messaggio",
982
984
  customCss: "CSS personalizzato",
983
985
  initialMessage: "Messaggio iniziale",
986
+ greeting: "Saluto",
984
987
  messagePlaceholder: "Segnaposto",
985
988
  dismissableNotice: "Avviso",
986
989
  footer: "Footer",
@@ -1183,6 +1186,7 @@ var e = {
1183
1186
  workingGlow: "Una luce percorre la cornice del sito mentre l'agente lavora.",
1184
1187
  copilotPageCss: "Aggiunto alla pagina del sito mentre la chat è aperta accanto: sposta un'intestazione fissa con right: var(--chatbot-copilot-width).",
1185
1188
  customCss: "CSS iniettato nello shadow DOM del widget. Permette di personalizzare l'interfaccia della chat dall'esterno.",
1189
+ greeting: "Nella pagina della chat, in grande sopra il campo del messaggio finché l'utente non scrive. Se è vuoto si vede il testo suggerito. {'{'}name{'}'} diventa il nome dell'utente.",
1186
1190
  dismissableNotice: "Verrà nascosto dopo il primo messaggio.",
1187
1191
  privacyPolicyNotice: "In fondo al modulo di contatto, in Markdown.",
1188
1192
  fileUploadEnabled: "Permetti agli utenti di allegare file ai messaggi.",
@@ -29,6 +29,7 @@ type __VLS_ModelProps = {
29
29
  'name'?: string;
30
30
  'type'?: AgentType | undefined | string;
31
31
  'initialMessage'?: Record<string, string> | undefined;
32
+ 'greeting'?: Record<string, string>[] | undefined;
32
33
  'messagePlaceholder'?: Record<string, string> | undefined;
33
34
  'dismissableNotice'?: Record<string, string> | undefined;
34
35
  'footerMessage'?: Record<string, string> | undefined;
@@ -130,9 +131,9 @@ type __VLS_ModelProps = {
130
131
  } | undefined;
131
132
  };
132
133
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
133
- declare var __VLS_823: {};
134
+ declare var __VLS_836: {};
134
135
  type __VLS_Slots = {} & {
135
- default?: (props: typeof __VLS_823) => any;
136
+ default?: (props: typeof __VLS_836) => any;
136
137
  };
137
138
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
138
139
  "update:reasoning": (value: {
@@ -222,6 +223,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
222
223
  "update:name": (value: string) => any;
223
224
  "update:type": (value: string | undefined) => any;
224
225
  "update:initialMessage": (value: Record<string, string> | undefined) => any;
226
+ "update:greeting": (value: Record<string, string>[] | undefined) => any;
225
227
  "update:messagePlaceholder": (value: Record<string, string> | undefined) => any;
226
228
  "update:dismissableNotice": (value: Record<string, string> | undefined) => any;
227
229
  "update:footerMessage": (value: Record<string, string> | undefined) => any;
@@ -484,6 +486,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
484
486
  "onUpdate:name"?: ((value: string) => any) | undefined;
485
487
  "onUpdate:type"?: ((value: string | undefined) => any) | undefined;
486
488
  "onUpdate:initialMessage"?: ((value: Record<string, string> | undefined) => any) | undefined;
489
+ "onUpdate:greeting"?: ((value: Record<string, string>[] | undefined) => any) | undefined;
487
490
  "onUpdate:messagePlaceholder"?: ((value: Record<string, string> | undefined) => any) | undefined;
488
491
  "onUpdate:dismissableNotice"?: ((value: Record<string, string> | undefined) => any) | undefined;
489
492
  "onUpdate:footerMessage"?: ((value: Record<string, string> | undefined) => any) | undefined;
@@ -12,7 +12,6 @@ type __VLS_Props = {
12
12
  status?: 'submitted' | 'streaming' | 'ready' | 'error';
13
13
  maxMessageLength?: number;
14
14
  fileUpload?: AgentFileUpload;
15
- enableDragDrop?: boolean;
16
15
  attachmentLimitReached?: boolean;
17
16
  attachmentNotice?: string;
18
17
  /** Show the talk button: the agent has voice enabled. */
@@ -23,11 +22,11 @@ type __VLS_ModelProps = {
23
22
  'pendingAttachments'?: PendingAttachment[];
24
23
  };
25
24
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
- declare var __VLS_30: {}, __VLS_71: {};
25
+ declare var __VLS_25: {}, __VLS_66: {};
27
26
  type __VLS_Slots = {} & {
28
- prepend?: (props: typeof __VLS_30) => any;
27
+ prepend?: (props: typeof __VLS_25) => any;
29
28
  } & {
30
- 'additional-actions'?: (props: typeof __VLS_71) => any;
29
+ 'additional-actions'?: (props: typeof __VLS_66) => any;
31
30
  };
32
31
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
32
  "update:modelValue": (value: string | undefined) => any;
@@ -3,9 +3,11 @@ import { AgentInterface } from '../../../models/src';
3
3
  /**
4
4
  * Resolves the greeting shown in the fullscreen empty state.
5
5
  *
6
- * v1 behavior (docs/specs/public-chat-page.md): uses the first entry of the
7
- * `agentInterface.greeting` pool and supports only the `{name}` placeholder.
8
- * Fallback chain: `greeting[0]` → `initialMessage` → default welcome message.
6
+ * v1 behavior (docs/specs/released/public-chat-page.md): uses the first entry
7
+ * of the `agentInterface.greeting` pool and supports only the `{name}`
8
+ * placeholder. Without one, the default welcome message. The agent's
9
+ * `initialMessage` is not a fallback: it is written as a first reply, and at
10
+ * the size of a heading a long one filled a phone screen.
9
11
  * Pool rotation and `{timeGreeting}` are planned follow-ups.
10
12
  */
11
13
  export declare function useGreeting(agentInterface: MaybeRefOrGetter<AgentInterface | undefined>, userName: MaybeRefOrGetter<string | undefined>): ComputedRef<string>;