@coolms/core-angular 2.0.0-alpha.5 → 2.0.0-alpha.6
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 +42 -0
- package/README.md +4 -0
- package/fesm2022/coolms-core-angular.mjs +2103 -2987
- package/fesm2022/coolms-core-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/types/coolms-core-angular.d.ts +1432 -1405
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,48 @@ currently serves. Earlier alphas are deliberately not reconstructed: entries are
|
|
|
9
9
|
in the same commit as the work they describe, and inventing the ones that
|
|
10
10
|
predate this file would be a worse record than not having them.
|
|
11
11
|
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **A person's refused write opens the elevation prompt, and is sent again
|
|
15
|
+
once they elevate.** A write refused for want of elevation (a stamped 403)
|
|
16
|
+
holds the request and opens the prompt above whatever the person is in. An
|
|
17
|
+
edit dialog stays open beneath it, with its input. On a grant, the write is
|
|
18
|
+
sent once more and the caller receives that answer. If the session is
|
|
19
|
+
already elevated, it is sent once more without asking. A decline tells
|
|
20
|
+
`ELEVATION_NOTICE`, naming the action, and hands back the 403. The repeat
|
|
21
|
+
passes no prompt a second time. Reads and background requests still open
|
|
22
|
+
nothing.
|
|
23
|
+
|
|
24
|
+
## 2.0.0-alpha.6 - 2026-10-22
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- **Breaking: `engines.node` names exactly the Node lines CI runs.** It moves from
|
|
29
|
+
`^22.22.3 || ^24.15.0 || >=26` to `^22.22.3 || ^24.15.0 || ^26.0.0`: Node 27
|
|
30
|
+
and later are not declared until CI runs them. Within each line the floor is
|
|
31
|
+
the highest one any package in the lockfile declares. CI checks both, from
|
|
32
|
+
the matrix and the lockfile. The published code does not change.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- **`ELEVATION_ACTION`, `ElevationService.canPrompt` and `apiBase`.** A caller
|
|
37
|
+
can name a write in the person's words ("Saving the menu entry") for the
|
|
38
|
+
elevation prompt and notice. `ElevationPromptRequest.action` and the notice's
|
|
39
|
+
optional second argument carry it. Without it, the action is the method's
|
|
40
|
+
verb and the resource the URL names ("Saving navi nodes").
|
|
41
|
+
|
|
42
|
+
- **Navigation nodes carry the server's access state.** `NaviGraphNodeFlat.access`
|
|
43
|
+
is `'allowed'` or `'elevate'`. `'elevate'` marks a node that a member of admin
|
|
44
|
+
can open once the session is elevated; the admin shows it with a lock instead
|
|
45
|
+
of hiding it. A server that does not send the field is read as `'allowed'`
|
|
46
|
+
(`naviAccessOf`), so nothing changes against it.
|
|
47
|
+
- `NaviGraphService.loadAdminNav(url, { fresh: true })` asks the server again
|
|
48
|
+
instead of answering from the per-URL cache: the answer differs before and
|
|
49
|
+
after a grant, so a change of elevation must re-ask.
|
|
50
|
+
- **`ElevationState.mayElevate`** and `ElevationService.mayElevate()`: whether
|
|
51
|
+
this account may elevate at all, as the server answered it. Absent reads as
|
|
52
|
+
false.
|
|
53
|
+
|
|
12
54
|
## 2.0.0-alpha.5 - 2026-10-09
|
|
13
55
|
|
|
14
56
|
### Changed
|
package/README.md
CHANGED
|
@@ -56,6 +56,10 @@ a relative symlink to the admin application's, so exactly one `@angular` tree is
|
|
|
56
56
|
in play while the admin consumes this package from source: a second copy would
|
|
57
57
|
give two type identities for the same class.
|
|
58
58
|
|
|
59
|
+
## Tests
|
|
60
|
+
|
|
61
|
+
This package has no test runner of its own, so CI finds no tests in it: only typecheck, lint and build guard it here, and a check of "the same number of tests before and after" proves nothing for it. Its 13 spec files run in the admin suite of [coolms/theme-admin](https://github.com/coolms/theme-admin), which compiles this package from source. A change here is tested there, not by this repository's CI.
|
|
62
|
+
|
|
59
63
|
## Status
|
|
60
64
|
|
|
61
65
|
A pre-release: the shape is still moving and it carries no compatibility
|