@mottosports/motto-video-player 1.0.1-rc.18 → 1.0.1-rc.19

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.d.mts CHANGED
@@ -521,6 +521,4 @@ interface BigPlayIconProps {
521
521
  }
522
522
  declare const BigPlayIcon: React.FC<BigPlayIconProps>;
523
523
 
524
- declare function polyfillCryptoRandomUUID(): void;
525
-
526
- export { BigPlayIcon, CreativeWork, type CreativeWorkData, type CreativeWorkProps, CreativeWorksSortDirection, Event, type EventData, type EventProps, EventsSortDirection, type IconSizes, Player, type PlayerEvents, type PlayerProps, QueryProvider, SkipBackIcon, SkipForwardIcon, Video, type VideoData, type VideoListItem, type VideoProps, polyfillCryptoRandomUUID, queryClient };
524
+ export { BigPlayIcon, CreativeWork, type CreativeWorkData, type CreativeWorkProps, CreativeWorksSortDirection, Event, type EventData, type EventProps, EventsSortDirection, type IconSizes, Player, type PlayerEvents, type PlayerProps, QueryProvider, SkipBackIcon, SkipForwardIcon, Video, type VideoData, type VideoListItem, type VideoProps, queryClient };
package/dist/index.d.ts CHANGED
@@ -521,6 +521,4 @@ interface BigPlayIconProps {
521
521
  }
522
522
  declare const BigPlayIcon: React.FC<BigPlayIconProps>;
523
523
 
524
- declare function polyfillCryptoRandomUUID(): void;
525
-
526
- export { BigPlayIcon, CreativeWork, type CreativeWorkData, type CreativeWorkProps, CreativeWorksSortDirection, Event, type EventData, type EventProps, EventsSortDirection, type IconSizes, Player, type PlayerEvents, type PlayerProps, QueryProvider, SkipBackIcon, SkipForwardIcon, Video, type VideoData, type VideoListItem, type VideoProps, polyfillCryptoRandomUUID, queryClient };
524
+ export { BigPlayIcon, CreativeWork, type CreativeWorkData, type CreativeWorkProps, CreativeWorksSortDirection, Event, type EventData, type EventProps, EventsSortDirection, type IconSizes, Player, type PlayerEvents, type PlayerProps, QueryProvider, SkipBackIcon, SkipForwardIcon, Video, type VideoData, type VideoListItem, type VideoProps, queryClient };
package/dist/index.js CHANGED
@@ -39,7 +39,6 @@ __export(index_exports, {
39
39
  SkipBackIcon: () => SkipBackIcon,
40
40
  SkipForwardIcon: () => SkipForwardIcon,
41
41
  Video: () => Video,
42
- polyfillCryptoRandomUUID: () => polyfillCryptoRandomUUID,
43
42
  queryClient: () => queryClient
44
43
  });
45
44
  module.exports = __toCommonJS(index_exports);
@@ -1215,7 +1214,7 @@ var useQualityControl = (playerRef, qualityConfig, onQualityChange) => {
1215
1214
  if (!playerRef.current) return [];
1216
1215
  const tracks = playerRef.current.getVariantTracks();
1217
1216
  const qualities = tracks.filter(
1218
- (track, index, self2) => index === self2.findIndex((t) => t.height === track.height)
1217
+ (track, index, self) => index === self.findIndex((t) => t.height === track.height)
1219
1218
  ).map((track) => ({
1220
1219
  height: track.height || 0,
1221
1220
  bandwidth: track.bandwidth || 0,
@@ -3396,7 +3395,7 @@ var Player = (0, import_react12.forwardRef)(
3396
3395
  const containerStyle = isResponsive ? {
3397
3396
  aspectRatio: aspectRatio.toString()
3398
3397
  } : { width, height };
3399
- const videoClasses = isResponsive ? "motto-video-responsive" : "w-full h-full ";
3398
+ const videoClasses = isResponsive ? "motto-video-responsive w-full" : "w-full h-full ";
3400
3399
  const videoStyle = isResponsive ? {} : { width, height };
3401
3400
  const filteredVideoProps = { ...videoProps };
3402
3401
  delete filteredVideoProps.controls;
@@ -3908,37 +3907,8 @@ var useMessages = (locale) => {
3908
3907
  };
3909
3908
  var useMessages_default = useMessages;
3910
3909
 
3911
- // src/utils/crypto-polyfill.ts
3912
- function polyfillCryptoRandomUUID() {
3913
- if (typeof globalThis !== "undefined" && globalThis.crypto && !globalThis.crypto.randomUUID) {
3914
- globalThis.crypto.randomUUID = generateRandomUUID;
3915
- }
3916
- if (typeof window !== "undefined" && window.crypto && !window.crypto.randomUUID) {
3917
- window.crypto.randomUUID = generateRandomUUID;
3918
- }
3919
- if (typeof self !== "undefined" && self.crypto && !self.crypto.randomUUID) {
3920
- self.crypto.randomUUID = generateRandomUUID;
3921
- }
3922
- }
3923
- function generateRandomUUID() {
3924
- if (typeof crypto !== "undefined" && crypto.getRandomValues) {
3925
- const array = new Uint8Array(16);
3926
- crypto.getRandomValues(array);
3927
- array[6] = array[6] & 15 | 64;
3928
- array[8] = array[8] & 63 | 128;
3929
- const hex = Array.from(array).map((b) => b.toString(16).padStart(2, "0")).join("");
3930
- return `${hex.substring(0, 8)}-${hex.substring(8, 12)}-${hex.substring(12, 16)}-${hex.substring(16, 20)}-${hex.substring(20, 32)}`;
3931
- }
3932
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
3933
- const r = Math.random() * 16 | 0;
3934
- const v = c === "x" ? r : r & 3 | 8;
3935
- return v.toString(16);
3936
- });
3937
- }
3938
-
3939
3910
  // src/Video.tsx
3940
3911
  var import_jsx_runtime9 = require("react/jsx-runtime");
3941
- polyfillCryptoRandomUUID();
3942
3912
  var Video = ({
3943
3913
  videoId,
3944
3914
  publicKey,
@@ -4029,7 +3999,6 @@ var import_react15 = require("react");
4029
3999
  var import_tailwind_merge4 = require("tailwind-merge");
4030
4000
  var import_react_query2 = require("@tanstack/react-query");
4031
4001
  var import_jsx_runtime10 = require("react/jsx-runtime");
4032
- polyfillCryptoRandomUUID();
4033
4002
  var Event = ({
4034
4003
  publicKey,
4035
4004
  eventId,
@@ -4356,7 +4325,6 @@ var import_react16 = require("react");
4356
4325
  var import_tailwind_merge5 = require("tailwind-merge");
4357
4326
  var import_react_query3 = require("@tanstack/react-query");
4358
4327
  var import_jsx_runtime11 = require("react/jsx-runtime");
4359
- polyfillCryptoRandomUUID();
4360
4328
  var CreativeWork = ({
4361
4329
  publicKey,
4362
4330
  creativeWorkId,
@@ -4709,7 +4677,6 @@ var QueryProvider = ({ children }) => {
4709
4677
  SkipBackIcon,
4710
4678
  SkipForwardIcon,
4711
4679
  Video,
4712
- polyfillCryptoRandomUUID,
4713
4680
  queryClient
4714
4681
  });
4715
4682
  //# sourceMappingURL=index.js.map