@hamak/notification-api 0.6.0 → 0.7.2
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/package.json +2 -2
- package/dist/es2015/api/index.js +0 -4
- package/dist/es2015/api/notification-service.js +0 -1
- package/dist/es2015/index.js +0 -15
- package/dist/es2015/tokens/index.js +0 -4
- package/dist/es2015/tokens/service-tokens.js +0 -17
- package/dist/es2015/types/index.js +0 -4
- package/dist/es2015/types/notification.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/notification-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "[DEPRECATED] Use @hamak/notification/api 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": [
|
package/dist/es2015/api/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/es2015/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hamak/notification-api
|
|
3
|
-
*
|
|
4
|
-
* Public API for the pluggable notification system.
|
|
5
|
-
* Provides pure interfaces, types, and service tokens for notifications.
|
|
6
|
-
* All data structures are fully serializable for Redux/storage/network.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
// Export all API interfaces
|
|
11
|
-
export * from './api/index.js';
|
|
12
|
-
// Export all types
|
|
13
|
-
export * from './types/index.js';
|
|
14
|
-
// Export service tokens
|
|
15
|
-
export * from './tokens/index.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dependency Injection tokens for notification services
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Token for injecting the NotificationService
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* export const myPlugin: PluginModule = {
|
|
10
|
-
* initialize(ctx) {
|
|
11
|
-
* const notificationService = ctx.resolve(NOTIFICATION_SERVICE_TOKEN);
|
|
12
|
-
* notificationService.success('Plugin initialized');
|
|
13
|
-
* }
|
|
14
|
-
* };
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export const NOTIFICATION_SERVICE_TOKEN = Symbol.for('@hamak/notification:NotificationService');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|