@rocket.chat/fuselage-toastbar 0.32.0-dev.7 → 0.32.0-dev.70

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 CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  [![npm@latest](https://img.shields.io/npm/v/@rocket.chat/fuselage-toastbar/latest?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/icons/v/latest) [![npm@next](https://img.shields.io/npm/v/@rocket.chat/fuselage-toastbar/next?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/icons/v/next) ![react version](https://img.shields.io/npm/dependency-version/@rocket.chat/fuselage-toastbar/peer/react?style=flat-square) [![Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg)](https://rocketchat.github.io/Rocket.Chat.Fuselage/fuselage-toastbar) ![npm downloads](https://img.shields.io/npm/dw/@rocket.chat/fuselage-toastbar?style=flat-square) ![License: MIT](https://img.shields.io/npm/l/@rocket.chat/fuselage-toastbar?style=flat-square)
16
16
 
17
- ![deps](https://img.shields.io/david/RocketChat/Rocket.Chat.Fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![peer deps](https://img.shields.io/david/peer/RocketChat/Rocket.Chat.Fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![dev deps](https://img.shields.io/david/dev/RocketChat/Rocket.Chat.Fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/@rocket.chat/fuselage-toastbar?style=flat-square)
17
+ ![deps](https://img.shields.io/david/RocketChat/fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![peer deps](https://img.shields.io/david/peer/RocketChat/fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![dev deps](https://img.shields.io/david/dev/RocketChat/fuselage?path=packages%2Ffuselage-toastbar&style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/@rocket.chat/fuselage-toastbar?style=flat-square)
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/Rocket.Chat.Fuselage/issues).
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 ToastBarTimedProps = ToastBarPayload & {
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,aAAK,kBAAkB,GAAG,eAAe,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,aAAa,iCAKhB,kBAAkB,KAAG,YAmBvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
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;AAMvD,IAAM,aAAa,GAAG,UAAC,EAKF;QAJnB,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,IAAI,EAAE,IAAI,WACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
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 ToastBarTimedProps = ToastBarPayload & {
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,aAAK,kBAAkB,GAAG,eAAe,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,aAAa,iCAKhB,kBAAkB,KAAG,YAmBvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
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,kBAA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AAC,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.7",
3
+ "version": "0.32.0-dev.70",
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/Rocket.Chat.Fuselage#readme",
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/Rocket.Chat.Fuselage.git",
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/Rocket.Chat.Fuselage/issues"
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.8",
57
- "@rocket.chat/styled": "~0.31.12-dev.8"
58
- },
59
49
  "devDependencies": {
60
- "@rocket.chat/eslint-config-alt": "~0.31.12-dev.8",
61
- "@rocket.chat/onboarding-ui": "~0.32.0-dev.33",
62
- "@rocket.chat/prettier-config": "~0.31.12-dev.8",
50
+ "@rocket.chat/eslint-config-alt": "~0.31.17-dev.4",
51
+ "@rocket.chat/fuselage": "~0.32.0-dev.96",
52
+ "@rocket.chat/fuselage-hooks": "~0.32.0-dev.9",
53
+ "@rocket.chat/onboarding-ui": "~0.32.0-dev.96",
54
+ "@rocket.chat/prettier-config": "~0.31.17-dev.4",
55
+ "@rocket.chat/styled": "~0.31.17-dev.4",
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.11",
64
+ "bump": "~0.31.16",
72
65
  "eslint": "~8.8.0",
73
66
  "jest": "~27.5.1",
74
- "lint-all": "~0.31.11",
67
+ "lint-all": "~0.31.16",
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": {