@pokedemo/player 1.0.0
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/LICENSE +481 -0
- package/README.md +154 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +452 -0
- package/dist/index.js +1 -0
- package/dist/pokeplayer.css +1 -0
- package/dist/react.cjs +1 -0
- package/dist/react.d.ts +34 -0
- package/dist/react.js +1 -0
- package/dist/replay-BYaBnfwG.js +1 -0
- package/dist/replay-D0qUB_uv.cjs +1 -0
- package/dist/vue.cjs +1 -0
- package/dist/vue.d.ts +75 -0
- package/dist/vue.js +1 -0
- package/package.json +94 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
PokeDemo Player SDK Commercial License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PokeDemo. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This license applies to the @pokedemo/player package and related software and
|
|
6
|
+
documentation (the "Software"). This is a proprietary commercial license and
|
|
7
|
+
is not an open-source license.
|
|
8
|
+
|
|
9
|
+
1. Acceptance; Incorporated Terms; Precedence
|
|
10
|
+
By downloading, installing, accessing, or using the Software, you agree to
|
|
11
|
+
this license and the PokeDemo Terms of Service available at
|
|
12
|
+
https://pokedemo.com/terms, incorporated by reference.
|
|
13
|
+
If you do not agree, do not download, install, access, or use the Software.
|
|
14
|
+
If there is any conflict between this license and the PokeDemo Terms of
|
|
15
|
+
Service, the PokeDemo Terms of Service take precedence and control.
|
|
16
|
+
All matters not expressly addressed in this license are governed by the
|
|
17
|
+
PokeDemo Terms of Service.
|
|
18
|
+
|
|
19
|
+
2. License Grant
|
|
20
|
+
Subject to this license and the PokeDemo Terms of Service, PokeDemo grants
|
|
21
|
+
you a limited, non-exclusive, non-transferable, revocable license to use the
|
|
22
|
+
Software for your legitimate internal or commercial business purposes in
|
|
23
|
+
connection with authorized PokeDemo services.
|
|
24
|
+
|
|
25
|
+
3. No Source Code Rights; No Modification
|
|
26
|
+
a) This license grants no ownership rights and no right to access, obtain, or
|
|
27
|
+
use PokeDemo source code.
|
|
28
|
+
b) You may not modify, adapt, translate, reverse engineer, decompile,
|
|
29
|
+
disassemble, create derivative works of, or otherwise attempt to derive
|
|
30
|
+
source code from the Software, except where applicable law prohibits this
|
|
31
|
+
restriction.
|
|
32
|
+
c) You may not distribute the Software on a standalone basis. Redistribution
|
|
33
|
+
is permitted only as an unmodified embedded component of your product or
|
|
34
|
+
service, subject to the PokeDemo Terms of Service.
|
|
35
|
+
|
|
36
|
+
4. Customer Responsibility for Recordings and Replays
|
|
37
|
+
You are solely responsible for all content, data, and activity you record,
|
|
38
|
+
capture, replay, export, or share using the Software, including obtaining all
|
|
39
|
+
required rights, notices, consents, and legal basis under applicable law.
|
|
40
|
+
|
|
41
|
+
5. Warranty Disclaimer
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
43
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
44
|
+
FOR A PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT.
|
|
45
|
+
NOTHING IN THIS LICENSE LIMITS RIGHTS THAT CANNOT BE LIMITED UNDER
|
|
46
|
+
APPLICABLE LAW.
|
|
47
|
+
|
|
48
|
+
6. Limitation of Liability
|
|
49
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, POKEDEMO WILL NOT BE LIABLE FOR ANY
|
|
50
|
+
INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES,
|
|
51
|
+
OR FOR LOST PROFITS, REVENUE, DATA, OR GOODWILL, ARISING FROM OR RELATED TO
|
|
52
|
+
THE SOFTWARE OR THIS LICENSE.
|
|
53
|
+
LIABILITY ARISING FROM OR RELATING TO THE SOFTWARE OR THIS LICENSE IS
|
|
54
|
+
SUBJECT TO, AND LIMITED BY, THE LIABILITY TERMS IN THE POKEDEMO TERMS OF
|
|
55
|
+
SERVICE.
|
|
56
|
+
NOTHING IN THIS LICENSE LIMITS OR EXCLUDES LIABILITY WHERE PROHIBITED BY
|
|
57
|
+
APPLICABLE LAW.
|
|
58
|
+
|
|
59
|
+
7. Third-Party Software
|
|
60
|
+
The Software includes third-party components licensed under separate terms.
|
|
61
|
+
See the THIRD_PARTY_NOTICES section in this file.
|
|
62
|
+
|
|
63
|
+
8. Contact
|
|
64
|
+
For licensing inquiries, contact legal@pokedemo.com
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
BEGIN THIRD_PARTY_NOTICES
|
|
69
|
+
|
|
70
|
+
Third-party notices (auto-generated; do not edit)
|
|
71
|
+
|
|
72
|
+
This section lists third-party software included in @pokedemo/player.
|
|
73
|
+
It is generated from this package's bundled dependencies.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
@rrweb/replay@2.0.0-alpha.20
|
|
77
|
+
License: MIT
|
|
78
|
+
Source: git+https://github.com/rrweb-io/rrweb.git
|
|
79
|
+
|
|
80
|
+
License file: INLINE
|
|
81
|
+
|
|
82
|
+
MIT License
|
|
83
|
+
|
|
84
|
+
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
|
|
85
|
+
|
|
86
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
87
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
88
|
+
in the Software without restriction, including without limitation the rights
|
|
89
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
90
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
91
|
+
furnished to do so, subject to the following conditions:
|
|
92
|
+
|
|
93
|
+
The above copyright notice and this permission notice shall be included in all
|
|
94
|
+
copies or substantial portions of the Software.
|
|
95
|
+
|
|
96
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
101
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
102
|
+
SOFTWARE.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
@rrweb/types@2.0.0-alpha.20
|
|
106
|
+
License: MIT
|
|
107
|
+
Source: git+https://github.com/rrweb-io/rrweb.git
|
|
108
|
+
|
|
109
|
+
License file: INLINE
|
|
110
|
+
|
|
111
|
+
MIT License
|
|
112
|
+
|
|
113
|
+
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
|
|
114
|
+
|
|
115
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
116
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
117
|
+
in the Software without restriction, including without limitation the rights
|
|
118
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
119
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
120
|
+
furnished to do so, subject to the following conditions:
|
|
121
|
+
|
|
122
|
+
The above copyright notice and this permission notice shall be included in all
|
|
123
|
+
copies or substantial portions of the Software.
|
|
124
|
+
|
|
125
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
126
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
127
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
128
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
129
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
130
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
131
|
+
SOFTWARE.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
@rrweb/utils@2.0.0-alpha.20
|
|
135
|
+
License: MIT
|
|
136
|
+
Source: git+https://github.com/rrweb-io/rrweb.git
|
|
137
|
+
|
|
138
|
+
License file: INLINE
|
|
139
|
+
|
|
140
|
+
MIT License
|
|
141
|
+
|
|
142
|
+
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
|
|
143
|
+
|
|
144
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
145
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
146
|
+
in the Software without restriction, including without limitation the rights
|
|
147
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
148
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
149
|
+
furnished to do so, subject to the following conditions:
|
|
150
|
+
|
|
151
|
+
The above copyright notice and this permission notice shall be included in all
|
|
152
|
+
copies or substantial portions of the Software.
|
|
153
|
+
|
|
154
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
155
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
156
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
157
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
158
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
159
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
160
|
+
SOFTWARE.
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
@types/css-font-loading-module@0.0.7
|
|
164
|
+
License: MIT
|
|
165
|
+
Source: https://github.com/DefinitelyTyped/DefinitelyTyped.git
|
|
166
|
+
|
|
167
|
+
License file: LICENSE
|
|
168
|
+
|
|
169
|
+
MIT License
|
|
170
|
+
|
|
171
|
+
Copyright (c) Microsoft Corporation.
|
|
172
|
+
|
|
173
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
174
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
175
|
+
in the Software without restriction, including without limitation the rights
|
|
176
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
177
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
178
|
+
furnished to do so, subject to the following conditions:
|
|
179
|
+
|
|
180
|
+
The above copyright notice and this permission notice shall be included in all
|
|
181
|
+
copies or substantial portions of the Software.
|
|
182
|
+
|
|
183
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
184
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
185
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
186
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
187
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
188
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
189
|
+
SOFTWARE
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
@xstate/fsm@1.6.5
|
|
193
|
+
License: MIT
|
|
194
|
+
Source: git+ssh://git@github.com/statelyai/xstate.git
|
|
195
|
+
|
|
196
|
+
License file: LICENSE
|
|
197
|
+
|
|
198
|
+
The MIT License (MIT)
|
|
199
|
+
|
|
200
|
+
Copyright (c) 2015 David Khourshid
|
|
201
|
+
|
|
202
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
203
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
204
|
+
in the Software without restriction, including without limitation the rights
|
|
205
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
206
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
207
|
+
furnished to do so, subject to the following conditions:
|
|
208
|
+
|
|
209
|
+
The above copyright notice and this permission notice shall be included in all
|
|
210
|
+
copies or substantial portions of the Software.
|
|
211
|
+
|
|
212
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
213
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
214
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
215
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
216
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
217
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
218
|
+
SOFTWARE.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
base64-arraybuffer@1.0.2
|
|
222
|
+
License: MIT
|
|
223
|
+
Source: https://github.com/niklasvh/base64-arraybuffer
|
|
224
|
+
|
|
225
|
+
License file: LICENSE
|
|
226
|
+
|
|
227
|
+
Copyright (c) 2012 Niklas von Hertzen
|
|
228
|
+
|
|
229
|
+
Permission is hereby granted, free of charge, to any person
|
|
230
|
+
obtaining a copy of this software and associated documentation
|
|
231
|
+
files (the "Software"), to deal in the Software without
|
|
232
|
+
restriction, including without limitation the rights to use,
|
|
233
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
234
|
+
copies of the Software, and to permit persons to whom the
|
|
235
|
+
Software is furnished to do so, subject to the following
|
|
236
|
+
conditions:
|
|
237
|
+
|
|
238
|
+
The above copyright notice and this permission notice shall be
|
|
239
|
+
included in all copies or substantial portions of the Software.
|
|
240
|
+
|
|
241
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
242
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
243
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
244
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
245
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
246
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
247
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
248
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
mitt@3.0.1
|
|
252
|
+
License: MIT
|
|
253
|
+
Source: developit/mitt
|
|
254
|
+
|
|
255
|
+
License file: LICENSE
|
|
256
|
+
|
|
257
|
+
MIT License
|
|
258
|
+
|
|
259
|
+
Copyright (c) 2021 Jason Miller
|
|
260
|
+
|
|
261
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
262
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
263
|
+
in the Software without restriction, including without limitation the rights
|
|
264
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
265
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
266
|
+
furnished to do so, subject to the following conditions:
|
|
267
|
+
|
|
268
|
+
The above copyright notice and this permission notice shall be included in all
|
|
269
|
+
copies or substantial portions of the Software.
|
|
270
|
+
|
|
271
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
272
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
273
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
274
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
275
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
276
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
277
|
+
SOFTWARE.
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
nanoid@3.3.11
|
|
281
|
+
License: MIT
|
|
282
|
+
Source: ai/nanoid
|
|
283
|
+
|
|
284
|
+
License file: LICENSE
|
|
285
|
+
|
|
286
|
+
The MIT License (MIT)
|
|
287
|
+
|
|
288
|
+
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
|
289
|
+
|
|
290
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
291
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
292
|
+
the Software without restriction, including without limitation the rights to
|
|
293
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
294
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
295
|
+
subject to the following conditions:
|
|
296
|
+
|
|
297
|
+
The above copyright notice and this permission notice shall be included in all
|
|
298
|
+
copies or substantial portions of the Software.
|
|
299
|
+
|
|
300
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
301
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
302
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
303
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
304
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
305
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
picocolors@1.1.1
|
|
309
|
+
License: ISC
|
|
310
|
+
Source: alexeyraspopov/picocolors
|
|
311
|
+
|
|
312
|
+
License file: LICENSE
|
|
313
|
+
|
|
314
|
+
ISC License
|
|
315
|
+
|
|
316
|
+
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
317
|
+
|
|
318
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
319
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
320
|
+
copyright notice and this permission notice appear in all copies.
|
|
321
|
+
|
|
322
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
323
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
324
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
325
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
326
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
327
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
328
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
postcss@8.5.6
|
|
332
|
+
License: MIT
|
|
333
|
+
Source: postcss/postcss
|
|
334
|
+
|
|
335
|
+
License file: LICENSE
|
|
336
|
+
|
|
337
|
+
The MIT License (MIT)
|
|
338
|
+
|
|
339
|
+
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
|
|
340
|
+
|
|
341
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
342
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
343
|
+
the Software without restriction, including without limitation the rights to
|
|
344
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
345
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
346
|
+
subject to the following conditions:
|
|
347
|
+
|
|
348
|
+
The above copyright notice and this permission notice shall be included in all
|
|
349
|
+
copies or substantial portions of the Software.
|
|
350
|
+
|
|
351
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
352
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
353
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
354
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
355
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
356
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
rrdom@2.0.0-alpha.20
|
|
360
|
+
License: MIT
|
|
361
|
+
Source: git+https://github.com/rrweb-io/rrweb.git
|
|
362
|
+
|
|
363
|
+
License file: INLINE
|
|
364
|
+
|
|
365
|
+
MIT License
|
|
366
|
+
|
|
367
|
+
Copyright (c) rrdom
|
|
368
|
+
|
|
369
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
370
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
371
|
+
in the Software without restriction, including without limitation the rights
|
|
372
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
373
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
374
|
+
furnished to do so, subject to the following conditions:
|
|
375
|
+
|
|
376
|
+
The above copyright notice and this permission notice shall be included in all
|
|
377
|
+
copies or substantial portions of the Software.
|
|
378
|
+
|
|
379
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
380
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
381
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
382
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
383
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
384
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
385
|
+
SOFTWARE.
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
rrweb-snapshot@2.0.0-alpha.20
|
|
389
|
+
License: MIT
|
|
390
|
+
Source: git+https://github.com/rrweb-io/rrweb.git
|
|
391
|
+
|
|
392
|
+
License file: INLINE
|
|
393
|
+
|
|
394
|
+
MIT License
|
|
395
|
+
|
|
396
|
+
Copyright (c) yanzhen@smartx.com
|
|
397
|
+
|
|
398
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
399
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
400
|
+
in the Software without restriction, including without limitation the rights
|
|
401
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
402
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
403
|
+
furnished to do so, subject to the following conditions:
|
|
404
|
+
|
|
405
|
+
The above copyright notice and this permission notice shall be included in all
|
|
406
|
+
copies or substantial portions of the Software.
|
|
407
|
+
|
|
408
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
409
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
410
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
411
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
412
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
413
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
414
|
+
SOFTWARE.
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
rrweb@2.0.0-alpha.20
|
|
418
|
+
License: MIT
|
|
419
|
+
Source: git+ssh://git@github.com/rrweb-io/rrweb.git
|
|
420
|
+
|
|
421
|
+
License file: INLINE
|
|
422
|
+
|
|
423
|
+
MIT License
|
|
424
|
+
|
|
425
|
+
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
|
|
426
|
+
|
|
427
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
428
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
429
|
+
in the Software without restriction, including without limitation the rights
|
|
430
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
431
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
432
|
+
furnished to do so, subject to the following conditions:
|
|
433
|
+
|
|
434
|
+
The above copyright notice and this permission notice shall be included in all
|
|
435
|
+
copies or substantial portions of the Software.
|
|
436
|
+
|
|
437
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
438
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
439
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
440
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
441
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
442
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
443
|
+
SOFTWARE.
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
source-map-js@1.2.1
|
|
447
|
+
License: BSD-3-Clause
|
|
448
|
+
Source: 7rulnik/source-map-js
|
|
449
|
+
|
|
450
|
+
License file: LICENSE
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
|
454
|
+
All rights reserved.
|
|
455
|
+
|
|
456
|
+
Redistribution and use in source and binary forms, with or without
|
|
457
|
+
modification, are permitted provided that the following conditions are met:
|
|
458
|
+
|
|
459
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
460
|
+
list of conditions and the following disclaimer.
|
|
461
|
+
|
|
462
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
463
|
+
this list of conditions and the following disclaimer in the documentation
|
|
464
|
+
and/or other materials provided with the distribution.
|
|
465
|
+
|
|
466
|
+
* Neither the names of the Mozilla Foundation nor the names of project
|
|
467
|
+
contributors may be used to endorse or promote products derived from this
|
|
468
|
+
software without specific prior written permission.
|
|
469
|
+
|
|
470
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
471
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
472
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
473
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
474
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
475
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
476
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
477
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
478
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
479
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
480
|
+
|
|
481
|
+
END THIRD_PARTY_NOTICES
|
package/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# @pokedemo/player
|
|
2
|
+
|
|
3
|
+
PokeDemo player SDK
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @pokedemo/player
|
|
9
|
+
```
|
|
10
|
+
```bash
|
|
11
|
+
pnpm add @pokedemo/player
|
|
12
|
+
```
|
|
13
|
+
```bash
|
|
14
|
+
bun add @pokedemo/player
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Vanilla JS / TS
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { PokePlayer } from '@pokedemo/player'
|
|
21
|
+
|
|
22
|
+
const container = document.getElementById('player')!
|
|
23
|
+
|
|
24
|
+
const player = new PokePlayer(container, {
|
|
25
|
+
source: {
|
|
26
|
+
baseUrl: 'https://example.com/path-to-bundle-manifest-root',
|
|
27
|
+
// baseUrl: '/path-to-bundle-manifest-root',
|
|
28
|
+
},
|
|
29
|
+
network: {
|
|
30
|
+
fetch: window.fetch.bind(window),
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
player.on('ready', () => console.log('ready'))
|
|
35
|
+
player.on('error', (err) => console.error('error', err))
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## API
|
|
39
|
+
|
|
40
|
+
- `start()`
|
|
41
|
+
- `pause()`
|
|
42
|
+
- `resume()`
|
|
43
|
+
- `goToStep(index)`
|
|
44
|
+
- `nextStep()`
|
|
45
|
+
- `restart()`
|
|
46
|
+
- `getState()`
|
|
47
|
+
- `getCurrentStep()`
|
|
48
|
+
- `getTotalSteps()`
|
|
49
|
+
- `getSpeed()`
|
|
50
|
+
- `setSpeed(speed)`
|
|
51
|
+
- `destroy()`
|
|
52
|
+
- `ready` (promise)
|
|
53
|
+
- `PokePlayer.create(container, config)` (async factory)
|
|
54
|
+
- Event contract via `on(...)` / `once(...)` / `off(...)`
|
|
55
|
+
|
|
56
|
+
## Advanced Config
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import type { PokePlayerConfig } from '@pokedemo/player'
|
|
60
|
+
|
|
61
|
+
const config: PokePlayerConfig = {
|
|
62
|
+
source: { baseUrl: 'https://example.com/path-to-bundle-manifest-root' },
|
|
63
|
+
advanced: {
|
|
64
|
+
retry: {
|
|
65
|
+
maxRetries: 2,
|
|
66
|
+
baseDelayMs: 500,
|
|
67
|
+
},
|
|
68
|
+
prefetch: {
|
|
69
|
+
window: 1,
|
|
70
|
+
enabled: true,
|
|
71
|
+
},
|
|
72
|
+
runtimeHooks: false,
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Framework Adapters
|
|
78
|
+
|
|
79
|
+
React and Vue adapters are available at:
|
|
80
|
+
|
|
81
|
+
- `@pokedemo/player/react`
|
|
82
|
+
- `@pokedemo/player/vue`
|
|
83
|
+
|
|
84
|
+
### React
|
|
85
|
+
|
|
86
|
+
```tsx
|
|
87
|
+
import { PokePlayer } from '@pokedemo/player/react'
|
|
88
|
+
|
|
89
|
+
export function DemoPlayer() {
|
|
90
|
+
return (
|
|
91
|
+
<PokePlayer
|
|
92
|
+
baseUrl="https://example.com/path-to-bundle-manifest-root"
|
|
93
|
+
/>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Vue
|
|
99
|
+
|
|
100
|
+
```vue
|
|
101
|
+
<script setup lang="ts">
|
|
102
|
+
import { PokePlayer } from '@pokedemo/player/vue'
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<template>
|
|
106
|
+
<PokePlayer
|
|
107
|
+
base-url="https://example.com/path-to-bundle-manifest-root"
|
|
108
|
+
/>
|
|
109
|
+
</template>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## SSR / Node environments
|
|
113
|
+
|
|
114
|
+
This SDK requires a browser environment.
|
|
115
|
+
The player targets modern evergreen browsers (for example browser-native
|
|
116
|
+
`DecompressionStream` support is required).
|
|
117
|
+
|
|
118
|
+
## Nuxt
|
|
119
|
+
|
|
120
|
+
Use the Vue adapter inside `ClientOnly` (or a `.client.vue` component) so it only renders in the browser.
|
|
121
|
+
|
|
122
|
+
```vue
|
|
123
|
+
<script setup lang="ts">
|
|
124
|
+
import { PokePlayer } from '@pokedemo/player/vue'
|
|
125
|
+
</script>
|
|
126
|
+
|
|
127
|
+
<template>
|
|
128
|
+
<ClientOnly>
|
|
129
|
+
<PokePlayer
|
|
130
|
+
base-url="https://example.com/path-to-bundle-manifest-root"
|
|
131
|
+
/>
|
|
132
|
+
</ClientOnly>
|
|
133
|
+
</template>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## NextJs
|
|
137
|
+
|
|
138
|
+
Use the React adapter in a client component.
|
|
139
|
+
|
|
140
|
+
```tsx
|
|
141
|
+
'use client'
|
|
142
|
+
|
|
143
|
+
import { PokePlayer } from '@pokedemo/player/react'
|
|
144
|
+
|
|
145
|
+
export function DemoPlayer() {
|
|
146
|
+
return (
|
|
147
|
+
<PokePlayer
|
|
148
|
+
baseUrl="https://example.com/path-to-bundle-manifest-root"
|
|
149
|
+
/>
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
If you import from a server component, wrap it with `next/dynamic` and `{ ssr: false }`.
|