From d78116bdb312b065e417948a59dc0ba1891add3b Mon Sep 17 00:00:00 2001 From: danetsaoo Date: Tue, 19 Mar 2024 15:58:56 -0500 Subject: [PATCH 1/3] Release v11.0.0 --- CHANGELOG.md | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c81c2..534b2c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,15 @@ # Change history for ui-calendar -## [10.0.1] IN PROGRESS +## [11.0.0] (https://github.com/folio-org/ui-calendar/tree/v11.0.0) (2024-03-19) -* Use non-empty close times for closed calendars. Refs UICAL-278 -* Fix rendering monthly calendar view issue. Refs UICAL-277 * Add page titles. Refs UICAL-272 * Remove self-contained typings. Refs UICAL-269 +## [10.0.1] (https://github.com/folio-org/ui-calendar/tree/v10.0.1) (2023-10-23) + +* Use non-empty close times for closed calendars. Refs UICAL-278 +* Fix rendering monthly calendar view issue. Refs UICAL-277 + ## [10.0.0] (https://github.com/folio-org/ui-calendar/tree/v10.0.0) (2023-10-11) * *BREAKING* bump `react-intl` to `v6.4.4`. Refs UICAL-275 diff --git a/package.json b/package.json index 581d32c..04d4117 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/calendar", - "version": "10.0.1", + "version": "11.0.0", "description": "Calendar settings", "repository": "folio-org/ui-calendar", "publishConfig": { From ed4f34fe2d5db78be0c793900416d2f19ed5da50 Mon Sep 17 00:00:00 2001 From: Dane Tsao Date: Wed, 20 Mar 2024 17:51:10 -0500 Subject: [PATCH 2/3] [UICAL-281] Fix failing tests (#518) (#519) Co-authored-by: Noah Overcash --- src/components/fields/ExceptionFieldUtils.tsx | 2 +- src/test/__mocks__/index.ts | 1 + src/test/__mocks__/stripes-core.mock.ts | 5 +++-- src/test/__mocks__/stripes-smart-components.mock.ts | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/test/__mocks__/stripes-smart-components.mock.ts diff --git a/src/components/fields/ExceptionFieldUtils.tsx b/src/components/fields/ExceptionFieldUtils.tsx index d2e3171..c628551 100644 --- a/src/components/fields/ExceptionFieldUtils.tsx +++ b/src/components/fields/ExceptionFieldUtils.tsx @@ -146,7 +146,7 @@ export function getDateField( usePortal value={innerRow[key]} inputRef={(el) => { - fieldRefs[key][row.i][innerRow.i] = el; + fieldRefs[key][row.i][innerRow.i] = el as HTMLInputElement; }} error={getInnerRowError(isDirty, error, row.i, innerRow.i, 'startDate')} onBlur={() => input.onBlur()} diff --git a/src/test/__mocks__/index.ts b/src/test/__mocks__/index.ts index 3d36fb1..89d54b5 100644 --- a/src/test/__mocks__/index.ts +++ b/src/test/__mocks__/index.ts @@ -1,3 +1,4 @@ import './stripes-components.mock'; import './stripes-config.mock'; import './stripes-core.mock'; +import './stripes-smart-components.mock'; diff --git a/src/test/__mocks__/stripes-core.mock.ts b/src/test/__mocks__/stripes-core.mock.ts index a7276ab..c1d9135 100644 --- a/src/test/__mocks__/stripes-core.mock.ts +++ b/src/test/__mocks__/stripes-core.mock.ts @@ -4,7 +4,7 @@ jest.mock('@folio/stripes/core', () => { }; return { - ...jest.requireActual('@folio/stripes/core'), + CalloutContext: jest.fn(() => ({ sendCallout: jest.fn() })), IfInterface: jest.fn(({ name, children }) => { return name === 'interface' || name === 'service-points-users' ? children : null; }), @@ -20,7 +20,8 @@ jest.mock('@folio/stripes/core', () => { } }), Pluggable: jest.fn(({ children }) => [children]), + TitleManager: jest.fn(({ children }) => children), useOkapiKy: jest.fn(), - useStripes: () => STRIPES, + useStripes: jest.fn(() => STRIPES), }; }); diff --git a/src/test/__mocks__/stripes-smart-components.mock.ts b/src/test/__mocks__/stripes-smart-components.mock.ts new file mode 100644 index 0000000..aa6fb24 --- /dev/null +++ b/src/test/__mocks__/stripes-smart-components.mock.ts @@ -0,0 +1,3 @@ +jest.mock('@folio/stripes/smart-components', () => ({ + Settings: jest.fn(() => 'Settings'), +})); From 4ecf043099d51bab73cd9294adbf239a69e97889 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Tue, 1 Oct 2024 11:48:04 -0400 Subject: [PATCH 3/3] Release v11.0.2 --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b1ab0f..7ac656a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change history for ui-calendar -## In progress +## [11.0.2] (https://github.com/folio-org/ui-calendar/tree/v11.0.2) (2024-10-01) * Disable 'Actions' menu on DCB Calendar. Refs UICAL-285. * Use new GitHub Actions workflows. Refs UICAL-287. diff --git a/package.json b/package.json index 166829c..661fcbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/calendar", - "version": "11.0.1", + "version": "11.0.2", "description": "Calendar settings", "repository": "folio-org/ui-calendar", "publishConfig": {