@scarlett-player/embed 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/embed.js CHANGED
@@ -180,8 +180,8 @@ class StateManager {
180
180
  * Register a state key at runtime, for state a plugin owns.
181
181
  *
182
182
  * Core cannot know every plugin's keys, and {@link get} deliberately throws
183
- * for unregistered ones that throw is a useful typo-catcher and is worth
184
- * keeping so a plugin declares its keys before first use.
183
+ * for unregistered ones - that throw is a useful typo-catcher and is worth
184
+ * keeping - so a plugin declares its keys before first use.
185
185
  *
186
186
  * Idempotent by design: re-defining an existing key leaves the current value
187
187
  * untouched. Plugins commonly re-run setup after a source change, and that
@@ -1259,7 +1259,7 @@ class PluginAPI {
1259
1259
  /**
1260
1260
  * Register a state key this plugin owns, before first use.
1261
1261
  *
1262
- * Idempotent re-defining an existing key keeps its current value.
1262
+ * Idempotent - re-defining an existing key keeps its current value.
1263
1263
  * See {@link IPluginAPI.defineState}.
1264
1264
  *
1265
1265
  * @param key - State property key
@@ -6993,7 +6993,7 @@ function createAudioUIPlugin(config) {
6993
6993
  if (layout === "mini") {
6994
6994
  const wrapper = titleEl.parentElement;
6995
6995
  if (wrapper && titleEl.scrollWidth > wrapper.clientWidth) {
6996
- titleEl.textContent = `${title} ${title} `;
6996
+ titleEl.textContent = `${title} - ${title} - `;
6997
6997
  titleEl.classList.add("scrolling");
6998
6998
  } else {
6999
6999
  titleEl.classList.remove("scrolling");