hiinformer 1.0.0 → 1.0.1
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 +13 -0
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -5,15 +5,16 @@ declare enum Status {
|
|
|
5
5
|
Info = "info",
|
|
6
6
|
Danger = "danger"
|
|
7
7
|
}
|
|
8
|
+
type ToastStatus = Status | "default" | "success" | "warning" | "info" | "danger";
|
|
8
9
|
type Toast = {
|
|
9
|
-
status
|
|
10
|
+
status?: ToastStatus;
|
|
10
11
|
title: string;
|
|
11
12
|
message: string;
|
|
12
|
-
timeout
|
|
13
|
-
multiple
|
|
13
|
+
timeout?: number | 3;
|
|
14
|
+
multiple?: boolean | true;
|
|
14
15
|
};
|
|
15
16
|
declare const useToast: () => {
|
|
16
17
|
add: (toast: Toast) => void;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
export { Status, type Toast, useToast };
|
|
20
|
+
export { Status, type Toast, type ToastStatus, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,15 +5,16 @@ declare enum Status {
|
|
|
5
5
|
Info = "info",
|
|
6
6
|
Danger = "danger"
|
|
7
7
|
}
|
|
8
|
+
type ToastStatus = Status | "default" | "success" | "warning" | "info" | "danger";
|
|
8
9
|
type Toast = {
|
|
9
|
-
status
|
|
10
|
+
status?: ToastStatus;
|
|
10
11
|
title: string;
|
|
11
12
|
message: string;
|
|
12
|
-
timeout
|
|
13
|
-
multiple
|
|
13
|
+
timeout?: number | 3;
|
|
14
|
+
multiple?: boolean | true;
|
|
14
15
|
};
|
|
15
16
|
declare const useToast: () => {
|
|
16
17
|
add: (toast: Toast) => void;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
export { Status, type Toast, useToast };
|
|
20
|
+
export { Status, type Toast, type ToastStatus, useToast };
|
package/dist/index.global.js
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hiinformer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Easy-to-use, non-intrusive toast notifications for your application.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsup src/index.ts --format esm,cjs,iife --globalName notify --dts && cpy 'src/**/*.css' dist",
|
|
15
|
+
"publish-package": "npm publish --access public",
|
|
15
16
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|