chore(deps): update paragon and frontend-build to openedx scope
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('eslint', {
|
const config = createConfig('eslint', {
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
module.exports = createConfig('babel');
|
module.exports = createConfig('babel');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
module.exports = createConfig('jest', {
|
module.exports = createConfig('jest', {
|
||||||
setupFilesAfterEnv: [
|
setupFilesAfterEnv: [
|
||||||
|
|||||||
8963
package-lock.json
generated
8963
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -29,12 +29,12 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
|
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
|
||||||
"@edx/frontend-component-footer": "12.2.0",
|
"@edx/frontend-component-footer": "^13.0.2",
|
||||||
"@edx/frontend-component-header": "4.6.0",
|
"@edx/frontend-component-header": "^5.0.2",
|
||||||
"@edx/frontend-platform": "5.5.4",
|
"@edx/frontend-platform": "^7.1.0",
|
||||||
"@edx/openedx-atlas": "^0.6.0",
|
"@edx/openedx-atlas": "^0.6.0",
|
||||||
"@edx/paragon": "20.45.0",
|
"@edx/react-unit-test-utils": "^2.0.0",
|
||||||
"@edx/react-unit-test-utils": "1.7.1",
|
"@openedx/paragon": "^22.1.1",
|
||||||
"@edx/reactifex": "^2.1.1",
|
"@edx/reactifex": "^2.1.1",
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.25",
|
"@fortawesome/fontawesome-svg-core": "^1.2.25",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.11.2",
|
"@fortawesome/free-brands-svg-icons": "^5.11.2",
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@edx/browserslist-config": "^1.1.1",
|
"@edx/browserslist-config": "^1.1.1",
|
||||||
"@edx/frontend-build": "13.0.1",
|
"@openedx/frontend-build": "^13.0.28",
|
||||||
"@testing-library/react": "12.1.5",
|
"@testing-library/react": "12.1.5",
|
||||||
"axios": "0.21.2",
|
"axios": "0.21.2",
|
||||||
"axios-mock-adapter": "^1.17.0",
|
"axios-mock-adapter": "^1.17.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// frontend-app-*/src/index.scss
|
// frontend-app-*/src/index.scss
|
||||||
@import "~@edx/brand/paragon/fonts";
|
@import "~@edx/brand/paragon/fonts";
|
||||||
@import "~@edx/brand/paragon/variables";
|
@import "~@edx/brand/paragon/variables";
|
||||||
@import "~@edx/paragon/scss/core/core";
|
@import "~@openedx/paragon/scss/core/core";
|
||||||
@import "~@edx/brand/paragon/overrides";
|
@import "~@edx/brand/paragon/overrides";
|
||||||
|
|
||||||
$fa-font-path: "~font-awesome/fonts";
|
$fa-font-path: "~font-awesome/fonts";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Alert } from '@edx/paragon';
|
import { Alert } from '@openedx/paragon';
|
||||||
|
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { Alert } from '@edx/paragon';
|
import { Alert } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
@@ -12,7 +12,7 @@ jest.mock('@edx/frontend-platform/i18n', () => ({
|
|||||||
defineMessages: m => m,
|
defineMessages: m => m,
|
||||||
FormattedMessage: () => 'FormattedMessage',
|
FormattedMessage: () => 'FormattedMessage',
|
||||||
}));
|
}));
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Alert: () => 'Alert',
|
Alert: () => 'Alert',
|
||||||
}));
|
}));
|
||||||
jest.mock('data/selectors', () => ({
|
jest.mock('data/selectors', () => ({
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import { bulkManagementColumns } from 'data/constants/app';
|
import { bulkManagementColumns } from 'data/constants/app';
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable import/no-named-as-default */
|
/* eslint-disable import/no-named-as-default */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
import { bulkManagementColumns } from 'data/constants/app';
|
import { bulkManagementColumns } from 'data/constants/app';
|
||||||
@@ -9,7 +9,7 @@ import { bulkManagementColumns } from 'data/constants/app';
|
|||||||
import ResultsSummary from './ResultsSummary';
|
import ResultsSummary from './ResultsSummary';
|
||||||
import { HistoryTable, mapStateToProps } from './HistoryTable';
|
import { HistoryTable, mapStateToProps } from './HistoryTable';
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({ DataTable: () => 'DataTable' }));
|
jest.mock('@openedx/paragon', () => ({ DataTable: () => 'DataTable' }));
|
||||||
|
|
||||||
jest.mock('@edx/frontend-platform/i18n', () => ({
|
jest.mock('@edx/frontend-platform/i18n', () => ({
|
||||||
defineMessages: m => m,
|
defineMessages: m => m,
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Hyperlink, Icon } from '@edx/paragon';
|
import { Hyperlink, Icon } from '@openedx/paragon';
|
||||||
import { Download } from '@edx/paragon/icons';
|
import { Download } from '@openedx/paragon/icons';
|
||||||
|
|
||||||
import lms from 'data/services/lms';
|
import lms from 'data/services/lms';
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Download } from '@edx/paragon/icons';
|
import { Download } from '@openedx/paragon/icons';
|
||||||
|
|
||||||
import lms from 'data/services/lms';
|
import lms from 'data/services/lms';
|
||||||
import ResultsSummary from './ResultsSummary';
|
import ResultsSummary from './ResultsSummary';
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Hyperlink: () => 'Hyperlink',
|
Hyperlink: () => 'Hyperlink',
|
||||||
Icon: () => 'Icon',
|
Icon: () => 'Icon',
|
||||||
}));
|
}));
|
||||||
jest.mock('@edx/paragon/icons', () => ({
|
jest.mock('@openedx/paragon/icons', () => ({
|
||||||
Download: 'DownloadIcon',
|
Download: 'DownloadIcon',
|
||||||
}));
|
}));
|
||||||
jest.mock('data/services/lms', () => ({
|
jest.mock('data/services/lms', () => ({
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Hyperlink } from '@edx/paragon';
|
import { Hyperlink } from '@openedx/paragon';
|
||||||
import { getConfig } from '@edx/frontend-platform';
|
import { getConfig } from '@edx/frontend-platform';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { getConfig } from '@edx/frontend-platform';
|
|||||||
|
|
||||||
import Header from '.';
|
import Header from '.';
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Hyperlink: () => 'Hyperlink',
|
Hyperlink: () => 'Hyperlink',
|
||||||
}));
|
}));
|
||||||
jest.mock('@edx/frontend-platform', () => ({
|
jest.mock('@edx/frontend-platform', () => ({
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import useAssignmentGradeFilterData from './hooks';
|
import useAssignmentGradeFilterData from './hooks';
|
||||||
import messages from '../messages';
|
import messages from '../messages';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import PercentGroup from '../PercentGroup';
|
import PercentGroup from '../PercentGroup';
|
||||||
import useAssignmentGradeFilterData from './hooks';
|
import useAssignmentGradeFilterData from './hooks';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import messages from '../messages';
|
import messages from '../messages';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import PercentGroup from '../PercentGroup';
|
import PercentGroup from '../PercentGroup';
|
||||||
import useCourseGradeFilterData from './hooks';
|
import useCourseGradeFilterData from './hooks';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
const PercentGroup = ({
|
const PercentGroup = ({
|
||||||
id,
|
id,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
const SelectGroup = ({
|
const SelectGroup = ({
|
||||||
id,
|
id,
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
Icon,
|
Icon,
|
||||||
IconButton,
|
IconButton,
|
||||||
Form,
|
Form,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { Close } from '@edx/paragon/icons';
|
import { Close } from '@openedx/paragon/icons';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Collapsible } from '@edx/paragon';
|
import { Collapsible } from '@openedx/paragon';
|
||||||
|
|
||||||
import { formatMessage } from 'testUtils';
|
import { formatMessage } from 'testUtils';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import { instructorDashboardUrl } from 'data/services/lms/urls';
|
import { instructorDashboardUrl } from 'data/services/lms/urls';
|
||||||
import useGradebookHeaderData from './hooks';
|
import useGradebookHeaderData from './hooks';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import { formatMessage } from 'testUtils';
|
import { formatMessage } from 'testUtils';
|
||||||
import { instructorDashboardUrl } from 'data/services/lms/urls';
|
import { instructorDashboardUrl } from 'data/services/lms/urls';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import useAdjustedGradeInputData from './hooks';
|
import useAdjustedGradeInputData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import useAdjustedGradeInputData from './hooks';
|
import useAdjustedGradeInputData from './hooks';
|
||||||
import AdjustedGradeInput from '.';
|
import AdjustedGradeInput from '.';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import useReasonInputData from './hooks';
|
import useReasonInputData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import useReasonInputData from './hooks';
|
import useReasonInputData from './hooks';
|
||||||
import ReasonInput from '.';
|
import ReasonInput from '.';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import useReasonInputData from './hooks';
|
|||||||
import ReasonInput, { controlTestId } from '.';
|
import ReasonInput, { controlTestId } from '.';
|
||||||
|
|
||||||
jest.unmock('react');
|
jest.unmock('react');
|
||||||
jest.unmock('@edx/paragon');
|
jest.unmock('@openedx/paragon');
|
||||||
jest.mock('./hooks', () => ({ __esModule: true, default: jest.fn() }));
|
jest.mock('./hooks', () => ({ __esModule: true, default: jest.fn() }));
|
||||||
|
|
||||||
const focus = jest.fn();
|
const focus = jest.fn();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable react/sort-comp, react/button-has-type, import/no-named-as-default */
|
/* eslint-disable react/sort-comp, react/button-has-type, import/no-named-as-default */
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import { formatDateForDisplay } from 'utils';
|
import { formatDateForDisplay } from 'utils';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import { formatDateForDisplay } from 'utils';
|
import { formatDateForDisplay } from 'utils';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
Alert,
|
Alert,
|
||||||
ModalDialog,
|
ModalDialog,
|
||||||
ActionRow,
|
ActionRow,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import OverrideTable from './OverrideTable';
|
import OverrideTable from './OverrideTable';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { shallow } from '@edx/react-unit-test-utils';
|
|||||||
import {
|
import {
|
||||||
ActionRow,
|
ActionRow,
|
||||||
ModalDialog,
|
ModalDialog,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { formatMessage } from 'testUtils';
|
import { formatMessage } from 'testUtils';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { selectors } from 'data/redux/hooks';
|
import { selectors } from 'data/redux/hooks';
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import { shallow } from '@edx/react-unit-test-utils';
|
|||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { formatMessage } from 'testUtils';
|
import { formatMessage } from 'testUtils';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
import { selectors } from 'data/redux/hooks';
|
import { selectors } from 'data/redux/hooks';
|
||||||
import FilterBadge from './FilterBadge';
|
import FilterBadge from './FilterBadge';
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Button: () => 'Button',
|
Button: () => 'Button',
|
||||||
}));
|
}));
|
||||||
jest.mock('data/redux/hooks', () => ({
|
jest.mock('data/redux/hooks', () => ({
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Button, Icon } from '@edx/paragon';
|
import { Button, Icon } from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { FilterAlt } from '@edx/paragon/icons';
|
import { FilterAlt } from '@openedx/paragon/icons';
|
||||||
|
|
||||||
import { thunkActions } from 'data/redux/hooks';
|
import { thunkActions } from 'data/redux/hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import { selectors, thunkActions } from 'data/redux/hooks';
|
import { selectors, thunkActions } from 'data/redux/hooks';
|
||||||
import transforms from 'data/redux/transforms';
|
import transforms from 'data/redux/transforms';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
Icon,
|
Icon,
|
||||||
OverlayTrigger,
|
OverlayTrigger,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
|
|
||||||
import { StrictDict } from 'utils';
|
import { StrictDict } from 'utils';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
import { getLocale } from '@edx/frontend-platform/i18n';
|
import { getLocale } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { OverlayTrigger } from '@edx/paragon';
|
import { OverlayTrigger } from '@openedx/paragon';
|
||||||
|
|
||||||
import LabelReplacements from './LabelReplacements';
|
import LabelReplacements from './LabelReplacements';
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ const {
|
|||||||
MastersOnlyLabelReplacement,
|
MastersOnlyLabelReplacement,
|
||||||
} = LabelReplacements;
|
} = LabelReplacements;
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Icon: () => 'Icon',
|
Icon: () => 'Icon',
|
||||||
OverlayTrigger: () => 'OverlayTrigger',
|
OverlayTrigger: () => 'OverlayTrigger',
|
||||||
Tooltip: () => 'Tooltip',
|
Tooltip: () => 'Tooltip',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import useGradebookTableData from './hooks';
|
import useGradebookTableData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { DataTable } from '@edx/paragon';
|
import { DataTable } from '@openedx/paragon';
|
||||||
|
|
||||||
import useGradebookTableData from './hooks';
|
import useGradebookTableData from './hooks';
|
||||||
import GradebookTable from '.';
|
import GradebookTable from '.';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import React from 'react';
|
|||||||
|
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import NetworkButton from 'components/NetworkButton';
|
import NetworkButton from 'components/NetworkButton';
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import NetworkButton from 'components/NetworkButton';
|
import NetworkButton from 'components/NetworkButton';
|
||||||
import useImportGradesButtonData from './hooks';
|
import useImportGradesButtonData from './hooks';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import useImportGradesButtonData from './hooks';
|
|||||||
import ImportGradesButton from '.';
|
import ImportGradesButton from '.';
|
||||||
|
|
||||||
jest.unmock('react');
|
jest.unmock('react');
|
||||||
jest.unmock('@edx/paragon');
|
jest.unmock('@openedx/paragon');
|
||||||
jest.mock('components/NetworkButton', () => 'network-button');
|
jest.mock('components/NetworkButton', () => 'network-button');
|
||||||
jest.mock('./hooks', () => ({ __esModule: true, default: jest.fn() }));
|
jest.mock('./hooks', () => ({ __esModule: true, default: jest.fn() }));
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Toast } from '@edx/paragon';
|
import { Toast } from '@openedx/paragon';
|
||||||
|
|
||||||
import useImportSuccessToastData from './hooks';
|
import useImportSuccessToastData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import usePageButtonsData from './hooks';
|
import usePageButtonsData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import usePageButtonsData from './hooks';
|
import usePageButtonsData from './hooks';
|
||||||
import PageButtons from '.';
|
import PageButtons from '.';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
import { useIntl } from '@edx/frontend-platform/i18n';
|
import { useIntl } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { actions, selectors } from 'data/redux/hooks';
|
import { actions, selectors } from 'data/redux/hooks';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { SearchField } from '@edx/paragon';
|
import { SearchField } from '@openedx/paragon';
|
||||||
import useSearchControlsData from './hooks';
|
import useSearchControlsData from './hooks';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { SearchField } from '@edx/paragon';
|
import { SearchField } from '@openedx/paragon';
|
||||||
|
|
||||||
import useSearchControlsData from './hooks';
|
import useSearchControlsData from './hooks';
|
||||||
import SearchControls from '.';
|
import SearchControls from '.';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Icon } from '@edx/paragon';
|
import { Icon } from '@openedx/paragon';
|
||||||
|
|
||||||
import { selectors } from 'data/redux/hooks';
|
import { selectors } from 'data/redux/hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Alert } from '@edx/paragon';
|
import { Alert } from '@openedx/paragon';
|
||||||
|
|
||||||
import useStatusAlertsData from './hooks';
|
import useStatusAlertsData from './hooks';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Alert } from '@edx/paragon';
|
import { Alert } from '@openedx/paragon';
|
||||||
|
|
||||||
import useStatusAlertsData from './hooks';
|
import useStatusAlertsData from './hooks';
|
||||||
import StatusAlerts from '.';
|
import StatusAlerts from '.';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { StatefulButton, Icon } from '@edx/paragon';
|
import { StatefulButton, Icon } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Icon, StatefulButton } from '@edx/paragon';
|
import { Icon, StatefulButton } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import selectors from 'data/selectors';
|
import selectors from 'data/selectors';
|
||||||
@@ -10,7 +10,7 @@ import { NetworkButton, mapStateToProps, buttonStates } from '.';
|
|||||||
jest.mock('@edx/frontend-platform/i18n', () => ({
|
jest.mock('@edx/frontend-platform/i18n', () => ({
|
||||||
FormattedMessage: () => 'FormattedMessage',
|
FormattedMessage: () => 'FormattedMessage',
|
||||||
}));
|
}));
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Icon: () => 'Icon',
|
Icon: () => 'Icon',
|
||||||
StatefulButton: () => 'StatefulButton',
|
StatefulButton: () => 'StatefulButton',
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jest.mock('query-string', () => ({
|
|||||||
stringify: (val) => `stringify: ${JSON.stringify(val, Object.keys(val).sort())}`,
|
stringify: (val) => `stringify: ${JSON.stringify(val, Object.keys(val).sort())}`,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Tab: () => 'Tab',
|
Tab: () => 'Tab',
|
||||||
Tabs: () => 'Tabs',
|
Tabs: () => 'Tabs',
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { messages as footerMessages } from '@edx/frontend-component-footer';
|
import { messages as footerMessages } from '@edx/frontend-component-footer';
|
||||||
import { messages as headerMessages } from '@edx/frontend-component-header';
|
import { messages as headerMessages } from '@edx/frontend-component-header';
|
||||||
import { messages as paragonMessages } from '@edx/paragon';
|
import { messages as paragonMessages } from '@openedx/paragon';
|
||||||
|
|
||||||
import arMessages from './messages/ar.json';
|
import arMessages from './messages/ar.json';
|
||||||
import deMessages from './messages/de.json';
|
import deMessages from './messages/de.json';
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ jest.mock('@edx/frontend-component-footer', () => ({
|
|||||||
messages: ['some', 'messages'],
|
messages: ['some', 'messages'],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@edx/paragon/icons', () => ({
|
jest.mock('@openedx/paragon/icons', () => ({
|
||||||
FilterAlt: 'FilterAlt',
|
FilterAlt: 'FilterAlt',
|
||||||
Close: 'Close',
|
Close: 'Close',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => jest.requireActual('testUtils').mockNestedComponents({
|
jest.mock('@openedx/paragon', () => jest.requireActual('testUtils').mockNestedComponents({
|
||||||
Alert: 'Alert',
|
Alert: 'Alert',
|
||||||
ActionRow: 'ActionRow',
|
ActionRow: 'ActionRow',
|
||||||
Badge: 'Badge',
|
Badge: 'Badge',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('webpack-dev');
|
const config = createConfig('webpack-dev');
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('webpack-prod');
|
const config = createConfig('webpack-prod');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user