@frak-labs/components 1.0.3-beta.f6df627f → 1.0.4
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/cdn/Banner.B1y3jwHv.js +178 -0
- package/cdn/{ButtonShare.DNdo_eQJ.js → ButtonShare.elMtdxF3.js} +1 -1
- package/cdn/{ButtonWallet.CN2iHSTB.js → ButtonWallet.BUUPX0gO.js} +1 -1
- package/cdn/GiftIcon.eRNTGQ_r.js +1 -0
- package/cdn/OpenInAppButton.Dgb-qhM8.js +1 -0
- package/cdn/PostPurchase.Cy7-FrRh.js +89 -0
- package/cdn/components.js +1 -1
- package/cdn/formatReward.B1ZyoceC.js +1 -0
- package/cdn/loader.js +154 -14
- package/cdn/replay-V6FXES7X.BoL9fAjx.js +1 -0
- package/cdn/sharingPage.BYsqcN9O.js +1 -0
- package/cdn/useGlobalComponents.TG9kIYSc.js +1 -0
- package/cdn/useLightDomStyles.tjNBKcOr.js +1 -0
- package/cdn/usePlacement.BgMXY5CX.js +58 -0
- package/cdn/useReward.B530suzR.js +1 -0
- package/dist/GiftIcon-BIp9FTJs.js +338 -0
- package/dist/banner.d.ts +8 -0
- package/dist/banner.js +74 -44
- package/dist/buttonShare.js +6 -6
- package/dist/buttonWallet.js +2 -2
- package/dist/{formatReward-Bub6Z6eY.js → formatReward-Cf2KpA3x.js} +1 -1
- package/dist/openInApp.js +9 -26
- package/dist/postPurchase.d.ts +9 -1
- package/dist/postPurchase.js +93 -1382
- package/dist/{sharingPage-DFvQbviS.js → sharingPage-D6fQEXV9.js} +1 -1
- package/dist/useLightDomStyles-DVe5UDg6.js +48 -0
- package/dist/{usePlacement-V7NrKoub.js → usePlacement-DzEuVg_u.js} +7 -7
- package/dist/{useReward-DU3_yP8Q.js → useReward-ClVShg45.js} +1 -1
- package/package.json +4 -4
- package/cdn/Banner.BTj-CQM6.js +0 -162
- package/cdn/OpenInAppButton.C1Yipwka.js +0 -1
- package/cdn/PostPurchase.BvmSYSpL.js +0 -52
- package/cdn/formatReward.C7mU9_cV.js +0 -1
- package/cdn/sharingPage.Do_xfrTN.js +0 -1
- package/cdn/sprinkles.css.ts.vanilla.06k5OzG1.js +0 -1175
- package/cdn/useGlobalComponents.UJmjUUxk.js +0 -1
- package/cdn/useLightDomStyles.Gt7YUMDl.js +0 -1
- package/cdn/usePlacement.BJ7qe-pw.js +0 -58
- package/cdn/useReward.QsQc2c1D.js +0 -1
- package/dist/GiftIcon-c28NnqJ7.js +0 -1502
- package/dist/useLightDomStyles-gbuSWvRx.js +0 -89
- /package/dist/{useGlobalComponents-Cmfszr7v.js → useGlobalComponents-mSs9unyN.js} +0 -0
package/dist/postPurchase.d.ts
CHANGED
|
@@ -62,6 +62,13 @@ type PostPurchaseProps = {
|
|
|
62
62
|
* Use `{REWARD}` as placeholder for the reward amount.
|
|
63
63
|
*/
|
|
64
64
|
ctaText?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Override the image displayed on the left of the post-purchase card.
|
|
67
|
+
* Accepts an image URL. Falls back to the built-in gift icon when omitted.
|
|
68
|
+
* The image is constrained to the icon slot via `object-fit: contain`,
|
|
69
|
+
* so any aspect ratio renders correctly.
|
|
70
|
+
*/
|
|
71
|
+
imageUrl?: string;
|
|
65
72
|
/**
|
|
66
73
|
* Optional product cards forwarded to the sharing page when the user
|
|
67
74
|
* clicks the CTA. Accepts either a real {@link SharingPageProduct}
|
|
@@ -134,7 +141,8 @@ declare function PostPurchase({
|
|
|
134
141
|
ctaText: propCtaText,
|
|
135
142
|
preview,
|
|
136
143
|
previewVariant,
|
|
137
|
-
products
|
|
144
|
+
products,
|
|
145
|
+
imageUrl
|
|
138
146
|
}: PostPurchaseProps): _$preact.JSX.Element | null;
|
|
139
147
|
//#endregion
|
|
140
148
|
//#region src/components/PostPurchase/index.d.ts
|