@nice2dev/icons-business 1.1.6 → 1.1.9

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,85 @@
1
1
  # @nice2dev/icons-business
2
2
 
3
+ ## 1.1.9
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.1.8
8
+
9
+ ### Patch Changes
10
+
11
+ - 1.1.8 — old problems closed, no breaking changes.
12
+
13
+ **English-first UI.** Text that was hardcoded Polish now goes through `t()` with an English
14
+ default: the planning views, the whole of `@nice2dev/ui-printing`, smart home, backup, the
15
+ navigation and settings panels, `@nice2dev/ui-buildings` end to end, the photo editor and the
16
+ presentation Q&A panel. The dictionary gains 566 keys in en, pl, de, fr, es and uk, so an app
17
+ with `locale="pl"` reads as before. Three prop defaults changed with it:
18
+ `NiceInvoiceLineEditor` (`currencySymbol` `'zł'` → `'$'`, `units` → English) and
19
+ `NiceTimeoutFeedback`'s two messages.
20
+
21
+ **Icons.** No emoji, unicode glyphs or inline `<svg>` are used as icons any more — not in JSX,
22
+ not in `icon:` data fields, not on canvas. Ten icons in `icons-business` / `icons-education`
23
+ that drew their artwork as `<text>` use paths now, and the behaviour-tree palette names resolve
24
+ to real `NiceIcon` builtins (`shield` and `repeat` are new; 176 in total).
25
+
26
+ **Fixes.** The shadcn adapter reads the host's `--primary` / `--accent` again instead of
27
+ producing invalid `hsl(#hex)`; `ui-diagrams` ships the 21 translation keys its components were
28
+ already asking for; `--nice-font-size-2xl` is declared; `NiceScheduler` warns in development
29
+ when it ignores a `currentDate`, `view` or `events` change; `ui-buildings` typechecks clean and
30
+ `DeviceProtocol` accepts `'mqtt'`.
31
+
32
+ **Docs.** `doc.json` no longer lists CSS variables no component implements; eleven components
33
+ document the tokens their stylesheets really read.
34
+
35
+ ## 1.1.7
36
+
37
+ ### Patch Changes
38
+
39
+ - Close the three items left open in the 1.1.6 response to OmniVerk.
40
+
41
+ **Every value control works without state in the parent.** The `audit-controllable-state` gate
42
+ counted 87 value props that were required with no `default*`, so the control could not render from a
43
+ manifest without data. It now reports 0 and gates CI at `--max=0`. 48 controls gained `default*` props
44
+ through `useControllableState` (existing `value` + handler call sites behave as before); 33 read-only
45
+ data lists are optional with a stable empty default; 4 props paired with a handler only by name are
46
+ optional; `NiceWhiteboard` and `NiceMetricsDashboard` render an empty state until a session or
47
+ dashboard arrives. Additive API only — nothing renamed or removed.
48
+
49
+ - `NicePivotGrid.fields`, `NiceScheduler.events` and `NiceGitHooks.hooks` are controlled only together
50
+ with their change handler, as `NiceScheduler` already documented for `currentDate`/`view`. A bare
51
+ prop stays an initial value; prop plus handler now always wins (later prop updates used to be
52
+ ignored). `NiceGitHooks.onHookChange` is now called; `onHooksChange` and
53
+ `NiceLocaleManager.onTranslationsChange` are new.
54
+ - `NiceCodeEditor` / `NiceCodeDiffEditor` no longer report a value written from the prop back through
55
+ `onChange`, and call the latest handler rather than the one captured at mount.
56
+ - `NiceHtmlEditor` no longer rewrites its content on every render (React 19 compares the
57
+ `dangerouslySetInnerHTML` object, not its string), which moved the caret; the HTML source and
58
+ Markdown views can be closed again.
59
+ - Selections seeded once from the first item (access manager, automation/scene editors, git diff
60
+ viewer, ribbon, setup wizard) follow data that arrives after mount.
61
+ - `useControllableState`: new `fallbackValue` seed that never triggers the value/default clash warning;
62
+ two functional updates in one tick no longer lose the first; `onChange` is called with one argument
63
+ when there is no meta. `UseControllableStateOptions` is now a union type alias.
64
+
65
+ **`--nice-*` is the source of truth for design tokens.** Controls read only `--nice-*` (9,225 reads in
66
+ 339 files). The unprefixed names (`--color-primary`, `--bg-primary`, `--text-muted`, …) stay declared
67
+ as aliases pointing at the Nice tokens, so reading them works, but setting them no longer repaints Nice
68
+ controls. Apps that relied on that can import `@nice2dev/ui/css/legacy-bg-text-aliases.css` after
69
+ `style.css` (removed in 1.2), or set `--nice-color-primary` and friends directly. 13 tokens that were
70
+ read and never declared (`--color-danger`, `--text-on-primary`, `--color-white`, …) are defined; the
71
+ dark blocks define the canonical names, so `.nice-dark` on `<body>` no longer leaves them on light
72
+ values; `--nice-primary-bg` and `--nice-selected-bg` are a primary tint instead of falling through to
73
+ grey. New gate `audit-token-names`.
74
+
75
+ **Node ESM and `require()`.** `@nice2dev/spatial-core` imports from plain Node ESM (51 relative
76
+ specifiers gained extensions, enforced by `nodenext`), and so does `@nice2dev/ui-buildings`, which
77
+ failed through it. `require()` works for `ui-3d`, `ui-graphics` and `game-engine`. The package-exports
78
+ gate now loads every entry in both module systems.
79
+
80
+ **Hygiene.** Sources are prettier-formatted and CI gates on it; 640 stale `.d.ts` files were removed
81
+ from source trees (never published).
82
+
3
83
  ## 1.1.6
4
84
 
5
85
  No changes in this release.