@alxxsck/ai-assistant 2.22.3 → 2.24.0
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/README.md +50 -12
- package/dist/App.d.ts +5 -0
- package/dist/{Avatar-QuPBAhUu.js → Avatar-C6dvOio6.js} +1 -1
- package/dist/ChatWidgetContent-BYZ7Qq06.js +8059 -0
- package/dist/api/chat-attachments.api.d.ts +36 -0
- package/dist/api/messages.api.d.ts +3 -1
- package/dist/api/messages.api.types.d.ts +14 -1
- package/dist/bridge-ai-chat-widget.es.js +3 -3
- package/dist/context/ChatWidgetContext.d.ts +12 -3
- package/dist/domain/command/CommandRuntime.d.ts +10 -4
- package/dist/domain/command/command.types.d.ts +12 -0
- package/dist/domain/compact-preview/CompactPreviewController.d.ts +123 -0
- package/dist/domain/message/cable/CableContext.d.ts +16 -1
- package/dist/domain/message/cable/widget-frame.d.ts +9 -0
- package/dist/domain/message/chat-experience.d.ts +16 -1
- package/dist/domain/message/message.store.d.ts +3 -2
- package/dist/domain/message/unread.d.ts +1 -0
- package/dist/domain/scenario/ScenarioChoiceSubmissionController.d.ts +49 -0
- package/dist/domain/scenario/scenario-choice.d.ts +6 -0
- package/dist/domain/scenario-interaction/ScenarioInteractionRuntime.d.ts +7 -1
- package/dist/domain/scenario-interaction/presentation-observer.d.ts +6 -1
- package/dist/domain/scenario-interaction/scenario-interaction.types.d.ts +10 -0
- package/dist/domain/ui/ui.service.d.ts +6 -5
- package/dist/domain/ui/widget-geometry.d.ts +28 -0
- package/dist/i18n/messages.d.ts +63 -2
- package/dist/index-WDFSbfaV.js +2208 -0
- package/dist/index.types.d.ts +15 -4
- package/dist/{index-BBsPIKJB.js → mount-CXUq37eu.js} +8636 -7821
- package/dist/ui/attachment-preview.d.ts +10 -0
- package/dist/ui/components/ChatAttachmentList.d.ts +3 -1
- package/dist/ui/components/ChatAttachmentPreviewDialog.d.ts +9 -0
- package/dist/ui/components/ChatMessage.d.ts +3 -0
- package/dist/ui/components/ChatUnreadIndicator.d.ts +3 -1
- package/dist/ui/components/ChatWidgetFrame.d.ts +9 -1
- package/dist/ui/components/CompactPreviewSurface.d.ts +8 -0
- package/dist/ui/components/CompactScenarioPreview.d.ts +24 -0
- package/dist/ui/components/OptimisticCustomerMessage.d.ts +4 -1
- package/dist/ui/components/compact-preview-content.d.ts +10 -0
- package/dist/ui/hooks/useAttentionInterruption.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ChatWidgetContent-CZdK6qrV.js +0 -6363
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const en: {
|
|
|
27
27
|
readonly system: "System";
|
|
28
28
|
readonly aiAssistant: "AI assistant";
|
|
29
29
|
readonly waiting: "Waiting for a specialist";
|
|
30
|
-
readonly
|
|
30
|
+
readonly operator: "Support operator";
|
|
31
31
|
readonly paused: "AI is paused";
|
|
32
32
|
readonly unavailable: "Support status unavailable";
|
|
33
33
|
};
|
|
@@ -97,14 +97,75 @@ declare const en: {
|
|
|
97
97
|
readonly confirming: "Confirming…";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
+
declare const attachmentEn: {
|
|
101
|
+
readonly listLabel: "Attachments";
|
|
102
|
+
readonly oneAttachment: "One attachment";
|
|
103
|
+
readonly manyAttachments: "{{count}} attachments";
|
|
104
|
+
readonly preview: "Preview";
|
|
105
|
+
readonly download: "Download";
|
|
106
|
+
readonly closePreview: "Close file preview";
|
|
107
|
+
readonly loadingPreview: "Opening secure preview…";
|
|
108
|
+
readonly previewFailed: "This file couldn't be previewed safely.";
|
|
109
|
+
readonly retry: "Try again";
|
|
110
|
+
readonly pdfPreview: "PDF preview";
|
|
111
|
+
readonly downloadFailed: "Couldn't download the file. Try again.";
|
|
112
|
+
readonly tooMany: "You can attach up to {{count}} files.";
|
|
113
|
+
readonly emptyFile: "Empty files can't be attached.";
|
|
114
|
+
readonly unsupportedType: "This file type isn't supported.";
|
|
115
|
+
readonly invalidFileName: "Rename this file before attaching it.";
|
|
116
|
+
readonly fileTooLarge: "Each file must be {{size}} MB or smaller.";
|
|
117
|
+
readonly totalTooLarge: "Attached files must total {{size}} MB or less.";
|
|
118
|
+
readonly filesToSend: "Files to send";
|
|
119
|
+
readonly preparing: "Preparing securely";
|
|
120
|
+
readonly uploading: "Uploading";
|
|
121
|
+
readonly scanning: "Checking for threats";
|
|
122
|
+
readonly ready: "Ready";
|
|
123
|
+
readonly removing: "Removing…";
|
|
124
|
+
readonly sending: "Sending…";
|
|
125
|
+
readonly uploadFailed: "Upload failed";
|
|
126
|
+
readonly remove: "Remove";
|
|
127
|
+
readonly revokeFailed: "Couldn't remove the file. Try again.";
|
|
128
|
+
readonly messageRequired: "Add a message before sending these files.";
|
|
129
|
+
readonly dropFiles: "Drop files to attach";
|
|
130
|
+
readonly limits: "Up to {{count}} files · {{size}} MB each · {{total}} MB total";
|
|
131
|
+
readonly attachFiles: "Attach files";
|
|
132
|
+
readonly disabled: "File attachments aren't available here.";
|
|
133
|
+
};
|
|
134
|
+
type AttachmentCatalog = {
|
|
135
|
+
[Key in keyof typeof attachmentEn]: string;
|
|
136
|
+
};
|
|
137
|
+
declare const compactEn: {
|
|
138
|
+
readonly region: "Message from Lola";
|
|
139
|
+
readonly dismiss: "Dismiss message";
|
|
140
|
+
readonly openMessage: "Open message";
|
|
141
|
+
readonly openQuestion: "Open question";
|
|
142
|
+
readonly choices: "Choose an answer";
|
|
143
|
+
readonly actionFailed: "The action failed. Try again.";
|
|
144
|
+
readonly answerFailed: "The answer wasn't sent. Try again.";
|
|
145
|
+
readonly openFailed: "Couldn't open this chat. Try again.";
|
|
146
|
+
readonly positionMenu: "Lola position";
|
|
147
|
+
readonly moveLeft: "Move left";
|
|
148
|
+
readonly moveRight: "Move right";
|
|
149
|
+
readonly moveHigher: "Move higher";
|
|
150
|
+
readonly moveLower: "Move lower";
|
|
151
|
+
readonly moveTop: "Move to top";
|
|
152
|
+
readonly moveMiddle: "Move to middle";
|
|
153
|
+
readonly moveBottom: "Move to bottom";
|
|
154
|
+
readonly collapseQuestion: "Hide question";
|
|
155
|
+
readonly moreMessages: "{{count}} more messages";
|
|
156
|
+
};
|
|
157
|
+
type CompactCatalog = {
|
|
158
|
+
[Key in keyof typeof compactEn]: string;
|
|
159
|
+
};
|
|
100
160
|
type CatalogShape = {
|
|
101
161
|
[Group in keyof typeof en]: {
|
|
102
162
|
[Key in keyof (typeof en)[Group]]: string;
|
|
103
163
|
};
|
|
104
164
|
};
|
|
105
|
-
|
|
165
|
+
type BaseTranslationKey = {
|
|
106
166
|
[Group in keyof CatalogShape & string]: `${Group}.${keyof CatalogShape[Group] & string}`;
|
|
107
167
|
}[keyof CatalogShape & string];
|
|
168
|
+
export type TranslationKey = BaseTranslationKey | `attachment.${keyof AttachmentCatalog & string}` | `compact.${keyof CompactCatalog & string}`;
|
|
108
169
|
export type TranslationMessages = Record<TranslationKey, string>;
|
|
109
170
|
export declare const MESSAGES: Record<SupportedLocale, TranslationMessages>;
|
|
110
171
|
export {};
|