@aws-amplify/ui-react-notifications 0.0.0-next-9e70d7e-20230511220500

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 (68) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +23 -0
  3. package/dist/esm/components/InAppMessaging/Backdrop/Backdrop.mjs +1 -0
  4. package/dist/esm/components/InAppMessaging/Backdrop/withBackdrop.mjs +1 -0
  5. package/dist/esm/components/InAppMessaging/BannerMessage/BannerMessage.mjs +1 -0
  6. package/dist/esm/components/InAppMessaging/BannerMessage/constants.mjs +1 -0
  7. package/dist/esm/components/InAppMessaging/CloseIconButton/CloseIconButton.mjs +1 -0
  8. package/dist/esm/components/InAppMessaging/FullScreenMessage/FullScreenMessage.mjs +1 -0
  9. package/dist/esm/components/InAppMessaging/FullScreenMessage/constants.mjs +1 -0
  10. package/dist/esm/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.mjs +1 -0
  11. package/dist/esm/components/InAppMessaging/InAppMessageDisplay/handleMessageLinkAction.mjs +1 -0
  12. package/dist/esm/components/InAppMessaging/MessageLayout/MessageLayout.mjs +1 -0
  13. package/dist/esm/components/InAppMessaging/MessageLayout/constants.mjs +1 -0
  14. package/dist/esm/components/InAppMessaging/MessageLayout/utils.mjs +1 -0
  15. package/dist/esm/components/InAppMessaging/ModalMessage/ModalMessage.mjs +1 -0
  16. package/dist/esm/components/InAppMessaging/ModalMessage/constants.mjs +1 -0
  17. package/dist/esm/components/InAppMessaging/hooks/useMessageImage/types.mjs +1 -0
  18. package/dist/esm/components/InAppMessaging/hooks/useMessageImage/useMessageImage.mjs +1 -0
  19. package/dist/esm/components/InAppMessaging/hooks/useMessageProps/useMessageProps.mjs +1 -0
  20. package/dist/esm/components/InAppMessaging/hooks/useMessageProps/utils.mjs +1 -0
  21. package/dist/esm/components/InAppMessaging/withInAppMessaging/withInAppMessaging.mjs +1 -0
  22. package/dist/esm/index.mjs +1 -0
  23. package/dist/esm/node_modules/tslib/tslib.es6.mjs +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/styles.css +5028 -0
  26. package/dist/styles.js +2 -0
  27. package/dist/types/components/InAppMessaging/Backdrop/Backdrop.d.ts +4 -0
  28. package/dist/types/components/InAppMessaging/Backdrop/index.d.ts +2 -0
  29. package/dist/types/components/InAppMessaging/Backdrop/types.d.ts +8 -0
  30. package/dist/types/components/InAppMessaging/Backdrop/withBackdrop.d.ts +3 -0
  31. package/dist/types/components/InAppMessaging/BannerMessage/BannerMessage.d.ts +3 -0
  32. package/dist/types/components/InAppMessaging/BannerMessage/constants.d.ts +1 -0
  33. package/dist/types/components/InAppMessaging/BannerMessage/index.d.ts +2 -0
  34. package/dist/types/components/InAppMessaging/BannerMessage/types.d.ts +7 -0
  35. package/dist/types/components/InAppMessaging/CloseIconButton/CloseIconButton.d.ts +3 -0
  36. package/dist/types/components/InAppMessaging/CloseIconButton/index.d.ts +1 -0
  37. package/dist/types/components/InAppMessaging/CloseIconButton/types.d.ts +8 -0
  38. package/dist/types/components/InAppMessaging/FullScreenMessage/FullScreenMessage.d.ts +3 -0
  39. package/dist/types/components/InAppMessaging/FullScreenMessage/constants.d.ts +1 -0
  40. package/dist/types/components/InAppMessaging/FullScreenMessage/index.d.ts +2 -0
  41. package/dist/types/components/InAppMessaging/FullScreenMessage/types.d.ts +4 -0
  42. package/dist/types/components/InAppMessaging/InAppMessageDisplay/InAppMessageDisplay.d.ts +10 -0
  43. package/dist/types/components/InAppMessaging/InAppMessageDisplay/handleMessageLinkAction.d.ts +3 -0
  44. package/dist/types/components/InAppMessaging/InAppMessageDisplay/index.d.ts +2 -0
  45. package/dist/types/components/InAppMessaging/InAppMessageDisplay/types.d.ts +23 -0
  46. package/dist/types/components/InAppMessaging/MessageLayout/MessageLayout.d.ts +3 -0
  47. package/dist/types/components/InAppMessaging/MessageLayout/constants.d.ts +16 -0
  48. package/dist/types/components/InAppMessaging/MessageLayout/index.d.ts +1 -0
  49. package/dist/types/components/InAppMessaging/MessageLayout/types.d.ts +23 -0
  50. package/dist/types/components/InAppMessaging/MessageLayout/utils.d.ts +13 -0
  51. package/dist/types/components/InAppMessaging/ModalMessage/ModalMessage.d.ts +3 -0
  52. package/dist/types/components/InAppMessaging/ModalMessage/constants.d.ts +2 -0
  53. package/dist/types/components/InAppMessaging/ModalMessage/index.d.ts +2 -0
  54. package/dist/types/components/InAppMessaging/ModalMessage/types.d.ts +4 -0
  55. package/dist/types/components/InAppMessaging/hooks/index.d.ts +2 -0
  56. package/dist/types/components/InAppMessaging/hooks/useMessageImage/index.d.ts +1 -0
  57. package/dist/types/components/InAppMessaging/hooks/useMessageImage/types.d.ts +10 -0
  58. package/dist/types/components/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +9 -0
  59. package/dist/types/components/InAppMessaging/hooks/useMessageProps/index.d.ts +2 -0
  60. package/dist/types/components/InAppMessaging/hooks/useMessageProps/types.d.ts +39 -0
  61. package/dist/types/components/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +11 -0
  62. package/dist/types/components/InAppMessaging/hooks/useMessageProps/utils.d.ts +23 -0
  63. package/dist/types/components/InAppMessaging/index.d.ts +6 -0
  64. package/dist/types/components/InAppMessaging/withInAppMessaging/index.d.ts +1 -0
  65. package/dist/types/components/InAppMessaging/withInAppMessaging/withInAppMessaging.d.ts +5 -0
  66. package/dist/types/index.d.ts +1 -0
  67. package/dist/types/styles.d.ts +1 -0
  68. package/package.json +87 -0
package/dist/styles.js ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { BackdropProps } from './types';
3
+ export declare const BACKDROP_TEST_ID = "inappmessaging-backdrop";
4
+ export declare function Backdrop({ onClick, ...rest }: BackdropProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Backdrop } from './Backdrop';
2
+ export { withBackdrop } from './withBackdrop';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from '@aws-amplify/ui-react';
3
+ export interface BackdropProps extends ViewProps {
4
+ /**
5
+ * Function called when backdrop is clicked
6
+ */
7
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
8
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BackdropProps } from './types';
3
+ export declare function withBackdrop<Props>(Content: (props: Props) => JSX.Element, options?: BackdropProps): (props: Props) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BannerMessageProps } from './types';
3
+ export declare function BannerMessage(props: BannerMessageProps): JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BLOCK_CLASS = "amplify-inappmessaging-bannermessage";
@@ -0,0 +1,2 @@
1
+ export { BannerMessage } from './BannerMessage';
2
+ export { BannerMessageProps } from './types';
@@ -0,0 +1,7 @@
1
+ import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageOverrideStyle } from '../hooks';
3
+ type BannerMessageAlignment = 'left' | 'center' | 'right';
4
+ export interface BannerMessageProps extends BannerMessageCommonProps<MessageOverrideStyle | undefined> {
5
+ alignment?: BannerMessageAlignment;
6
+ }
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { CloseIconButtonProps } from './types';
3
+ export declare function CloseIconButton({ className, dismissButtonLabel, onClick, style, ...rest }: CloseIconButtonProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export { CloseIconButton } from './CloseIconButton';
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from '@aws-amplify/ui-react';
2
+ export interface CloseIconButtonProps extends ButtonProps {
3
+ /**
4
+ * @description
5
+ * Configures the accessible label for the close iconButton
6
+ */
7
+ dismissButtonLabel?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FullScreenMessageProps } from './types';
3
+ export declare function FullScreenMessage(props: FullScreenMessageProps): JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BLOCK_CLASS = "amplify-inappmessaging-fullscreenmessage";
@@ -0,0 +1,2 @@
1
+ export { FullScreenMessage } from './FullScreenMessage';
2
+ export { FullScreenMessageProps } from './types';
@@ -0,0 +1,4 @@
1
+ import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageOverrideStyle } from '../hooks';
3
+ export interface FullScreenMessageProps extends FullScreenMessageCommonProps<MessageOverrideStyle | undefined> {
4
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { InAppMessageDisplayProps } from './types';
3
+ declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps): JSX.Element;
4
+ declare namespace InAppMessageDisplay {
5
+ var BannerMessage: typeof import("../BannerMessage").BannerMessage;
6
+ var CarouselMessage: <P>(_: P) => null;
7
+ var FullScreenMessage: typeof import("../FullScreenMessage").FullScreenMessage;
8
+ var ModalMessage: typeof import("../ModalMessage").ModalMessage;
9
+ }
10
+ export default InAppMessageDisplay;
@@ -0,0 +1,3 @@
1
+ import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
2
+ declare const handleMessageLinkAction: HandleMessageLinkAction;
3
+ export default handleMessageLinkAction;
@@ -0,0 +1,2 @@
1
+ export { default as InAppMessageDisplay } from './InAppMessageDisplay';
2
+ export { MessageComponents } from './types';
@@ -0,0 +1,23 @@
1
+ import { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComponent, ModalMessageComponent } from '@aws-amplify/ui-react-core-notifications';
2
+ import { BannerMessageProps } from '../BannerMessage';
3
+ import { FullScreenMessageProps } from '../FullScreenMessage';
4
+ import { ModalMessageProps } from '../ModalMessage';
5
+ type BannerStyle = BannerMessageProps['style'];
6
+ type CarouselStyle = any;
7
+ type FullScreenStyle = FullScreenMessageProps['style'];
8
+ type ModalStyle = ModalMessageProps['style'];
9
+ export interface MessageDefaultComponents {
10
+ BannerMessage: BannerMessageComponent<BannerStyle>;
11
+ CarouselMessage: CarouselMessageComponent<CarouselStyle>;
12
+ FullScreenMessage: FullScreenMessageComponent<FullScreenStyle>;
13
+ ModalMessage: ModalMessageComponent<ModalStyle>;
14
+ }
15
+ export interface MessageComponents extends Partial<MessageDefaultComponents> {
16
+ }
17
+ export interface InAppMessageDisplayProps {
18
+ /**
19
+ * Message override UI components
20
+ */
21
+ components?: MessageComponents;
22
+ }
23
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { MessageLayoutProps } from './types';
3
+ export declare function MessageLayout({ body, buttonSize, hasRenderableImage, header, image, onClose, orientation, primaryButton, secondaryButton, styles, }: MessageLayoutProps): JSX.Element;
@@ -0,0 +1,16 @@
1
+ export declare const BLOCK_CLASS = "amplify-inappmessaging-messagelayout";
2
+ export declare const BUTTON_CLASS: string;
3
+ export declare const CLOSE_BUTTON_CLASS: string;
4
+ export declare const CONTENT_CLASS: string;
5
+ export declare const HEADER_CLASS: string;
6
+ export declare const IMAGE_CONTAINER_CLASS: string;
7
+ export declare const TEXT_CONTAINER_CLASS: string;
8
+ export declare const BODY_TEXT_TEST_ID = "inappmessaging-messagelayout-bodytext";
9
+ export declare const BUTTON_GROUP_TEST_ID = "inappmessaging-messagelayout-buttongroup";
10
+ export declare const CONTENT_TEST_ID = "inappmessaging-messagelayout-content";
11
+ export declare const HEADER_TEXT_TEST_ID = "inappmessaging-messagelayout-headertext";
12
+ export declare const IMAGE_CONTAINER_TEST_ID = "inappmessaging-messagelayout-imagecontainer";
13
+ export declare const MESSAGE_LAYOUT_TEST_ID = "inappmessaging-messagelayout";
14
+ export declare const PRIMARY_BUTTON_TEST_ID = "inappmessaging-messagelayout-primarybutton";
15
+ export declare const SECONDARY_BUTTON_TEST_ID = "inappmessaging-messagelayout-secondarybutton";
16
+ export declare const TEXT_CONTAINER_TEST_ID = "inappmessaging-messagelayout-textcontainer";
@@ -0,0 +1 @@
1
+ export { MessageLayout } from './MessageLayout';
@@ -0,0 +1,23 @@
1
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { ButtonProps } from '@aws-amplify/ui-react';
3
+ import { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '../hooks';
4
+ type MessageLayoutOrientation = 'horizontal' | 'vertical';
5
+ export type MessageLayoutButtonModifier = 'dark' | 'light';
6
+ export interface MessageLayoutProps extends Omit<MessageComponentBaseProps<MessageOverrideStyle>, 'style'>, Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
7
+ /**
8
+ * @description
9
+ * Changes the size of the buttons.
10
+ */
11
+ buttonSize?: ButtonProps['size'];
12
+ /**
13
+ * @description
14
+ * The orientation determines how message content will be laid out.
15
+ */
16
+ orientation?: MessageLayoutOrientation;
17
+ /**
18
+ * @description
19
+ * Component styles - typically a combination of payload and override styles.
20
+ */
21
+ styles: MessageComponentStyles;
22
+ }
23
+ export {};
@@ -0,0 +1,13 @@
1
+ import { MessageComponentStyles } from '../hooks/useMessageProps';
2
+ import { MessageLayoutButtonModifier } from './types';
3
+ /**
4
+ * Utility for determining the class modifier for an In-App Messaging button
5
+ * based on its background color
6
+ *
7
+ * @param buttonStyles button styles which should contain the background color
8
+ * @param defaultModifier modifier that should be returned in cases where
9
+ * background color is undefined
10
+ *
11
+ * @returns the modifier - either 'light' or 'dark'
12
+ */
13
+ export declare const getButtonModifier: (buttonStyles: MessageComponentStyles['primaryButton' | 'primaryButton'], defaultModifier?: MessageLayoutButtonModifier) => MessageLayoutButtonModifier;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { ModalMessageProps } from './types';
3
+ export declare function ModalMessage(props: ModalMessageProps): JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export declare const BLOCK_CLASS = "amplify-inappmessaging-modalmessage";
2
+ export declare const DIALOG_CLASS: string;
@@ -0,0 +1,2 @@
1
+ export { ModalMessage } from './ModalMessage';
2
+ export { ModalMessageProps } from './types';
@@ -0,0 +1,4 @@
1
+ import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageOverrideStyle } from '../hooks';
3
+ export interface ModalMessageProps extends ModalMessageCommonProps<MessageOverrideStyle | undefined> {
4
+ }
@@ -0,0 +1,2 @@
1
+ export { useMessageImage } from './useMessageImage';
2
+ export { MessageComponentStyles, MessageOverrideStyle, useMessageProps, UseMessageProps, } from './useMessageProps';
@@ -0,0 +1 @@
1
+ export { default as useMessageImage } from './useMessageImage';
@@ -0,0 +1,10 @@
1
+ export declare enum ImagePrefetchStatus {
2
+ Aborted = "ABORTED",
3
+ Failure = "FAILURE",
4
+ Fetching = "FETCHING",
5
+ Success = "SUCCESS"
6
+ }
7
+ export type UseMessageImage = {
8
+ hasRenderableImage: boolean;
9
+ isImageFetching: boolean;
10
+ };
@@ -0,0 +1,9 @@
1
+ import { MessageImage } from '@aws-amplify/ui-react-core-notifications';
2
+ import { UseMessageImage } from './types';
3
+ /**
4
+ * Handles prefetching for message images
5
+ *
6
+ * @param image contains image source
7
+ * @returns message image dimensions and fetching related booleans
8
+ */
9
+ export default function useMessageImage(image: MessageImage | undefined): UseMessageImage;
@@ -0,0 +1,2 @@
1
+ export { default as useMessageProps } from './useMessageProps';
2
+ export { MessageComponentStyles, MessageOverrideStyle, UseMessageProps, } from './types';
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import { MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
3
+ /**
4
+ * Inline style props for message components. Can be overridden by customer
5
+ */
6
+ export interface MessageComponentStyles {
7
+ body: React.CSSProperties;
8
+ closeIconButton: React.CSSProperties;
9
+ container: React.CSSProperties;
10
+ header: React.CSSProperties;
11
+ image: React.CSSProperties;
12
+ primaryButton: React.CSSProperties;
13
+ secondaryButton: React.CSSProperties;
14
+ }
15
+ export interface UseMessageProps {
16
+ hasRenderableImage: boolean;
17
+ shouldRenderMessage: boolean;
18
+ styles: MessageComponentStyles;
19
+ }
20
+ export interface MessageStyleParams {
21
+ /**
22
+ * style params to derive resolved style from
23
+ */
24
+ styleParams: StyleParams;
25
+ }
26
+ export interface StyleParams {
27
+ /**
28
+ * message specific styles in the message payload
29
+ */
30
+ payloadStyle: MessagePayloadStyle;
31
+ /**
32
+ * custom component style passed as style prop to message UI components
33
+ */
34
+ overrideStyle?: MessageOverrideStyle;
35
+ }
36
+ /**
37
+ * Override style props
38
+ */
39
+ export type MessageOverrideStyle = Partial<MessageComponentStyles>;
@@ -0,0 +1,11 @@
1
+ import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageOverrideStyle, UseMessageProps } from './types';
3
+ /**
4
+ * Handle common message UI component prop logic including render booleans, and
5
+ * style resolving
6
+ *
7
+ * @param props message UI component props
8
+ *
9
+ * @returns message UI component render related booleans and styles
10
+ */
11
+ export default function useMessageProps(props: MessageComponentBaseProps<MessageOverrideStyle>): UseMessageProps;
@@ -0,0 +1,23 @@
1
+ import { MessageComponentBaseProps, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
2
+ import { MessageComponentStyles, MessageStyleParams } from './types';
3
+ /**
4
+ * Utility for extracting message payload style
5
+ *
6
+ * @param props message props
7
+ *
8
+ * @returns message payload-specific styles
9
+ */
10
+ export declare const getPayloadStyle: ({ body, container, header, primaryButton, secondaryButton, }: MessageComponentBaseProps) => MessagePayloadStyle;
11
+ /**
12
+ * Receives message styling and returns style property values for use with in-app message
13
+ * UI components. Handles resolving style precedence between payload and custom styles
14
+ *
15
+ * Styles resolve precedence from lowest to highest:
16
+ * 1. Payload styles
17
+ * 2. Custom (override) styles
18
+ *
19
+ * @param params message style params
20
+ *
21
+ * @returns message component styles
22
+ */
23
+ export declare function getMessageStyles({ styleParams, }: MessageStyleParams): MessageComponentStyles;
@@ -0,0 +1,6 @@
1
+ export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core-notifications';
2
+ export { BannerMessageProps } from './BannerMessage';
3
+ export { FullScreenMessageProps } from './FullScreenMessage';
4
+ export { InAppMessageDisplay, MessageComponents } from './InAppMessageDisplay';
5
+ export { ModalMessageProps } from './ModalMessage';
6
+ export { withInAppMessaging } from './withInAppMessaging';
@@ -0,0 +1 @@
1
+ export { default as withInAppMessaging } from './withInAppMessaging';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { MessageComponents } from '../InAppMessageDisplay';
3
+ export default function withInAppMessaging<Props = {}>(Component: React.ComponentType<Props>, options?: {
4
+ components?: MessageComponents;
5
+ }): (props: Props) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './components/InAppMessaging';
@@ -0,0 +1 @@
1
+ import './styles.css';
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@aws-amplify/ui-react-notifications",
3
+ "version": "0.0.0-next-9e70d7e-20230511220500",
4
+ "main": "dist/index.js",
5
+ "module": "dist/esm/index.mjs",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/types/index.d.ts",
9
+ "import": "./dist/esm/index.mjs",
10
+ "require": "./dist/index.js"
11
+ },
12
+ "./styles.css": "./dist/styles.css"
13
+ },
14
+ "browser": {
15
+ "./styles.css": "./dist/styles.css"
16
+ },
17
+ "types": "dist/types/index.d.ts",
18
+ "license": "Apache-2.0",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/aws-amplify/amplify-ui",
22
+ "directory": "packages/react-notifications"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "LICENSE"
27
+ ],
28
+ "scripts": {
29
+ "build": "yarn build:rollup",
30
+ "build:rollup": "rollup --config",
31
+ "check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-react-notifications\"'",
32
+ "clean": "rimraf dist node_modules",
33
+ "dev": "yarn build:rollup --watch",
34
+ "lint": "yarn typecheck && eslint src --ext .js,.ts,.tsx",
35
+ "prebuild": "rimraf dist",
36
+ "size": "yarn size-limit",
37
+ "test": "jest",
38
+ "test:ci": "yarn test && yarn check:esm",
39
+ "test:watch": "yarn test --watch",
40
+ "typecheck": "tsc --noEmit"
41
+ },
42
+ "dependencies": {
43
+ "@aws-amplify/ui": "0.0.0-next-9e70d7e-20230511220500",
44
+ "@aws-amplify/ui-react": "0.0.0-next-9e70d7e-20230511220500",
45
+ "@aws-amplify/ui-react-core-notifications": "0.0.0-next-9e70d7e-20230511220500",
46
+ "classnames": "2.3.1"
47
+ },
48
+ "peerDependencies": {
49
+ "aws-amplify": ">= 5.0.1",
50
+ "react": ">= 16.14.0",
51
+ "react-dom": ">= 16.14.0"
52
+ },
53
+ "devDependencies": {
54
+ "@aws-amplify/eslint-config-amplify-ui": "0.0.0",
55
+ "@rollup/plugin-typescript": "^8.3.1",
56
+ "@size-limit/preset-big-lib": "^7.0.8",
57
+ "@testing-library/jest-dom": "^5.14.1",
58
+ "@testing-library/react": "^12.0.0",
59
+ "@testing-library/react-hooks": "^7.0.1",
60
+ "@testing-library/user-event": "^13.2.1",
61
+ "@types/jest": "^26.0.23",
62
+ "@types/react": "^17.0.2",
63
+ "@types/testing-library__jest-dom": "^5.14.1",
64
+ "eslint": "^8.13.0",
65
+ "jest": "^27.0.4",
66
+ "react": "^17.0.2",
67
+ "react-dom": "^17.0.2",
68
+ "rimraf": "^3.0.2",
69
+ "rollup": "^2.70.0",
70
+ "rollup-plugin-node-externals": "^4.1.1",
71
+ "rollup-plugin-styles": "^4.0.0",
72
+ "rollup-plugin-terser": "^7.0.2",
73
+ "size-limit": "^7.0.8",
74
+ "ts-jest": "^27.0.3"
75
+ },
76
+ "sideEffects": [
77
+ "dist/**/*.css"
78
+ ],
79
+ "size-limit": [
80
+ {
81
+ "name": "InAppMessaging",
82
+ "path": "dist/esm/index.mjs",
83
+ "import": "{ InAppMessagingProvider, InAppMessageDisplay }",
84
+ "limit": "110 kB"
85
+ }
86
+ ]
87
+ }