tiny-essentials 1.28.5 → 1.28.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +18 -1
  2. package/changelog/1/28/6.md +11 -0
  3. package/dist/v1/TinyAdvancedRaffle.min.js +1 -1
  4. package/dist/v1/TinyEssentials.min.js +1 -1
  5. package/dist/v1/TinyIframeEvents.min.js +1 -1
  6. package/dist/v1/TinyLocalStorage.min.js +1 -1
  7. package/dist/v1/TinyMediaPlayer.min.js +1 -1
  8. package/dist/v1/TinyNewWinEvents.min.js +1 -1
  9. package/dist/v1/TinyRadioFm.min.js +1 -1
  10. package/dist/v1/TinySmartScroller.min.js +1 -1
  11. package/dist/v1/TinyUploadClicker.min.js +1 -1
  12. package/dist/v1/css/TinyLoadingScreen.min.css +1 -1
  13. package/dist/v1/libs/TinyMediaPlayer/HtmlAudio.cjs +53 -3
  14. package/dist/v1/libs/TinyMediaPlayer/HtmlAudio.d.mts +25 -0
  15. package/dist/v1/libs/TinyMediaPlayer/HtmlAudio.mjs +49 -3
  16. package/dist/v1/libs/TinyMediaPlayer/HtmlVideo.cjs +53 -3
  17. package/dist/v1/libs/TinyMediaPlayer/HtmlVideo.d.mts +25 -0
  18. package/dist/v1/libs/TinyMediaPlayer/HtmlVideo.mjs +49 -3
  19. package/dist/v1/libs/TinyMediaPlayer/SoundCloud.cjs +792 -0
  20. package/dist/v1/libs/TinyMediaPlayer/SoundCloud.d.mts +300 -0
  21. package/dist/v1/libs/TinyMediaPlayer/SoundCloud.mjs +697 -0
  22. package/dist/v1/libs/TinyMediaPlayer/Youtube.cjs +124 -12
  23. package/dist/v1/libs/TinyMediaPlayer/Youtube.d.mts +96 -0
  24. package/dist/v1/libs/TinyMediaPlayer/Youtube.mjs +107 -10
  25. package/dist/v1/libs/TinyMediaPlayer/docs/SoundCloudWidget.cjs +381 -0
  26. package/dist/v1/libs/TinyMediaPlayer/docs/SoundCloudWidget.d.mts +704 -0
  27. package/dist/v1/libs/TinyMediaPlayer/docs/SoundCloudWidget.mjs +343 -0
  28. package/dist/v1/libs/TinyMediaPlayer/index.cjs +52 -1
  29. package/dist/v1/libs/TinyMediaPlayer/index.d.mts +60 -0
  30. package/dist/v1/libs/TinyMediaPlayer/index.mjs +47 -1
  31. package/dist/v1/libs/TinyMediaPlayer.cjs +38 -0
  32. package/dist/v1/libs/TinyMediaPlayer.d.mts +13 -0
  33. package/dist/v1/libs/TinyMediaPlayer.mjs +38 -0
  34. package/docs/v1/libs/TinyMediaPlayer.md +31 -9
  35. package/package.json +51 -10
@@ -0,0 +1,704 @@
1
+ /**
2
+ * https://developers.soundcloud.com/docs/api/html5-widget
3
+ * @fileoverview JSDoc type definitions for the SoundCloud IFrame Player API.
4
+ * This file provides full IntelliSense/autocomplete for the global `window.SC` object.
5
+ * @module youtube-api-docs
6
+ */
7
+ export type SoundObject = {
8
+ /**
9
+ * - The title of the track.
10
+ */
11
+ title: string;
12
+ /**
13
+ * - Total duration of the track in milliseconds.
14
+ */
15
+ duration: number;
16
+ /**
17
+ * - The URL of the track's cover art image.
18
+ */
19
+ artwork_url: string;
20
+ /**
21
+ * - A short descriptive caption for the track.
22
+ */
23
+ caption: string;
24
+ /**
25
+ * - The total number of comments on the track.
26
+ */
27
+ comment_count: number;
28
+ /**
29
+ * - Indicates if users are allowed to comment on this track.
30
+ */
31
+ commentable: boolean;
32
+ /**
33
+ * - ISO 8601 timestamp of when the track was created.
34
+ */
35
+ created_at: string;
36
+ /**
37
+ * - The full text description of the track.
38
+ */
39
+ description: string;
40
+ /**
41
+ * - A human-readable string representing the date.
42
+ */
43
+ display_date: string;
44
+ /**
45
+ * - The total number of times the track has been downloaded.
46
+ */
47
+ download_count: number;
48
+ /**
49
+ * - Indicates if the track is available for download.
50
+ */
51
+ downloadable: boolean;
52
+ /**
53
+ * - Information regarding the permissions for embedding the track.
54
+ */
55
+ embeddable_by: string;
56
+ /**
57
+ * - The complete duration of the track in milliseconds.
58
+ */
59
+ full_duration: number;
60
+ /**
61
+ * - The musical genre assigned to the track.
62
+ */
63
+ genre: string;
64
+ /**
65
+ * - Indicates if the user has remaining download credits.
66
+ */
67
+ has_downloads_left: boolean;
68
+ /**
69
+ * - The unique numerical identifier for the sound.
70
+ */
71
+ id: number;
72
+ /**
73
+ * - The type of resource (e.g., 'track').
74
+ */
75
+ kind: string;
76
+ /**
77
+ * - The name of the record label associated with the track.
78
+ */
79
+ label_name: string;
80
+ /**
81
+ * - ISO 8601 timestamp of the last time the track was modified.
82
+ */
83
+ last_modified: string;
84
+ /**
85
+ * - The licensing terms applied to the track.
86
+ */
87
+ license: string;
88
+ /**
89
+ * - The total number of likes the track has received.
90
+ */
91
+ likes_count: number;
92
+ /**
93
+ * - The specific model used for track monetization.
94
+ */
95
+ monetization_model: string;
96
+ /**
97
+ * - The unique URL slug for the track.
98
+ */
99
+ permalink: string;
100
+ /**
101
+ * - The full URL of the track's permalink.
102
+ */
103
+ permalink_url: string;
104
+ /**
105
+ * - Indicates if the track is currently playable.
106
+ */
107
+ playable: boolean;
108
+ /**
109
+ * - The total number of times the track has been played.
110
+ */
111
+ playback_count: number;
112
+ /**
113
+ * - The usage policy governing the track.
114
+ */
115
+ policy: string;
116
+ /**
117
+ * - Indicates if the track is accessible to the public.
118
+ */
119
+ public: boolean;
120
+ /**
121
+ * - The title used when purchasing the track.
122
+ */
123
+ purchase_title: string;
124
+ /**
125
+ * - The URL used to purchase the track.
126
+ */
127
+ purchase_url: string;
128
+ /**
129
+ * - The official release date of the track.
130
+ */
131
+ release_date: string;
132
+ /**
133
+ * - The total number of times the track has been reposted.
134
+ */
135
+ reposts_count: number;
136
+ /**
137
+ * - The category of the resource.
138
+ */
139
+ resource_type: string;
140
+ /**
141
+ * - A token required to access private or restricted tracks.
142
+ */
143
+ secret_token: string;
144
+ /**
145
+ * - Information regarding the sharing status or permissions.
146
+ */
147
+ sharing: string;
148
+ /**
149
+ * - The current playback or availability state of the track.
150
+ */
151
+ state: string;
152
+ /**
153
+ * - The permalink for the associated station.
154
+ */
155
+ station_permalink: string;
156
+ /**
157
+ * - The Uniform Resource Name for the associated station.
158
+ */
159
+ station_urn: string;
160
+ /**
161
+ * - Indicates if the track can be streamed.
162
+ */
163
+ streamable: boolean;
164
+ /**
165
+ * - A list of tags associated with the track.
166
+ */
167
+ tag_list: string;
168
+ /**
169
+ * - Authorization details for accessing the track.
170
+ */
171
+ track_authorization: string;
172
+ /**
173
+ * - The Uniform Resource Identifier for the track.
174
+ */
175
+ uri: string;
176
+ /**
177
+ * - The Uniform Resource Name for the track.
178
+ */
179
+ urn: string;
180
+ /**
181
+ * - The unique identifier of the user who uploaded the track.
182
+ */
183
+ user_id: number;
184
+ /**
185
+ * - Configuration data for track visuals.
186
+ */
187
+ visuals: string;
188
+ /**
189
+ * - The URL of the track's waveform image.
190
+ */
191
+ waveform_url: string;
192
+ /**
193
+ * - Object containing media and transcoding information.
194
+ */
195
+ media: MediaObject;
196
+ /**
197
+ * - Metadata regarding the track's publisher.
198
+ */
199
+ publisher_metadata: PublisherObject;
200
+ /**
201
+ * - Information about the user who owns the track.
202
+ */
203
+ user: UserObject;
204
+ /**
205
+ * - Internal identifier for the resource.
206
+ */
207
+ _resource_id: number;
208
+ /**
209
+ * - Internal type identifier for the resource.
210
+ */
211
+ _resource_type: string;
212
+ };
213
+ export type MediaObject = {
214
+ /**
215
+ * - An array of available audio transcoding formats.
216
+ */
217
+ transcodings: TranscodingObject[];
218
+ };
219
+ export type TranscodingObject = {
220
+ /**
221
+ * - The MIME type and protocol of the audio format.
222
+ */
223
+ format: {
224
+ mime_type: string;
225
+ protocol: string;
226
+ };
227
+ /**
228
+ * - The duration of this specific transcoding in milliseconds.
229
+ */
230
+ duration: number;
231
+ /**
232
+ * - Indicates if this is an older, legacy transcoding format.
233
+ */
234
+ is_legacy_transcoding: boolean;
235
+ /**
236
+ * - The preset used to generate this transcoding.
237
+ */
238
+ preset: string;
239
+ /**
240
+ * - The audio quality level of this transcoding.
241
+ */
242
+ quality: string;
243
+ /**
244
+ * - Indicates if this is a short preview or snippet.
245
+ */
246
+ snipped: boolean;
247
+ /**
248
+ * - The direct URL to the transcoded audio file.
249
+ */
250
+ url: string;
251
+ };
252
+ export type PublisherObject = {
253
+ /**
254
+ * - The unique identifier for the publisher.
255
+ */
256
+ id: number;
257
+ /**
258
+ * - The Uniform Resource Name for the publisher.
259
+ */
260
+ urn: string;
261
+ /**
262
+ * - The name of the artist.
263
+ */
264
+ artist: string;
265
+ /**
266
+ * - The name of the publishing entity.
267
+ */
268
+ publisher: string;
269
+ /**
270
+ * - The name of the writer or composer.
271
+ */
272
+ writer_composer: string;
273
+ };
274
+ export type UserBadgesObject = {
275
+ /**
276
+ * - Indicates if the user has mid-tier creator status.
277
+ */
278
+ creator_mid_tier: boolean;
279
+ /**
280
+ * - Indicates if the user has a Pro subscription.
281
+ */
282
+ pro: boolean;
283
+ /**
284
+ * - Indicates if the user has an Unlimited subscription.
285
+ */
286
+ pro_unlimited: boolean;
287
+ /**
288
+ * - Indicates if the user's account is verified.
289
+ */
290
+ verified: boolean;
291
+ };
292
+ export type CreatorSubscriptionObject = {
293
+ /**
294
+ * - An object containing the ID of the subscription product.
295
+ */
296
+ product: {
297
+ id: string;
298
+ };
299
+ };
300
+ export type VisualsObject = {
301
+ /**
302
+ * - Indicates if the visualizer is enabled.
303
+ */
304
+ enabled: boolean;
305
+ /**
306
+ * - Indicates if visualizer tracking is enabled.
307
+ */
308
+ tracking: boolean;
309
+ /**
310
+ * - The Uniform Resource Name for the visualizer.
311
+ */
312
+ urn: string;
313
+ /**
314
+ * - The specific data for the visualizer.
315
+ */
316
+ visuals: VisualsObjectData;
317
+ };
318
+ export type VisualsObjectData = {
319
+ /**
320
+ * - The timestamp when the visual element starts.
321
+ */
322
+ entry_time: number;
323
+ /**
324
+ * - The Uniform Resource Name for the visual data.
325
+ */
326
+ urn: string;
327
+ /**
328
+ * - The URL of the visual asset.
329
+ */
330
+ visual_url: string;
331
+ };
332
+ export type UserObject = {
333
+ /**
334
+ * - Visualizer configuration for the user.
335
+ */
336
+ visuals: VisualsObject;
337
+ /**
338
+ * - The user's current subscription product.
339
+ */
340
+ creator_subscription: CreatorSubscriptionObject;
341
+ /**
342
+ * - A list of all subscriptions held by the user.
343
+ */
344
+ creator_subscriptions: CreatorSubscriptionObject[];
345
+ /**
346
+ * - The badges and status indicators assigned to the user.
347
+ */
348
+ badges: UserBadgesObject;
349
+ /**
350
+ * - The URL of the user's profile picture.
351
+ */
352
+ avatar_url: string;
353
+ /**
354
+ * - The city where the user is located.
355
+ */
356
+ city: string;
357
+ /**
358
+ * - The total number of comments made by the user.
359
+ */
360
+ comments_count: number;
361
+ /**
362
+ * - The ISO country code of the user.
363
+ */
364
+ country_code: string;
365
+ /**
366
+ * - ISO 8601 timestamp of when the user account was created.
367
+ */
368
+ created_at: string;
369
+ /**
370
+ * - The user's date of birth.
371
+ */
372
+ date_of_birth: string;
373
+ /**
374
+ * - The user's profile description.
375
+ */
376
+ description: string;
377
+ /**
378
+ * - The user's first name.
379
+ */
380
+ first_name: string;
381
+ /**
382
+ * - The total number of followers the user has.
383
+ */
384
+ followers_count: number;
385
+ /**
386
+ * - The total number of accounts the user follows.
387
+ */
388
+ followings_count: number;
389
+ /**
390
+ * - The user's complete name.
391
+ */
392
+ full_name: string;
393
+ /**
394
+ * - The total number of groups the user belongs to.
395
+ */
396
+ groups_count: number;
397
+ /**
398
+ * - The unique numerical identifier for the user.
399
+ */
400
+ id: number;
401
+ /**
402
+ * - The type of resource (e.g., 'user').
403
+ */
404
+ kind: string;
405
+ /**
406
+ * - ISO 8601 timestamp of the last profile update.
407
+ */
408
+ last_modified: string;
409
+ /**
410
+ * - The user's last name.
411
+ */
412
+ last_name: string;
413
+ /**
414
+ * - The total number of likes the user has given.
415
+ */
416
+ likes_count: number;
417
+ /**
418
+ * - The unique profile slug for the user.
419
+ */
420
+ permalink: string;
421
+ /**
422
+ * - The full URL of the user's profile.
423
+ */
424
+ permalink_url: string;
425
+ /**
426
+ * - The total number of playlists created by the user.
427
+ */
428
+ playlist_count: number;
429
+ /**
430
+ * - The total number of playlists liked by the user.
431
+ */
432
+ playlist_likes_count: number;
433
+ /**
434
+ * - The total number of reposts made by the user.
435
+ */
436
+ reposts_count: number;
437
+ /**
438
+ * - The permalink for the user's station.
439
+ */
440
+ station_permalink: string;
441
+ /**
442
+ * - The Uniform Resource Name for the user's station.
443
+ */
444
+ station_urn: string;
445
+ /**
446
+ * - The total number of tracks uploaded by the user.
447
+ */
448
+ track_count: number;
449
+ /**
450
+ * - The Uniform Resource Identifier for the user.
451
+ */
452
+ uri: string;
453
+ /**
454
+ * - The Uniform Resource Name for the user.
455
+ */
456
+ urn: string;
457
+ /**
458
+ * - The user's unique username.
459
+ */
460
+ username: string;
461
+ /**
462
+ * - Indicates if the user's account is verified.
463
+ */
464
+ verified: boolean;
465
+ };
466
+ /**
467
+ * @typedef {Object} SoundObject
468
+ * @property {string} title - The title of the track.
469
+ * @property {number} duration - Total duration of the track in milliseconds.
470
+ * @property {string} artwork_url - The URL of the track's cover art image.
471
+ * @property {string} caption - A short descriptive caption for the track.
472
+ * @property {number} comment_count - The total number of comments on the track.
473
+ * @property {boolean} commentable - Indicates if users are allowed to comment on this track.
474
+ * @property {string} created_at - ISO 8601 timestamp of when the track was created.
475
+ * @property {string} description - The full text description of the track.
476
+ * @property {string} display_date - A human-readable string representing the date.
477
+ * @property {number} download_count - The total number of times the track has been downloaded.
478
+ * @property {boolean} downloadable - Indicates if the track is available for download.
479
+ * @property {string} embeddable_by - Information regarding the permissions for embedding the track.
480
+ * @property {number} full_duration - The complete duration of the track in milliseconds.
481
+ * @property {string} genre - The musical genre assigned to the track.
482
+ * @property {boolean} has_downloads_left - Indicates if the user has remaining download credits.
483
+ * @property {number} id - The unique numerical identifier for the sound.
484
+ * @property {string} kind - The type of resource (e.g., 'track').
485
+ * @property {string} label_name - The name of the record label associated with the track.
486
+ * @property {string} last_modified - ISO 8601 timestamp of the last time the track was modified.
487
+ * @property {string} license - The licensing terms applied to the track.
488
+ * @property {number} likes_count - The total number of likes the track has received.
489
+ * @property {string} monetization_model - The specific model used for track monetization.
490
+ * @property {string} permalink - The unique URL slug for the track.
491
+ * @property {string} permalink_url - The full URL of the track's permalink.
492
+ * @property {boolean} playable - Indicates if the track is currently playable.
493
+ * @property {number} playback_count - The total number of times the track has been played.
494
+ * @property {string} policy - The usage policy governing the track.
495
+ * @property {boolean} public - Indicates if the track is accessible to the public.
496
+ * @property {string} purchase_title - The title used when purchasing the track.
497
+ * @property {string} purchase_url - The URL used to purchase the track.
498
+ * @property {string} release_date - The official release date of the track.
499
+ * @property {number} reposts_count - The total number of times the track has been reposted.
500
+ * @property {string} resource_type - The category of the resource.
501
+ * @property {string} secret_token - A token required to access private or restricted tracks.
502
+ * @property {string} sharing - Information regarding the sharing status or permissions.
503
+ * @property {string} state - The current playback or availability state of the track.
504
+ * @property {string} station_permalink - The permalink for the associated station.
505
+ * @property {string} station_urn - The Uniform Resource Name for the associated station.
506
+ * @property {boolean} streamable - Indicates if the track can be streamed.
507
+ * @property {string} tag_list - A list of tags associated with the track.
508
+ * @property {string} track_authorization - Authorization details for accessing the track.
509
+ * @property {string} uri - The Uniform Resource Identifier for the track.
510
+ * @property {string} urn - The Uniform Resource Name for the track.
511
+ * @property {number} user_id - The unique identifier of the user who uploaded the track.
512
+ * @property {string} visuals - Configuration data for track visuals.
513
+ * @property {string} waveform_url - The URL of the track's waveform image.
514
+ * @property {MediaObject} media - Object containing media and transcoding information.
515
+ * @property {PublisherObject} publisher_metadata - Metadata regarding the track's publisher.
516
+ * @property {UserObject} user - Information about the user who owns the track.
517
+ * @property {number} _resource_id - Internal identifier for the resource.
518
+ * @property {string} _resource_type - Internal type identifier for the resource.
519
+ */
520
+ /**
521
+ * @typedef {Object} MediaObject
522
+ * @property {TranscodingObject[]} transcodings - An array of available audio transcoding formats.
523
+ */
524
+ /**
525
+ * @typedef {Object} TranscodingObject
526
+ * @property {{ mime_type: string, protocol: string }} format - The MIME type and protocol of the audio format.
527
+ * @property {number} duration - The duration of this specific transcoding in milliseconds.
528
+ * @property {boolean} is_legacy_transcoding - Indicates if this is an older, legacy transcoding format.
529
+ * @property {string} preset - The preset used to generate this transcoding.
530
+ * @property {string} quality - The audio quality level of this transcoding.
531
+ * @property {boolean} snipped - Indicates if this is a short preview or snippet.
532
+ * @property {string} url - The direct URL to the transcoded audio file.
533
+ */
534
+ /**
535
+ * @typedef {Object} PublisherObject
536
+ * @property {number} id - The unique identifier for the publisher.
537
+ * @property {string} urn - The Uniform Resource Name for the publisher.
538
+ * @property {string} artist - The name of the artist.
539
+ * @property {string} publisher - The name of the publishing entity.
540
+ * @property {string} writer_composer - The name of the writer or composer.
541
+ */
542
+ /**
543
+ * @typedef {Object} UserBadgesObject
544
+ * @property {boolean} creator_mid_tier - Indicates if the user has mid-tier creator status.
545
+ * @property {boolean} pro - Indicates if the user has a Pro subscription.
546
+ * @property {boolean} pro_unlimited - Indicates if the user has an Unlimited subscription.
547
+ * @property {boolean} verified - Indicates if the user's account is verified.
548
+ */
549
+ /**
550
+ * @typedef {Object} CreatorSubscriptionObject
551
+ * @property {{ id: string }} product - An object containing the ID of the subscription product.
552
+ */
553
+ /**
554
+ * @typedef {Object} VisualsObject
555
+ * @property {boolean} enabled - Indicates if the visualizer is enabled.
556
+ * @property {boolean} tracking - Indicates if visualizer tracking is enabled.
557
+ * @property {string} urn - The Uniform Resource Name for the visualizer.
558
+ * @property {VisualsObjectData} visuals - The specific data for the visualizer.
559
+ */
560
+ /**
561
+ * @typedef {Object} VisualsObjectData
562
+ * @property {number} entry_time - The timestamp when the visual element starts.
563
+ * @property {string} urn - The Uniform Resource Name for the visual data.
564
+ * @property {string} visual_url - The URL of the visual asset.
565
+ */
566
+ /**
567
+ * @typedef {Object} UserObject
568
+ * @property {VisualsObject} visuals - Visualizer configuration for the user.
569
+ * @property {CreatorSubscriptionObject} creator_subscription - The user's current subscription product.
570
+ * @property {CreatorSubscriptionObject[]} creator_subscriptions - A list of all subscriptions held by the user.
571
+ * @property {UserBadgesObject} badges - The badges and status indicators assigned to the user.
572
+ * @property {string} avatar_url - The URL of the user's profile picture.
573
+ * @property {string} city - The city where the user is located.
574
+ * @property {number} comments_count - The total number of comments made by the user.
575
+ * @property {string} country_code - The ISO country code of the user.
576
+ * @property {string} created_at - ISO 8601 timestamp of when the user account was created.
577
+ * @property {string} date_of_birth - The user's date of birth.
578
+ * @property {string} description - The user's profile description.
579
+ * @property {string} first_name - The user's first name.
580
+ * @property {number} followers_count - The total number of followers the user has.
581
+ * @property {number} followings_count - The total number of accounts the user follows.
582
+ * @property {string} full_name - The user's complete name.
583
+ * @property {number} groups_count - The total number of groups the user belongs to.
584
+ * @property {number} id - The unique numerical identifier for the user.
585
+ * @property {string} kind - The type of resource (e.g., 'user').
586
+ * @property {string} last_modified - ISO 8601 timestamp of the last profile update.
587
+ * @property {string} last_name - The user's last name.
588
+ * @property {number} likes_count - The total number of likes the user has given.
589
+ * @property {string} permalink - The unique profile slug for the user.
590
+ * @property {string} permalink_url - The full URL of the user's profile.
591
+ * @property {number} playlist_count - The total number of playlists created by the user.
592
+ * @property {number} playlist_likes_count - The total number of playlists liked by the user.
593
+ * @property {number} reposts_count - The total number of reposts made by the user.
594
+ * @property {string} station_permalink - The permalink for the user's station.
595
+ * @property {string} station_urn - The Uniform Resource Name for the user's station.
596
+ * @property {number} track_count - The total number of tracks uploaded by the user.
597
+ * @property {string} uri - The Uniform Resource Identifier for the user.
598
+ * @property {string} urn - The Uniform Resource Name for the user.
599
+ * @property {string} username - The user's unique username.
600
+ * @property {boolean} verified - Indicates if the user's account is verified.
601
+ */
602
+ /**
603
+ * Class representing a SoundCloud Widget instance.
604
+ */
605
+ declare class SoundCloudWidget {
606
+ #private;
607
+ /**
608
+ * Creates an instance of SoundCloudWidget.
609
+ * @param {HTMLElement|string} elementOrId - The iframe element or its ID.
610
+ * @throws {TypeError} If the argument is not a string or an HTMLElement.
611
+ */
612
+ constructor(elementOrId: HTMLElement | string);
613
+ /** @returns {number} The current volume level. */
614
+ get volume(): number;
615
+ /**
616
+ * Sets the widget volume.
617
+ * @param {number} value - Volume value between 0 and 100.
618
+ * @throws {TypeError} If value is not a number.
619
+ * @throws {RangeError} If value is outside the 0-100 range.
620
+ */
621
+ set volume(value: number);
622
+ /**
623
+ * Adds a listener function for a specific event.
624
+ * @param {string} eventName - The name of the event.
625
+ * @param {Function} listener - The callback function.
626
+ * @throws {TypeError} If listener is not a function.
627
+ */
628
+ bind(eventName: string, listener: Function): void;
629
+ /**
630
+ * Removes all listeners for a specific event.
631
+ * @param {string} eventName - The name of the event.
632
+ */
633
+ unbind(eventName: string): void;
634
+ /**
635
+ * Simulates loading a new widget.
636
+ * @param {string} url - The URL of the new widget.
637
+ * @param {Record<string, Function>} [options] - Configuration options.
638
+ */
639
+ load(url: string, options?: Record<string, Function>): void;
640
+ /** Plays the sound. */
641
+ play(): void;
642
+ /** Pauses the sound. */
643
+ pause(): void;
644
+ /** Toggles the sound state. */
645
+ toggle(): void;
646
+ /**
647
+ * Jumps to a specific position.
648
+ * @param {number} milliseconds - Position in milliseconds.
649
+ * @throws {TypeError} If milliseconds is not a number.
650
+ */
651
+ seekTo(milliseconds: number): void;
652
+ /**
653
+ * Sets the volume via method.
654
+ * @param {number} volume - Value between 0 and 100.
655
+ */
656
+ setVolume(volume: number): void;
657
+ /** Skips to the next sound. */
658
+ next(): void;
659
+ /** Skips to the previous sound. */
660
+ prev(): void;
661
+ /**
662
+ * Jumps to a specific sound index.
663
+ * @param {number} soundIndex - Index starting from 0.
664
+ * @throws {RangeError} If index is out of bounds.
665
+ */
666
+ skip(soundIndex: number): void;
667
+ /**
668
+ * @param {(volume: number) => void} callback - Receives the volume.
669
+ */
670
+ getVolume(callback: (volume: number) => void): void;
671
+ /**
672
+ * @param {(volume: number) => void} callback - Receives the duration.
673
+ */
674
+ getDuration(callback: (volume: number) => void): void;
675
+ /**
676
+ * @param {(position: number) => void} callback - Receives the current position.
677
+ */
678
+ getPosition(callback: (position: number) => void): void;
679
+ /**
680
+ * @param {(soundsData: Partial<SoundObject>[]) => void} callback - Receives the list of sounds.
681
+ */
682
+ getSounds(callback: (soundsData: Partial<SoundObject>[]) => void): void;
683
+ /**
684
+ * @param {(soundData: Partial<SoundObject>) => void} callback - Receives the current sound object.
685
+ */
686
+ getCurrentSound(callback: (soundData: Partial<SoundObject>) => void): void;
687
+ /**
688
+ * @param {(index: number) => void} callback - Receives the current sound index.
689
+ */
690
+ getCurrentSoundIndex(callback: (index: number) => void): void;
691
+ /**
692
+ * @param {(paused: boolean) => void} callback - Receives the paused status.
693
+ */
694
+ isPaused(callback: (paused: boolean) => void): void;
695
+ /**
696
+ * Triggers an event and notifies listeners.
697
+ * @param {string} eventName
698
+ * @param {any} data
699
+ * @private
700
+ */
701
+ private _triggerEvent;
702
+ }
703
+ export default SoundCloudWidget;
704
+ //# sourceMappingURL=SoundCloudWidget.d.mts.map