@wistia/vhs 5.0.2-beta.d42b58b7.331ff68 → 5.0.2-beta.d6d8d8ab.d7df6c8

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v5.0.2-beta.d42b58b7.331ff68
3
+ * @license @wistia/vhs v5.0.2-beta.d6d8d8ab.d7df6c8
4
4
  *
5
5
  * Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -4226,7 +4226,7 @@ var useFocusTrap = (active = true, options = {}) => {
4226
4226
  if (focusElement2) {
4227
4227
  focusElement2.focus();
4228
4228
  }
4229
- if (!focusElement2 && process.env["NODE_ENV"] === "development") {
4229
+ if (!focusElement2 && import.meta.env.DEV) {
4230
4230
  console.warn(
4231
4231
  '[useFocusTrap]: Failed to find a focusable element after activating the focus trap. Make sure to include at an element that can recieve focus. As a fallback, you can also set "tabIndex={-1}" on the focus trap node.',
4232
4232
  node2
@@ -4237,7 +4237,7 @@ var useFocusTrap = (active = true, options = {}) => {
4237
4237
  if (node.ownerDocument) {
4238
4238
  processNode(node);
4239
4239
  }
4240
- if (!node.ownerDocument && process.env["NODE_ENV"] === "development") {
4240
+ if (!node.ownerDocument && import.meta.env.DEV) {
4241
4241
  console.warn(
4242
4242
  "[useFocusTrap]: The focus trap is not part of the DOM yet, so it is unable to correctly set focus. Make sure to render the ref node.",
4243
4243
  node
@@ -13376,10 +13376,13 @@ var Slider = ({
13376
13376
  children: /* @__PURE__ */ jsx209(
13377
13377
  ReactSlider,
13378
13378
  {
13379
- ariaLabel: isString8(ariaLabel) || isNonEmptyArray(ariaLabel) ? ariaLabel : void 0,
13380
- ariaLabelledby: isString8(ariaLabelledby) || isNonEmptyArray(ariaLabelledby) ? ariaLabelledby : void 0,
13381
- ariaValuetext: isFunction4(ariaValuetext) ? (state) => ariaValuetext(state) : ariaValuetext,
13382
- defaultValue: isNumber(initialValue) || isNonEmptyArray(initialValue) ? initialValue : void 0,
13379
+ ...isString8(ariaLabel) || isNonEmptyArray(ariaLabel) ? { ariaLabel } : {},
13380
+ ...isString8(ariaLabelledby) || isNonEmptyArray(ariaLabelledby) ? { ariaLabelledby } : {},
13381
+ ...isFunction4(ariaValuetext) && {
13382
+ ariaValuetext: (state) => ariaValuetext(state)
13383
+ },
13384
+ ...isString8(ariaValuetext) && { ariaValuetext },
13385
+ ...isNumber(initialValue) || isNonEmptyArray(initialValue) ? { defaultValue: initialValue } : {},
13383
13386
  disabled,
13384
13387
  marks: step,
13385
13388
  max,
@@ -13422,7 +13425,7 @@ var Slider = ({
13422
13425
  );
13423
13426
  },
13424
13427
  step,
13425
- value: isNumber(value) || isNonEmptyArray(value) ? value : void 0
13428
+ ...isNumber(value) || isNonEmptyArray(value) ? { value } : {}
13426
13429
  }
13427
13430
  )
13428
13431
  }