@wistia/vhs 3.0.1 → 3.0.2-beta.ea641c58.c6a1f4e

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.mts CHANGED
@@ -512,7 +512,7 @@ declare const Link: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps
512
512
  * The visual type of Link to display
513
513
  */
514
514
  variant?: "dangerous" | "primary" | "secondary";
515
- } & react.RefAttributes<unknown>>;
515
+ } & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
516
516
 
517
517
  type WrapperProviderLinkType = ((props: DefaultLinkWrapperProps) => JSX.Element) | undefined;
518
518
 
@@ -1444,7 +1444,7 @@ type ButtonLinkProps = ComponentPropsWithRef<'a'> & {
1444
1444
  * **Note:** the props table below is incomplete; please
1445
1445
  * refer to [Link](?path=/docs/link--link-stories) for additional props.
1446
1446
  */
1447
- declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<unknown>>;
1447
+ declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1448
1448
 
1449
1449
  type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
1450
1450
  /**
package/dist/index.d.ts CHANGED
@@ -512,7 +512,7 @@ declare const Link: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps
512
512
  * The visual type of Link to display
513
513
  */
514
514
  variant?: "dangerous" | "primary" | "secondary";
515
- } & react.RefAttributes<unknown>>;
515
+ } & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
516
516
 
517
517
  type WrapperProviderLinkType = ((props: DefaultLinkWrapperProps) => JSX.Element) | undefined;
518
518
 
@@ -1444,7 +1444,7 @@ type ButtonLinkProps = ComponentPropsWithRef<'a'> & {
1444
1444
  * **Note:** the props table below is incomplete; please
1445
1445
  * refer to [Link](?path=/docs/link--link-stories) for additional props.
1446
1446
  */
1447
- declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<unknown>>;
1447
+ declare const ButtonLink: react.ForwardRefExoticComponent<Omit<ButtonLinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1448
1448
 
1449
1449
  type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
1450
1450
  /**
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v3.0.1
3
+ * @license @wistia/vhs v3.0.2-beta.ea641c58.c6a1f4e
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6549,45 +6549,39 @@ var ButtonLink = forwardRef6(
6549
6549
  }
6550
6550
  return null;
6551
6551
  };
6552
- return (
6553
- // @ts-expect-error FIXME
6554
- /* @__PURE__ */ jsx140(
6555
- StyledButtonLink,
6556
- {
6557
- ref,
6558
- $buttonColor: buttonColor,
6559
- $forceState: forceState,
6560
- $fullWidth: fullWidth,
6561
- $icon: icon,
6562
- $iconPosition: iconPosition,
6563
- $isLoading: false,
6564
- $labelWrap: labelWrap,
6565
- $size: size,
6566
- $square: square,
6567
- $textAlign: textAlign,
6568
- $variant: variant,
6569
- beforeAction,
6570
- disabled,
6571
- href,
6572
- params,
6573
- type,
6574
- unstyled: true,
6575
- ...otherProps,
6576
- children: /* @__PURE__ */ jsx140(
6577
- ButtonContent,
6578
- {
6579
- icon,
6580
- iconName,
6581
- iconPosition,
6582
- isLoading: false,
6583
- size,
6584
- textAlign,
6585
- children: getContent()
6586
- }
6587
- )
6588
- }
6589
- )
6590
- );
6552
+ const styledProps = {
6553
+ ref,
6554
+ $buttonColor: buttonColor,
6555
+ $forceState: forceState,
6556
+ $fullWidth: fullWidth,
6557
+ $icon: icon,
6558
+ $iconPosition: iconPosition,
6559
+ $isLoading: false,
6560
+ $labelWrap: labelWrap,
6561
+ $size: size,
6562
+ $square: square,
6563
+ $textAlign: textAlign,
6564
+ $variant: variant,
6565
+ beforeAction,
6566
+ disabled,
6567
+ href,
6568
+ params,
6569
+ type,
6570
+ unstyled: true,
6571
+ ...otherProps
6572
+ };
6573
+ return /* @__PURE__ */ jsx140(StyledButtonLink, { ...styledProps, children: /* @__PURE__ */ jsx140(
6574
+ ButtonContent,
6575
+ {
6576
+ icon,
6577
+ iconName,
6578
+ iconPosition,
6579
+ isLoading: false,
6580
+ size,
6581
+ textAlign,
6582
+ children: getContent()
6583
+ }
6584
+ ) });
6591
6585
  }
6592
6586
  );
6593
6587
  ButtonLink.displayName = "ButtonLink_VHS";