@sound2score/player 0.3.0 → 0.5.0

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/index.js CHANGED
@@ -140,7 +140,13 @@ class EmbedMessageReader {
140
140
  }
141
141
  // src/embed-options.ts
142
142
  var APPEARANCES = ["auto", "light", "dark"];
143
- var THEMES = ["neon", "volt", "electric", "plasma"];
143
+ var THEMES = [
144
+ "neon",
145
+ "volt",
146
+ "electric",
147
+ "plasma",
148
+ "laser"
149
+ ];
144
150
  var MIN_SPEED = 25;
145
151
  var MAX_SPEED = 200;
146
152
  var MAX_SEMITONES = 12;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sound2score/player",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Embed sound2score scores on your site and control playback from your page.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: sound2score-player
3
3
  description: One-stop guide to embedding sound2score sheet music and synced video on any website with @sound2score/player. Use when prototyping with the built-in demo score, uploading a score and syncing a video in sound2score, configuring allowed embed sites, creating or attaching a Player, passing student userId, handling framework cleanup or SSR URLs, configuring EmbedOptions, sending playback commands, or reacting to ready, change, and unavailable events.
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  ---
6
6
 
7
7
  # sound2score Player
@@ -210,7 +210,7 @@ the score owner's Embeds style.
210
210
  `"video"`). Sets how the page first splits between video and score.
211
211
  - **`look`** (`Partial<EmbedLook>`):
212
212
  - `appearance`: `"auto" | "light" | "dark"`.
213
- - `theme`: `"neon" | "volt" | "electric" | "plasma"`.
213
+ - `theme`: `"neon" | "volt" | "electric" | "plasma" | "laser"`.
214
214
  - `accent`: `#rrggbb` hex string or `null`.
215
215
  - `background`: `"transparent"`, `#rrggbb` hex string, or `null`.
216
216
  - `credit`: `CreditPlacement` (`"header" | "corner" | "hidden"`).
@@ -1,7 +1,7 @@
1
1
  /** Light, dark, or following the viewer's system. */
2
2
  export type Appearance = "auto" | "light" | "dark";
3
3
  /** The color themes an embed can take. */
4
- export type Theme = "neon" | "volt" | "electric" | "plasma";
4
+ export type Theme = "neon" | "volt" | "electric" | "plasma" | "laser";
5
5
  export declare const APPEARANCES: readonly Appearance[];
6
6
  export declare const THEMES: readonly Theme[];
7
7
  /** How an embed looks. Each field left out follows the score owner's style. */