@wistia/vhs 4.0.0-beta.9f3e8712.9b94192 → 4.0.0-beta.a877b47e.db3237f
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 +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +15 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v4.0.0-beta.
|
|
3
|
+
* @license @wistia/vhs v4.0.0-beta.a877b47e.db3237f
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -3840,7 +3840,7 @@ var normalize = import_styled_components7.css`
|
|
|
3840
3840
|
[type='button'],
|
|
3841
3841
|
[type='reset'],
|
|
3842
3842
|
[type='submit'] {
|
|
3843
|
-
appearance:
|
|
3843
|
+
appearance: auto;
|
|
3844
3844
|
}
|
|
3845
3845
|
|
|
3846
3846
|
/**
|
|
@@ -3950,7 +3950,7 @@ var normalize = import_styled_components7.css`
|
|
|
3950
3950
|
*/
|
|
3951
3951
|
|
|
3952
3952
|
::-webkit-file-upload-button {
|
|
3953
|
-
appearance:
|
|
3953
|
+
appearance: auto; /* 1 */
|
|
3954
3954
|
font: inherit; /* 2 */
|
|
3955
3955
|
}
|
|
3956
3956
|
|
|
@@ -4070,7 +4070,7 @@ var import_react13 = require("react");
|
|
|
4070
4070
|
var import_react12 = require("react");
|
|
4071
4071
|
var useTimedToggle = (initialValue) => {
|
|
4072
4072
|
const [value, setValue] = (0, import_react12.useState)(false);
|
|
4073
|
-
const timeoutRef = (0, import_react12.useRef)();
|
|
4073
|
+
const timeoutRef = (0, import_react12.useRef)(void 0);
|
|
4074
4074
|
const initialValueRef = (0, import_react12.useRef)(initialValue);
|
|
4075
4075
|
const toggleValue = (timeout2) => {
|
|
4076
4076
|
clearTimeout(timeoutRef.current);
|
|
@@ -4143,8 +4143,8 @@ var isEventTargetSupported = (eventTarget) => (
|
|
|
4143
4143
|
Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
|
|
4144
4144
|
);
|
|
4145
4145
|
var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
|
|
4146
|
-
const savedEventHandler = (0, import_react15.useRef)();
|
|
4147
|
-
const savedEventOptions = (0, import_react15.useRef)();
|
|
4146
|
+
const savedEventHandler = (0, import_react15.useRef)(void 0);
|
|
4147
|
+
const savedEventOptions = (0, import_react15.useRef)(void 0);
|
|
4148
4148
|
(0, import_react15.useEffect)(() => {
|
|
4149
4149
|
savedEventHandler.current = eventHandler;
|
|
4150
4150
|
}, [eventHandler]);
|
|
@@ -4581,7 +4581,7 @@ var usePreventScroll = (locked) => {
|
|
|
4581
4581
|
// src/hooks/usePreviousValue/usePreviousValue.ts
|
|
4582
4582
|
var import_react25 = require("react");
|
|
4583
4583
|
var usePreviousValue = (value) => {
|
|
4584
|
-
const ref = (0, import_react25.useRef)();
|
|
4584
|
+
const ref = (0, import_react25.useRef)(void 0);
|
|
4585
4585
|
(0, import_react25.useEffect)(() => {
|
|
4586
4586
|
ref.current = value;
|
|
4587
4587
|
});
|
|
@@ -4678,7 +4678,7 @@ var ModalBaseContent = ({
|
|
|
4678
4678
|
const wasJustShown = usePreviousValue(isShown);
|
|
4679
4679
|
const hide = () => setIsShownAttempted(false);
|
|
4680
4680
|
const show = (0, import_react28.useCallback)(() => setIsShownAttempted(true), []);
|
|
4681
|
-
const toggleButtonRef = (0, import_react28.useRef)();
|
|
4681
|
+
const toggleButtonRef = (0, import_react28.useRef)(void 0);
|
|
4682
4682
|
const modalEl = document.createElement("div");
|
|
4683
4683
|
modalEl.classList.add("Modal");
|
|
4684
4684
|
if ((0, import_type_guards11.isNotUndefined)(className)) {
|
|
@@ -5109,8 +5109,7 @@ var import_type_guards14 = require("@wistia/type-guards");
|
|
|
5109
5109
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
5110
5110
|
var screenReaderOnlyStyle = import_styled_components15.css`
|
|
5111
5111
|
border: 0;
|
|
5112
|
-
clip:
|
|
5113
|
-
clip-path: inset(50%); /* modern but less support */
|
|
5112
|
+
clip-path: inset(50%);
|
|
5114
5113
|
height: 1px;
|
|
5115
5114
|
overflow: hidden;
|
|
5116
5115
|
padding: 0;
|
|
@@ -6756,7 +6755,9 @@ var disabledStyle3 = import_styled_components30.css`
|
|
|
6756
6755
|
var errorHoverStyle = import_styled_components30.css`
|
|
6757
6756
|
border-color: transparent;
|
|
6758
6757
|
`;
|
|
6759
|
-
var errorFocusedStyle = import_styled_components30.css
|
|
6758
|
+
var errorFocusedStyle = import_styled_components30.css`
|
|
6759
|
+
outline: none;
|
|
6760
|
+
`;
|
|
6760
6761
|
var errorStyle = import_styled_components30.css`
|
|
6761
6762
|
background-color: ${({ theme: theme2 }) => theme2.color.error100};
|
|
6762
6763
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
|
|
@@ -7688,7 +7689,7 @@ var import_react43 = require("react");
|
|
|
7688
7689
|
var import_react42 = require("react");
|
|
7689
7690
|
var useTimeoutFunc = (func, timeout2 = 0) => {
|
|
7690
7691
|
const readyRef = (0, import_react42.useRef)(false);
|
|
7691
|
-
const timeoutRef = (0, import_react42.useRef)();
|
|
7692
|
+
const timeoutRef = (0, import_react42.useRef)(void 0);
|
|
7692
7693
|
const callbackRef = (0, import_react42.useRef)(func);
|
|
7693
7694
|
const isReady = (0, import_react42.useCallback)(() => readyRef.current, []);
|
|
7694
7695
|
const set = (0, import_react42.useCallback)(() => {
|
|
@@ -9365,7 +9366,7 @@ var import_slate_react = require("slate-react");
|
|
|
9365
9366
|
var import_styled_components48 = require("styled-components");
|
|
9366
9367
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
9367
9368
|
var Wrapper = import_styled_components48.styled.span`
|
|
9368
|
-
display:
|
|
9369
|
+
display: inline-block;
|
|
9369
9370
|
user-select: none;
|
|
9370
9371
|
`;
|
|
9371
9372
|
var Image = import_styled_components48.styled.img`
|
|
@@ -11424,7 +11425,7 @@ var Menu2 = (0, import_react56.forwardRef)(
|
|
|
11424
11425
|
onClose,
|
|
11425
11426
|
...otherProps
|
|
11426
11427
|
}, ref) => {
|
|
11427
|
-
const menuRef = (0, import_react56.useRef)();
|
|
11428
|
+
const menuRef = (0, import_react56.useRef)(void 0);
|
|
11428
11429
|
const onClickOutsideFn = (0, import_type_guards59.isNotNil)(onClickOutside) ? onClickOutside : () => {
|
|
11429
11430
|
};
|
|
11430
11431
|
useOnClickOutside(menuRef, onClickOutsideFn);
|