@aws-amplify/ui-react-native 0.0.0-next-1019db2-20230515214701 → 0.0.0-next-b3182f2-20230516210236

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +4 -5
  2. package/dist/InAppMessaging/components/BannerMessage/types.d.ts +1 -1
  3. package/dist/InAppMessaging/components/CarouselMessage/types.d.ts +1 -1
  4. package/dist/InAppMessaging/components/FullScreenMessage/types.d.ts +1 -1
  5. package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.js +1 -1
  6. package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.d.ts +1 -1
  7. package/dist/InAppMessaging/components/InAppMessageDisplay/types.d.ts +1 -1
  8. package/dist/InAppMessaging/components/MessageLayout/types.d.ts +1 -1
  9. package/dist/InAppMessaging/components/ModalMessage/types.d.ts +1 -1
  10. package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.js +1 -1
  11. package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +1 -1
  12. package/dist/InAppMessaging/hooks/useMessageImage/utils.d.ts +1 -1
  13. package/dist/InAppMessaging/hooks/useMessageProps/types.d.ts +1 -1
  14. package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +1 -1
  15. package/dist/InAppMessaging/hooks/useMessageProps/utils.d.ts +1 -1
  16. package/dist/InAppMessaging/index.d.ts +1 -1
  17. package/dist/InAppMessaging/index.js +1 -1
  18. package/package.json +3 -4
  19. package/src/InAppMessaging/components/BannerMessage/types.ts +1 -1
  20. package/src/InAppMessaging/components/CarouselMessage/CarouselMessage.tsx +1 -1
  21. package/src/InAppMessaging/components/CarouselMessage/types.ts +1 -1
  22. package/src/InAppMessaging/components/FullScreenMessage/types.ts +1 -1
  23. package/src/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.tsx +1 -1
  24. package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/InAppMessageDisplay.spec.tsx +2 -5
  25. package/src/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.ts +1 -1
  26. package/src/InAppMessaging/components/InAppMessageDisplay/types.ts +1 -1
  27. package/src/InAppMessaging/components/MessageLayout/types.ts +1 -1
  28. package/src/InAppMessaging/components/ModalMessage/types.ts +1 -1
  29. package/src/InAppMessaging/components/withInAppMessaging/withInAppMessaging.tsx +1 -1
  30. package/src/InAppMessaging/hooks/useMessageImage/__tests__/useMessageImage.spec.ts +1 -1
  31. package/src/InAppMessaging/hooks/useMessageImage/useMessageImage.ts +1 -4
  32. package/src/InAppMessaging/hooks/useMessageImage/utils.ts +1 -1
  33. package/src/InAppMessaging/hooks/useMessageProps/__tests__/useMessageProps.spec.ts +1 -1
  34. package/src/InAppMessaging/hooks/useMessageProps/__tests__/utils.spec.ts +1 -1
  35. package/src/InAppMessaging/hooks/useMessageProps/types.ts +1 -4
  36. package/src/InAppMessaging/hooks/useMessageProps/useMessageProps.ts +1 -1
  37. package/src/InAppMessaging/hooks/useMessageProps/utils.ts +1 -1
  38. package/src/InAppMessaging/index.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @aws-amplify/ui-react-native
2
2
 
3
- ## 0.0.0-next-1019db2-20230515214701
3
+ ## 0.0.0-next-b3182f2-20230516210236
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,10 +8,9 @@
8
8
 
9
9
  - [#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
10
10
 
11
- - Updated dependencies [[`64445ebbe`](https://github.com/aws-amplify/amplify-ui/commit/64445ebbee4dd6106375e809fb07cd21fdaff346), [`fca578782`](https://github.com/aws-amplify/amplify-ui/commit/fca57878265e35e48a64993d82fc386a91a62fc7), [`998a8c74f`](https://github.com/aws-amplify/amplify-ui/commit/998a8c74ff42c250d0d028efb20afa2d54528c86), [`82f3968b7`](https://github.com/aws-amplify/amplify-ui/commit/82f3968b7f750f069bda4ad7bfa9c34d7ee6091f)]:
12
- - @aws-amplify/ui@0.0.0-next-1019db2-20230515214701
13
- - @aws-amplify/ui-react-core@0.0.0-next-1019db2-20230515214701
14
- - @aws-amplify/ui-react-core-notifications@0.0.0-next-1019db2-20230515214701
11
+ - Updated dependencies [[`998a8c74f`](https://github.com/aws-amplify/amplify-ui/commit/998a8c74ff42c250d0d028efb20afa2d54528c86), [`82f3968b7`](https://github.com/aws-amplify/amplify-ui/commit/82f3968b7f750f069bda4ad7bfa9c34d7ee6091f)]:
12
+ - @aws-amplify/ui@0.0.0-next-b3182f2-20230516210236
13
+ - @aws-amplify/ui-react-core@0.0.0-next-b3182f2-20230516210236
15
14
 
16
15
  ## 1.2.15
17
16
 
@@ -1,5 +1,5 @@
1
1
  import { ViewStyle } from 'react-native';
2
- import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core';
3
3
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
4
4
  export interface BannerMessageProps extends BannerMessageCommonProps<MessageOverrideStyle | undefined> {
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
- import { CarouselMessageCommonProps, MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { CarouselMessageCommonProps, MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
3
3
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
4
4
  interface CarouselMessageOverrideStyle extends MessageOverrideStyle {
5
5
  pageIndicatorActive?: StyleProp<ViewStyle>;
@@ -1,4 +1,4 @@
1
- import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core';
2
2
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
3
3
  export interface FullScreenMessageProps extends FullScreenMessageCommonProps<MessageOverrideStyle | undefined> {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { handleMessageAction, useMessage, } from '@aws-amplify/ui-react-core-notifications';
2
+ import { handleMessageAction, useMessage, } from '@aws-amplify/ui-react-core';
3
3
  import { BannerMessage } from '../BannerMessage';
4
4
  import { FullScreenMessage } from '../FullScreenMessage';
5
5
  import { CarouselMessage } from '../CarouselMessage';
@@ -1,3 +1,3 @@
1
- import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
1
+ import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core';
2
2
  declare const handleMessageLinkAction: HandleMessageLinkAction;
3
3
  export default handleMessageLinkAction;
@@ -1,4 +1,4 @@
1
- import { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComponent, ModalMessageComponent } from '@aws-amplify/ui-react-core-notifications';
1
+ import { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComponent, ModalMessageComponent } from '@aws-amplify/ui-react-core';
2
2
  import { BannerMessageProps } from '../BannerMessage';
3
3
  import { CarouselMessageProps } from '../CarouselMessage';
4
4
  import { FullScreenMessageProps } from '../FullScreenMessage';
@@ -1,4 +1,4 @@
1
- import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
2
2
  import { DeviceOrientation } from '../../../hooks';
3
3
  import { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '../../hooks';
4
4
  export interface LayoutProps extends Omit<MessageComponentBaseProps<MessageOverrideStyle>, 'style'>, Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
@@ -1,4 +1,4 @@
1
- import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core';
2
2
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
3
3
  export interface ModalMessageProps extends ModalMessageCommonProps<MessageOverrideStyle | undefined> {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InAppMessagingProvider } from '@aws-amplify/ui-react-core-notifications';
2
+ import { InAppMessagingProvider } from '@aws-amplify/ui-react-core';
3
3
  import { InAppMessageDisplay } from '../InAppMessageDisplay';
4
4
  export default function withInAppMessaging(Component, options) {
5
5
  return function WrappedWithInAppMessaging(props) {
@@ -1,4 +1,4 @@
1
- import { MessageImage, MessageLayout } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageImage, MessageLayout } from '@aws-amplify/ui-react-core';
2
2
  import { UseMessageImage } from './types';
3
3
  /**
4
4
  * Handles prefetching and dimension setting for message images
@@ -1,4 +1,4 @@
1
- import { MessageLayout } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageLayout } from '@aws-amplify/ui-react-core';
2
2
  import { ImageDimensions, ImageLoadingState } from './types';
3
3
  export declare const prefetchNetworkImage: (url: string) => Promise<ImageLoadingState>;
4
4
  export declare const getLayoutImageDimensions: (imageHeight: number, imageWidth: number, layout: MessageLayout) => ImageDimensions;
@@ -1,5 +1,5 @@
1
1
  import { ColorValue, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
2
- import { MessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core';
3
3
  import { ButtonProps } from '../../../primitives';
4
4
  import { ImageDimensions } from '../useMessageImage';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
2
2
  import { GetDefaultStyle, MessageOverrideStyle, UseMessageProps } from './types';
3
3
  /**
4
4
  * Handle common message UI component prop logic including setting of image dimensions,
@@ -1,4 +1,4 @@
1
- import { MessageComponentBaseProps, MessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageComponentBaseProps, MessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core';
2
2
  import { MessageButtonStyleParams, MessageButtonStyleProps, MessageComponentStyles, MessageContainerAndWrapperStyle, MessageStyleParams } from './types';
3
3
  /**
4
4
  * Parse and assign appropriate button container and text style from style objects params
@@ -1,2 +1,2 @@
1
- export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core-notifications';
1
+ export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core';
2
2
  export { BannerMessageProps, CarouselMessageProps, FullScreenMessageProps, ModalMessageProps, InAppMessageDisplay, MessageComponents, withInAppMessaging, } from './components';
@@ -1,2 +1,2 @@
1
- export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core-notifications';
1
+ export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core';
2
2
  export { InAppMessageDisplay, withInAppMessaging, } from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "0.0.0-next-1019db2-20230515214701",
3
+ "version": "0.0.0-next-b3182f2-20230516210236",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,9 +37,8 @@
37
37
  "rimraf": "^3.0.2"
38
38
  },
39
39
  "dependencies": {
40
- "@aws-amplify/ui": "0.0.0-next-1019db2-20230515214701",
41
- "@aws-amplify/ui-react-core": "0.0.0-next-1019db2-20230515214701",
42
- "@aws-amplify/ui-react-core-notifications": "0.0.0-next-1019db2-20230515214701"
40
+ "@aws-amplify/ui": "0.0.0-next-b3182f2-20230516210236",
41
+ "@aws-amplify/ui-react-core": "0.0.0-next-b3182f2-20230516210236"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "aws-amplify": ">= 5.0.1",
@@ -1,5 +1,5 @@
1
1
  import { ViewStyle } from 'react-native';
2
- import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core';
3
3
 
4
4
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { MessageContentProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageContentProps } from '@aws-amplify/ui-react-core';
3
3
 
4
4
  import { Carousel } from '../../../primitives';
5
5
  import { IN_APP_MESSAGING_TEST_ID } from '../../constants';
@@ -3,7 +3,7 @@ import { StyleProp, ViewStyle } from 'react-native';
3
3
  import {
4
4
  CarouselMessageCommonProps,
5
5
  MessageComponentBaseProps,
6
- } from '@aws-amplify/ui-react-core-notifications';
6
+ } from '@aws-amplify/ui-react-core';
7
7
 
8
8
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
9
9
 
@@ -1,4 +1,4 @@
1
- import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core';
2
2
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
3
3
 
4
4
  export interface FullScreenMessageProps
@@ -4,7 +4,7 @@ import {
4
4
  handleMessageAction,
5
5
  OnMessageAction,
6
6
  useMessage,
7
- } from '@aws-amplify/ui-react-core-notifications';
7
+ } from '@aws-amplify/ui-react-core';
8
8
 
9
9
  import { BannerMessage } from '../BannerMessage';
10
10
  import { FullScreenMessage } from '../FullScreenMessage';
@@ -1,14 +1,11 @@
1
1
  import React from 'react';
2
2
  import { Text, View } from 'react-native';
3
3
  import { render } from '@testing-library/react-native';
4
- import {
5
- MessageLayout,
6
- useMessage,
7
- } from '@aws-amplify/ui-react-core-notifications';
4
+ import { MessageLayout, useMessage } from '@aws-amplify/ui-react-core';
8
5
 
9
6
  import InAppMessageDisplay from '../InAppMessageDisplay';
10
7
 
11
- jest.mock('@aws-amplify/ui-react-core-notifications');
8
+ jest.mock('@aws-amplify/ui-react-core');
12
9
 
13
10
  const mockUseMessage = useMessage as jest.Mock;
14
11
 
@@ -1,6 +1,6 @@
1
1
  import { Linking } from 'react-native';
2
2
  import { ConsoleLogger as Logger } from '@aws-amplify/core';
3
- import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
3
+ import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core';
4
4
 
5
5
  const logger = new Logger('Notifications.InAppMessaging');
6
6
 
@@ -3,7 +3,7 @@ import {
3
3
  CarouselMessageComponent,
4
4
  FullScreenMessageComponent,
5
5
  ModalMessageComponent,
6
- } from '@aws-amplify/ui-react-core-notifications';
6
+ } from '@aws-amplify/ui-react-core';
7
7
 
8
8
  import { BannerMessageProps } from '../BannerMessage';
9
9
  import { CarouselMessageProps } from '../CarouselMessage';
@@ -1,4 +1,4 @@
1
- import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
2
2
 
3
3
  import { DeviceOrientation } from '../../../hooks';
4
4
  import {
@@ -1,4 +1,4 @@
1
- import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
1
+ import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core';
2
2
 
3
3
  import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InAppMessagingProvider } from '@aws-amplify/ui-react-core-notifications';
2
+ import { InAppMessagingProvider } from '@aws-amplify/ui-react-core';
3
3
 
4
4
  import { InAppMessageDisplay, MessageComponents } from '../InAppMessageDisplay';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { Image } from 'react-native';
2
2
  import { renderHook } from '@testing-library/react-hooks';
3
3
  import { ConsoleLogger as Logger } from '@aws-amplify/core';
4
- import { MessageImage } from '@aws-amplify/ui-react-core-notifications';
4
+ import { MessageImage } from '@aws-amplify/ui-react-core';
5
5
 
6
6
  import { getLayoutImageDimensions, prefetchNetworkImage } from '../utils';
7
7
  import useMessageImage from '../useMessageImage';
@@ -2,10 +2,7 @@ import { useEffect, useRef, useState } from 'react';
2
2
  import { Image } from 'react-native';
3
3
 
4
4
  import { ConsoleLogger as Logger } from '@aws-amplify/core';
5
- import {
6
- MessageImage,
7
- MessageLayout,
8
- } from '@aws-amplify/ui-react-core-notifications';
5
+ import { MessageImage, MessageLayout } from '@aws-amplify/ui-react-core';
9
6
 
10
7
  import { ImageDimensions, ImagePrefetchStatus, UseMessageImage } from './types';
11
8
  import { getLayoutImageDimensions, prefetchNetworkImage } from './utils';
@@ -1,6 +1,6 @@
1
1
  import { Image } from 'react-native';
2
2
  import { ConsoleLogger as Logger } from '@aws-amplify/core';
3
- import { MessageLayout } from '@aws-amplify/ui-react-core-notifications';
3
+ import { MessageLayout } from '@aws-amplify/ui-react-core';
4
4
 
5
5
  import {
6
6
  BANNER_IMAGE_SCREEN_SIZE,
@@ -2,7 +2,7 @@ import { renderHook } from '@testing-library/react-hooks';
2
2
  import {
3
3
  MessageButtonProps,
4
4
  MessageComponentBaseProps,
5
- } from '@aws-amplify/ui-react-core-notifications';
5
+ } from '@aws-amplify/ui-react-core';
6
6
 
7
7
  import { useMessageImage } from '../../useMessageImage';
8
8
  import { MessageOverrideStyle } from '../types';
@@ -4,7 +4,7 @@ import {
4
4
  MessageComponentBaseProps,
5
5
  MessageLayout,
6
6
  MessageTextAlign,
7
- } from '@aws-amplify/ui-react-core-notifications';
7
+ } from '@aws-amplify/ui-react-core';
8
8
  import { BUTTON_PRESSED_OPACITY } from '../../../constants';
9
9
  import { MessageDefaultStyle } from '../types';
10
10
  import { StyleParams } from '../types';
@@ -5,10 +5,7 @@ import {
5
5
  TextStyle,
6
6
  ViewStyle,
7
7
  } from 'react-native';
8
- import {
9
- MessageLayout,
10
- MessagePayloadStyle,
11
- } from '@aws-amplify/ui-react-core-notifications';
8
+ import { MessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core';
12
9
 
13
10
  import { ButtonProps } from '../../../primitives';
14
11
 
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useMemo, useRef } from 'react';
2
2
  import { isEmpty } from '@aws-amplify/ui';
3
- import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
3
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core';
4
4
 
5
5
  import { useMessageImage } from '../useMessageImage';
6
6
  import {
@@ -4,7 +4,7 @@ import {
4
4
  MessageComponentBaseProps,
5
5
  MessageLayout,
6
6
  MessagePayloadStyle,
7
- } from '@aws-amplify/ui-react-core-notifications';
7
+ } from '@aws-amplify/ui-react-core';
8
8
 
9
9
  import { DEFAULT_CAROUSEL_INDICATOR_SIZE } from '../../../primitives';
10
10
  import { BUTTON_PRESSED_OPACITY, SPACING_EXTRA_LARGE } from '../../constants';
@@ -1,7 +1,7 @@
1
1
  export {
2
2
  InAppMessagingProvider,
3
3
  useInAppMessaging,
4
- } from '@aws-amplify/ui-react-core-notifications';
4
+ } from '@aws-amplify/ui-react-core';
5
5
 
6
6
  export {
7
7
  BannerMessageProps,