mirror of
https://github.com/strapi/strapi.git
synced 2025-08-16 12:47:53 +00:00
chore(deps): update some fe deps (#19810)
* chore(deps): update some * chore: fix tests from deps updates
This commit is contained in:
parent
2b10610286
commit
493e2923f5
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -174,7 +174,7 @@ jobs:
|
||||
uses: ./.github/actions/yarn-nm-install
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright@1.41.2 install --with-deps
|
||||
run: npx playwright@1.42.1 install --with-deps
|
||||
|
||||
- name: Monorepo build
|
||||
uses: ./.github/actions/run-build
|
||||
@ -216,7 +216,7 @@ jobs:
|
||||
uses: ./.github/actions/yarn-nm-install
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright@1.41.2 install --with-deps
|
||||
run: npx playwright@1.42.1 install --with-deps
|
||||
|
||||
- name: Monorepo build
|
||||
uses: ./.github/actions/run-build
|
||||
|
@ -31,10 +31,10 @@
|
||||
"pg": "8.11.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-router-dom": "6.21.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-router-dom": "6.22.3",
|
||||
"strapi-plugin-workspace-plugin": "workspace:*",
|
||||
"styled-components": "5.3.3"
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <=20.x.x",
|
||||
|
@ -20,8 +20,8 @@
|
||||
"better-sqlite3": "9.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <=20.x.x",
|
||||
|
@ -24,8 +24,8 @@
|
||||
"pg": "8.11.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <=20.x.x",
|
||||
|
@ -34,11 +34,6 @@ module.exports = {
|
||||
'^.+\\.js(x)?$': [
|
||||
'@swc/jest',
|
||||
{
|
||||
env: {
|
||||
coreJs: '3.33.0',
|
||||
mode: 'usage',
|
||||
},
|
||||
|
||||
jsc: {
|
||||
parser: {
|
||||
jsx: true,
|
||||
|
28
package.json
28
package.json
@ -82,28 +82,28 @@
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/eslint-parser": "^7.19.1",
|
||||
"@babel/preset-react": "7.18.6",
|
||||
"@commitlint/cli": "17.7.2",
|
||||
"@commitlint/config-conventional": "17.7.0",
|
||||
"@commitlint/prompt-cli": "17.7.2",
|
||||
"@playwright/test": "1.41.2",
|
||||
"@commitlint/cli": "19.2.0",
|
||||
"@commitlint/config-conventional": "19.1.0",
|
||||
"@commitlint/prompt-cli": "19.2.0",
|
||||
"@playwright/test": "1.42.1",
|
||||
"@strapi/admin-test-utils": "workspace:*",
|
||||
"@strapi/eslint-config": "0.2.0",
|
||||
"@swc/cli": "0.1.62",
|
||||
"@swc/core": "1.3.58",
|
||||
"@swc/helpers": "0.5.1",
|
||||
"@swc/jest": "0.2.26",
|
||||
"@swc/cli": "0.3.10",
|
||||
"@swc/core": "1.4.8",
|
||||
"@swc/helpers": "0.5.7",
|
||||
"@swc/jest": "0.2.36",
|
||||
"@types/prettier": "2.7.3",
|
||||
"@types/react": "18.2.39",
|
||||
"@types/react-dom": "18.2.17",
|
||||
"@types/react-helmet": "6.1.8",
|
||||
"@types/styled-components": "5.1.32",
|
||||
"@types/react": "18.2.66",
|
||||
"@types/react-dom": "18.2.22",
|
||||
"@types/react-helmet": "6.1.11",
|
||||
"@types/styled-components": "5.1.34",
|
||||
"@typescript-eslint/eslint-plugin": "6.7.3",
|
||||
"@typescript-eslint/parser": "6.7.3",
|
||||
"babel-eslint": "10.1.0",
|
||||
"chalk": "4.1.2",
|
||||
"chokidar": "3.5.3",
|
||||
"coffee": "5.5.1",
|
||||
"core-js": "3.33.0",
|
||||
"core-js": "3.36.0",
|
||||
"cross-env": "7.0.3",
|
||||
"dotenv": "14.2.0",
|
||||
"eslint": "8.50.0",
|
||||
@ -127,7 +127,7 @@
|
||||
"fs-extra": "10.1.0",
|
||||
"get-port": "5.1.1",
|
||||
"glob": "10.3.10",
|
||||
"husky": "8.0.2",
|
||||
"husky": "8.0.3",
|
||||
"inquirer": "8.2.5",
|
||||
"jest": "29.6.0",
|
||||
"jest-circus": "29.6.0",
|
||||
|
@ -23,6 +23,14 @@ window.ResizeObserver = ResizeObserver;
|
||||
* requestIdleCallback
|
||||
* -----------------------------------------------------------------------------------------------*/
|
||||
|
||||
type SetTimeout = typeof window.setTimeout;
|
||||
|
||||
window.setImmediate =
|
||||
window.setImmediate ||
|
||||
((fn: Parameters<SetTimeout>[0], ...args: any[]) => window.setTimeout(fn, 0, ...args));
|
||||
|
||||
window.clearImmediate = window.clearImmediate || window.clearTimeout;
|
||||
|
||||
// @ts-expect-error – mocking for testing
|
||||
window.requestIdleCallback = setImmediate;
|
||||
// @ts-expect-error – mocking for testing
|
||||
|
@ -115,6 +115,7 @@ const EditView = () => {
|
||||
trackUsage(isCreating ? 'willCreateToken' : 'willEditToken', {
|
||||
tokenType: TRANSFER_TOKEN_TYPE,
|
||||
});
|
||||
|
||||
// @ts-expect-error context assertation
|
||||
lockApp();
|
||||
|
||||
@ -138,7 +139,10 @@ const EditView = () => {
|
||||
const res = await createToken({
|
||||
...body,
|
||||
// lifespan must be "null" for unlimited (0 would mean instantly expired and isn't accepted)
|
||||
lifespan: body?.lifespan || null,
|
||||
lifespan:
|
||||
body?.lifespan && body.lifespan !== '0'
|
||||
? parseInt(body.lifespan.toString(), 10)
|
||||
: null,
|
||||
permissions,
|
||||
});
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { render, waitFor, server } from '@tests/utils';
|
||||
import { render, server } from '@tests/utils';
|
||||
import { rest } from 'msw';
|
||||
|
||||
import { ProfilePage } from '../ProfilePage';
|
||||
@ -30,25 +30,22 @@ describe('Profile page', () => {
|
||||
});
|
||||
|
||||
it('renders and shows the Interface Language section', async () => {
|
||||
const { getByText } = render(<ProfilePage />);
|
||||
await waitFor(() => {
|
||||
expect(getByText('Interface language')).toBeInTheDocument();
|
||||
});
|
||||
const { findByText } = render(<ProfilePage />);
|
||||
|
||||
await findByText('Interface language');
|
||||
});
|
||||
|
||||
it('should display username if it exists', async () => {
|
||||
const { getByText } = render(<ProfilePage />);
|
||||
await waitFor(() => {
|
||||
expect(getByText('yolo')).toBeInTheDocument();
|
||||
});
|
||||
const { getByText, findByText } = render(<ProfilePage />);
|
||||
await findByText('Interface language');
|
||||
|
||||
expect(getByText('yolo')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should display the change password section and all its fields', async () => {
|
||||
const { getByRole, queryByTestId, getByLabelText } = render(<ProfilePage />);
|
||||
const { getByRole, getByLabelText, findByText } = render(<ProfilePage />);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(queryByTestId('loader')).not.toBeInTheDocument();
|
||||
});
|
||||
await findByText('Interface language');
|
||||
|
||||
expect(
|
||||
getByRole('heading', {
|
||||
@ -73,15 +70,13 @@ describe('Profile page', () => {
|
||||
})
|
||||
);
|
||||
|
||||
const { queryByRole, queryByTestId, queryByLabelText } = render(<ProfilePage />);
|
||||
const { queryByRole, findByText, queryByLabelText } = render(<ProfilePage />);
|
||||
|
||||
const changePasswordHeading = queryByRole('heading', {
|
||||
name: 'Change password',
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
expect(queryByTestId('loader')).not.toBeInTheDocument();
|
||||
});
|
||||
await findByText('Interface language');
|
||||
|
||||
expect(changePasswordHeading).not.toBeInTheDocument();
|
||||
expect(queryByLabelText(/current password/i)).not.toBeInTheDocument();
|
||||
|
@ -21,7 +21,7 @@ describe('ADMIN | Pages | AUDIT LOGS | ListPage', () => {
|
||||
it('should render page with right header details', async () => {
|
||||
render(<ListPage />);
|
||||
|
||||
await waitFor(() => expect(screen.queryByText('Loading content...')).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(screen.queryByText('Loading content')).not.toBeInTheDocument());
|
||||
|
||||
expect(screen.getByRole('heading', { name: 'Audit Logs' })).toBeInTheDocument();
|
||||
|
||||
@ -66,7 +66,7 @@ describe('ADMIN | Pages | AUDIT LOGS | ListPage', () => {
|
||||
|
||||
render(<ListPage />);
|
||||
|
||||
await waitFor(() => expect(screen.queryByText('Loading content...')).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(screen.queryByText('Loading content')).not.toBeInTheDocument());
|
||||
|
||||
expect(screen.getByRole('combobox', { name: 'Entries per page' })).toBeInTheDocument();
|
||||
|
||||
@ -80,7 +80,7 @@ describe('ADMIN | Pages | AUDIT LOGS | ListPage', () => {
|
||||
it('should open a modal when clicked on a table row and close modal when clicked', async () => {
|
||||
const { user } = render(<ListPage />);
|
||||
|
||||
await waitFor(() => expect(screen.queryByText('Loading content...')).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(screen.queryByText('Loading content')).not.toBeInTheDocument());
|
||||
|
||||
expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
||||
|
||||
@ -106,7 +106,7 @@ describe('ADMIN | Pages | AUDIT LOGS | ListPage', () => {
|
||||
it('should show the correct inputs for filtering', async () => {
|
||||
const { user } = render(<ListPage />);
|
||||
|
||||
await waitFor(() => expect(screen.queryByText('Loading content...')).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(screen.queryByText('Loading content')).not.toBeInTheDocument());
|
||||
|
||||
await user.click(screen.getByRole('button', { name: 'Filters' }));
|
||||
|
||||
|
@ -72,8 +72,8 @@
|
||||
"@strapi/types": "4.20.5",
|
||||
"@strapi/typescript-utils": "4.20.5",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"@vitejs/plugin-react-swc": "3.5.0",
|
||||
"axios": "1.6.0",
|
||||
"@vitejs/plugin-react-swc": "3.6.0",
|
||||
"axios": "1.6.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
"boxen": "5.1.2",
|
||||
"chalk": "^4.1.2",
|
||||
@ -82,11 +82,11 @@
|
||||
"date-fns": "2.30.0",
|
||||
"execa": "5.1.1",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"formik": "2.4.0",
|
||||
"formik": "2.4.5",
|
||||
"fractional-indexing": "3.2.0",
|
||||
"fs-extra": "10.1.0",
|
||||
"highlight.js": "^10.4.1",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"inquirer": "8.2.5",
|
||||
"invariant": "^2.2.4",
|
||||
"js-cookie": "2.2.1",
|
||||
@ -117,13 +117,13 @@
|
||||
"react-dnd-html5-backend": "16.0.1",
|
||||
"react-error-boundary": "3.1.4",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-is": "^18.2.0",
|
||||
"react-query": "3.39.3",
|
||||
"react-redux": "8.1.1",
|
||||
"react-router-dom": "6.21.1",
|
||||
"react-select": "5.7.0",
|
||||
"react-window": "1.8.8",
|
||||
"react-redux": "8.1.3",
|
||||
"react-router-dom": "6.22.3",
|
||||
"react-select": "5.8.0",
|
||||
"react-window": "1.8.10",
|
||||
"rimraf": "3.0.2",
|
||||
"sanitize-html": "2.11.0",
|
||||
"scheduler": "0.23.0",
|
||||
@ -132,7 +132,7 @@
|
||||
"slate": "0.94.1",
|
||||
"slate-history": "0.93.0",
|
||||
"slate-react": "0.98.3",
|
||||
"styled-components": "5.3.3",
|
||||
"styled-components": "5.3.11",
|
||||
"typescript": "5.3.2",
|
||||
"use-context-selector": "1.4.1",
|
||||
"yup": "0.32.9"
|
||||
@ -147,7 +147,7 @@
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/codemirror5": "npm:@types/codemirror@^5.60.15",
|
||||
"@types/invariant": "2.2.36",
|
||||
"@types/js-cookie": "3.0.5",
|
||||
"@types/js-cookie": "3.0.6",
|
||||
"@types/jsonwebtoken": "9.0.3",
|
||||
"@types/koa-passport": "6.0.1",
|
||||
"@types/lodash": "^4.14.191",
|
||||
@ -159,13 +159,13 @@
|
||||
"@types/pluralize": "0.0.32",
|
||||
"@types/prettier": "2.7.3",
|
||||
"@types/react-window": "1.8.8",
|
||||
"@types/sanitize-html": "2.9.5",
|
||||
"@types/sanitize-html": "2.11.0",
|
||||
"koa-body": "4.2.0",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/data-transfer": "^4.16.0",
|
||||
|
@ -60,14 +60,14 @@
|
||||
"@strapi/icons": "1.16.0",
|
||||
"@strapi/types": "workspace:*",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"axios": "1.6.0",
|
||||
"axios": "1.6.8",
|
||||
"date-fns": "2.30.0",
|
||||
"date-fns-tz": "2.0.0",
|
||||
"formik": "2.4.0",
|
||||
"date-fns-tz": "2.0.1",
|
||||
"formik": "2.4.5",
|
||||
"lodash": "4.17.21",
|
||||
"node-schedule": "2.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-redux": "8.1.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-redux": "8.1.3",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -77,14 +77,14 @@
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/styled-components": "5.1.26",
|
||||
"@types/styled-components": "5.1.34",
|
||||
"koa": "2.13.4",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-query": "3.39.3",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3",
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -65,13 +65,13 @@
|
||||
"@strapi/utils": "4.20.5",
|
||||
"date-fns": "2.30.0",
|
||||
"fs-extra": "10.1.0",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"lodash": "4.17.21",
|
||||
"pluralize": "8.0.0",
|
||||
"qs": "6.11.1",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-redux": "8.1.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-redux": "8.1.3",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -86,8 +86,8 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-query": "3.39.3",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/admin": "^4.20.5",
|
||||
|
@ -119,7 +119,7 @@
|
||||
"@types/koa__router": "12.0.0",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/mime-types": "2.1.1",
|
||||
"@types/node": "18.18.4",
|
||||
"@types/node": "18.19.24",
|
||||
"@types/node-schedule": "2.1.0",
|
||||
"@types/statuses": "2.0.1",
|
||||
"eslint-config-custom": "4.20.5",
|
||||
|
@ -65,7 +65,7 @@
|
||||
"@types/jest": "29.5.2",
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/node": "18.18.4",
|
||||
"@types/node": "18.19.24",
|
||||
"@types/semver": "7.5.0",
|
||||
"@types/stream-chain": "2.0.1",
|
||||
"@types/stream-json": "1.7.3",
|
||||
|
@ -59,7 +59,7 @@
|
||||
"@strapi/utils": "4.20.5",
|
||||
"lodash": "4.17.21",
|
||||
"react-helmet": "6.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-query": "3.39.3",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
@ -75,8 +75,8 @@
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/admin": "^4.20.5",
|
||||
|
@ -48,12 +48,12 @@
|
||||
"watch": "pack-up watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "1.6.0",
|
||||
"axios": "1.6.8",
|
||||
"date-fns": "2.30.0",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"lodash": "4.17.21",
|
||||
"qs": "6.11.1",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-query": "3.39.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -71,9 +71,9 @@
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"react-router-dom": "6.22.3",
|
||||
"rimraf": "3.0.2",
|
||||
"styled-components": "5.3.3",
|
||||
"styled-components": "5.3.11",
|
||||
"typescript": "5.3.2",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
|
@ -121,9 +121,9 @@
|
||||
"@strapi/typescript-utils": "4.20.5",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"@types/nodemon": "1.19.6",
|
||||
"@vitejs/plugin-react-swc": "3.5.0",
|
||||
"@vitejs/plugin-react-swc": "3.6.0",
|
||||
"boxen": "5.1.2",
|
||||
"browserslist": "^4.22.2",
|
||||
"browserslist": "^4.23.0",
|
||||
"browserslist-to-esbuild": "1.2.0",
|
||||
"chalk": "4.1.2",
|
||||
"chokidar": "3.5.3",
|
||||
@ -131,7 +131,7 @@
|
||||
"commander": "8.3.0",
|
||||
"concurrently": "8.2.2",
|
||||
"copyfiles": "2.4.1",
|
||||
"css-loader": "^6.9.0",
|
||||
"css-loader": "^6.10.0",
|
||||
"dotenv": "14.2.0",
|
||||
"esbuild": "0.19.11",
|
||||
"esbuild-loader": "^2.21.0",
|
||||
@ -141,7 +141,7 @@
|
||||
"fork-ts-checker-webpack-plugin": "8.0.0",
|
||||
"fs-extra": "10.1.0",
|
||||
"get-latest-version": "5.1.0",
|
||||
"git-url-parse": "13.1.0",
|
||||
"git-url-parse": "13.1.1",
|
||||
"glob": "10.3.10",
|
||||
"html-webpack-plugin": "5.6.0",
|
||||
"http-errors": "1.8.1",
|
||||
@ -163,11 +163,11 @@
|
||||
"semver": "7.5.4",
|
||||
"style-loader": "3.3.4",
|
||||
"typescript": "5.3.2",
|
||||
"vite": "5.0.11",
|
||||
"webpack": "^5.89.0",
|
||||
"vite": "5.1.6",
|
||||
"webpack": "^5.90.3",
|
||||
"webpack-bundle-analyzer": "^4.10.1",
|
||||
"webpack-dev-middleware": "6.1.1",
|
||||
"webpack-hot-middleware": "2.26.0",
|
||||
"webpack-hot-middleware": "2.26.1",
|
||||
"yalc": "1.0.0-pre.53",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
@ -176,8 +176,8 @@
|
||||
"@types/find-root": "1.1.4",
|
||||
"@types/jest": "29.5.2",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/node": "18.18.4",
|
||||
"@types/webpack-bundle-analyzer": "4.6.3",
|
||||
"@types/node": "18.19.24",
|
||||
"@types/webpack-bundle-analyzer": "4.7.0",
|
||||
"@types/webpack-hot-middleware": "2.25.9",
|
||||
"eslint-config-custom": "4.20.5",
|
||||
"react": "^18.2.0",
|
||||
|
@ -23,6 +23,7 @@ const watch = async (ctx: BuildContext): Promise<WebpackWatcher> => {
|
||||
|
||||
const devMiddleware = webpackDevMiddleware(compiler);
|
||||
|
||||
// @ts-expect-error incompatible types between hotMiddleware and webpack
|
||||
const hotMiddleware = webpackHotMiddleware(compiler, {
|
||||
log: false,
|
||||
path: '/__webpack_hmr',
|
||||
|
@ -274,7 +274,7 @@ exports[`Media Library | Breadcrumbs should render and match snapshot 1`] = `
|
||||
aria-expanded="false"
|
||||
aria-haspopup="menu"
|
||||
aria-label="Get more ascendants folders"
|
||||
class="c7 c8 c9 c10 c11 sc-iwjdpV c10"
|
||||
class="c7 c8 c9 c10 c11 sc-hmdomO c10"
|
||||
data-state="closed"
|
||||
id="radix-:r1:"
|
||||
label="..."
|
||||
|
@ -553,6 +553,7 @@ exports[`BulkMoveDialog renders and matches the snapshot 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -566,6 +567,7 @@ exports[`BulkMoveDialog renders and matches the snapshot 1`] = `
|
||||
Media Library
|
||||
</div>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
|
@ -1217,6 +1217,7 @@ exports[`<EditAssetDialog /> renders and matches the snapshot 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -1230,6 +1231,7 @@ exports[`<EditAssetDialog /> renders and matches the snapshot 1`] = `
|
||||
Media Library
|
||||
</div>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
|
@ -1217,6 +1217,7 @@ exports[`<EditAssetDialog /> renders and matches the snapshot 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -1230,6 +1231,7 @@ exports[`<EditAssetDialog /> renders and matches the snapshot 1`] = `
|
||||
Media Library
|
||||
</div>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
|
@ -647,6 +647,7 @@ exports[`EditFolderDialog renders and matches the snapshot 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -660,6 +661,7 @@ exports[`EditFolderDialog renders and matches the snapshot 1`] = `
|
||||
Media Library
|
||||
</div>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
|
@ -62,6 +62,7 @@ exports[`SelectTree renders 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -73,6 +74,7 @@ exports[`SelectTree renders 1`] = `
|
||||
class=" css-1ryi7up-singleValue"
|
||||
/>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
@ -193,6 +195,7 @@ exports[`SelectTree renders 1`] = `
|
||||
aria-live="polite"
|
||||
aria-relevant="additions text"
|
||||
class="css-1f43avz-a11yText-A11yText"
|
||||
role="log"
|
||||
/>
|
||||
<div
|
||||
class=" css-1ioi85f-control"
|
||||
@ -204,6 +207,7 @@ exports[`SelectTree renders 1`] = `
|
||||
class=" css-1ryi7up-singleValue"
|
||||
/>
|
||||
<input
|
||||
aria-activedescendant=""
|
||||
aria-autocomplete="list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="true"
|
||||
|
@ -47,13 +47,13 @@
|
||||
"@strapi/icons": "1.16.0",
|
||||
"@strapi/provider-upload-local": "4.20.5",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"axios": "1.6.0",
|
||||
"axios": "1.6.8",
|
||||
"byte-size": "7.0.1",
|
||||
"cropperjs": "1.6.0",
|
||||
"cropperjs": "1.6.1",
|
||||
"date-fns": "2.30.0",
|
||||
"formik": "2.4.0",
|
||||
"formik": "2.4.5",
|
||||
"fs-extra": "10.1.0",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"koa-range": "0.3.0",
|
||||
"koa-static": "5.0.0",
|
||||
"lodash": "4.17.21",
|
||||
@ -62,10 +62,10 @@
|
||||
"qs": "6.11.1",
|
||||
"react-dnd": "16.0.1",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-query": "3.39.3",
|
||||
"react-redux": "8.1.1",
|
||||
"react-select": "5.7.0",
|
||||
"react-redux": "8.1.3",
|
||||
"react-select": "5.8.0",
|
||||
"sharp": "0.32.6",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
@ -78,8 +78,8 @@
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/admin": "^4.19.0",
|
||||
|
@ -57,7 +57,7 @@
|
||||
"devDependencies": {
|
||||
"@strapi/pack-up": "4.20.5",
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/node": "18.18.4",
|
||||
"@types/node": "18.19.24",
|
||||
"eslint-config-custom": "4.20.5",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
|
@ -39,18 +39,18 @@
|
||||
"@strapi/design-system": "1.16.0",
|
||||
"@strapi/helper-plugin": "4.20.5",
|
||||
"@strapi/icons": "1.16.0",
|
||||
"react-intl": "6.4.1"
|
||||
"react-intl": "6.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@strapi/strapi": "4.20.5",
|
||||
"@types/react": "18.2.39",
|
||||
"@types/react-dom": "18.2.17",
|
||||
"@types/styled-components": "5.1.32",
|
||||
"@types/react": "18.2.66",
|
||||
"@types/react-dom": "18.2.22",
|
||||
"@types/styled-components": "5.1.34",
|
||||
"eslint-config-custom": "4.20.5",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3",
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11",
|
||||
"tsconfig": "4.20.5",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
|
@ -57,17 +57,17 @@
|
||||
"@strapi/helper-plugin": "4.20.5",
|
||||
"@strapi/icons": "1.16.0",
|
||||
"react-colorful": "5.6.1",
|
||||
"react-intl": "6.4.1"
|
||||
"react-intl": "6.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@strapi/strapi": "4.20.5",
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/styled-components": "5.1.32",
|
||||
"@types/styled-components": "5.1.34",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3",
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11",
|
||||
"typescript": "5.3.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -51,14 +51,14 @@
|
||||
"@strapi/utils": "4.20.5",
|
||||
"bcryptjs": "2.4.3",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"formik": "2.4.0",
|
||||
"formik": "2.4.5",
|
||||
"fs-extra": "10.1.0",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"koa-static": "^5.0.0",
|
||||
"lodash": "4.17.21",
|
||||
"path-to-regexp": "6.2.1",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-query": "3.39.3",
|
||||
"swagger-ui-dist": "4.19.0",
|
||||
"yaml": "1.10.2",
|
||||
@ -73,8 +73,8 @@
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/strapi": "^4.0.0",
|
||||
|
@ -78,8 +78,8 @@
|
||||
"koa": "2.13.4",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3",
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11",
|
||||
"tsconfig": "4.20.5",
|
||||
"typescript": "5.3.2"
|
||||
},
|
||||
|
@ -57,11 +57,11 @@
|
||||
"@strapi/helper-plugin": "4.20.5",
|
||||
"@strapi/icons": "1.16.0",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"axios": "1.6.0",
|
||||
"axios": "1.6.8",
|
||||
"lodash": "4.17.21",
|
||||
"qs": "6.11.1",
|
||||
"react-intl": "6.4.1",
|
||||
"react-redux": "8.1.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-redux": "8.1.3",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -74,8 +74,8 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-query": "3.39.3",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/strapi": "^4.0.0",
|
||||
|
@ -60,8 +60,8 @@
|
||||
"@strapi/strapi": "4.20.5",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/strapi": "^4.0.0",
|
||||
|
@ -51,9 +51,9 @@
|
||||
"@strapi/icons": "1.16.0",
|
||||
"@strapi/utils": "4.20.5",
|
||||
"bcryptjs": "2.4.3",
|
||||
"formik": "2.4.0",
|
||||
"formik": "2.4.5",
|
||||
"grant-koa": "5.4.8",
|
||||
"immer": "9.0.19",
|
||||
"immer": "9.0.21",
|
||||
"jsonwebtoken": "9.0.0",
|
||||
"jwk-to-pem": "2.0.5",
|
||||
"koa": "2.13.4",
|
||||
@ -61,9 +61,9 @@
|
||||
"lodash": "4.17.21",
|
||||
"prop-types": "^15.8.1",
|
||||
"purest": "4.0.2",
|
||||
"react-intl": "6.4.1",
|
||||
"react-intl": "6.6.2",
|
||||
"react-query": "3.39.3",
|
||||
"react-redux": "8.1.1",
|
||||
"react-redux": "8.1.3",
|
||||
"url-join": "4.0.1",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
@ -76,8 +76,8 @@
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.1",
|
||||
"styled-components": "5.3.3"
|
||||
"react-router-dom": "6.22.3",
|
||||
"styled-components": "5.3.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/strapi": "^4.0.0",
|
||||
|
@ -60,7 +60,7 @@
|
||||
"watch": "node -r esbuild-register scripts/watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-react-swc": "3.5.0",
|
||||
"@vitejs/plugin-react-swc": "3.6.0",
|
||||
"boxen": "5.1.2",
|
||||
"browserslist-to-esbuild": "1.2.0",
|
||||
"chalk": "4.1.2",
|
||||
@ -69,7 +69,7 @@
|
||||
"esbuild": "0.19.11",
|
||||
"esbuild-register": "3.5.0",
|
||||
"get-latest-version": "5.1.0",
|
||||
"git-url-parse": "13.1.0",
|
||||
"git-url-parse": "13.1.1",
|
||||
"ini": "4.1.1",
|
||||
"ora": "5.4.1",
|
||||
"outdent": "0.8.0",
|
||||
@ -79,7 +79,7 @@
|
||||
"prompts": "2.4.2",
|
||||
"rxjs": "7.8.1",
|
||||
"typescript": "5.3.2",
|
||||
"vite": "5.0.11",
|
||||
"vite": "5.1.6",
|
||||
"yup": "0.32.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -87,7 +87,7 @@
|
||||
"@types/git-url-parse": "9.0.1",
|
||||
"@types/ini": "1.3.31",
|
||||
"@types/prettier": "2.7.3",
|
||||
"@types/prompts": "2.4.4",
|
||||
"@types/prompts": "2.4.9",
|
||||
"eslint-config-custom": "4.20.5",
|
||||
"rimraf": "3.0.2"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user