@nice2dev/licensing 1.1.5 → 1.1.7

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,57 @@
1
1
  # @nice2dev/licensing
2
2
 
3
+ ## 1.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Close the three items left open in the 1.1.6 response to OmniVerk.
8
+
9
+ **Every value control works without state in the parent.** The `audit-controllable-state` gate
10
+ counted 87 value props that were required with no `default*`, so the control could not render from a
11
+ manifest without data. It now reports 0 and gates CI at `--max=0`. 48 controls gained `default*` props
12
+ through `useControllableState` (existing `value` + handler call sites behave as before); 33 read-only
13
+ data lists are optional with a stable empty default; 4 props paired with a handler only by name are
14
+ optional; `NiceWhiteboard` and `NiceMetricsDashboard` render an empty state until a session or
15
+ dashboard arrives. Additive API only — nothing renamed or removed.
16
+
17
+ - `NicePivotGrid.fields`, `NiceScheduler.events` and `NiceGitHooks.hooks` are controlled only together
18
+ with their change handler, as `NiceScheduler` already documented for `currentDate`/`view`. A bare
19
+ prop stays an initial value; prop plus handler now always wins (later prop updates used to be
20
+ ignored). `NiceGitHooks.onHookChange` is now called; `onHooksChange` and
21
+ `NiceLocaleManager.onTranslationsChange` are new.
22
+ - `NiceCodeEditor` / `NiceCodeDiffEditor` no longer report a value written from the prop back through
23
+ `onChange`, and call the latest handler rather than the one captured at mount.
24
+ - `NiceHtmlEditor` no longer rewrites its content on every render (React 19 compares the
25
+ `dangerouslySetInnerHTML` object, not its string), which moved the caret; the HTML source and
26
+ Markdown views can be closed again.
27
+ - Selections seeded once from the first item (access manager, automation/scene editors, git diff
28
+ viewer, ribbon, setup wizard) follow data that arrives after mount.
29
+ - `useControllableState`: new `fallbackValue` seed that never triggers the value/default clash warning;
30
+ two functional updates in one tick no longer lose the first; `onChange` is called with one argument
31
+ when there is no meta. `UseControllableStateOptions` is now a union type alias.
32
+
33
+ **`--nice-*` is the source of truth for design tokens.** Controls read only `--nice-*` (9,225 reads in
34
+ 339 files). The unprefixed names (`--color-primary`, `--bg-primary`, `--text-muted`, …) stay declared
35
+ as aliases pointing at the Nice tokens, so reading them works, but setting them no longer repaints Nice
36
+ controls. Apps that relied on that can import `@nice2dev/ui/css/legacy-bg-text-aliases.css` after
37
+ `style.css` (removed in 1.2), or set `--nice-color-primary` and friends directly. 13 tokens that were
38
+ read and never declared (`--color-danger`, `--text-on-primary`, `--color-white`, …) are defined; the
39
+ dark blocks define the canonical names, so `.nice-dark` on `<body>` no longer leaves them on light
40
+ values; `--nice-primary-bg` and `--nice-selected-bg` are a primary tint instead of falling through to
41
+ grey. New gate `audit-token-names`.
42
+
43
+ **Node ESM and `require()`.** `@nice2dev/spatial-core` imports from plain Node ESM (51 relative
44
+ specifiers gained extensions, enforced by `nodenext`), and so does `@nice2dev/ui-buildings`, which
45
+ failed through it. `require()` works for `ui-3d`, `ui-graphics` and `game-engine`. The package-exports
46
+ gate now loads every entry in both module systems.
47
+
48
+ **Hygiene.** Sources are prettier-formatted and CI gates on it; 640 stale `.d.ts` files were removed
49
+ from source trees (never published).
50
+
51
+ ## 1.1.6
52
+
53
+ No changes in this release.
54
+
3
55
  ## 1.1.5
4
56
 
5
57
  No changes in this release.
@@ -1402,4 +1402,3 @@ exports.storeFingerprint = storeFingerprint;
1402
1402
  exports.tierMeetsRequirement = tierMeetsRequirement;
1403
1403
  exports.validateKeyFormat = validateKeyFormat;
1404
1404
  exports.validateLicense = validateLicense;
1405
- //# sourceMappingURL=FeatureGate-9rvyns7j.cjs.map
@@ -1403,4 +1403,3 @@ export {
1403
1403
  hasFeature as y,
1404
1404
  hasTier as z
1405
1405
  };
1406
- //# sourceMappingURL=FeatureGate-cIgJ8Gq2.js.map
@@ -2,4 +2,3 @@ const __viteBrowserExternal = {};
2
2
  export {
3
3
  __viteBrowserExternal as default
4
4
  };
5
- //# sourceMappingURL=__vite-browser-external-2Ng8QIWW.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const __viteBrowserExternal = {};
4
4
  exports.default = __viteBrowserExternal;
5
- //# sourceMappingURL=__vite-browser-external-DES75WN9.cjs.map
package/dist/index.cjs CHANGED
@@ -4351,4 +4351,3 @@ exports.useActivationWizard = useActivationWizard;
4351
4351
  exports.useLicensePortal = useLicensePortal;
4352
4352
  exports.useLicenseTransfer = useLicenseTransfer;
4353
4353
  exports.useUsageAnalytics = useUsageAnalytics;
4354
- //# sourceMappingURL=index.cjs.map
package/dist/index.mjs CHANGED
@@ -4352,4 +4352,3 @@ export {
4352
4352
  validateKeyFormat$1 as validateKeyFormat,
4353
4353
  J as validateLicense
4354
4354
  };
4355
- //# sourceMappingURL=index.mjs.map
package/dist/react.cjs CHANGED
@@ -1036,4 +1036,3 @@ exports.TrialWatermark = TrialWatermark;
1036
1036
  exports.UpgradePrompt = UpgradePrompt;
1037
1037
  exports.useFeature = useFeature;
1038
1038
  exports.useLicense = useLicense;
1039
- //# sourceMappingURL=react.cjs.map
package/dist/react.mjs CHANGED
@@ -1036,4 +1036,3 @@ export {
1036
1036
  useFeature,
1037
1037
  useLicense
1038
1038
  };
1039
- //# sourceMappingURL=react.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/licensing",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Nice2Dev Enterprise Licensing System — license key generation, validation, hardware fingerprinting, seat management and feature gating",
5
5
  "author": "NiceToDev <contact@nicetodev.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",