@aws-amplify/ui-react-liveness 3.3.2 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  import { isAndroidChromeWithBrokenH264 } from '../../utils/device.mjs';
2
2
 
3
+ // Equivalent to 2 Kbps - needed for maintaining video quality at 60 FPS
4
+ const BITS_PER_SECOND = 2000000;
3
5
  // Only to be used with Chrome for the Android Chrome H264 Bug - https://issues.chromium.org/issues/343199623
4
6
  const ALTERNATE_CHROME_MIME_TYPE = 'video/x-matroska;codecs=vp8';
5
7
  /**
@@ -13,7 +15,7 @@ class VideoRecorder {
13
15
  this._stream = stream;
14
16
  this._chunks = [];
15
17
  this._recorder = new MediaRecorder(stream, {
16
- bitsPerSecond: 1000000,
18
+ bitsPerSecond: BITS_PER_SECOND,
17
19
  mimeType: isAndroidChromeWithBrokenH264()
18
20
  ? ALTERNATE_CHROME_MIME_TYPE
19
21
  : undefined,
@@ -7,7 +7,7 @@ const STATIC_VIDEO_CONSTRAINTS = {
7
7
  min: 240,
8
8
  ideal: 480,
9
9
  },
10
- frameRate: { min: 15, ideal: 30, max: 30 },
10
+ frameRate: { min: 15, ideal: 30, max: 60 },
11
11
  facingMode: 'user',
12
12
  };
13
13
 
@@ -1,3 +1,3 @@
1
- const VERSION = '3.3.2';
1
+ const VERSION = '3.3.4';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -673,6 +673,8 @@ function isAndroidChromeWithBrokenH264() {
673
673
  parseInt(minorVersion) < 146);
674
674
  }
675
675
 
676
+ // Equivalent to 2 Kbps - needed for maintaining video quality at 60 FPS
677
+ const BITS_PER_SECOND = 2000000;
676
678
  // Only to be used with Chrome for the Android Chrome H264 Bug - https://issues.chromium.org/issues/343199623
677
679
  const ALTERNATE_CHROME_MIME_TYPE = 'video/x-matroska;codecs=vp8';
678
680
  /**
@@ -686,7 +688,7 @@ class VideoRecorder {
686
688
  this._stream = stream;
687
689
  this._chunks = [];
688
690
  this._recorder = new MediaRecorder(stream, {
689
- bitsPerSecond: 1000000,
691
+ bitsPerSecond: BITS_PER_SECOND,
690
692
  mimeType: isAndroidChromeWithBrokenH264()
691
693
  ? ALTERNATE_CHROME_MIME_TYPE
692
694
  : undefined,
@@ -830,7 +832,7 @@ function getFaceMatchStateInLivenessOval({ face, ovalDetails, initialFaceInterse
830
832
  return { faceMatchState, faceMatchPercentage };
831
833
  }
832
834
 
833
- const VERSION = '3.3.2';
835
+ const VERSION = '3.3.4';
834
836
 
835
837
  const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
836
838
  const getLivenessUserAgent = () => {
@@ -1409,7 +1411,7 @@ const STATIC_VIDEO_CONSTRAINTS = {
1409
1411
  min: 240,
1410
1412
  ideal: 480,
1411
1413
  },
1412
- frameRate: { min: 15, ideal: 30, max: 30 },
1414
+ frameRate: { min: 15, ideal: 30, max: 60 },
1413
1415
  facingMode: 'user',
1414
1416
  };
1415
1417
 
package/dist/styles.css CHANGED
@@ -50,7 +50,8 @@
50
50
  --amplify-components-ai-conversation-attachment-padding-block: var(--amplify-space-xxxs);
51
51
  --amplify-components-ai-conversation-attachment-padding-inline: var(--amplify-space-xs);
52
52
  --amplify-components-ai-conversation-attachment-gap: var(--amplify-space-xs);
53
- --amplify-components-ai-conversation-attachment-list-padding-block-start: var(--amplify-space-xs);
53
+ --amplify-components-ai-conversation-attachment-list-padding: var(--amplify-space-xs);
54
+ --amplify-components-ai-conversation-attachment-list-padding-block-start: 0;
54
55
  --amplify-components-ai-conversation-attachment-list-gap: var(--amplify-space-xxs);
55
56
  --amplify-components-ai-conversation-attachment-name-color: var(--amplify-colors-font-primary);
56
57
  --amplify-components-ai-conversation-attachment-name-font-size: var(--amplify-font-sizes-small);
@@ -3077,6 +3078,7 @@ strong.amplify-text {
3077
3078
  -moz-user-select: text;
3078
3079
  user-select: text;
3079
3080
  white-space: pre-wrap;
3081
+ max-height: 100%;
3080
3082
  }
3081
3083
  .amplify-textarea:focus {
3082
3084
  border-color: var(--amplify-components-fieldcontrol-focus-border-color);
@@ -5802,6 +5804,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
5802
5804
  }
5803
5805
 
5804
5806
  .amplify-textareafield {
5807
+ max-height: 100%;
5805
5808
  flex-direction: column;
5806
5809
  --amplify-components-fieldcontrol-color: var(
5807
5810
  --amplify-components-textareafield-color
@@ -6837,16 +6840,24 @@ html[dir=rtl] .amplify-field-group__inner-start {
6837
6840
  --internal-flex-direction: row;
6838
6841
  --internal-body-align-items: flex-start;
6839
6842
  }
6843
+ .amplify-ai-conversation__scrollview {
6844
+ flex: 1 0 50%;
6845
+ }
6840
6846
  .amplify-ai-conversation__form {
6841
6847
  display: flex;
6842
6848
  flex-direction: row;
6843
6849
  align-items: flex-start;
6850
+ padding: var(--amplify-components-ai-conversation-form-padding);
6844
6851
  gap: var(--amplify-components-ai-conversation-form-gap);
6852
+ max-height: 100%;
6853
+ overflow: hidden;
6845
6854
  }
6846
6855
  .amplify-ai-conversation__form__dropzone {
6847
6856
  text-align: initial;
6848
6857
  border: none;
6849
- padding: var(--amplify-components-ai-conversation-form-padding);
6858
+ padding: 0;
6859
+ display: grid;
6860
+ overflow: hidden;
6850
6861
  }
6851
6862
  .amplify-ai-conversation__form__error {
6852
6863
  padding: 0;
@@ -6871,6 +6882,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
6871
6882
  flex-direction: row;
6872
6883
  flex-wrap: wrap;
6873
6884
  gap: var(--amplify-components-ai-conversation-attachment-list-gap);
6885
+ padding: var(--amplify-components-ai-conversation-attachment-list-padding);
6874
6886
  padding-block-start: var(--amplify-components-ai-conversation-attachment-list-padding-block-start);
6875
6887
  }
6876
6888
  .amplify-ai-conversation__attachment__image {
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.2";
1
+ export declare const VERSION = "3.3.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-liveness",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -48,8 +48,8 @@
48
48
  "react-dom": "^16.14 || ^17 || ^18 || ^19"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-amplify/ui": "6.8.2",
52
- "@aws-amplify/ui-react": "6.9.2",
51
+ "@aws-amplify/ui": "6.9.1",
52
+ "@aws-amplify/ui-react": "6.9.4",
53
53
  "@aws-sdk/client-rekognitionstreaming": "3.621.0",
54
54
  "@aws-sdk/util-format-url": "3.609.0",
55
55
  "@smithy/eventstream-serde-browser": "^2.0.4",