@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.
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/InAppMessaging/Backdrop/Backdrop.d.ts +2 -2
- package/dist/types/components/InAppMessaging/Backdrop/types.d.ts +0 -1
- package/dist/types/components/InAppMessaging/Backdrop/withBackdrop.d.ts +2 -2
- package/dist/types/components/InAppMessaging/BannerMessage/BannerMessage.d.ts +2 -2
- package/dist/types/components/InAppMessaging/CloseIconButton/CloseIconButton.d.ts +2 -2
- package/dist/types/components/InAppMessaging/FullScreenMessage/FullScreenMessage.d.ts +2 -2
- package/dist/types/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.d.ts +2 -2
- package/dist/types/components/InAppMessaging/MessageLayout/MessageLayout.d.ts +2 -2
- package/dist/types/components/InAppMessaging/ModalMessage/ModalMessage.d.ts +2 -2
- package/dist/types/components/InAppMessaging/hooks/useMessageProps/types.d.ts +0 -1
- package/dist/types/components/InAppMessaging/withInAppMessaging/withInAppMessaging.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -7
package/dist/esm/version.mjs
CHANGED
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.
|
|
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
|
-
|
|
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,3 +1,3 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
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.
|
|
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.
|
|
43
|
-
"@aws-amplify/ui-react": "6.
|
|
44
|
-
"@aws-amplify/ui-react-core": "3.
|
|
45
|
-
"@aws-amplify/ui-react-core-notifications": "2.
|
|
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
|
|
51
|
-
"react-dom": "^16.14
|
|
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"
|