diff --git a/docs/video-player.md b/docs/video-player.md
index deb79a7..6230ad8 100644
--- a/docs/video-player.md
+++ b/docs/video-player.md
@@ -105,6 +105,7 @@ DatoCMS GraphQL API.
Compared to the ``, **some prop default values are different** on ``
- `disableCookies` is normally true, unless you explicitly set the prop to `false`
+- `disableTracking` is normally true, unless you explicitly set it to `false`
- `preload` defaults to `metadata`, for an optimal UX experience together with saved bandwidth
- the video height and width, when available in the `data` props, are used to set `{ aspectRatio: "[width] / [height]"}` for the ``'s `style`
diff --git a/examples/package-lock.json b/examples/package-lock.json
index 401af9f..44dea00 100644
--- a/examples/package-lock.json
+++ b/examples/package-lock.json
@@ -19,9 +19,10 @@
}
},
"node_modules/@0no-co/graphql.web": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/@0no-co/graphql.web/-/graphql.web-1.0.6.tgz",
- "integrity": "sha512-KZ7TnwMcQJcFgzjoY623AVxtlDQonkqp3rSz0wb15/jHPyU1v5gynUibEpuutDeoyGJ5Tp+FwxjGyDGDwq3vIw==",
+ "version": "1.0.12",
+ "resolved": "https://registry.npmjs.org/@0no-co/graphql.web/-/graphql.web-1.0.12.tgz",
+ "integrity": "sha512-BTDjjsV/zSPy5fqItwm+KWUfh9CSe9tTtR6rCB72ddtkAxdcHbi4Ir4r/L1Et4lyxmL+i7Rb3m9sjLLi9tYrzA==",
+ "license": "MIT",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
},
@@ -3789,33 +3790,36 @@
"integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A=="
},
"node_modules/@mux/mux-player": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.4.1.tgz",
- "integrity": "sha512-Lm7KkG/lD1tqqqtL1nacZsCll9JY4gVNGxUw/MPYmgIevYACYtQ/76iaEtaN67DmHYYxep1QUpYEDZPXallkEg==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.5.0.tgz",
+ "integrity": "sha512-Tps+GsWlUuzJHwZpHHb/47OGKF7MXr6ca2RRL/S/7TRX5Y45qROoZiqZ859AxZW2UPcy7chFR6LROd4X7PSMQQ==",
+ "license": "MIT",
"dependencies": {
- "@mux/mux-video": "0.17.5",
- "@mux/playback-core": "0.22.4",
- "media-chrome": "~3.1.1"
+ "@mux/mux-video": "0.18.0",
+ "@mux/playback-core": "0.23.0",
+ "media-chrome": "~3.2.1"
}
},
"node_modules/@mux/mux-video": {
- "version": "0.17.5",
- "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.17.5.tgz",
- "integrity": "sha512-EMLflDnr/o7XQiWKfwnq9BJmj30kpSszzXwpXE4hmBIgc9JAuF3Hl94qv1kyWQAUhrO5hnnOxwGHgv0FvkJ1GQ==",
+ "version": "0.18.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.18.0.tgz",
+ "integrity": "sha512-uRheOAEe47k4nadoH/q/5/sfgd1amr6OSesh1yTQPDtAICIy8zCOHyLLOCaJl7vVZxw9/JRQuwO6MwjzjHhdng==",
+ "license": "MIT",
"dependencies": {
- "@mux/playback-core": "0.22.4",
+ "@mux/playback-core": "0.23.0",
"castable-video": "~1.0.6",
"custom-media-element": "~1.2.3",
"media-tracks": "~0.3.0"
}
},
"node_modules/@mux/playback-core": {
- "version": "0.22.4",
- "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.22.4.tgz",
- "integrity": "sha512-f/jWcYbFRjXjdFRNq3MK79D1YHTqvwcfchRLYukE384P3cb027dru+bSxMKESrfkhAhnWFy7fdq/llawl7SU9g==",
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.23.0.tgz",
+ "integrity": "sha512-7MX5xnJ+rFReVDAWKEwHqnfOyQkX+dzYysrTLAy0L1xJMsIhMhAD+wwvkDC/rRgtha5jHF863GCwrJAHmnxSCA==",
+ "license": "MIT",
"dependencies": {
- "hls.js": "~1.4.13",
- "mux-embed": "~4.30.0"
+ "hls.js": "~1.5.8",
+ "mux-embed": "~5.2.0"
}
},
"node_modules/@nicolo-ribaudo/eslint-scope-5-internals": {
@@ -5274,7 +5278,8 @@
"node_modules/array-flatten": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-3.0.0.tgz",
- "integrity": "sha512-zPMVc3ZYlGLNk4mpK1NzP2wg0ml9t7fUgDsayR5Y5rSzxQilzR9FGu/EH2jQOcKSAeAfWeylyW8juy3OkWRvNA=="
+ "integrity": "sha512-zPMVc3ZYlGLNk4mpK1NzP2wg0ml9t7fUgDsayR5Y5rSzxQilzR9FGu/EH2jQOcKSAeAfWeylyW8juy3OkWRvNA==",
+ "license": "MIT"
},
"node_modules/array-includes": {
"version": "3.1.7",
@@ -6109,13 +6114,20 @@
}
},
"node_modules/castable-video": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.6.tgz",
- "integrity": "sha512-Ykw2uL4ZQnqX0j9KF9ksbDpyc8I53mFMswCKW9yV5TrwpWkdNqRHLlcU85W30BIw61fgDjgm0Xh5G0rbcmv23g==",
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.10.tgz",
+ "integrity": "sha512-tJgUv+8/zE191y8EKojvB0eKIyKA9obIttd6Wpdm6x2qBmuwZ7wDgzVCSmf5cN2v9jBiuu0s7O5poz8a8cFX/w==",
+ "license": "MIT",
"dependencies": {
- "custom-media-element": "~1.2.2"
+ "custom-media-element": "~1.3.2"
}
},
+ "node_modules/castable-video/node_modules/custom-media-element": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.3.3.tgz",
+ "integrity": "sha512-5Tenv3iLP8ZiLHcT0qSyfDPrqzkCMxczeLY7cTndbsMF7EkVgL/74a6hxNrn/F6RuD74TLK6R2r0GsmntTTtRg==",
+ "license": "MIT"
+ },
"node_modules/chalk": {
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
@@ -6914,7 +6926,8 @@
"node_modules/custom-media-element": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.2.3.tgz",
- "integrity": "sha512-xr9Hbrslkjm1fapJP5hL98pySeZmNepBSefQS/XTxynamqPTfRBK5MnhReMOiAj8xvJApVPrVnlYxIrknay8jg=="
+ "integrity": "sha512-xr9Hbrslkjm1fapJP5hL98pySeZmNepBSefQS/XTxynamqPTfRBK5MnhReMOiAj8xvJApVPrVnlYxIrknay8jg==",
+ "license": "MIT"
},
"node_modules/damerau-levenshtein": {
"version": "1.0.8",
@@ -6938,22 +6951,25 @@
"version": "0.1.15",
"resolved": "https://registry.npmjs.org/datocms-listen/-/datocms-listen-0.1.15.tgz",
"integrity": "sha512-0LcdKYW/ilWdyrRzQ+YbkAk4r2dge63vzHtfv19L8pfbfYurQgXP9/ck703QZL//YqBoc0OKBS4BP4WUQ6JDKA==",
+ "license": "MIT",
"dependencies": {
"@0no-co/graphql.web": "^1.0.1"
}
},
"node_modules/datocms-structured-text-generic-html-renderer": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/datocms-structured-text-generic-html-renderer/-/datocms-structured-text-generic-html-renderer-2.1.12.tgz",
- "integrity": "sha512-1Vj/24iaKUcNm3xG9kD09EHz00rIVIQVD6RSGNBvi+BQPPJGdGfFUcPME9xQv3KZrcw/pyNkAkBXO2q4wqEslw==",
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/datocms-structured-text-generic-html-renderer/-/datocms-structured-text-generic-html-renderer-4.0.2.tgz",
+ "integrity": "sha512-yoCLQBWpIUbjbAXpo57o23OGtR/XsXcJAti/rcqZVJSQEtFxOowMnT1t3/QGhAfmIU1/61nFClxzEBivJw3C6Q==",
+ "license": "MIT",
"dependencies": {
- "datocms-structured-text-utils": "^2.1.12"
+ "datocms-structured-text-utils": "^4.0.1"
}
},
"node_modules/datocms-structured-text-utils": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/datocms-structured-text-utils/-/datocms-structured-text-utils-2.1.12.tgz",
- "integrity": "sha512-tZtiPN/sEjl+4Z6igojPdap6Miy0Z6VO6Afor3vcyY/8PIwKVGbTsdd5trD+skWPCPRZVNzKpfYoAVziXWTL8Q==",
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/datocms-structured-text-utils/-/datocms-structured-text-utils-4.0.1.tgz",
+ "integrity": "sha512-2rK4bZfzKpdKw2AZhnnD043QkGOUaJDOUGPrQHo5w4hvU4jTBGGxoaTg4KIb3Q5Yo+XUFvreb+U0+86xdh7I+Q==",
+ "license": "MIT",
"dependencies": {
"array-flatten": "^3.0.0"
}
@@ -9177,9 +9193,10 @@
}
},
"node_modules/hls.js": {
- "version": "1.4.14",
- "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.4.14.tgz",
- "integrity": "sha512-UppQjyvPVclg+6t2KY/Rv03h0+bA5u6zwqVoz4LAC/L0fgYmIaCD7ZCrwe8WI1Gv01be1XL0QFsRbSdIHV/Wbw=="
+ "version": "1.5.17",
+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.5.17.tgz",
+ "integrity": "sha512-wA66nnYFvQa1o4DO/BFgLNRKnBTVXpNeldGRBJ2Y0SvFtdwvFKCbqa9zhHoZLoxHhZ+jYsj3aIBkWQQCPNOhMw==",
+ "license": "Apache-2.0"
},
"node_modules/hoopy": {
"version": "0.1.4",
@@ -13491,14 +13508,16 @@
"integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA=="
},
"node_modules/media-chrome": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-3.1.1.tgz",
- "integrity": "sha512-EqofPNX7Eq1dv9ixuRo51Wv/Wo3P4PIPjY4iM1jGqu/Jyond8BqdigQKdhxPM2rH9SohdUXZvUWS1OJ1xMO6Ww=="
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-3.2.5.tgz",
+ "integrity": "sha512-tTsgS7x77Bn4p/wca/Si/7A+Q3z9DzKq0SOkroQvrNMXBVyQasMayDcsKg5Ur5NGsymZfttnJi7tXvVr/tPj8g==",
+ "license": "MIT"
},
"node_modules/media-tracks": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.0.tgz",
- "integrity": "sha512-kicD8eOFwe6nD7jn7iM/0yuLzWuo6abWHURYwY7NhxL1dBif+lt0on4rLTs6VhKwAEE/BjT3wr+0vn1w8SBpag=="
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.3.tgz",
+ "integrity": "sha512-9P2FuUHnZZ3iji+2RQk7Zkh5AmZTnOG5fODACnjhCVveX1McY3jmCRHofIEI+yTBqplz7LXy48c7fQ3Uigp88w==",
+ "license": "MIT"
},
"node_modules/media-typer": {
"version": "0.3.0",
@@ -13723,9 +13742,10 @@
}
},
"node_modules/mux-embed": {
- "version": "4.30.0",
- "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-4.30.0.tgz",
- "integrity": "sha512-XAgAp4CEvsiZL26GbruzeG1g33OWyrzuskDMavXUxDufTxS0/AxAhwoTTRqEzEJS9vnZa/X9R2GV3xRX1XMp2w=="
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-5.2.1.tgz",
+ "integrity": "sha512-NukHw91xeEVDBeXVDBpi2BvXNix7gSuvdtyvOph5yR/ROn1hHbTlcYWoKQyCyJX9frsF00UROEul+S8wPzU3aQ==",
+ "license": "MIT"
},
"node_modules/mz": {
"version": "2.7.0",
@@ -15892,15 +15912,15 @@
"integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg=="
},
"node_modules/react-datocms": {
- "version": "5.0.3",
+ "version": "7.0.4",
"resolved": "file:../react-datocms.tgz",
- "integrity": "sha512-2JoO/u01t274aYSJ/VzSc5zQgORGFknpU1Bo9mewnrD1HxjtVMpGtlX8ON9zMxX0VDwuIaQsA9ckSOkOXZ6WJA==",
+ "integrity": "sha512-8cB5FsIo6dcTddd93+P0vU/HcTZxHSRT6SXqdrVFopbBhfR5gy66stHJQvnNZnuqypRUL+M9mhdRayMOcOdZdw==",
"license": "MIT",
"dependencies": {
- "@mux/mux-player-react": "*",
+ "@mux/mux-player-react": "=2.5.0",
"datocms-listen": "^0.1.9",
- "datocms-structured-text-generic-html-renderer": "^2.0.1",
- "datocms-structured-text-utils": "^2.0.1",
+ "datocms-structured-text-generic-html-renderer": "^4.0.1",
+ "datocms-structured-text-utils": "^4.0.1",
"react-intersection-observer": "^9.4.3",
"react-string-replace": "^1.1.0",
"use-deep-compare-effect": "^1.6.1"
@@ -15909,16 +15929,17 @@
"node": ">=8.0.0"
},
"peerDependencies": {
- "react": ">= 16.12.0"
+ "react": ">= 16.12.0 || ^19.0.0-rc"
}
},
"node_modules/react-datocms/node_modules/@mux/mux-player-react": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.4.1.tgz",
- "integrity": "sha512-grM6T847fKnzlK786NG1AxhNS+6A78pEPc5zG4yYvKe3ayGNTOpq/Hnm9pDVkOx5/uMI/yCdSsfiNyytYaw8qA==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.5.0.tgz",
+ "integrity": "sha512-HTJ55X+ngrR2tVgvCEc6edihyHGYkB4C8TqPNM+tbHeQqIevvyatJAMlZHZbpFEdOLUeL3I/PwsDQ6FOV7csKw==",
+ "license": "MIT",
"dependencies": {
- "@mux/mux-player": "2.4.1",
- "@mux/playback-core": "0.22.4",
+ "@mux/mux-player": "2.5.0",
+ "@mux/playback-core": "0.23.0",
"prop-types": "^15.7.2"
},
"peerDependencies": {
@@ -15936,12 +15957,13 @@
}
},
"node_modules/react-datocms/node_modules/react-intersection-observer": {
- "version": "9.8.1",
- "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.8.1.tgz",
- "integrity": "sha512-QzOFdROX8D8MH3wE3OVKH0f3mLjKTtEN1VX/rkNuECCff+aKky0pIjulDhr3Ewqj5el/L+MhBkM3ef0Tbt+qUQ==",
+ "version": "9.13.1",
+ "resolved": "https://registry.npmjs.org/react-intersection-observer/-/react-intersection-observer-9.13.1.tgz",
+ "integrity": "sha512-tSzDaTy0qwNPLJHg8XZhlyHTgGW6drFKTtvjdL+p6um12rcnp8Z5XstE+QNBJ7c64n5o0Lj4ilUleA41bmDoMw==",
+ "license": "MIT",
"peerDependencies": {
- "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
+ "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"react-dom": {
@@ -16241,6 +16263,7 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/react-string-replace/-/react-string-replace-1.1.1.tgz",
"integrity": "sha512-26TUbLzLfHQ5jO5N7y3Mx88eeKo0Ml0UjCQuX4BMfOd/JX+enQqlKpL1CZnmjeBRvQE8TR+ds9j1rqx9CxhKHQ==",
+ "license": "MIT",
"engines": {
"node": ">=0.12.0"
}
@@ -18327,6 +18350,7 @@
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/use-deep-compare-effect/-/use-deep-compare-effect-1.8.1.tgz",
"integrity": "sha512-kbeNVZ9Zkc0RFGpfMN3MNfaKNvcLNyxOAAd9O4CBZ+kCBXXscn9s/4I+8ytUER4RDpEYs5+O6Rs4PqiZ+rHr5Q==",
+ "license": "MIT",
"dependencies": {
"@babel/runtime": "^7.12.5",
"dequal": "^2.0.2"
diff --git a/examples/src/QuerySubscriptionExample/index.js b/examples/src/QuerySubscriptionExample/index.js
index 95fef3d..caeb835 100644
--- a/examples/src/QuerySubscriptionExample/index.js
+++ b/examples/src/QuerySubscriptionExample/index.js
@@ -3,9 +3,9 @@ import {
StructuredText,
renderMetaTags,
useQuerySubscription,
-} from 'react-datocms';
-import { Helmet } from 'react-helmet';
-import './style.css';
+} from "react-datocms";
+import { Helmet } from "react-helmet";
+import "./style.css";
const RESPONSIVE_IMAGE_FRAGMENT = `
aspectRatio
@@ -66,22 +66,22 @@ export default function QuerySubscriptionExample() {
const { status, error, data } = useQuerySubscription({
query,
variables: { first: 4 },
- token: 'faeb9172e232a75339242faafb9e56de8c8f13b735f7090964',
+ token: "faeb9172e232a75339242faafb9e56de8c8f13b735f7090964",
});
const metaTags = data ? [...data.page.seo, ...data.site.favicon] : [];
const statusMessage = {
- connecting: 'Connecting to DatoCMS...',
- connected: 'Connected to DatoCMS, receiving live updates!',
- closed: 'Connection closed',
+ connecting: "Connecting to DatoCMS...",
+ connected: "Connected to DatoCMS, receiving live updates!",
+ closed: "Connection closed",
};
return (
{renderMetaTags(metaTags)}
- {status === 'connected' &&
}
+ {status === "connected" &&
}
{statusMessage[status]}
{error && (
@@ -96,10 +96,12 @@ export default function QuerySubscriptionExample() {
{data?.blogPosts.map((blogPost) => (
-
+ {blogPost.coverImage?.responsiveImage && (
+
+ )}
diff --git a/package-lock.json b/package-lock.json
index a985c2e..22367c5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
"version": "7.0.4",
"license": "MIT",
"dependencies": {
- "@mux/mux-player-react": "*",
+ "@mux/mux-player-react": "=2.5.0",
"datocms-listen": "^0.1.9",
"datocms-structured-text-generic-html-renderer": "^4.0.1",
"datocms-structured-text-utils": "^4.0.1",
@@ -19,7 +19,7 @@
},
"devDependencies": {
"@biomejs/biome": "^1.6.3",
- "@mux/mux-player-react": "*",
+ "@mux/mux-player-react": "=2.5.0",
"@types/enzyme": "^3.10.8",
"@types/enzyme-to-json": "^1.5.4",
"@types/jest": "^29.5.11",
@@ -46,7 +46,7 @@
"node": ">=8.0.0"
},
"peerDependencies": {
- "react": ">= 16.12.0"
+ "react": ">= 16.12.0 || ^19.0.0-rc"
}
},
"node_modules/@ampproject/remapping": {
@@ -1277,24 +1277,24 @@
}
},
"node_modules/@mux/mux-player": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.3.2.tgz",
- "integrity": "sha512-ar58+vNGHCytUDM9+Q+yasFCRayqvw5UwyqUVibPR4k0yRML7PTqejAZNzi9obqgUW/yKsZEbV7foKDYcJL6uw==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.5.0.tgz",
+ "integrity": "sha512-Tps+GsWlUuzJHwZpHHb/47OGKF7MXr6ca2RRL/S/7TRX5Y45qROoZiqZ859AxZW2UPcy7chFR6LROd4X7PSMQQ==",
"dev": true,
"dependencies": {
- "@mux/mux-video": "0.17.2",
- "@mux/playback-core": "0.22.1",
- "media-chrome": "~2.1.0"
+ "@mux/mux-video": "0.18.0",
+ "@mux/playback-core": "0.23.0",
+ "media-chrome": "~3.2.1"
}
},
"node_modules/@mux/mux-player-react": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.3.2.tgz",
- "integrity": "sha512-WpxFRM6C617sOw4MdyjtPP2GXl2QISCKaYuFTBps9E6E8pSdGeg4sVybPESMfPPTnelUWbcYPf4DpIb8OQOeEA==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.5.0.tgz",
+ "integrity": "sha512-HTJ55X+ngrR2tVgvCEc6edihyHGYkB4C8TqPNM+tbHeQqIevvyatJAMlZHZbpFEdOLUeL3I/PwsDQ6FOV7csKw==",
"dev": true,
"dependencies": {
- "@mux/mux-player": "2.3.2",
- "@mux/playback-core": "0.22.1",
+ "@mux/mux-player": "2.5.0",
+ "@mux/playback-core": "0.23.0",
"prop-types": "^15.7.2"
},
"peerDependencies": {
@@ -1312,25 +1312,25 @@
}
},
"node_modules/@mux/mux-video": {
- "version": "0.17.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.17.2.tgz",
- "integrity": "sha512-IIGZhUYPClUIOQ/VZZ7kjYcxTcSSSvm+yiv/+c4hHlreO1XLly8Oe1Dzq2xx12t1b+UUupIzx2Cnc8bzVEQTKA==",
+ "version": "0.18.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.18.0.tgz",
+ "integrity": "sha512-uRheOAEe47k4nadoH/q/5/sfgd1amr6OSesh1yTQPDtAICIy8zCOHyLLOCaJl7vVZxw9/JRQuwO6MwjzjHhdng==",
"dev": true,
"dependencies": {
- "@mux/playback-core": "0.22.1",
+ "@mux/playback-core": "0.23.0",
"castable-video": "~1.0.6",
- "custom-media-element": "~1.2.2",
+ "custom-media-element": "~1.2.3",
"media-tracks": "~0.3.0"
}
},
"node_modules/@mux/playback-core": {
- "version": "0.22.1",
- "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.22.1.tgz",
- "integrity": "sha512-tsPMpcu/xYHQtO6USZwg80CDaXyc7UbyJGoqMU9P1o0e15X/KDcz179nhr6k0CXafg/yiwAlxPNGXnpwToWJ4w==",
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.23.0.tgz",
+ "integrity": "sha512-7MX5xnJ+rFReVDAWKEwHqnfOyQkX+dzYysrTLAy0L1xJMsIhMhAD+wwvkDC/rRgtha5jHF863GCwrJAHmnxSCA==",
"dev": true,
"dependencies": {
- "hls.js": "~1.4.13",
- "mux-embed": "~4.30.0"
+ "hls.js": "~1.5.8",
+ "mux-embed": "~5.2.0"
}
},
"node_modules/@nodelib/fs.scandir": {
@@ -2551,14 +2551,20 @@
"peer": true
},
"node_modules/castable-video": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.6.tgz",
- "integrity": "sha512-Ykw2uL4ZQnqX0j9KF9ksbDpyc8I53mFMswCKW9yV5TrwpWkdNqRHLlcU85W30BIw61fgDjgm0Xh5G0rbcmv23g==",
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.10.tgz",
+ "integrity": "sha512-tJgUv+8/zE191y8EKojvB0eKIyKA9obIttd6Wpdm6x2qBmuwZ7wDgzVCSmf5cN2v9jBiuu0s7O5poz8a8cFX/w==",
"dev": true,
"dependencies": {
- "custom-media-element": "~1.2.2"
+ "custom-media-element": "~1.3.2"
}
},
+ "node_modules/castable-video/node_modules/custom-media-element": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.3.3.tgz",
+ "integrity": "sha512-5Tenv3iLP8ZiLHcT0qSyfDPrqzkCMxczeLY7cTndbsMF7EkVgL/74a6hxNrn/F6RuD74TLK6R2r0GsmntTTtRg==",
+ "dev": true
+ },
"node_modules/ccount": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz",
@@ -3180,9 +3186,9 @@
"dev": true
},
"node_modules/custom-media-element": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.2.2.tgz",
- "integrity": "sha512-tI+NjVRS485QlSxHeM3JIjdEZSJMLOZVp41/vvWukDmIkZSoYG9gLYl9GFZGBpY42UbRVo1eMlF7XkI/IiDHzQ==",
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.2.3.tgz",
+ "integrity": "sha512-xr9Hbrslkjm1fapJP5hL98pySeZmNepBSefQS/XTxynamqPTfRBK5MnhReMOiAj8xvJApVPrVnlYxIrknay8jg==",
"dev": true
},
"node_modules/data-urls": {
@@ -4523,9 +4529,9 @@
}
},
"node_modules/hls.js": {
- "version": "1.4.14",
- "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.4.14.tgz",
- "integrity": "sha512-UppQjyvPVclg+6t2KY/Rv03h0+bA5u6zwqVoz4LAC/L0fgYmIaCD7ZCrwe8WI1Gv01be1XL0QFsRbSdIHV/Wbw==",
+ "version": "1.5.17",
+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.5.17.tgz",
+ "integrity": "sha512-wA66nnYFvQa1o4DO/BFgLNRKnBTVXpNeldGRBJ2Y0SvFtdwvFKCbqa9zhHoZLoxHhZ+jYsj3aIBkWQQCPNOhMw==",
"dev": true
},
"node_modules/hosted-git-info": {
@@ -7445,15 +7451,15 @@
}
},
"node_modules/media-chrome": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-2.1.0.tgz",
- "integrity": "sha512-ceUEE9tHVIe7KNmjtWq4oCOx1oYq09VyL3A9EP1MDGnFot0eOoLuDfaye/koe8+4tzhB4/yGyn8pIGuvzF85lg==",
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-3.2.5.tgz",
+ "integrity": "sha512-tTsgS7x77Bn4p/wca/Si/7A+Q3z9DzKq0SOkroQvrNMXBVyQasMayDcsKg5Ur5NGsymZfttnJi7tXvVr/tPj8g==",
"dev": true
},
"node_modules/media-tracks": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.0.tgz",
- "integrity": "sha512-kicD8eOFwe6nD7jn7iM/0yuLzWuo6abWHURYwY7NhxL1dBif+lt0on4rLTs6VhKwAEE/BjT3wr+0vn1w8SBpag==",
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.3.tgz",
+ "integrity": "sha512-9P2FuUHnZZ3iji+2RQk7Zkh5AmZTnOG5fODACnjhCVveX1McY3jmCRHofIEI+yTBqplz7LXy48c7fQ3Uigp88w==",
"dev": true
},
"node_modules/meow": {
@@ -7707,9 +7713,9 @@
"dev": true
},
"node_modules/mux-embed": {
- "version": "4.30.0",
- "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-4.30.0.tgz",
- "integrity": "sha512-XAgAp4CEvsiZL26GbruzeG1g33OWyrzuskDMavXUxDufTxS0/AxAhwoTTRqEzEJS9vnZa/X9R2GV3xRX1XMp2w==",
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-5.2.1.tgz",
+ "integrity": "sha512-NukHw91xeEVDBeXVDBpi2BvXNix7gSuvdtyvOph5yR/ROn1hHbTlcYWoKQyCyJX9frsF00UROEul+S8wPzU3aQ==",
"dev": true
},
"node_modules/natural-compare": {
@@ -11866,47 +11872,47 @@
}
},
"@mux/mux-player": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.3.2.tgz",
- "integrity": "sha512-ar58+vNGHCytUDM9+Q+yasFCRayqvw5UwyqUVibPR4k0yRML7PTqejAZNzi9obqgUW/yKsZEbV7foKDYcJL6uw==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player/-/mux-player-2.5.0.tgz",
+ "integrity": "sha512-Tps+GsWlUuzJHwZpHHb/47OGKF7MXr6ca2RRL/S/7TRX5Y45qROoZiqZ859AxZW2UPcy7chFR6LROd4X7PSMQQ==",
"dev": true,
"requires": {
- "@mux/mux-video": "0.17.2",
- "@mux/playback-core": "0.22.1",
- "media-chrome": "~2.1.0"
+ "@mux/mux-video": "0.18.0",
+ "@mux/playback-core": "0.23.0",
+ "media-chrome": "~3.2.1"
}
},
"@mux/mux-player-react": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.3.2.tgz",
- "integrity": "sha512-WpxFRM6C617sOw4MdyjtPP2GXl2QISCKaYuFTBps9E6E8pSdGeg4sVybPESMfPPTnelUWbcYPf4DpIb8OQOeEA==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-player-react/-/mux-player-react-2.5.0.tgz",
+ "integrity": "sha512-HTJ55X+ngrR2tVgvCEc6edihyHGYkB4C8TqPNM+tbHeQqIevvyatJAMlZHZbpFEdOLUeL3I/PwsDQ6FOV7csKw==",
"dev": true,
"requires": {
- "@mux/mux-player": "2.3.2",
- "@mux/playback-core": "0.22.1",
+ "@mux/mux-player": "2.5.0",
+ "@mux/playback-core": "0.23.0",
"prop-types": "^15.7.2"
}
},
"@mux/mux-video": {
- "version": "0.17.2",
- "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.17.2.tgz",
- "integrity": "sha512-IIGZhUYPClUIOQ/VZZ7kjYcxTcSSSvm+yiv/+c4hHlreO1XLly8Oe1Dzq2xx12t1b+UUupIzx2Cnc8bzVEQTKA==",
+ "version": "0.18.0",
+ "resolved": "https://registry.npmjs.org/@mux/mux-video/-/mux-video-0.18.0.tgz",
+ "integrity": "sha512-uRheOAEe47k4nadoH/q/5/sfgd1amr6OSesh1yTQPDtAICIy8zCOHyLLOCaJl7vVZxw9/JRQuwO6MwjzjHhdng==",
"dev": true,
"requires": {
- "@mux/playback-core": "0.22.1",
+ "@mux/playback-core": "0.23.0",
"castable-video": "~1.0.6",
- "custom-media-element": "~1.2.2",
+ "custom-media-element": "~1.2.3",
"media-tracks": "~0.3.0"
}
},
"@mux/playback-core": {
- "version": "0.22.1",
- "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.22.1.tgz",
- "integrity": "sha512-tsPMpcu/xYHQtO6USZwg80CDaXyc7UbyJGoqMU9P1o0e15X/KDcz179nhr6k0CXafg/yiwAlxPNGXnpwToWJ4w==",
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/@mux/playback-core/-/playback-core-0.23.0.tgz",
+ "integrity": "sha512-7MX5xnJ+rFReVDAWKEwHqnfOyQkX+dzYysrTLAy0L1xJMsIhMhAD+wwvkDC/rRgtha5jHF863GCwrJAHmnxSCA==",
"dev": true,
"requires": {
- "hls.js": "~1.4.13",
- "mux-embed": "~4.30.0"
+ "hls.js": "~1.5.8",
+ "mux-embed": "~5.2.0"
}
},
"@nodelib/fs.scandir": {
@@ -12832,12 +12838,20 @@
"peer": true
},
"castable-video": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.6.tgz",
- "integrity": "sha512-Ykw2uL4ZQnqX0j9KF9ksbDpyc8I53mFMswCKW9yV5TrwpWkdNqRHLlcU85W30BIw61fgDjgm0Xh5G0rbcmv23g==",
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/castable-video/-/castable-video-1.0.10.tgz",
+ "integrity": "sha512-tJgUv+8/zE191y8EKojvB0eKIyKA9obIttd6Wpdm6x2qBmuwZ7wDgzVCSmf5cN2v9jBiuu0s7O5poz8a8cFX/w==",
"dev": true,
"requires": {
- "custom-media-element": "~1.2.2"
+ "custom-media-element": "~1.3.2"
+ },
+ "dependencies": {
+ "custom-media-element": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.3.3.tgz",
+ "integrity": "sha512-5Tenv3iLP8ZiLHcT0qSyfDPrqzkCMxczeLY7cTndbsMF7EkVgL/74a6hxNrn/F6RuD74TLK6R2r0GsmntTTtRg==",
+ "dev": true
+ }
}
},
"ccount": {
@@ -13289,9 +13303,9 @@
"dev": true
},
"custom-media-element": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.2.2.tgz",
- "integrity": "sha512-tI+NjVRS485QlSxHeM3JIjdEZSJMLOZVp41/vvWukDmIkZSoYG9gLYl9GFZGBpY42UbRVo1eMlF7XkI/IiDHzQ==",
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/custom-media-element/-/custom-media-element-1.2.3.tgz",
+ "integrity": "sha512-xr9Hbrslkjm1fapJP5hL98pySeZmNepBSefQS/XTxynamqPTfRBK5MnhReMOiAj8xvJApVPrVnlYxIrknay8jg==",
"dev": true
},
"data-urls": {
@@ -14240,9 +14254,9 @@
}
},
"hls.js": {
- "version": "1.4.14",
- "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.4.14.tgz",
- "integrity": "sha512-UppQjyvPVclg+6t2KY/Rv03h0+bA5u6zwqVoz4LAC/L0fgYmIaCD7ZCrwe8WI1Gv01be1XL0QFsRbSdIHV/Wbw==",
+ "version": "1.5.17",
+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.5.17.tgz",
+ "integrity": "sha512-wA66nnYFvQa1o4DO/BFgLNRKnBTVXpNeldGRBJ2Y0SvFtdwvFKCbqa9zhHoZLoxHhZ+jYsj3aIBkWQQCPNOhMw==",
"dev": true
},
"hosted-git-info": {
@@ -16367,15 +16381,15 @@
"dev": true
},
"media-chrome": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-2.1.0.tgz",
- "integrity": "sha512-ceUEE9tHVIe7KNmjtWq4oCOx1oYq09VyL3A9EP1MDGnFot0eOoLuDfaye/koe8+4tzhB4/yGyn8pIGuvzF85lg==",
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/media-chrome/-/media-chrome-3.2.5.tgz",
+ "integrity": "sha512-tTsgS7x77Bn4p/wca/Si/7A+Q3z9DzKq0SOkroQvrNMXBVyQasMayDcsKg5Ur5NGsymZfttnJi7tXvVr/tPj8g==",
"dev": true
},
"media-tracks": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.0.tgz",
- "integrity": "sha512-kicD8eOFwe6nD7jn7iM/0yuLzWuo6abWHURYwY7NhxL1dBif+lt0on4rLTs6VhKwAEE/BjT3wr+0vn1w8SBpag==",
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/media-tracks/-/media-tracks-0.3.3.tgz",
+ "integrity": "sha512-9P2FuUHnZZ3iji+2RQk7Zkh5AmZTnOG5fODACnjhCVveX1McY3jmCRHofIEI+yTBqplz7LXy48c7fQ3Uigp88w==",
"dev": true
},
"meow": {
@@ -16551,9 +16565,9 @@
"dev": true
},
"mux-embed": {
- "version": "4.30.0",
- "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-4.30.0.tgz",
- "integrity": "sha512-XAgAp4CEvsiZL26GbruzeG1g33OWyrzuskDMavXUxDufTxS0/AxAhwoTTRqEzEJS9vnZa/X9R2GV3xRX1XMp2w==",
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/mux-embed/-/mux-embed-5.2.1.tgz",
+ "integrity": "sha512-NukHw91xeEVDBeXVDBpi2BvXNix7gSuvdtyvOph5yR/ROn1hHbTlcYWoKQyCyJX9frsF00UROEul+S8wPzU3aQ==",
"dev": true
},
"natural-compare": {
diff --git a/package.json b/package.json
index 148a4b1..d601710 100644
--- a/package.json
+++ b/package.json
@@ -95,7 +95,7 @@
"homepage": "https://github.com/datocms/react-datocms",
"devDependencies": {
"@biomejs/biome": "^1.6.3",
- "@mux/mux-player-react": "*",
+ "@mux/mux-player-react": "=2.5.0",
"@types/enzyme": "^3.10.8",
"@types/enzyme-to-json": "^1.5.4",
"@types/jest": "^29.5.11",
@@ -139,6 +139,6 @@
"react-intersection-observer": "^9.4.3",
"react-string-replace": "^1.1.0",
"use-deep-compare-effect": "^1.6.1",
- "@mux/mux-player-react": "*"
+ "@mux/mux-player-react": "=2.5.0"
}
}
diff --git a/src/VideoPlayer/index.tsx b/src/VideoPlayer/index.tsx
index fa89c29..8e41bc2 100644
--- a/src/VideoPlayer/index.tsx
+++ b/src/VideoPlayer/index.tsx
@@ -72,6 +72,7 @@ export const VideoPlayer: (
const {
data = {},
disableCookies = true,
+ disableTracking = true,
preload = 'metadata',
style: styleFromProps,
...rest
@@ -98,6 +99,7 @@ export const VideoPlayer: (
preload={preload}
title={title}
disableCookies={disableCookies}
+ disableTracking={disableTracking}
playbackId={playbackId}
style={style}
placeholder={placeholder}