@aws-amplify/ui-react-notifications 2.1.0 → 2.1.1
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 +1 -0
- 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 +1 -0
- package/dist/types/components/InAppMessaging/withInAppMessaging/withInAppMessaging.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
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.1.
|
|
335
|
+
const VERSION = '2.1.1';
|
|
336
336
|
|
|
337
337
|
// TODO: replace below components incrementally as they become available
|
|
338
338
|
function CarouselMessage(_) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="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):
|
|
4
|
+
export declare function Backdrop({ onClick, ...rest }: BackdropProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { BackdropProps } from './types';
|
|
3
|
-
export declare function withBackdrop<Props>(Content: (props: Props) =>
|
|
3
|
+
export declare function withBackdrop<Props>(Content: (props: Props) => JSX.Element, options?: BackdropProps): (props: Props) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { BannerMessageProps } from './types';
|
|
3
|
-
export declare function BannerMessage(props: BannerMessageProps):
|
|
3
|
+
export declare function BannerMessage(props: BannerMessageProps): JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { CloseIconButtonProps } from './types';
|
|
3
|
-
export declare function CloseIconButton({ className, dismissButtonLabel, onClick, style, ...rest }: CloseIconButtonProps):
|
|
3
|
+
export declare function CloseIconButton({ className, dismissButtonLabel, onClick, style, ...rest }: CloseIconButtonProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { FullScreenMessageProps } from './types';
|
|
3
|
-
export declare function FullScreenMessage(props: FullScreenMessageProps):
|
|
3
|
+
export declare function FullScreenMessage(props: FullScreenMessageProps): JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InAppMessageDisplayProps } from './types';
|
|
3
|
-
declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps):
|
|
3
|
+
declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps): 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
|
+
/// <reference types="react" />
|
|
2
2
|
import { MessageLayoutProps } from './types';
|
|
3
|
-
export declare function MessageLayout({ body, buttonSize, hasRenderableImage, header, image, onClose, orientation, primaryButton, secondaryButton, styles, }: MessageLayoutProps):
|
|
3
|
+
export declare function MessageLayout({ body, buttonSize, hasRenderableImage, header, image, onClose, orientation, primaryButton, secondaryButton, styles, }: MessageLayoutProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ModalMessageProps } from './types';
|
|
3
|
-
export declare function ModalMessage(props: ModalMessageProps):
|
|
3
|
+
export declare function ModalMessage(props: ModalMessageProps): 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) =>
|
|
5
|
+
}): (props: Props) => JSX.Element;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.
|
|
1
|
+
export declare const VERSION = "2.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-notifications",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@aws-amplify/ui": "6.7.2",
|
|
43
|
-
"@aws-amplify/ui-react": "6.8.
|
|
44
|
-
"@aws-amplify/ui-react-core": "3.2.
|
|
45
|
-
"@aws-amplify/ui-react-core-notifications": "2.1.
|
|
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",
|
|
46
46
|
"tinycolor2": "1.4.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"aws-amplify": "^6.9.0",
|
|
50
|
-
"react": "^16.14 || ^17 || ^18
|
|
51
|
-
"react-dom": "^16.14 || ^17 || ^18
|
|
50
|
+
"react": "^16.14.0 || ^17.0 || ^18.0",
|
|
51
|
+
"react-dom": "^16.14.0 || ^17.0 || ^18.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/tinycolor2": "^1.4.3"
|