react-datocms 8.0.0-0 → 8.0.0-1

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.
@@ -56,12 +56,12 @@ const mux_player_react_1 = __importDefault(require("@mux/mux-player-react"));
56
56
  // `<MuxPlayer />` component.
57
57
  const index_js_1 = require("../useVideoPlayer/index.js");
58
58
  exports.VideoPlayer = (0, react_1.forwardRef)((props, ref) => {
59
- const { data = {}, disableCookies = true, preload = "metadata", style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "preload", "style"]);
59
+ const { data = {}, disableCookies = true, disableTracking = true, preload = "metadata", style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "disableTracking", "preload", "style"]);
60
60
  const { title, playbackId, style: styleFromHook, placeholder, } = (0, index_js_1.useVideoPlayer)({
61
61
  data,
62
62
  });
63
63
  const style = Object.assign(Object.assign({}, styleFromHook), styleFromProps);
64
- return (react_1.default.createElement(mux_player_react_1.default, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, playbackId: playbackId, style: style, placeholder: placeholder }, rest)));
64
+ return (react_1.default.createElement(mux_player_react_1.default, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, disableTracking: disableTracking, playbackId: playbackId, style: style, placeholder: placeholder }, rest)));
65
65
  });
66
66
  exports.default = exports.VideoPlayer;
67
67
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/VideoPlayer/index.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,gFAAgF;AAChF,8EAA8E;AAC9E,2EAA2E;AAC3E,EAAE;AACF,qEAAqE;AACrE,EAAE;AACF,kCAAkC;AAElC,+CAA0C;AAO1C,gFAAgF;AAChF,sEAAsE;AACtE,2CAA2C;AAE3C,6EAA8C;AAE9C,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AAG,EAAE,EAAE;IACjC,MAAM,EACJ,IAAI,GAAG,EAAE,EACT,cAAc,GAAG,IAAI,EACrB,eAAe,GAAG,IAAI,EACtB,OAAO,GAAG,UAAU,EACpB,KAAK,EAAE,cAAc,KAEnB,KAAK,EADJ,IAAI,UACL,KAAK,EAPH,iEAOL,CAAQ,CAAC;IAEV,MAAM,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EAAE,aAAa,EACpB,WAAW,GACZ,GAAG,IAAA,yBAAc,EAAC;QACjB,IAAI;KACL,CAAC,CAAC;IAEH,MAAM,KAAK,mCACN,aAAa,GACb,cAAc,CAClB,CAAC;IAEF,OAAO,CACL,8BAAC,0BAAS,kBACR,GAAG,EAAE,GAAG,EACR,UAAU,EAAC,WAAW,EACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,IACpB,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAW,CAAC"}
@@ -27,12 +27,12 @@ import MuxPlayer from "@mux/mux-player-react";
27
27
  // `<MuxPlayer />` component.
28
28
  import { useVideoPlayer } from "../useVideoPlayer/index.js";
29
29
  export const VideoPlayer = forwardRef((props, ref) => {
30
- const { data = {}, disableCookies = true, preload = "metadata", style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "preload", "style"]);
30
+ const { data = {}, disableCookies = true, disableTracking = true, preload = "metadata", style: styleFromProps } = props, rest = __rest(props, ["data", "disableCookies", "disableTracking", "preload", "style"]);
31
31
  const { title, playbackId, style: styleFromHook, placeholder, } = useVideoPlayer({
32
32
  data,
33
33
  });
34
34
  const style = Object.assign(Object.assign({}, styleFromHook), styleFromProps);
35
- return (React.createElement(MuxPlayer, Object.assign({ ref: ref, streamType: "on-demand", preload: preload, title: title, disableCookies: disableCookies, playbackId: playbackId, style: style, placeholder: placeholder }, rest)));
35
+ 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)));
36
36
  });
37
37
  export default VideoPlayer;
38
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/VideoPlayer/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,gFAAgF;AAChF,8EAA8E;AAC9E,2EAA2E;AAC3E,EAAE;AACF,qEAAqE;AACrE,EAAE;AACF,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAO1C,gFAAgF;AAChF,sEAAsE;AACtE,2CAA2C;AAE3C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,oEAAoE;AACpE,qEAAqE;AACrE,6BAA6B;AAE7B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAyC5D,MAAM,CAAC,MAAM,WAAW,GAAoB,UAAU,CAGpD,CAAC,KAAuB,EAAE,GAAG,EAAE,EAAE;IACjC,MAAM,EACJ,IAAI,GAAG,EAAE,EACT,cAAc,GAAG,IAAI,EACrB,OAAO,GAAG,UAAU,EACpB,KAAK,EAAE,cAAc,KAEnB,KAAK,EADJ,IAAI,UACL,KAAK,EANH,8CAML,CAAQ,CAAC;IAEV,MAAM,EACJ,KAAK,EACL,UAAU,EACV,KAAK,EAAE,aAAa,EACpB,WAAW,GACZ,GAAG,cAAc,CAAC;QACjB,IAAI;KACL,CAAC,CAAC;IAEH,MAAM,KAAK,mCACN,aAAa,GACb,cAAc,CAClB,CAAC;IAEF,OAAO,CACL,oBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,EACR,UAAU,EAAC,WAAW,EACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,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,EAC9B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,IACpB,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-datocms",
3
- "version": "8.0.0-0",
3
+ "version": "8.0.0-1",
4
4
  "engines": {
5
5
  "node": ">=8.0.0"
6
6
  },
@@ -103,7 +103,7 @@
103
103
  "homepage": "https://github.com/datocms/react-datocms",
104
104
  "devDependencies": {
105
105
  "@biomejs/biome": "^1.6.3",
106
- "@mux/mux-player-react": "*",
106
+ "@mux/mux-player-react": "^2.0.0",
107
107
  "@types/enzyme": "^3.10.8",
108
108
  "@types/enzyme-to-json": "^1.5.4",
109
109
  "@types/jest": "^29.5.11",
@@ -147,6 +147,6 @@
147
147
  "react-intersection-observer": "^9.4.3",
148
148
  "react-string-replace": "^1.1.0",
149
149
  "use-deep-compare-effect": "^1.6.1",
150
- "@mux/mux-player-react": "*"
150
+ "@mux/mux-player-react": "^2.0.0"
151
151
  }
152
152
  }
@@ -73,6 +73,7 @@ export const VideoPlayer: VideoPlayerType = forwardRef<
73
73
  const {
74
74
  data = {},
75
75
  disableCookies = true,
76
+ disableTracking = true,
76
77
  preload = "metadata",
77
78
  style: styleFromProps,
78
79
  ...rest
@@ -99,6 +100,7 @@ export const VideoPlayer: VideoPlayerType = forwardRef<
99
100
  preload={preload}
100
101
  title={title}
101
102
  disableCookies={disableCookies}
103
+ disableTracking={disableTracking}
102
104
  playbackId={playbackId}
103
105
  style={style}
104
106
  placeholder={placeholder}