@aws-amplify/ui-react-notifications 2.1.1 → 2.2.0

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,3 +1,3 @@
1
- const VERSION = '2.1.1';
1
+ const VERSION = '2.2.0';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -332,7 +332,7 @@ const handleMessageLinkAction = (input) => {
332
332
  window.open(input);
333
333
  };
334
334
 
335
- const VERSION = '2.1.1';
335
+ const VERSION = '2.2.0';
336
336
 
337
337
  // TODO: replace below components incrementally as they become available
338
338
  function CarouselMessage(_) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BackdropProps } from './types';
3
3
  export declare const BACKDROP_TEST_ID = "inappmessaging-backdrop";
4
- export declare function Backdrop({ onClick, ...rest }: BackdropProps): JSX.Element;
4
+ export declare function Backdrop({ onClick, ...rest }: BackdropProps): React.JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ViewProps } from '@aws-amplify/ui-react';
3
2
  export interface BackdropProps extends ViewProps {
4
3
  /**
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BackdropProps } from './types';
3
- export declare function withBackdrop<Props>(Content: (props: Props) => JSX.Element, options?: BackdropProps): (props: Props) => JSX.Element;
3
+ export declare function withBackdrop<Props>(Content: (props: Props) => React.JSX.Element, options?: BackdropProps): (props: Props) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BannerMessageProps } from './types';
3
- export declare function BannerMessage(props: BannerMessageProps): JSX.Element | null;
3
+ export declare function BannerMessage(props: BannerMessageProps): React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { CloseIconButtonProps } from './types';
3
- export declare function CloseIconButton({ className, dismissButtonLabel, onClick, style, ...rest }: CloseIconButtonProps): JSX.Element;
3
+ export declare function CloseIconButton({ className, dismissButtonLabel, onClick, style, ...rest }: CloseIconButtonProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { FullScreenMessageProps } from './types';
3
- export declare function FullScreenMessage(props: FullScreenMessageProps): JSX.Element | null;
3
+ export declare function FullScreenMessage(props: FullScreenMessageProps): React.JSX.Element | null;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { InAppMessageDisplayProps } from './types';
3
- declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps): JSX.Element;
3
+ declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps): React.JSX.Element;
4
4
  declare namespace InAppMessageDisplay {
5
5
  var BannerMessage: typeof import("../BannerMessage").BannerMessage;
6
6
  var CarouselMessage: <P>(_: P) => null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { MessageLayoutProps } from './types';
3
- export declare function MessageLayout({ body, buttonSize, hasRenderableImage, header, image, onClose, orientation, primaryButton, secondaryButton, styles, }: MessageLayoutProps): JSX.Element;
3
+ export declare function MessageLayout({ body, buttonSize, hasRenderableImage, header, image, onClose, orientation, primaryButton, secondaryButton, styles, }: MessageLayoutProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { ModalMessageProps } from './types';
3
- export declare function ModalMessage(props: ModalMessageProps): JSX.Element | null;
3
+ export declare function ModalMessage(props: ModalMessageProps): React.JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
3
2
  /**
4
3
  * Inline style props for message components. Can be overridden by customer
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { MessageComponents } from '../InAppMessageDisplay';
3
3
  export default function withInAppMessaging<Props = {}>(Component: React.ComponentType<Props>, options?: {
4
4
  components?: MessageComponents;
5
- }): (props: Props) => JSX.Element;
5
+ }): (props: Props) => React.JSX.Element;
@@ -1 +1 @@
1
- export declare const VERSION = "2.1.1";
1
+ export declare const VERSION = "2.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-notifications",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -39,16 +39,16 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@aws-amplify/ui": "6.7.2",
43
- "@aws-amplify/ui-react": "6.8.1",
44
- "@aws-amplify/ui-react-core": "3.2.1",
45
- "@aws-amplify/ui-react-core-notifications": "2.1.1",
42
+ "@aws-amplify/ui": "6.8.0",
43
+ "@aws-amplify/ui-react": "6.9.0",
44
+ "@aws-amplify/ui-react-core": "3.3.0",
45
+ "@aws-amplify/ui-react-core-notifications": "2.2.0",
46
46
  "tinycolor2": "1.4.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "aws-amplify": "^6.9.0",
50
- "react": "^16.14.0 || ^17.0 || ^18.0",
51
- "react-dom": "^16.14.0 || ^17.0 || ^18.0"
50
+ "react": "^16.14 || ^17 || ^18 || ^19",
51
+ "react-dom": "^16.14 || ^17 || ^18 || ^19"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/tinycolor2": "^1.4.3"