@hamak/notification-spi 0.5.1 → 0.5.5

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.
@@ -41,5 +41,27 @@ export interface NotificationPluginConfig {
41
41
  * @default 'hamak:notifications'
42
42
  */
43
43
  persistenceKey?: string;
44
+ /**
45
+ * Auto-register a `notifications` reducer with `@hamak/ui-store` when it
46
+ * is present in the DI container.
47
+ *
48
+ * When `true` (the default), the plugin resolves
49
+ * `Symbol.for('@hamak/ui-store:StoreExtensionsRegistry')` during
50
+ * `initialize` and — if found — registers a reducer that mirrors the
51
+ * notification state under `state.notifications`. This widens the
52
+ * Redux `RootState` shape for any host that also loads `@hamak/ui-store`.
53
+ *
54
+ * Set to `false` to suppress the reducer registration entirely. Useful
55
+ * for hosts that want to manage their Redux slices explicitly, or that
56
+ * load both packages but do not want the notification mirror in their
57
+ * store.
58
+ *
59
+ * The in-memory `NotificationService` is authoritative either way — the
60
+ * reducer is only a read-side mirror. Disabling this flag does not affect
61
+ * the service, the commands, or the React templates.
62
+ *
63
+ * @default true
64
+ */
65
+ registerReducer?: boolean;
44
66
  }
45
67
  //# sourceMappingURL=plugin-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-config.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"plugin-config.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAEhC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/notification-spi",
3
- "version": "0.5.1",
3
+ "version": "0.5.5",
4
4
  "description": "[DEPRECATED] Use @hamak/notification/spi instead",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "scripts": {
27
- "build": "tsc -p tsconfig.lib.json",
27
+ "build": "tsc -p tsconfig.lib.json && node ../../../scripts/fix-esm-extensions.mjs ./dist",
28
28
  "clean": "rm -rf dist"
29
29
  },
30
30
  "keywords": [
@@ -1,4 +0,0 @@
1
- /**
2
- * Event types for notification system
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * @hamak/notification-spi
3
- *
4
- * Service Provider Interface for the notification system.
5
- * Provides plugin configuration types and event definitions.
6
- *
7
- * @packageDocumentation
8
- */
9
- // Export plugin configuration
10
- export * from './plugin/index.js';
11
- // Export event types
12
- export * from './events/index.js';
@@ -1,4 +0,0 @@
1
- /**
2
- * Plugin configuration and module types
3
- */
4
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Configuration options for the notification plugin
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};