@aws-amplify/ui-react-native 1.2.15 → 1.2.17

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @aws-amplify/ui-react-native
2
2
 
3
+ ## 1.2.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`62425139f`](https://github.com/aws-amplify/amplify-ui/commit/62425139fb5e41a3b36b46aac1d31b965a2739fc)]:
8
+ - @aws-amplify/ui@5.6.3
9
+ - @aws-amplify/ui-react-core@2.1.22
10
+
11
+ ## 1.2.16
12
+
13
+ ### Patch Changes
14
+
15
+ - [#3806](https://github.com/aws-amplify/amplify-ui/pull/3806) [`998a8c74f`](https://github.com/aws-amplify/amplify-ui/commit/998a8c74ff42c250d0d028efb20afa2d54528c86) Thanks [@calebpollman](https://github.com/calebpollman)! - fix(ui): add event callbacks to defaultAuthHubHandler
16
+
17
+ - Updated dependencies [[`998a8c74f`](https://github.com/aws-amplify/amplify-ui/commit/998a8c74ff42c250d0d028efb20afa2d54528c86), [`82f3968b7`](https://github.com/aws-amplify/amplify-ui/commit/82f3968b7f750f069bda4ad7bfa9c34d7ee6091f)]:
18
+ - @aws-amplify/ui-react-core@2.1.21
19
+ - @aws-amplify/ui@5.6.2
20
+
3
21
  ## 1.2.15
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -7,7 +7,7 @@ Amplify UI is an open-source UI library with cloud-connected components that are
7
7
  3. Data-bound components that make it easy to display dynamic data, like DataStoreCollections.
8
8
  4. Theming capabilities that allow you to customize the appearance of Amplify UI to match your brand.
9
9
 
10
- ## React Native Documentation
10
+ ## React Native Documentation 📖
11
11
 
12
12
  - https://ui.docs.amplify.aws/react-native
13
13
 
@@ -18,6 +18,6 @@ Amplify UI is an open-source UI library with cloud-connected components that are
18
18
  - **Accessible** Amplify UI components follow [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) and [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) best practices and guidelines such as color contrast, keyboard navigation, accessible labels, and focus management.
19
19
  - **Primitive components (React only right now)** Primitive components are used in the connected components, like Authenticator, you can also customize them and use them to build the rest of your UI.
20
20
 
21
- ## We love contributors!!
21
+ ## We love contributors!!
22
22
 
23
23
  See our contributing guide [CONTRIBUTING.md](/CONTRIBUTING.md) to help us scale Amplify UI!
@@ -11,6 +11,6 @@ export default function BannerMessage({ position = 'top', ...props }) {
11
11
  }
12
12
  const { wrapper, ...messageStyles } = styles;
13
13
  return (<MessageWrapper style={wrapper}>
14
- <MessageLayout {...props} {...messageProps} orientation="landscape" styles={messageStyles}/>
14
+ <MessageLayout {...props} {...messageProps} orientation="landscape" styles={messageStyles} testID={`inappmessaging-${position}banner-dialog`}/>
15
15
  </MessageWrapper>);
16
16
  }
@@ -13,6 +13,6 @@ export default function FullScreenMessage(props) {
13
13
  }
14
14
  const { wrapper, ...messageStyles } = styles;
15
15
  return (<MessageWrapper style={wrapper}>
16
- <MessageLayout {...props} {...messageProps} orientation={deviceOrientation} styles={messageStyles}/>
16
+ <MessageLayout {...props} {...messageProps} orientation={deviceOrientation} styles={messageStyles} testID={`inappmessaging-fullscreen-dialog`}/>
17
17
  </MessageWrapper>);
18
18
  }
@@ -4,9 +4,9 @@ import { icons } from '../../../assets';
4
4
  import { Button, IconButton } from '../../../primitives';
5
5
  import { ICON_BUTTON_HIT_SLOP, ICON_BUTTON_SIZE, IN_APP_MESSAGING_TEST_ID, } from '../../constants';
6
6
  export default function MessageLayout({ orientation, ...props }) {
7
- const { body, hasButtons, hasPrimaryButton, hasRenderableImage, hasSecondaryButton, header, image, onClose, primaryButton, secondaryButton, styles, } = props;
7
+ const { body, hasButtons, hasPrimaryButton, hasRenderableImage, hasSecondaryButton, header, image, onClose, primaryButton, secondaryButton, styles, testID, } = props;
8
8
  const iconButton = (<IconButton color={styles.iconButton.iconColor} hitSlop={ICON_BUTTON_HIT_SLOP} onPress={onClose} size={ICON_BUTTON_SIZE} source={icons.close} style={styles.iconButton.container} testID={IN_APP_MESSAGING_TEST_ID.CLOSE_BUTTON}/>);
9
- return (<View style={styles.container}>
9
+ return (<View style={styles.container} testID={testID}>
10
10
  <View style={styles.contentContainer}>
11
11
  {orientation === 'portrait' && iconButton}
12
12
  {hasRenderableImage && (<View style={styles.imageContainer}>
@@ -4,4 +4,5 @@ import { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '.
4
4
  export interface LayoutProps extends Omit<MessageComponentBaseProps<MessageOverrideStyle>, 'style'>, Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
5
5
  orientation: DeviceOrientation;
6
6
  styles: Omit<MessageComponentStyles, 'wrapper'>;
7
+ testID?: string;
7
8
  }
@@ -13,6 +13,6 @@ export default function ModalMessage(props) {
13
13
  }
14
14
  const { wrapper, ...messageStyles } = styles;
15
15
  return (<MessageWrapper style={wrapper}>
16
- <MessageLayout {...props} {...messageProps} orientation={deviceOrientation} styles={messageStyles}/>
16
+ <MessageLayout {...props} {...messageProps} orientation={deviceOrientation} styles={messageStyles} testID={`inappmessaging-modal-dialog`}/>
17
17
  </MessageWrapper>);
18
18
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.2.15";
1
+ export declare const VERSION = "1.2.17";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.15';
1
+ export const VERSION = '1.2.17';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  "rimraf": "^3.0.2"
38
38
  },
39
39
  "dependencies": {
40
- "@aws-amplify/ui": "5.6.1",
41
- "@aws-amplify/ui-react-core": "2.1.20"
40
+ "@aws-amplify/ui": "5.6.3",
41
+ "@aws-amplify/ui-react-core": "2.1.22"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "aws-amplify": ">= 5.0.1",
@@ -31,6 +31,7 @@ export default function BannerMessage({
31
31
  {...messageProps}
32
32
  orientation="landscape"
33
33
  styles={messageStyles}
34
+ testID={`inappmessaging-${position}banner-dialog`}
34
35
  />
35
36
  </MessageWrapper>
36
37
  );
@@ -29,6 +29,7 @@ exports[`BannerMessage correctly handles a primaryButton button prop 1`] = `
29
29
  Object {},
30
30
  ]
31
31
  }
32
+ testID="inappmessaging-topbanner-dialog"
32
33
  >
33
34
  <View
34
35
  style={
@@ -215,6 +216,7 @@ exports[`BannerMessage correctly handles a secondaryButton button prop 1`] = `
215
216
  Object {},
216
217
  ]
217
218
  }
219
+ testID="inappmessaging-topbanner-dialog"
218
220
  >
219
221
  <View
220
222
  style={
@@ -401,6 +403,7 @@ exports[`BannerMessage renders a message as expected with an image 1`] = `
401
403
  Object {},
402
404
  ]
403
405
  }
406
+ testID="inappmessaging-topbanner-dialog"
404
407
  >
405
408
  <View
406
409
  style={
@@ -534,6 +537,7 @@ exports[`BannerMessage renders a message as expected without an image 1`] = `
534
537
  Object {},
535
538
  ]
536
539
  }
540
+ testID="inappmessaging-topbanner-dialog"
537
541
  >
538
542
  <View
539
543
  style={
@@ -32,6 +32,7 @@ export default function FullScreenMessage(
32
32
  {...messageProps}
33
33
  orientation={deviceOrientation}
34
34
  styles={messageStyles}
35
+ testID={`inappmessaging-fullscreen-dialog`}
35
36
  />
36
37
  </MessageWrapper>
37
38
  );
@@ -115,6 +115,7 @@ exports[`FullScreenMessage renders as expected in landscape mode 1`] = `
115
115
  },
116
116
  }
117
117
  }
118
+ testID="inappmessaging-fullscreen-dialog"
118
119
  />
119
120
  </MessageWrapper>
120
121
  `;
@@ -231,6 +232,7 @@ exports[`FullScreenMessage renders as expected in portrait mode 1`] = `
231
232
  },
232
233
  }
233
234
  }
235
+ testID="inappmessaging-fullscreen-dialog"
234
236
  />
235
237
  </MessageWrapper>
236
238
  `;
@@ -29,6 +29,7 @@ export default function MessageLayout({
29
29
  primaryButton,
30
30
  secondaryButton,
31
31
  styles,
32
+ testID,
32
33
  } = props;
33
34
 
34
35
  const iconButton = (
@@ -44,7 +45,7 @@ export default function MessageLayout({
44
45
  );
45
46
 
46
47
  return (
47
- <View style={styles.container}>
48
+ <View style={styles.container} testID={testID}>
48
49
  <View style={styles.contentContainer}>
49
50
  {orientation === 'portrait' && iconButton}
50
51
  {hasRenderableImage && (
@@ -12,4 +12,5 @@ export interface LayoutProps
12
12
  Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
13
13
  orientation: DeviceOrientation;
14
14
  styles: Omit<MessageComponentStyles, 'wrapper'>;
15
+ testID?: string;
15
16
  }
@@ -31,6 +31,7 @@ export default function ModalMessage(
31
31
  {...messageProps}
32
32
  orientation={deviceOrientation}
33
33
  styles={messageStyles}
34
+ testID={`inappmessaging-modal-dialog`}
34
35
  />
35
36
  </MessageWrapper>
36
37
  );
@@ -29,6 +29,7 @@ exports[`ModalMessage correctly handles a primaryButton prop 1`] = `
29
29
  Object {},
30
30
  ]
31
31
  }
32
+ testID="inappmessaging-modal-dialog"
32
33
  >
33
34
  <View
34
35
  style={
@@ -215,6 +216,7 @@ exports[`ModalMessage correctly handles a secondaryButton prop 1`] = `
215
216
  Object {},
216
217
  ]
217
218
  }
219
+ testID="inappmessaging-modal-dialog"
218
220
  >
219
221
  <View
220
222
  style={
@@ -401,6 +403,7 @@ exports[`ModalMessage renders a message as expected with an image 1`] = `
401
403
  Object {},
402
404
  ]
403
405
  }
406
+ testID="inappmessaging-modal-dialog"
404
407
  >
405
408
  <View
406
409
  style={
@@ -534,6 +537,7 @@ exports[`ModalMessage renders as expected in landscape mode 1`] = `
534
537
  Object {},
535
538
  ]
536
539
  }
540
+ testID="inappmessaging-modal-dialog"
537
541
  >
538
542
  <View
539
543
  style={
@@ -644,6 +648,7 @@ exports[`ModalMessage renders as expected in portrait mode 1`] = `
644
648
  Object {},
645
649
  ]
646
650
  }
651
+ testID="inappmessaging-modal-dialog"
647
652
  >
648
653
  <View
649
654
  style={
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.15';
1
+ export const VERSION = '1.2.17';