@nice2dev/erp-adapter 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 CHANGED
@@ -1,5 +1,73 @@
1
1
  # @nice2dev/erp-adapter — Changelog
2
2
 
3
+ ## 1.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 1.1.10 — the additive part of OmniVerk's 1.2.0 list: ui-audio builds without optional packages, one
8
+ i18n context, dictionaries per language, data props optional. No breaking changes.
9
+
10
+ **`@nice2dev/ui-audio` no longer breaks the consumer's build.** It imported `react-bootstrap`,
11
+ `recharts`, `react-window`, `react-youtube` and `pitchy` statically while declaring none of them
12
+ (only optional entries in `peerDependenciesMeta`), so a Vite app without them failed with "failed to
13
+ resolve import". Loading them with `import()` is no way out: Vite 8 (Rolldown) resolves dynamic
14
+ imports at build time and fails the same way, which made `hls.js` and `phaser` mandatory too.
15
+ `react-bootstrap`, `recharts`, `react-window` and `phaser` are now gone from the code
16
+ (`NiceBarFillEditor` uses Nice controls, `NiceVocalPerformanceReport` uses `NiceChart` /
17
+ `NicePieChart`, the karaoke editor list uses `NiceVirtualScroller`, `NiceKaraokePhaserRenderer`
18
+ renders with the DOM and keeps its name); `pitchy`, `react-youtube` and `hls.js` are regular
19
+ `dependencies`. Found on the way: in live mode the vocal performance report subtracted UltraStar note
20
+ numbers from MIDI pitch, so every singer got thousands of cents of deviation and 0 % accuracy — it now
21
+ compares pitch within the octave, as the scoring does; `NiceBarFillEditor` put a colour into a
22
+ percentage slider.
23
+
24
+ **Every package declares what its bundle imports.** A new CI gate checks every `import`, `import()`
25
+ and `require()` in the published `dist` against `dependencies` and non-optional `peerDependencies`.
26
+ To reach zero: `@nice2dev/licensing` no longer has `require('webpack')` in its main bundle (the webpack
27
+ plugin uses `compiler.webpack`; webpack 4 gets a warning instead of feature flags) and `react` is a
28
+ required peer; `@nice2dev/erp-adapter` lists `@microsoft/signalr` in `dependencies` (still loaded on
29
+ first use); `@nice2dev/icons-cursor` declares its `react-dom` peer; `@nice2dev/ui-printing` treats
30
+ `@nice2dev/ui` as a required peer.
31
+
32
+ **One copy of each package, one i18n context.** `@nice2dev/ui` carried its own copy of
33
+ `@nice2dev/ui-core` and `@nice2dev/i18n`, and `ui-forms`, `ui-api`, `ui-bi`, `ui-designers`, `ui-math`
34
+ and `ui-video` each carried a copy of all of `@nice2dev/ui` (about 4.4 MB each). Every copy had its own
35
+ React contexts: a `NiceI18nProvider` imported from `@nice2dev/i18n` did not reach the controls of
36
+ `@nice2dev/ui`, which kept their English defaults and `lang` `'en'`, and the dictionaries ended up in
37
+ an app several times. These packages now import `@nice2dev/*` instead (`ui-forms` 4.4 MB → 82 kB).
38
+ Keep every `@nice2dev/*` package on the same version.
39
+
40
+ **Dictionaries per language.** `NiceI18nLazyProvider` takes the same props as `NiceI18nProvider`
41
+ (`t`, `lang`, `overrides`, plus `fallback` and `onError`) but loads only the active language's
42
+ dictionary, with `import()`; until it arrives the controls show their built-in English (or
43
+ `fallback`), and with `t` nothing is loaded at all. Also `loadNiceDictionary(lang)`, to start in a
44
+ language without a flash of English, and `getLoadedNiceDictionary(lang)`. Exported from
45
+ `@nice2dev/i18n`, `@nice2dev/ui-core` and `@nice2dev/ui`; in the `i18n` build every language is its own
46
+ file. `NiceI18nProvider` and `NICE_I18N_DICTIONARIES` are unchanged and still bring all 30 dictionaries.
47
+ `NiceTestWrapper` (ui-core) and `NiceShowcase` (ui) use the lazy provider now, so they no longer pull
48
+ every dictionary into the apps that bundle them.
49
+
50
+ **Data props are optional.** These controls threw a `TypeError` without data and now render empty:
51
+ `NiceTreeView.nodes`, `NiceAccordion.items`, `NiceCascadeSelect.options`, `NiceAutocomplete.options`,
52
+ `NiceAuditLog.entries`, `NiceDocumentVersionList.versions`, `NicePermissionMatrix.roles` / `actions`,
53
+ `WizardStep.content`, `NiceDiagramViewer.document`, `NiceOrgChartVisualizer.data`,
54
+ `NiceSpatialViewer.document`, and in `@nice2dev/events` the lists of `NiceGiftRegistry`,
55
+ `NiceParticipantList`, `NiceExpenseSplit`, `NiceSeatingChart`, `NiceMediaCollage` and `NiceEventMedia`.
56
+ `NiceMap` without `center` centres on its markers (the whole world without markers), `NiceCountdown`
57
+ without `targetDate` shows zero and never calls `onComplete`, `NiceChat` without `onSend` is read-only
58
+ (no input), and `NiceInvitationDesigner` gains `defaultTemplate`. A CI ratchet counts the required
59
+ array props that remain.
60
+
61
+ **Smaller fixes.** `NicePieChart` draws a 100 % slice as a full circle instead of nothing. In
62
+ development `NiceThemeProvider` warns when `--nice-primary` / `--nice-color-primary` (or another linked
63
+ pair) resolves to nothing on `:root` — usually an alias cycle in the app's CSS; the theming guides say
64
+ which side to set. `@nice2dev/game-engine` exports `createAnimationClip`, `AnimatorController` and
65
+ `createAnimatorController` (two modules exported each name, so `export *` dropped all three); the other
66
+ implementations are `StateMachineAnimatorController`, `createStateMachineAnimatorController`,
67
+ `createTimelineAnimationClip` and `createRetargetingAnimationClip`.
68
+
69
+ Nothing was renamed or removed.
70
+
3
71
  ## 1.1.9
4
72
 
5
73
  No changes in this release.
@@ -10,7 +10,8 @@ export interface ErpSignalRAdapter {
10
10
  onStatusChange(cb: (status: SignalRStatus) => void): () => void;
11
11
  }
12
12
  /**
13
- * Create a SignalR adapter using dynamic import of @microsoft/signalr.
14
- * This keeps the dependency optional — consumers must install it themselves.
13
+ * Create a SignalR adapter. @microsoft/signalr is loaded with import() on first use, so it
14
+ * stays out of the initial bundle — but it is a dependency of this package: as an optional
15
+ * one the consumer had to install, every Vite app without it failed to build.
15
16
  */
16
17
  export declare function createSignalRAdapter(config: ErpSignalRConfig): Promise<ErpSignalRAdapter>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/erp-adapter",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Adapter layer connecting OmniVerk .NET backend with @nice2dev/* React components",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -35,6 +35,9 @@
35
35
  ],
36
36
  "author": "NiceToDev",
37
37
  "license": "SEE LICENSE IN LICENSE",
38
+ "dependencies": {
39
+ "@microsoft/signalr": "^10.0.11"
40
+ },
38
41
  "peerDependencies": {
39
42
  "react": ">=17.0.0",
40
43
  "react-dom": ">=17.0.0"