yt-uikit 0.10.58 → 0.10.59-bundle-error-captures.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.
@@ -445,6 +445,7 @@ export type BundleProps = {
445
445
  setCursorData: (cursorData: CursorData) => void;
446
446
  };
447
447
  categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
448
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
448
449
  };
449
450
  export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
450
451
  export declare const getCurrencySymbol: (genSymbol: string, _storeCurrencyCode?: string) => string;
@@ -47,6 +47,7 @@ type BundleBuilderProps = {
47
47
  setCursorData: (cursorData: CursorData) => void;
48
48
  };
49
49
  categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
50
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
50
51
  };
51
52
  declare const BundleBuilder: React.FC<BundleBuilderProps>;
52
53
  export default BundleBuilder;
@@ -51,6 +51,7 @@ type BundleBuilderTrackerProps = {
51
51
  storeCurrencyCode?: string;
52
52
  isUploading?: boolean;
53
53
  showNextStep?: boolean;
54
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
54
55
  };
55
56
  export declare const BundleBuilderTrackerBar: React.FC<BundleBuilderTrackerProps>;
56
57
  export default BundleBuilderTrackerBar;
@@ -128,6 +128,7 @@ interface CollectionBundleProps {
128
128
  addCustomBundleToCart: (items: any) => void;
129
129
  bundleAddToCartLoading: boolean;
130
130
  dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
131
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
131
132
  }
132
- declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, dispatchAnalyticsEvent, }: CollectionBundleProps) => React.JSX.Element;
133
+ declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, dispatchAnalyticsEvent, onCaptureError, }: CollectionBundleProps) => React.JSX.Element;
133
134
  export default CollectionBundle;
@@ -4,6 +4,7 @@ interface MixAndMatchBundleProps {
4
4
  bundle: BundlePayload;
5
5
  addToCartFunction: any;
6
6
  dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
7
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
7
8
  }
8
9
  declare const MixAndMatchBundle: React.FC<MixAndMatchBundleProps>;
9
10
  export default MixAndMatchBundle;
@@ -30,6 +30,7 @@ export interface PersonalizationFormProps {
30
30
  barHeight?: number;
31
31
  isUploading?: boolean;
32
32
  setIsUploading?: React.Dispatch<React.SetStateAction<boolean>>;
33
+ onCaptureError?: (error: unknown, context?: Record<string, any>) => void;
33
34
  }
34
35
  declare const PersonalizationForm: React.FC<PersonalizationFormProps>;
35
36
  export default PersonalizationForm;
@@ -24,4 +24,4 @@ declare global {
24
24
  } | undefined;
25
25
  }
26
26
  }
27
- export default function VolumeBundle({ bundle: originalBundle, addToCartFunction, currentProductId, dispatchAnalyticsEvent, }: BundleProps): React.JSX.Element;
27
+ export default function VolumeBundle({ bundle: originalBundle, addToCartFunction, currentProductId, dispatchAnalyticsEvent, onCaptureError, }: BundleProps): React.JSX.Element;