Skip to content

Commit f827f73

Browse files
authored
Fix Dependabot #124 cross-spawn; Upgrade tiptap, css-loader@7 (#1303)
Fixes `cross-spawn` Dependabot https://github.com/user-interviews/ui-design-system/security/dependabot/124 Handles major upgrade version of `cssloader` @ 7.x Upgrades minor/patch: * @babel * @storybook * @testing-library/jest-dom * @tiptap * @types/jest * @types/react-dom * @typescript-eslint/eslint-plugin * @typescript-eslint/parser * bootstrap * chromatic * date-fns-tz * eslint-plugins * react-bootstrap * react-currency-input-field * react-hook-form * react-loading-skeleton * react-select * sanitize-html * sass-loader * typescript * webpack
1 parent 2dc21a2 commit f827f73

File tree

13 files changed

+1583
-1401
lines changed

13 files changed

+1583
-1401
lines changed

package.json

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
"name": "@user-interviews/ui-design-system",
33
"version": "3.9.0",
44
"dependencies": {
5-
"@tiptap/core": "^2.7.4",
6-
"@tiptap/extension-bold": "^2.7.4",
7-
"@tiptap/extension-bullet-list": "^2.7.4",
8-
"@tiptap/extension-character-count": "^2.7.4",
9-
"@tiptap/extension-document": "^2.7.4",
10-
"@tiptap/extension-hard-break": "^2.7.4",
11-
"@tiptap/extension-history": "^2.7.4",
12-
"@tiptap/extension-italic": "^2.7.4",
13-
"@tiptap/extension-link": "^2.7.4",
14-
"@tiptap/extension-list-item": "^2.7.4",
15-
"@tiptap/extension-ordered-list": "^2.7.4",
16-
"@tiptap/extension-paragraph": "^2.7.4",
17-
"@tiptap/extension-placeholder": "^2.7.4",
18-
"@tiptap/extension-text": "^2.7.4",
19-
"@tiptap/pm": "^2.7.4",
20-
"@tiptap/react": "^2.7.4",
21-
"@tiptap/suggestion": "^2.7.4",
5+
"@tiptap/core": "^2.10.3",
6+
"@tiptap/extension-bold": "^2.10.3",
7+
"@tiptap/extension-bullet-list": "^2.10.3",
8+
"@tiptap/extension-character-count": "^2.10.3",
9+
"@tiptap/extension-document": "^2.10.3",
10+
"@tiptap/extension-hard-break": "^2.10.3",
11+
"@tiptap/extension-history": "^2.10.3",
12+
"@tiptap/extension-italic": "^2.10.3",
13+
"@tiptap/extension-link": "^2.10.3",
14+
"@tiptap/extension-list-item": "^2.10.3",
15+
"@tiptap/extension-ordered-list": "^2.10.3",
16+
"@tiptap/extension-paragraph": "^2.10.3",
17+
"@tiptap/extension-placeholder": "^2.10.3",
18+
"@tiptap/extension-text": "^2.10.3",
19+
"@tiptap/pm": "^2.10.3",
20+
"@tiptap/react": "^2.10.3",
21+
"@tiptap/suggestion": "^2.10.3",
2222
"date-fns": "^4.1.0",
23-
"date-fns-tz": "^3.1.3",
24-
"react-bootstrap": "^2.10.5",
25-
"react-currency-input-field": "^3.8.0",
23+
"date-fns-tz": "^3.2.0",
24+
"react-bootstrap": "^2.10.6",
25+
"react-currency-input-field": "^3.9.0",
2626
"react-datepicker": "^7.5.0",
27-
"react-loading-skeleton": "^3.4.0",
28-
"react-select": "^5.8.1",
27+
"react-loading-skeleton": "^3.5.0",
28+
"react-select": "^5.8.3",
2929
"react-toggle": "^4.1.3",
3030
"react-transition-group": "^4.4.5",
31-
"sanitize-html": "^2.13.0",
31+
"sanitize-html": "^2.13.1",
3232
"tippy.js": "^6.3.7",
3333
"uuid": "^11.0.3"
3434
},
@@ -81,65 +81,65 @@
8181
"react-tracking": "^9.3"
8282
},
8383
"devDependencies": {
84-
"@babel/cli": "^7.25.6",
85-
"@babel/core": "^7.25.2",
84+
"@babel/cli": "^7.25.9",
85+
"@babel/core": "^7.26.0",
8686
"@babel/plugin-proposal-class-properties": "^7.18.6",
8787
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
8888
"@babel/plugin-proposal-private-methods": "^7.18.6",
8989
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
90-
"@babel/plugin-transform-runtime": "^7.25.4",
91-
"@babel/preset-env": "^7.25.4",
92-
"@babel/preset-react": "^7.24.7",
93-
"@babel/preset-typescript": "^7.24.7",
94-
"@babel/runtime": "^7.25.6",
90+
"@babel/plugin-transform-runtime": "^7.25.9",
91+
"@babel/preset-env": "^7.26.0",
92+
"@babel/preset-react": "^7.26.3",
93+
"@babel/preset-typescript": "^7.26.0",
94+
"@babel/runtime": "^7.26.0",
9595
"@fortawesome/fontawesome-svg-core": "^6.5.2",
9696
"@fortawesome/free-brands-svg-icons": "^6.5.2",
9797
"@fortawesome/pro-regular-svg-icons": "^6.5.2",
9898
"@fortawesome/pro-solid-svg-icons": "^6.5.2",
9999
"@fortawesome/react-fontawesome": "^0.2.0",
100100
"@popperjs/core": "^2.11.8",
101-
"@storybook/addon-a11y": "^8.4.2",
102-
"@storybook/addon-actions": "^8.4.2",
103-
"@storybook/addon-backgrounds": "^8.4.2",
104-
"@storybook/addon-controls": "^8.4.2",
105-
"@storybook/addon-docs": "^8.4.2",
106-
"@storybook/addon-jest": "^8.4.2",
107-
"@storybook/addon-links": "^8.4.2",
108-
"@storybook/addon-storysource": "^8.4.2",
109-
"@storybook/addon-styling-webpack": "^1.0.0",
101+
"@storybook/addon-a11y": "^8.4.6",
102+
"@storybook/addon-actions": "^8.4.6",
103+
"@storybook/addon-backgrounds": "^8.4.6",
104+
"@storybook/addon-controls": "^8.4.6",
105+
"@storybook/addon-docs": "^8.4.6",
106+
"@storybook/addon-jest": "^8.4.6",
107+
"@storybook/addon-links": "^8.4.6",
108+
"@storybook/addon-storysource": "^8.4.6",
109+
"@storybook/addon-styling-webpack": "^1.0.1",
110110
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
111-
"@storybook/react": "^8.4.2",
112-
"@storybook/react-webpack5": "^8.4.2",
111+
"@storybook/react": "^8.4.6",
112+
"@storybook/react-webpack5": "^8.4.6",
113113
"@testing-library/dom": "^10.4.0",
114-
"@testing-library/jest-dom": "^6.5.0",
114+
"@testing-library/jest-dom": "^6.6.3",
115115
"@testing-library/react": "^16.0.1",
116116
"@testing-library/react-hooks": "^8.0.1",
117117
"@testing-library/user-event": "^14.5.2",
118-
"@types/jest": "^29.5.13",
119-
"@types/react-dom": "^18.3.0",
118+
"@types/jest": "^29.5.14",
119+
"@types/react-dom": "^18.3.1",
120120
"@types/react-toggle": "^4.0.5",
121121
"@types/react-transition-group": "^4.4.11",
122122
"@types/testing-library__jest-dom": "^6.0.0",
123-
"@typescript-eslint/eslint-plugin": "^8.0.1",
124-
"@typescript-eslint/parser": "^8.0.1",
123+
"@typescript-eslint/eslint-plugin": "^8.17.0",
124+
"@typescript-eslint/parser": "^8.17.0",
125125
"babel-eslint": "^10.1.0",
126126
"babel-jest": "^29.7.0",
127127
"babel-loader": "^9.2.1",
128128
"babel-plugin-module-resolver": "^5.0.2",
129129
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
130130
"babel-preset-react": "^6.24.1",
131-
"bootstrap": "5.1.3",
132-
"chromatic": "^11.18.1",
131+
"bootstrap": "5.3.3",
132+
"chromatic": "^11.20.0",
133133
"classnames": "^2.5.1",
134-
"css-loader": "^6.11.0",
134+
"css-loader": "^7.1.2",
135135
"eslint": "^8.57.1",
136136
"eslint-config-airbnb": "^19.0.4",
137137
"eslint-plugin-babel": "^5.3.1",
138-
"eslint-plugin-import": "^2.30.0",
139-
"eslint-plugin-jsx-a11y": "^6.10.0",
138+
"eslint-plugin-import": "^2.31.0",
139+
"eslint-plugin-jsx-a11y": "^6.10.2",
140140
"eslint-plugin-local-rules": "^3.0.2",
141141
"eslint-plugin-no-only-tests": "^3.3.0",
142-
"eslint-plugin-react": "^7.36.1",
142+
"eslint-plugin-react": "^7.37.2",
143143
"eslint-plugin-react-hooks": "^5.0.0",
144144
"eslint-utils": "^3.0.0",
145145
"file-loader": "^6.2.0",
@@ -152,17 +152,17 @@
152152
"react": "^18.3.1",
153153
"react-copy-to-clipboard": "^5.1.0",
154154
"react-dom": "^18.3.1",
155-
"react-hook-form": "^7.51.4",
155+
"react-hook-form": "^7.53.2",
156156
"react-modal": "^3.16.1",
157157
"react-popper": "^2.3.0",
158158
"react-test-renderer": "^18.3.1",
159159
"react-tracking": "^9.3.2",
160-
"sass-loader": "^16.0.2",
161-
"storybook": "^8.4.2",
160+
"sass-loader": "^16.0.4",
161+
"storybook": "^8.4.6",
162162
"storybook-addon-designs": "6.3.1",
163163
"style-loader": "^4.0.0",
164-
"typescript": "^5.5.4",
165-
"webpack": "^5.95.0",
164+
"typescript": "^5.7.2",
165+
"webpack": "^5.97.0",
166166
"yalc": "^1.0.0-pre.53"
167167
},
168168
"resolutions": {

src/CheckboxButton/CheckboxButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33

44
import classNames from 'classnames';
55

6-
import styles from './CheckboxButton.module.scss';
6+
import * as styles from './CheckboxButton.module.scss';
77

88
export const CHECKED_STATES = {
99
CHECKED: true,

src/Dropdown/DropdownItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type DropdownProps as RBDropdownProps,
1010
} from 'react-bootstrap';
1111

12-
import styles from './DropdownItem.module.scss';
12+
import * as styles from './DropdownItem.module.scss';
1313

1414
type DropdownItemProps = {
1515
/**

src/Flex/Flex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import classNames from 'classnames';
33

44
import { useDeprecationWarning } from '../utils';
55

6-
import styles from './Flex.module.scss';
6+
import * as styles from './Flex.module.scss';
77

88
export interface FlexProps {
99
alignItems?: 'stretch' | 'center' | 'flex-start' | 'flex-end' | 'baseline' | 'initial' | 'inherit';

src/FlexContainer/FlexContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { type ReactNode } from 'react';
22
import classNames from 'classnames';
33
import { computeBreakpointClassNames } from './utils';
44

5-
import styles from './FlexContainer.module.css';
5+
import * as styles from './FlexContainer.module.css';
66

77
type FlexProps = {
88
alignItems?: 'stretch' | 'center' | 'flex-start' | 'flex-end' | 'baseline' | 'initial' | 'inherit';

src/FlexContainer/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type FlexContainerProps } from './FlexContainer';
2-
import styles from './FlexContainer.module.css';
2+
import * as styles from './FlexContainer.module.css';
33

44
export function computeBreakpointClassNames(
55
props: Omit<FlexContainerProps, 'children' | 'className'>,

src/Popover/PopoverCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
22
import classNames from 'classnames';
33
import PopoverBody from './PopoverBody';
44

5-
import styles from './PopoverCard.module.scss';
5+
import * as styles from './PopoverCard.module.scss';
66

77
const handleWidth = (cardSize) => {
88
switch (cardSize) {

src/RadioButton/RadioButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
import classNames from 'classnames';
44

5-
import styles from './RadioButton.module.scss';
5+
import * as styles from './RadioButton.module.scss';
66

77
type RadioButtonProps = {
88
checked?: boolean;

src/RichTextEditor/RichTextEditor.test.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import { RichTextEditorDefaultActionsArray } from './richTextEditorActions';
77
describe('<RichTextEditor />', () => {
88
const elements = {
99
textbox: {
10-
find: () => screen.findByRole('textbox'),
10+
// The latest tiptap seems to be applying "textbox" role to two elements, parent and child now
11+
// so just going to grab the innermost one that has contenteditable attribute...
12+
// note that this might be a tiptap bug? so be ready if this has to be undone
13+
find: () => screen.findAllByRole('textbox').then(
14+
(elems) => elems.find((element) => element.hasAttribute('contenteditable')),
15+
),
1116
},
1217
allButtons: {
1318
findAll: () => screen.findAllByRole('button'),
@@ -51,7 +56,7 @@ describe('<RichTextEditor />', () => {
5156
const disabledButtons = buttons.filter((button) => button.hasAttribute('disabled'));
5257

5358
expect(disabledButtons.length).toBe(RichTextEditorDefaultActionsArray.length);
54-
expect(textbox.firstChild).toHaveAttribute('contenteditable', 'false');
59+
expect(textbox).toHaveAttribute('contenteditable', 'false');
5560
});
5661
});
5762
});

src/RichTextEditor/__snapshots__/RichTextEditor.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ exports[`<RichTextEditor /> renders snapshot 1`] = `
145145
<div
146146
class="tiptap ProseMirror"
147147
contenteditable="true"
148+
role="textbox"
148149
tabindex="0"
149150
translate="no"
150151
>

0 commit comments

Comments
 (0)