Skip to content

Commit 46235d1

Browse files
Merge release/1.42.0 into main branch (#881)
* Revert "button size updates (previously reverted) (#876)" (#880) * remove Bugsnag (#878)
1 parent 75ba506 commit 46235d1

File tree

8 files changed

+260
-3592
lines changed

8 files changed

+260
-3592
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
env:
99
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
10-
REACT_APP_BUGSNAG_API_KEY_JS: ${{ secrets.REACT_APP_BUGSNAG_API_KEY_JS }}
1110
steps:
1211
- uses: actions/checkout@v2
1312
- uses: actions/setup-node@v1

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ module.exports = {
8080
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|mdx)$": "<rootDir>/spec/__mocks__/fileMock.js",
8181
'\\.(?:(?!variables).)+.(css|less|scss)$': '<rootDir>/spec/__mocks__/styleMock.js',
8282
'^src/([^\\.]*)$': "<rootDir>/src/$1",
83-
'@bugsnag/js': '@bugsnag/browser',
8483
},
8584

8685
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@user-interviews/ui-design-system",
3-
"version": "1.41.1",
3+
"version": "1.42.0",
44
"dependencies": {
55
"react-bootstrap": "^2.5.0",
66
"react-loading-skeleton": "^3.1.0",
@@ -39,8 +39,6 @@
3939
]
4040
},
4141
"peerDependencies": {
42-
"@bugsnag/js": "^7.0.0",
43-
"@bugsnag/plugin-react": "^7.0.0",
4442
"@fortawesome/fontawesome-svg-core": "^1.2.28",
4543
"@fortawesome/free-brands-svg-icons": "^5.15.3",
4644
"@fortawesome/pro-regular-svg-icons": "^5.15.3",
@@ -119,7 +117,6 @@
119117
"react-dom": "^16.12.0",
120118
"react-modal": "^3.12.1",
121119
"react-popper": "^2.2.3",
122-
"react-scripts": "0.2.3",
123120
"react-test-renderer": "^16.12.0",
124121
"react-tracking": "8.1.0",
125122
"sass-loader": "^8.0.2",

spec/__snapshots__/Storyshots.test.js.snap

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21689,6 +21689,118 @@ exports[`Storyshots Components/Text Weight 1`] = `
2168921689
</div>
2169021690
`;
2169121691

21692+
exports[`Storyshots Components/Toast Default 1`] = `
21693+
<div
21694+
style={
21695+
Object {
21696+
"padding": "1rem",
21697+
}
21698+
}
21699+
>
21700+
<div
21701+
aria-live="polite"
21702+
className="Toast"
21703+
/>
21704+
<div>
21705+
<p>
21706+
Click the button to see a toast message. Use the knobs to try different types!
21707+
</p>
21708+
<button
21709+
className="Button btn btn-primary"
21710+
disabled={false}
21711+
onClick={[Function]}
21712+
type="button"
21713+
>
21714+
Submit
21715+
</button>
21716+
</div>
21717+
</div>
21718+
`;
21719+
21720+
exports[`Storyshots Components/Toast Manual Dismiss Toast 1`] = `
21721+
<div
21722+
style={
21723+
Object {
21724+
"padding": "1rem",
21725+
}
21726+
}
21727+
>
21728+
<div
21729+
aria-live="polite"
21730+
className="Toast"
21731+
/>
21732+
<div>
21733+
<p>
21734+
Click the button to see a toast message. Use the knobs to try different types!
21735+
</p>
21736+
<button
21737+
className="Button btn btn-primary"
21738+
disabled={false}
21739+
onClick={[Function]}
21740+
type="button"
21741+
>
21742+
Submit
21743+
</button>
21744+
</div>
21745+
</div>
21746+
`;
21747+
21748+
exports[`Storyshots Components/Toast Toast Custom Message 1`] = `
21749+
<div
21750+
style={
21751+
Object {
21752+
"padding": "1rem",
21753+
}
21754+
}
21755+
>
21756+
<div
21757+
aria-live="polite"
21758+
className="Toast"
21759+
/>
21760+
<div>
21761+
<p>
21762+
Click the button to see a toast message. Use the knobs to try different types!
21763+
</p>
21764+
<button
21765+
className="Button btn btn-primary"
21766+
disabled={false}
21767+
onClick={[Function]}
21768+
type="button"
21769+
>
21770+
Submit
21771+
</button>
21772+
</div>
21773+
</div>
21774+
`;
21775+
21776+
exports[`Storyshots Components/Toast Toast With Action 1`] = `
21777+
<div
21778+
style={
21779+
Object {
21780+
"padding": "1rem",
21781+
}
21782+
}
21783+
>
21784+
<div
21785+
aria-live="polite"
21786+
className="Toast"
21787+
/>
21788+
<div>
21789+
<p>
21790+
Click the button to see a toast message. Use the knobs to try different types!
21791+
</p>
21792+
<button
21793+
className="Button btn btn-primary"
21794+
disabled={false}
21795+
onClick={[Function]}
21796+
type="button"
21797+
>
21798+
Submit
21799+
</button>
21800+
</div>
21801+
</div>
21802+
`;
21803+
2169221804
exports[`Storyshots Components/ToggleInput Checked 1`] = `
2169321805
<div
2169421806
style={

src/Toast/useToast.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useCallback, useReducer } from 'react';
22
import { v4 as generateUUID } from 'uuid';
3-
import { bugsnagClient } from '../bugsnag';
43

54
const createMessage = (
65
type,
@@ -51,8 +50,6 @@ const useToast = (initialMessages = []) => {
5150

5251
const setMessage = useCallback((...options) => {
5352
if (options && typeof options[0] === 'string') {
54-
bugsnagClient.notify(new Error('Toast component argument error, expecting single formatted object'));
55-
5653
dispatch({
5754
type: ACTIONS.SET_MESSAGE,
5855
payload: {

src/bugsnag.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ import {
8282
} from 'src/Toast';
8383
import { ToggleInput } from 'src/ToggleInput';
8484
import Tooltip from 'src/Tooltip';
85-
import { bugsnagClient } from './bugsnag';
8685

8786
export {
8887
Accordion,
@@ -93,7 +92,6 @@ export {
9392
Avatar,
9493
AsyncSelect,
9594
AsyncCreatableSelect,
96-
bugsnagClient,
9795
Button,
9896
BUTTON_GROUP_ORIENTATIONS,
9997
Card,

0 commit comments

Comments
 (0)