@mux/mux-video-react 0.8.3 → 0.8.4-canary.0-5a89efb

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,357 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.8.5](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.8.4...@mux/mux-video-react@0.8.5) (2024-03-29)
7
+
8
+ **Note:** Version bump only for package @mux/mux-video-react
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.8.4](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.8.3...@mux/mux-video-react@0.8.4) (2024-03-20)
15
+
16
+ **Note:** Version bump only for package @mux/mux-video-react
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.8.3](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.8.2...@mux/mux-video-react@0.8.3) (2024-02-16)
23
+
24
+ **Note:** Version bump only for package @mux/mux-video-react
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.8.2](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.8.1...@mux/mux-video-react@0.8.2) (2024-01-02)
31
+
32
+ **Note:** Version bump only for package @mux/mux-video-react
33
+
34
+
35
+
36
+
37
+
38
+ ## [0.8.1](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.8.0...@mux/mux-video-react@0.8.1) (2023-12-07)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * Adding unofficial _hlsConfig to media elements and playback core. ([#833](https://github.com/muxinc/elements/issues/833)) ([b86f6e6](https://github.com/muxinc/elements/commit/b86f6e6eb2c116d1d676fbaecd46d77a0baa3416)), closes [#792](https://github.com/muxinc/elements/issues/792)
44
+ * **mux-video-react:** Don't spread disableCookies to video to avoid warnings ([#749](https://github.com/muxinc/elements/issues/749)) ([06169be](https://github.com/muxinc/elements/commit/06169bef2c158a02e683839f1bebb8cb1e619c0c)), closes [#602](https://github.com/muxinc/elements/issues/602)
45
+
46
+
47
+
48
+
49
+
50
+ # [0.8.0](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.21...@mux/mux-video-react@0.8.0) (2023-10-24)
51
+
52
+
53
+ ### Features
54
+
55
+ * Manifest manipulation and other media stream query param props. ([954b2c8](https://github.com/muxinc/elements/commit/954b2c80d7df88bb4585c46a15dd1185d56dcf9a))
56
+
57
+
58
+
59
+
60
+
61
+ ## [0.7.21](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.20...@mux/mux-video-react@0.7.21) (2023-10-03)
62
+
63
+ **Note:** Version bump only for package @mux/mux-video-react
64
+
65
+
66
+
67
+
68
+
69
+ ## [0.7.20](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.19...@mux/mux-video-react@0.7.20) (2023-09-05)
70
+
71
+ **Note:** Version bump only for package @mux/mux-video-react
72
+
73
+
74
+
75
+
76
+
77
+ ## [0.7.19](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.18...@mux/mux-video-react@0.7.19) (2023-08-30)
78
+
79
+ **Note:** Version bump only for package @mux/mux-video-react
80
+
81
+
82
+
83
+
84
+
85
+ ## [0.7.18](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.17...@mux/mux-video-react@0.7.18) (2023-08-23)
86
+
87
+ **Note:** Version bump only for package @mux/mux-video-react
88
+
89
+
90
+
91
+
92
+
93
+ ## [0.7.17](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.16...@mux/mux-video-react@0.7.17) (2023-08-15)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * Reverting packages type (defaults to cjs) for accuracy per node … ([#745](https://github.com/muxinc/elements/issues/745)) ([9e7a171](https://github.com/muxinc/elements/commit/9e7a17113e14b711c8da9b1bdafe65ee86454b3b))
99
+
100
+
101
+
102
+
103
+
104
+ ## [0.7.16](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.15...@mux/mux-video-react@0.7.16) (2023-08-14)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * **mux-video-react:** Don't spread streamType to video to avoid React warnings ([#721](https://github.com/muxinc/elements/issues/721)) ([7395fca](https://github.com/muxinc/elements/commit/7395fca1b50dbad4fa04cb37b234523b953a2c78)), closes [#602](https://github.com/muxinc/elements/issues/602)
110
+
111
+
112
+
113
+
114
+
115
+ ## [0.7.15](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.14...@mux/mux-video-react@0.7.15) (2023-07-07)
116
+
117
+ **Note:** Version bump only for package @mux/mux-video-react
118
+
119
+
120
+
121
+
122
+
123
+ ## [0.7.14](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.13...@mux/mux-video-react@0.7.14) (2023-06-29)
124
+
125
+ **Note:** Version bump only for package @mux/mux-video-react
126
+
127
+
128
+
129
+
130
+
131
+ ## [0.7.13](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.12...@mux/mux-video-react@0.7.13) (2023-06-12)
132
+
133
+ **Note:** Version bump only for package @mux/mux-video-react
134
+
135
+
136
+
137
+
138
+
139
+ ## [0.7.12](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.11...@mux/mux-video-react@0.7.12) (2023-06-06)
140
+
141
+ **Note:** Version bump only for package @mux/mux-video-react
142
+
143
+
144
+
145
+
146
+
147
+ ## [0.7.11](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.10...@mux/mux-video-react@0.7.11) (2023-05-08)
148
+
149
+ **Note:** Version bump only for package @mux/mux-video-react
150
+
151
+
152
+
153
+
154
+
155
+ ## [0.7.10](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.9...@mux/mux-video-react@0.7.10) (2023-04-24)
156
+
157
+ **Note:** Version bump only for package @mux/mux-video-react
158
+
159
+
160
+
161
+
162
+
163
+ ## [0.7.9](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.8...@mux/mux-video-react@0.7.9) (2023-04-14)
164
+
165
+ **Note:** Version bump only for package @mux/mux-video-react
166
+
167
+
168
+
169
+
170
+
171
+ ## [0.7.8](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.7...@mux/mux-video-react@0.7.8) (2023-03-31)
172
+
173
+
174
+ ### Bug Fixes
175
+
176
+ * update typedefs, disable skipLibChecks in tsconfig ([#601](https://github.com/muxinc/elements/issues/601)) ([1664aec](https://github.com/muxinc/elements/commit/1664aec20e4cf4a59779848b298d4504eef24080))
177
+
178
+
179
+
180
+
181
+
182
+ ## [0.7.7](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.6...@mux/mux-video-react@0.7.7) (2023-02-15)
183
+
184
+ **Note:** Version bump only for package @mux/mux-video-react
185
+
186
+
187
+
188
+
189
+
190
+ ## [0.7.6](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.5...@mux/mux-video-react@0.7.6) (2023-02-14)
191
+
192
+ **Note:** Version bump only for package @mux/mux-video-react
193
+
194
+
195
+
196
+
197
+
198
+ ## [0.7.5](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.4...@mux/mux-video-react@0.7.5) (2023-02-02)
199
+
200
+ **Note:** Version bump only for package @mux/mux-video-react
201
+
202
+
203
+
204
+
205
+
206
+ ## [0.7.4](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.3...@mux/mux-video-react@0.7.4) (2023-02-01)
207
+
208
+ **Note:** Version bump only for package @mux/mux-video-react
209
+
210
+
211
+
212
+
213
+
214
+ ## [0.7.3](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.2...@mux/mux-video-react@0.7.3) (2023-01-20)
215
+
216
+
217
+ ### Bug Fixes
218
+
219
+ * MuxVideoReact memory leak ([c057099](https://github.com/muxinc/elements/commit/c057099bb344212c0afd5f938a92c893245423b4))
220
+
221
+
222
+
223
+
224
+
225
+ ## [0.7.2](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.1...@mux/mux-video-react@0.7.2) (2022-12-13)
226
+
227
+ **Note:** Version bump only for package @mux/mux-video-react
228
+
229
+
230
+
231
+
232
+
233
+ ## [0.7.1](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.7.0...@mux/mux-video-react@0.7.1) (2022-11-21)
234
+
235
+
236
+ ### Bug Fixes
237
+
238
+ * add async effect for loading media ([#492](https://github.com/muxinc/elements/issues/492)) ([d2b250a](https://github.com/muxinc/elements/commit/d2b250a2d86e4e6a4c17fc34196e6468c4fedf1f))
239
+
240
+
241
+
242
+
243
+
244
+ # [0.7.0](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.6.0...@mux/mux-video-react@0.7.0) (2022-10-25)
245
+
246
+
247
+ ### Features
248
+
249
+ * **mux-video-react:** Add disable cookies prop. ([777db83](https://github.com/muxinc/elements/commit/777db8301e6bbb97ef542a05251b00e450a04b8d))
250
+
251
+
252
+
253
+
254
+
255
+ # [0.6.0](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.5.4...@mux/mux-video-react@0.6.0) (2022-10-05)
256
+
257
+ ### Bug Fixes
258
+
259
+ - allow autoplay to change in mux-video-react, fixes [#396](https://github.com/muxinc/elements/issues/396) ([bf4ceb0](https://github.com/muxinc/elements/commit/bf4ceb051b7f656145826a460652820fce36c1d6))
260
+ - preload playback core change ([15313ea](https://github.com/muxinc/elements/commit/15313eaad81f748b5853a0fdaabfe141963f885e))
261
+
262
+ ### Features
263
+
264
+ - add `prefer-playback` attribute ([#402](https://github.com/muxinc/elements/issues/402)) ([8da36d6](https://github.com/muxinc/elements/commit/8da36d6b597ddbc4ae006873fee13a971b7ec2f3))
265
+
266
+ ## [0.5.4](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.5.3...@mux/mux-video-react@0.5.4) (2022-09-16)
267
+
268
+ **Note:** Version bump only for package @mux/mux-video-react
269
+
270
+ ## [0.5.3](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.5.2...@mux/mux-video-react@0.5.3) (2022-09-01)
271
+
272
+ ### Bug Fixes
273
+
274
+ - cjs main entrypoint for React pkgs ([#360](https://github.com/muxinc/elements/issues/360)) ([473875f](https://github.com/muxinc/elements/commit/473875f4869a6ab9b04b44a90cc52b620a15ac83))
275
+
276
+ ## [0.5.2](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.5.1...@mux/mux-video-react@0.5.2) (2022-08-31)
277
+
278
+ **Note:** Version bump only for package @mux/mux-video-react
279
+
280
+ ## [0.5.1](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.5.0...@mux/mux-video-react@0.5.1) (2022-07-21)
281
+
282
+ **Note:** Version bump only for package @mux/mux-video-react
283
+
284
+ # 0.5.0 (2022-07-05)
285
+
286
+ ### Bug Fixes
287
+
288
+ - **mux-video-react:** use generateInitTime() instead of Date.now. ([0f159c2](https://github.com/muxinc/elements/commit/0f159c233244404faec13e61f1dbbd8b7c4adc81))
289
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
290
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
291
+ - update react peerDependencies to allow ^18 ([1cfb019](https://github.com/muxinc/elements/commit/1cfb019b71cf9aa280abccaf4a7818d585b56d86))
292
+
293
+ ### Features
294
+
295
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
296
+ - Extended autoplay options ([#116](https://github.com/muxinc/elements/issues/116)) ([475e838](https://github.com/muxinc/elements/commit/475e83884f641c578fa601c9501147d485fc1831))
297
+
298
+ ## [0.4.12](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.11...@mux-elements/mux-video-react@0.4.12) (2022-06-23)
299
+
300
+ **Note:** Version bump only for package @mux-elements/mux-video-react
301
+
302
+ ## [0.4.11](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.10...@mux-elements/mux-video-react@0.4.11) (2022-06-06)
303
+
304
+ **Note:** Version bump only for package @mux-elements/mux-video-react
305
+
306
+ ## [0.4.10](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.9...@mux-elements/mux-video-react@0.4.10) (2022-05-26)
307
+
308
+ **Note:** Version bump only for package @mux-elements/mux-video-react
309
+
310
+ ## [0.4.9](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.8...@mux-elements/mux-video-react@0.4.9) (2022-05-23)
311
+
312
+ **Note:** Version bump only for package @mux-elements/mux-video-react
313
+
314
+ ## [0.4.8](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.7...@mux-elements/mux-video-react@0.4.8) (2022-05-20)
315
+
316
+ ### Bug Fixes
317
+
318
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
319
+
320
+ ## [0.4.7](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.6...@mux-elements/mux-video-react@0.4.7) (2022-05-10)
321
+
322
+ **Note:** Version bump only for package @mux-elements/mux-video-react
323
+
324
+ ## [0.4.6](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.5...@mux-elements/mux-video-react@0.4.6) (2022-05-03)
325
+
326
+ **Note:** Version bump only for package @mux-elements/mux-video-react
327
+
328
+ ## [0.4.5](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.4...@mux-elements/mux-video-react@0.4.5) (2022-04-22)
329
+
330
+ **Note:** Version bump only for package @mux-elements/mux-video-react
331
+
332
+ ## [0.4.4](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.3...@mux-elements/mux-video-react@0.4.4) (2022-04-18)
333
+
334
+ **Note:** Version bump only for package @mux-elements/mux-video-react
335
+
336
+ ## [0.4.3](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.2...@mux-elements/mux-video-react@0.4.3) (2022-04-12)
337
+
338
+ **Note:** Version bump only for package @mux-elements/mux-video-react
339
+
340
+ ## [0.4.2](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.1...@mux-elements/mux-video-react@0.4.2) (2022-04-01)
341
+
342
+ **Note:** Version bump only for package @mux-elements/mux-video-react
343
+
344
+ ## [0.4.1](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.4.0...@mux-elements/mux-video-react@0.4.1) (2022-03-29)
345
+
346
+ **Note:** Version bump only for package @mux-elements/mux-video-react
347
+
348
+ # [0.4.0](https://github.com/muxinc/elements/compare/@mux-elements/mux-video-react@0.3.0...@mux-elements/mux-video-react@0.4.0) (2022-03-28)
349
+
350
+ ### Bug Fixes
351
+
352
+ - **mux-video-react:** use generateInitTime() instead of Date.now. ([0f159c2](https://github.com/muxinc/elements/commit/0f159c233244404faec13e61f1dbbd8b7c4adc81))
353
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
354
+
355
+ ### Features
356
+
357
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
package/dist/cjs.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "inputs": {
3
+ "src/use-combined-refs.ts": {
4
+ "bytes": 831,
5
+ "imports": [
6
+ {
7
+ "path": "react",
8
+ "kind": "import-statement",
9
+ "external": true
10
+ }
11
+ ],
12
+ "format": "esm"
13
+ },
14
+ "src/env.ts": {
15
+ "bytes": 391,
16
+ "imports": [],
17
+ "format": "esm"
18
+ },
19
+ "src/index.tsx": {
20
+ "bytes": 2893,
21
+ "imports": [
22
+ {
23
+ "path": "src/use-combined-refs.ts",
24
+ "kind": "import-statement",
25
+ "original": "./use-combined-refs"
26
+ },
27
+ {
28
+ "path": "react",
29
+ "kind": "import-statement",
30
+ "external": true
31
+ },
32
+ {
33
+ "path": "prop-types",
34
+ "kind": "import-statement",
35
+ "external": true
36
+ },
37
+ {
38
+ "path": "@mux/playback-core",
39
+ "kind": "import-statement",
40
+ "external": true
41
+ },
42
+ {
43
+ "path": "src/env.ts",
44
+ "kind": "import-statement",
45
+ "original": "./env"
46
+ }
47
+ ],
48
+ "format": "esm"
49
+ }
50
+ },
51
+ "outputs": {
52
+ "dist/index.cjs.js.map": {
53
+ "imports": [],
54
+ "exports": [],
55
+ "inputs": {},
56
+ "bytes": 6947
57
+ },
58
+ "dist/index.cjs.js": {
59
+ "imports": [
60
+ {
61
+ "path": "react",
62
+ "kind": "require-call",
63
+ "external": true
64
+ },
65
+ {
66
+ "path": "react",
67
+ "kind": "require-call",
68
+ "external": true
69
+ },
70
+ {
71
+ "path": "prop-types",
72
+ "kind": "require-call",
73
+ "external": true
74
+ },
75
+ {
76
+ "path": "@mux/playback-core",
77
+ "kind": "require-call",
78
+ "external": true
79
+ }
80
+ ],
81
+ "exports": [],
82
+ "entryPoint": "src/index.tsx",
83
+ "inputs": {
84
+ "src/index.tsx": {
85
+ "bytesInOutput": 1418
86
+ },
87
+ "src/use-combined-refs.ts": {
88
+ "bytesInOutput": 170
89
+ },
90
+ "src/env.ts": {
91
+ "bytesInOutput": 67
92
+ }
93
+ },
94
+ "bytes": 2264
95
+ }
96
+ }
97
+ }
package/dist/esm.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "inputs": {
3
+ "src/use-combined-refs.ts": {
4
+ "bytes": 831,
5
+ "imports": [
6
+ {
7
+ "path": "react",
8
+ "kind": "import-statement",
9
+ "external": true
10
+ }
11
+ ],
12
+ "format": "esm"
13
+ },
14
+ "src/env.ts": {
15
+ "bytes": 391,
16
+ "imports": [],
17
+ "format": "esm"
18
+ },
19
+ "src/index.tsx": {
20
+ "bytes": 2893,
21
+ "imports": [
22
+ {
23
+ "path": "src/use-combined-refs.ts",
24
+ "kind": "import-statement",
25
+ "original": "./use-combined-refs"
26
+ },
27
+ {
28
+ "path": "react",
29
+ "kind": "import-statement",
30
+ "external": true
31
+ },
32
+ {
33
+ "path": "prop-types",
34
+ "kind": "import-statement",
35
+ "external": true
36
+ },
37
+ {
38
+ "path": "@mux/playback-core",
39
+ "kind": "import-statement",
40
+ "external": true
41
+ },
42
+ {
43
+ "path": "src/env.ts",
44
+ "kind": "import-statement",
45
+ "original": "./env"
46
+ }
47
+ ],
48
+ "format": "esm"
49
+ }
50
+ },
51
+ "outputs": {
52
+ "dist/index.mjs.map": {
53
+ "imports": [],
54
+ "exports": [],
55
+ "inputs": {},
56
+ "bytes": 7206
57
+ },
58
+ "dist/index.mjs": {
59
+ "imports": [
60
+ {
61
+ "path": "react",
62
+ "kind": "import-statement",
63
+ "external": true
64
+ },
65
+ {
66
+ "path": "react",
67
+ "kind": "import-statement",
68
+ "external": true
69
+ },
70
+ {
71
+ "path": "prop-types",
72
+ "kind": "import-statement",
73
+ "external": true
74
+ },
75
+ {
76
+ "path": "@mux/playback-core",
77
+ "kind": "import-statement",
78
+ "external": true
79
+ }
80
+ ],
81
+ "exports": [
82
+ "default"
83
+ ],
84
+ "entryPoint": "src/index.tsx",
85
+ "inputs": {
86
+ "src/use-combined-refs.ts": {
87
+ "bytesInOutput": 173
88
+ },
89
+ "src/index.tsx": {
90
+ "bytesInOutput": 1190
91
+ },
92
+ "src/env.ts": {
93
+ "bytesInOutput": 67
94
+ }
95
+ },
96
+ "bytes": 1487
97
+ }
98
+ }
99
+ }
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var k=Object.create;var u=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},R=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of S(t))!j.call(e,s)&&s!==r&&u(e,s,{get:()=>t[s],enumerable:!(l=v(t,s))||l.enumerable});return e};var M=(e,t,r)=>(r=e!=null?k(L(e)):{},R(t||!e||!e.__esModule?u(r,"default",{value:e,enumerable:!0}):r,e)),h=e=>R(u({},"__esModule",{value:!0}),e);var U={};w(U,{default:()=>A});module.exports=h(U);var d=require("react"),P=(...e)=>{let t=(0,d.useRef)(null);return(0,d.useEffect)(()=>{e.forEach(r=>{r&&(typeof r=="function"?r(t.current):r.current=t.current)})},[e]),t};var n=M(require("react")),a=M(require("prop-types")),o=require("@mux/playback-core");var H=()=>{try{return"0.8.3"}catch{}return"UNKNOWN"},I=H(),C=()=>I;var N=C(),_="mux-video-react",g=n.default.forwardRef((e,t)=>{var T;let{playbackId:r,src:l,children:s,autoPlay:p,preload:y,streamType:D,disableCookies:K,_hlsConfig:W,...x}=e,[E]=(0,n.useState)((0,o.generatePlayerInitTime)()),[b,O]=(0,n.useState)((T=(0,o.toMuxVideoURL)(e))!=null?T:l),f=(0,n.useRef)(void 0),V=(0,n.useRef)(null),m=P(V,t);return(0,n.useEffect)(()=>{var i;O((i=(0,o.toMuxVideoURL)(e))!=null?i:l)},[l,r]),(0,n.useEffect)(()=>{let i={...e,src:b,playerInitTime:E,playerSoftwareName:_,playerSoftwareVersion:N,autoplay:p},c=m.current;return c&&(f.current=(0,o.initialize)(i,c,f.current)),()=>{(0,o.teardown)(c,f.current),c=void 0,f.current=void 0}},[b]),(0,n.useEffect)(()=>{var i;(i=f.current)==null||i.setAutoplay(p)},[p]),(0,n.useEffect)(()=>{var i;(i=f.current)==null||i.setPreload(y)},[y]),n.default.createElement("video",{ref:m,...x},s)});g.propTypes={envKey:a.default.string,debug:a.default.bool,disableCookies:a.default.bool,metadata:a.default.any,_hlsConfig:a.default.any,beaconCollectionDomain:a.default.string,playbackId:a.default.string,playerInitTime:a.default.number,preferPlayback:a.default.oneOf(Object.values(o.PlaybackTypes)),type:a.default.oneOf(o.allMediaTypes),streamType:a.default.oneOf(Object.values(o.StreamTypes)),startTime:a.default.number};var A=g;
1
+ "use strict";var k=Object.create;var u=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},R=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of S(t))!j.call(e,s)&&s!==r&&u(e,s,{get:()=>t[s],enumerable:!(l=v(t,s))||l.enumerable});return e};var M=(e,t,r)=>(r=e!=null?k(L(e)):{},R(t||!e||!e.__esModule?u(r,"default",{value:e,enumerable:!0}):r,e)),h=e=>R(u({},"__esModule",{value:!0}),e);var U={};w(U,{default:()=>A});module.exports=h(U);var d=require("react"),P=(...e)=>{let t=(0,d.useRef)(null);return(0,d.useEffect)(()=>{e.forEach(r=>{r&&(typeof r=="function"?r(t.current):r.current=t.current)})},[e]),t};var n=M(require("react")),a=M(require("prop-types")),o=require("@mux/playback-core");var H=()=>{try{return"0.8.5"}catch{}return"UNKNOWN"},I=H(),C=()=>I;var N=C(),_="mux-video-react",g=n.default.forwardRef((e,t)=>{var T;let{playbackId:r,src:l,children:s,autoPlay:p,preload:y,streamType:D,disableCookies:K,_hlsConfig:W,...x}=e,[E]=(0,n.useState)((0,o.generatePlayerInitTime)()),[b,O]=(0,n.useState)((T=(0,o.toMuxVideoURL)(e))!=null?T:l),f=(0,n.useRef)(void 0),V=(0,n.useRef)(null),m=P(V,t);return(0,n.useEffect)(()=>{var i;O((i=(0,o.toMuxVideoURL)(e))!=null?i:l)},[l,r]),(0,n.useEffect)(()=>{let i={...e,src:b,playerInitTime:E,playerSoftwareName:_,playerSoftwareVersion:N,autoplay:p},c=m.current;return c&&(f.current=(0,o.initialize)(i,c,f.current)),()=>{(0,o.teardown)(c,f.current),c=void 0,f.current=void 0}},[b]),(0,n.useEffect)(()=>{var i;(i=f.current)==null||i.setAutoplay(p)},[p]),(0,n.useEffect)(()=>{var i;(i=f.current)==null||i.setPreload(y)},[y]),n.default.createElement("video",{ref:m,...x},s)});g.propTypes={envKey:a.default.string,debug:a.default.bool,disableCookies:a.default.bool,metadata:a.default.any,_hlsConfig:a.default.any,beaconCollectionDomain:a.default.string,playbackId:a.default.string,playerInitTime:a.default.number,preferPlayback:a.default.oneOf(Object.values(o.PlaybackTypes)),type:a.default.oneOf(o.allMediaTypes),streamType:a.default.oneOf(Object.values(o.StreamTypes)),startTime:a.default.number};var A=g;
2
2
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{useEffect as V,useRef as k}from"react";var y=(...r)=>{let a=k(null);return V(()=>{r.forEach(o=>{o&&(typeof o=="function"?o(a.current):o.current=a.current)})},[r]),a};import m,{useEffect as s,useRef as T,useState as R}from"react";import e from"prop-types";import{allMediaTypes as L,initialize as j,teardown as w,StreamTypes as h,PlaybackTypes as H,toMuxVideoURL as M,generatePlayerInitTime as I}from"@mux/playback-core";var v=()=>{try{return"0.8.3"}catch{}return"UNKNOWN"},S=v(),b=()=>S;var N=b(),_="mux-video-react",P=m.forwardRef((r,a)=>{var p;let{playbackId:o,src:l,children:C,autoPlay:f,preload:c,streamType:A,disableCookies:U,_hlsConfig:D,...g}=r,[x]=R(I()),[u,E]=R((p=M(r))!=null?p:l),n=T(void 0),O=T(null),d=y(O,a);return s(()=>{var t;E((t=M(r))!=null?t:l)},[l,o]),s(()=>{let t={...r,src:u,playerInitTime:x,playerSoftwareName:_,playerSoftwareVersion:N,autoplay:f},i=d.current;return i&&(n.current=j(t,i,n.current)),()=>{w(i,n.current),i=void 0,n.current=void 0}},[u]),s(()=>{var t;(t=n.current)==null||t.setAutoplay(f)},[f]),s(()=>{var t;(t=n.current)==null||t.setPreload(c)},[c]),m.createElement("video",{ref:d,...g},C)});P.propTypes={envKey:e.string,debug:e.bool,disableCookies:e.bool,metadata:e.any,_hlsConfig:e.any,beaconCollectionDomain:e.string,playbackId:e.string,playerInitTime:e.number,preferPlayback:e.oneOf(Object.values(H)),type:e.oneOf(L),streamType:e.oneOf(Object.values(h)),startTime:e.number};var X=P;export{X as default};
1
+ import{useEffect as V,useRef as k}from"react";var y=(...r)=>{let a=k(null);return V(()=>{r.forEach(o=>{o&&(typeof o=="function"?o(a.current):o.current=a.current)})},[r]),a};import m,{useEffect as s,useRef as T,useState as R}from"react";import e from"prop-types";import{allMediaTypes as L,initialize as j,teardown as w,StreamTypes as h,PlaybackTypes as H,toMuxVideoURL as M,generatePlayerInitTime as I}from"@mux/playback-core";var v=()=>{try{return"0.8.5"}catch{}return"UNKNOWN"},S=v(),b=()=>S;var N=b(),_="mux-video-react",P=m.forwardRef((r,a)=>{var p;let{playbackId:o,src:l,children:C,autoPlay:f,preload:c,streamType:A,disableCookies:U,_hlsConfig:D,...g}=r,[x]=R(I()),[u,E]=R((p=M(r))!=null?p:l),n=T(void 0),O=T(null),d=y(O,a);return s(()=>{var t;E((t=M(r))!=null?t:l)},[l,o]),s(()=>{let t={...r,src:u,playerInitTime:x,playerSoftwareName:_,playerSoftwareVersion:N,autoplay:f},i=d.current;return i&&(n.current=j(t,i,n.current)),()=>{w(i,n.current),i=void 0,n.current=void 0}},[u]),s(()=>{var t;(t=n.current)==null||t.setAutoplay(f)},[f]),s(()=>{var t;(t=n.current)==null||t.setPreload(c)},[c]),m.createElement("video",{ref:d,...g},C)});P.propTypes={envKey:e.string,debug:e.bool,disableCookies:e.bool,metadata:e.any,_hlsConfig:e.any,beaconCollectionDomain:e.string,playbackId:e.string,playerInitTime:e.number,preferPlayback:e.oneOf(Object.values(H)),type:e.oneOf(L),streamType:e.oneOf(Object.values(h)),startTime:e.number};var X=P;export{X as default};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mux/mux-video-react",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-canary.0-5a89efb",
4
4
  "description": "A custom mux video element for React that Just Works™",
5
5
  "keywords": [
6
6
  "video",
@@ -69,7 +69,7 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@mux/playback-core": "0.22.2",
72
+ "@mux/playback-core": "0.22.3-canary.0-5a89efb",
73
73
  "prop-types": "^15.7.2"
74
74
  },
75
75
  "devDependencies": {
@@ -86,6 +86,5 @@
86
86
  "react-dom": "^17.0.2",
87
87
  "shx": "^0.3.4",
88
88
  "typescript": "^4.9.4"
89
- },
90
- "gitHead": "0ee88d8dde598d120f65d212d6af08c7cad5adf7"
89
+ }
91
90
  }
package/LICENSE DELETED
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Mux, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.