@adobe/react-native-aepmessaging 7.2.1 → 7.4.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/RCTAEPMessaging.podspec +1 -1
- package/README.md +145 -16
- package/android/src/main/java/com/adobe/marketing/mobile/reactnative/messaging/RCTAEPMessagingConstants.java +3 -0
- package/android/src/main/java/com/adobe/marketing/mobile/reactnative/messaging/RCTAEPMessagingModule.java +103 -33
- package/babel.config.js +3 -0
- package/dist/module/Messaging.js +334 -0
- package/dist/module/Messaging.js.map +1 -0
- package/dist/module/index.js +30 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/models/ContentCard.js +24 -0
- package/dist/module/models/ContentCard.js.map +1 -0
- package/dist/{models → module/models}/HTMLProposition.js +8 -9
- package/dist/module/models/HTMLProposition.js.map +1 -0
- package/dist/module/models/InAppMessage.js +4 -0
- package/dist/module/models/InAppMessage.js.map +1 -0
- package/dist/module/models/JSONProposition.js +22 -0
- package/dist/module/models/JSONProposition.js.map +1 -0
- package/dist/module/models/Message.js +182 -0
- package/dist/module/models/Message.js.map +1 -0
- package/dist/module/models/MessagingDelegate.js +4 -0
- package/dist/module/models/MessagingDelegate.js.map +1 -0
- package/dist/module/models/MessagingEdgeEventType.js +24 -0
- package/dist/module/models/MessagingEdgeEventType.js.map +1 -0
- package/dist/module/models/MessagingProposition.js +57 -0
- package/dist/module/models/MessagingProposition.js.map +1 -0
- package/dist/module/models/MessagingPropositionItem.js +4 -0
- package/dist/module/models/MessagingPropositionItem.js.map +1 -0
- package/dist/module/models/PersonalizationSchema.js +26 -0
- package/dist/module/models/PersonalizationSchema.js.map +1 -0
- package/dist/module/models/PropositionItem.js +113 -0
- package/dist/module/models/PropositionItem.js.map +1 -0
- package/dist/module/models/ScopeDetails.js +2 -0
- package/dist/module/models/ScopeDetails.js.map +1 -0
- package/dist/{models/JSONProposition.js → module/models/index.js} +14 -12
- package/dist/module/models/index.js.map +1 -0
- package/dist/module/ui/components/Button/Button.js +57 -0
- package/dist/module/ui/components/Button/Button.js.map +1 -0
- package/dist/module/ui/components/Button/Button.spec.js +476 -0
- package/dist/module/ui/components/Button/Button.spec.js.map +1 -0
- package/dist/module/ui/components/ContentCardView/ContentCardView.js +257 -0
- package/dist/module/ui/components/ContentCardView/ContentCardView.js.map +1 -0
- package/dist/module/ui/components/ContentCardView/ContentCardView.spec.js +363 -0
- package/dist/module/ui/components/ContentCardView/ContentCardView.spec.js.map +1 -0
- package/dist/module/ui/components/DismissButton/DismissButton.js +70 -0
- package/dist/module/ui/components/DismissButton/DismissButton.js.map +1 -0
- package/dist/module/ui/components/DismissButton/DismissButton.spec.js +279 -0
- package/dist/module/ui/components/DismissButton/DismissButton.spec.js.map +1 -0
- package/dist/module/ui/components/FullScreenCenterView/FullScreenCenterView.js +34 -0
- package/dist/module/ui/components/FullScreenCenterView/FullScreenCenterView.js.map +1 -0
- package/dist/module/ui/components/Inbox/EmptyState.js +64 -0
- package/dist/module/ui/components/Inbox/EmptyState.js.map +1 -0
- package/dist/module/ui/components/Inbox/Inbox.js +235 -0
- package/dist/module/ui/components/Inbox/Inbox.js.map +1 -0
- package/dist/module/ui/components/Inbox/Inbox.spec.js +847 -0
- package/dist/module/ui/components/Inbox/Inbox.spec.js.map +1 -0
- package/dist/module/ui/components/Pagination/Pagination.js +176 -0
- package/dist/module/ui/components/Pagination/Pagination.js.map +1 -0
- package/dist/module/ui/components/Pagination/Pagination.spec.js +193 -0
- package/dist/module/ui/components/Pagination/Pagination.spec.js.map +1 -0
- package/dist/module/ui/components/UnreadIcon/UnreadIcon.js +184 -0
- package/dist/module/ui/components/UnreadIcon/UnreadIcon.js.map +1 -0
- package/dist/module/ui/components/UnreadIcon/UnreadIcon.spec.js +815 -0
- package/dist/module/ui/components/UnreadIcon/UnreadIcon.spec.js.map +1 -0
- package/dist/{models/ContentCard.js → module/ui/components/index.js} +12 -12
- package/dist/module/ui/components/index.js.map +1 -0
- package/dist/module/ui/hooks/index.js +18 -0
- package/dist/module/ui/hooks/index.js.map +1 -0
- package/dist/module/ui/hooks/useAspectRatio.js +33 -0
- package/dist/module/ui/hooks/useAspectRatio.js.map +1 -0
- package/dist/module/ui/hooks/useAspectRatio.spec.js +65 -0
- package/dist/module/ui/hooks/useAspectRatio.spec.js.map +1 -0
- package/dist/module/ui/hooks/useContentCardUI.js +51 -0
- package/dist/module/ui/hooks/useContentCardUI.js.map +1 -0
- package/dist/module/ui/hooks/useContentCardUI.spec.js +85 -0
- package/dist/module/ui/hooks/useContentCardUI.spec.js.map +1 -0
- package/dist/module/ui/hooks/useInbox.js +49 -0
- package/dist/module/ui/hooks/useInbox.js.map +1 -0
- package/dist/module/ui/hooks/useInbox.spec.js +93 -0
- package/dist/module/ui/hooks/useInbox.spec.js.map +1 -0
- package/dist/module/ui/hooks/useInboxSettings.js +26 -0
- package/dist/module/ui/hooks/useInboxSettings.js.map +1 -0
- package/dist/module/ui/hooks/useInboxSettings.spec.js +50 -0
- package/dist/module/ui/hooks/useInboxSettings.spec.js.map +1 -0
- package/dist/module/ui/index.js +10 -0
- package/dist/module/ui/index.js.map +1 -0
- package/dist/module/ui/providers/InboxProvider.js +27 -0
- package/dist/module/ui/providers/InboxProvider.js.map +1 -0
- package/dist/module/ui/theme/Theme.js +2 -0
- package/dist/module/ui/theme/Theme.js.map +1 -0
- package/dist/module/ui/theme/ThemeProvider.js +112 -0
- package/dist/module/ui/theme/ThemeProvider.js.map +1 -0
- package/dist/{models/InAppMessage.js → module/ui/theme/index.js} +6 -3
- package/dist/module/ui/theme/index.js.map +1 -0
- package/dist/module/ui/types/ContentViewEvent.js +2 -0
- package/dist/module/ui/types/ContentViewEvent.js.map +1 -0
- package/dist/module/ui/types/Templates.js +26 -0
- package/dist/module/ui/types/Templates.js.map +1 -0
- package/dist/{models/ScopeDetails.js → module/ui/types/index.js} +6 -3
- package/dist/module/ui/types/index.js.map +1 -0
- package/dist/module/ui/utils/generateCardHash.js +50 -0
- package/dist/module/ui/utils/generateCardHash.js.map +1 -0
- package/dist/module/ui/utils/generateCardHash.spec.js +103 -0
- package/dist/module/ui/utils/generateCardHash.spec.js.map +1 -0
- package/dist/module/ui/utils/inboxStorage.js +65 -0
- package/dist/module/ui/utils/inboxStorage.js.map +1 -0
- package/dist/module/ui/utils/inboxStorage.spec.js +123 -0
- package/dist/module/ui/utils/inboxStorage.spec.js.map +1 -0
- package/dist/module/ui/utils/index.js +5 -0
- package/dist/module/ui/utils/index.js.map +1 -0
- package/dist/{Messaging.d.ts → typescript/Messaging.d.ts} +23 -7
- package/dist/typescript/Messaging.d.ts.map +1 -0
- package/dist/{index.d.ts → typescript/index.d.ts} +4 -2
- package/dist/typescript/index.d.ts.map +1 -0
- package/dist/typescript/models/ContentCard.d.ts +57 -0
- package/dist/typescript/models/ContentCard.d.ts.map +1 -0
- package/dist/{models → typescript/models}/HTMLProposition.d.ts +1 -0
- package/dist/typescript/models/HTMLProposition.d.ts.map +1 -0
- package/dist/{models → typescript/models}/InAppMessage.d.ts +1 -0
- package/dist/typescript/models/InAppMessage.d.ts.map +1 -0
- package/dist/{models → typescript/models}/JSONProposition.d.ts +1 -0
- package/dist/typescript/models/JSONProposition.d.ts.map +1 -0
- package/dist/{models → typescript/models}/Message.d.ts +14 -0
- package/dist/typescript/models/Message.d.ts.map +1 -0
- package/dist/{models → typescript/models}/MessagingDelegate.d.ts +1 -0
- package/dist/typescript/models/MessagingDelegate.d.ts.map +1 -0
- package/dist/{models → typescript/models}/MessagingEdgeEventType.d.ts +1 -0
- package/dist/typescript/models/MessagingEdgeEventType.d.ts.map +1 -0
- package/dist/{models → typescript/models}/MessagingProposition.d.ts +1 -0
- package/dist/typescript/models/MessagingProposition.d.ts.map +1 -0
- package/dist/{models → typescript/models}/MessagingPropositionItem.d.ts +1 -0
- package/dist/typescript/models/MessagingPropositionItem.d.ts.map +1 -0
- package/dist/{models → typescript/models}/PersonalizationSchema.d.ts +2 -0
- package/dist/typescript/models/PersonalizationSchema.d.ts.map +1 -0
- package/dist/{models → typescript/models}/PropositionItem.d.ts +1 -0
- package/dist/typescript/models/PropositionItem.d.ts.map +1 -0
- package/dist/{models → typescript/models}/ScopeDetails.d.ts +1 -0
- package/dist/typescript/models/ScopeDetails.d.ts.map +1 -0
- package/dist/typescript/models/index.d.ts +11 -0
- package/dist/typescript/models/index.d.ts.map +1 -0
- package/dist/typescript/ui/components/Button/Button.d.ts +14 -0
- package/dist/typescript/ui/components/Button/Button.d.ts.map +1 -0
- package/dist/typescript/ui/components/Button/Button.spec.d.ts +2 -0
- package/dist/typescript/ui/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/ContentCardView/ContentCardView.d.ts +39 -0
- package/dist/typescript/ui/components/ContentCardView/ContentCardView.d.ts.map +1 -0
- package/dist/typescript/ui/components/ContentCardView/ContentCardView.spec.d.ts +2 -0
- package/dist/typescript/ui/components/ContentCardView/ContentCardView.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/DismissButton/DismissButton.d.ts +13 -0
- package/dist/typescript/ui/components/DismissButton/DismissButton.d.ts.map +1 -0
- package/dist/typescript/ui/components/DismissButton/DismissButton.spec.d.ts +2 -0
- package/dist/typescript/ui/components/DismissButton/DismissButton.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/FullScreenCenterView/FullScreenCenterView.d.ts +5 -0
- package/dist/typescript/ui/components/FullScreenCenterView/FullScreenCenterView.d.ts.map +1 -0
- package/dist/typescript/ui/components/Inbox/EmptyState.d.ts +19 -0
- package/dist/typescript/ui/components/Inbox/EmptyState.d.ts.map +1 -0
- package/dist/typescript/ui/components/Inbox/Inbox.d.ts +21 -0
- package/dist/typescript/ui/components/Inbox/Inbox.d.ts.map +1 -0
- package/dist/typescript/ui/components/Inbox/Inbox.spec.d.ts +2 -0
- package/dist/typescript/ui/components/Inbox/Inbox.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/Pagination/Pagination.d.ts +14 -0
- package/dist/typescript/ui/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/typescript/ui/components/Pagination/Pagination.spec.d.ts +2 -0
- package/dist/typescript/ui/components/Pagination/Pagination.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/UnreadIcon/UnreadIcon.d.ts +14 -0
- package/dist/typescript/ui/components/UnreadIcon/UnreadIcon.d.ts.map +1 -0
- package/dist/typescript/ui/components/UnreadIcon/UnreadIcon.spec.d.ts +2 -0
- package/dist/typescript/ui/components/UnreadIcon/UnreadIcon.spec.d.ts.map +1 -0
- package/dist/typescript/ui/components/index.d.ts +10 -0
- package/dist/typescript/ui/components/index.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/index.d.ts +4 -0
- package/dist/typescript/ui/hooks/index.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useAspectRatio.d.ts +3 -0
- package/dist/typescript/ui/hooks/useAspectRatio.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useAspectRatio.spec.d.ts +2 -0
- package/dist/typescript/ui/hooks/useAspectRatio.spec.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useContentCardUI.d.ts +14 -0
- package/dist/typescript/ui/hooks/useContentCardUI.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useContentCardUI.spec.d.ts +2 -0
- package/dist/typescript/ui/hooks/useContentCardUI.spec.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useInbox.d.ts +12 -0
- package/dist/typescript/ui/hooks/useInbox.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useInbox.spec.d.ts +2 -0
- package/dist/typescript/ui/hooks/useInbox.spec.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useInboxSettings.d.ts +7 -0
- package/dist/typescript/ui/hooks/useInboxSettings.d.ts.map +1 -0
- package/dist/typescript/ui/hooks/useInboxSettings.spec.d.ts +2 -0
- package/dist/typescript/ui/hooks/useInboxSettings.spec.d.ts.map +1 -0
- package/dist/typescript/ui/index.d.ts +8 -0
- package/dist/typescript/ui/index.d.ts.map +1 -0
- package/dist/typescript/ui/providers/InboxProvider.d.ts +56 -0
- package/dist/typescript/ui/providers/InboxProvider.d.ts.map +1 -0
- package/dist/typescript/ui/theme/Theme.d.ts +44 -0
- package/dist/typescript/ui/theme/Theme.d.ts.map +1 -0
- package/dist/typescript/ui/theme/ThemeProvider.d.ts +21 -0
- package/dist/typescript/ui/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/typescript/ui/theme/index.d.ts +3 -0
- package/dist/typescript/ui/theme/index.d.ts.map +1 -0
- package/dist/typescript/ui/types/ContentViewEvent.d.ts +9 -0
- package/dist/typescript/ui/types/ContentViewEvent.d.ts.map +1 -0
- package/dist/typescript/ui/types/Templates.d.ts +43 -0
- package/dist/typescript/ui/types/Templates.d.ts.map +1 -0
- package/dist/typescript/ui/types/index.d.ts +3 -0
- package/dist/typescript/ui/types/index.d.ts.map +1 -0
- package/dist/typescript/ui/utils/generateCardHash.d.ts +21 -0
- package/dist/typescript/ui/utils/generateCardHash.d.ts.map +1 -0
- package/dist/typescript/ui/utils/generateCardHash.spec.d.ts +2 -0
- package/dist/typescript/ui/utils/generateCardHash.spec.d.ts.map +1 -0
- package/dist/typescript/ui/utils/inboxStorage.d.ts +20 -0
- package/dist/typescript/ui/utils/inboxStorage.d.ts.map +1 -0
- package/dist/typescript/ui/utils/inboxStorage.spec.d.ts +2 -0
- package/dist/typescript/ui/utils/inboxStorage.spec.d.ts.map +1 -0
- package/dist/typescript/ui/utils/index.d.ts +3 -0
- package/dist/typescript/ui/utils/index.d.ts.map +1 -0
- package/ios/src/RCTAEPMessaging.mm +15 -0
- package/ios/src/RCTAEPMessaging.swift +61 -3
- package/ios/src/RCTAEPMessagingConstants.swift +4 -1
- package/jest.config.js +15 -0
- package/package.json +33 -5
- package/src/Messaging.ts +288 -32
- package/src/index.ts +3 -3
- package/src/models/ContentCard.ts +52 -27
- package/src/models/HTMLProposition.ts +1 -1
- package/src/models/JSONProposition.ts +1 -1
- package/src/models/Message.ts +50 -0
- package/src/models/PersonalizationSchema.ts +1 -0
- package/src/models/index.ts +22 -0
- package/src/ui/components/Button/Button.spec.tsx +496 -0
- package/src/ui/components/Button/Button.tsx +76 -0
- package/src/ui/components/ContentCardView/ContentCardView.spec.tsx +278 -0
- package/src/ui/components/ContentCardView/ContentCardView.tsx +400 -0
- package/src/ui/components/DismissButton/DismissButton.spec.tsx +314 -0
- package/src/ui/components/DismissButton/DismissButton.tsx +100 -0
- package/src/ui/components/FullScreenCenterView/FullScreenCenterView.tsx +32 -0
- package/src/ui/components/Inbox/EmptyState.tsx +89 -0
- package/src/ui/components/Inbox/Inbox.spec.tsx +478 -0
- package/src/ui/components/Inbox/Inbox.tsx +275 -0
- package/src/ui/components/Pagination/Pagination.spec.tsx +159 -0
- package/src/ui/components/Pagination/Pagination.tsx +222 -0
- package/src/ui/components/UnreadIcon/UnreadIcon.spec.tsx +878 -0
- package/src/ui/components/UnreadIcon/UnreadIcon.tsx +234 -0
- package/src/ui/components/index.ts +22 -0
- package/{dist/models/MessagingPropositionItem.js → src/ui/hooks/index.ts} +5 -4
- package/src/ui/hooks/useAspectRatio.spec.tsx +66 -0
- package/src/ui/hooks/useAspectRatio.tsx +39 -0
- package/src/ui/hooks/useContentCardUI.spec.tsx +82 -0
- package/src/ui/hooks/useContentCardUI.ts +48 -0
- package/src/ui/hooks/useInbox.spec.tsx +87 -0
- package/src/ui/hooks/useInbox.ts +46 -0
- package/src/ui/hooks/useInboxSettings.spec.tsx +41 -0
- package/src/ui/hooks/useInboxSettings.ts +24 -0
- package/src/ui/index.ts +7 -0
- package/src/ui/providers/InboxProvider.tsx +79 -0
- package/src/ui/theme/Theme.ts +57 -0
- package/src/ui/theme/ThemeProvider.tsx +120 -0
- package/src/ui/theme/index.ts +14 -0
- package/src/ui/types/ContentViewEvent.ts +20 -0
- package/src/ui/types/Templates.ts +77 -0
- package/src/ui/types/index.ts +14 -0
- package/src/ui/utils/generateCardHash.spec.tsx +86 -0
- package/src/ui/utils/generateCardHash.ts +59 -0
- package/src/ui/utils/inboxStorage.spec.tsx +136 -0
- package/src/ui/utils/inboxStorage.ts +64 -0
- package/src/ui/utils/index.ts +3 -0
- package/tutorials/ContentCardCustomizationGuide.md +661 -0
- package/tutorials/ContentCards.md +419 -0
- package/tutorials/In-App Messaging.md +31 -0
- package/tutorials/Inbox.md +515 -0
- package/tutorials/resources/image-only-template.png +0 -0
- package/tutorials/resources/large-image-template.png +0 -0
- package/tutorials/resources/small-image-template.png +0 -0
- package/dist/Messaging.js +0 -151
- package/dist/Messaging.js.map +0 -1
- package/dist/index.js +0 -34
- package/dist/index.js.map +0 -1
- package/dist/models/ContentCard.d.ts +0 -51
- package/dist/models/ContentCard.js.map +0 -1
- package/dist/models/HTMLProposition.js.map +0 -1
- package/dist/models/InAppMessage.js.map +0 -1
- package/dist/models/JSONProposition.js.map +0 -1
- package/dist/models/Message.js +0 -114
- package/dist/models/Message.js.map +0 -1
- package/dist/models/MessagingDelegate.js +0 -14
- package/dist/models/MessagingDelegate.js.map +0 -1
- package/dist/models/MessagingEdgeEventType.js +0 -24
- package/dist/models/MessagingEdgeEventType.js.map +0 -1
- package/dist/models/MessagingProposition.js +0 -59
- package/dist/models/MessagingProposition.js.map +0 -1
- package/dist/models/MessagingPropositionItem.js.map +0 -1
- package/dist/models/PersonalizationSchema.js +0 -25
- package/dist/models/PersonalizationSchema.js.map +0 -1
- package/dist/models/PropositionItem.js +0 -78
- package/dist/models/PropositionItem.js.map +0 -1
- package/dist/models/ScopeDetails.js.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import Message from
|
|
2
|
-
import { MessagingDelegate } from
|
|
3
|
-
import { MessagingProposition } from
|
|
4
|
-
import { ContentCard } from
|
|
1
|
+
import Message from "./models/Message";
|
|
2
|
+
import { MessagingDelegate } from "./models/MessagingDelegate";
|
|
3
|
+
import { MessagingProposition } from "./models/MessagingProposition";
|
|
4
|
+
import { ContentCard } from "./models/ContentCard";
|
|
5
|
+
import { ContentTemplate } from "./ui/types/Templates";
|
|
6
|
+
import { InboxSettings } from "./ui/providers/InboxProvider";
|
|
5
7
|
export interface NativeMessagingModule {
|
|
6
8
|
extensionVersion: () => Promise<string>;
|
|
7
9
|
getCachedMessages: () => Message[];
|
|
@@ -49,8 +51,8 @@ declare class Messaging {
|
|
|
49
51
|
*/
|
|
50
52
|
static trackContentCardDisplay(proposition: MessagingProposition, contentCard: ContentCard): void;
|
|
51
53
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
* @deprecated Use PropositionItem.track(...) instead.
|
|
55
|
+
*/
|
|
54
56
|
static trackContentCardInteraction(proposition: MessagingProposition, contentCard: ContentCard): void;
|
|
55
57
|
/**
|
|
56
58
|
* Tracks interactions with a PropositionItem using the provided interaction and event type.
|
|
@@ -79,6 +81,20 @@ declare class Messaging {
|
|
|
79
81
|
* Dispatches an event to fetch propositions for the provided surfaces from remote.
|
|
80
82
|
* @param surfaces A list of surface names to update
|
|
81
83
|
*/
|
|
82
|
-
static updatePropositionsForSurfaces(surfaces: string[]): void
|
|
84
|
+
static updatePropositionsForSurfaces(surfaces: string[]): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* @experimental
|
|
87
|
+
* Retrieves the content card UI data for a given surface.
|
|
88
|
+
* @param surface The surface to get the content card UI data for
|
|
89
|
+
* @returns The content card UI data for the given surface
|
|
90
|
+
*/
|
|
91
|
+
static getContentCardUI(surface: string): Promise<ContentTemplate[]>;
|
|
92
|
+
/**
|
|
93
|
+
* @experimental
|
|
94
|
+
* Loads inbox UI settings from the inbox proposition for the given surface.
|
|
95
|
+
* @throws {Error} When no propositions, no inbox proposition, or invalid inbox content is returned.
|
|
96
|
+
*/
|
|
97
|
+
static getInbox(surface: string): Promise<InboxSettings>;
|
|
83
98
|
}
|
|
84
99
|
export default Messaging;
|
|
100
|
+
//# sourceMappingURL=Messaging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Messaging.d.ts","sourceRoot":"","sources":["../../src/Messaging.ts"],"names":[],"mappings":"AAkBA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACL,aAAa,EAEd,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,iBAAiB,EAAE,MAAM,OAAO,EAAE,CAAC;IACnC,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,0BAA0B,EAAE,CAC1B,QAAQ,EAAE,MAAM,EAAE,KACf,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAC5C,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,EAAE,CAAC,QAAQ,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7D,kBAAkB,EAAE,CAClB,iBAAiB,EAAE,OAAO,EAC1B,iBAAiB,EAAE,OAAO,KACvB,IAAI,CAAC;IACV,6BAA6B,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5D,uBAAuB,EAAE,CACvB,WAAW,EAAE,oBAAoB,EACjC,WAAW,EAAE,WAAW,KACrB,IAAI,CAAC;IACV,2BAA2B,EAAE,CAC3B,WAAW,EAAE,oBAAoB,EACjC,WAAW,EAAE,WAAW,KACrB,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,KACpB,IAAI,CAAC;CACX;AAwID,cAAM,SAAS;IACb;;;OAGG;IACH,MAAM,CAAC,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI1C;;OAEG;IACH,MAAM,CAAC,oBAAoB;IAI3B;;;;;OAKG;WACU,iBAAiB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAKpD;;;OAGG;WACU,gBAAgB,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAKpE;;;;;OAKG;WACU,0BAA0B,CACrC,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAclD;;OAEG;IACH,MAAM,CAAC,uBAAuB,CAC5B,WAAW,EAAE,oBAAoB,EACjC,WAAW,EAAE,WAAW,GACvB,IAAI;IAIN;;MAEE;IACH,MAAM,CAAC,2BAA2B,CAChC,WAAW,EAAE,oBAAoB,EACjC,WAAW,EAAE,WAAW,GACvB,IAAI;IAIP;;;;;;;;OAQG;IACH,MAAM,CAAC,oBAAoB,CACzB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,GACtB,IAAI;IASP;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,MAAM,IAAI;IAwDpE;;;;;;OAMG;IACH,MAAM,CAAC,kBAAkB,CACvB,iBAAiB,EAAE,OAAO,EAC1B,iBAAiB,EAAE,OAAO;IAK5B;;;OAGG;WACU,6BAA6B,CACxC,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;;OAKG;WACU,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IA4B1E;;;;OAIG;WACU,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CA4C/D;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Messaging from './Messaging';
|
|
2
|
-
import { ContentCard, ContentCardData } from './models/ContentCard';
|
|
3
2
|
import { InAppMessage } from './models/InAppMessage';
|
|
4
3
|
import { HTMLProposition, HTMLPropositionData } from './models/HTMLProposition';
|
|
5
4
|
import { JSONPropositionItem, JSONPropositionData } from './models/JSONProposition';
|
|
@@ -11,4 +10,7 @@ import { MessagingPropositionItem } from './models/MessagingPropositionItem';
|
|
|
11
10
|
import { PersonalizationSchema } from './models/PersonalizationSchema';
|
|
12
11
|
import { PropositionItem, PropositionItemData } from './models/PropositionItem';
|
|
13
12
|
import { Activity, Characteristics } from './models/ScopeDetails';
|
|
14
|
-
export
|
|
13
|
+
export * from './models/ContentCard';
|
|
14
|
+
export * from './ui';
|
|
15
|
+
export { Activity, Characteristics, InAppMessage, Messaging, Message, MessagingDelegate, MessagingEdgeEventType, MessagingProposition, MessagingPropositionItem, PersonalizationSchema, PropositionItem, PropositionItemData, HTMLProposition, HTMLPropositionData, JSONPropositionItem, JSONPropositionData, };
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpF,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,sBAAsB,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,cAAc,sBAAsB,CAAC;AACrC,cAAc,MAAM,CAAC;AAErB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { PersonalizationSchema } from './PersonalizationSchema';
|
|
2
|
+
import { PropositionItem, PropositionItemData } from './PropositionItem';
|
|
3
|
+
export type ContentCardTemplate = 'SmallImage' | 'LargeImage' | 'ImageOnly';
|
|
4
|
+
export type DismissButtonStyle = 'circle' | 'none' | 'simple';
|
|
5
|
+
export interface ContentCardButton {
|
|
6
|
+
readonly interactId: string;
|
|
7
|
+
readonly actionUrl?: string;
|
|
8
|
+
readonly id?: string;
|
|
9
|
+
readonly text: {
|
|
10
|
+
readonly content: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ContentCardContent {
|
|
14
|
+
readonly image?: {
|
|
15
|
+
readonly alt?: string;
|
|
16
|
+
readonly url: string;
|
|
17
|
+
readonly darkUrl?: string;
|
|
18
|
+
};
|
|
19
|
+
readonly buttons?: readonly ContentCardButton[];
|
|
20
|
+
readonly dismissBtn?: {
|
|
21
|
+
readonly style: DismissButtonStyle;
|
|
22
|
+
};
|
|
23
|
+
readonly actionUrl?: string;
|
|
24
|
+
readonly body?: {
|
|
25
|
+
readonly content: string;
|
|
26
|
+
};
|
|
27
|
+
readonly title: {
|
|
28
|
+
readonly content: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export type ImageOnlyContent = Pick<ContentCardContent, 'image' | 'dismissBtn' | 'actionUrl'>;
|
|
32
|
+
export type LargeImageContentData = ContentCardContent;
|
|
33
|
+
export type SmallImageContentData = ContentCardContent;
|
|
34
|
+
export interface ContentCardMeta {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
adobe: {
|
|
37
|
+
template: ContentCardTemplate;
|
|
38
|
+
};
|
|
39
|
+
surface?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ContentCardData extends PropositionItemData {
|
|
42
|
+
id: string;
|
|
43
|
+
schema: PersonalizationSchema.CONTENT_CARD;
|
|
44
|
+
data: {
|
|
45
|
+
contentType: 'application/json';
|
|
46
|
+
expiryDate: number;
|
|
47
|
+
publishedDate: number;
|
|
48
|
+
meta: ContentCardMeta;
|
|
49
|
+
content: SmallImageContentData | LargeImageContentData | ImageOnlyContent;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare class ContentCard extends PropositionItem {
|
|
53
|
+
data: ContentCardData['data'];
|
|
54
|
+
isRead: boolean;
|
|
55
|
+
constructor(contentCardData: ContentCardData, isRead?: boolean);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=ContentCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentCard.d.ts","sourceRoot":"","sources":["../../../src/models/ContentCard.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAChD,QAAQ,CAAC,UAAU,CAAC,EAAE;QACpB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;KACpC,CAAC;IACF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,kBAAkB,EAClB,OAAO,GAAG,YAAY,GAAG,WAAW,CACrC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,KAAK,EAAE;QAAE,QAAQ,EAAE,mBAAmB,CAAA;KAAE,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,YAAY,CAAC;IAC3C,IAAI,EAAE;QACJ,WAAW,EAAE,kBAAkB,CAAC;QAChC,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,eAAe,CAAC;QACtB,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,GAAG,gBAAgB,CAAC;KAC3E,CAAC;CACH;AAED,qBAAa,WAAY,SAAQ,eAAe;IAC9C,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAS;gBAEZ,eAAe,EAAE,eAAe,EAAE,MAAM,GAAE,OAAe;CAKtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTMLProposition.d.ts","sourceRoot":"","sources":["../../../src/models/HTMLProposition.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,qBAAqB,CAAC,YAAY,CAAC;CAC3C;AAED,qBAAa,eAAgB,SAAQ,eAAe;IACnD,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;gBAEtB,QAAQ,EAAE,mBAAmB;CAIzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InAppMessage.d.ts","sourceRoot":"","sources":["../../../src/models/InAppMessage.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,WAAW,CAAC;QACzB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACvC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACpC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONProposition.d.ts","sourceRoot":"","sources":["../../../src/models/JSONProposition.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE;QACL,OAAO,EAAE,GAAG,CAAC;KACb,CAAC;IACF,MAAM,EAAE,qBAAqB,CAAC,YAAY,CAAC;CAC3C;AAED,qBAAa,mBAAoB,SAAQ,eAAe;IACvD,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;gBAEtB,QAAQ,EAAE,mBAAmB;CAIzC"}
|
|
@@ -42,6 +42,12 @@ declare class Message {
|
|
|
42
42
|
* @param {function} handler: The method or closure to be called with the body of the message created in the Message's JavaScript
|
|
43
43
|
*/
|
|
44
44
|
handleJavascriptMessage(handlerName: string, handler: (content: string) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* Asynchronously evaluates the specified JavaScript string in the context of the message's WebView.
|
|
47
|
+
* @param {string} javascriptString: The JavaScript string to evaluate.
|
|
48
|
+
* @param {function} callback: A callback to be invoked when the script execution completes with the result of the execution.
|
|
49
|
+
*/
|
|
50
|
+
evaluateJavascript(javascriptString: string, callback: (result: string) => void): void;
|
|
45
51
|
/**
|
|
46
52
|
* @internal - For internal use only.
|
|
47
53
|
* Clears all the javascript message handlers for the message.
|
|
@@ -49,5 +55,13 @@ declare class Message {
|
|
|
49
55
|
* Failure to call this function may lead to memory leaks.
|
|
50
56
|
*/
|
|
51
57
|
_clearJavascriptMessageHandlers(): void;
|
|
58
|
+
/**
|
|
59
|
+
* @internal - For internal use only.
|
|
60
|
+
* Clears all the javascript result handlers for the message.
|
|
61
|
+
* This function must be called if the callbacks registered in evaluateJavascript are no longer needed.
|
|
62
|
+
* Failure to call this function may lead to memory leaks.
|
|
63
|
+
*/
|
|
64
|
+
_clearJavascriptResultHandlers(): void;
|
|
52
65
|
}
|
|
53
66
|
export default Message;
|
|
67
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/models/Message.ts"],"names":[],"mappings":"AA2CA,cAAM,OAAO;IACX,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;gBAEP,EAAE,EAAE,EAAE,SAAiB,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE;IAKzE;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO;IAK/B;;;OAGG;IACH,IAAI;IAIJ;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO;IAanC;;;;OAIG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI5C;;;;OAIG;IACH,KAAK;IAIL;;;;;OAKG;IACH,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;IAoB/E;;;;MAIE;IACF,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI;IAqB/E;;;;;OAKG;IACH,+BAA+B;IAI/B;;;;;OAKG;IACH,8BAA8B;CAG/B;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagingDelegate.d.ts","sourceRoot":"","sources":["../../../src/models/MessagingDelegate.ts"],"names":[],"mappings":"AAYA,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;;OAGG;IACH,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,iBAAiB,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAE9C;;;;OAIG;IACH,iBAAiB,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAE9C;;;;OAIG;IACH,SAAS,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhD;;;OAGG;IACH,eAAe,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagingEdgeEventType.d.ts","sourceRoot":"","sources":["../../../src/models/MessagingEdgeEventType.ts"],"names":[],"mappings":"AAYA,aAAK,sBAAsB;IACzB,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,OAAO,IAAI;IACX,uBAAuB,IAAI;IAC3B,kBAAkB,IAAI;CACvB;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagingProposition.d.ts","sourceRoot":"","sources":["../../../src/models/MessagingProposition.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,kBAAkB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,eAAe,EAAE,CAAC;gBAEb,GAAG,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,YAAY,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE;CAmC1F;AAED,OAAO,EAAE,kBAAkB,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -4,3 +4,4 @@ import { JSONPropositionItem } from './JSONProposition';
|
|
|
4
4
|
import { InAppMessage } from './InAppMessage';
|
|
5
5
|
import { PropositionItem } from './PropositionItem';
|
|
6
6
|
export type MessagingPropositionItem = ContentCard | HTMLProposition | InAppMessage | JSONPropositionItem | PropositionItem;
|
|
7
|
+
//# sourceMappingURL=MessagingPropositionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagingPropositionItem.d.ts","sourceRoot":"","sources":["../../../src/models/MessagingPropositionItem.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,MAAM,wBAAwB,GAChC,WAAW,GACX,eAAe,GACf,YAAY,GACZ,mBAAmB,GACnB,eAAe,CAAC"}
|
|
@@ -3,7 +3,9 @@ export declare enum PersonalizationSchema {
|
|
|
3
3
|
DEFAULT_CONTENT = "https://ns.adobe.com/personalization/default-content-item",
|
|
4
4
|
HTML_CONTENT = "https://ns.adobe.com/personalization/html-content-item",
|
|
5
5
|
IN_APP = "https://ns.adobe.com/personalization/message/in-app",
|
|
6
|
+
INBOX = "https://ns.adobe.com/personalization/message/inbox",
|
|
6
7
|
JSON_CONTENT = "https://ns.adobe.com/personalization/json-content-item",
|
|
7
8
|
NATIVE_ALERT = "https://ns.adobe.com/personalization/message/native-alert",
|
|
8
9
|
RULESET_ITEM = "https://ns.adobe.com/personalization/ruleset-item"
|
|
9
10
|
}
|
|
11
|
+
//# sourceMappingURL=PersonalizationSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonalizationSchema.d.ts","sourceRoot":"","sources":["../../../src/models/PersonalizationSchema.ts"],"names":[],"mappings":"AAYA,oBAAY,qBAAqB;IAC/B,YAAY,8DAA8D;IAC1E,eAAe,8DAA8D;IAC7E,YAAY,2DAA2D;IACvE,MAAM,wDAAwD;IAC9D,KAAK,uDAAuD;IAC5D,YAAY,2DAA2D;IACvE,YAAY,8DAA8D;IAC1E,YAAY,sDAAsD;CACnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropositionItem.d.ts","sourceRoot":"","sources":["../../../src/models/PropositionItem.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAI9D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,qBAAqB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED;;;;;;GAMG;AACH,qBAAa,eAAe;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;gBAEjB,mBAAmB,EAAE,mBAAmB;IAQpD;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAInB;;;;OAIG;IACH,SAAS,IAAI,qBAAqB;IAIlC;;;;OAIG;IACH,WAAW,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAIrC;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,EAAE,sBAAsB,GAAG,IAAI;IAE9C;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,IAAI;IAkBnG;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAKzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeDetails.d.ts","sourceRoot":"","sources":["../../../src/models/ScopeDetails.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './ContentCard';
|
|
2
|
+
export * from './InAppMessage';
|
|
3
|
+
export * from './JSONProposition';
|
|
4
|
+
export * from './Message';
|
|
5
|
+
export * from './MessagingDelegate';
|
|
6
|
+
export * from './MessagingEdgeEventType';
|
|
7
|
+
export * from './MessagingProposition';
|
|
8
|
+
export * from './MessagingPropositionItem';
|
|
9
|
+
export * from './PersonalizationSchema';
|
|
10
|
+
export * from './ScopeDetails';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAYA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccessibilityRole, GestureResponderEvent, PressableProps, StyleProp, TextStyle } from 'react-native';
|
|
3
|
+
export interface ButtonProps extends Omit<PressableProps, 'onPress'> {
|
|
4
|
+
actionUrl?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
onPress?: (interactId?: string, event?: GestureResponderEvent) => void;
|
|
8
|
+
interactId?: string;
|
|
9
|
+
textStyle?: StyleProp<TextStyle>;
|
|
10
|
+
accessibilityRole?: AccessibilityRole;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.FC<ButtonProps>;
|
|
13
|
+
export default Button;
|
|
14
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Button/Button.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EAGrB,cAAc,EACd,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Button/Button.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentOverrideProps, ContentTemplate, ImageOnlyContentStyle, LargeImageContentStyle, SmallImageContentStyle } from "../../types/Templates";
|
|
3
|
+
import { ContentViewEvent } from "../../types/ContentViewEvent";
|
|
4
|
+
import { PressableProps } from 'react-native';
|
|
5
|
+
import { ContentCardTemplate } from '../../../models';
|
|
6
|
+
/**
|
|
7
|
+
* Callback function that is called when a content card event occurs.
|
|
8
|
+
*/
|
|
9
|
+
export type ContentCardEventListener = (
|
|
10
|
+
/** The event that occurred, one of "onDismiss", "onDisplay", "onInteract" */
|
|
11
|
+
event?: ContentViewEvent,
|
|
12
|
+
/** The full content card data associated with the event */
|
|
13
|
+
data?: ContentTemplate,
|
|
14
|
+
/** Any additional native event data that accompanies the event */
|
|
15
|
+
nativeEvent?: any) => void;
|
|
16
|
+
/** Props for the ContentCardView component */
|
|
17
|
+
export interface ContentViewProps extends PressableProps, ComponentOverrideProps {
|
|
18
|
+
/** The content card data to display */
|
|
19
|
+
template: ContentTemplate;
|
|
20
|
+
/** Style overrides per template type for the content card */
|
|
21
|
+
styleOverrides?: {
|
|
22
|
+
/** Style overrides for the small image content card */
|
|
23
|
+
smallImageStyle?: SmallImageContentStyle;
|
|
24
|
+
/** Style overrides for the large image content card */
|
|
25
|
+
largeImageStyle?: LargeImageContentStyle;
|
|
26
|
+
/** Style overrides for the image only content card */
|
|
27
|
+
imageOnlyStyle?: ImageOnlyContentStyle;
|
|
28
|
+
};
|
|
29
|
+
/** The function to call when a content card event occurs */
|
|
30
|
+
listener?: ContentCardEventListener;
|
|
31
|
+
/** The variant of the content card to display */
|
|
32
|
+
variant?: ContentCardTemplate;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @experimental
|
|
36
|
+
* Renders a content card view.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ContentCardView: React.FC<ContentViewProps>;
|
|
39
|
+
//# sourceMappingURL=ContentCardView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentCardView.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ContentCardView/ContentCardView.tsx"],"names":[],"mappings":"AAYA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAIL,cAAc,EAIf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAsB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI1E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;AACrC,6EAA6E;AAC7E,KAAK,CAAC,EAAE,gBAAgB;AACxB,2DAA2D;AAC3D,IAAI,CAAC,EAAE,eAAe;AACtB,kEAAkE;AAClE,WAAW,CAAC,EAAE,GAAG,KACd,IAAI,CAAC;AAEV,8CAA8C;AAC9C,MAAM,WAAW,gBACf,SAAQ,cAAc,EACpB,sBAAsB;IACxB,uCAAuC;IACvC,QAAQ,EAAE,eAAe,CAAC;IAC1B,6DAA6D;IAC7D,cAAc,CAAC,EAAE;QACf,uDAAuD;QACvD,eAAe,CAAC,EAAE,sBAAsB,CAAC;QACzC,uDAAuD;QACvD,eAAe,CAAC,EAAE,sBAAsB,CAAC;QACzC,sDAAsD;QACtD,cAAc,CAAC,EAAE,qBAAqB,CAAC;KACxC,CAAC;IACF,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,iDAAiD;IACjD,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuPtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentCardView.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ContentCardView/ContentCardView.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PressableProps, TextStyle } from "react-native";
|
|
2
|
+
/** Props for the DismissButton component. Extends the PressableProps from react-native. */
|
|
3
|
+
export interface DismissButtonProps extends PressableProps {
|
|
4
|
+
/** The style of the text for the dismiss button */
|
|
5
|
+
textStyle?: TextStyle;
|
|
6
|
+
/** The function to call when the dismiss button is pressed */
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
/** The style of the dismiss button */
|
|
9
|
+
type: "simple" | "circle";
|
|
10
|
+
}
|
|
11
|
+
declare const DismissButton: ({ onPress, type, textStyle, style, ...props }: DismissButtonProps) => import("react").JSX.Element;
|
|
12
|
+
export default DismissButton;
|
|
13
|
+
//# sourceMappingURL=DismissButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DismissButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/DismissButton/DismissButton.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,cAAc,EAGd,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,2FAA2F;AAC3F,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,mDAAmD;IACnD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sCAAsC;IACtC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,GAAI,+CAMpB,kBAAkB,gCAiCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DismissButton.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/DismissButton/DismissButton.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { ViewProps } from "react-native";
|
|
3
|
+
declare const FullScreenCenterView: ({ children, style, ...rest }: PropsWithChildren<ViewProps>) => import("react").JSX.Element;
|
|
4
|
+
export default FullScreenCenterView;
|
|
5
|
+
//# sourceMappingURL=FullScreenCenterView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullScreenCenterView.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FullScreenCenterView/FullScreenCenterView.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3D,QAAA,MAAM,oBAAoB,GAAI,8BAA8B,iBAAiB,CAAC,SAAS,CAAC,gCAMvF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ImageProps, ImageStyle, TextProps, TextStyle, ViewProps, ViewStyle } from "react-native";
|
|
2
|
+
interface EmptyStateProps extends ViewProps {
|
|
3
|
+
image: string;
|
|
4
|
+
text: string;
|
|
5
|
+
styleOverrides?: {
|
|
6
|
+
container?: ViewStyle;
|
|
7
|
+
image?: ImageStyle;
|
|
8
|
+
text?: TextStyle;
|
|
9
|
+
};
|
|
10
|
+
InboxProps?: Partial<ViewProps>;
|
|
11
|
+
ImageProps?: Partial<ImageProps>;
|
|
12
|
+
TextProps?: Partial<TextProps>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @experimental First React Native inbox UI — subject to change while we expand testing.
|
|
16
|
+
*/
|
|
17
|
+
declare const EmptyState: React.FC<EmptyStateProps>;
|
|
18
|
+
export default EmptyState;
|
|
19
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Inbox/EmptyState.tsx"],"names":[],"mappings":"AAYA,OAAO,EAEL,UAAU,EACV,UAAU,EAGV,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,UAAU,eAAgB,SAAQ,SAAS;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE;QACf,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,IAAI,CAAC,EAAE,SAAS,CAAC;KAClB,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8BzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import { FlatListProps } from "react-native";
|
|
3
|
+
import { InboxSettings } from "../../providers/InboxProvider";
|
|
4
|
+
import { ContentTemplate } from "../../types/Templates";
|
|
5
|
+
import { ContentViewProps } from "../ContentCardView/ContentCardView";
|
|
6
|
+
export interface InboxProps<T> extends Partial<FlatListProps<T>> {
|
|
7
|
+
LoadingComponent?: ReactElement | null;
|
|
8
|
+
ErrorComponent?: ReactElement | null;
|
|
9
|
+
FallbackComponent?: ReactElement | null;
|
|
10
|
+
EmptyComponent?: ReactElement | null;
|
|
11
|
+
surface: string;
|
|
12
|
+
settings: InboxSettings | null;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
CardProps?: Partial<ContentViewProps>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @experimental First React Native inbox UI
|
|
19
|
+
*/
|
|
20
|
+
export declare function Inbox<T extends ContentTemplate>({ LoadingComponent, ErrorComponent, FallbackComponent, surface, settings, isLoading, error, ...props }: InboxProps<T>): React.ReactElement;
|
|
21
|
+
//# sourceMappingURL=Inbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Inbox/Inbox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAAgB,YAAY,EAA6C,MAAM,OAAO,CAAC;AACrG,OAAO,EAGL,aAAa,EAOd,MAAM,cAAc,CAAC;AAEtB,OAAsB,EACpB,aAAa,EACd,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,EAAmB,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAQvF,MAAM,WAAW,UAAU,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAC9D,gBAAgB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACvC;AAgLD;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,EAAE,EAC/C,gBAAwC,EACxC,cAAqB,EACrB,iBAAwB,EACxB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAgBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inbox.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Inbox/Inbox.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PaginationProps {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
maxVisibleDots?: number;
|
|
7
|
+
activeColor?: string;
|
|
8
|
+
inactiveColor?: string;
|
|
9
|
+
dotSize?: number;
|
|
10
|
+
spacing?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const Pagination: React.FC<PaginationProps>;
|
|
13
|
+
export default Pagination;
|
|
14
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA4EjD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmGhD,CAAA;AAuBD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/Pagination/Pagination.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ImageProps, ImageStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import { SettingsPlacement } from '../../providers/InboxProvider';
|
|
3
|
+
export interface UnreadIconProps extends ViewProps {
|
|
4
|
+
imageStyle?: ImageStyle;
|
|
5
|
+
containerStyle?: ViewStyle;
|
|
6
|
+
source?: ImageProps['source'];
|
|
7
|
+
darkSource?: ImageProps['source'];
|
|
8
|
+
size?: number;
|
|
9
|
+
position?: SettingsPlacement;
|
|
10
|
+
type?: 'dot' | 'image';
|
|
11
|
+
}
|
|
12
|
+
declare const UnreadIcon: ({ imageStyle, containerStyle, source, darkSource, size, position, type, style, ...props }: UnreadIconProps) => import("react").JSX.Element;
|
|
13
|
+
export default UnreadIcon;
|
|
14
|
+
//# sourceMappingURL=UnreadIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnreadIcon.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/UnreadIcon/UnreadIcon.tsx"],"names":[],"mappings":"AAYA,OAAO,EAEL,UAAU,EACV,UAAU,EAGV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACxB;AAqBD,QAAA,MAAM,UAAU,GAAI,2FAUjB,eAAe,gCA2HjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnreadIcon.spec.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/UnreadIcon/UnreadIcon.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./Button/Button";
|
|
2
|
+
export * from "./Inbox/Inbox";
|
|
3
|
+
export * from "./ContentCardView/ContentCardView";
|
|
4
|
+
export * from "../types/ContentViewEvent";
|
|
5
|
+
export * from "./Pagination/Pagination";
|
|
6
|
+
export * from "./UnreadIcon/UnreadIcon";
|
|
7
|
+
export { default as EmptyState } from "./Inbox/EmptyState";
|
|
8
|
+
export { ThemeProvider } from "../theme/ThemeProvider";
|
|
9
|
+
export type { Themes } from "../theme/Theme";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAYA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/index.ts"],"names":[],"mappings":"AAYA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAspectRatio.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useAspectRatio.tsx"],"names":[],"mappings":"AAeA,iBAAS,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,UAqBnC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAspectRatio.spec.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useAspectRatio.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContentTemplate } from '../types/Templates';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental
|
|
4
|
+
* Hook to fetch content card UI for a given surface via `Messaging.getContentCardUI`.
|
|
5
|
+
* @param surface - The surface to fetch the content card UI for.
|
|
6
|
+
* @returns An object containing the content card UI, error, loading state, and a refetch function.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useContentCardUI: (surface: string) => {
|
|
9
|
+
content: ContentTemplate[];
|
|
10
|
+
error: any;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
refetch: () => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useContentCardUI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContentCardUI.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useContentCardUI.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM;;;;;CAyB/C,CAAC"}
|