web-music-score 6.0.0-pre.2 → 6.0.0-pre.4

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 (35) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/audio/index.d.ts +1 -1
  3. package/dist/audio/index.js +12 -2
  4. package/dist/audio/index.mjs +4 -4
  5. package/dist/audio-cg/index.js +1 -1
  6. package/dist/audio-cg/index.mjs +4 -4
  7. package/dist/audio-synth/index.js +1 -1
  8. package/dist/audio-synth/index.mjs +4 -4
  9. package/dist/{chunk-3L3RBNBV.mjs → chunk-6BEFVAAS.mjs} +3 -3
  10. package/dist/{chunk-7PNMM2PM.mjs → chunk-DVKR62RS.mjs} +14 -4
  11. package/dist/{chunk-5W6ROWBC.mjs → chunk-GNCSH24V.mjs} +2 -2
  12. package/dist/{chunk-OXLTN43T.mjs → chunk-GNFDJFUO.mjs} +2 -2
  13. package/dist/{chunk-5P4O5YX2.mjs → chunk-KFBULED3.mjs} +3 -3
  14. package/dist/{chunk-GNFWJCFN.mjs → chunk-UAVXEHYM.mjs} +4 -4
  15. package/dist/core/index.js +1830 -3
  16. package/dist/core/index.mjs +90 -4
  17. package/dist/iife/audio-cg.js +1 -1
  18. package/dist/iife/index.js +92 -12
  19. package/dist/{music-objects-CiIS8yPn.d.ts → music-objects-ChAdqdR8.d.ts} +74 -4
  20. package/dist/{note-CJuq5aBy.d.ts → note-RVXvpfyV.d.ts} +1 -1
  21. package/dist/pieces/index.d.ts +3 -3
  22. package/dist/pieces/index.js +1 -1
  23. package/dist/pieces/index.mjs +2 -2
  24. package/dist/react-ui/index.d.ts +6 -3
  25. package/dist/react-ui/index.js +43 -10
  26. package/dist/react-ui/index.mjs +44 -11
  27. package/dist/{scale-DxGqFxlv.d.ts → scale-B1M10_fu.d.ts} +2 -2
  28. package/dist/score/index.d.ts +6 -54
  29. package/dist/score/index.js +709 -597
  30. package/dist/score/index.mjs +700 -599
  31. package/dist/{tempo-pCAa6qgo.d.ts → tempo-D-JF-8b_.d.ts} +1 -1
  32. package/dist/theory/index.d.ts +5 -5
  33. package/dist/theory/index.js +12 -2
  34. package/dist/theory/index.mjs +4 -4
  35. package/package.json +5 -4
@@ -1,9 +1,95 @@
1
- /* WebMusicScore v6.0.0-pre.2 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
1
+ /* WebMusicScore v6.0.0-pre.4 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
2
2
  import {
3
3
  MusicError,
4
4
  MusicErrorType
5
- } from "../chunk-5P4O5YX2.mjs";
6
- import "../chunk-OXLTN43T.mjs";
5
+ } from "../chunk-KFBULED3.mjs";
6
+ import {
7
+ utils_exports
8
+ } from "../chunk-DVKR62RS.mjs";
9
+ import "../chunk-GNFDJFUO.mjs";
10
+
11
+ // src/core/custom-css.ts
12
+ utils_exports.Dom.injectCss("wms-custom-css", `
13
+ /* Add custom wms-button and wms-button-group styles */
14
+
15
+ .wms-button {
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ padding: 0.4rem 0.8rem; /* medium size */
20
+ font-size: 1rem; /* readable */
21
+ font-weight: 600; /* semi-bold for clarity */
22
+ cursor: pointer;
23
+ border: 1px solid #444; /* subtle border */
24
+ border-radius: 4px; /* slight rounding */
25
+ background-color: #1e88e5; /* primary color (blue) */
26
+ color: white; /* text color */
27
+ transition: background 0.2s ease, transform 0.1s ease;
28
+ }
29
+
30
+ .wms-button:disabled,
31
+ .wms-button.disabled {
32
+ background-color: #b0bec5; /* grayish color */
33
+ border-color: #90a4ae; /* subtle border */
34
+ color: #eceff1; /* light text */
35
+ cursor: not-allowed; /* indicates disabled */
36
+ opacity: 0.7; /* slightly faded */
37
+ pointer-events: none; /* prevent clicks */
38
+ transform: none; /* no press effect */
39
+ }
40
+
41
+ .wms-button:hover {
42
+ background-color: #1565c0; /* slightly darker */
43
+ }
44
+
45
+ .wms-button:active {
46
+ transform: scale(0.97); /* subtle press effect */
47
+ }
48
+
49
+ .wms-button--sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
50
+ .wms-button--lg { padding: 0.5rem 1rem; font-size: 1.125rem; }
51
+
52
+ .wms-button-group {
53
+ display: inline-flex;
54
+ }
55
+
56
+ .wms-button-group > .wms-button {
57
+ border-radius: 0;
58
+ margin: 0;
59
+ }
60
+
61
+ .wms-button-group > .wms-button:first-child {
62
+ border-top-left-radius: 4px;
63
+ border-bottom-left-radius: 4px;
64
+ }
65
+
66
+ .wms-button-group > .wms-button:last-child {
67
+ border-top-right-radius: 4px;
68
+ border-bottom-right-radius: 4px;
69
+ }
70
+
71
+ /* Add ifm-button-group for infima (for Docusaurus) */
72
+
73
+ .ifm-button-group {
74
+ display: inline-flex;
75
+ align-items: stretch;
76
+ }
77
+
78
+ .ifm-button-group > .button {
79
+ border-radius: 0;
80
+ margin: 0;
81
+ }
82
+
83
+ .ifm-button-group > .button:first-child {
84
+ border-top-left-radius: var(--ifm-button-border-radius);
85
+ border-bottom-left-radius: var(--ifm-button-border-radius);
86
+ }
87
+
88
+ .ifm-button-group > .button:last-child {
89
+ border-top-right-radius: var(--ifm-button-border-radius);
90
+ border-bottom-right-radius: var(--ifm-button-border-radius);
91
+ }
92
+ `);
7
93
 
8
94
  // src/core/index.ts
9
95
  var initialized = false;
@@ -12,7 +98,7 @@ function init() {
12
98
  return;
13
99
  }
14
100
  initialized = true;
15
- console.log("%cWebMusicScore v6.0.0-pre.2 (esm) initialized.", "background: black; color: white; padding: 2px;");
101
+ console.log("%cWebMusicScore v6.0.0-pre.4 (esm) initialized.", "background: black; color: white; padding: 2px;");
16
102
  }
17
103
  export {
18
104
  MusicError,