@nice2dev/ui-audio 1.1.9 → 1.1.10
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/CHANGELOG.md +69 -0
- package/README.md +12 -14
- package/dist/index.cjs +38 -37
- package/dist/index.mjs +7002 -7146
- package/dist/karaokeEditor/KaraokePhaserRenderer.d.ts +7 -0
- package/package.json +9 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# @nice2dev/ui-audio — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The package description on npm shows a dash instead of the mis-encoded "—".
|
|
8
|
+
- 1.1.10 — the additive part of OmniVerk's 1.2.0 list: ui-audio builds without optional packages, one
|
|
9
|
+
i18n context, dictionaries per language, data props optional. No breaking changes.
|
|
10
|
+
|
|
11
|
+
**`@nice2dev/ui-audio` no longer breaks the consumer's build.** It imported `react-bootstrap`,
|
|
12
|
+
`recharts`, `react-window`, `react-youtube` and `pitchy` statically while declaring none of them
|
|
13
|
+
(only optional entries in `peerDependenciesMeta`), so a Vite app without them failed with "failed to
|
|
14
|
+
resolve import". Loading them with `import()` is no way out: Vite 8 (Rolldown) resolves dynamic
|
|
15
|
+
imports at build time and fails the same way, which made `hls.js` and `phaser` mandatory too.
|
|
16
|
+
`react-bootstrap`, `recharts`, `react-window` and `phaser` are now gone from the code
|
|
17
|
+
(`NiceBarFillEditor` uses Nice controls, `NiceVocalPerformanceReport` uses `NiceChart` /
|
|
18
|
+
`NicePieChart`, the karaoke editor list uses `NiceVirtualScroller`, `NiceKaraokePhaserRenderer`
|
|
19
|
+
renders with the DOM and keeps its name); `pitchy`, `react-youtube` and `hls.js` are regular
|
|
20
|
+
`dependencies`. Found on the way: in live mode the vocal performance report subtracted UltraStar note
|
|
21
|
+
numbers from MIDI pitch, so every singer got thousands of cents of deviation and 0 % accuracy — it now
|
|
22
|
+
compares pitch within the octave, as the scoring does; `NiceBarFillEditor` put a colour into a
|
|
23
|
+
percentage slider.
|
|
24
|
+
|
|
25
|
+
**Every package declares what its bundle imports.** A new CI gate checks every `import`, `import()`
|
|
26
|
+
and `require()` in the published `dist` against `dependencies` and non-optional `peerDependencies`.
|
|
27
|
+
To reach zero: `@nice2dev/licensing` no longer has `require('webpack')` in its main bundle (the webpack
|
|
28
|
+
plugin uses `compiler.webpack`; webpack 4 gets a warning instead of feature flags) and `react` is a
|
|
29
|
+
required peer; `@nice2dev/erp-adapter` lists `@microsoft/signalr` in `dependencies` (still loaded on
|
|
30
|
+
first use); `@nice2dev/icons-cursor` declares its `react-dom` peer; `@nice2dev/ui-printing` treats
|
|
31
|
+
`@nice2dev/ui` as a required peer.
|
|
32
|
+
|
|
33
|
+
**One copy of each package, one i18n context.** `@nice2dev/ui` carried its own copy of
|
|
34
|
+
`@nice2dev/ui-core` and `@nice2dev/i18n`, and `ui-forms`, `ui-api`, `ui-bi`, `ui-designers`, `ui-math`
|
|
35
|
+
and `ui-video` each carried a copy of all of `@nice2dev/ui` (about 4.4 MB each). Every copy had its own
|
|
36
|
+
React contexts: a `NiceI18nProvider` imported from `@nice2dev/i18n` did not reach the controls of
|
|
37
|
+
`@nice2dev/ui`, which kept their English defaults and `lang` `'en'`, and the dictionaries ended up in
|
|
38
|
+
an app several times. These packages now import `@nice2dev/*` instead (`ui-forms` 4.4 MB → 82 kB).
|
|
39
|
+
Keep every `@nice2dev/*` package on the same version.
|
|
40
|
+
|
|
41
|
+
**Dictionaries per language.** `NiceI18nLazyProvider` takes the same props as `NiceI18nProvider`
|
|
42
|
+
(`t`, `lang`, `overrides`, plus `fallback` and `onError`) but loads only the active language's
|
|
43
|
+
dictionary, with `import()`; until it arrives the controls show their built-in English (or
|
|
44
|
+
`fallback`), and with `t` nothing is loaded at all. Also `loadNiceDictionary(lang)`, to start in a
|
|
45
|
+
language without a flash of English, and `getLoadedNiceDictionary(lang)`. Exported from
|
|
46
|
+
`@nice2dev/i18n`, `@nice2dev/ui-core` and `@nice2dev/ui`; in the `i18n` build every language is its own
|
|
47
|
+
file. `NiceI18nProvider` and `NICE_I18N_DICTIONARIES` are unchanged and still bring all 30 dictionaries.
|
|
48
|
+
`NiceTestWrapper` (ui-core) and `NiceShowcase` (ui) use the lazy provider now, so they no longer pull
|
|
49
|
+
every dictionary into the apps that bundle them.
|
|
50
|
+
|
|
51
|
+
**Data props are optional.** These controls threw a `TypeError` without data and now render empty:
|
|
52
|
+
`NiceTreeView.nodes`, `NiceAccordion.items`, `NiceCascadeSelect.options`, `NiceAutocomplete.options`,
|
|
53
|
+
`NiceAuditLog.entries`, `NiceDocumentVersionList.versions`, `NicePermissionMatrix.roles` / `actions`,
|
|
54
|
+
`WizardStep.content`, `NiceDiagramViewer.document`, `NiceOrgChartVisualizer.data`,
|
|
55
|
+
`NiceSpatialViewer.document`, and in `@nice2dev/events` the lists of `NiceGiftRegistry`,
|
|
56
|
+
`NiceParticipantList`, `NiceExpenseSplit`, `NiceSeatingChart`, `NiceMediaCollage` and `NiceEventMedia`.
|
|
57
|
+
`NiceMap` without `center` centres on its markers (the whole world without markers), `NiceCountdown`
|
|
58
|
+
without `targetDate` shows zero and never calls `onComplete`, `NiceChat` without `onSend` is read-only
|
|
59
|
+
(no input), and `NiceInvitationDesigner` gains `defaultTemplate`. A CI ratchet counts the required
|
|
60
|
+
array props that remain.
|
|
61
|
+
|
|
62
|
+
**Smaller fixes.** `NicePieChart` draws a 100 % slice as a full circle instead of nothing. In
|
|
63
|
+
development `NiceThemeProvider` warns when `--nice-primary` / `--nice-color-primary` (or another linked
|
|
64
|
+
pair) resolves to nothing on `:root` — usually an alias cycle in the app's CSS; the theming guides say
|
|
65
|
+
which side to set. `@nice2dev/game-engine` exports `createAnimationClip`, `AnimatorController` and
|
|
66
|
+
`createAnimatorController` (two modules exported each name, so `export *` dropped all three); the other
|
|
67
|
+
implementations are `StateMachineAnimatorController`, `createStateMachineAnimatorController`,
|
|
68
|
+
`createTimelineAnimationClip` and `createRetargetingAnimationClip`.
|
|
69
|
+
|
|
70
|
+
Nothing was renamed or removed.
|
|
71
|
+
|
|
3
72
|
## 1.1.9
|
|
4
73
|
|
|
5
74
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -24,22 +24,20 @@ npm install @nice2dev/ui-audio
|
|
|
24
24
|
- `@nice2dev/ui` — design-system components used by the higher-level controls (setup panel, song browser, studio, vocal-FX rack, audio-input picker, …)
|
|
25
25
|
- `@nice2dev/icons` — all iconography (`Ntd*` icons). This library uses **no emoji or foreign icons** — every icon comes from `@nice2dev/icons`.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Nothing else has to be installed. Every module the build imports is declared, so an app
|
|
28
|
+
builds whether or not it uses the karaoke, chart or YouTube parts.
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
Installed with the package:
|
|
28
33
|
|
|
29
|
-
- `react-youtube` — YouTube player integration
|
|
30
|
-
- `react-window` — virtualized playlist rendering
|
|
31
|
-
- `hls.js` — HLS streaming support
|
|
32
34
|
- `pitchy` — real-time pitch detection
|
|
33
|
-
- `
|
|
34
|
-
- `
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
- `@ffmpeg/ffmpeg` — audio format conversion
|
|
40
|
-
- `@monaco-editor/react` — code editor integration
|
|
41
|
-
- `react-bootstrap` — Bootstrap UI components
|
|
42
|
-
- `wav-decoder` — WAV file decoding
|
|
35
|
+
- `react-youtube` — YouTube sources in the players
|
|
36
|
+
- `hls.js` — HLS streams, loaded on first use in browsers without native HLS
|
|
37
|
+
|
|
38
|
+
Charts (`NiceVocalPerformanceReport`) are `NiceChart` / `NicePieChart` and virtual lists are
|
|
39
|
+
`NiceVirtualScroller`, all from `@nice2dev/ui`; the karaoke text preview
|
|
40
|
+
(`NiceKaraokePhaserRenderer`) is plain DOM and no longer needs Phaser.
|
|
43
41
|
|
|
44
42
|
## Usage
|
|
45
43
|
|