@wistia/ui 0.18.3-beta.20e95988.fbac8a8 → 0.18.3-beta.a90ddf43.95aaf02
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 +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +18 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.3-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.3-beta.a90ddf43.95aaf02
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6871,13 +6871,13 @@ var SpeedIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
|
6871
6871
|
|
|
6872
6872
|
// src/components/Icon/icons/SpinnerIcon.tsx
|
|
6873
6873
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6874
|
-
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.
|
|
6874
|
+
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
|
|
6875
6875
|
"svg",
|
|
6876
6876
|
{
|
|
6877
6877
|
...props,
|
|
6878
6878
|
viewBox: "0 0 24 24",
|
|
6879
6879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6880
|
-
children:
|
|
6880
|
+
children: [
|
|
6881
6881
|
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6882
6882
|
"path",
|
|
6883
6883
|
{
|
|
@@ -6895,10 +6895,10 @@ var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
|
6895
6895
|
keyTimes: "0;1",
|
|
6896
6896
|
repeatCount: "indefinite",
|
|
6897
6897
|
type: "rotate",
|
|
6898
|
-
values: "0
|
|
6898
|
+
values: "0 0 0;360 0 0"
|
|
6899
6899
|
}
|
|
6900
6900
|
)
|
|
6901
|
-
]
|
|
6901
|
+
]
|
|
6902
6902
|
}
|
|
6903
6903
|
);
|
|
6904
6904
|
|
|
@@ -18209,6 +18209,9 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
18209
18209
|
left: relativeLeft
|
|
18210
18210
|
};
|
|
18211
18211
|
};
|
|
18212
|
+
var hasValidThumbnailUrl = (thumbnailUrl) => {
|
|
18213
|
+
return (0, import_type_guards74.isNotNil)(thumbnailUrl) && (0, import_type_guards74.isNonEmptyString)(thumbnailUrl);
|
|
18214
|
+
};
|
|
18212
18215
|
var Thumbnail = (0, import_react100.forwardRef)(
|
|
18213
18216
|
({
|
|
18214
18217
|
gradientBackground = "defaultMidOne",
|
|
@@ -18227,7 +18230,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18227
18230
|
const storyboardElementRef = (0, import_react100.useRef)(null);
|
|
18228
18231
|
const [cursorPosition, setCursorPosition] = (0, import_react100.useState)(null);
|
|
18229
18232
|
const backgroundUrl = (0, import_react100.useMemo)(
|
|
18230
|
-
() => thumbnailImageType === "square" && (
|
|
18233
|
+
() => thumbnailImageType === "square" && hasValidThumbnailUrl(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
18231
18234
|
[thumbnailImageType, thumbnailUrl]
|
|
18232
18235
|
);
|
|
18233
18236
|
const isScrubbable = (0, import_type_guards74.isNotNil)(storyboard);
|
|
@@ -18278,7 +18281,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18278
18281
|
width
|
|
18279
18282
|
}
|
|
18280
18283
|
);
|
|
18281
|
-
} else if ((
|
|
18284
|
+
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
18282
18285
|
thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18283
18286
|
ThumbnailImage,
|
|
18284
18287
|
{
|