From 18d5924d20085155426b6957ee0ba1c25cdf2ed6 Mon Sep 17 00:00:00 2001 From: Suraj Karambe Date: Thu, 22 Aug 2024 13:48:41 +0530 Subject: [PATCH 1/8] Updated package version and changelog --- login-workflow/CHANGELOG.md | 5 +++-- login-workflow/package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index 33c3347c..614d2a89 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## v4.0.4 (Unreleased) +## v4.1.0 (Unreleased) ### Added -- Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)) +- Reusable okta login screen. +- Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). ## v4.0.3 (May 9, 2024) diff --git a/login-workflow/package.json b/login-workflow/package.json index a294bae0..45cc2d29 100644 --- a/login-workflow/package.json +++ b/login-workflow/package.json @@ -1,6 +1,6 @@ { "name": "@brightlayer-ui/react-auth-workflow", - "version": "4.0.3", + "version": "4.1.0-beta.0", "author": "Brightlayer UI (https://github.com/brightlayer-ui)", "license": "BSD-3-Clause", "description": "Re-usable workflow components for Authentication and Registration within Eaton applications.", From 0312193f4b6b75f35615ff09c71b917d36c5c094 Mon Sep 17 00:00:00 2001 From: Komal Dhere Date: Thu, 22 Aug 2024 15:41:37 +0530 Subject: [PATCH 2/8] updated changelog.md --- login-workflow/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index 614d2a89..e1aa691a 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Reusable okta login screen. - Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). +- updated Readme title ([#593](https://github.com/etn-ccis/blui-react-workflows/issues/593)). ## v4.0.3 (May 9, 2024) From fa26f315d6c5110feb5d1416c0fa0c219a461768 Mon Sep 17 00:00:00 2001 From: Komal Dhere Date: Fri, 23 Aug 2024 11:14:32 +0530 Subject: [PATCH 3/8] updated changelog nd readme --- login-workflow/CHANGELOG.md | 7 ++++++- login-workflow/docs/components/change-password-dialog.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index e1aa691a..b116e87e 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -11,7 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Reusable okta login screen. - Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). -- updated Readme title ([#593](https://github.com/etn-ccis/blui-react-workflows/issues/593)). +- Reload EULA should not be tied to checkbox status ([#549](https://github.com/etn-ccis/blui-react-workflows/issues/549)). +- Eliminate `WorkflowCardFinishState` and introduce `EmptyStateProps` in the success screen. ([#552](https://github.com/etn-ccis/blui-react-workflows/issues/552)). +- Updated password validation callaback function.([#560]https://github.com/etn-ccis/blui-react-workflows/issues/560). +- SX Style overrides on full screens([#599](https://github.com/etn-ccis/blui-react-workflows/issues/599)). +- Added BLUI class names for ChangePasswordDialog ([#600](https://github.com/etn-ccis/blui-react-workflows/issues/600)). + ## v4.0.3 (May 9, 2024) diff --git a/login-workflow/docs/components/change-password-dialog.md b/login-workflow/docs/components/change-password-dialog.md index e48ac212..0217d7a7 100644 --- a/login-workflow/docs/components/change-password-dialog.md +++ b/login-workflow/docs/components/change-password-dialog.md @@ -35,6 +35,7 @@ import { AuthContextProvider, ChangePasswordDialog } from '@brightlayer-ui/react | showSuccessScreen | `boolean` | Used to determine whether to show a success screen after the form is submitted. | | | slots | `ChangePasswordDialogSlots` | Components to use in place of the defaults. See [ChangePasswordDialogSlots](#changepassworddialogslots) | | | slotProps | `ChangePasswordDialogSlotsProps` | Props to pass to the custom slot components. See [ChangePasswordDialogSlotsProps](#changepassworddialogslotsprops) | | +| errorDisplayConfig | `ErrorManagerProps` | See [Error Management](../error-management.md) | | ### ChangePasswordDialogSlots From 86cee3f0411a3614a3fa2671ca48b7322d99ddd9 Mon Sep 17 00:00:00 2001 From: Komal Dhere Date: Fri, 23 Aug 2024 17:41:22 +0530 Subject: [PATCH 4/8] updated migration guide --- login-workflow/docs/migration-guide-4-5.md | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 login-workflow/docs/migration-guide-4-5.md diff --git a/login-workflow/docs/migration-guide-4-5.md b/login-workflow/docs/migration-guide-4-5.md new file mode 100644 index 00000000..9906e310 --- /dev/null +++ b/login-workflow/docs/migration-guide-4-5.md @@ -0,0 +1,33 @@ +# Migration Guide: v4.x => v5.x + +## Change Password Dialog prop update + +We have removed `errorDialogProps` from change password dialog props and added `errorDisplayConfig` of error manager prop type. + +To trigger the ErrorManager to display an error, you need to throw an error in your AuthUIAction. + +```tsx +// throw a basic error +throw new Error('My Custom Error'); + +// customize the title via the cause property +throw new Error('My Custom Error', { + cause: { + title: 'Custom Title', + errorMessage: 'My custom error message', + }, +}); + + +``` + +Refer to the [Example](../example/) application for detailed reference. From aa23ff2296e894780dcf981c0728bdb890e9e242 Mon Sep 17 00:00:00 2001 From: KomalGDhere-eaton <107686155+KomalGDhere-eaton@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:49:41 +0530 Subject: [PATCH 5/8] Update CHANGELOG.md --- login-workflow/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index b116e87e..fcf6bd10 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## v4.1.0 (Unreleased) +## v5.0.0 (Unreleased) ### Added From 7ef7fe922ef51537225e62a1b55837df901027b1 Mon Sep 17 00:00:00 2001 From: KomalGDhere-eaton <107686155+KomalGDhere-eaton@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:52:10 +0530 Subject: [PATCH 6/8] Update package.json --- login-workflow/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-workflow/package.json b/login-workflow/package.json index 45cc2d29..728d3f7a 100644 --- a/login-workflow/package.json +++ b/login-workflow/package.json @@ -1,6 +1,6 @@ { "name": "@brightlayer-ui/react-auth-workflow", - "version": "4.1.0-beta.0", + "version": "5.0.0-beta.0", "author": "Brightlayer UI (https://github.com/brightlayer-ui)", "license": "BSD-3-Clause", "description": "Re-usable workflow components for Authentication and Registration within Eaton applications.", From 858bfb9398507a5793288276754b4dc61756fc0f Mon Sep 17 00:00:00 2001 From: Komal Dhere Date: Mon, 26 Aug 2024 18:05:33 +0530 Subject: [PATCH 7/8] updated changeLog --- login-workflow/CHANGELOG.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index fcf6bd10..a32c7743 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -9,14 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Reusable okta login screen. -- Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). -- Reload EULA should not be tied to checkbox status ([#549](https://github.com/etn-ccis/blui-react-workflows/issues/549)). -- Eliminate `WorkflowCardFinishState` and introduce `EmptyStateProps` in the success screen. ([#552](https://github.com/etn-ccis/blui-react-workflows/issues/552)). -- Updated password validation callaback function.([#560]https://github.com/etn-ccis/blui-react-workflows/issues/560). -- SX Style overrides on full screens([#599](https://github.com/etn-ccis/blui-react-workflows/issues/599)). +- Reusable okta login screen. +- Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). - Added BLUI class names for ChangePasswordDialog ([#600](https://github.com/etn-ccis/blui-react-workflows/issues/600)). +### Changed + +- Reload EULA should not be tied to checkbox status ([#549](https://github.com/etn-ccis/blui-react-workflows/issues/549)). +- Eliminate `WorkflowCardFinishState` and introduce `EmptyStateProps` in the success screen([#552](https://github.com/etn-ccis/blui-react-workflows/issues/552)). +- Updated password validation callaback function ([#560]https://github.com/etn-ccis/blui-react-workflows/issues/560). +- SX Style overrides on full screens ([#599](https://github.com/etn-ccis/blui-react-workflows/issues/599)). + ## v4.0.3 (May 9, 2024) From 65512c53aa75e6b19423c16f055cd877d9bc22c7 Mon Sep 17 00:00:00 2001 From: Joseph Boyle Date: Mon, 26 Aug 2024 10:29:21 -0400 Subject: [PATCH 8/8] Update login-workflow/CHANGELOG.md --- login-workflow/CHANGELOG.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/login-workflow/CHANGELOG.md b/login-workflow/CHANGELOG.md index a32c7743..78737cf7 100644 --- a/login-workflow/CHANGELOG.md +++ b/login-workflow/CHANGELOG.md @@ -9,16 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Reusable okta login screen. +- Okta redirect-compatible login screen. - Error Manager for ChangePasswordDialog ([#612](https://github.com/etn-ccis/blui-react-workflows/issues/612)). -- Added BLUI class names for ChangePasswordDialog ([#600](https://github.com/etn-ccis/blui-react-workflows/issues/600)). +- BLUI class names for ChangePasswordDialog ([#600](https://github.com/etn-ccis/blui-react-workflows/issues/600)). +- SX style overrides on full screens ([#599](https://github.com/etn-ccis/blui-react-workflows/issues/599)). -### Changed +### Fixed - Reload EULA should not be tied to checkbox status ([#549](https://github.com/etn-ccis/blui-react-workflows/issues/549)). +- Updated password validation callback function ([#560]https://github.com/etn-ccis/blui-react-workflows/issues/560). + +### Changed + - Eliminate `WorkflowCardFinishState` and introduce `EmptyStateProps` in the success screen([#552](https://github.com/etn-ccis/blui-react-workflows/issues/552)). -- Updated password validation callaback function ([#560]https://github.com/etn-ccis/blui-react-workflows/issues/560). -- SX Style overrides on full screens ([#599](https://github.com/etn-ccis/blui-react-workflows/issues/599)). ## v4.0.3 (May 9, 2024)