Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIREQ-1020: Prefer @folio/stripes exports to private paths when importing components #1096

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* UI tests replacement with RTL/Jest for urls. Refs UIREQ-896.
* Reassign limit variable from hardcoded value to MAX_RECORDS constant for `ItemsDialog.js`. Refs UIREQ-913.
* Reassign limit variable from hardcoded value to MAX_RECORDS constant for `RequestsRoute.js`. Refs UIREQ-914.
* Include pickup service point in display of result list. Refs-900.
* Include pickup service point in display of result list. Refs UIREQ-900.
* Include "Effective call number string" in display of result list. Refs UIREQ-898.
* Include call number in Action menu list of fields to display. Refs UIREQ-899.
* Include pickup service point in Action menu list of fields to display. Refs UIREQ-901.
Expand All @@ -22,7 +22,7 @@
* Create Jest/RTL test for ReferredRecord.js. Refs UIREQ-936.
* Create Jest/RTL test for NoteCreateRoute.js. Refs: UIREQ-943.
* Leverage cookie-based authentication in all API requests. Refs UIREQ-861.
* Create Jest/RTL test for NoteEditRoute.js. Refs: UIREQ-944.
* Create Jest/RTL test for NoteEditRoute.js. Refs UIREQ-944.
* Update `circulation` okapi interface to `14.0` version. Refs UIREQ-954.
* Added requestDate token. Refs UIREQ-962.
* Update `request-storage` okapi interface to `6.0` version. Refs UIREQ-963.
Expand Down Expand Up @@ -64,6 +64,7 @@
* Add new pickup service point error. Refs UIREQ-981.
* Move request popup show available Request Types. Refs UIREQ-1005.
* Cover RequesterInformation by jest/RTL tests. Refs UIREQ-952.
* Prefer `@folio/stripes` exports to private paths when importing components. Refs UIREQ-1020.

## [8.0.2](https://github.com/folio-org/ui-requests/tree/v8.0.2) (2023-03-29)
[Full Changelog](https://github.com/folio-org/ui-requests/compare/v8.0.1...v8.0.2)
Expand Down
2 changes: 1 addition & 1 deletion src/components/InstanceInformation/InstanceInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Icon,
Row,
TextField,
} from '@folio/stripes-components';
} from '@folio/stripes/components';
import { Pluggable } from '@folio/stripes/core';

import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Field } from 'react-final-form';
import {
Icon,
TextField,
} from '@folio/stripes-components';
} from '@folio/stripes/components';
import { Pluggable } from '@folio/stripes/core';

import InstanceInformation, {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemInformation/ItemInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Icon,
Row,
TextField,
} from '@folio/stripes-components';
} from '@folio/stripes/components';

import {
REQUEST_FORM_FIELD_NAMES,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemInformation/ItemInformation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Field } from 'react-final-form';
import {
Icon,
TextField,
} from '@folio/stripes-components';
} from '@folio/stripes/components';

import ItemInformation from './ItemInformation';
import ItemDetail from '../../ItemDetail';
Expand Down
2 changes: 1 addition & 1 deletion src/components/RequestInformation/RequestInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Select,
TextArea,
Timepicker,
} from '@folio/stripes-components';
} from '@folio/stripes/components';

import {
requestStatuses,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Icon,
Row,
TextField,
} from '@folio/stripes-components';
} from '@folio/stripes/components';
import {
Pluggable,
stripesShape,
Expand Down
4 changes: 2 additions & 2 deletions test/jest/__mock__/stripesComponents.mock.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

jest.mock('@folio/stripes-components', () => ({
...jest.requireActual('@folio/stripes-components'),
jest.mock('@folio/stripes/components', () => ({
...jest.requireActual('@folio/stripes/components'),
Accordion: jest.fn(({
children,
label,
Expand Down
6 changes: 0 additions & 6 deletions test/jest/helpers/translationsProperties.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import stripesComponentsTranslations from '@folio/stripes-components/translations/stripes-components/en';

import translations from '../../../translations/ui-requests/en';

const translationsProperties = [
{
prefix: 'ui-requests',
translations,
},
{
prefix: 'stripes-components',
translations: stripesComponentsTranslations,
}
];

export default translationsProperties;