@rocket.chat/fuselage-toastbar 0.32.0-dev.6 → 0.32.0-dev.60
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 +4 -4
- package/dist/cjs/ToastBarTimed.d.ts +1 -4
- package/dist/cjs/ToastBarTimed.d.ts.map +1 -1
- package/dist/cjs/ToastBarTimed.js +1 -1
- package/dist/cjs/ToastBarTimed.js.map +1 -1
- package/dist/esm/ToastBarTimed.d.ts +1 -4
- package/dist/esm/ToastBarTimed.d.ts.map +1 -1
- package/dist/esm/ToastBarTimed.js +1 -1
- package/dist/esm/ToastBarTimed.js.map +1 -1
- package/package.json +20 -19
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
[](https://www.npmjs.com/package/@rocket.chat/icons/v/latest) [](https://www.npmjs.com/package/@rocket.chat/icons/v/next)  [](https://rocketchat.github.io/Rocket.Chat.Fuselage/fuselage-toastbar)  
|
|
16
16
|
|
|
17
|
-
   
|
|
18
18
|
|
|
19
19
|
<!--/header-->
|
|
20
20
|
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
Firstly, install the peer dependencies (prerequisites):
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
npm i @rocket.chat/fuselage @rocket.chat/fuselage-polyfills react react-dom
|
|
28
|
+
npm i @rocket.chat/fuselage @rocket.chat/fuselage-hooks @rocket.chat/fuselage-polyfills @rocket.chat/styled react react-dom
|
|
29
29
|
|
|
30
30
|
# or, if you are using yarn:
|
|
31
31
|
|
|
32
|
-
yarn add @rocket.chat/fuselage @rocket.chat/fuselage-polyfills react react-dom
|
|
32
|
+
yarn add @rocket.chat/fuselage @rocket.chat/fuselage-hooks @rocket.chat/fuselage-polyfills @rocket.chat/styled react react-dom
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Add `@rocket.chat/fuselage-toastbar` as a dependency:
|
|
@@ -49,7 +49,7 @@ yarn add @rocket.chat/fuselage-toastbar
|
|
|
49
49
|
<!--contributing(msg)-->
|
|
50
50
|
|
|
51
51
|
Contributions, issues, and feature requests are welcome!<br />
|
|
52
|
-
Feel free to check the [issues](https://github.com/RocketChat/
|
|
52
|
+
Feel free to check the [issues](https://github.com/RocketChat/fuselage/issues).
|
|
53
53
|
|
|
54
54
|
<!--/contributing(msg)-->
|
|
55
55
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ToastBarPayload } from './ToastBarContext';
|
|
3
|
-
declare type
|
|
4
|
-
time: number;
|
|
5
|
-
};
|
|
6
|
-
declare const ToastBarTimed: ({ time, type, id, message, }: ToastBarTimedProps) => ReactElement;
|
|
3
|
+
declare const ToastBarTimed: ({ time, type, id, message, }: ToastBarPayload) => ReactElement;
|
|
7
4
|
export default ToastBarTimed;
|
|
8
5
|
//# sourceMappingURL=ToastBarTimed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastBarTimed.d.ts","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,
|
|
1
|
+
{"version":3,"file":"ToastBarTimed.d.ts","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,QAAA,MAAM,aAAa,iCAKhB,eAAe,KAAG,YAoBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -13,7 +13,7 @@ var ToastBarTimed = function (_a) {
|
|
|
13
13
|
}, time * 1000);
|
|
14
14
|
return function () { return clearTimeout(timeOut); };
|
|
15
15
|
}, []);
|
|
16
|
-
return (jsx_runtime_1.jsx(fuselage_1.ToastBar, { variant: type, children: message, onClose: dismissToastMessage, time: time }, void 0));
|
|
16
|
+
return (jsx_runtime_1.jsx(fuselage_1.ToastBar, { variant: type, children: message, onClose: dismissToastMessage, id: id, time: time }, void 0));
|
|
17
17
|
};
|
|
18
18
|
exports.default = ToastBarTimed;
|
|
19
19
|
//# sourceMappingURL=ToastBarTimed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastBarTimed.js","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,+BAAyC;AAGzC,qDAAuD;
|
|
1
|
+
{"version":3,"file":"ToastBarTimed.js","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,+BAAyC;AAGzC,qDAAuD;AAEvD,IAAM,aAAa,GAAG,UAAC,EAKL;QAJhB,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,EAAE,QAAA,EACF,OAAO,aAAA;IAEP,IAAM,mBAAmB,GAAG,oCAAkB,EAAE,CAAC;IAEjD,iBAAS,CAAC;QACR,IAAM,OAAO,GAAG,UAAU,CAAC;YACzB,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAC1B,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;QAEhB,OAAO,cAAM,OAAA,YAAY,CAAC,OAAO,CAAC,EAArB,CAAqB,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,kBAAC,mBAAQ,IACP,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,mBAAmB,EAC5B,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,WACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ToastBarPayload } from './ToastBarContext';
|
|
3
|
-
declare type
|
|
4
|
-
time: number;
|
|
5
|
-
};
|
|
6
|
-
declare const ToastBarTimed: ({ time, type, id, message, }: ToastBarTimedProps) => ReactElement;
|
|
3
|
+
declare const ToastBarTimed: ({ time, type, id, message, }: ToastBarPayload) => ReactElement;
|
|
7
4
|
export default ToastBarTimed;
|
|
8
5
|
//# sourceMappingURL=ToastBarTimed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastBarTimed.d.ts","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,
|
|
1
|
+
{"version":3,"file":"ToastBarTimed.d.ts","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,QAAA,MAAM,aAAa,iCAKhB,eAAe,KAAG,YAoBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -11,7 +11,7 @@ var ToastBarTimed = function (_a) {
|
|
|
11
11
|
}, time * 1000);
|
|
12
12
|
return function () { return clearTimeout(timeOut); };
|
|
13
13
|
}, []);
|
|
14
|
-
return (_jsx(ToastBar, { variant: type, children: message, onClose: dismissToastMessage, time: time }, void 0));
|
|
14
|
+
return (_jsx(ToastBar, { variant: type, children: message, onClose: dismissToastMessage, id: id, time: time }, void 0));
|
|
15
15
|
};
|
|
16
16
|
export default ToastBarTimed;
|
|
17
17
|
//# sourceMappingURL=ToastBarTimed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastBarTimed.js","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToastBarTimed.js","sourceRoot":"","sources":["../../src/ToastBarTimed.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,IAAM,aAAa,GAAG,UAAC,EAKL;QAJhB,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,EAAE,QAAA,EACF,OAAO,aAAA;IAEP,IAAM,mBAAmB,GAAG,kBAAkB,EAAE,CAAC;IAEjD,SAAS,CAAC;QACR,IAAM,OAAO,GAAG,UAAU,CAAC;YACzB,mBAAmB,CAAC,EAAE,CAAC,CAAC;QAC1B,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;QAEhB,OAAO,cAAM,OAAA,YAAY,CAAC,OAAO,CAAC,EAArB,CAAqB,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,QAAQ,IACP,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,mBAAmB,EAC5B,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,WACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocket.chat/fuselage-toastbar",
|
|
3
|
-
"version": "0.32.0-dev.
|
|
3
|
+
"version": "0.32.0-dev.60",
|
|
4
4
|
"description": "Fuselage ToastBar component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rocketchat",
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"name": "Rocket.Chat",
|
|
14
14
|
"url": "https://rocket.chat/"
|
|
15
15
|
},
|
|
16
|
-
"homepage": "https://github.com/RocketChat/
|
|
16
|
+
"homepage": "https://github.com/RocketChat/fuselage#readme",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/RocketChat/
|
|
23
|
+
"url": "git+https://github.com/RocketChat/fuselage.git",
|
|
24
24
|
"directory": "packages/fuselage-toastbar"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/RocketChat/
|
|
27
|
+
"url": "https://github.com/RocketChat/fuselage/issues"
|
|
28
28
|
},
|
|
29
29
|
"main": "dist/cjs/index.js",
|
|
30
30
|
"module": "dist/esm/index.js",
|
|
@@ -46,20 +46,13 @@
|
|
|
46
46
|
"build-storybook": "build-storybook",
|
|
47
47
|
"bump-next": "bump-next"
|
|
48
48
|
},
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
"@rocket.chat/fuselage": "*",
|
|
51
|
-
"@rocket.chat/fuselage-polyfills": "*",
|
|
52
|
-
"react": "^17.0.2",
|
|
53
|
-
"react-dom": "^17.0.2"
|
|
54
|
-
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"@rocket.chat/fuselage-hooks": "~0.31.12-dev.7",
|
|
57
|
-
"@rocket.chat/styled": "~0.31.12-dev.7"
|
|
58
|
-
},
|
|
59
49
|
"devDependencies": {
|
|
60
|
-
"@rocket.chat/eslint-config-alt": "~0.31.
|
|
61
|
-
"@rocket.chat/
|
|
62
|
-
"@rocket.chat/
|
|
50
|
+
"@rocket.chat/eslint-config-alt": "~0.31.15-dev.19",
|
|
51
|
+
"@rocket.chat/fuselage": "~0.32.0-dev.86",
|
|
52
|
+
"@rocket.chat/fuselage-hooks": "~0.31.15-dev.19",
|
|
53
|
+
"@rocket.chat/onboarding-ui": "~0.32.0-dev.86",
|
|
54
|
+
"@rocket.chat/prettier-config": "~0.31.15-dev.19",
|
|
55
|
+
"@rocket.chat/styled": "~0.31.15-dev.19",
|
|
63
56
|
"@storybook/addon-essentials": "~6.4.18",
|
|
64
57
|
"@storybook/addons": "~6.4.18",
|
|
65
58
|
"@storybook/react": "~6.4.18",
|
|
@@ -68,10 +61,10 @@
|
|
|
68
61
|
"@types/jest": "~27.4.0",
|
|
69
62
|
"@types/react": "~17.0.39",
|
|
70
63
|
"@types/react-dom": "^17.0.11",
|
|
71
|
-
"bump": "~0.31.
|
|
64
|
+
"bump": "~0.31.14",
|
|
72
65
|
"eslint": "~8.8.0",
|
|
73
66
|
"jest": "~27.5.1",
|
|
74
|
-
"lint-all": "~0.31.
|
|
67
|
+
"lint-all": "~0.31.14",
|
|
75
68
|
"lint-staged": "~12.3.3",
|
|
76
69
|
"npm-run-all": "^4.1.5",
|
|
77
70
|
"prettier": "~2.5.1",
|
|
@@ -81,6 +74,14 @@
|
|
|
81
74
|
"typedoc": "~0.22.11",
|
|
82
75
|
"typescript": "~4.3.5"
|
|
83
76
|
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"@rocket.chat/fuselage": "*",
|
|
79
|
+
"@rocket.chat/fuselage-hooks": "*",
|
|
80
|
+
"@rocket.chat/fuselage-polyfills": "*",
|
|
81
|
+
"@rocket.chat/styled": "*",
|
|
82
|
+
"react": "^17.0.2",
|
|
83
|
+
"react-dom": "^17.0.2"
|
|
84
|
+
},
|
|
84
85
|
"eslintConfig": {
|
|
85
86
|
"extends": "@rocket.chat/eslint-config-alt/typescript",
|
|
86
87
|
"env": {
|