@arsedizioni/ars-utils 22.5.11 → 22.5.13
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/README.md +1 -1
- package/clipper.common/README.md +9 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +927 -712
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +79 -53
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +201 -55
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +49 -29
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ di vita proprio vive nel suo entry point. Importare sempre dal path specifico.
|
|
|
48
48
|
| L2 | `ui.tinymce` | `TinymceEditorDirective`, `TinymceLoaderService`, `TinymceUtils`, `TinyMceEditorComponent`, `langs/it.js` | `tinymce` (caricato a runtime) |
|
|
49
49
|
| L2 | `ui.notifications` | `NotificationsBrowserComponent` (ex `support.ui`) | - |
|
|
50
50
|
| L2 | `clipper.common` | `ClipperService`, documents, login, canali e contatori non letti, interceptor auth | solo il necessario a consultare i documenti |
|
|
51
|
-
| L4 | `clipper.ui` | browser, document, references, search-* e `
|
|
51
|
+
| L4 | `clipper.ui` | browser, document, references, search-* e `ClipperDocumentUtilsService` | `clipper.scss` |
|
|
52
52
|
|
|
53
53
|
I peer dependency opzionali (`@azure/msal-*`, `tinymce`) servono
|
|
54
54
|
solo a chi importa rispettivamente `ui.oauth` e `ui.tinymce`: sono dichiarati in
|
package/clipper.common/README.md
CHANGED
|
@@ -3,16 +3,22 @@
|
|
|
3
3
|
Effective unit-test suite for the `clipper.common` library: the 3 feature services,
|
|
4
4
|
the shared `ClipperCoreService`, the `ClipperService` facade and `ClipperAuthInterceptor`.
|
|
5
5
|
|
|
6
|
+
The suite follows the Clipper 7.5 API, which this entry point was aligned to on 2026-08-25:
|
|
7
|
+
`/session/*` with an HttpOnly cookie, no bearer token and no replayable "remember me" credential.
|
|
8
|
+
What the library offers is a deliberately reduced subset of the application's own surface — no
|
|
9
|
+
passkeys, no `/session/otp`, no `/documents/notes/notify` — but every call it does make is the
|
|
10
|
+
same call, with the same payload, that Clipper 7.5 makes.
|
|
11
|
+
|
|
6
12
|
## What is covered
|
|
7
13
|
|
|
8
14
|
| Spec | Focus |
|
|
9
15
|
| --- | --- |
|
|
10
|
-
| `core.service.spec.ts` | state mutators (`ensureLoginInfo`, `setLoggedIn`, `updateContext
|
|
11
|
-
| `login.service.spec.ts` |
|
|
16
|
+
| `core.service.spec.ts` | state mutators (`ensureLoginInfo`, `setLoggedIn`, `updateContext` per-half, `storeContext` guard, `initializeChannels`, `reset` incl. the stored context, `clear`), lazy `loginInfo` load, `initialize` (serviceUri/appUri/flags, client-id / embedded, and that a refresh announces NOTHING), `LOGOUT` handler logged-in/out, `ping` |
|
|
17
|
+
| `login.service.spec.ts` | `/session/login` (+ code challenge pending, failure), `/session/confirm`, `/session/logout` (clears the session on success **and** error), `/session/me`, `initialize` (validate-then-announce, run-once, survives an unreachable API), `newOTP`, context helpers |
|
|
12
18
|
| `documents.service.spec.ts` | every endpoint, `references`/`referencesFacets` mode routing + `null`, default taxonomy body, dashboard counters, bag parsing (`loadBag`/`addToBag`/`removeFromBag`/`clearBag`) |
|
|
13
19
|
| `account.service.spec.ts` | `updateChannels` (enabled channels only) and `updateUnreadItems` (increment + broadcast); the service touches no endpoint, and `http.verify()` keeps it that way |
|
|
14
20
|
| `clipper.service.spec.ts` | facade exposes/forwards feature services, re-exports core signals by identity, delegates `initialize`/`ping` |
|
|
15
|
-
| `auth.interceptor.spec.ts` | header decoration, passthrough of non-Clipper URLs,
|
|
21
|
+
| `auth.interceptor.spec.ts` | header decoration, passthrough of non-Clipper URLs, `ERROR_401` on a dead session (once, re-armed) vs a 401 from a sign-in attempt, retry + `ERROR_UNAVAILABLE` for an API that is not answering, envelope discrimination, message resolution and escaping, `NotifySystemErrors` flag, 5s debounce |
|
|
16
22
|
|
|
17
23
|
## File placement
|
|
18
24
|
|