wacom 21.2.6 → 21.2.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.
Files changed (2) hide show
  1. package/README.md +24 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # waw Angular (ngx) common
2
2
 
3
- Module which has common services, pipes, directives and interfaces which can be used on all projects.
4
-
5
- Wacom is SSR-safe and works with Angular Universal: browser-only APIs are guarded, and features that require a browser runtime activate only on the client.
6
-
7
- ## License
3
+ Module which has common services, pipes, directives and interfaces which can be used on all projects.
4
+
5
+ Wacom is SSR-safe and works with Angular Universal: browser-only APIs are guarded, and features that require a browser runtime activate only on the client.
6
+
7
+ ## License
8
8
 
9
9
  [MIT](LICENSE)
10
10
 
@@ -2274,8 +2274,22 @@ No extra config required.
2274
2274
 
2275
2275
  ## AGENTS.md
2276
2276
 
2277
- Copy this into `AGENTS.md`.
2278
-
2279
- ```md
2280
- Wacom is an Angular utility library that provides shared services, directives, pipes, interfaces, and configuration for apps. It is SSR-safe by design: the library guards browser-only APIs so Angular Universal / SSR can render normally, while browser-specific features degrade gracefully on the server or activate only in the browser runtime. Bootstrap via `provideWacom()` (or legacy `WacomModule`), configure `http`, `store`, `meta`, `network`, and optional `socket/io`; core capabilities include `CoreService` helpers (device detection, ids, debounce, signals), `HttpService` with headers and CRUD-style callbacks/observables, `StoreService` storage helpers, `MetaService` with route-driven and manual SEO tags plus link management and optional `MetaGuard`, `CrudService` for offline-aware data syncing with signals, `EmitterService` for app-wide events and completion tasks, `DomService` for dynamic component rendering, `NetworkService` for connectivity monitoring, `SocketService` for realtime messaging, `RtcService` for browser WebRTC flows, `TimeService` for date utilities, `UtilService` for assorted helpers, `ThemeService` and `TranslateService`, and common directives/pipes like click-outside, manual-\* attributes, and array/search/safe/pagination helpers.
2281
- ```
2277
+ Copy below code into AGENTS.md file of your project while you are using our plugin.
2278
+
2279
+ ```md
2280
+ - This project uses `wacom`, an Angular utility library for shared services, directives, pipes, and app-level configuration.
2281
+ - Prefer bootstrapping with `provideWacom({...})` in application providers. Use `WacomModule` / `WacomModule.forRoot()` only for legacy NgModule-based apps.
2282
+ - Put library-wide configuration in `provideWacom()` instead of scattering it across components. Available config areas include `http`, `store`, `meta`, `network`, and optional `socket` / `io`.
2283
+ - Prefer the library services before adding duplicate app utilities:
2284
+ - `HttpService` for API calls and shared headers/base URL handling.
2285
+ - `StoreService` for persisted local storage values.
2286
+ - `MetaService` for title, description, robots, image, and link tags.
2287
+ - `CrudService` for data flows that need offline-aware syncing behavior.
2288
+ - `EmitterService`, `NetworkService`, `SocketService`, `RtcService`, `TimeService`, and `UtilService` when their built-in behavior matches the need.
2289
+ - Prefer importing the specific Wacom directives, pipes, and translation helpers you need instead of wrapping the whole library again in another shared abstraction.
2290
+ - For metadata, prefer configuring defaults in `provideWacom({ meta: ... })` and using `MetaService` or route metadata. If route-driven updates are expected, prefer `meta.applyFromRoutes = true`; use `MetaGuard` only when that flow specifically needs a guard.
2291
+ - For translations, register app translations with `provideTranslate(...)` and use the exported translation pipe/directive rather than creating another parallel translation bootstrap path.
2292
+ - Keep SSR-safe behavior intact. Do not add unguarded direct access to browser-only globals such as `window`, `document`, storage, media devices, or WebRTC APIs when Wacom already provides a guarded service for that area.
2293
+ - When changing app behavior, prefer configuring or composing Wacom services first before modifying the library source.
2294
+ - Common reusable building blocks exported by the library include `clickOutside`, manual form-related directives, translation helpers, and array/search/safe/pagination-style pipes.
2295
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wacom",
3
- "version": "21.2.6",
3
+ "version": "21.2.7",
4
4
  "license": "MIT",
5
5
  "repository": "WebArtWork/wacom",
6
6
  "funding": [