@alxxsck/ai-assistant 3.8.1 → 3.9.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/dist/{Avatar-Dysajrfu.js → Avatar-CFd9Otwo.js} +1 -1
- package/dist/ChatWidgetContent-M0SYdZ2j.js +6859 -0
- package/dist/MediaVideoPlayer-BlJVnBw2.js +7695 -0
- package/dist/MediaVideoViewer-D6FNvdwQ.js +75 -0
- package/dist/ai-assistant.css +1 -1
- package/dist/api/messages.api.d.ts +11 -0
- package/dist/api/messages.api.types.d.ts +38 -2
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/config/media-sharing.d.ts +1 -0
- package/dist/domain/message/message.store.d.ts +13 -0
- package/dist/domain/support-presentation/support-presentation.types.d.ts +1 -1
- package/dist/i18n/media-chrome.d.ts +1 -0
- package/dist/i18n/messages.d.ts +14 -1
- package/dist/i18n/support-messages.d.ts +25 -0
- package/dist/{index-DmB_5CV9.js → index-_XUrpFzQ.js} +3 -3
- package/dist/{mount-BUOeaAtc.js → mount-DNkE0lYL.js} +8672 -7870
- package/dist/photoswipe.esm-Bc05x7rO.js +2952 -0
- package/dist/ui/components/MediaPhotoViewer.d.ts +17 -0
- package/dist/ui/components/MediaVideoPlayer.d.ts +9 -0
- package/dist/ui/components/MediaVideoViewer.d.ts +7 -0
- package/dist/ui/components/SupportAssignmentTimeline.d.ts +4 -0
- package/dist/ui/components/SupportConversationControls.d.ts +4 -0
- package/dist/ui/components/SupportHistory.d.ts +5 -0
- package/dist/ui/components/UserMediaLibrary.d.ts +4 -2
- package/dist/ui/components/VideoTeaser.d.ts +5 -0
- package/dist/ui/hooks/useSupportAssignmentEvents.d.ts +2 -0
- package/dist/ui/hooks/useSupportConversationSync.d.ts +1 -0
- package/dist/ui/hooks/useSupportReadOnly.d.ts +2 -0
- package/dist/ui/responder-visual-state.d.ts +1 -1
- package/package.json +5 -3
- package/dist/ChatWidgetContent-GopG0V-j.js +0 -6288
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type MediaSlide = {
|
|
3
|
+
id: string;
|
|
4
|
+
src: string;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
date?: string;
|
|
8
|
+
download?: string;
|
|
9
|
+
};
|
|
10
|
+
/** Receives only images already authorized by the server; never locked previews. */
|
|
11
|
+
export declare function MediaPhotoViewer({ slides, initialIndex, close, renderShare, onDownload, }: {
|
|
12
|
+
slides: MediaSlide[];
|
|
13
|
+
initialIndex?: number;
|
|
14
|
+
close: () => void;
|
|
15
|
+
renderShare?: (slide: MediaSlide) => ReactNode;
|
|
16
|
+
onDownload?: (slide: MediaSlide) => void | Promise<void>;
|
|
17
|
+
}): import("react").ReactPortal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "@/i18n/media-chrome";
|
|
2
|
+
/** Only accepts an authorized original. Teasers use a separate, silent video element. */
|
|
3
|
+
export default function MediaVideoPlayer({ src, poster, onReady, active, onError, }: {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
src: string;
|
|
6
|
+
poster?: string;
|
|
7
|
+
onReady?: () => void;
|
|
8
|
+
onError?: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import "./UserMediaLibrary.css";
|
|
2
|
-
export declare function MediaLibraryButton({ entitlementId, }: {
|
|
2
|
+
export declare function MediaLibraryButton({ entitlementId, previewUrl, label, }: {
|
|
3
3
|
entitlementId?: string;
|
|
4
|
-
|
|
4
|
+
previewUrl?: string;
|
|
5
|
+
label?: boolean;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSupportConversationSync(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ResponderDisplayModel } from "@/ui/hooks/usePresentedResponderPresentation";
|
|
2
2
|
/**
|
|
3
|
-
* The visual handoff starts as soon as human support is routing or
|
|
3
|
+
* The visual handoff starts as soon as human support is routing, assigned, or waiting for external work.
|
|
4
4
|
* AI suspension is kept as an independent authority signal, but produces the
|
|
5
5
|
* same quiet, avatar-free chat presentation.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alxxsck/ai-assistant",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.9.0",
|
|
5
5
|
"description": "Embeddable Lola AI assistant library",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/bridge-ai-chat-widget.es.js",
|
|
@@ -51,19 +51,21 @@
|
|
|
51
51
|
"@types/lodash-es": "^4.17.12",
|
|
52
52
|
"class-variance-authority": "^0.7.1",
|
|
53
53
|
"clsx": "^2.1.1",
|
|
54
|
+
"fflate": "0.8.2",
|
|
54
55
|
"gsap": "^3.14.2",
|
|
55
56
|
"howler": "^2.2.4",
|
|
56
57
|
"lodash-es": "^4.17.23",
|
|
57
58
|
"lucide-react": "^0.562.0",
|
|
58
59
|
"markdown-it": "^14.3.0",
|
|
60
|
+
"media-chrome": "^4.19.2",
|
|
61
|
+
"photoswipe": "^5.4.4",
|
|
59
62
|
"react-error-boundary": "^6.1.1",
|
|
60
63
|
"react-router-dom": "^7.13.1",
|
|
61
64
|
"socket.io-client": "^4.8.3",
|
|
62
65
|
"tailwind-merge": "^3.4.0",
|
|
63
66
|
"three": "^0.182.0",
|
|
64
67
|
"vite-plugin-svgr": "^4.5.0",
|
|
65
|
-
"zustand": "^5.0.10"
|
|
66
|
-
"fflate": "0.8.2"
|
|
68
|
+
"zustand": "^5.0.10"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
71
|
"@axe-core/playwright": "^4.11.1",
|