@wistia/ui 0.6.30 → 0.6.31-beta.554b142e.bbe400b

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.30
3
+ * @license @wistia/ui v0.6.31-beta.554b142e.bbe400b
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6779,7 +6779,8 @@ var Link = (0, import_react12.forwardRef)(
6779
6779
  ...commonProps,
6780
6780
  ...externalLinkProps
6781
6781
  };
6782
- return inRouterContext && type !== "external" ? /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
6782
+ const shouldUseReactRouterLink = inRouterContext && type !== "external" && !to?.startsWith("http");
6783
+ return shouldUseReactRouterLink ? /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
6783
6784
  StyledLink,
6784
6785
  {
6785
6786
  as: import_react_router_dom.Link,
@@ -7418,20 +7419,20 @@ var BoxComponent = (0, import_react17.forwardRef)(
7418
7419
  ...otherProps
7419
7420
  }, ref) => {
7420
7421
  if ((0, import_type_guards17.isNotUndefined)(height)) {
7421
- if ((0, import_type_guards17.isTruthy)(fill) || fill === "vertical") {
7422
+ if (fill === true || fill === "vertical") {
7422
7423
  throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
7423
7424
  }
7424
- if ((0, import_type_guards17.isTruthy)(fillViewport) || fillViewport === "vertical") {
7425
+ if (fillViewport === true || fillViewport === "vertical") {
7425
7426
  throw new Error(
7426
7427
  'Cannot use height prop with fillViewport="vertical" or fillViewport={true}'
7427
7428
  );
7428
7429
  }
7429
7430
  }
7430
7431
  if ((0, import_type_guards17.isNotUndefined)(width)) {
7431
- if ((0, import_type_guards17.isTruthy)(fill) || fill === "horizontal") {
7432
+ if (fill === true || fill === "horizontal") {
7432
7433
  throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
7433
7434
  }
7434
- if ((0, import_type_guards17.isTruthy)(fillViewport) || fillViewport === "horizontal") {
7435
+ if (fillViewport === true || fillViewport === "horizontal") {
7435
7436
  throw new Error(
7436
7437
  'Cannot use width prop with fillViewport="horizontal" or fillViewport={true}'
7437
7438
  );