@gymmymac/bob-widget 3.0.3 → 3.0.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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  AI-powered automotive parts assistant widget for integration into partner websites.
4
4
 
5
- **v3.0.0** - Major release with multi-tenant support, RAF animations, swipeable Bob, and enhanced mobile experience.
5
+ **v3.0.6** - Documentation release with consolidated CARFIX integration feedback and release process fix.
6
6
 
7
7
  ## What's New in v3.0.0
8
8
 
@@ -96,13 +96,13 @@ Or programmatically:
96
96
  ```tsx
97
97
  import { BOB_VERSION, getBobVersion } from '@gymmymac/bob-widget';
98
98
 
99
- console.log(`Bob Widget Version: ${getBobVersion()}`); // "3.0.0"
99
+ console.log(`Bob Widget Version: ${getBobVersion()}`); // "3.0.6"
100
100
  ```
101
101
 
102
102
  Check the console for startup logs:
103
103
  ```
104
- [BobWidget] Package loaded - v3.0.0
105
- [BobWidget] v3.0.0 initialized
104
+ [BobWidget] Package loaded - v3.0.6
105
+ [BobWidget] v3.0.6 initialized
106
106
  [BobWidget] QueryClient: internal
107
107
  ```
108
108
 
@@ -0,0 +1,30 @@
1
+ export interface BobHealthCheckResult {
2
+ healthy: boolean;
3
+ reason?: string;
4
+ activeLookId?: string;
5
+ activeLookName?: string;
6
+ stateCount: number;
7
+ states: string[];
8
+ missingCritical: string[];
9
+ frameCount: number;
10
+ }
11
+ /**
12
+ * Health check hook for verifying Bob's animation system connectivity.
13
+ * Use this to diagnose issues with animation state loading on external sites.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { checkHealth } = useBobHealthCheck();
18
+ *
19
+ * useEffect(() => {
20
+ * checkHealth().then(result => {
21
+ * if (!result.healthy) {
22
+ * console.error('Bob health check failed:', result.reason);
23
+ * }
24
+ * });
25
+ * }, []);
26
+ * ```
27
+ */
28
+ export declare const useBobHealthCheck: () => {
29
+ checkHealth: () => Promise<BobHealthCheckResult>;
30
+ };
package/dist/index.d.ts CHANGED
@@ -35,6 +35,8 @@ export { useBobBackdrop } from './hooks/useBobBackdrop';
35
35
  export { useThemeSettings } from './hooks/useThemeSettings';
36
36
  export { useSparkDeals } from './hooks/useSparkDeals';
37
37
  export { useReturningUser } from './hooks/useReturningUser';
38
+ export { useBobHealthCheck } from './hooks/useBobHealthCheck';
39
+ export type { BobHealthCheckResult } from './hooks/useBobHealthCheck';
38
40
  export type { HostContext, HostUserContext, HostVehicleContext, HostCartContext, HostHistoryContext, BobConfig, HostApiConfig, BobCallbacks, BobProviderConfig, BobLayoutConfig, } from './types/context';
39
41
  export type { Vehicle } from './types/vehicle';
40
42
  export type { Product, APIPart, CartItem, ServicePackage, Partslot, QualityTiers, Part, } from './types/product';