@sonic-equipment/ui 0.0.76 → 0.0.78

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/index.d.ts CHANGED
@@ -120,11 +120,14 @@ interface Request {
120
120
  }
121
121
  declare const request: Request;
122
122
 
123
- interface UseFeatureFlagsReturnType {
124
- pdpV2: boolean;
125
- plpV2: boolean;
126
- searchV2: boolean;
127
- }
123
+ declare const features: {
124
+ readonly pdp: "pdpV2";
125
+ readonly plp: "plpV2";
126
+ readonly search: "searchV2";
127
+ };
128
+ type FeatureKeys = keyof typeof features;
129
+ type FeatureValues = (typeof features)[FeatureKeys];
130
+ type UseFeatureFlagsReturnType = Record<FeatureValues, boolean>;
128
131
  declare function useFeatureFlags(): UseFeatureFlagsReturnType;
129
132
 
130
133
  interface BaseModel$1 {
@@ -4213,7 +4216,7 @@ interface ImageSource {
4213
4216
  fallbackSrc?: string
4214
4217
  fit?: 'contain' | 'cover'
4215
4218
  height?: number
4216
- image: Image$1 | ResponsiveImage
4219
+ image: Image$1 | ResponsiveImage | undefined
4217
4220
  loading?: 'lazy' | 'eager'
4218
4221
  onError?: () => void
4219
4222
  title: string
@@ -4301,7 +4304,7 @@ interface LinkProps extends LinkProps$2, RefAttributes<HTMLAnchorElement> {
4301
4304
  onMouseMove?(event: MouseEvent): void;
4302
4305
  role?: 'option';
4303
4306
  }
4304
- declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
4307
+ declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ref, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
4305
4308
 
4306
4309
  type AddToCartState = 'initial' | 'spinner' | 'manual-input';
4307
4310
  interface AddToCartButtonProps {
@@ -4542,7 +4545,17 @@ interface ProgressCircleProps {
4542
4545
  }
4543
4546
  declare function ProgressCircle({ className }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
4544
4547
 
4545
- type ImageProps = ImageSource;
4548
+ interface ImageProps {
4549
+ className?: string;
4550
+ fallbackSrc?: string;
4551
+ fit?: 'contain' | 'cover';
4552
+ height?: number;
4553
+ image: Image$1 | ResponsiveImage | undefined;
4554
+ loading?: 'lazy' | 'eager';
4555
+ onError?: () => void;
4556
+ title: string;
4557
+ width?: number;
4558
+ }
4546
4559
  declare function Image({ className, fallbackSrc, fit, height, image, loading, title, width, }: ImageProps): react_jsx_runtime.JSX.Element;
4547
4560
 
4548
4561
  declare function PageContainer({ children, className, }: {