From 2acbd4f9e23f25eaf642787ab15fc58fa0dec468 Mon Sep 17 00:00:00 2001 From: Caleb Pollman Date: Thu, 29 Dec 2022 09:47:19 -0800 Subject: [PATCH 1/4] chore(ui-react): bump unit test coverage thresholds (#3237) --- packages/react/jest.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react/jest.config.js b/packages/react/jest.config.js index 520b2f52d7a..7e24a40f2d3 100644 --- a/packages/react/jest.config.js +++ b/packages/react/jest.config.js @@ -7,10 +7,10 @@ module.exports = { ], coverageThreshold: { global: { - branches: 72, - functions: 60, - lines: 85, - statements: 85, + branches: 80, + functions: 70, + lines: 91, + statements: 91, }, }, globals: { 'ts-jest': { tsconfig: 'tsconfig.json' } }, From ea1b10a2c802b08ee019669ba442d7446f23bd05 Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Thu, 29 Dec 2022 10:01:00 -0800 Subject: [PATCH 2/4] fix(react): manually add `overflow: clip` to fix remediate chrome breaking change (#3238) * Manually set overflow clip * Move changes to image.scss * Add missing change * Create smart-masks-drop.md --- .changeset/smart-masks-drop.md | 7 +++++++ packages/ui/src/theme/css/component/image.scss | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/smart-masks-drop.md diff --git a/.changeset/smart-masks-drop.md b/.changeset/smart-masks-drop.md new file mode 100644 index 00000000000..45b28486c99 --- /dev/null +++ b/.changeset/smart-masks-drop.md @@ -0,0 +1,7 @@ +--- +"@aws-amplify/ui": patch +--- + +fix(react): Manually add `overflow: clip` to remediate chrome 108 breaking change. + +Ref: https://developer.chrome.com/blog/overflow-replaced-elements/ diff --git a/packages/ui/src/theme/css/component/image.scss b/packages/ui/src/theme/css/component/image.scss index 73d6ba0b26f..279e9daa62c 100644 --- a/packages/ui/src/theme/css/component/image.scss +++ b/packages/ui/src/theme/css/component/image.scss @@ -3,4 +3,8 @@ max-width: var(--amplify-components-image-max-width); object-fit: var(--amplify-components-image-object-fit); object-position: var(--amplify-components-image-object-position); + + // need to set overflow to clip to resolve chrome 108 breaking change: + // https://developer.chrome.com/blog/overflow-replaced-elements/ + overflow: clip; } From 7059eec621992de899344315e8267b783664c671 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Dec 2022 10:35:28 -0800 Subject: [PATCH 3/4] Version Packages (#3226) Co-authored-by: github-actions[bot] --- .changeset/rich-peaches-trade.md | 5 ----- .changeset/smart-masks-drop.md | 7 ------- docs/package.json | 2 +- examples/angular/package.json | 2 +- examples/next/package.json | 2 +- examples/vue/package.json | 2 +- packages/angular/projects/ui-angular/CHANGELOG.md | 7 +++++++ packages/angular/projects/ui-angular/package.json | 4 ++-- packages/angular/projects/ui-angular/src/version.ts | 2 +- packages/e2e/package.json | 2 +- packages/react-core/CHANGELOG.md | 7 +++++++ packages/react-core/package.json | 4 ++-- packages/react-native/CHANGELOG.md | 8 ++++++++ packages/react-native/package.json | 6 +++--- packages/react-native/src/version.ts | 2 +- packages/react/CHANGELOG.md | 8 ++++++++ packages/react/package.json | 6 +++--- packages/react/src/version.ts | 2 +- packages/ui/CHANGELOG.md | 10 ++++++++++ packages/ui/package.json | 2 +- packages/vue/CHANGELOG.md | 7 +++++++ packages/vue/package.json | 4 ++-- packages/vue/src/version.ts | 2 +- 23 files changed, 69 insertions(+), 34 deletions(-) delete mode 100644 .changeset/rich-peaches-trade.md delete mode 100644 .changeset/smart-masks-drop.md diff --git a/.changeset/rich-peaches-trade.md b/.changeset/rich-peaches-trade.md deleted file mode 100644 index a77ddc389e4..00000000000 --- a/.changeset/rich-peaches-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@aws-amplify/ui': patch ---- - -Updated logic so users will now receive a code, when they are displayed the reset password page that asks for a code after signing in. This occurs when the users are imported into Cognito. diff --git a/.changeset/smart-masks-drop.md b/.changeset/smart-masks-drop.md deleted file mode 100644 index 45b28486c99..00000000000 --- a/.changeset/smart-masks-drop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@aws-amplify/ui": patch ---- - -fix(react): Manually add `overflow: clip` to remediate chrome 108 breaking change. - -Ref: https://developer.chrome.com/blog/overflow-replaced-elements/ diff --git a/docs/package.json b/docs/package.json index a59f832fd8a..05dfba00624 100644 --- a/docs/package.json +++ b/docs/package.json @@ -19,7 +19,7 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/ui-react": "4.3.1", + "@aws-amplify/ui-react": "4.3.2", "@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 b5f474f1014..f59767a3696 100644 --- a/examples/angular/package.json +++ b/examples/angular/package.json @@ -21,7 +21,7 @@ "@angular/platform-browser": "~12.2.16", "@angular/platform-browser-dynamic": "~12.2.16", "@angular/router": "~12.2.16", - "@aws-amplify/ui-angular": "^3.2.1", + "@aws-amplify/ui-angular": "^3.2.2", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.11.4" diff --git a/examples/next/package.json b/examples/next/package.json index f0c55c14c67..33b91474a9a 100644 --- a/examples/next/package.json +++ b/examples/next/package.json @@ -10,7 +10,7 @@ "lint": "next lint" }, "dependencies": { - "@aws-amplify/ui-react": "^4.3.1", + "@aws-amplify/ui-react": "^4.3.2", "aws-amplify": "latest", "next": "^11.1.3", "next-global-css": "^1.1.1", diff --git a/examples/vue/package.json b/examples/vue/package.json index b11e7505290..dbeff0b850a 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.1", + "@aws-amplify/ui-vue": "^3.1.2", "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 78dc61a60dc..ed89da4393c 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 +## 3.2.2 + +### Patch Changes + +- Updated dependencies [[`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed), [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05)]: + - @aws-amplify/ui@5.4.2 + ## 3.2.1 ### Patch Changes diff --git a/packages/angular/projects/ui-angular/package.json b/packages/angular/projects/ui-angular/package.json index 66dd377572c..5b33f70605e 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": "3.2.1", + "version": "3.2.2", "scripts": { "build": "yarn --cwd ../../ build", "dev": "yarn --cwd ../../ dev", @@ -17,7 +17,7 @@ "aws-amplify": "5.x.x" }, "dependencies": { - "@aws-amplify/ui": "5.4.1", + "@aws-amplify/ui": "5.4.2", "nanoid": "3.1.31", "qrcode": "1.5.0", "tslib": "2.3.1", diff --git a/packages/angular/projects/ui-angular/src/version.ts b/packages/angular/projects/ui-angular/src/version.ts index 08303b6e735..5a1cc46429d 100644 --- a/packages/angular/projects/ui-angular/src/version.ts +++ b/packages/angular/projects/ui-angular/src/version.ts @@ -1 +1 @@ -export const VERSION = '3.2.1'; +export const VERSION = '3.2.2'; diff --git a/packages/e2e/package.json b/packages/e2e/package.json index 273cae59eea..0ff8a90d2fc 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -21,7 +21,7 @@ ] }, "devDependencies": { - "@aws-amplify/ui": "^5.4.1", + "@aws-amplify/ui": "^5.4.2", "@badeball/cypress-cucumber-preprocessor": "^12.1.0", "@bahmutov/cypress-esbuild-preprocessor": "^2.1.3", "@nuintun/qrcode": "^3.3.0", diff --git a/packages/react-core/CHANGELOG.md b/packages/react-core/CHANGELOG.md index 2d5a59a9bd7..28226e67651 100644 --- a/packages/react-core/CHANGELOG.md +++ b/packages/react-core/CHANGELOG.md @@ -1,5 +1,12 @@ # @aws-amplify/ui-react-core +## 2.1.7 + +### Patch Changes + +- Updated dependencies [[`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed), [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05)]: + - @aws-amplify/ui@5.4.2 + ## 2.1.6 ### Patch Changes diff --git a/packages/react-core/package.json b/packages/react-core/package.json index cb1ae13b76c..2d299611e6f 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.6", + "version": "2.1.7", "main": "dist/index.js", "module": "dist/esm/index.js", "react-native": "dist/index.js", @@ -28,7 +28,7 @@ "test:watch": "yarn test --watch" }, "dependencies": { - "@aws-amplify/ui": "5.4.1", + "@aws-amplify/ui": "5.4.2", "@xstate/react": "3.0.1", "lodash": "4.17.21", "xstate": "^4.33.6" diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 0143d7d5051..102576e4812 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,13 @@ # @aws-amplify/ui-react-native +## 1.2.2 + +### Patch Changes + +- Updated dependencies [[`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed), [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05)]: + - @aws-amplify/ui@5.4.2 + - @aws-amplify/ui-react-core@2.1.7 + ## 1.2.1 ### Patch Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index a4983bd1ea1..7b2034cdae8 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.1", + "version": "1.2.2", "main": "dist/index.js", "module": "dist/esm/index.js", "types": "dist/index.d.ts", @@ -43,8 +43,8 @@ "type-fest": "^2.3.4" }, "dependencies": { - "@aws-amplify/ui": "5.4.1", - "@aws-amplify/ui-react-core": "2.1.6" + "@aws-amplify/ui": "5.4.2", + "@aws-amplify/ui-react-core": "2.1.7" }, "peerDependencies": { "aws-amplify": ">= 5.0.1", diff --git a/packages/react-native/src/version.ts b/packages/react-native/src/version.ts index 5ec4dffca77..e323f5c5887 100644 --- a/packages/react-native/src/version.ts +++ b/packages/react-native/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.2.1'; +export const VERSION = '1.2.2'; diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 44275c89606..47e07556799 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,13 @@ # @aws-amplify/ui-react +## 4.3.2 + +### Patch Changes + +- Updated dependencies [[`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed), [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05)]: + - @aws-amplify/ui@5.4.2 + - @aws-amplify/ui-react-core@2.1.7 + ## 4.3.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index f84df2d0fe2..09bd83ef1d9 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-react", - "version": "4.3.1", + "version": "4.3.2", "main": "dist/index.js", "module": "dist/esm/index.js", "exports": { @@ -48,8 +48,8 @@ "size": "yarn run size-limit" }, "dependencies": { - "@aws-amplify/ui": "5.4.1", - "@aws-amplify/ui-react-core": "2.1.6", + "@aws-amplify/ui": "5.4.2", + "@aws-amplify/ui-react-core": "2.1.7", "@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 70af0ffb734..564e543f9f4 100644 --- a/packages/react/src/version.ts +++ b/packages/react/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.3.1'; +export const VERSION = '4.3.2'; diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index ec816a8fb8d..2fdf8574ff5 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,15 @@ # @aws-amplify/ui +## 5.4.2 + +### Patch Changes + +- [#3201](https://github.com/aws-amplify/amplify-ui/pull/3201) [`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed) Thanks [@ErikCH](https://github.com/ErikCH)! - Updated logic so users will now receive a code, when they are displayed the reset password page that asks for a code after signing in. This occurs when the users are imported into Cognito. + +- [#3238](https://github.com/aws-amplify/amplify-ui/pull/3238) [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05) Thanks [@wlee221](https://github.com/wlee221)! - fix(react): Manually add `overflow: clip` to remediate chrome 108 breaking change. + + Ref: https://developer.chrome.com/blog/overflow-replaced-elements/ + ## 5.4.1 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 7343657f11f..455fb8444cf 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui", - "version": "5.4.1", + "version": "5.4.2", "main": "dist/index.js", "module": "dist/esm/index.js", "exports": { diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 23207574bb7..9fa076025a4 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @aws-amplify/ui-vue +## 3.1.2 + +### Patch Changes + +- Updated dependencies [[`2912fe3af`](https://github.com/aws-amplify/amplify-ui/commit/2912fe3af6f29cde562a35e931bc2e3a0de470ed), [`ea1b10a2c`](https://github.com/aws-amplify/amplify-ui/commit/ea1b10a2c802b08ee019669ba442d7446f23bd05)]: + - @aws-amplify/ui@5.4.2 + ## 3.1.1 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index b66bb0f6871..c59f09acec6 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-vue", - "version": "3.1.1", + "version": "3.1.2", "type": "module", "main": "dist/index.cjs", "module": "dist/index.js", @@ -34,7 +34,7 @@ "test:unit:watch": "jest --watch" }, "dependencies": { - "@aws-amplify/ui": "5.4.1", + "@aws-amplify/ui": "5.4.2", "@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 5ea0b3edb16..124a6bc337a 100644 --- a/packages/vue/src/version.ts +++ b/packages/vue/src/version.ts @@ -1 +1 @@ -export const VERSION = '3.1.1'; +export const VERSION = '3.1.2'; From be2c495c9de9373080328996f09d485d0819a190 Mon Sep 17 00:00:00 2001 From: Chenwei Zhang <40295569+zchenwei@users.noreply.github.com> Date: Thu, 29 Dec 2022 17:15:07 -0800 Subject: [PATCH 4/4] chore: remove unused degit (#3243) --- packages/react/package.json | 1 - yarn.lock | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 09bd83ef1d9..fac08a1ec49 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -94,7 +94,6 @@ "@types/tinycolor2": "^1.4.3", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "degit": "^2.8.4", "esbuild-register": "^3.3.3", "eslint": "^8.13.0", "eslint-config-prettier": "^8.5.0", diff --git a/yarn.lock b/yarn.lock index c8b6a6058d0..2fd6043151e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12388,11 +12388,6 @@ define-property@^2.0.2: is-descriptor "^1.0.2" isobject "^3.0.1" -degit@^2.8.4: - version "2.8.4" - resolved "https://registry.yarnpkg.com/degit/-/degit-2.8.4.tgz#3bb9c5c00f157c44724dd4a50724e4aa75a54d38" - integrity sha512-vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng== - del@^2.2.0: version "2.2.2" resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8"