@scarlett-player/ui 1.4.1 → 1.5.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/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ type BuiltinControlSlot = 'play' | 'skip-backward' | 'skip-forward' | 'volume' |
13
13
  * {@link registerControl}.
14
14
  *
15
15
  * `string & {}` keeps editor autocomplete listing the built-ins while still
16
- * accepting custom ids a plain `| string` would collapse the union and lose
16
+ * accepting custom ids - a plain `| string` would collapse the union and lose
17
17
  * the suggestions.
18
18
  */
19
19
  type ControlSlot = BuiltinControlSlot | (string & {});
@@ -86,15 +86,15 @@ interface IUIPlugin extends Plugin {
86
86
  * button no longer requires editing this package.
87
87
  *
88
88
  * The registry is module-level and therefore shared by every player instance on
89
- * the page. That matches how plugin packages register once, at import time or
90
- * in `init()` and the factory receives the per-instance `IPluginAPI`, so the
89
+ * the page. That matches how plugin packages register - once, at import time or
90
+ * in `init()` - and the factory receives the per-instance `IPluginAPI`, so the
91
91
  * controls themselves stay properly scoped to their player.
92
92
  */
93
93
 
94
94
  /**
95
95
  * Register a control factory under a slot id.
96
96
  *
97
- * The id only takes effect for players whose layout lists it registering
97
+ * The id only takes effect for players whose layout lists it - registering
98
98
  * alone never adds a button anywhere. Hosts opt controls in through
99
99
  * `uiPlugin({ controls: [...] })`.
100
100
  *
@@ -130,7 +130,7 @@ declare function getControlFactory(id: string): ControlFactory | null;
130
130
  /**
131
131
  * Clear all registrations and listeners.
132
132
  *
133
- * Test-support only the registry is module-level, so without this a
133
+ * Test-support only - the registry is module-level, so without this a
134
134
  * registration in one test leaks into the next.
135
135
  *
136
136
  * @internal
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ type BuiltinControlSlot = 'play' | 'skip-backward' | 'skip-forward' | 'volume' |
13
13
  * {@link registerControl}.
14
14
  *
15
15
  * `string & {}` keeps editor autocomplete listing the built-ins while still
16
- * accepting custom ids a plain `| string` would collapse the union and lose
16
+ * accepting custom ids - a plain `| string` would collapse the union and lose
17
17
  * the suggestions.
18
18
  */
19
19
  type ControlSlot = BuiltinControlSlot | (string & {});
@@ -86,15 +86,15 @@ interface IUIPlugin extends Plugin {
86
86
  * button no longer requires editing this package.
87
87
  *
88
88
  * The registry is module-level and therefore shared by every player instance on
89
- * the page. That matches how plugin packages register once, at import time or
90
- * in `init()` and the factory receives the per-instance `IPluginAPI`, so the
89
+ * the page. That matches how plugin packages register - once, at import time or
90
+ * in `init()` - and the factory receives the per-instance `IPluginAPI`, so the
91
91
  * controls themselves stay properly scoped to their player.
92
92
  */
93
93
 
94
94
  /**
95
95
  * Register a control factory under a slot id.
96
96
  *
97
- * The id only takes effect for players whose layout lists it registering
97
+ * The id only takes effect for players whose layout lists it - registering
98
98
  * alone never adds a button anywhere. Hosts opt controls in through
99
99
  * `uiPlugin({ controls: [...] })`.
100
100
  *
@@ -130,7 +130,7 @@ declare function getControlFactory(id: string): ControlFactory | null;
130
130
  /**
131
131
  * Clear all registrations and listeners.
132
132
  *
133
- * Test-support only the registry is module-level, so without this a
133
+ * Test-support only - the registry is module-level, so without this a
134
134
  * registration in one test leaks into the next.
135
135
  *
136
136
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scarlett-player/ui",
3
- "version": "1.4.1",
3
+ "version": "1.5.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.4.1"
32
+ "@scarlett-player/core": "1.5.1"
33
33
  },
34
34
  "keywords": [
35
35
  "video",