react-datocms
Advanced tools
Comparing version 7.0.4 to 7.1.0-0
@@ -60,3 +60,3 @@ "use strict"; | ||
exports.VideoPlayer = (0, react_1.forwardRef)((props, ref) => { | ||
const { data = {}, disableCookies = true, preload = 'metadata', style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "preload", "style"]); | ||
const { data = {}, disableCookies = true, disableTracking = true, preload = 'metadata', style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "disableTracking", "preload", "style"]); | ||
const { title, playbackId, style: styleFromHook, placeholder, } = (0, index_js_1.useVideoPlayer)({ | ||
@@ -66,4 +66,4 @@ data, | ||
const style = Object.assign(Object.assign({}, styleFromHook), styleFromProps); | ||
return (react_1.default.createElement(lazy_1.default, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, playbackId: playbackId, style: style, placeholder: placeholder }, rest))); | ||
return (react_1.default.createElement(lazy_1.default, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, disableTracking: disableTracking, playbackId: playbackId, style: style, placeholder: placeholder }, rest))); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -31,3 +31,3 @@ 'use client'; | ||
export const VideoPlayer = forwardRef((props, ref) => { | ||
const { data = {}, disableCookies = true, preload = 'metadata', style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "preload", "style"]); | ||
const { data = {}, disableCookies = true, disableTracking = true, preload = 'metadata', style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "disableTracking", "preload", "style"]); | ||
const { title, playbackId, style: styleFromHook, placeholder, } = useVideoPlayer({ | ||
@@ -37,4 +37,4 @@ data, | ||
const style = Object.assign(Object.assign({}, styleFromHook), styleFromProps); | ||
return (React.createElement(MuxPlayer, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, playbackId: playbackId, style: style, placeholder: placeholder }, rest))); | ||
return (React.createElement(MuxPlayer, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, disableTracking: disableTracking, playbackId: playbackId, style: style, placeholder: placeholder }, rest))); | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "react-datocms", | ||
"version": "7.0.4", | ||
"version": "7.1.0-0", | ||
"engines": { | ||
@@ -98,3 +98,3 @@ "node": ">=8.0.0" | ||
"@biomejs/biome": "^1.6.3", | ||
"@mux/mux-player-react": "*", | ||
"@mux/mux-player-react": ">=2.5.0 <3", | ||
"@types/enzyme": "^3.10.8", | ||
@@ -119,3 +119,3 @@ "@types/enzyme-to-json": "^1.5.4", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^29.1.2", | ||
"ts-jest": "^29.2.5", | ||
"typescript": "^5.0.0" | ||
@@ -138,2 +138,3 @@ }, | ||
"dependencies": { | ||
"@mux/mux-player-react": "*", | ||
"datocms-listen": "^0.1.9", | ||
@@ -144,5 +145,4 @@ "datocms-structured-text-generic-html-renderer": "^4.0.1", | ||
"react-string-replace": "^1.1.0", | ||
"use-deep-compare-effect": "^1.6.1", | ||
"@mux/mux-player-react": "*" | ||
"use-deep-compare-effect": "^1.6.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
354821
4564
1