Skip to content

Commit 1f7b7f5

Browse files
authored
chore: major version upgrades for frontend-platform & frontend-build (#1251)
1 parent 471fa75 commit 1f7b7f5

File tree

7 files changed

+7337
-11800
lines changed

7 files changed

+7337
-11800
lines changed

package-lock.json

Lines changed: 7308 additions & 11769 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
36-
"@edx/frontend-platform": "7.1.4",
36+
"@edx/frontend-platform": "^8.0.0",
3737
"@edx/openedx-atlas": "^0.6.0",
3838
"@fortawesome/fontawesome-svg-core": "6.5.2",
3939
"@fortawesome/free-brands-svg-icons": "6.5.2",
@@ -73,7 +73,7 @@
7373
"devDependencies": {
7474
"@edx/browserslist-config": "^1.1.1",
7575
"@edx/reactifex": "1.1.0",
76-
"@openedx/frontend-build": "13.1.4",
76+
"@openedx/frontend-build": "^14.0.3",
7777
"babel-plugin-formatjs": "10.5.16",
7878
"eslint-plugin-import": "2.29.1",
7979
"glob": "7.2.3",

src/common-components/tests/EmbeddedRegistrationRoute.test.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import React from 'react';
55
import { getConfig } from '@edx/frontend-platform';
66
import { render } from '@testing-library/react';
77
import { act } from 'react-dom/test-utils';
8-
9-
import { PAGE_NOT_FOUND, REGISTER_EMBEDDED_PAGE } from '../../data/constants';
10-
import EmbeddedRegistrationRoute from '../EmbeddedRegistrationRoute';
11-
128
import {
139
MemoryRouter, Route, BrowserRouter as Router, Routes,
1410
} from 'react-router-dom';
1511

12+
import { PAGE_NOT_FOUND, REGISTER_EMBEDDED_PAGE } from '../../data/constants';
13+
import EmbeddedRegistrationRoute from '../EmbeddedRegistrationRoute';
14+
1615
const RRD = require('react-router-dom');
1716
// Just render plain div with its children
1817
// eslint-disable-next-line react/prop-types

src/common-components/tests/UnAuthOnlyRoute.test.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import React from 'react';
55
import { fetchAuthenticatedUser, getAuthenticatedUser } from '@edx/frontend-platform/auth';
66
import { render } from '@testing-library/react';
77
import { act } from 'react-dom/test-utils';
8-
9-
import { UnAuthOnlyRoute } from '..';
10-
import { REGISTER_PAGE } from '../../data/constants';
11-
128
import {
139
MemoryRouter, Route, BrowserRouter as Router, Routes,
1410
} from 'react-router-dom';
1511

12+
import { UnAuthOnlyRoute } from '..';
13+
import { REGISTER_PAGE } from '../../data/constants';
14+
1615
jest.mock('@edx/frontend-platform/auth', () => ({
1716
getAuthenticatedUser: jest.fn(),
1817
fetchAuthenticatedUser: jest.fn(),

src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ exports[`SocialAuthProviders should match social auth provider with iconClass sn
6666
data-prefix="fab"
6767
focusable="false"
6868
role="img"
69-
style={Object {}}
69+
style={{}}
7070
viewBox="0 0 488 512"
7171
xmlns="http://www.w3.org/2000/svg"
7272
>
7373
<path
7474
d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"
7575
fill="currentColor"
76-
style={Object {}}
76+
style={{}}
7777
/>
7878
</svg>
7979
</div>
@@ -93,7 +93,7 @@ exports[`SocialAuthProviders should match social auth provider with iconClass sn
9393
`;
9494

9595
exports[`SocialAuthProviders should match social auth provider with iconImage snapshot 1`] = `
96-
Array [
96+
[
9797
<button
9898
className="btn-social btn-oa2-apple-id mr-3"
9999
data-provider-url="/auth/login/apple-id/?auth_entry=login&next=/dashboard"

src/common-components/tests/__snapshots__/ThirdPartyAuthAlert.test.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports[`ThirdPartyAuthAlert should match login page third party auth alert mess
2121
`;
2222

2323
exports[`ThirdPartyAuthAlert should match register page third party auth alert message snapshot 1`] = `
24-
Array [
24+
[
2525
<div
2626
className="fade alert-content alert-success mt-n2 mb-5 alert show"
2727
id="tpa-alert"

src/common-components/tests/__snapshots__/Zendesk.test.jsx.snap

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ exports[`Zendesk Help should match login page third party auth alert message sna
55
cookies={true}
66
defer={true}
77
webWidget={
8-
Object {
9-
"answerBot": Object {
10-
"avatar": Object {
11-
"name": Object {
8+
{
9+
"answerBot": {
10+
"avatar": {
11+
"name": {
1212
"*": "edX Support",
1313
},
1414
"url": undefined,
1515
},
1616
"contactOnlyAfterQuery": true,
1717
"suppress": false,
18-
"title": Object {
18+
"title": {
1919
"*": "edX Support",
2020
},
2121
},
22-
"chat": Object {
23-
"departments": Object {
24-
"enabled": Array [
22+
"chat": {
23+
"departments": {
24+
"enabled": [
2525
"account settings",
2626
"billing and payments",
2727
"certificates",
@@ -33,17 +33,17 @@ exports[`Zendesk Help should match login page third party auth alert message sna
3333
},
3434
"suppress": false,
3535
},
36-
"contactForm": Object {
36+
"contactForm": {
3737
"attachments": true,
38-
"selectTicketForm": Object {
38+
"selectTicketForm": {
3939
"*": "Please choose your request type:",
4040
},
41-
"ticketForms": Array [
42-
Object {
43-
"fields": Array [
44-
Object {
41+
"ticketForms": [
42+
{
43+
"fields": [
44+
{
4545
"id": "description",
46-
"prefill": Object {
46+
"prefill": {
4747
"*": "",
4848
},
4949
},
@@ -53,10 +53,10 @@ exports[`Zendesk Help should match login page third party auth alert message sna
5353
},
5454
],
5555
},
56-
"contactOptions": Object {
56+
"contactOptions": {
5757
"enabled": false,
5858
},
59-
"helpCenter": Object {
59+
"helpCenter": {
6060
"originalArticleButton": true,
6161
},
6262
}

0 commit comments

Comments
 (0)