@tutti-os/ui-notifications 0.0.9 → 0.0.11
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/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _tutti_os_infra_di from '@tutti-os/infra/di';
|
|
2
2
|
|
|
3
3
|
type NotificationLevel = "success" | "error" | "info" | "warning";
|
|
4
4
|
interface NotificationInput {
|
|
@@ -16,6 +16,6 @@ interface NotificationService {
|
|
|
16
16
|
info(input: NotificationInput): void;
|
|
17
17
|
warning(input: NotificationInput): void;
|
|
18
18
|
}
|
|
19
|
-
declare const INotificationService:
|
|
19
|
+
declare const INotificationService: _tutti_os_infra_di.ServiceIdentifier<NotificationService>;
|
|
20
20
|
|
|
21
21
|
export { INotificationService, type NotificationInput, type NotificationLevel, type NotificationMessage, type NotificationService };
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createDecorator } from \"@
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { createDecorator } from \"@tutti-os/infra/di\";\n\nexport type NotificationLevel = \"success\" | \"error\" | \"info\" | \"warning\";\n\nexport interface NotificationInput {\n description?: string;\n title: string;\n}\n\nexport interface NotificationMessage extends NotificationInput {\n level: NotificationLevel;\n}\n\nexport interface NotificationService {\n readonly _serviceBrand: undefined;\n\n notify(input: NotificationMessage): void;\n success(input: NotificationInput): void;\n error(input: NotificationInput): void;\n info(input: NotificationInput): void;\n warning(input: NotificationInput): void;\n}\n\nexport const INotificationService = createDecorator<NotificationService>(\n \"notification-service\"\n);\n"],"mappings":";AAAA,SAAS,uBAAuB;AAuBzB,IAAM,uBAAuB;AAAA,EAClC;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tutti-os/ui-notifications",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "packages/ui/notifications"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@
|
|
23
|
+
"@tutti-os/infra": "0.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "^5.8.3",
|