@wistia/vhs 5.0.1 → 5.0.2-beta.06db6aef.db0ec08
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 +25 -21
- package/dist/index.js.map +1 -1
- package/package.json +27 -34
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v5.0.
|
|
3
|
+
* @license @wistia/vhs v5.0.2-beta.06db6aef.db0ec08
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2021-
|
|
5
|
+
* Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is unlicensed, all rights reserved.
|
|
8
8
|
*/
|
|
@@ -4310,7 +4310,7 @@ var createKeyPredicate = (keyFilter) => {
|
|
|
4310
4310
|
if (typeof keyFilter === "string") {
|
|
4311
4311
|
return (event) => event.key === keyFilter;
|
|
4312
4312
|
}
|
|
4313
|
-
if (keyFilter !== null && keyFilter !== void 0 &&
|
|
4313
|
+
if (keyFilter !== null && keyFilter !== void 0 && keyFilter) {
|
|
4314
4314
|
return () => true;
|
|
4315
4315
|
}
|
|
4316
4316
|
return () => false;
|
|
@@ -9460,7 +9460,7 @@ import { Transforms as Transforms3, Element as Element5, Node, Editor, Range, Pa
|
|
|
9460
9460
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
9461
9461
|
var isHashUrl = (urlString) => {
|
|
9462
9462
|
const urlPattern = /^#.+$/i;
|
|
9463
|
-
return
|
|
9463
|
+
return urlPattern.test(urlString);
|
|
9464
9464
|
};
|
|
9465
9465
|
var isLinkActive = (editor) => {
|
|
9466
9466
|
const [link] = Editor.nodes(editor, {
|
|
@@ -10651,11 +10651,11 @@ var ListComponent = styled49.ul`
|
|
|
10651
10651
|
list-style-position: outside;
|
|
10652
10652
|
margin: ${({ theme: theme2 }) => `0 0 ${theme2.spacing.space01}`};
|
|
10653
10653
|
padding: ${({ theme: theme2 }) => `0 0 0 ${theme2.spacing.space04}`};
|
|
10654
|
-
${({ variant }) => variant === "unbulleted" && unbulletedStyle};
|
|
10655
|
-
${({ variant }) => variant === "spaces" && spacesStyle};
|
|
10656
|
-
${({ variant }) => variant === "commas" && commasStyle};
|
|
10657
|
-
${({ variant }) => variant === "slashes" && slashesStyle};
|
|
10658
|
-
${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
|
|
10654
|
+
${({ $variant }) => $variant === "unbulleted" && unbulletedStyle};
|
|
10655
|
+
${({ $variant }) => $variant === "spaces" && spacesStyle};
|
|
10656
|
+
${({ $variant }) => $variant === "commas" && commasStyle};
|
|
10657
|
+
${({ $variant }) => $variant === "slashes" && slashesStyle};
|
|
10658
|
+
${({ $variant }) => $variant === "breadcrumbs" && breadcrumbsStyle};
|
|
10659
10659
|
|
|
10660
10660
|
> li:last-child {
|
|
10661
10661
|
margin-bottom: 0;
|
|
@@ -10677,8 +10677,8 @@ var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
|
10677
10677
|
return /* @__PURE__ */ jsx192(
|
|
10678
10678
|
ListComponent,
|
|
10679
10679
|
{
|
|
10680
|
+
$variant: variant,
|
|
10680
10681
|
as: elementType,
|
|
10681
|
-
variant,
|
|
10682
10682
|
...otherProps,
|
|
10683
10683
|
children: listItems
|
|
10684
10684
|
}
|
|
@@ -11217,7 +11217,6 @@ var MenuComponent = styled54.div`
|
|
|
11217
11217
|
}
|
|
11218
11218
|
`;
|
|
11219
11219
|
var dangerousMenuItemStyles2 = css25`
|
|
11220
|
-
/* stylelint-disable no-descending-specificity */
|
|
11221
11220
|
button,
|
|
11222
11221
|
a {
|
|
11223
11222
|
&:hover {
|
|
@@ -12331,7 +12330,7 @@ var RangeSelectorCalendar = ({
|
|
|
12331
12330
|
}, [internalRange, onIsValidChangeDebounced]);
|
|
12332
12331
|
useEffect22(() => {
|
|
12333
12332
|
if (isValidRange(range)) {
|
|
12334
|
-
let date;
|
|
12333
|
+
let date = void 0;
|
|
12335
12334
|
if (priorInternalRange && !isEqual3(range.start, priorInternalRange.start)) {
|
|
12336
12335
|
date = range.start;
|
|
12337
12336
|
}
|
|
@@ -12557,7 +12556,7 @@ import isEqual4 from "react-fast-compare";
|
|
|
12557
12556
|
// src/private/components/RangeSelectorInput/utils.ts
|
|
12558
12557
|
import { isValid as isValid2, getDaysInMonth, getYear, isBefore as isBefore3, isSameDay as isSameDay2, compareAsc as compareAsc2 } from "date-fns";
|
|
12559
12558
|
import { isNotNil as isNotNil39 } from "@wistia/type-guards";
|
|
12560
|
-
var timeout;
|
|
12559
|
+
var timeout = void 0;
|
|
12561
12560
|
var preventDoubleClick = (event) => {
|
|
12562
12561
|
const delay = 200;
|
|
12563
12562
|
if (isNotNil39(timeout)) {
|
|
@@ -12802,7 +12801,7 @@ var getNextValue = ({
|
|
|
12802
12801
|
return { nextValue, nextKeyCount, shouldApply };
|
|
12803
12802
|
};
|
|
12804
12803
|
var getNextSelection = ({ event, currentSelection }) => {
|
|
12805
|
-
let nextSelection;
|
|
12804
|
+
let nextSelection = void 0;
|
|
12806
12805
|
if (isMoveRightChar(event)) {
|
|
12807
12806
|
nextSelection = getSelectionFromMove(currentSelection, 1, DATE_PART_POSITIONS);
|
|
12808
12807
|
if (!isEqual4(nextSelection, currentSelection)) {
|
|
@@ -13377,10 +13376,13 @@ var Slider = ({
|
|
|
13377
13376
|
children: /* @__PURE__ */ jsx209(
|
|
13378
13377
|
ReactSlider,
|
|
13379
13378
|
{
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
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 } : {},
|
|
13384
13386
|
disabled,
|
|
13385
13387
|
marks: step,
|
|
13386
13388
|
max,
|
|
@@ -13398,10 +13400,11 @@ var Slider = ({
|
|
|
13398
13400
|
);
|
|
13399
13401
|
},
|
|
13400
13402
|
renderThumb: (thumbProps, thumbState) => {
|
|
13401
|
-
const { key, as, ...restProps } = thumbProps;
|
|
13403
|
+
const { key, as, ref, ...restProps } = thumbProps;
|
|
13402
13404
|
return /* @__PURE__ */ jsx209(
|
|
13403
13405
|
StyledThumb,
|
|
13404
13406
|
{
|
|
13407
|
+
ref,
|
|
13405
13408
|
...restProps,
|
|
13406
13409
|
"data-testid": `${dataTestId}-thumb-${thumbState.index}`
|
|
13407
13410
|
},
|
|
@@ -13409,10 +13412,11 @@ var Slider = ({
|
|
|
13409
13412
|
);
|
|
13410
13413
|
},
|
|
13411
13414
|
renderTrack: (trackProps, trackState) => {
|
|
13412
|
-
const { key, as, ...restProps } = trackProps;
|
|
13415
|
+
const { key, as, ref, ...restProps } = trackProps;
|
|
13413
13416
|
return /* @__PURE__ */ jsx209(
|
|
13414
13417
|
StyledTrack,
|
|
13415
13418
|
{
|
|
13419
|
+
ref,
|
|
13416
13420
|
...restProps,
|
|
13417
13421
|
$isFilledTrack: checkIfFilledTrack(trackState),
|
|
13418
13422
|
"data-testid": `${dataTestId}-track-${trackState.index}`
|
|
@@ -13421,7 +13425,7 @@ var Slider = ({
|
|
|
13421
13425
|
);
|
|
13422
13426
|
},
|
|
13423
13427
|
step,
|
|
13424
|
-
|
|
13428
|
+
...isNumber(value) || isNonEmptyArray(value) ? { value } : {}
|
|
13425
13429
|
}
|
|
13426
13430
|
)
|
|
13427
13431
|
}
|