@8wave/ai-elements 0.121.0-beta.1 → 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.
Files changed (30) hide show
  1. package/dist/ai-elements.es.js +963 -971
  2. package/dist/ai-elements.es.js.map +1 -1
  3. package/dist-vue/PkChatbot.js +1 -1
  4. package/dist-vue/PkChatbotInput.js +1 -1
  5. package/dist-vue/PkChatbotMessages.js +1 -1
  6. package/dist-vue/PkChatbotViewChat.js +1 -1
  7. package/dist-vue/_chunks/{PkChatbot-DlHWtWhL.js → PkChatbot-DsZ8mAbt.js} +2 -2
  8. package/dist-vue/_chunks/{PkChatbot-DlHWtWhL.js.map → PkChatbot-DsZ8mAbt.js.map} +1 -1
  9. package/dist-vue/_chunks/PkChatbotInput-BRhIG8HR.js +390 -0
  10. package/dist-vue/_chunks/PkChatbotInput-BRhIG8HR.js.map +1 -0
  11. package/dist-vue/_chunks/{PkChatbotMessages-DEasGGn_.js → PkChatbotMessages-WryjcyH7.js} +6 -2
  12. package/dist-vue/_chunks/PkChatbotMessages-WryjcyH7.js.map +1 -0
  13. package/dist-vue/_chunks/{PkChatbotViewChat-BEKVeEmo.js → PkChatbotViewChat-B1gbdvs1.js} +4 -7
  14. package/dist-vue/_chunks/PkChatbotViewChat-B1gbdvs1.js.map +1 -0
  15. package/dist-vue/composables.js +4 -4
  16. package/dist-vue/composables.js.map +1 -1
  17. package/dist-vue/index.js +4893 -4829
  18. package/dist-vue/index.js.map +1 -1
  19. package/dist-vue/locales.js +12 -2
  20. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +5 -2
  21. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +3 -4
  22. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +10 -0
  23. package/dist-vue/packages/components/src/table/PkTableSortable.d.ts +1 -1
  24. package/dist-vue/packages/composable/src/chatbot/useGreeting.d.ts +5 -3
  25. package/dist-vue/style.css +1 -1
  26. package/package.json +1 -1
  27. package/dist-vue/_chunks/PkChatbotInput-CQup254H.js +0 -399
  28. package/dist-vue/_chunks/PkChatbotInput-CQup254H.js.map +0 -1
  29. package/dist-vue/_chunks/PkChatbotMessages-DEasGGn_.js.map +0 -1
  30. package/dist-vue/_chunks/PkChatbotViewChat-BEKVeEmo.js.map +0 -1
@@ -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",
@@ -387,6 +388,9 @@ var e = {
387
388
  itemsPerPage: "Per page",
388
389
  totalPages: "of {total}",
389
390
  totalItemsCount: "Items: {total}",
391
+ sortAscending: "Ascending order",
392
+ sortDescending: "Descending order",
393
+ sortBy: "Sort by",
390
394
  selectedHint: "Selected",
391
395
  deselectAction: "Remove"
392
396
  },
@@ -455,6 +459,7 @@ var e = {
455
459
  workingGlow: "A light runs along the frame of the site while the agent works.",
456
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).",
457
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.",
458
463
  dismissableNotice: "It will be hidden after the first message.",
459
464
  privacyPolicyNotice: "At the foot of the contact form, in Markdown.",
460
465
  fileUploadEnabled: "Allow users to attach files to their messages.",
@@ -769,7 +774,6 @@ var e = {
769
774
  retryNow: "Riprova ora",
770
775
  feedback: "Voglio fare una segnalazione",
771
776
  download: "Scarica",
772
- dropFile: "Trascina il file qui",
773
777
  attachFile: "Allega un file",
774
778
  takePhoto: "Scatta una foto",
775
779
  talk: "Parla",
@@ -781,6 +785,7 @@ var e = {
781
785
  upvote: "Utile",
782
786
  downvote: "Non utile",
783
787
  scrollToBottom: "Torna in fondo",
788
+ dropFile: "Trascina il file qui",
784
789
  deleteMyConversations: "Cancella le mie conversazioni",
785
790
  manageProfile: "Gestisci il tuo profilo",
786
791
  signOut: "Esci",
@@ -978,6 +983,7 @@ var e = {
978
983
  maxMessageLength: "Lunghezza massima messaggio",
979
984
  customCss: "CSS personalizzato",
980
985
  initialMessage: "Messaggio iniziale",
986
+ greeting: "Saluto",
981
987
  messagePlaceholder: "Segnaposto",
982
988
  dismissableNotice: "Avviso",
983
989
  footer: "Footer",
@@ -1109,6 +1115,9 @@ var e = {
1109
1115
  itemsPerPage: "Per pagina",
1110
1116
  totalPages: "di {total}",
1111
1117
  totalItemsCount: "Elementi: {total}",
1118
+ sortAscending: "Ordine crescente",
1119
+ sortDescending: "Ordine decrescente",
1120
+ sortBy: "Ordina per",
1112
1121
  selectedHint: "Selezionato",
1113
1122
  deselectAction: "Rimuovi"
1114
1123
  },
@@ -1177,6 +1186,7 @@ var e = {
1177
1186
  workingGlow: "Una luce percorre la cornice del sito mentre l'agente lavora.",
1178
1187
  copilotPageCss: "Aggiunto alla pagina del sito mentre la chat è aperta accanto: sposta un'intestazione fissa con right: var(--chatbot-copilot-width).",
1179
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.",
1180
1190
  dismissableNotice: "Verrà nascosto dopo il primo messaggio.",
1181
1191
  privacyPolicyNotice: "In fondo al modulo di contatto, in Markdown.",
1182
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;
@@ -64,6 +64,16 @@ type __VLS_Props = {
64
64
  isDark?: boolean;
65
65
  /** Show a floating "back to bottom" button when the user scrolls up (fullscreen layout) */
66
66
  showScrollToBottom?: boolean;
67
+ /**
68
+ * The page around scrolls the conversation (the log pages), so the
69
+ * list does not scroll on its own. As a second scroller it scrolled
70
+ * by the few pixels the 40px touch area of the last reply's buttons
71
+ * stands out, and on a phone it caught the swipe meant for the page.
72
+ * Only for a conversation that is read, not followed: the back to
73
+ * bottom button and the spacer of a sent message still read the
74
+ * list's own scroll.
75
+ */
76
+ parentScrolls?: boolean;
67
77
  feedbackMessageId?: string;
68
78
  feedbackLoading?: boolean;
69
79
  feedbackSubmitted?: boolean;
@@ -17,7 +17,7 @@ declare const __VLS_export: <TableRow extends Record<string | number | symbol, a
17
17
  order: {
18
18
  type: PropType<"asc" | "desc">;
19
19
  default: string;
20
- validation: (order: string) => boolean;
20
+ validator: (order: string) => boolean;
21
21
  };
22
22
  page: {
23
23
  type: (NumberConstructor | StringConstructor)[];
@@ -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>;