diff --git a/.changeset/dry-apes-sparkle.md b/.changeset/dry-apes-sparkle.md deleted file mode 100644 index 3260df0..0000000 --- a/.changeset/dry-apes-sparkle.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -"@open-pioneer/authentication": minor ---- - -Introduce new authentication state `AuthStateAuthenticationError` - -Error state is supposed to be used for errors that occur during the authentication process (e.g. lost connection to authentication backend) rather than for failed login attempts (e.g. invalid credentials) - -`ForceAuth` component provides two mechanisms to render a fallback component if an authentication error occurs. - -`errorFallback` option takes an abitrary react component that is rendered in case of an error. The error object can be accessed via the ErrorFallbackPros. - -```jsx - - App Content - - - function ErrorFallback(props: ErrorFallbackProps) { - return ( - <> - {props.error.message} - - ); - } -``` - -If additional inputs or state must be accessed from within the error fallback component the `renderErrorFallback` option should be used. - -```jsx -const userName = "user1"; - ( - <> - Could not login {userName} - {e.message} - - )}> - App Content - -``` - -The `renderErrorFallback` property takes precedence over the `errorFallback` property. diff --git a/.changeset/moody-panthers-count.md b/.changeset/moody-panthers-count.md deleted file mode 100644 index d1f63ea..0000000 --- a/.changeset/moody-panthers-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@open-pioneer/authentication-keycloak": patch ---- - -Use error state to communicate keycloak exceptions diff --git a/.changeset/old-mayflies-sing.md b/.changeset/old-mayflies-sing.md deleted file mode 100644 index 4dbe886..0000000 --- a/.changeset/old-mayflies-sing.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@open-pioneer/authentication": patch -"@open-pioneer/authentication-keycloak": patch -"@open-pioneer/base-theme": patch -"@open-pioneer/chakra-integration": patch -"@open-pioneer/core": patch -"@open-pioneer/http": patch -"@open-pioneer/integration": patch -"@open-pioneer/local-storage": patch -"@open-pioneer/notifier": patch -"@open-pioneer/react-utils": patch -"@open-pioneer/reactivity": patch -"@open-pioneer/runtime": patch -"@open-pioneer/runtime-react-support": patch -"@open-pioneer/test-utils": patch ---- - -Switch to a new versioning strategy. -From now on, packages released by this repository share a common version number. diff --git a/src/packages/authentication-keycloak/CHANGELOG.md b/src/packages/authentication-keycloak/CHANGELOG.md index f2b7982..77f6446 100644 --- a/src/packages/authentication-keycloak/CHANGELOG.md +++ b/src/packages/authentication-keycloak/CHANGELOG.md @@ -1,5 +1,19 @@ # @open-pioneer/authentication-keycloak +## 2.2.0 + +### Patch Changes + +- 41f0c6f: Use error state to communicate keycloak exceptions +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [41f0c6f] +- Updated dependencies [39dad46] + - @open-pioneer/authentication@2.2.0 + - @open-pioneer/core@2.2.0 + - @open-pioneer/notifier@2.2.0 + - @open-pioneer/runtime@2.2.0 + ## 0.2.0 ### Minor Changes diff --git a/src/packages/authentication-keycloak/package.json b/src/packages/authentication-keycloak/package.json index e1b3641..dc106a2 100644 --- a/src/packages/authentication-keycloak/package.json +++ b/src/packages/authentication-keycloak/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/authentication-keycloak", - "version": "0.2.0", + "version": "2.2.0", "description": "Implements authentication against Keycloak servers.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/authentication/CHANGELOG.md b/src/packages/authentication/CHANGELOG.md index 88e7e5b..d09d391 100644 --- a/src/packages/authentication/CHANGELOG.md +++ b/src/packages/authentication/CHANGELOG.md @@ -1,5 +1,56 @@ # @open-pioneer/authentication +## 2.2.0 + +### Minor Changes + +- 41f0c6f: Introduce new authentication state `AuthStateAuthenticationError` + + Error state is supposed to be used for errors that occur during the authentication process (e.g. lost connection to authentication backend) rather than for failed login attempts (e.g. invalid credentials) + + `ForceAuth` component provides two mechanisms to render a fallback component if an authentication error occurs. + + `errorFallback` option takes an abitrary react component that is rendered in case of an error. The error object can be accessed via the ErrorFallbackPros. + + ```jsx + + App Content + + + function ErrorFallback(props: ErrorFallbackProps) { + return ( + <> + {props.error.message} + + ); + } + ``` + + If additional inputs or state must be accessed from within the error fallback component the `renderErrorFallback` option should be used. + + ```jsx + const userName = "user1"; + ( + <> + Could not login {userName} + {e.message} + + )}> + App Content + + ``` + + The `renderErrorFallback` property takes precedence over the `errorFallback` property. + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/chakra-integration@2.2.0 + - @open-pioneer/core@2.2.0 + - @open-pioneer/runtime@2.2.0 + ## 0.3.6 ### Patch Changes diff --git a/src/packages/authentication/package.json b/src/packages/authentication/package.json index eb7d913..0fe7e25 100644 --- a/src/packages/authentication/package.json +++ b/src/packages/authentication/package.json @@ -2,7 +2,7 @@ "name": "@open-pioneer/authentication", "description": "Authentication API for Open Pioneer Trails applications.", "license": "Apache-2.0", - "version": "0.3.6", + "version": "2.2.0", "main": "index.ts", "repository": { "type": "git", diff --git a/src/packages/base-theme/CHANGELOG.md b/src/packages/base-theme/CHANGELOG.md index 08e9a2e..04e8bfa 100644 --- a/src/packages/base-theme/CHANGELOG.md +++ b/src/packages/base-theme/CHANGELOG.md @@ -1,5 +1,14 @@ # @open-pioneer/base-theme +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/chakra-integration@2.2.0 + ## 0.3.3 ### Patch Changes diff --git a/src/packages/base-theme/package.json b/src/packages/base-theme/package.json index 0bd44ab..4d1c0c3 100644 --- a/src/packages/base-theme/package.json +++ b/src/packages/base-theme/package.json @@ -1,7 +1,7 @@ { "name": "@open-pioneer/base-theme", "description": "This package provides the default theme for all Open Pioneer Trails applications.", - "version": "0.3.3", + "version": "2.2.0", "main": "index.ts", "license": "Apache-2.0", "repository": { diff --git a/src/packages/chakra-integration/CHANGELOG.md b/src/packages/chakra-integration/CHANGELOG.md index bb4f67f..869309c 100644 --- a/src/packages/chakra-integration/CHANGELOG.md +++ b/src/packages/chakra-integration/CHANGELOG.md @@ -1,5 +1,12 @@ # @open-pioneer/chakra-integration +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. + ## 1.1.4 ### Patch Changes diff --git a/src/packages/chakra-integration/package.json b/src/packages/chakra-integration/package.json index be96375..3763c6c 100644 --- a/src/packages/chakra-integration/package.json +++ b/src/packages/chakra-integration/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/chakra-integration", - "version": "1.1.4", + "version": "2.2.0", "description": "Integrates Chakra UI into Open Pioneer Trails application.", "main": "index.ts", "license": "Apache-2.0", diff --git a/src/packages/core/CHANGELOG.md b/src/packages/core/CHANGELOG.md index 3837b8e..8e1fc50 100644 --- a/src/packages/core/CHANGELOG.md +++ b/src/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @open-pioneer/core +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. + ## 1.3.0 ### Minor Changes diff --git a/src/packages/core/package.json b/src/packages/core/package.json index f8ff857..02b3711 100644 --- a/src/packages/core/package.json +++ b/src/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/core", - "version": "1.3.0", + "version": "2.2.0", "description": "Contains basic utility functions and classes used by the @open-pioneer project.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/http/CHANGELOG.md b/src/packages/http/CHANGELOG.md index 58d9091..a2618bb 100644 --- a/src/packages/http/CHANGELOG.md +++ b/src/packages/http/CHANGELOG.md @@ -1,5 +1,15 @@ # @open-pioneer/http +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/core@2.2.0 + - @open-pioneer/runtime@2.2.0 + ## 2.1.9 ### Patch Changes diff --git a/src/packages/http/package.json b/src/packages/http/package.json index be4b599..cd632bb 100644 --- a/src/packages/http/package.json +++ b/src/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/http", - "version": "2.1.9", + "version": "2.2.0", "description": "Provides the HttpService, which can be used to request resources over HTTP.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/integration/CHANGELOG.md b/src/packages/integration/CHANGELOG.md index d83e8e4..bc123a7 100644 --- a/src/packages/integration/CHANGELOG.md +++ b/src/packages/integration/CHANGELOG.md @@ -1,5 +1,14 @@ # @open-pioneer/integration +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/runtime@2.2.0 + ## 2.0.10 ### Patch Changes diff --git a/src/packages/integration/package.json b/src/packages/integration/package.json index 6f6ddd8..7a73532 100644 --- a/src/packages/integration/package.json +++ b/src/packages/integration/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/integration", - "version": "2.0.10", + "version": "2.2.0", "description": "Provides techniques for the communication between an application (web component) and its embedding site.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/local-storage/CHANGELOG.md b/src/packages/local-storage/CHANGELOG.md index 72e81cc..4541120 100644 --- a/src/packages/local-storage/CHANGELOG.md +++ b/src/packages/local-storage/CHANGELOG.md @@ -1,5 +1,15 @@ # @open-pioneer/local-storage +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/core@2.2.0 + - @open-pioneer/runtime@2.2.0 + ## 0.3.6 ### Patch Changes diff --git a/src/packages/local-storage/package.json b/src/packages/local-storage/package.json index cccd800..d54dc31 100644 --- a/src/packages/local-storage/package.json +++ b/src/packages/local-storage/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/local-storage", - "version": "0.3.6", + "version": "2.2.0", "description": "Provides access to the browser's local storage.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/notifier/CHANGELOG.md b/src/packages/notifier/CHANGELOG.md index ba50ae2..bcf66fe 100644 --- a/src/packages/notifier/CHANGELOG.md +++ b/src/packages/notifier/CHANGELOG.md @@ -1,5 +1,17 @@ # @open-pioneer/notifier +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/chakra-integration@2.2.0 + - @open-pioneer/core@2.2.0 + - @open-pioneer/react-utils@2.2.0 + - @open-pioneer/runtime@2.2.0 + ## 0.3.6 ### Patch Changes diff --git a/src/packages/notifier/package.json b/src/packages/notifier/package.json index 27e2191..7b24da2 100644 --- a/src/packages/notifier/package.json +++ b/src/packages/notifier/package.json @@ -1,7 +1,7 @@ { "name": "@open-pioneer/notifier", "description": "Provides support for application-wide notifications.", - "version": "0.3.6", + "version": "2.2.0", "license": "Apache-2.0", "main": "index.ts", "repository": { diff --git a/src/packages/react-utils/CHANGELOG.md b/src/packages/react-utils/CHANGELOG.md index c935b27..b022cef 100644 --- a/src/packages/react-utils/CHANGELOG.md +++ b/src/packages/react-utils/CHANGELOG.md @@ -1,5 +1,15 @@ # @open-pioneer/react-utils +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/chakra-integration@2.2.0 + - @open-pioneer/core@2.2.0 + ## 1.0.1 ### Patch Changes diff --git a/src/packages/react-utils/package.json b/src/packages/react-utils/package.json index 6b7c5b7..69b84fa 100644 --- a/src/packages/react-utils/package.json +++ b/src/packages/react-utils/package.json @@ -1,7 +1,7 @@ { "name": "@open-pioneer/react-utils", "description": "Contains common react utilities used by the open pioneer trails project", - "version": "1.0.1", + "version": "2.2.0", "license": "Apache-2.0", "main": "index.ts", "repository": { diff --git a/src/packages/reactivity/CHANGELOG.md b/src/packages/reactivity/CHANGELOG.md index 4de0dd3..6fe389b 100644 --- a/src/packages/reactivity/CHANGELOG.md +++ b/src/packages/reactivity/CHANGELOG.md @@ -1,5 +1,12 @@ # @open-pioneer/reactivity +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. + ## 0.1.0 ### Minor Changes diff --git a/src/packages/reactivity/package.json b/src/packages/reactivity/package.json index b0cee3c..0b74fc3 100644 --- a/src/packages/reactivity/package.json +++ b/src/packages/reactivity/package.json @@ -1,7 +1,7 @@ { "name": "@open-pioneer/reactivity", "description": "Provides integration for the reactivity API.", - "version": "0.1.0", + "version": "2.2.0", "license": "Apache-2.0", "main": "index.ts", "repository": { diff --git a/src/packages/runtime-react-support/CHANGELOG.md b/src/packages/runtime-react-support/CHANGELOG.md index b4eea39..a56abfb 100644 --- a/src/packages/runtime-react-support/CHANGELOG.md +++ b/src/packages/runtime-react-support/CHANGELOG.md @@ -1,5 +1,12 @@ # @open-pioneer/runtime-react-support +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. + ## 1.0.2 ### Patch Changes diff --git a/src/packages/runtime-react-support/package.json b/src/packages/runtime-react-support/package.json index db55621..a131d09 100644 --- a/src/packages/runtime-react-support/package.json +++ b/src/packages/runtime-react-support/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/runtime-react-support", - "version": "1.0.2", + "version": "2.2.0", "description": "An internal module providing support for react integration.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/runtime/CHANGELOG.md b/src/packages/runtime/CHANGELOG.md index c71d419..b90d68e 100644 --- a/src/packages/runtime/CHANGELOG.md +++ b/src/packages/runtime/CHANGELOG.md @@ -1,5 +1,17 @@ # @open-pioneer/runtime +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/base-theme@2.2.0 + - @open-pioneer/chakra-integration@2.2.0 + - @open-pioneer/core@2.2.0 + - @open-pioneer/runtime-react-support@2.2.0 + ## 2.1.7 ### Patch Changes diff --git a/src/packages/runtime/package.json b/src/packages/runtime/package.json index d864838..9157809 100644 --- a/src/packages/runtime/package.json +++ b/src/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/runtime", - "version": "2.1.7", + "version": "2.2.0", "description": "Implements the runtime environment for Open Pioneer Trails apps.", "license": "Apache-2.0", "main": "index.ts", diff --git a/src/packages/test-utils/CHANGELOG.md b/src/packages/test-utils/CHANGELOG.md index 84c26c7..b3c5741 100644 --- a/src/packages/test-utils/CHANGELOG.md +++ b/src/packages/test-utils/CHANGELOG.md @@ -1,5 +1,15 @@ # @open-pioneer/test-utils +## 2.2.0 + +### Patch Changes + +- 39dad46: Switch to a new versioning strategy. + From now on, packages released by this repository share a common version number. +- Updated dependencies [39dad46] + - @open-pioneer/chakra-integration@2.2.0 + - @open-pioneer/runtime-react-support@2.2.0 + ## 1.1.4 ### Patch Changes diff --git a/src/packages/test-utils/package.json b/src/packages/test-utils/package.json index fc47ee7..5aa6a50 100644 --- a/src/packages/test-utils/package.json +++ b/src/packages/test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@open-pioneer/test-utils", - "version": "1.1.4", + "version": "2.2.0", "description": "Contains test utilities that make it easier to test parts of an Open Pioneer Trails application.", "license": "Apache-2.0", "repository": {