@mux/mux-audio-react 0.6.21 → 0.7.0-canary.0-0b90bd0
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 +299 -0
- package/dist/cjs.json +50 -0
- package/dist/esm.json +52 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -4
- package/LICENSE +0 -9
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
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.7.0](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.21...@mux/mux-audio-react@0.7.0) (2023-10-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Manifest manipulation and other media stream query param props. ([954b2c8](https://github.com/muxinc/elements/commit/954b2c80d7df88bb4585c46a15dd1185d56dcf9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.6.21](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.20...@mux/mux-audio-react@0.6.21) (2023-10-03)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.6.20](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.19...@mux/mux-audio-react@0.6.20) (2023-09-05)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.6.19](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.18...@mux/mux-audio-react@0.6.19) (2023-08-30)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [0.6.18](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.17...@mux/mux-audio-react@0.6.18) (2023-08-23)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [0.6.17](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.16...@mux/mux-audio-react@0.6.17) (2023-08-15)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* 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))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## [0.6.16](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.15...@mux/mux-audio-react@0.6.16) (2023-08-14)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [0.6.15](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.14...@mux/mux-audio-react@0.6.15) (2023-07-07)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## [0.6.14](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.13...@mux/mux-audio-react@0.6.14) (2023-06-29)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## [0.6.13](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.12...@mux/mux-audio-react@0.6.13) (2023-06-12)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## [0.6.12](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.11...@mux/mux-audio-react@0.6.12) (2023-06-06)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## [0.6.11](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.10...@mux/mux-audio-react@0.6.11) (2023-05-08)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## [0.6.10](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.9...@mux/mux-audio-react@0.6.10) (2023-04-24)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## [0.6.9](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.8...@mux/mux-audio-react@0.6.9) (2023-04-14)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## [0.6.8](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.7...@mux/mux-audio-react@0.6.8) (2023-03-31)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
* update typedefs, disable skipLibChecks in tsconfig ([#601](https://github.com/muxinc/elements/issues/601)) ([1664aec](https://github.com/muxinc/elements/commit/1664aec20e4cf4a59779848b298d4504eef24080))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [0.6.7](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.6...@mux/mux-audio-react@0.6.7) (2023-02-15)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## [0.6.6](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.5...@mux/mux-audio-react@0.6.6) (2023-02-14)
|
|
144
|
+
|
|
145
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [0.6.5](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.4...@mux/mux-audio-react@0.6.5) (2023-02-02)
|
|
152
|
+
|
|
153
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## [0.6.4](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.3...@mux/mux-audio-react@0.6.4) (2023-02-01)
|
|
160
|
+
|
|
161
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## [0.6.3](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.2...@mux/mux-audio-react@0.6.3) (2023-01-20)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Bug Fixes
|
|
171
|
+
|
|
172
|
+
* MuxAudioReact mem leak ([e707c8c](https://github.com/muxinc/elements/commit/e707c8ce4589e15b51343f24d700b952ffc38988))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## [0.6.2](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.1...@mux/mux-audio-react@0.6.2) (2022-12-13)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## [0.6.1](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.6.0...@mux/mux-audio-react@0.6.1) (2022-11-21)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Bug Fixes
|
|
190
|
+
|
|
191
|
+
* add async effect for loading media ([#492](https://github.com/muxinc/elements/issues/492)) ([d2b250a](https://github.com/muxinc/elements/commit/d2b250a2d86e4e6a4c17fc34196e6468c4fedf1f))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
# [0.6.0](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.5.0...@mux/mux-audio-react@0.6.0) (2022-10-25)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Features
|
|
201
|
+
|
|
202
|
+
* **mux-audio-react:** Add disable cookies prop. ([a025fe7](https://github.com/muxinc/elements/commit/a025fe7b93ddb83cd378ebe444ffc94ce5d76758))
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
# [0.5.0](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.4.3...@mux/mux-audio-react@0.5.0) (2022-10-05)
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
- preload playback core change ([15313ea](https://github.com/muxinc/elements/commit/15313eaad81f748b5853a0fdaabfe141963f885e))
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
- add `prefer-playback` attribute ([#402](https://github.com/muxinc/elements/issues/402)) ([8da36d6](https://github.com/muxinc/elements/commit/8da36d6b597ddbc4ae006873fee13a971b7ec2f3))
|
|
217
|
+
|
|
218
|
+
## [0.4.3](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.4.2...@mux/mux-audio-react@0.4.3) (2022-09-16)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
221
|
+
|
|
222
|
+
## [0.4.2](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.4.1...@mux/mux-audio-react@0.4.2) (2022-08-31)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
225
|
+
|
|
226
|
+
## [0.4.1](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.4.0...@mux/mux-audio-react@0.4.1) (2022-07-21)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @mux/mux-audio-react
|
|
229
|
+
|
|
230
|
+
# 0.4.0 (2022-07-05)
|
|
231
|
+
|
|
232
|
+
### Bug Fixes
|
|
233
|
+
|
|
234
|
+
- **mux-audio-react:** use generateInitTime() instead of Date.now. ([d60f98c](https://github.com/muxinc/elements/commit/d60f98c3f9d626c2a0cb656ccafbb21b4802ca13))
|
|
235
|
+
- prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
|
|
236
|
+
- switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
|
|
237
|
+
- update react peerDependencies to allow ^18 ([1cfb019](https://github.com/muxinc/elements/commit/1cfb019b71cf9aa280abccaf4a7818d585b56d86))
|
|
238
|
+
|
|
239
|
+
### Features
|
|
240
|
+
|
|
241
|
+
- add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
|
|
242
|
+
- Extended autoplay options ([#116](https://github.com/muxinc/elements/issues/116)) ([475e838](https://github.com/muxinc/elements/commit/475e83884f641c578fa601c9501147d485fc1831))
|
|
243
|
+
|
|
244
|
+
## [0.3.11](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.10...@mux-elements/mux-audio-react@0.3.11) (2022-06-23)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
247
|
+
|
|
248
|
+
## [0.3.10](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.9...@mux-elements/mux-audio-react@0.3.10) (2022-06-06)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
251
|
+
|
|
252
|
+
## [0.3.9](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.8...@mux-elements/mux-audio-react@0.3.9) (2022-05-26)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
255
|
+
|
|
256
|
+
## [0.3.8](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.7...@mux-elements/mux-audio-react@0.3.8) (2022-05-23)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
259
|
+
|
|
260
|
+
## [0.3.7](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.6...@mux-elements/mux-audio-react@0.3.7) (2022-05-20)
|
|
261
|
+
|
|
262
|
+
### Bug Fixes
|
|
263
|
+
|
|
264
|
+
- switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
|
|
265
|
+
|
|
266
|
+
## [0.3.6](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.5...@mux-elements/mux-audio-react@0.3.6) (2022-05-10)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
269
|
+
|
|
270
|
+
## [0.3.5](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.4...@mux-elements/mux-audio-react@0.3.5) (2022-05-03)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
273
|
+
|
|
274
|
+
## [0.3.4](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.3...@mux-elements/mux-audio-react@0.3.4) (2022-04-22)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
277
|
+
|
|
278
|
+
## [0.3.3](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.2...@mux-elements/mux-audio-react@0.3.3) (2022-04-18)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
281
|
+
|
|
282
|
+
## [0.3.2](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.1...@mux-elements/mux-audio-react@0.3.2) (2022-04-12)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
285
|
+
|
|
286
|
+
## [0.3.1](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.3.0...@mux-elements/mux-audio-react@0.3.1) (2022-04-01)
|
|
287
|
+
|
|
288
|
+
**Note:** Version bump only for package @mux-elements/mux-audio-react
|
|
289
|
+
|
|
290
|
+
# [0.3.0](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio-react@0.2.0...@mux-elements/mux-audio-react@0.3.0) (2022-03-28)
|
|
291
|
+
|
|
292
|
+
### Bug Fixes
|
|
293
|
+
|
|
294
|
+
- **mux-audio-react:** use generateInitTime() instead of Date.now. ([d60f98c](https://github.com/muxinc/elements/commit/d60f98c3f9d626c2a0cb656ccafbb21b4802ca13))
|
|
295
|
+
- prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
|
|
296
|
+
|
|
297
|
+
### Features
|
|
298
|
+
|
|
299
|
+
- add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
|
package/dist/cjs.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"inputs": {
|
|
3
|
+
"src/use-combined-refs.ts": {
|
|
4
|
+
"bytes": 831,
|
|
5
|
+
"imports": []
|
|
6
|
+
},
|
|
7
|
+
"src/env.ts": {
|
|
8
|
+
"bytes": 391,
|
|
9
|
+
"imports": []
|
|
10
|
+
},
|
|
11
|
+
"src/index.tsx": {
|
|
12
|
+
"bytes": 2824,
|
|
13
|
+
"imports": [
|
|
14
|
+
{
|
|
15
|
+
"path": "src/use-combined-refs.ts",
|
|
16
|
+
"kind": "import-statement"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "src/env.ts",
|
|
20
|
+
"kind": "import-statement"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"outputs": {
|
|
26
|
+
"dist/index.cjs.js.map": {
|
|
27
|
+
"imports": [],
|
|
28
|
+
"exports": [],
|
|
29
|
+
"inputs": {},
|
|
30
|
+
"bytes": 6774
|
|
31
|
+
},
|
|
32
|
+
"dist/index.cjs.js": {
|
|
33
|
+
"imports": [],
|
|
34
|
+
"exports": [],
|
|
35
|
+
"entryPoint": "src/index.tsx",
|
|
36
|
+
"inputs": {
|
|
37
|
+
"src/index.tsx": {
|
|
38
|
+
"bytesInOutput": 1350
|
|
39
|
+
},
|
|
40
|
+
"src/use-combined-refs.ts": {
|
|
41
|
+
"bytesInOutput": 171
|
|
42
|
+
},
|
|
43
|
+
"src/env.ts": {
|
|
44
|
+
"bytesInOutput": 67
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"bytes": 2197
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
package/dist/esm.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"inputs": {
|
|
3
|
+
"src/use-combined-refs.ts": {
|
|
4
|
+
"bytes": 831,
|
|
5
|
+
"imports": []
|
|
6
|
+
},
|
|
7
|
+
"src/env.ts": {
|
|
8
|
+
"bytes": 391,
|
|
9
|
+
"imports": []
|
|
10
|
+
},
|
|
11
|
+
"src/index.tsx": {
|
|
12
|
+
"bytes": 2824,
|
|
13
|
+
"imports": [
|
|
14
|
+
{
|
|
15
|
+
"path": "src/use-combined-refs.ts",
|
|
16
|
+
"kind": "import-statement"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "src/env.ts",
|
|
20
|
+
"kind": "import-statement"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"outputs": {
|
|
26
|
+
"dist/index.mjs.map": {
|
|
27
|
+
"imports": [],
|
|
28
|
+
"exports": [],
|
|
29
|
+
"inputs": {},
|
|
30
|
+
"bytes": 7033
|
|
31
|
+
},
|
|
32
|
+
"dist/index.mjs": {
|
|
33
|
+
"imports": [],
|
|
34
|
+
"exports": [
|
|
35
|
+
"default"
|
|
36
|
+
],
|
|
37
|
+
"entryPoint": "src/index.tsx",
|
|
38
|
+
"inputs": {
|
|
39
|
+
"src/use-combined-refs.ts": {
|
|
40
|
+
"bytesInOutput": 174
|
|
41
|
+
},
|
|
42
|
+
"src/index.tsx": {
|
|
43
|
+
"bytesInOutput": 1130
|
|
44
|
+
},
|
|
45
|
+
"src/env.ts": {
|
|
46
|
+
"bytesInOutput": 67
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"bytes": 1428
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var A=Object.create;var l=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},R=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of L(t))!v.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(u=S(t,s))||u.enumerable});return e};var M=(e,t,r)=>(r=e!=null?A(j(e)):{},R(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),H=e=>R(l({},"__esModule",{value:!0}),e);var D={};w(D,{default:()=>U});module.exports=H(D);var
|
|
1
|
+
"use strict";var A=Object.create;var l=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var w=(e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})},R=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of L(t))!v.call(e,s)&&s!==r&&l(e,s,{get:()=>t[s],enumerable:!(u=S(t,s))||u.enumerable});return e};var M=(e,t,r)=>(r=e!=null?A(j(e)):{},R(t||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),H=e=>R(l({},"__esModule",{value:!0}),e);var D={};w(D,{default:()=>U});module.exports=H(D);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 I=()=>{try{return"0.7.0"}catch{}return"UNKNOWN"},V=I(),x=()=>V;var N=x(),h="mux-audio-react",E=n.default.forwardRef((e,t)=>{var T;let{playbackId:r,src:u,children:s,autoPlay:p,preload:y,...O}=e,[g]=(0,n.useState)((0,o.generatePlayerInitTime)()),[b,C]=(0,n.useState)((T=(0,o.toMuxVideoURL)(e))!=null?T:u),c=(0,n.useRef)(void 0),k=(0,n.useRef)(null),m=P(k,t);return(0,n.useEffect)(()=>{var i;C((i=(0,o.toMuxVideoURL)(e))!=null?i:u)},[u,r]),(0,n.useEffect)(()=>{let i={...e,src:b,playerInitTime:g,playerSoftwareName:h,playerSoftwareVersion:N,autoplay:p},f=m.current;return f&&(c.current=(0,o.initialize)(i,f,c.current)),()=>{(0,o.teardown)(f,c.current),f=void 0,c.current=void 0}},[b]),(0,n.useEffect)(()=>{var i;(i=c.current)==null||i.setAutoplay(p)},[p]),(0,n.useEffect)(()=>{var i;(i=c.current)==null||i.setPreload(y)},[y]),n.default.createElement("audio",{ref:m,...O},s)});E.propTypes={envKey:a.default.string,debug:a.default.bool,disableCookies:a.default.bool,metadata: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 U=E;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.tsx", "../src/use-combined-refs.ts", "../src/env.ts"],
|
|
4
|
-
"sourcesContent": ["import { useCombinedRefs } from './use-combined-refs';\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n allMediaTypes,\n initialize,\n teardown,\n MuxMediaProps,\n StreamTypes,\n PlaybackTypes,\n toMuxVideoURL,\n generatePlayerInitTime,\n} from '@mux/playback-core';\nimport type { PlaybackCore } from '@mux/playback-core';\nimport { getPlayerVersion } from './env';\n\nexport type Props = Omit<\n React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>,\n 'autoPlay'\n> &\n MuxMediaProps;\n\nconst playerSoftwareVersion = getPlayerVersion();\nconst playerSoftwareName = 'mux-audio-react';\n\nconst MuxAudio = React.forwardRef<HTMLAudioElement | undefined, Partial<Props>>((props, ref) => {\n const { playbackId, src: outerSrc, children, autoPlay, preload, ...restProps } = props;\n\n const [playerInitTime] = useState(generatePlayerInitTime());\n const [src, setSrc] = useState<MuxMediaProps['src']>(toMuxVideoURL(
|
|
5
|
-
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAoD,iBAUvCC,EAAmC,IAAIC,IAAS,CAC3D,IAAMC,KAAY,UAAO,IAAI,EAE7B,sBAAU,IAAM,CACdD,EAAK,QAASE,GAAQ,CAChB,CAACA,IAED,OAAOA,GAAQ,WACjBA,EAAID,EAAU,OAAO,EAErBC,EAAI,QAAUD,EAAU,QAE5B,CAAC,CACH,EAAG,CAACD,CAAI,CAAC,EAEFC,CACT,EDzBA,IAAAE,EAAmD,oBACnDC,EAAsB,yBACtBC,EASO,8BERP,IAAMC,EAAsB,IAAM,CAChC,GAAI,CAEF,MAAO,
|
|
4
|
+
"sourcesContent": ["import { useCombinedRefs } from './use-combined-refs';\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n allMediaTypes,\n initialize,\n teardown,\n MuxMediaProps,\n StreamTypes,\n PlaybackTypes,\n toMuxVideoURL,\n generatePlayerInitTime,\n} from '@mux/playback-core';\nimport type { PlaybackCore } from '@mux/playback-core';\nimport { getPlayerVersion } from './env';\n\nexport type Props = Omit<\n React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>,\n 'autoPlay'\n> &\n MuxMediaProps;\n\nconst playerSoftwareVersion = getPlayerVersion();\nconst playerSoftwareName = 'mux-audio-react';\n\nconst MuxAudio = React.forwardRef<HTMLAudioElement | undefined, Partial<Props>>((props, ref) => {\n const { playbackId, src: outerSrc, children, autoPlay, preload, ...restProps } = props;\n\n const [playerInitTime] = useState(generatePlayerInitTime());\n const [src, setSrc] = useState<MuxMediaProps['src']>(toMuxVideoURL(props) ?? outerSrc);\n const playbackCoreRef = useRef<PlaybackCore | undefined>(undefined);\n const innerMediaElRef = useRef<HTMLAudioElement>(null);\n const mediaElRef = useCombinedRefs(innerMediaElRef, ref);\n\n useEffect(() => {\n setSrc(toMuxVideoURL(props) ?? outerSrc);\n }, [outerSrc, playbackId]);\n\n useEffect(() => {\n const propsWithState = {\n ...props,\n src,\n playerInitTime,\n playerSoftwareName,\n playerSoftwareVersion,\n autoplay: autoPlay,\n };\n\n // mediaEl required caching here so the ref was not null in the unmount callback.\n let mediaEl = mediaElRef.current;\n if (mediaEl) {\n playbackCoreRef.current = initialize(propsWithState, mediaEl, playbackCoreRef.current);\n }\n\n return () => {\n teardown(mediaEl, playbackCoreRef.current);\n mediaEl = undefined;\n playbackCoreRef.current = undefined;\n };\n }, [src]);\n\n useEffect(() => {\n playbackCoreRef.current?.setAutoplay(autoPlay);\n }, [autoPlay]);\n\n useEffect(() => {\n playbackCoreRef.current?.setPreload(preload);\n }, [preload]);\n\n return (\n /** @TODO Fix types relationships (CJP) */\n <audio ref={mediaElRef as typeof innerMediaElRef} {...restProps}>\n {children}\n </audio>\n );\n});\n\nMuxAudio.propTypes = {\n envKey: PropTypes.string,\n debug: PropTypes.bool,\n disableCookies: PropTypes.bool,\n // Improve this by adding a full shape() definition for all metadata props\n // metadata: PropTypes.shape({}),\n metadata: PropTypes.any,\n beaconCollectionDomain: PropTypes.string,\n playbackId: PropTypes.string,\n playerInitTime: PropTypes.number,\n preferPlayback: PropTypes.oneOf(Object.values(PlaybackTypes)),\n type: PropTypes.oneOf(allMediaTypes),\n streamType: PropTypes.oneOf(Object.values(StreamTypes)),\n startTime: PropTypes.number,\n};\n\nexport default MuxAudio;\n", "import { useEffect, useRef, MutableRefObject } from 'react';\n\ntype Maybe<T> = T | null | undefined;\ntype RefCb<T> = (instance: Maybe<T>) => void;\ntype RefObj<T> = MutableRefObject<Maybe<T>>;\ntype RefTypes<T> = RefObj<T> | RefCb<T>;\ninterface useCombinedRefs {\n <T>(...refs: Maybe<RefTypes<T>>[]): RefObj<T>;\n}\n\nexport const useCombinedRefs: useCombinedRefs = (...refs) => {\n const targetRef = useRef(null);\n\n useEffect(() => {\n refs.forEach((ref) => {\n if (!ref) return;\n\n if (typeof ref === 'function') {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n });\n }, [refs]);\n\n return targetRef;\n};\n\n// TS assumed default export was interface def instead of function value (CJP)\nconst defaultUseCombinedRefs = useCombinedRefs;\nexport default defaultUseCombinedRefs;\n", "export const isMaybeBrowser = () => typeof window != 'undefined';\n// @ts-ignore\nexport const isMaybeServer = () => typeof global != 'undefined';\n\nconst getEnvPlayerVersion = () => {\n try {\n // @ts-ignore\n return PLAYER_VERSION as string;\n } catch {}\n return 'UNKNOWN';\n};\n\nconst player_version: string = getEnvPlayerVersion();\n\nexport const getPlayerVersion = () => player_version;\n"],
|
|
5
|
+
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAoD,iBAUvCC,EAAmC,IAAIC,IAAS,CAC3D,IAAMC,KAAY,UAAO,IAAI,EAE7B,sBAAU,IAAM,CACdD,EAAK,QAASE,GAAQ,CAChB,CAACA,IAED,OAAOA,GAAQ,WACjBA,EAAID,EAAU,OAAO,EAErBC,EAAI,QAAUD,EAAU,QAE5B,CAAC,CACH,EAAG,CAACD,CAAI,CAAC,EAEFC,CACT,EDzBA,IAAAE,EAAmD,oBACnDC,EAAsB,yBACtBC,EASO,8BERP,IAAMC,EAAsB,IAAM,CAChC,GAAI,CAEF,MAAO,OACT,MAAE,CAAO,CACT,MAAO,SACT,EAEMC,EAAyBD,EAAoB,EAEtCE,EAAmB,IAAMD,EFQtC,IAAME,EAAwBC,EAAiB,EACzCC,EAAqB,kBAErBC,EAAW,EAAAC,QAAM,WAAyD,CAACC,EAAOC,IAAQ,CAzBhG,IAAAC,EA0BE,GAAM,CAAE,WAAAC,EAAY,IAAKC,EAAU,SAAAC,EAAU,SAAAC,EAAU,QAAAC,KAAYC,CAAU,EAAIR,EAE3E,CAACS,CAAc,KAAI,eAAS,0BAAuB,CAAC,EACpD,CAACC,EAAKC,CAAM,KAAI,aAA+BT,KAAA,iBAAcF,CAAK,IAAnB,KAAAE,EAAwBE,CAAQ,EAC/EQ,KAAkB,UAAiC,MAAS,EAC5DC,KAAkB,UAAyB,IAAI,EAC/CC,EAAaC,EAAgBF,EAAiBZ,CAAG,EAEvD,sBAAU,IAAM,CAlClB,IAAAC,EAmCIS,GAAOT,KAAA,iBAAcF,CAAK,IAAnB,KAAAE,EAAwBE,CAAQ,CACzC,EAAG,CAACA,EAAUD,CAAU,CAAC,KAEzB,aAAU,IAAM,CACd,IAAMa,EAAiB,CACrB,GAAGhB,EACH,IAAAU,EACA,eAAAD,EACA,mBAAAZ,EACA,sBAAAF,EACA,SAAUW,CACZ,EAGIW,EAAUH,EAAW,QACzB,OAAIG,IACFL,EAAgB,WAAU,cAAWI,EAAgBC,EAASL,EAAgB,OAAO,GAGhF,IAAM,IACX,YAASK,EAASL,EAAgB,OAAO,EACzCK,EAAU,OACVL,EAAgB,QAAU,MAC5B,CACF,EAAG,CAACF,CAAG,CAAC,KAER,aAAU,IAAM,CA7DlB,IAAAR,GA8DIA,EAAAU,EAAgB,UAAhB,MAAAV,EAAyB,YAAYI,EACvC,EAAG,CAACA,CAAQ,CAAC,KAEb,aAAU,IAAM,CAjElB,IAAAJ,GAkEIA,EAAAU,EAAgB,UAAhB,MAAAV,EAAyB,WAAWK,EACtC,EAAG,CAACA,CAAO,CAAC,EAIV,EAAAR,QAAA,cAAC,SAAM,IAAKe,EAAuC,GAAGN,GACnDH,CACH,CAEJ,CAAC,EAEDP,EAAS,UAAY,CACnB,OAAQ,EAAAoB,QAAU,OAClB,MAAO,EAAAA,QAAU,KACjB,eAAgB,EAAAA,QAAU,KAG1B,SAAU,EAAAA,QAAU,IACpB,uBAAwB,EAAAA,QAAU,OAClC,WAAY,EAAAA,QAAU,OACtB,eAAgB,EAAAA,QAAU,OAC1B,eAAgB,EAAAA,QAAU,MAAM,OAAO,OAAO,eAAa,CAAC,EAC5D,KAAM,EAAAA,QAAU,MAAM,eAAa,EACnC,WAAY,EAAAA,QAAU,MAAM,OAAO,OAAO,aAAW,CAAC,EACtD,UAAW,EAAAA,QAAU,MACvB,EAEA,IAAOC,EAAQrB",
|
|
6
6
|
"names": ["src_exports", "__export", "src_default", "__toCommonJS", "import_react", "useCombinedRefs", "refs", "targetRef", "ref", "import_react", "import_prop_types", "import_playback_core", "getEnvPlayerVersion", "player_version", "getPlayerVersion", "playerSoftwareVersion", "getPlayerVersion", "playerSoftwareName", "MuxAudio", "React", "props", "ref", "_a", "playbackId", "outerSrc", "children", "autoPlay", "preload", "restProps", "playerInitTime", "src", "setSrc", "playbackCoreRef", "innerMediaElRef", "mediaElRef", "useCombinedRefs", "propsWithState", "mediaEl", "PropTypes", "src_default"]
|
|
7
7
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useEffect as k,useRef as A}from"react";var y=(...
|
|
1
|
+
import{useEffect as k,useRef as A}from"react";var y=(...r)=>{let a=A(null);return k(()=>{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 j,initialize as v,teardown as w,StreamTypes as H,PlaybackTypes as I,toMuxVideoURL as M,generatePlayerInitTime as V}from"@mux/playback-core";var S=()=>{try{return"0.7.0"}catch{}return"UNKNOWN"},L=S(),b=()=>L;var N=b(),h="mux-audio-react",P=m.forwardRef((r,a)=>{var p;let{playbackId:o,src:u,children:x,autoPlay:c,preload:f,...E}=r,[O]=R(V()),[l,g]=R((p=M(r))!=null?p:u),n=T(void 0),C=T(null),d=y(C,a);return s(()=>{var t;g((t=M(r))!=null?t:u)},[u,o]),s(()=>{let t={...r,src:l,playerInitTime:O,playerSoftwareName:h,playerSoftwareVersion:N,autoplay:c},i=d.current;return i&&(n.current=v(t,i,n.current)),()=>{w(i,n.current),i=void 0,n.current=void 0}},[l]),s(()=>{var t;(t=n.current)==null||t.setAutoplay(c)},[c]),s(()=>{var t;(t=n.current)==null||t.setPreload(f)},[f]),m.createElement("audio",{ref:d,...E},x)});P.propTypes={envKey:e.string,debug:e.bool,disableCookies:e.bool,metadata:e.any,beaconCollectionDomain:e.string,playbackId:e.string,playerInitTime:e.number,preferPlayback:e.oneOf(Object.values(I)),type:e.oneOf(j),streamType:e.oneOf(Object.values(H)),startTime:e.number};var G=P;export{G as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/use-combined-refs.ts", "../src/index.tsx", "../src/env.ts"],
|
|
4
|
-
"sourcesContent": ["import { useEffect, useRef, MutableRefObject } from 'react';\n\ntype Maybe<T> = T | null | undefined;\ntype RefCb<T> = (instance: Maybe<T>) => void;\ntype RefObj<T> = MutableRefObject<Maybe<T>>;\ntype RefTypes<T> = RefObj<T> | RefCb<T>;\ninterface useCombinedRefs {\n <T>(...refs: Maybe<RefTypes<T>>[]): RefObj<T>;\n}\n\nexport const useCombinedRefs: useCombinedRefs = (...refs) => {\n const targetRef = useRef(null);\n\n useEffect(() => {\n refs.forEach((ref) => {\n if (!ref) return;\n\n if (typeof ref === 'function') {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n });\n }, [refs]);\n\n return targetRef;\n};\n\n// TS assumed default export was interface def instead of function value (CJP)\nconst defaultUseCombinedRefs = useCombinedRefs;\nexport default defaultUseCombinedRefs;\n", "import { useCombinedRefs } from './use-combined-refs';\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n allMediaTypes,\n initialize,\n teardown,\n MuxMediaProps,\n StreamTypes,\n PlaybackTypes,\n toMuxVideoURL,\n generatePlayerInitTime,\n} from '@mux/playback-core';\nimport type { PlaybackCore } from '@mux/playback-core';\nimport { getPlayerVersion } from './env';\n\nexport type Props = Omit<\n React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>,\n 'autoPlay'\n> &\n MuxMediaProps;\n\nconst playerSoftwareVersion = getPlayerVersion();\nconst playerSoftwareName = 'mux-audio-react';\n\nconst MuxAudio = React.forwardRef<HTMLAudioElement | undefined, Partial<Props>>((props, ref) => {\n const { playbackId, src: outerSrc, children, autoPlay, preload, ...restProps } = props;\n\n const [playerInitTime] = useState(generatePlayerInitTime());\n const [src, setSrc] = useState<MuxMediaProps['src']>(toMuxVideoURL(
|
|
5
|
-
"mappings": "AAAA,OAAS,aAAAA,EAAW,UAAAC,MAAgC,QAU7C,IAAMC,EAAmC,IAAIC,IAAS,CAC3D,IAAMC,EAAYH,EAAO,IAAI,EAE7B,OAAAD,EAAU,IAAM,CACdG,EAAK,QAASE,GAAQ,CAChB,CAACA,IAED,OAAOA,GAAQ,WACjBA,EAAID,EAAU,OAAO,EAErBC,EAAI,QAAUD,EAAU,QAE5B,CAAC,CACH,EAAG,CAACD,CAAI,CAAC,EAEFC,CACT,ECzBA,OAAOE,GAAS,aAAAC,EAAW,UAAAC,EAAQ,YAAAC,MAAgB,QACnD,OAAOC,MAAe,aACtB,OACE,iBAAAC,EACA,cAAAC,EACA,YAAAC,EAEA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,0BAAAC,MACK,qBCRP,IAAMC,EAAsB,IAAM,CAChC,GAAI,CAEF,MAAO,
|
|
4
|
+
"sourcesContent": ["import { useEffect, useRef, MutableRefObject } from 'react';\n\ntype Maybe<T> = T | null | undefined;\ntype RefCb<T> = (instance: Maybe<T>) => void;\ntype RefObj<T> = MutableRefObject<Maybe<T>>;\ntype RefTypes<T> = RefObj<T> | RefCb<T>;\ninterface useCombinedRefs {\n <T>(...refs: Maybe<RefTypes<T>>[]): RefObj<T>;\n}\n\nexport const useCombinedRefs: useCombinedRefs = (...refs) => {\n const targetRef = useRef(null);\n\n useEffect(() => {\n refs.forEach((ref) => {\n if (!ref) return;\n\n if (typeof ref === 'function') {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n });\n }, [refs]);\n\n return targetRef;\n};\n\n// TS assumed default export was interface def instead of function value (CJP)\nconst defaultUseCombinedRefs = useCombinedRefs;\nexport default defaultUseCombinedRefs;\n", "import { useCombinedRefs } from './use-combined-refs';\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n allMediaTypes,\n initialize,\n teardown,\n MuxMediaProps,\n StreamTypes,\n PlaybackTypes,\n toMuxVideoURL,\n generatePlayerInitTime,\n} from '@mux/playback-core';\nimport type { PlaybackCore } from '@mux/playback-core';\nimport { getPlayerVersion } from './env';\n\nexport type Props = Omit<\n React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>,\n 'autoPlay'\n> &\n MuxMediaProps;\n\nconst playerSoftwareVersion = getPlayerVersion();\nconst playerSoftwareName = 'mux-audio-react';\n\nconst MuxAudio = React.forwardRef<HTMLAudioElement | undefined, Partial<Props>>((props, ref) => {\n const { playbackId, src: outerSrc, children, autoPlay, preload, ...restProps } = props;\n\n const [playerInitTime] = useState(generatePlayerInitTime());\n const [src, setSrc] = useState<MuxMediaProps['src']>(toMuxVideoURL(props) ?? outerSrc);\n const playbackCoreRef = useRef<PlaybackCore | undefined>(undefined);\n const innerMediaElRef = useRef<HTMLAudioElement>(null);\n const mediaElRef = useCombinedRefs(innerMediaElRef, ref);\n\n useEffect(() => {\n setSrc(toMuxVideoURL(props) ?? outerSrc);\n }, [outerSrc, playbackId]);\n\n useEffect(() => {\n const propsWithState = {\n ...props,\n src,\n playerInitTime,\n playerSoftwareName,\n playerSoftwareVersion,\n autoplay: autoPlay,\n };\n\n // mediaEl required caching here so the ref was not null in the unmount callback.\n let mediaEl = mediaElRef.current;\n if (mediaEl) {\n playbackCoreRef.current = initialize(propsWithState, mediaEl, playbackCoreRef.current);\n }\n\n return () => {\n teardown(mediaEl, playbackCoreRef.current);\n mediaEl = undefined;\n playbackCoreRef.current = undefined;\n };\n }, [src]);\n\n useEffect(() => {\n playbackCoreRef.current?.setAutoplay(autoPlay);\n }, [autoPlay]);\n\n useEffect(() => {\n playbackCoreRef.current?.setPreload(preload);\n }, [preload]);\n\n return (\n /** @TODO Fix types relationships (CJP) */\n <audio ref={mediaElRef as typeof innerMediaElRef} {...restProps}>\n {children}\n </audio>\n );\n});\n\nMuxAudio.propTypes = {\n envKey: PropTypes.string,\n debug: PropTypes.bool,\n disableCookies: PropTypes.bool,\n // Improve this by adding a full shape() definition for all metadata props\n // metadata: PropTypes.shape({}),\n metadata: PropTypes.any,\n beaconCollectionDomain: PropTypes.string,\n playbackId: PropTypes.string,\n playerInitTime: PropTypes.number,\n preferPlayback: PropTypes.oneOf(Object.values(PlaybackTypes)),\n type: PropTypes.oneOf(allMediaTypes),\n streamType: PropTypes.oneOf(Object.values(StreamTypes)),\n startTime: PropTypes.number,\n};\n\nexport default MuxAudio;\n", "export const isMaybeBrowser = () => typeof window != 'undefined';\n// @ts-ignore\nexport const isMaybeServer = () => typeof global != 'undefined';\n\nconst getEnvPlayerVersion = () => {\n try {\n // @ts-ignore\n return PLAYER_VERSION as string;\n } catch {}\n return 'UNKNOWN';\n};\n\nconst player_version: string = getEnvPlayerVersion();\n\nexport const getPlayerVersion = () => player_version;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,aAAAA,EAAW,UAAAC,MAAgC,QAU7C,IAAMC,EAAmC,IAAIC,IAAS,CAC3D,IAAMC,EAAYH,EAAO,IAAI,EAE7B,OAAAD,EAAU,IAAM,CACdG,EAAK,QAASE,GAAQ,CAChB,CAACA,IAED,OAAOA,GAAQ,WACjBA,EAAID,EAAU,OAAO,EAErBC,EAAI,QAAUD,EAAU,QAE5B,CAAC,CACH,EAAG,CAACD,CAAI,CAAC,EAEFC,CACT,ECzBA,OAAOE,GAAS,aAAAC,EAAW,UAAAC,EAAQ,YAAAC,MAAgB,QACnD,OAAOC,MAAe,aACtB,OACE,iBAAAC,EACA,cAAAC,EACA,YAAAC,EAEA,eAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,0BAAAC,MACK,qBCRP,IAAMC,EAAsB,IAAM,CAChC,GAAI,CAEF,MAAO,OACT,MAAE,CAAO,CACT,MAAO,SACT,EAEMC,EAAyBD,EAAoB,EAEtCE,EAAmB,IAAMD,EDQtC,IAAME,EAAwBC,EAAiB,EACzCC,EAAqB,kBAErBC,EAAWC,EAAM,WAAyD,CAACC,EAAOC,IAAQ,CAzBhG,IAAAC,EA0BE,GAAM,CAAE,WAAAC,EAAY,IAAKC,EAAU,SAAAC,EAAU,SAAAC,EAAU,QAAAC,KAAYC,CAAU,EAAIR,EAE3E,CAACS,CAAc,EAAIC,EAASC,EAAuB,CAAC,EACpD,CAACC,EAAKC,CAAM,EAAIH,GAA+BR,EAAAY,EAAcd,CAAK,IAAnB,KAAAE,EAAwBE,CAAQ,EAC/EW,EAAkBC,EAAiC,MAAS,EAC5DC,EAAkBD,EAAyB,IAAI,EAC/CE,EAAaC,EAAgBF,EAAiBhB,CAAG,EAEvD,OAAAmB,EAAU,IAAM,CAlClB,IAAAlB,EAmCIW,GAAOX,EAAAY,EAAcd,CAAK,IAAnB,KAAAE,EAAwBE,CAAQ,CACzC,EAAG,CAACA,EAAUD,CAAU,CAAC,EAEzBiB,EAAU,IAAM,CACd,IAAMC,EAAiB,CACrB,GAAGrB,EACH,IAAAY,EACA,eAAAH,EACA,mBAAAZ,EACA,sBAAAF,EACA,SAAUW,CACZ,EAGIgB,EAAUJ,EAAW,QACzB,OAAII,IACFP,EAAgB,QAAUQ,EAAWF,EAAgBC,EAASP,EAAgB,OAAO,GAGhF,IAAM,CACXS,EAASF,EAASP,EAAgB,OAAO,EACzCO,EAAU,OACVP,EAAgB,QAAU,MAC5B,CACF,EAAG,CAACH,CAAG,CAAC,EAERQ,EAAU,IAAM,CA7DlB,IAAAlB,GA8DIA,EAAAa,EAAgB,UAAhB,MAAAb,EAAyB,YAAYI,EACvC,EAAG,CAACA,CAAQ,CAAC,EAEbc,EAAU,IAAM,CAjElB,IAAAlB,GAkEIA,EAAAa,EAAgB,UAAhB,MAAAb,EAAyB,WAAWK,EACtC,EAAG,CAACA,CAAO,CAAC,EAIVR,EAAA,cAAC,SAAM,IAAKmB,EAAuC,GAAGV,GACnDH,CACH,CAEJ,CAAC,EAEDP,EAAS,UAAY,CACnB,OAAQ2B,EAAU,OAClB,MAAOA,EAAU,KACjB,eAAgBA,EAAU,KAG1B,SAAUA,EAAU,IACpB,uBAAwBA,EAAU,OAClC,WAAYA,EAAU,OACtB,eAAgBA,EAAU,OAC1B,eAAgBA,EAAU,MAAM,OAAO,OAAOC,CAAa,CAAC,EAC5D,KAAMD,EAAU,MAAME,CAAa,EACnC,WAAYF,EAAU,MAAM,OAAO,OAAOG,CAAW,CAAC,EACtD,UAAWH,EAAU,MACvB,EAEA,IAAOI,EAAQ/B",
|
|
6
6
|
"names": ["useEffect", "useRef", "useCombinedRefs", "refs", "targetRef", "ref", "React", "useEffect", "useRef", "useState", "PropTypes", "allMediaTypes", "initialize", "teardown", "StreamTypes", "PlaybackTypes", "toMuxVideoURL", "generatePlayerInitTime", "getEnvPlayerVersion", "player_version", "getPlayerVersion", "playerSoftwareVersion", "getPlayerVersion", "playerSoftwareName", "MuxAudio", "React", "props", "ref", "_a", "playbackId", "outerSrc", "children", "autoPlay", "preload", "restProps", "playerInitTime", "useState", "generatePlayerInitTime", "src", "setSrc", "toMuxVideoURL", "playbackCoreRef", "useRef", "innerMediaElRef", "mediaElRef", "useCombinedRefs", "useEffect", "propsWithState", "mediaEl", "initialize", "teardown", "PropTypes", "PlaybackTypes", "allMediaTypes", "StreamTypes", "src_default"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2019.full.d.ts","../src/env.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../src/use-combined-refs.ts","../../../node_modules/hls.js/dist/hls.js.d.ts","../../playback-core/dist/types/mux-embed.d.ts","../../playback-core/dist/types/hls.d.ts","../../playback-core/dist/types/errors.d.ts","../../../node_modules/media-tracks/dist/types/video-rendition.d.ts","../../../node_modules/media-tracks/dist/types/video-track.d.ts","../../../node_modules/media-tracks/dist/types/video-track-list.d.ts","../../../node_modules/media-tracks/dist/types/audio-rendition.d.ts","../../../node_modules/media-tracks/dist/types/audio-track.d.ts","../../../node_modules/media-tracks/dist/types/audio-track-list.d.ts","../../../node_modules/media-tracks/dist/types/video-rendition-list.d.ts","../../../node_modules/media-tracks/dist/types/audio-rendition-list.d.ts","../../../node_modules/media-tracks/dist/types/mixin.d.ts","../../../node_modules/media-tracks/dist/types/track-event.d.ts","../../../node_modules/media-tracks/dist/types/rendition-event.d.ts","../../../node_modules/media-tracks/dist/types/index.d.ts","../../playback-core/dist/types/types.d.ts","../../playback-core/dist/types/text-tracks.d.ts","../../playback-core/dist/types/pdt.d.ts","../../playback-core/dist/types/index.d.ts","../src/index.tsx"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},"1f03b495671c3a1bd24510f38b8947f0991dfd6bf0278c68eca14af15b306e1f",{"version":"1ee6056d39213c8481cc8af4adb2b1dc373e15e8b2b9864739e6c0b2da60cf1d","signature":"28f2af136cd97b7c5011ec7fd601841b37499ab89ecb7f1594b2903a9ce5b2aa"},{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"facb3daa9cb4215070b5662409638ac826681c208d701e96efe9b731d0ec39ee","affectsGlobalScope":true},{"version":"6ed9dc3c705f9e967631479b016db394cac15a29de4d6361664a2e98d1d6dfe7","signature":"405e223d3a5021ca1b76c68b32713c6df3bd17980a8474f85fd1bcbd0630268e"},"54332f5adc7aa4b215fe1895f96c16218813d37348c7236d343c53d30dbc159f",{"version":"6ff45ab1a5c3f32638dd1131cc94ecd68f11566363ea16dca3c8a7d556a81bbb","affectsGlobalScope":true},"c13fb8c7fdb84f3c59470c672220c380ac26ffb099721ccebba3c53971cb700d","de64daa4e510abaaf4b4970c6dd37e39c3b8a263cccbeb80a41c69ae5a2a34ba","2ed351b90f48ecae9c627d41e2614c6a4fe670f958e8a5a5d3bb4bc21980bdb6","8f358619bbe2b132a373c5e8381018bb1f11f55dbac8cb84c380d5279f18eb75","ba0b6859e73b5fb85f18160a3b0d741968b1c4122fdd3436398dc99a6a9736c9","9979bad516454ac2aaff1756fc7f664ca6ccfdd9b4077f306e99df3033edf0a2","323cfa8826348d6f5269abeed193b53c1ee351a9c178858bce4dee6e9b6c3ac9","24354cb3bc1d897f8321bce628352612d35d92a79dba42e6609f7f5ec7d3a697","2ad77fd12d9bf99057909e40fecb502cb4429c617161f373339f294dfaa5d6f5","8e4de702297e7c9173982f2e1af6bb29b5a0251811ac12de6beb48dba2288a9f",{"version":"f00052d58fca55867ac607515a29de91e6906fe5c999bf9eab49448bbf233519","affectsGlobalScope":true},"d86abfe8b121d0296f860e2165d243a46895e6a7fd089bc7fff4e779131acc15","f9955a6b47c6f2608087b111dca772554ef89d1ed302990104574f7cee41cb05","710bfef6f0be756ddb857985b7dd5d0cc831c67b6bdfbd1179b7dc4457819ff7","a95ce49b7c1a327fb5b9ace91c75482e0536bf00d69ac846681c5dc7e79275c3","8f34e5a4d2235a6c3748bb35a1774f322e745ac9b68e328f3263ec05d6ed926e","dccea7b665fe08ed006acd191a7e68123ba7ec49848ac7c28a164962bf21254e","fb6859c4c46487675e74e4b2ba21d509473d30b9e72efb05716da3ae69ab9e65",{"version":"6109ed61d876f20e2251227d8eb39a0cec172ebb0bf65b7b42da1c7583bff2a9","signature":"bc4b734535f8a4d9f8e28ac84be35182545992a5123afe3b2204624eb56d13f5"}],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":5,"noImplicitAny":true,"outDir":"./types","rootDir":"../src","skipLibCheck":false,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[38,39,40,41],[51,52],[52],[51],[48,49,50,51,52,53,54,55,56,57,58],[49,50,52,53,54,55],[48,51],[49,52],[48,49],[49],[48],[37,40,42,43,63],[42],[44],[45,46,47,60,61,62],[60],[46,60],[45,46,47,59],[42,63]],"referencedMap":[[42,1],[55,2],[53,3],[52,4],[59,5],[56,6],[58,7],[57,8],[54,9],[50,10],[49,11],[64,12],[43,13],[46,14],[63,15],[45,14],[62,16],[61,17],[60,18]],"exportedModulesMap":[[42,1],[55,2],[53,3],[52,4],[59,5],[56,6],[58,7],[57,8],[54,9],[50,10],[49,11],[64,19],[43,13],[46,14],[63,15],[45,14],[62,16],[61,17],[60,18]],"semanticDiagnosticsPerFile":[40,38,42,41,39,44,55,51,53,52,59,56,58,57,54,48,50,49,7,8,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,36,35,32,33,34,1,10,9,37,64,43,47,46,63,45,62,61,60],"latestChangedDtsFile":"./types/index.d.ts"},"version":"4.9.4"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2019.full.d.ts","../src/env.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../src/use-combined-refs.ts","../../../node_modules/hls.js/dist/hls.js.d.ts","../../playback-core/dist/types/mux-embed.d.ts","../../playback-core/dist/types/hls.d.ts","../../playback-core/dist/types/errors.d.ts","../../../node_modules/media-tracks/dist/types/video-rendition.d.ts","../../../node_modules/media-tracks/dist/types/video-track.d.ts","../../../node_modules/media-tracks/dist/types/video-track-list.d.ts","../../../node_modules/media-tracks/dist/types/audio-rendition.d.ts","../../../node_modules/media-tracks/dist/types/audio-track.d.ts","../../../node_modules/media-tracks/dist/types/audio-track-list.d.ts","../../../node_modules/media-tracks/dist/types/video-rendition-list.d.ts","../../../node_modules/media-tracks/dist/types/audio-rendition-list.d.ts","../../../node_modules/media-tracks/dist/types/mixin.d.ts","../../../node_modules/media-tracks/dist/types/track-event.d.ts","../../../node_modules/media-tracks/dist/types/rendition-event.d.ts","../../../node_modules/media-tracks/dist/types/index.d.ts","../../playback-core/dist/types/types.d.ts","../../playback-core/dist/types/text-tracks.d.ts","../../playback-core/dist/types/pdt.d.ts","../../playback-core/dist/types/index.d.ts","../src/index.tsx"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},"1f03b495671c3a1bd24510f38b8947f0991dfd6bf0278c68eca14af15b306e1f",{"version":"1ee6056d39213c8481cc8af4adb2b1dc373e15e8b2b9864739e6c0b2da60cf1d","signature":"28f2af136cd97b7c5011ec7fd601841b37499ab89ecb7f1594b2903a9ce5b2aa"},{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"facb3daa9cb4215070b5662409638ac826681c208d701e96efe9b731d0ec39ee","affectsGlobalScope":true},{"version":"6ed9dc3c705f9e967631479b016db394cac15a29de4d6361664a2e98d1d6dfe7","signature":"405e223d3a5021ca1b76c68b32713c6df3bd17980a8474f85fd1bcbd0630268e"},"54332f5adc7aa4b215fe1895f96c16218813d37348c7236d343c53d30dbc159f",{"version":"6ff45ab1a5c3f32638dd1131cc94ecd68f11566363ea16dca3c8a7d556a81bbb","affectsGlobalScope":true},"c13fb8c7fdb84f3c59470c672220c380ac26ffb099721ccebba3c53971cb700d","de64daa4e510abaaf4b4970c6dd37e39c3b8a263cccbeb80a41c69ae5a2a34ba","2ed351b90f48ecae9c627d41e2614c6a4fe670f958e8a5a5d3bb4bc21980bdb6","8f358619bbe2b132a373c5e8381018bb1f11f55dbac8cb84c380d5279f18eb75","ba0b6859e73b5fb85f18160a3b0d741968b1c4122fdd3436398dc99a6a9736c9","9979bad516454ac2aaff1756fc7f664ca6ccfdd9b4077f306e99df3033edf0a2","323cfa8826348d6f5269abeed193b53c1ee351a9c178858bce4dee6e9b6c3ac9","24354cb3bc1d897f8321bce628352612d35d92a79dba42e6609f7f5ec7d3a697","2ad77fd12d9bf99057909e40fecb502cb4429c617161f373339f294dfaa5d6f5","8e4de702297e7c9173982f2e1af6bb29b5a0251811ac12de6beb48dba2288a9f",{"version":"f00052d58fca55867ac607515a29de91e6906fe5c999bf9eab49448bbf233519","affectsGlobalScope":true},"d86abfe8b121d0296f860e2165d243a46895e6a7fd089bc7fff4e779131acc15","f9955a6b47c6f2608087b111dca772554ef89d1ed302990104574f7cee41cb05","710bfef6f0be756ddb857985b7dd5d0cc831c67b6bdfbd1179b7dc4457819ff7","78619e384443d0416802f8f051ad3f84ab1d72069308ecdd097e32dcaed1077e","8f34e5a4d2235a6c3748bb35a1774f322e745ac9b68e328f3263ec05d6ed926e","dccea7b665fe08ed006acd191a7e68123ba7ec49848ac7c28a164962bf21254e","1b77033ac5e522a7983212d971c1852eeb938f78493df8772886925cc80b4780",{"version":"e4856d64e6045302caa0303106f3b1e7a328a45e12a6437281537caa724a7764","signature":"bc4b734535f8a4d9f8e28ac84be35182545992a5123afe3b2204624eb56d13f5"}],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":5,"noImplicitAny":true,"outDir":"./types","rootDir":"../src","skipLibCheck":false,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[38,39,40,41],[51,52],[52],[51],[48,49,50,51,52,53,54,55,56,57,58],[49,50,52,53,54,55],[48,51],[49,52],[48,49],[49],[48],[37,40,42,43,63],[42],[44],[45,46,47,60,61,62],[60],[46,60],[45,46,47,59],[42,63]],"referencedMap":[[42,1],[55,2],[53,3],[52,4],[59,5],[56,6],[58,7],[57,8],[54,9],[50,10],[49,11],[64,12],[43,13],[46,14],[63,15],[45,14],[62,16],[61,17],[60,18]],"exportedModulesMap":[[42,1],[55,2],[53,3],[52,4],[59,5],[56,6],[58,7],[57,8],[54,9],[50,10],[49,11],[64,19],[43,13],[46,14],[63,15],[45,14],[62,16],[61,17],[60,18]],"semanticDiagnosticsPerFile":[40,38,42,41,39,44,55,51,53,52,59,56,58,57,54,48,50,49,7,8,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,36,35,32,33,34,1,10,9,37,64,43,47,46,63,45,62,61,60],"latestChangedDtsFile":"./types/index.d.ts"},"version":"4.9.4"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mux/mux-audio-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-canary.0-0b90bd0",
|
|
4
4
|
"description": "A custom mux audio element for React that Just Works™",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"audio",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@mux/playback-core": "0.
|
|
71
|
+
"@mux/playback-core": "0.21.0-canary.0-0b90bd0",
|
|
72
72
|
"prop-types": "^15.7.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -85,6 +85,5 @@
|
|
|
85
85
|
"react-dom": "^17.0.2",
|
|
86
86
|
"shx": "^0.3.4",
|
|
87
87
|
"typescript": "^4.9.4"
|
|
88
|
-
}
|
|
89
|
-
"gitHead": "d0c28ee0095935b53c2a25ab795b0628c6443d1f"
|
|
88
|
+
}
|
|
90
89
|
}
|
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.
|