@open-kingdom/shared-poly-util-types 0.0.2-0
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 +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/notification.types.d.ts +22 -0
- package/dist/lib/notification.types.d.ts.map +1 -0
- package/package.json +37 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface NotificationConfig {
|
|
2
|
+
maxNotifications?: number;
|
|
3
|
+
autoDismiss?: boolean;
|
|
4
|
+
dismissTimeout?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface NotificationEntry {
|
|
7
|
+
id: string;
|
|
8
|
+
message: string;
|
|
9
|
+
type: 'success' | 'warning' | 'error';
|
|
10
|
+
timestamp: number;
|
|
11
|
+
dismissed?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationState {
|
|
14
|
+
notifications: NotificationEntry[];
|
|
15
|
+
config: NotificationConfig;
|
|
16
|
+
}
|
|
17
|
+
export type RootStateContaining<K extends string, V> = {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
} & {
|
|
20
|
+
[P in K]: V;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=notification.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.types.d.ts","sourceRoot":"","sources":["../../src/lib/notification.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI;IACrD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,GAAG;KACD,CAAC,IAAI,CAAC,GAAG,CAAC;CACZ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@open-kingdom/shared-poly-util-types",
|
|
3
|
+
"version": "0.0.2-0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
".": {
|
|
11
|
+
"development": "./src/index.ts",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"vite": "^7.2.2",
|
|
19
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
20
|
+
"vite-plugin-dts": "^4.5.4"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"!**/*.tsbuildinfo"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"nx": {
|
|
30
|
+
"name": "@open-kingdom/shared-poly-util-types",
|
|
31
|
+
"tags": [
|
|
32
|
+
"scope:shared",
|
|
33
|
+
"type:util",
|
|
34
|
+
"environment:poly"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|