@botuyo/chat-widget-standalone 1.5.2 → 1.6.1
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/{AudioPlayer-C-4kk-Q-.js → AudioPlayer-C-uh_a_K.js} +2 -2
- package/dist/{AudioPlayer-C-4kk-Q-.js.map → AudioPlayer-C-uh_a_K.js.map} +1 -1
- package/dist/{Gallery-BbQ2FJOf.js → Gallery-DWkZf37l.js} +2 -2
- package/dist/{Gallery-BbQ2FJOf.js.map → Gallery-DWkZf37l.js.map} +1 -1
- package/dist/botuyo-chat.es.js +1 -1
- package/dist/botuyo-chat.umd.js +1 -1
- package/dist/botuyo-chat.umd.js.map +1 -1
- package/dist/src/chat-widget/components/Avatar3DPreview.d.ts +14 -1
- package/dist/src/chat-widget/components/Avatar3DPreview.d.ts.map +1 -1
- package/dist/src/chat-widget/components/Avatar3DPreview.stories.d.ts +58 -0
- package/dist/src/chat-widget/components/Avatar3DPreview.stories.d.ts.map +1 -0
- package/dist/src/chat-widget/components/index.d.ts +1 -0
- package/dist/src/chat-widget/components/index.d.ts.map +1 -1
- package/dist/{standalone-D5pCeR_m.js → standalone-mMPYul7C.js} +121 -115
- package/dist/standalone-mMPYul7C.js.map +1 -0
- package/dist/stats-umd.html +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/standalone-D5pCeR_m.js.map +0 -1
|
@@ -10,8 +10,21 @@ interface Avatar3DPreviewProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
cameraPosition?: [number, number, number];
|
|
12
12
|
targetPosition?: [number, number, number];
|
|
13
|
+
/** Slow idle auto-spin. Default true. */
|
|
13
14
|
autoRotate?: boolean;
|
|
15
|
+
/** Allow the user to orbit/zoom with mouse + touch. Default true. */
|
|
16
|
+
interactive?: boolean;
|
|
17
|
+
/** Render a soft contact shadow beneath the model. Default true. */
|
|
18
|
+
showShadow?: boolean;
|
|
19
|
+
/** Text shown while the model downloads. */
|
|
20
|
+
loadingLabel?: string;
|
|
21
|
+
/** Text shown if the model fails to load. */
|
|
22
|
+
errorLabel?: string;
|
|
23
|
+
/** Fired once the model has loaded successfully. */
|
|
24
|
+
onLoad?: () => void;
|
|
25
|
+
/** Fired if the model fails to load. */
|
|
26
|
+
onError?: (error: unknown) => void;
|
|
14
27
|
}
|
|
15
|
-
export declare function Avatar3DPreview({ url, className, cameraPosition, targetPosition, autoRotate, }: Avatar3DPreviewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
export declare function Avatar3DPreview({ url, className, cameraPosition, targetPosition, autoRotate, interactive, showShadow, loadingLabel, errorLabel, onLoad, onError, }: Avatar3DPreviewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
29
|
export {};
|
|
17
30
|
//# sourceMappingURL=Avatar3DPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar3DPreview.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/Avatar3DPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"Avatar3DPreview.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/Avatar3DPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oEAAoE;IACpE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,wCAAwC;IACxC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AAoQD,wBAAgB,eAAe,CAAC,EAC9B,GAAG,EACH,SAAc,EACd,cAAc,EACd,cAAc,EACd,UAAiB,EACjB,WAAkB,EAClB,UAAiB,EACjB,YAAkC,EAClC,UAA0C,EAC1C,MAAM,EACN,OAAO,GACR,EAAE,oBAAoB,kDAwFtB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Avatar3DPreview } from './Avatar3DPreview';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Avatar3DPreview;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
url: {
|
|
12
|
+
control: "text";
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
interactive: {
|
|
16
|
+
control: "boolean";
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
autoRotate: {
|
|
20
|
+
control: "boolean";
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
showShadow: {
|
|
24
|
+
control: "boolean";
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
loadingLabel: {
|
|
28
|
+
control: "text";
|
|
29
|
+
};
|
|
30
|
+
errorLabel: {
|
|
31
|
+
control: "text";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
35
|
+
url: string;
|
|
36
|
+
className?: string | undefined;
|
|
37
|
+
cameraPosition?: [number, number, number] | undefined;
|
|
38
|
+
targetPosition?: [number, number, number] | undefined;
|
|
39
|
+
autoRotate?: boolean | undefined;
|
|
40
|
+
interactive?: boolean | undefined;
|
|
41
|
+
showShadow?: boolean | undefined;
|
|
42
|
+
loadingLabel?: string | undefined;
|
|
43
|
+
errorLabel?: string | undefined;
|
|
44
|
+
onLoad?: (() => void) | undefined;
|
|
45
|
+
onError?: ((error: unknown) => void) | undefined;
|
|
46
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
47
|
+
};
|
|
48
|
+
export default meta;
|
|
49
|
+
type Story = StoryObj<typeof meta>;
|
|
50
|
+
/** Interactive preview (orbit + zoom + auto-spin) with a soft contact shadow. */
|
|
51
|
+
export declare const Default: Story;
|
|
52
|
+
/** Static framed shot — no user interaction, model self-spins. */
|
|
53
|
+
export declare const NonInteractive: Story;
|
|
54
|
+
/** Error state: an unreachable model surfaces the localized error overlay. */
|
|
55
|
+
export declare const ErrorState: Story;
|
|
56
|
+
/** Custom localized loading + error copy. */
|
|
57
|
+
export declare const CustomLabels: Story;
|
|
58
|
+
//# sourceMappingURL=Avatar3DPreview.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar3DPreview.stories.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/Avatar3DPreview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAYnD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B8B,CAAA;AAExC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,iFAAiF;AACjF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AAED,kEAAkE;AAClE,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAA;AAED,8EAA8E;AAC9E,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAA"}
|
|
@@ -14,4 +14,5 @@ export { LiveCallInputArea } from './LiveCallInputArea';
|
|
|
14
14
|
export { Gallery } from './Gallery';
|
|
15
15
|
export { ErrorBoundary } from './ErrorBoundary';
|
|
16
16
|
export { LanguageSelector } from './LanguageSelector';
|
|
17
|
+
export { Avatar3DPreview } from './Avatar3DPreview';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat-widget/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|