@wistia/ui 0.18.14-beta.e9acbfe3.e18434d → 0.18.15
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 +20 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -29
- package/dist/index.d.ts +16 -29
- package/dist/index.mjs +20 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.15
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2574,17 +2574,20 @@ var dateTime = {
|
|
|
2574
2574
|
|
|
2575
2575
|
// src/helpers/mergeRefs/mergeRefs.ts
|
|
2576
2576
|
var import_type_guards5 = require("@wistia/type-guards");
|
|
2577
|
-
var mergeRefs = (
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
}
|
|
2577
|
+
var mergeRefs = (
|
|
2578
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
2579
|
+
(refs) => (value) => {
|
|
2580
|
+
refs.forEach((ref) => {
|
|
2581
|
+
if ((0, import_type_guards5.isFunction)(ref)) {
|
|
2582
|
+
ref(value);
|
|
2583
|
+
return;
|
|
2584
|
+
}
|
|
2585
|
+
if ((0, import_type_guards5.isNotNil)(ref)) {
|
|
2586
|
+
ref.current = value;
|
|
2587
|
+
}
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
);
|
|
2588
2591
|
|
|
2589
2592
|
// src/helpers/mq/mq.ts
|
|
2590
2593
|
var import_polished = require("polished");
|
|
@@ -2660,7 +2663,7 @@ var import_react7 = require("react");
|
|
|
2660
2663
|
var import_react6 = require("react");
|
|
2661
2664
|
var useTimedToggle = (initialValue) => {
|
|
2662
2665
|
const [value, setValue] = (0, import_react6.useState)(false);
|
|
2663
|
-
const timeoutRef = (0, import_react6.useRef)();
|
|
2666
|
+
const timeoutRef = (0, import_react6.useRef)(void 0);
|
|
2664
2667
|
const initialValueRef = (0, import_react6.useRef)(initialValue);
|
|
2665
2668
|
const toggleValue = (timeout) => {
|
|
2666
2669
|
clearTimeout(timeoutRef.current);
|
|
@@ -3026,8 +3029,8 @@ var isEventTargetSupported = (eventTarget) => (
|
|
|
3026
3029
|
Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
|
|
3027
3030
|
);
|
|
3028
3031
|
var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
|
|
3029
|
-
const savedEventHandler = (0, import_react12.useRef)();
|
|
3030
|
-
const savedEventOptions = (0, import_react12.useRef)();
|
|
3032
|
+
const savedEventHandler = (0, import_react12.useRef)(void 0);
|
|
3033
|
+
const savedEventOptions = (0, import_react12.useRef)(void 0);
|
|
3031
3034
|
(0, import_react12.useEffect)(() => {
|
|
3032
3035
|
savedEventHandler.current = eventHandler;
|
|
3033
3036
|
}, [eventHandler]);
|
|
@@ -3220,7 +3223,7 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
|
|
|
3220
3223
|
// src/hooks/usePreviousValue/usePreviousValue.ts
|
|
3221
3224
|
var import_react18 = require("react");
|
|
3222
3225
|
var usePreviousValue = (value) => {
|
|
3223
|
-
const ref = (0, import_react18.useRef)();
|
|
3226
|
+
const ref = (0, import_react18.useRef)(void 0);
|
|
3224
3227
|
(0, import_react18.useEffect)(() => {
|
|
3225
3228
|
ref.current = value;
|
|
3226
3229
|
});
|
|
@@ -14900,6 +14903,7 @@ var EditableTextDisplayComponent = (0, import_react65.forwardRef)(
|
|
|
14900
14903
|
);
|
|
14901
14904
|
EditableTextDisplayComponent.displayName = "EditableTextDisplay_UI";
|
|
14902
14905
|
var EditableTextDisplay = makePolymorphic(
|
|
14906
|
+
// @ts-expect-error makePolymorphic is causing issues with types in R19
|
|
14903
14907
|
EditableTextDisplayComponent
|
|
14904
14908
|
);
|
|
14905
14909
|
|