@wistia/ui 0.21.9-beta.de8378b9.8a8d58d → 0.21.9-beta.e50da56a.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/ui v0.21.9-beta.de8378b9.8a8d58d
3
+ * @license @wistia/ui v0.21.9-beta.e50da56a.d7df6c8
4
4
  *
5
5
  * Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1291,7 +1291,7 @@ var useFocusTrap = (active = true, options = {}) => {
1291
1291
  if (focusElement2) {
1292
1292
  focusElement2.focus();
1293
1293
  }
1294
- if (!focusElement2 && process.env["NODE_ENV"] === "development") {
1294
+ if (!focusElement2 && import.meta.env.DEV) {
1295
1295
  console.warn(
1296
1296
  '[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.',
1297
1297
  node2
@@ -1302,7 +1302,7 @@ var useFocusTrap = (active = true, options = {}) => {
1302
1302
  if (node.ownerDocument) {
1303
1303
  processNode(node);
1304
1304
  }
1305
- if (!node.ownerDocument && process.env["NODE_ENV"] === "development") {
1305
+ if (!node.ownerDocument && import.meta.env.DEV) {
1306
1306
  console.warn(
1307
1307
  "[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.",
1308
1308
  node