@gymmymac/bob-widget 1.1.4 → 1.1.6

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.
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { Message } from '../../types/message';
3
+
4
+ interface ContainedChatDrawerProps {
5
+ messages: Message[];
6
+ input: string;
7
+ setInput: (value: string) => void;
8
+ isLoading: boolean;
9
+ onSend: () => void;
10
+ onKeyPress: (e: React.KeyboardEvent) => void;
11
+ onInputFocus: () => void;
12
+ onInputBlur: () => void;
13
+ chatEndRef: React.RefObject<HTMLDivElement>;
14
+ isMuted?: boolean;
15
+ onToggleMute?: () => void;
16
+ isSpeaking?: boolean;
17
+ }
18
+ /**
19
+ * ContainedChatDrawer - Chat drawer using absolute positioning
20
+ * Stays within parent container bounds instead of viewport.
21
+ */
22
+ export declare const ContainedChatDrawer: React.FC<ContainedChatDrawerProps>;
23
+ export {};
@@ -0,0 +1,40 @@
1
+ import { default as React } from 'react';
2
+ import { Message, HighlightedProduct } from '../../types/message';
3
+ import { Product, ServicePackage } from '../../types';
4
+ import { Vehicle } from '../../types/vehicle';
5
+
6
+ interface ContainedMobileBobLayoutProps {
7
+ currentImage: string;
8
+ animationState: string;
9
+ backdropUrl?: string;
10
+ counterOverlayUrl?: string;
11
+ counterHeightPercent?: number;
12
+ messages: Message[];
13
+ input: string;
14
+ setInput: (value: string) => void;
15
+ isLoading: boolean;
16
+ onSend: () => void;
17
+ onKeyPress: (e: React.KeyboardEvent) => void;
18
+ onInputFocus: () => void;
19
+ onInputBlur: () => void;
20
+ chatEndRef: React.RefObject<HTMLDivElement>;
21
+ isMuted?: boolean;
22
+ onToggleMute?: () => void;
23
+ isSpeaking?: boolean;
24
+ products: Product[];
25
+ servicePackages: ServicePackage[];
26
+ highlightedPartType?: string | null;
27
+ highlightedProduct?: HighlightedProduct | null;
28
+ onProductClick?: (product: Product) => void;
29
+ onPackageSelect?: (pkg: ServicePackage) => void;
30
+ isResearching?: boolean;
31
+ vehicle?: Vehicle | null;
32
+ onChangeVehicle?: () => void;
33
+ }
34
+ /**
35
+ * ContainedMobileBobLayout - Immersive layout that fits within a parent container
36
+ * Uses position: absolute instead of fixed, so it respects parent boundaries.
37
+ * Ideal for embedding Bob in a page with header/footer.
38
+ */
39
+ export declare const ContainedMobileBobLayout: React.FC<ContainedMobileBobLayoutProps>;
40
+ export {};
@@ -2,3 +2,5 @@ export { MobileBobCharacter } from './MobileBobCharacter';
2
2
  export { MobileChatDrawer } from './MobileChatDrawer';
3
3
  export { MobileProductColumn } from './MobileProductColumn';
4
4
  export { MobileBobLayout } from './MobileBobLayout';
5
+ export { ContainedMobileBobLayout } from './ContainedMobileBobLayout';
6
+ export { ContainedChatDrawer } from './ContainedChatDrawer';
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { Bob } from './components/Bob';
13
13
  export type { BobVariant } from './components/Bob';
14
14
  export { BobCharacter } from './components/BobCharacter';
15
15
  export { ChatInterface } from './components/ChatInterface';
16
- export { MobileBobCharacter, MobileChatDrawer, MobileProductColumn, MobileBobLayout } from './components/mobile';
16
+ export { MobileBobCharacter, MobileChatDrawer, MobileProductColumn, MobileBobLayout, ContainedMobileBobLayout, ContainedChatDrawer } from './components/mobile';
17
17
  export { useBobChat } from './hooks/useBobChat';
18
18
  export { useSpeechSynthesis } from './hooks/useSpeechSynthesis';
19
19
  export { useBobAnimation } from './hooks/useBobAnimation';