@moq/watch 0.2.14 → 0.2.16

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 (84) hide show
  1. package/README.md +10 -9
  2. package/audio/source.d.ts.map +1 -1
  3. package/broadcast-CG8jZRfA.js +1651 -0
  4. package/broadcast-CG8jZRfA.js.map +1 -0
  5. package/broadcast.d.ts.map +1 -1
  6. package/element.js +162 -178
  7. package/element.js.map +1 -1
  8. package/index.d.ts +0 -4
  9. package/index.d.ts.map +1 -1
  10. package/index.js +5 -289
  11. package/package.json +5 -4
  12. package/support/element.js +122 -172
  13. package/support/element.js.map +1 -1
  14. package/support/index.js +52 -53
  15. package/support/index.js.map +1 -1
  16. package/ui/components/button.d.ts +3 -0
  17. package/ui/components/button.d.ts.map +1 -0
  18. package/ui/components/center-play.d.ts +5 -0
  19. package/ui/components/center-play.d.ts.map +1 -0
  20. package/ui/components/control-bar.d.ts +6 -0
  21. package/ui/components/control-bar.d.ts.map +1 -0
  22. package/ui/components/fullscreen-button.d.ts +2 -1
  23. package/ui/components/fullscreen-button.d.ts.map +1 -1
  24. package/ui/components/latency.d.ts +5 -0
  25. package/ui/components/latency.d.ts.map +1 -0
  26. package/ui/components/live-badge.d.ts +9 -0
  27. package/ui/components/live-badge.d.ts.map +1 -0
  28. package/ui/components/play-pause.d.ts +1 -0
  29. package/ui/components/play-pause.d.ts.map +1 -1
  30. package/ui/components/quality.d.ts +5 -0
  31. package/ui/components/quality.d.ts.map +1 -0
  32. package/ui/components/settings-button.d.ts +5 -0
  33. package/ui/components/settings-button.d.ts.map +1 -0
  34. package/ui/components/settings-panel.d.ts +6 -0
  35. package/ui/components/settings-panel.d.ts.map +1 -0
  36. package/ui/components/volume-slider.d.ts +1 -0
  37. package/ui/components/volume-slider.d.ts.map +1 -1
  38. package/ui/element.d.ts.map +1 -1
  39. package/ui/element.js +674 -381
  40. package/ui/element.js.map +1 -1
  41. package/ui/format.d.ts +11 -0
  42. package/ui/format.d.ts.map +1 -0
  43. package/ui/fullscreen.d.ts +16 -0
  44. package/ui/fullscreen.d.ts.map +1 -0
  45. package/ui/graph.d.ts +18 -0
  46. package/ui/graph.d.ts.map +1 -0
  47. package/ui/icons.d.ts +5 -1
  48. package/ui/icons.d.ts.map +1 -1
  49. package/ui/state.d.ts +9 -0
  50. package/ui/state.d.ts.map +1 -0
  51. package/ui/stats.d.ts +3 -2
  52. package/ui/stats.d.ts.map +1 -1
  53. package/video/source.d.ts.map +1 -1
  54. package/broadcast-CLjMphZS.js +0 -5000
  55. package/broadcast-CLjMphZS.js.map +0 -1
  56. package/chat/index.d.ts +0 -17
  57. package/chat/index.d.ts.map +0 -1
  58. package/chat/message.d.ts +0 -16
  59. package/chat/message.d.ts.map +0 -1
  60. package/chat/typing.d.ts +0 -16
  61. package/chat/typing.d.ts.map +0 -1
  62. package/dom-BsFrLb_F.js +0 -35
  63. package/dom-BsFrLb_F.js.map +0 -1
  64. package/index.js.map +0 -1
  65. package/libav-opus-af-BlMWboA7.js +0 -368
  66. package/libav-opus-af-BlMWboA7.js.map +0 -1
  67. package/location/index.d.ts +0 -17
  68. package/location/index.d.ts.map +0 -1
  69. package/location/peers.d.ts +0 -16
  70. package/location/peers.d.ts.map +0 -1
  71. package/location/window.d.ts +0 -17
  72. package/location/window.d.ts.map +0 -1
  73. package/main-DGBFe0O7.js +0 -2301
  74. package/main-DGBFe0O7.js.map +0 -1
  75. package/preview.d.ts +0 -23
  76. package/preview.d.ts.map +0 -1
  77. package/ui/components/quality-selector.d.ts +0 -4
  78. package/ui/components/quality-selector.d.ts.map +0 -1
  79. package/ui/components/stats-button.d.ts +0 -3
  80. package/ui/components/stats-button.d.ts.map +0 -1
  81. package/ui/components/watch-status-indicator.d.ts +0 -4
  82. package/ui/components/watch-status-indicator.d.ts.map +0 -1
  83. package/user.d.ts +0 -17
  84. package/user.d.ts.map +0 -1
package/README.md CHANGED
@@ -19,15 +19,15 @@ npm add @moq/watch
19
19
 
20
20
  ### No-build CDN usage
21
21
 
22
- For quick demos or embeds where a bundler is overkill, jsDelivr's `+esm`
23
- endpoint will transform the published npm package into a browser-ready ESM
24
- module — bare imports like `@moq/hang` are automatically rewritten to
25
- other `+esm` URLs. No build step or import map required:
22
+ For quick demos or embeds where a bundler is overkill, esm.sh serves the
23
+ published npm package as a browser-ready ESM module. Bare imports like
24
+ `@moq/hang` are automatically rewritten to other esm.sh URLs. No build step or
25
+ import map required:
26
26
 
27
27
  ```html
28
28
  <script type="module">
29
- import "https://cdn.jsdelivr.net/npm/@moq/watch/element.js/+esm";
30
- import "https://cdn.jsdelivr.net/npm/@moq/watch/ui/element.js/+esm";
29
+ import "https://esm.sh/@moq/watch/element";
30
+ import "https://esm.sh/@moq/watch/ui";
31
31
  </script>
32
32
 
33
33
  <moq-watch-ui>
@@ -37,9 +37,10 @@ other `+esm` URLs. No build step or import map required:
37
37
  </moq-watch-ui>
38
38
  ```
39
39
 
40
- Pin a version range in the URL for production e.g.
41
- `https://cdn.jsdelivr.net/npm/@moq/watch@0.2/element.js/+esm`. esm.sh
42
- (`https://esm.sh/@moq/watch/element`) works the same way if you prefer it.
40
+ Pin a version range in the URL for production, e.g.
41
+ `https://esm.sh/@moq/watch@0.2/element`. jsDelivr's `+esm` endpoint
42
+ (`https://cdn.jsdelivr.net/npm/@moq/watch/element.js/+esm`) works the same way
43
+ if you prefer it.
43
44
 
44
45
  For anything beyond embedding on a static page you should install the
45
46
  package and use a real bundler (the examples below).
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../src/audio/source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK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