@rocket.chat/fuselage-toastbar 0.32.0-dev.12 → 0.32.0-dev.122

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,15 +1,32 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
4
20
  };
5
21
  Object.defineProperty(exports, "__esModule", { value: true });
6
22
  var jsx_runtime_1 = require("react/jsx-runtime");
7
- var fuselage_1 = require("@rocket.chat/fuselage");
8
- require("react");
9
- var react_dom_1 = __importDefault(require("react-dom"));
10
- it('renders without crashing', function () {
11
- var div = document.createElement('div');
12
- react_dom_1.default.render(jsx_runtime_1.jsx(fuselage_1.ToastBar, {}, void 0), div);
13
- react_dom_1.default.unmountComponentAtNode(div);
23
+ var testing_react_1 = require("@storybook/testing-react");
24
+ var react_1 = require("@testing-library/react");
25
+ var stories = __importStar(require("./stories"));
26
+ var ToastBarWithData = testing_react_1.composeStories(stories).ToastBarWithData;
27
+ describe('[ToastBarWithData Component]', function () {
28
+ it('renders without crashing', function () {
29
+ react_1.render(jsx_runtime_1.jsx(ToastBarWithData, {}, void 0));
30
+ });
14
31
  });
15
32
  //# sourceMappingURL=ToastBar.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastBar.spec.js","sourceRoot":"","sources":["../../src/ToastBar.spec.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAiD;AACjD,iBAA0B;AAC1B,wDAAiC;AAEjC,EAAE,CAAC,0BAA0B,EAAE;IAC7B,IAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,mBAAQ,CAAC,MAAM,CAAC,kBAAC,mBAAQ,aAAG,EAAE,GAAG,CAAC,CAAC;IACnC,mBAAQ,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ToastBar.spec.js","sourceRoot":"","sources":["../../src/ToastBar.spec.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA0D;AAC1D,gDAAgD;AAEhD,iDAAqC;AAE7B,IAAA,gBAAgB,GAAK,8BAAc,CAAC,OAAO,CAAC,iBAA5B,CAA6B;AAErD,QAAQ,CAAC,8BAA8B,EAAE;IACvC,EAAE,CAAC,0BAA0B,EAAE;QAC7B,cAAM,CAAC,kBAAC,gBAAgB,aAAG,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ToastBar } from '@rocket.chat/fuselage';
3
- import 'react';
4
- import ReactDOM from 'react-dom';
5
- it('renders without crashing', function () {
6
- var div = document.createElement('div');
7
- ReactDOM.render(_jsx(ToastBar, {}, void 0), div);
8
- ReactDOM.unmountComponentAtNode(div);
2
+ import { composeStories } from '@storybook/testing-react';
3
+ import { render } from '@testing-library/react';
4
+ import * as stories from './stories';
5
+ var ToastBarWithData = composeStories(stories).ToastBarWithData;
6
+ describe('[ToastBarWithData Component]', function () {
7
+ it('renders without crashing', function () {
8
+ render(_jsx(ToastBarWithData, {}, void 0));
9
+ });
9
10
  });
10
11
  //# sourceMappingURL=ToastBar.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastBar.spec.js","sourceRoot":"","sources":["../../src/ToastBar.spec.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAkB,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,EAAE,CAAC,0BAA0B,EAAE;IAC7B,IAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,KAAC,QAAQ,aAAG,EAAE,GAAG,CAAC,CAAC;IACnC,QAAQ,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ToastBar.spec.js","sourceRoot":"","sources":["../../src/ToastBar.spec.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAE7B,IAAA,gBAAgB,GAAK,cAAc,CAAC,OAAO,CAAC,iBAA5B,CAA6B;AAErD,QAAQ,CAAC,8BAA8B,EAAE;IACvC,EAAE,CAAC,0BAA0B,EAAE;QAC7B,MAAM,CAAC,KAAC,gBAAgB,aAAG,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocket.chat/fuselage-toastbar",
3
- "version": "0.32.0-dev.12",
3
+ "version": "0.32.0-dev.122",
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.13",
57
- "@rocket.chat/styled": "~0.31.12-dev.13"
58
- },
59
49
  "devDependencies": {
60
- "@rocket.chat/eslint-config-alt": "~0.31.12-dev.13",
61
- "@rocket.chat/onboarding-ui": "~0.32.0-dev.38",
62
- "@rocket.chat/prettier-config": "~0.31.12-dev.13",
50
+ "@rocket.chat/eslint-config-alt": "~0.31.19-dev.16",
51
+ "@rocket.chat/fuselage": "~0.32.0-dev.148",
52
+ "@rocket.chat/fuselage-hooks": "~0.32.0-dev.61",
53
+ "@rocket.chat/layout": "~0.32.0-dev.31",
54
+ "@rocket.chat/prettier-config": "~0.31.19-dev.16",
55
+ "@rocket.chat/styled": "~0.31.19-dev.16",
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.18",
72
65
  "eslint": "~8.8.0",
73
66
  "jest": "~27.5.1",
74
- "lint-all": "~0.31.11",
67
+ "lint-all": "~0.31.18",
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": {