From 8ca0450363a194016fe7d1e5c4fc8359e2f4dba2 Mon Sep 17 00:00:00 2001 From: thaddmt <68032955+thaddmt@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:53:34 -0700 Subject: [PATCH 1/2] chore(liveness): export error types (#4450) * chore(liveness): export error types * Create thin-experts-destroy.md * fix unti tests * update error types * chore: switch to union type only * Update packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts Co-authored-by: Caleb Pollman --------- Co-authored-by: Ioana Brooks <68251134+ioanabrooks@users.noreply.github.com> Co-authored-by: Caleb Pollman --- .changeset/thin-experts-destroy.md | 5 ++++ packages/react-liveness/jest.config.js | 2 +- .../components/FaceLivenessDetector/index.ts | 1 + .../service/machine/index.ts | 3 ++- .../service/types/error.ts | 24 ++++++++++--------- .../service/types/liveness.ts | 4 ++-- .../service/types/machine.ts | 4 ++-- .../service/utils/liveness.ts | 12 ++++------ .../shared/FaceLivenessErrorModal.tsx | 6 ++--- .../__tests__/FaceLivenessErrorModal.test.tsx | 4 ++-- .../shared/__tests__/Hint.test.tsx | 3 ++- .../__tests__/LandscapeErrorModal.test.tsx | 4 ++-- packages/react-liveness/src/index.ts | 1 + 13 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 .changeset/thin-experts-destroy.md diff --git a/.changeset/thin-experts-destroy.md b/.changeset/thin-experts-destroy.md new file mode 100644 index 00000000000..83196bafaf3 --- /dev/null +++ b/.changeset/thin-experts-destroy.md @@ -0,0 +1,5 @@ +--- +"@aws-amplify/ui-react-liveness": patch +--- + +chore(liveness): export error types diff --git a/packages/react-liveness/jest.config.js b/packages/react-liveness/jest.config.js index 8650d5500eb..956feb60541 100644 --- a/packages/react-liveness/jest.config.js +++ b/packages/react-liveness/jest.config.js @@ -10,7 +10,7 @@ module.exports = { coverageThreshold: { global: { branches: 80, - functions: 83, + functions: 82, lines: 89, statements: 89, }, diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/index.ts b/packages/react-liveness/src/components/FaceLivenessDetector/index.ts index dc80d2c5909..4960329df3c 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/index.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/index.ts @@ -10,4 +10,5 @@ export { AwsCredentialProvider, AwsTemporaryCredentials, AwsCredentials, + ErrorState, } from './service'; diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/index.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/index.ts index 4f8a42cc86f..f2b8f26fbe3 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/index.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/machine/index.ts @@ -19,6 +19,7 @@ import { IlluminationState, StreamActorCallback, LivenessError, + ErrorState, } from '../types'; import { BlazeFaceFaceDetection, @@ -717,7 +718,7 @@ export const livenessMachine = createMachine( // callbacks callUserPermissionDeniedCallback: assign({ errorState: (context, event) => { - let errorState: LivenessErrorState; + let errorState: ErrorState; if ((event.data!.message as string).includes('15 fps')) { errorState = LivenessErrorState.CAMERA_FRAMERATE_ERROR; diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/error.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/error.ts index 91abd091706..db742249c30 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/error.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/error.ts @@ -2,14 +2,16 @@ * The liveness error states */ -export enum LivenessErrorState { - TIMEOUT = 'TIMEOUT', - RUNTIME_ERROR = 'RUNTIME_ERROR', - FRESHNESS_TIMEOUT = 'FRESHNESS_TIMEOUT', - SERVER_ERROR = 'SERVER_ERROR', - CAMERA_FRAMERATE_ERROR = 'CAMERA_FRAMERATE_ERROR', - CAMERA_ACCESS_ERROR = 'CAMERA_ACCESS_ERROR', - FACE_DISTANCE_ERROR = 'FACE_DISTANCE_ERROR', - MOBILE_LANDSCAPE_ERROR = 'MOBILE_LANDSCAPE_ERROR', - MULTIPLE_FACES_ERROR = 'MULTIPLE_FACES_ERROR', -} +export const LivenessErrorState = { + TIMEOUT: 'TIMEOUT', + RUNTIME_ERROR: 'RUNTIME_ERROR', + FRESHNESS_TIMEOUT: 'FRESHNESS_TIMEOUT', + SERVER_ERROR: 'SERVER_ERROR', + CAMERA_FRAMERATE_ERROR: 'CAMERA_FRAMERATE_ERROR', + CAMERA_ACCESS_ERROR: 'CAMERA_ACCESS_ERROR', + FACE_DISTANCE_ERROR: 'FACE_DISTANCE_ERROR', + MOBILE_LANDSCAPE_ERROR: 'MOBILE_LANDSCAPE_ERROR', + MULTIPLE_FACES_ERROR: 'MULTIPLE_FACES_ERROR', +} as const; + +export type ErrorState = keyof typeof LivenessErrorState; diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/liveness.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/liveness.ts index e04e85f5362..5fe1a94df9a 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/liveness.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/liveness.ts @@ -1,5 +1,5 @@ import { AwsCredentialProvider } from './credentials'; -import { LivenessErrorState } from './error'; +import { ErrorState } from './error'; /** * The props for the FaceLivenessDetectorCore which allows for full configuration of auth @@ -124,6 +124,6 @@ export enum FaceMatchState { } export interface LivenessError { - state: LivenessErrorState; + state: ErrorState; error: Error; } diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/machine.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/machine.ts index 23fe128ecb4..924e17e71bc 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/types/machine.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/types/machine.ts @@ -13,7 +13,7 @@ import { LivenessOvalDetails, IlluminationState, } from './liveness'; -import { LivenessErrorState } from './error'; +import { ErrorState } from './error'; import { VideoRecorder, LivenessStreamProvider, @@ -67,7 +67,7 @@ export interface HydratedLivenessContext { ovalAssociatedParams: OvalAssociatedParams; faceMatchAssociatedParams: FaceMatchAssociatedParams; freshnessColorAssociatedParams: FreshnessColorAssociatedParams; - errorState: LivenessErrorState; + errorState: ErrorState; livenessStreamProvider: LivenessStreamProvider; responseStreamActorRef: ActorRef; shouldDisconnect: boolean; diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts index 5e3bc6db18b..bdb3262da58 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts @@ -6,6 +6,7 @@ import { FaceMatchState, BoundingBox, LivenessErrorState, + ErrorState, } from '../types'; import { FaceDetection } from '../types/faceDetection'; import { ClientFreshnessColorSequence } from '../types/service'; @@ -459,7 +460,7 @@ export function isCameraDeviceVirtual(device: MediaDeviceInfo): boolean { return device.label.toLowerCase().includes('virtual'); } -export const LivenessErrorStateStringMap: Record = { +export const LivenessErrorStateStringMap = { [LivenessErrorState.RUNTIME_ERROR]: 'RUNTIME_ERROR', [LivenessErrorState.SERVER_ERROR]: 'SERVER_ERROR', [LivenessErrorState.TIMEOUT]: 'TIMEOUT', @@ -741,18 +742,13 @@ export async function isFaceDistanceBelowThreshold({ isMobile?: boolean; }): Promise<{ isDistanceBelowThreshold: boolean; - error?: - | LivenessErrorState.FACE_DISTANCE_ERROR - | LivenessErrorState.MULTIPLE_FACES_ERROR; + error?: ErrorState; }> { const detectedFaces = await faceDetector.detectFaces(videoEl); let detectedFace: Face; let isDistanceBelowThreshold = false; - let error: - | LivenessErrorState.FACE_DISTANCE_ERROR - | LivenessErrorState.MULTIPLE_FACES_ERROR - | undefined; + let error: ErrorState | undefined; switch (detectedFaces.length) { case 0: { diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.tsx b/packages/react-liveness/src/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.tsx index 5380151a7d7..47fcf11e337 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.tsx +++ b/packages/react-liveness/src/components/FaceLivenessDetector/shared/FaceLivenessErrorModal.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { Flex, Button, Text } from '@aws-amplify/ui-react'; import { AlertIcon } from '@aws-amplify/ui-react/internal'; -import { LivenessErrorState } from '../service'; +import { LivenessErrorState, ErrorState } from '../service'; import { Toast } from './Toast'; import { Overlay } from './Overlay'; @@ -21,7 +21,7 @@ export interface FaceLivenessErrorModalProps { } const renderToastErrorModal = (props: { - error: LivenessErrorState; + error: ErrorState; displayText: Required; }) => { const { error: errorState, displayText } = props; @@ -80,7 +80,7 @@ export const renderErrorModal = ({ errorState, overrideErrorDisplayText, }: { - errorState: LivenessErrorState; + errorState: ErrorState; overrideErrorDisplayText?: ErrorDisplayText; }): JSX.Element | null => { const displayText: Required = { diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/FaceLivenessErrorModal.test.tsx b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/FaceLivenessErrorModal.test.tsx index 6a98f0b8427..ea14ae4d0a0 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/FaceLivenessErrorModal.test.tsx +++ b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/FaceLivenessErrorModal.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; -import { LivenessErrorState } from '../../service'; +import { LivenessErrorState, ErrorState } from '../../service'; import { FaceLivenessErrorModal, renderErrorModal, @@ -60,7 +60,7 @@ describe('FaceLivenessErrorModal', () => { render( {}}> {renderErrorModal({ - errorState: errorState as unknown as LivenessErrorState, + errorState: errorState as unknown as ErrorState, })} ); diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/Hint.test.tsx b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/Hint.test.tsx index e15d1b3a45d..2de757918f9 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/Hint.test.tsx +++ b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/Hint.test.tsx @@ -6,6 +6,7 @@ import { IlluminationState, FaceMatchState, LivenessErrorState, + ErrorState, } from '../../service'; import { @@ -33,7 +34,7 @@ describe('Hint', () => { }; const mockActorSend = jest.fn(); - let errorState: LivenessErrorState | null = null; + let errorState: ErrorState | null = null; let faceMatchState: FaceMatchState | null = null; let illuminationState: IlluminationState | null = null; let faceMatchStateBeforeStart: FaceMatchState | null = null; diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/LandscapeErrorModal.test.tsx b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/LandscapeErrorModal.test.tsx index 6a98f0b8427..14b51d41ad4 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/LandscapeErrorModal.test.tsx +++ b/packages/react-liveness/src/components/FaceLivenessDetector/shared/__tests__/LandscapeErrorModal.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { render, screen } from '@testing-library/react'; -import { LivenessErrorState } from '../../service'; +import { ErrorState, LivenessErrorState } from '../../service'; import { FaceLivenessErrorModal, renderErrorModal, @@ -60,7 +60,7 @@ describe('FaceLivenessErrorModal', () => { render( {}}> {renderErrorModal({ - errorState: errorState as unknown as LivenessErrorState, + errorState: errorState as unknown as ErrorState, })} ); diff --git a/packages/react-liveness/src/index.ts b/packages/react-liveness/src/index.ts index 8b2997eb5fa..41aa4c4dace 100644 --- a/packages/react-liveness/src/index.ts +++ b/packages/react-liveness/src/index.ts @@ -6,4 +6,5 @@ export { AwsCredentialProvider, AwsCredentials, AwsTemporaryCredentials, + ErrorState, } from './components'; From b3f4b6c7b2243e06ff874633a438d3d70b13b93c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:44:07 -0700 Subject: [PATCH 2/2] Version Packages (#4437) Co-authored-by: github-actions[bot] --- .changeset/breezy-rabbits-change.md | 24 -------------- .changeset/cold-news-jump.md | 5 --- .changeset/five-ghosts-hug.md | 5 --- .changeset/loud-dodos-confess.md | 5 --- .changeset/mean-vans-attend.md | 5 --- .changeset/modern-melons-doubt.md | 5 --- .changeset/thin-experts-destroy.md | 5 --- docs/package.json | 4 +-- examples/angular/package.json | 2 +- examples/next/package.json | 8 ++--- examples/vue/package.json | 2 +- .../angular/projects/ui-angular/CHANGELOG.md | 7 ++++ .../angular/projects/ui-angular/package.json | 4 +-- .../projects/ui-angular/src/version.ts | 2 +- packages/e2e/package.json | 2 +- .../react-core-notifications/CHANGELOG.md | 8 +++++ .../react-core-notifications/package.json | 6 ++-- packages/react-core/CHANGELOG.md | 7 ++++ packages/react-core/package.json | 4 +-- packages/react-liveness/CHANGELOG.md | 14 ++++++++ packages/react-liveness/package.json | 6 ++-- packages/react-liveness/src/version.ts | 2 +- packages/react-native/CHANGELOG.md | 9 ++++++ packages/react-native/package.json | 8 ++--- packages/react-native/src/version.ts | 2 +- packages/react-notifications/CHANGELOG.md | 9 ++++++ packages/react-notifications/package.json | 8 ++--- packages/react-storage/CHANGELOG.md | 9 ++++++ packages/react-storage/package.json | 8 ++--- packages/react/CHANGELOG.md | 32 +++++++++++++++++++ packages/react/package.json | 6 ++-- packages/react/src/version.ts | 2 +- packages/ui/CHANGELOG.md | 26 +++++++++++++++ packages/ui/package.json | 2 +- packages/vue/CHANGELOG.md | 7 ++++ packages/vue/package.json | 4 +-- packages/vue/src/version.ts | 2 +- 37 files changed, 170 insertions(+), 96 deletions(-) delete mode 100644 .changeset/breezy-rabbits-change.md delete mode 100644 .changeset/cold-news-jump.md delete mode 100644 .changeset/five-ghosts-hug.md delete mode 100644 .changeset/loud-dodos-confess.md delete mode 100644 .changeset/mean-vans-attend.md delete mode 100644 .changeset/modern-melons-doubt.md delete mode 100644 .changeset/thin-experts-destroy.md diff --git a/.changeset/breezy-rabbits-change.md b/.changeset/breezy-rabbits-change.md deleted file mode 100644 index fc58ce54706..00000000000 --- a/.changeset/breezy-rabbits-change.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"@aws-amplify/ui-react": patch -"@aws-amplify/ui": patch ---- - -added new `isMultiple` and `selectSize` props for the `SelectField` component - -Example: - -``` - - - - - - - - -``` diff --git a/.changeset/cold-news-jump.md b/.changeset/cold-news-jump.md deleted file mode 100644 index 2a4a1b2da54..00000000000 --- a/.changeset/cold-news-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui-react-liveness": patch ---- - -chore(liveness): remove predictions super class diff --git a/.changeset/five-ghosts-hug.md b/.changeset/five-ghosts-hug.md deleted file mode 100644 index 698966d7f59..00000000000 --- a/.changeset/five-ghosts-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui": patch ---- - -fix(ui): remove error border from disabled and quiet primitive fields diff --git a/.changeset/loud-dodos-confess.md b/.changeset/loud-dodos-confess.md deleted file mode 100644 index 0ede2ff83c8..00000000000 --- a/.changeset/loud-dodos-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui-react-liveness": patch ---- - -fix(liveness): add missing liveness dependencies diff --git a/.changeset/mean-vans-attend.md b/.changeset/mean-vans-attend.md deleted file mode 100644 index 37603406f88..00000000000 --- a/.changeset/mean-vans-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui-react": patch ---- - -fix(ui-react): update ButtonGroup to respect child props and allow optional children diff --git a/.changeset/modern-melons-doubt.md b/.changeset/modern-melons-doubt.md deleted file mode 100644 index 297b133b20f..00000000000 --- a/.changeset/modern-melons-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui-react": patch ---- - -fix(ui-react): use guaranteed value for BreadCrumbs key diff --git a/.changeset/thin-experts-destroy.md b/.changeset/thin-experts-destroy.md deleted file mode 100644 index 83196bafaf3..00000000000 --- a/.changeset/thin-experts-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aws-amplify/ui-react-liveness": patch ---- - -chore(liveness): export error types diff --git a/docs/package.json b/docs/package.json index 59f6c578433..19f0347c0ad 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,8 +23,8 @@ "test:links": "node --require esbuild-register ./scripts/link-checker-puppeteer.ts" }, "dependencies": { - "@aws-amplify/ui-react": "5.3.0", - "@aws-amplify/ui-react-storage": "2.3.0", + "@aws-amplify/ui-react": "5.3.1", + "@aws-amplify/ui-react-storage": "2.3.1", "@cucumber/gherkin": "^19.0.3", "@cucumber/messages": "^16.0.1", "@docsearch/react": "3", diff --git a/examples/angular/package.json b/examples/angular/package.json index 08f83ba5264..7d981031ed8 100644 --- a/examples/angular/package.json +++ b/examples/angular/package.json @@ -20,7 +20,7 @@ "@angular/platform-browser": "^14.3.0", "@angular/platform-browser-dynamic": "^14.3.0", "@angular/router": "^14.3.0", - "@aws-amplify/ui-angular": "^4.0.8", + "@aws-amplify/ui-angular": "^4.0.9", "aws-amplify": "latest", "rxjs": "~6.6.0", "tslib": "^2.0.0", diff --git a/examples/next/package.json b/examples/next/package.json index ba255b24ff6..203a596ed92 100644 --- a/examples/next/package.json +++ b/examples/next/package.json @@ -10,10 +10,10 @@ "lint": "next lint" }, "dependencies": { - "@aws-amplify/ui-react": "^5.3.0", - "@aws-amplify/ui-react-liveness": "^2.0.7", - "@aws-amplify/ui-react-storage": "^2.3.0", - "@aws-amplify/ui-react-notifications": "^1.0.12", + "@aws-amplify/ui-react": "^5.3.1", + "@aws-amplify/ui-react-liveness": "^2.0.8", + "@aws-amplify/ui-react-storage": "^2.3.1", + "@aws-amplify/ui-react-notifications": "^1.0.13", "@aws-amplify/ui-react-geo": "^1.0.2", "@aws-sdk/credential-providers": "^3.370.0", "aws-amplify": "latest", diff --git a/examples/vue/package.json b/examples/vue/package.json index 2ec0594fd05..a4b0da88ab6 100644 --- a/examples/vue/package.json +++ b/examples/vue/package.json @@ -10,7 +10,7 @@ "start": "vite preview --port 3000" }, "dependencies": { - "@aws-amplify/ui-vue": "^3.1.27", + "@aws-amplify/ui-vue": "^3.1.28", "aws-amplify": "latest", "vue": "^3.0.5", "vue-router": "4" diff --git a/packages/angular/projects/ui-angular/CHANGELOG.md b/packages/angular/projects/ui-angular/CHANGELOG.md index b5bffcca13b..b584e8a9bb3 100644 --- a/packages/angular/projects/ui-angular/CHANGELOG.md +++ b/packages/angular/projects/ui-angular/CHANGELOG.md @@ -1,5 +1,12 @@ # @aws-amplify/ui-angular +## 4.0.9 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + ## 4.0.8 ### Patch Changes diff --git a/packages/angular/projects/ui-angular/package.json b/packages/angular/projects/ui-angular/package.json index 811c00202bd..336895e2794 100644 --- a/packages/angular/projects/ui-angular/package.json +++ b/packages/angular/projects/ui-angular/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-angular", - "version": "4.0.8", + "version": "4.0.9", "scripts": { "build": "yarn --cwd ../../ build", "dev": "yarn --cwd ../../ dev", @@ -19,7 +19,7 @@ "aws-amplify": "^5.0.1" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", + "@aws-amplify/ui": "5.8.1", "classnames": "2.3.1", "nanoid": "3.1.31", "qrcode": "1.5.0", diff --git a/packages/angular/projects/ui-angular/src/version.ts b/packages/angular/projects/ui-angular/src/version.ts index d92c42eb3fa..bd0ec96554d 100644 --- a/packages/angular/projects/ui-angular/src/version.ts +++ b/packages/angular/projects/ui-angular/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.0.8'; +export const VERSION = '4.0.9'; diff --git a/packages/e2e/package.json b/packages/e2e/package.json index 3bcac07c3f0..9841124ed8f 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -30,7 +30,7 @@ ] }, "devDependencies": { - "@aws-amplify/ui": "^5.8.0", + "@aws-amplify/ui": "^5.8.1", "@badeball/cypress-cucumber-preprocessor": "^16.0.3", "@bahmutov/cypress-esbuild-preprocessor": "~2.2.0", "@cucumber/cucumber": "^9.3.0", diff --git a/packages/react-core-notifications/CHANGELOG.md b/packages/react-core-notifications/CHANGELOG.md index a9ac6cd7a7f..742cad80d8c 100644 --- a/packages/react-core-notifications/CHANGELOG.md +++ b/packages/react-core-notifications/CHANGELOG.md @@ -1,5 +1,13 @@ # @aws-amplify/ui-react-core-notifications +## 1.0.10 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + - @aws-amplify/ui-react-core@2.1.33 + ## 1.0.9 ### Patch Changes diff --git a/packages/react-core-notifications/package.json b/packages/react-core-notifications/package.json index a802454a04a..f992913f35a 100644 --- a/packages/react-core-notifications/package.json +++ b/packages/react-core-notifications/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-core-notifications", - "version": "1.0.9", + "version": "1.0.10", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { @@ -36,8 +36,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react-core": "2.1.32" + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react-core": "2.1.33" }, "peerDependencies": { "aws-amplify": "^5.0.1", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 7d70a6a6982..c4013d95617 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -1,5 +1,12 @@ # @aws-amplify/ui-react-core +## 2.1.33 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + ## 2.1.32 ### Patch Changes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index 38e956eec4f..d872d236e25 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-core", - "version": "2.1.32", + "version": "2.1.33", "main": "dist/index.js", "module": "dist/esm/index.mjs", "react-native": "dist/index.js", @@ -31,7 +31,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", + "@aws-amplify/ui": "5.8.1", "@xstate/react": "3.0.1", "lodash": "4.17.21", "xstate": "^4.33.6" diff --git a/packages/react-liveness/CHANGELOG.md b/packages/react-liveness/CHANGELOG.md index 36d2aa1701c..1bfc44cb6a4 100644 --- a/packages/react-liveness/CHANGELOG.md +++ b/packages/react-liveness/CHANGELOG.md @@ -1,5 +1,19 @@ # @aws-amplify/ui-react-liveness +## 2.0.8 + +### Patch Changes + +- [#4441](https://github.com/aws-amplify/amplify-ui/pull/4441) [`717b00955`](https://github.com/aws-amplify/amplify-ui/commit/717b0095573eb0fc44ef47441eb27e1c3122f6f9) Thanks [@thaddmt](https://github.com/thaddmt)! - chore(liveness): remove predictions super class + +- [#4446](https://github.com/aws-amplify/amplify-ui/pull/4446) [`ac3cfa8aa`](https://github.com/aws-amplify/amplify-ui/commit/ac3cfa8aaa430df2b73e51a6b6f0916f1f6f6382) Thanks [@thaddmt](https://github.com/thaddmt)! - fix(liveness): add missing liveness dependencies + +- [#4450](https://github.com/aws-amplify/amplify-ui/pull/4450) [`8ca045036`](https://github.com/aws-amplify/amplify-ui/commit/8ca0450363a194016fe7d1e5c4fc8359e2f4dba2) Thanks [@thaddmt](https://github.com/thaddmt)! - chore(liveness): export error types + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39), [`c393b74af`](https://github.com/aws-amplify/amplify-ui/commit/c393b74af6574593b2e7a5c9f00d27b052966a12), [`7e11a3b7e`](https://github.com/aws-amplify/amplify-ui/commit/7e11a3b7e4761a39a973ecd9a632a619660e18dd)]: + - @aws-amplify/ui-react@5.3.1 + - @aws-amplify/ui@5.8.1 + ## 2.0.7 ### Patch Changes diff --git a/packages/react-liveness/package.json b/packages/react-liveness/package.json index 0656307d5d7..ca10cf179ac 100644 --- a/packages/react-liveness/package.json +++ b/packages/react-liveness/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-liveness", - "version": "2.0.7", + "version": "2.0.8", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { @@ -48,8 +48,8 @@ "react-dom": ">= 16.14.0" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react": "5.3.0", + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react": "5.3.1", "@aws-sdk/client-rekognitionstreaming": "3.398.0", "@aws-sdk/util-format-url": "^3.410.0", "@smithy/eventstream-serde-browser": "^2.0.4", diff --git a/packages/react-liveness/src/version.ts b/packages/react-liveness/src/version.ts index ba4798a1e46..ecba926dc3b 100644 --- a/packages/react-liveness/src/version.ts +++ b/packages/react-liveness/src/version.ts @@ -1 +1 @@ -export const VERSION = '2.0.7'; +export const VERSION = '2.0.8'; diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index d178474e10b..69ca2f7c45d 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,14 @@ # @aws-amplify/ui-react-native +## 1.2.28 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + - @aws-amplify/ui-react-core@2.1.33 + - @aws-amplify/ui-react-core-notifications@1.0.10 + ## 1.2.27 ### Patch Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 45414e806f3..0c40025840a 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-native", - "version": "1.2.27", + "version": "1.2.28", "main": "lib/index.js", "module": "dist/index.js", "react-native": "src/index.ts", @@ -40,9 +40,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react-core": "2.1.32", - "@aws-amplify/ui-react-core-notifications": "1.0.9" + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react-core": "2.1.33", + "@aws-amplify/ui-react-core-notifications": "1.0.10" }, "peerDependencies": { "aws-amplify": "^5.0.1", diff --git a/packages/react-native/src/version.ts b/packages/react-native/src/version.ts index ef3681800dc..fc8f6b0417b 100644 --- a/packages/react-native/src/version.ts +++ b/packages/react-native/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.2.27'; +export const VERSION = '1.2.28'; diff --git a/packages/react-notifications/CHANGELOG.md b/packages/react-notifications/CHANGELOG.md index ed01259e2fc..b4184fbf4b9 100644 --- a/packages/react-notifications/CHANGELOG.md +++ b/packages/react-notifications/CHANGELOG.md @@ -1,5 +1,14 @@ # @aws-amplify/ui-react-notifications +## 1.0.13 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39), [`c393b74af`](https://github.com/aws-amplify/amplify-ui/commit/c393b74af6574593b2e7a5c9f00d27b052966a12), [`7e11a3b7e`](https://github.com/aws-amplify/amplify-ui/commit/7e11a3b7e4761a39a973ecd9a632a619660e18dd)]: + - @aws-amplify/ui-react@5.3.1 + - @aws-amplify/ui@5.8.1 + - @aws-amplify/ui-react-core-notifications@1.0.10 + ## 1.0.12 ### Patch Changes diff --git a/packages/react-notifications/package.json b/packages/react-notifications/package.json index eedb8d0342b..5a9af0b70a1 100644 --- a/packages/react-notifications/package.json +++ b/packages/react-notifications/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-notifications", - "version": "1.0.12", + "version": "1.0.13", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { @@ -40,9 +40,9 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react": "5.3.0", - "@aws-amplify/ui-react-core-notifications": "1.0.9", + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react": "5.3.1", + "@aws-amplify/ui-react-core-notifications": "1.0.10", "classnames": "2.3.1", "tinycolor2": "1.4.2" }, diff --git a/packages/react-storage/CHANGELOG.md b/packages/react-storage/CHANGELOG.md index 080f09027d5..7bd740cefb4 100644 --- a/packages/react-storage/CHANGELOG.md +++ b/packages/react-storage/CHANGELOG.md @@ -1,5 +1,14 @@ # @aws-amplify/ui-react-storage +## 2.3.1 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39), [`c393b74af`](https://github.com/aws-amplify/amplify-ui/commit/c393b74af6574593b2e7a5c9f00d27b052966a12), [`7e11a3b7e`](https://github.com/aws-amplify/amplify-ui/commit/7e11a3b7e4761a39a973ecd9a632a619660e18dd)]: + - @aws-amplify/ui-react@5.3.1 + - @aws-amplify/ui@5.8.1 + - @aws-amplify/ui-react-core@2.1.33 + ## 2.3.0 ### Minor Changes diff --git a/packages/react-storage/package.json b/packages/react-storage/package.json index ab1718c9cd5..6023fdcd4fe 100644 --- a/packages/react-storage/package.json +++ b/packages/react-storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react-storage", - "version": "2.3.0", + "version": "2.3.1", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { @@ -40,9 +40,9 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react": "5.3.0", - "@aws-amplify/ui-react-core": "2.1.32", + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react": "5.3.1", + "@aws-amplify/ui-react-core": "2.1.33", "classnames": "2.3.1", "lodash": "4.17.21", "tslib": "2.4.1" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index a93e2c7c808..64617537d69 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,37 @@ # @aws-amplify/ui-react +## 5.3.1 + +### Patch Changes + +- [#4414](https://github.com/aws-amplify/amplify-ui/pull/4414) [`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926) Thanks [@lavr001](https://github.com/lavr001)! - added new `isMultiple` and `selectSize` props for the `SelectField` component + + Example: + + ``` + + + + + + + + + ``` + +- [#4432](https://github.com/aws-amplify/amplify-ui/pull/4432) [`c393b74af`](https://github.com/aws-amplify/amplify-ui/commit/c393b74af6574593b2e7a5c9f00d27b052966a12) Thanks [@calebpollman](https://github.com/calebpollman)! - fix(ui-react): update ButtonGroup to respect child props and allow optional children + +- [#4442](https://github.com/aws-amplify/amplify-ui/pull/4442) [`7e11a3b7e`](https://github.com/aws-amplify/amplify-ui/commit/7e11a3b7e4761a39a973ecd9a632a619660e18dd) Thanks [@calebpollman](https://github.com/calebpollman)! - fix(ui-react): use guaranteed value for BreadCrumbs key + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + - @aws-amplify/ui-react-core@2.1.33 + ## 5.3.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index a6614c5f019..7fc416eee62 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react", - "version": "5.3.0", + "version": "5.3.1", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { @@ -47,8 +47,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", - "@aws-amplify/ui-react-core": "2.1.32", + "@aws-amplify/ui": "5.8.1", + "@aws-amplify/ui-react-core": "2.1.33", "@radix-ui/react-accordion": "1.0.0", "@radix-ui/react-direction": "1.0.0", "@radix-ui/react-dropdown-menu": "1.0.0", diff --git a/packages/react/src/version.ts b/packages/react/src/version.ts index 1c1586937a9..07fdf7bdceb 100644 --- a/packages/react/src/version.ts +++ b/packages/react/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.3.0'; +export const VERSION = '5.3.1'; diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 73c23992df7..78e7a0b9167 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,31 @@ # @aws-amplify/ui +## 5.8.1 + +### Patch Changes + +- [#4414](https://github.com/aws-amplify/amplify-ui/pull/4414) [`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926) Thanks [@lavr001](https://github.com/lavr001)! - added new `isMultiple` and `selectSize` props for the `SelectField` component + + Example: + + ``` + + + + + + + + + ``` + +- [#4457](https://github.com/aws-amplify/amplify-ui/pull/4457) [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39) Thanks [@esauerbo](https://github.com/esauerbo)! - fix(ui): remove error border from disabled and quiet primitive fields + ## 5.8.0 ### Minor Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 41dc1a0f9b0..cd2d2c9f5cb 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui", - "version": "5.8.0", + "version": "5.8.1", "main": "dist/index.js", "module": "dist/esm/index.mjs", "exports": { diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 4f6b2ee6c5e..7e52892e5d0 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @aws-amplify/ui-vue +## 3.1.28 + +### Patch Changes + +- Updated dependencies [[`d570694c7`](https://github.com/aws-amplify/amplify-ui/commit/d570694c7e0d9d112449d3aade2d567773555926), [`6a5a4d79c`](https://github.com/aws-amplify/amplify-ui/commit/6a5a4d79ce60124fba2dc00d86b9e1a9b5f21c39)]: + - @aws-amplify/ui@5.8.1 + ## 3.1.27 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index a8ac10baa81..a3418fc637e 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-vue", - "version": "3.1.27", + "version": "3.1.28", "type": "module", "main": "dist/index.cjs", "module": "dist/index.js", @@ -37,7 +37,7 @@ "test:watch": "yarn test --watch" }, "dependencies": { - "@aws-amplify/ui": "5.8.0", + "@aws-amplify/ui": "5.8.1", "@vue/tsconfig": "^0.1.3", "@vueuse/core": "7.5.5", "@xstate/vue": "0.8.1", diff --git a/packages/vue/src/version.ts b/packages/vue/src/version.ts index b288c18f3f8..2fbc8d78cdf 100644 --- a/packages/vue/src/version.ts +++ b/packages/vue/src/version.ts @@ -1 +1 @@ -export const VERSION = '3.1.27'; +export const VERSION = '3.1.28';