@selfcommunity/react-ui 0.1.2 → 0.1.3

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.
@@ -78,13 +78,6 @@ function AutoPlayer(props) {
78
78
  onEnter: handleEnterViewport,
79
79
  onLeave: handleExitViewport
80
80
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactPlayer.default, _extends({
81
- config: {
82
- youtube: {
83
- playerVars: {
84
- rel: 0
85
- }
86
- }
87
- },
88
81
  loop: loop,
89
82
  controls: controls,
90
83
  stopOnUnmount: stopOnUnmount,
@@ -95,9 +88,19 @@ function AutoPlayer(props) {
95
88
  setPlayed(progress.playedSeconds);
96
89
  },
97
90
  config: {
91
+ youtube: {
92
+ embedOptions: {
93
+ host: 'https://www.youtube-nocookie.com'
94
+ },
95
+ playerVars: {
96
+ rel: 0
97
+ }
98
+ },
98
99
  vimeo: {
99
100
  playerOptions: {
100
- autopause: true
101
+ autopause: true,
102
+ dnt: true,
103
+ transparent: false
101
104
  },
102
105
  preload: true
103
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/AutoPlayer/index.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eA8DxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/AutoPlayer/index.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eAmExD"}
@@ -78,13 +78,6 @@ function AutoPlayer(props) {
78
78
  onEnter: handleEnterViewport,
79
79
  onLeave: handleExitViewport
80
80
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_reactPlayer.default, _extends({
81
- config: {
82
- youtube: {
83
- playerVars: {
84
- rel: 0
85
- }
86
- }
87
- },
88
81
  loop: loop,
89
82
  controls: controls,
90
83
  stopOnUnmount: stopOnUnmount,
@@ -95,9 +88,19 @@ function AutoPlayer(props) {
95
88
  setPlayed(progress.playedSeconds);
96
89
  },
97
90
  config: {
91
+ youtube: {
92
+ embedOptions: {
93
+ host: 'https://www.youtube-nocookie.com'
94
+ },
95
+ playerVars: {
96
+ rel: 0
97
+ }
98
+ },
98
99
  vimeo: {
99
100
  playerOptions: {
100
- autopause: true
101
+ autopause: true,
102
+ dnt: true,
103
+ transparent: false
101
104
  },
102
105
  preload: true
103
106
  }