@8wave/ai-elements 0.118.0 → 0.119.0-beta.8
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/_chunks/{PkStreamingMarkdown--CcBvs19.js → PkStreamingMarkdown-Bry3y6Ru.js} +789 -780
- package/dist/_chunks/PkStreamingMarkdown-Bry3y6Ru.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-BVGN7hV2.js → PkToolShowArtifact-CfJLe8vD.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BVGN7hV2.js.map → PkToolShowArtifact-CfJLe8vD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Blrwqpl0.js → PkToolShowContactForm-CQQ6p4bJ.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-Blrwqpl0.js.map → PkToolShowContactForm-CQQ6p4bJ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BpGHaN6x.js → PkToolShowForm-CGAc1O6K.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-BpGHaN6x.js.map → PkToolShowForm-CGAc1O6K.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-8c9RvGV1.js → PkToolShowSources-BJ-XFrLD.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-8c9RvGV1.js.map → PkToolShowSources-BJ-XFrLD.js.map} +1 -1
- package/dist/_chunks/{markdown-c59ir6tw.js → markdown-DpoAzJSk.js} +64 -61
- package/dist/_chunks/markdown-DpoAzJSk.js.map +1 -0
- package/dist/ai-elements.es.js +1944 -1865
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Document-B-oyVh7v.js → Document-CV-RJu_p.js} +64 -61
- package/dist-vue/_chunks/Document-CV-RJu_p.js.map +1 -0
- package/dist-vue/_chunks/PkAvatar-BTqu8tn9.js +44 -0
- package/dist-vue/_chunks/PkAvatar-BTqu8tn9.js.map +1 -0
- package/dist-vue/_chunks/PkChatbot-CcNC2r_E.js +276 -0
- package/dist-vue/_chunks/PkChatbot-CcNC2r_E.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-D2dhInfG.js → PkChatbotEmptyState-Toj4CqXV.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotEmptyState-D2dhInfG.js.map → PkChatbotEmptyState-Toj4CqXV.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CQdxFbBR.js → PkChatbotInput-BfZqRpQ2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-CQdxFbBR.js.map → PkChatbotInput-BfZqRpQ2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-coscJcpy.js → PkChatbotMessages-B6qYZsMZ.js} +283 -283
- package/dist-vue/_chunks/{PkChatbotMessages-coscJcpy.js.map → PkChatbotMessages-B6qYZsMZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-DnqFluQZ.js → PkChatbotStepPayload-D0eoPBQ8.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-DnqFluQZ.js.map → PkChatbotStepPayload-D0eoPBQ8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BMslY_BG.js → PkChatbotStepToolDetail-CMx4cw1D.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-BMslY_BG.js.map → PkChatbotStepToolDetail-CMx4cw1D.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-7FT6Ju6_.js → PkChatbotSteps-DeZQhGRU.js} +38 -38
- package/dist-vue/_chunks/{PkChatbotSteps-7FT6Ju6_.js.map → PkChatbotSteps-DeZQhGRU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-Cko-Cw6c.js → PkChatbotViewChat--Q90F_Kg.js} +7 -7
- package/dist-vue/_chunks/PkChatbotViewChat--Q90F_Kg.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewFiles-gqCumfod.js → PkChatbotViewFiles-CA20TBFY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-gqCumfod.js.map → PkChatbotViewFiles-CA20TBFY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-B57VRVaO.js → PkChatbotViewProfile-CyzRxE3D.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-B57VRVaO.js.map → PkChatbotViewProfile-CyzRxE3D.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BtyWXY2k.js → PkStreamingMarkdown-C55Fi0Pd.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-BtyWXY2k.js.map → PkStreamingMarkdown-C55Fi0Pd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Ritx54_X.js → PkToolShowArtifact-z1qTnFkA.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Ritx54_X.js.map → PkToolShowArtifact-z1qTnFkA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-D30IsZGy.js → PkToolShowContactForm-BjNpnv6y.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-D30IsZGy.js.map → PkToolShowContactForm-BjNpnv6y.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-PEozSAqU.js → PkToolShowDiagram-CqkabP0e.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-PEozSAqU.js.map → PkToolShowDiagram-CqkabP0e.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-ZmdM9J9x.js → PkToolShowForm-CZFWZub7.js} +5 -5
- package/dist-vue/_chunks/{PkToolShowForm-ZmdM9J9x.js.map → PkToolShowForm-CZFWZub7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dkjf7Tw_.js → PkToolShowImageGallery-CkfXP_lD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dkjf7Tw_.js.map → PkToolShowImageGallery-CkfXP_lD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CsHYM8vl.js → PkToolShowProductList-De-PtmD-.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CsHYM8vl.js.map → PkToolShowProductList-De-PtmD-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CKZkcPLA.js → PkToolShowSources-CSN7S0zo.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-CKZkcPLA.js.map → PkToolShowSources-CSN7S0zo.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CKm1fVQs.js → PkToolShowVideo-B_Q93E2y.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CKm1fVQs.js.map → PkToolShowVideo-B_Q93E2y.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DLEC9cuh.js → PkToolShowWebPages-D3CdjJUc.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DLEC9cuh.js.map → PkToolShowWebPages-D3CdjJUc.js.map} +1 -1
- package/dist-vue/_chunks/{utils-fxHiCnzf.js → utils-CwIMEuAv.js} +41 -32
- package/dist-vue/_chunks/utils-CwIMEuAv.js.map +1 -0
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +1 -4
- package/dist-vue/composables.js +188 -115
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4005 -3980
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -0
- package/dist-vue/packages/components/src/chat/PkAvatar.d.ts +7 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +10 -0
- package/dist-vue/packages/models/src/schema/Document.d.ts +25 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/Platform.d.ts +72 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkStreamingMarkdown--CcBvs19.js.map +0 -1
- package/dist/_chunks/markdown-c59ir6tw.js.map +0 -1
- package/dist-vue/_chunks/Document-B-oyVh7v.js.map +0 -1
- package/dist-vue/_chunks/PkAvatar-ZgCsoO-p.js +0 -42
- package/dist-vue/_chunks/PkAvatar-ZgCsoO-p.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-Cm45hwYw.js +0 -275
- package/dist-vue/_chunks/PkChatbot-Cm45hwYw.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-Cko-Cw6c.js.map +0 -1
- package/dist-vue/_chunks/utils-fxHiCnzf.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -544,6 +544,8 @@ var e = {
|
|
|
544
544
|
showVideo: "Loading video…",
|
|
545
545
|
showSuggestedReply: "Suggest a reply…",
|
|
546
546
|
disconnectOAuthConnection: "Disconnecting…",
|
|
547
|
+
requestAccountLink: "Sending the sign-in link…",
|
|
548
|
+
unlinkAccount: "Unlinking the number…",
|
|
547
549
|
webSearch: "Searching the web…",
|
|
548
550
|
tool: "Running a tool…",
|
|
549
551
|
reasoning: "Reasoning…",
|
|
@@ -1155,6 +1157,8 @@ var e = {
|
|
|
1155
1157
|
showVideo: "Caricamento video…",
|
|
1156
1158
|
showSuggestedReply: "Suggerisco una risposta…",
|
|
1157
1159
|
disconnectOAuthConnection: "Disconnessione in corso…",
|
|
1160
|
+
requestAccountLink: "Invio del link di accesso…",
|
|
1161
|
+
unlinkAccount: "Scollegamento del numero…",
|
|
1158
1162
|
webSearch: "Ricerca sul web…",
|
|
1159
1163
|
tool: "Esecuzione di un tool…",
|
|
1160
1164
|
reasoning: "Ragionamento…",
|
|
@@ -5,12 +5,19 @@ type __VLS_Props = {
|
|
|
5
5
|
modifiers?: string;
|
|
6
6
|
/** Shown when there is no image (or it is broken) and no name. */
|
|
7
7
|
fallbackIcon?: string;
|
|
8
|
+
/**
|
|
9
|
+
* A person is a circle; an organization or an agent is a tile, a
|
|
10
|
+
* rounded square with its own colors, which ignores `modifiers`
|
|
11
|
+
* (DESIGN.md, switcher menus).
|
|
12
|
+
*/
|
|
13
|
+
shape?: 'circle' | 'tile';
|
|
8
14
|
};
|
|
9
15
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
16
|
modifiers: string;
|
|
11
17
|
name: string;
|
|
12
18
|
fallbackIcon: string;
|
|
13
19
|
imgSrc: string | null;
|
|
20
|
+
shape: "circle" | "tile";
|
|
14
21
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
22
|
declare const _default: typeof __VLS_export;
|
|
16
23
|
export default _default;
|
|
@@ -64,6 +64,16 @@ export declare function getContrast(hexcolor?: string): 'black' | 'white';
|
|
|
64
64
|
* Falls back to WCAG auto-detection via `getContrast` when set to `'auto'` or `undefined`.
|
|
65
65
|
*/
|
|
66
66
|
export declare function resolveContrastColor(textColor: 'auto' | 'white' | 'black' | undefined, mainColor: string | undefined): 'black' | 'white';
|
|
67
|
+
/**
|
|
68
|
+
* The style of a chat root (PkChatbot, the widget's shell): the agent's color
|
|
69
|
+
* as the brand. Volver derives every role of the brand (graphic, readable,
|
|
70
|
+
* contrast, tinted surface) on any element with `.theme`, which both roots
|
|
71
|
+
* carry, so the focus ring, the primary buttons, the links and the checkboxes
|
|
72
|
+
* take the agent's color with the contrast each theme needs, instead of the
|
|
73
|
+
* platform's purple. The fields' focus takes the brand's graphic role in both
|
|
74
|
+
* themes, since the dark theme's accent is the platform's too.
|
|
75
|
+
*/
|
|
76
|
+
export declare function agentThemeStyle(mainColor: string | undefined, contrastColor: 'black' | 'white'): Record<string, string> | undefined;
|
|
67
77
|
/**
|
|
68
78
|
* Formats a duration in milliseconds using the i18n `seconds` number format
|
|
69
79
|
* (e.g. "12,4 secondi" / "12.4 seconds"). Returns undefined for durations
|
|
@@ -58,6 +58,30 @@ export interface SearchIndexFacts {
|
|
|
58
58
|
* written after it belong to a newer sync, still to come.
|
|
59
59
|
*/
|
|
60
60
|
export declare function searchIndexStatusOf(facts: SearchIndexFacts): SearchIndexStatus;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the record of a sync that gave up still speaks for the chunks of a
|
|
63
|
+
* document out of the index: only when none of them is newer than it. The
|
|
64
|
+
* documents list asks it of the rows it filters by state, so that the filter
|
|
65
|
+
* reads the record the way the badge does.
|
|
66
|
+
*/
|
|
67
|
+
export declare function searchIndexGaveUp(searchIndexFailedAt: string | null | undefined, newestChunkAt: number | null): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* What the badge of a row in the documents list reads, which is what the list
|
|
70
|
+
* filters by (`filter[status]`): the conversion until it has succeeded, then
|
|
71
|
+
* whether the search finds the document. Two words would mean different
|
|
72
|
+
* things in the two stages, so the search values are named after their label:
|
|
73
|
+
* its `pending` reads "Preparing", its `failed` "Not indexed".
|
|
74
|
+
*/
|
|
75
|
+
export declare enum DocumentListStatus {
|
|
76
|
+
Pending = "pending",
|
|
77
|
+
Processing = "processing",
|
|
78
|
+
Failed = "failed",
|
|
79
|
+
Preparing = "preparing",
|
|
80
|
+
Indexed = "indexed",
|
|
81
|
+
NotIndexed = "not-indexed",
|
|
82
|
+
Unavailable = "unavailable",
|
|
83
|
+
Empty = "empty"
|
|
84
|
+
}
|
|
61
85
|
/**
|
|
62
86
|
* Conversion options for document processing
|
|
63
87
|
* Used when creating or reprocessing documents
|
|
@@ -1994,6 +2018,7 @@ export declare const DocumentQuerystringSchema: z.ZodObject<{
|
|
|
1994
2018
|
'filter[hasRedundantChunks]': z.ZodOptional<z.ZodString>;
|
|
1995
2019
|
'filter[refreshInterval]': z.ZodOptional<z.ZodString>;
|
|
1996
2020
|
'filter[sourceProvider]': z.ZodOptional<z.ZodString>;
|
|
2021
|
+
'filter[status]': z.ZodOptional<z.ZodEnum<typeof DocumentListStatus>>;
|
|
1997
2022
|
ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1998
2023
|
"filter[fullText]": z.ZodOptional<z.ZodString>;
|
|
1999
2024
|
'filter[deleted]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -14,6 +14,8 @@ export declare const NotificationType: {
|
|
|
14
14
|
readonly WebSourceRemovalHeld: "web_source_removal_held";
|
|
15
15
|
/** A platform administrator ended one of the user's integration sign-ins. */
|
|
16
16
|
readonly McpConnectionRevoked: "mcp_connection_revoked";
|
|
17
|
+
/** A messaging number (WhatsApp) now writes as the user's account. */
|
|
18
|
+
readonly PlatformAccountLinked: "platform_account_linked";
|
|
17
19
|
readonly ChatWarning: "chat_warning";
|
|
18
20
|
readonly ChatBlocked: "chat_blocked";
|
|
19
21
|
/** An agent woke up in the user's chat and has something new to say. */
|
|
@@ -293,3 +293,75 @@ export interface PlatformConnectionMetadata {
|
|
|
293
293
|
teamsManifest?: TeamsManifestMetadata;
|
|
294
294
|
[key: string]: unknown;
|
|
295
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* The messaging platforms whose senders link their web account from the chat
|
|
298
|
+
* (docs/specs/platform-chat-otp-verification.md). Teams is not one of them:
|
|
299
|
+
* its sender arrives already verified by Microsoft.
|
|
300
|
+
*/
|
|
301
|
+
export declare const LinkablePlatformSchema: z.ZodEnum<{
|
|
302
|
+
whatsapp: "whatsapp";
|
|
303
|
+
}>;
|
|
304
|
+
export type LinkablePlatform = z.infer<typeof LinkablePlatformSchema>;
|
|
305
|
+
/**
|
|
306
|
+
* Whether an issuer of `user_external_identity` is a messaging platform's:
|
|
307
|
+
* `whatsapp` for a number linked from the chat, `teams:<tenant>` for a
|
|
308
|
+
* verified Teams sender. The external sign-in keys its identities in the same
|
|
309
|
+
* table, so a token with such an `iss` would sign in as the account a number
|
|
310
|
+
* or a Teams user is linked to: it must refuse them.
|
|
311
|
+
*/
|
|
312
|
+
export declare function isPlatformIdentityIssuer(issuer: string): boolean;
|
|
313
|
+
/** Where an account link stands for the signed-in user who opened it. */
|
|
314
|
+
export declare const PlatformAccountLinkStatus: {
|
|
315
|
+
/** The number is free, and the account has no other one on that platform. */
|
|
316
|
+
readonly Available: "available";
|
|
317
|
+
/** Already this account's: confirming changes nothing. */
|
|
318
|
+
readonly LinkedHere: "linked_here";
|
|
319
|
+
/** Another account's, which has to unlink it first. */
|
|
320
|
+
readonly LinkedElsewhere: "linked_elsewhere";
|
|
321
|
+
/** The account has another number on that platform: confirming replaces it. */
|
|
322
|
+
readonly ReplacesOther: "replaces_other";
|
|
323
|
+
readonly Expired: "expired";
|
|
324
|
+
/** Tampered with, issued by another installation, or already used. */
|
|
325
|
+
readonly Invalid: "invalid";
|
|
326
|
+
};
|
|
327
|
+
export type PlatformAccountLinkStatus = (typeof PlatformAccountLinkStatus)[keyof typeof PlatformAccountLinkStatus];
|
|
328
|
+
/** What the page shows before the user confirms an account link. */
|
|
329
|
+
export declare const PlatformAccountLinkPreviewSchema: z.ZodObject<{
|
|
330
|
+
status: z.ZodEnum<{
|
|
331
|
+
/** The number is free, and the account has no other one on that platform. */
|
|
332
|
+
readonly Available: "available";
|
|
333
|
+
/** Already this account's: confirming changes nothing. */
|
|
334
|
+
readonly LinkedHere: "linked_here";
|
|
335
|
+
/** Another account's, which has to unlink it first. */
|
|
336
|
+
readonly LinkedElsewhere: "linked_elsewhere";
|
|
337
|
+
/** The account has another number on that platform: confirming replaces it. */
|
|
338
|
+
readonly ReplacesOther: "replaces_other";
|
|
339
|
+
readonly Expired: "expired";
|
|
340
|
+
/** Tampered with, issued by another installation, or already used. */
|
|
341
|
+
readonly Invalid: "invalid";
|
|
342
|
+
}>;
|
|
343
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
whatsapp: "whatsapp";
|
|
345
|
+
}>>;
|
|
346
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
347
|
+
currentPhoneNumber: z.ZodOptional<z.ZodString>;
|
|
348
|
+
issuedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
349
|
+
expiresAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export type PlatformAccountLinkPreview = z.infer<typeof PlatformAccountLinkPreviewSchema>;
|
|
352
|
+
/** The user's confirmation of an account link. */
|
|
353
|
+
export declare const PlatformAccountLinkConfirmSchema: z.ZodObject<{
|
|
354
|
+
token: z.ZodString;
|
|
355
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
export type PlatformAccountLinkConfirm = z.infer<typeof PlatformAccountLinkConfirmSchema>;
|
|
359
|
+
/** A messaging number linked to the user's account, as the profile lists it. */
|
|
360
|
+
export declare const PlatformIdentitySchema: z.ZodObject<{
|
|
361
|
+
platform: z.ZodEnum<{
|
|
362
|
+
whatsapp: "whatsapp";
|
|
363
|
+
}>;
|
|
364
|
+
phoneNumber: z.ZodString;
|
|
365
|
+
linkedAt: z.ZodCoercedDate<unknown>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export type PlatformIdentity = z.infer<typeof PlatformIdentitySchema>;
|