@scarlett-player/ui 1.8.0 → 1.8.1

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/README.md CHANGED
@@ -108,6 +108,24 @@ that, the Speed sub-panel is 253px tall against a 211px portrait phone player
108
108
  and loses its Back header and its first three speeds to the host's
109
109
  `overflow: hidden`.
110
110
 
111
+ ## Layout
112
+
113
+ `controls` is the order of slots in the bar. The default is:
114
+
115
+ ```typescript
116
+ uiPlugin({
117
+ controls: [
118
+ 'play', 'skip-backward', 'skip-forward', 'volume', 'time',
119
+ 'live-indicator', 'bandwidth-indicator', 'spacer', 'settings',
120
+ 'captions', 'chromecast', 'airplay', 'pip', 'fullscreen',
121
+ ],
122
+ });
123
+ ```
124
+
125
+ Any id a plugin registers through the control registry (`share`, `chapters`,
126
+ `playlist-previous`, `playlist-next`, ...) can be placed in the same list. A
127
+ control whose plugin is not loaded is skipped.
128
+
111
129
  ## Keyboard Shortcuts
112
130
 
113
131
  | Key | Action |
package/dist/index.cjs CHANGED
@@ -3319,7 +3319,7 @@ function resetControlRegistry() {
3319
3319
  }
3320
3320
 
3321
3321
  // src/version.ts
3322
- var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
3322
+ var PKG_VERSION = true ? "1.8.1" : "0.0.0-dev";
3323
3323
 
3324
3324
  // src/index.ts
3325
3325
  var DEFAULT_LAYOUT = [
package/dist/index.js CHANGED
@@ -3282,7 +3282,7 @@ function resetControlRegistry() {
3282
3282
  }
3283
3283
 
3284
3284
  // src/version.ts
3285
- var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
3285
+ var PKG_VERSION = true ? "1.8.1" : "0.0.0-dev";
3286
3286
 
3287
3287
  // src/index.ts
3288
3288
  var DEFAULT_LAYOUT = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scarlett-player/ui",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "UI Controls Plugin for Scarlett Player",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -29,7 +29,7 @@
29
29
  "typescript": "^5.3.0",
30
30
  "vitest": "^1.6.0",
31
31
  "jsdom": "^24.0.0",
32
- "@scarlett-player/core": "1.8.0"
32
+ "@scarlett-player/core": "1.8.1"
33
33
  },
34
34
  "keywords": [
35
35
  "video",