@nice2dev/admin 1.3.13 → 1.3.15

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 (3) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +19 -17
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @nice2dev/admin — Changelog
2
2
 
3
+ ## 1.3.15
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.3.14
8
+
9
+ ### Patch Changes
10
+
11
+ - f840d64: Smaller items from OmniVerk's list (1.3.14):
12
+
13
+ - **NiceScheduler** names days and months through `Intl` in the provider's language. Before, it looked up keys that no dictionary had, so a Polish calendar showed "January" and "Mon". Its titles, agenda and tooltip dates also follow the provider's `lang` now, no longer the browser's language.
14
+ - **NiceTopNav**:
15
+ - The collapsed tools cluster shows a small swatch of the current theme and the language code next to its chevron, and its accessible name says both (`collapsedSummary`, default `true`, a node of your own or `false`).
16
+ - Once open, the cluster lets the language and theme pickers' lists hang below the bar instead of cutting them off.
17
+ - **NiceTopNav `hideOnScroll` and NiceAnchor** take a `scrollContainer`: the window (default), an element, `'nearest'` or a function. They then work where the content scrolls inside a shell. The helpers are new in @nice2dev/ui-core: `getScrollParent`, `resolveScrollContainer`, `scrollTopOf`, `scrollTopFor`.
18
+ - **First frame on narrow screens:** NiceNavShell and NiceTopNav read the screen width on their first render, so a phone no longer flashes the desktop sidebar on every mount. `useMediaQuery` also guards against a missing `matchMedia`.
19
+ - **Exported types:** `NiceTreeGridRowAction` and `NiceTreeGridCheckedSummaryInfo` are now exported.
20
+ - **Docs:** the admin and auth READMEs say to import their `style.css`. The ui README no longer links to the compatibility sheet removed in 1.2.0.
21
+
3
22
  ## 1.3.13
4
23
 
5
24
  No changes in this release.
package/README.md CHANGED
@@ -16,18 +16,25 @@ npm install @nice2dev/admin
16
16
 
17
17
  **Peer dependencies:** `react >= 17.0.0`, `react-dom >= 17.0.0`
18
18
 
19
+ Import the stylesheet once, next to `@nice2dev/ui/style.css` — the components' JavaScript does
20
+ not load it:
21
+
22
+ ```tsx
23
+ import '@nice2dev/admin/style.css';
24
+ ```
25
+
19
26
  ## Components
20
27
 
21
- | Component | Description |
22
- |---|---|
23
- | `NiceAdminDashboard` | Admin dashboard with configurable widget grid |
24
- | `NiceAdminUsers` | User management table with CRUD and role assignment |
25
- | `NiceAdminRoles` | Role management with permission matrix |
26
- | `NiceAdminAuditLog` | Audit log viewer with search and filtering |
27
- | `NiceAdminSettings` | System settings editor with sections |
28
- | `NiceAdminNotifications` | Notification management panel |
29
- | `NiceFeatureFlags` | Feature flag management with environments |
30
- | `NiceImportExport` | Data import/export with format selection and mapping |
28
+ | Component | Description |
29
+ | ------------------------ | ---------------------------------------------------- |
30
+ | `NiceAdminDashboard` | Admin dashboard with configurable widget grid |
31
+ | `NiceAdminUsers` | User management table with CRUD and role assignment |
32
+ | `NiceAdminRoles` | Role management with permission matrix |
33
+ | `NiceAdminAuditLog` | Audit log viewer with search and filtering |
34
+ | `NiceAdminSettings` | System settings editor with sections |
35
+ | `NiceAdminNotifications` | Notification management panel |
36
+ | `NiceFeatureFlags` | Feature flag management with environments |
37
+ | `NiceImportExport` | Data import/export with format selection and mapping |
31
38
 
32
39
  ## Usage
33
40
 
@@ -43,13 +50,8 @@ function AdminPage() {
43
50
  { id: 'events', title: 'Events Today', type: 'stat', value: 42 },
44
51
  ]}
45
52
  />
46
- <NiceAdminUsers
47
- onSave={(user) => api.updateUser(user)}
48
- onDelete={(id) => api.deleteUser(id)}
49
- />
50
- <NiceFeatureFlags
51
- onToggle={(flag, env) => api.toggleFlag(flag, env)}
52
- />
53
+ <NiceAdminUsers onSave={(user) => api.updateUser(user)} onDelete={(id) => api.deleteUser(id)} />
54
+ <NiceFeatureFlags onToggle={(flag, env) => api.toggleFlag(flag, env)} />
53
55
  </>
54
56
  );
55
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/admin",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "description": "Nice2Dev Admin — Dashboard, user management, roles, audit log, settings, feature flags, import/export for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -63,7 +63,7 @@
63
63
  "react-dom": ">=17.0.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@nice2dev/ui": "^1.3.13",
66
+ "@nice2dev/ui": "^1.3.15",
67
67
  "@testing-library/jest-dom": "^7.0.1",
68
68
  "@testing-library/react": "^16.3.3",
69
69
  "@types/react": "^19.2.18",