@folklore/hooks 0.0.57 → 0.0.58

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.
Files changed (3) hide show
  1. package/dist/cjs.js +2 -17
  2. package/dist/es.js +2 -17
  3. package/package.json +2 -2
package/dist/cjs.js CHANGED
@@ -76,15 +76,8 @@ function useDailymotionPlayer() {
76
76
  width = 0,
77
77
  height = 0,
78
78
  duration = 0,
79
- autoplay = false,
80
79
  muted: initialMuted = false,
81
80
  start = 0,
82
- controls = true,
83
- queueAutoplayNext = false,
84
- queueEnable = false,
85
- sharingEnable = false,
86
- uiLogo = false,
87
- uiStartScreenInfo = true,
88
81
  embedPlayerId = null,
89
82
  onTimeUpdate: customOnTimeUpdate = null,
90
83
  getVideoId = url => {
@@ -168,16 +161,8 @@ function useDailymotionPlayer() {
168
161
  return;
169
162
  }
170
163
  const playerParams = {
171
- 'autoplay-d': autoplay,
172
- // muted,
173
164
  startTime: start,
174
- controls,
175
- aspectRatio: 'inherit',
176
- 'queue-autoplay-next': queueAutoplayNext,
177
- 'queue-enable': queueEnable,
178
- 'sharing-enable': sharingEnable,
179
- 'ui-logo': uiLogo,
180
- 'ui-start-screen-info': uiStartScreenInfo
165
+ aspectRatio: 'inherit'
181
166
  };
182
167
  let player = currentPlayer;
183
168
  if (player !== null) {
@@ -200,7 +185,7 @@ function useDailymotionPlayer() {
200
185
  debug('Create player [ID: %s]', videoId);
201
186
  }
202
187
  playerElementRef.current = element;
203
- }, [apiLoaded, elementHasChanged, videoId, width, height, autoplay, start, controls, queueAutoplayNext, queueEnable, sharingEnable, uiLogo, uiStartScreenInfo]);
188
+ }, [apiLoaded, elementHasChanged, videoId, width, height, start]);
204
189
  react.useEffect(() => {
205
190
  const {
206
191
  current: player = null
package/dist/es.js CHANGED
@@ -65,15 +65,8 @@ function useDailymotionPlayer() {
65
65
  width = 0,
66
66
  height = 0,
67
67
  duration = 0,
68
- autoplay = false,
69
68
  muted: initialMuted = false,
70
69
  start = 0,
71
- controls = true,
72
- queueAutoplayNext = false,
73
- queueEnable = false,
74
- sharingEnable = false,
75
- uiLogo = false,
76
- uiStartScreenInfo = true,
77
70
  embedPlayerId = null,
78
71
  onTimeUpdate: customOnTimeUpdate = null,
79
72
  getVideoId = url => {
@@ -157,16 +150,8 @@ function useDailymotionPlayer() {
157
150
  return;
158
151
  }
159
152
  const playerParams = {
160
- 'autoplay-d': autoplay,
161
- // muted,
162
153
  startTime: start,
163
- controls,
164
- aspectRatio: 'inherit',
165
- 'queue-autoplay-next': queueAutoplayNext,
166
- 'queue-enable': queueEnable,
167
- 'sharing-enable': sharingEnable,
168
- 'ui-logo': uiLogo,
169
- 'ui-start-screen-info': uiStartScreenInfo
154
+ aspectRatio: 'inherit'
170
155
  };
171
156
  let player = currentPlayer;
172
157
  if (player !== null) {
@@ -189,7 +174,7 @@ function useDailymotionPlayer() {
189
174
  debug('Create player [ID: %s]', videoId);
190
175
  }
191
176
  playerElementRef.current = element;
192
- }, [apiLoaded, elementHasChanged, videoId, width, height, autoplay, start, controls, queueAutoplayNext, queueEnable, sharingEnable, uiLogo, uiStartScreenInfo]);
177
+ }, [apiLoaded, elementHasChanged, videoId, width, height, start]);
193
178
  useEffect(() => {
194
179
  const {
195
180
  current: player = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/hooks",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "React hooks",
5
5
  "keywords": [
6
6
  "javascript",
@@ -49,7 +49,7 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "0afeed292591d823f72f5611a078f94c21321d2e",
52
+ "gitHead": "eec9d8318fc17f4a40396ee05e15bb93a48c40cc",
53
53
  "dependencies": {
54
54
  "@folklore/events": "^0.0.5",
55
55
  "@folklore/services": "^0.1.40",