admesh-ui-sdk 1.0.24 → 1.0.26
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/README.md +27 -81
- package/dist/components/AdMeshEcommerceCards.d.ts +68 -3
- package/dist/components/AdMeshEcommerceCards.d.ts.map +1 -1
- package/dist/components/AdMeshLayout.d.ts.map +1 -1
- package/dist/components/AdMeshLinkTracker.d.ts +11 -0
- package/dist/components/AdMeshLinkTracker.d.ts.map +1 -1
- package/dist/components/AdMeshRecommendations.d.ts +6 -1
- package/dist/components/AdMeshRecommendations.d.ts.map +1 -1
- package/dist/components/AdMeshTailAd.d.ts.map +1 -1
- package/dist/components/WeaveFallbackRecommendations.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3040 -3157
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/AdMeshRenderer.d.ts +11 -0
- package/dist/sdk/AdMeshRenderer.d.ts.map +1 -1
- package/dist/sdk/AdMeshSDK.d.ts +5 -0
- package/dist/sdk/AdMeshSDK.d.ts.map +1 -1
- package/dist/types/index.d.ts +12 -43
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/AdMeshInlineCard.d.ts +0 -17
- package/dist/components/AdMeshInlineCard.d.ts.map +0 -1
- package/dist/components/AdMeshProductCard.d.ts +0 -4
- package/dist/components/AdMeshProductCard.d.ts.map +0 -1
- package/dist/components/AdMeshSummaryLayout.d.ts +0 -22
- package/dist/components/AdMeshSummaryLayout.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -471,18 +471,6 @@ Layout component for displaying summary-style recommendations.
|
|
|
471
471
|
- Follow-up suggestions
|
|
472
472
|
- End-of-conversation recommendations
|
|
473
473
|
|
|
474
|
-
#### AdMeshInlineCard
|
|
475
|
-
Compact inline recommendation component perfect for chat interfaces.
|
|
476
|
-
|
|
477
|
-
```tsx
|
|
478
|
-
<AdMeshInlineCard
|
|
479
|
-
recommendation={recommendation}
|
|
480
|
-
compact={true}
|
|
481
|
-
showReason={true}
|
|
482
|
-
onClick={(adId, link) => window.open(link)}
|
|
483
|
-
/>
|
|
484
|
-
```
|
|
485
|
-
|
|
486
474
|
### Additional Components
|
|
487
475
|
|
|
488
476
|
#### AdMeshProductCard - Simple Variation
|
|
@@ -797,20 +785,6 @@ Displays recommendations as inline citations within text:
|
|
|
797
785
|
|
|
798
786
|
### Individual Components
|
|
799
787
|
|
|
800
|
-
#### AdMeshInlineCard
|
|
801
|
-
Compact inline recommendations for chat interfaces:
|
|
802
|
-
|
|
803
|
-
```tsx
|
|
804
|
-
import { AdMeshInlineCard } from 'admesh-ui-sdk';
|
|
805
|
-
|
|
806
|
-
<AdMeshInlineCard
|
|
807
|
-
recommendation={recommendation}
|
|
808
|
-
compact={true}
|
|
809
|
-
showReason={true}
|
|
810
|
-
onClick={(adId, link) => window.open(link)}
|
|
811
|
-
/>
|
|
812
|
-
```
|
|
813
|
-
|
|
814
788
|
#### AdMeshBadge
|
|
815
789
|
Reusable badge component for highlighting features and trust indicators:
|
|
816
790
|
|
|
@@ -1052,84 +1026,56 @@ const handleClaudeQuery = async (query) => {
|
|
|
1052
1026
|
- **Smart Positioning**: Non-intrusive placement options
|
|
1053
1027
|
## 📊 Tracking & Analytics
|
|
1054
1028
|
|
|
1055
|
-
All AdMesh UI components include comprehensive built-in tracking
|
|
1029
|
+
All AdMesh UI components include comprehensive built-in tracking via **exposure URLs** and **click URLs** provided in recommendations.
|
|
1056
1030
|
|
|
1057
1031
|
### Automatic Tracking
|
|
1058
1032
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
- **
|
|
1062
|
-
- **
|
|
1033
|
+
Tracking is handled automatically by the SDK components:
|
|
1034
|
+
|
|
1035
|
+
- **Exposure Tracking**: `AdMeshViewabilityTracker` fires exposure URLs when ads become viewable (MRC-compliant: 50% visible for 1 second)
|
|
1036
|
+
- **Click Tracking**: `AdMeshLinkTracker` navigates to click URLs which automatically track clicks and redirect to merchant URLs
|
|
1037
|
+
- **Conversion Tracking**: Handled via conversion pixels embedded in click URLs
|
|
1063
1038
|
|
|
1064
1039
|
```tsx
|
|
1065
|
-
// All components automatically track interactions
|
|
1066
|
-
<
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
window.open(admeshLink, '_blank');
|
|
1071
|
-
}}
|
|
1072
|
-
onTrackView={(data) => {
|
|
1073
|
-
// Optional: Custom view tracking
|
|
1074
|
-
console.log('Recommendation viewed:', data);
|
|
1075
|
-
}}
|
|
1040
|
+
// All components automatically track interactions via exposure/click URLs
|
|
1041
|
+
<AdMeshEcommerceCards
|
|
1042
|
+
brand={recommendation}
|
|
1043
|
+
// Exposure tracking handled by AdMeshViewabilityTracker (fires exposure_url)
|
|
1044
|
+
// Click tracking handled by AdMeshLinkTracker (uses click_url/admesh_link)
|
|
1076
1045
|
/>
|
|
1077
1046
|
```
|
|
1078
1047
|
|
|
1079
|
-
###
|
|
1048
|
+
### How Tracking Works
|
|
1080
1049
|
|
|
1081
|
-
|
|
1082
|
-
|
|
1050
|
+
1. **Exposure URLs** (`/exposure`) - Fired automatically when ads meet MRC viewability standards
|
|
1051
|
+
- Handled by `AdMeshViewabilityTracker` component
|
|
1052
|
+
- Used for billing and attribution
|
|
1083
1053
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
```
|
|
1054
|
+
2. **Click URLs** (`/click`) - Used when users click on recommendations
|
|
1055
|
+
- Handled by `AdMeshLinkTracker` component
|
|
1056
|
+
- Automatically tracks clicks and redirects to merchant
|
|
1088
1057
|
|
|
1089
|
-
|
|
1058
|
+
3. **Conversion Pixels** (`/conversion/pixel`) - Fired when conversions occur
|
|
1059
|
+
- Embedded in click URLs via UTM parameters
|
|
1060
|
+
- Tracked automatically by merchant sites
|
|
1090
1061
|
|
|
1091
|
-
|
|
1062
|
+
### Custom Tracking Components
|
|
1063
|
+
|
|
1064
|
+
Use `AdMeshLinkTracker` to wrap custom components for click tracking:
|
|
1092
1065
|
|
|
1093
1066
|
```tsx
|
|
1094
1067
|
import { AdMeshLinkTracker } from 'admesh-ui-sdk';
|
|
1095
1068
|
|
|
1096
1069
|
<AdMeshLinkTracker
|
|
1097
|
-
|
|
1098
|
-
admeshLink="https://useadmesh.com/
|
|
1070
|
+
recommendationId="rec_123"
|
|
1071
|
+
admeshLink="https://api.useadmesh.com/click/rec_123?..."
|
|
1099
1072
|
productId="product-456"
|
|
1100
|
-
trackingData={{
|
|
1101
|
-
customField: 'value',
|
|
1102
|
-
source: 'custom-component'
|
|
1103
|
-
}}
|
|
1104
|
-
onClick={() => {
|
|
1105
|
-
// Your custom click handler
|
|
1106
|
-
console.log('Custom click tracked');
|
|
1107
|
-
}}
|
|
1108
1073
|
>
|
|
1109
1074
|
<YourCustomComponent />
|
|
1110
1075
|
</AdMeshLinkTracker>
|
|
1111
1076
|
```
|
|
1112
1077
|
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
```tsx
|
|
1116
|
-
import { useAdMeshTracker } from 'admesh-ui-sdk';
|
|
1117
|
-
|
|
1118
|
-
function CustomComponent() {
|
|
1119
|
-
const { trackClick, trackView, trackConversion } = useAdMeshTracker();
|
|
1120
|
-
|
|
1121
|
-
const handleCustomEvent = async () => {
|
|
1122
|
-
await trackClick({
|
|
1123
|
-
adId: 'ad-123',
|
|
1124
|
-
admeshLink: 'https://useadmesh.com/track?ad_id=ad-123',
|
|
1125
|
-
productId: 'product-456',
|
|
1126
|
-
metadata: { source: 'custom-button' }
|
|
1127
|
-
});
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
return <button onClick={handleCustomEvent}>Track Custom Event</button>;
|
|
1131
|
-
}
|
|
1132
|
-
```
|
|
1078
|
+
Note: The `admeshLink` prop should be the click URL from the recommendation, which already includes all tracking parameters.
|
|
1133
1079
|
|
|
1134
1080
|
## 🔗 Integration Examples
|
|
1135
1081
|
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AdMeshRecommendation } from '../types/index';
|
|
2
|
+
import { AdMeshRecommendation, Product } from '../types/index';
|
|
3
|
+
/**
|
|
4
|
+
* Props for AdMeshEcommerceCards component.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This component requires BOTH brand information and products to be present.
|
|
8
|
+
* - Brand info: Extracted from brand.creative_input (brand_name, assets.logo_url, short_description)
|
|
9
|
+
* - Products: Must be provided in brand.products[] array with at least one product
|
|
10
|
+
*
|
|
11
|
+
* Both brand header and product cards will be displayed when valid data is provided.
|
|
12
|
+
*/
|
|
3
13
|
export interface AdMeshEcommerceCardsProps {
|
|
4
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Required: Single brand recommendation object containing brand info and products array.
|
|
16
|
+
* Both brand information (name, logo, description) and products array must be present.
|
|
17
|
+
* Brand info is extracted from creative_input, products from the products[] array.
|
|
18
|
+
*/
|
|
19
|
+
brand: AdMeshRecommendation;
|
|
5
20
|
title?: string;
|
|
6
21
|
showTitle?: boolean;
|
|
7
22
|
className?: string;
|
|
8
23
|
cardClassName?: string;
|
|
9
|
-
onProductClick?: (product:
|
|
24
|
+
onProductClick?: (product: Product) => void;
|
|
10
25
|
showPricing?: boolean;
|
|
11
26
|
showRatings?: boolean;
|
|
12
27
|
showBrand?: boolean;
|
|
@@ -17,7 +32,57 @@ export interface AdMeshEcommerceCardsProps {
|
|
|
17
32
|
theme?: 'light' | 'dark' | 'auto';
|
|
18
33
|
borderRadius?: 'none' | 'sm' | 'md' | 'lg';
|
|
19
34
|
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
35
|
+
sessionId?: string;
|
|
36
|
+
onFeedback?: (helpful: boolean, recommendationId: string) => void;
|
|
20
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* AdMeshEcommerceCards Component
|
|
40
|
+
*
|
|
41
|
+
* Displays a brand header and horizontal scrolling product cards for ecommerce recommendations.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* **Requirements:**
|
|
45
|
+
* - Both brand information AND products are required
|
|
46
|
+
* - Brand info: brand.creative_input.brand_name, brand.creative_input.assets.logo_url, brand.creative_input.short_description
|
|
47
|
+
* - Products: brand.products[] array with at least one product
|
|
48
|
+
*
|
|
49
|
+
* The component will display:
|
|
50
|
+
* 1. Brand header section (logo, name, description) - always shown when brand info exists
|
|
51
|
+
* 2. Product cards section (horizontal scroll) - always shown when products exist
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <AdMeshEcommerceCards
|
|
56
|
+
* brand={{
|
|
57
|
+
* creative_input: {
|
|
58
|
+
* brand_name: "TechCorp",
|
|
59
|
+
* assets: { logo_url: "https://..." },
|
|
60
|
+
* short_description: "Premium tech products"
|
|
61
|
+
* },
|
|
62
|
+
* products: [
|
|
63
|
+
* {
|
|
64
|
+
* product_id: "prod1",
|
|
65
|
+
* product_link: "https://techcorp.com/product1",
|
|
66
|
+
* product_name: "Laptop Pro",
|
|
67
|
+
* product_description: "High-performance laptop",
|
|
68
|
+
* product_price: 1299.99,
|
|
69
|
+
* product_discount: 15,
|
|
70
|
+
* product_cta_label: "Buy Now"
|
|
71
|
+
* },
|
|
72
|
+
* {
|
|
73
|
+
* product_id: "prod2",
|
|
74
|
+
* product_click_url: "https://techcorp.com/product2",
|
|
75
|
+
* product_name: "Wireless Mouse",
|
|
76
|
+
* product_description: "Ergonomic mouse",
|
|
77
|
+
* product_price: "49.99",
|
|
78
|
+
* product_discount: "10%",
|
|
79
|
+
* product_cta_label: "Add to Cart"
|
|
80
|
+
* }
|
|
81
|
+
* ]
|
|
82
|
+
* }}
|
|
83
|
+
* />
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
21
86
|
export declare const AdMeshEcommerceCards: React.FC<AdMeshEcommerceCardsProps>;
|
|
22
87
|
export default AdMeshEcommerceCards;
|
|
23
88
|
//# sourceMappingURL=AdMeshEcommerceCards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdMeshEcommerceCards.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshEcommerceCards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"AdMeshEcommerceCards.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshEcommerceCards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKpE;;;;;;;;;GASG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA6cpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdMeshLayout.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AdMeshLayout.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAqC,MAAM,gBAAgB,CAAC;AAK3F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA6HpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AdMeshLinkTrackerProps } from '../types/index';
|
|
3
|
+
/**
|
|
4
|
+
* AdMeshLinkTracker Component
|
|
5
|
+
*
|
|
6
|
+
* Wraps content with click tracking via AdMesh click URLs.
|
|
7
|
+
*
|
|
8
|
+
* Note: View/exposure tracking is handled separately by AdMeshViewabilityTracker component.
|
|
9
|
+
* This component only handles click navigation to the admeshLink (which contains click tracking).
|
|
10
|
+
*
|
|
11
|
+
* The admeshLink prop should be the click URL from the recommendation, which already includes
|
|
12
|
+
* all necessary tracking parameters and will redirect to the merchant URL.
|
|
13
|
+
*/
|
|
3
14
|
export declare const AdMeshLinkTracker: React.FC<AdMeshLinkTrackerProps>;
|
|
4
15
|
//# sourceMappingURL=AdMeshLinkTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdMeshLinkTracker.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshLinkTracker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"AdMeshLinkTracker.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshLinkTracker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAG7D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwE9D,CAAC"}
|
|
@@ -74,6 +74,11 @@ export interface AdMeshRecommendationsProps {
|
|
|
74
74
|
* If provided, the component will wait until this is true before attempting to attach the portal.
|
|
75
75
|
*/
|
|
76
76
|
isContainerReady?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Optional user ID to override the context-provided user ID.
|
|
79
|
+
* Useful for per-message or specific user tracking scenarios.
|
|
80
|
+
*/
|
|
81
|
+
userId?: string;
|
|
77
82
|
}
|
|
78
83
|
/**
|
|
79
84
|
* AdMeshRecommendations - Citation/Product Format Recommendation Display
|
|
@@ -116,6 +121,6 @@ export interface AdMeshRecommendationsProps {
|
|
|
116
121
|
* </AdMeshProvider>
|
|
117
122
|
* ```
|
|
118
123
|
*/
|
|
119
|
-
export declare const AdMeshRecommendations: ({ onRecommendationsShown, onError, messageId, query, onPasteToInput, followups_container_id: _followups_container_id, onExecuteQuery: _onExecuteQuery, onFollowupDetected, isContainerReady, }: AdMeshRecommendationsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
124
|
+
export declare const AdMeshRecommendations: ({ onRecommendationsShown, onError, messageId, query, onPasteToInput, followups_container_id: _followups_container_id, onExecuteQuery: _onExecuteQuery, onFollowupDetected, isContainerReady, userId: propUserId, }: AdMeshRecommendationsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
120
125
|
export default AdMeshRecommendations;
|
|
121
126
|
//# sourceMappingURL=AdMeshRecommendations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdMeshRecommendations.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshRecommendations.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAErD,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IAEH,kBAAkB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9G;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AdMeshRecommendations.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshRecommendations.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAErD,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IAEH,kBAAkB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9G;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,qBAAqB,GAAI,oNAYnC,0BAA0B,mDA+Z5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdMeshTailAd.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshTailAd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"AdMeshTailAd.d.ts","sourceRoot":"","sources":["../../src/components/AdMeshTailAd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIxE,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,oBAAoB,EAAE,CAAC;IACxC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,cAAc,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA6gBpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeaveFallbackRecommendations.d.ts","sourceRoot":"","sources":["../../src/components/WeaveFallbackRecommendations.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,WAAW,iCAAiC;IAChD;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAE5B,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"WeaveFallbackRecommendations.d.ts","sourceRoot":"","sources":["../../src/components/WeaveFallbackRecommendations.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,WAAW,iCAAiC;IAChD;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAE5B,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAmPpF,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export { AdMeshLayout } from './AdMeshLayout';
|
|
2
|
-
export { AdMeshProductCard } from './AdMeshProductCard';
|
|
3
|
-
export { AdMeshInlineCard } from './AdMeshInlineCard';
|
|
4
2
|
export { AdMeshEcommerceCards } from './AdMeshEcommerceCards';
|
|
5
3
|
export { AdMeshTailAd } from './AdMeshTailAd';
|
|
6
|
-
export { AdMeshSummaryLayout } from './AdMeshSummaryLayout';
|
|
7
4
|
export { AdMeshBridgeFormat } from './AdMeshBridgeFormat';
|
|
8
|
-
export { AdMeshTailAd as AdMeshSummaryUnit } from './AdMeshTailAd';
|
|
9
5
|
export { AdMeshLinkTracker } from './AdMeshLinkTracker';
|
|
10
6
|
export { AdMeshBadge } from './AdMeshBadge';
|
|
11
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,18 +22,13 @@ export type { AdMeshContextValue } from './context/AdMeshContext';
|
|
|
22
22
|
export { WeaveAdFormatProvider, useWeaveAdFormatContext } from './context/WeaveAdFormatContext';
|
|
23
23
|
export type { WeaveAdFormatContextType } from './context/WeaveAdFormatContext';
|
|
24
24
|
export { AdMeshEcommerceCards } from './components/AdMeshEcommerceCards';
|
|
25
|
-
export { AdMeshProductCard } from './components/AdMeshProductCard';
|
|
26
|
-
export { AdMeshInlineCard } from './components/AdMeshInlineCard';
|
|
27
25
|
export { AdMeshLayout } from './components/AdMeshLayout';
|
|
28
|
-
export { AdMeshSummaryLayout } from './components/AdMeshSummaryLayout';
|
|
29
26
|
export { AdMeshTailAd } from './components/AdMeshTailAd';
|
|
30
27
|
export type { AdMeshTailAdProps } from './components/AdMeshTailAd';
|
|
31
28
|
export { AdMeshBridgeFormat } from './components/AdMeshBridgeFormat';
|
|
32
29
|
export type { AdMeshBridgeFormatProps } from './components/AdMeshBridgeFormat';
|
|
33
30
|
export { AdMeshFollowup } from './components/AdMeshFollowup';
|
|
34
31
|
export type { AdMeshFollowupProps } from './components/AdMeshFollowup';
|
|
35
|
-
export { AdMeshTailAd as AdMeshSummaryUnit } from './components/AdMeshTailAd';
|
|
36
|
-
export type { AdMeshTailAdProps as AdMeshSummaryUnitProps } from './components/AdMeshTailAd';
|
|
37
32
|
export { AdMeshViewabilityTracker } from './components/AdMeshViewabilityTracker';
|
|
38
33
|
export { AdMeshLinkTracker } from './components/AdMeshLinkTracker';
|
|
39
34
|
export { AdMeshBadge } from './components/AdMeshBadge';
|
|
@@ -41,7 +36,6 @@ export { WeaveAdFormatContainer } from './components/WeaveAdFormatContainer';
|
|
|
41
36
|
export type { WeaveAdFormatContainerProps } from './components/WeaveAdFormatContainer';
|
|
42
37
|
export { useAdMesh } from './hooks/useAdMesh';
|
|
43
38
|
export { useAdMeshStyles } from './hooks/useAdMeshStyles';
|
|
44
|
-
export { useAdMeshTracker } from './hooks/useAdMeshTracker';
|
|
45
39
|
export { useViewabilityTracker } from './hooks/useViewabilityTracker';
|
|
46
40
|
export { useWeaveAdFormat } from './hooks/useWeaveAdFormat';
|
|
47
41
|
export type { UseWeaveAdFormatOptions } from './hooks/useWeaveAdFormat';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAGnF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OA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