@frak-labs/components 1.0.3 → 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.
Files changed (41) hide show
  1. package/cdn/Banner.B1y3jwHv.js +178 -0
  2. package/cdn/{ButtonShare.FHUOd26e.js → ButtonShare.elMtdxF3.js} +1 -1
  3. package/cdn/{ButtonWallet.CN2iHSTB.js → ButtonWallet.BUUPX0gO.js} +1 -1
  4. package/cdn/GiftIcon.eRNTGQ_r.js +1 -0
  5. package/cdn/OpenInAppButton.Dgb-qhM8.js +1 -0
  6. package/cdn/PostPurchase.Cy7-FrRh.js +89 -0
  7. package/cdn/components.js +1 -1
  8. package/cdn/formatReward.B1ZyoceC.js +1 -0
  9. package/cdn/loader.js +154 -14
  10. package/cdn/replay-V6FXES7X.BoL9fAjx.js +1 -0
  11. package/cdn/{sharingPage.CvUkxEML.js → sharingPage.BYsqcN9O.js} +1 -1
  12. package/cdn/useGlobalComponents.TG9kIYSc.js +1 -0
  13. package/cdn/useLightDomStyles.tjNBKcOr.js +1 -0
  14. package/cdn/usePlacement.BgMXY5CX.js +58 -0
  15. package/cdn/useReward.B530suzR.js +1 -0
  16. package/dist/GiftIcon-BIp9FTJs.js +338 -0
  17. package/dist/banner.d.ts +8 -0
  18. package/dist/banner.js +74 -44
  19. package/dist/buttonShare.js +6 -6
  20. package/dist/buttonWallet.js +2 -2
  21. package/dist/{formatReward-Bub6Z6eY.js → formatReward-Cf2KpA3x.js} +1 -1
  22. package/dist/openInApp.js +9 -26
  23. package/dist/postPurchase.d.ts +9 -1
  24. package/dist/postPurchase.js +93 -1382
  25. package/dist/{sharingPage-DFvQbviS.js → sharingPage-D6fQEXV9.js} +1 -1
  26. package/dist/useLightDomStyles-DVe5UDg6.js +48 -0
  27. package/dist/{usePlacement-V7NrKoub.js → usePlacement-DzEuVg_u.js} +7 -7
  28. package/dist/{useReward-DU3_yP8Q.js → useReward-ClVShg45.js} +1 -1
  29. package/package.json +3 -3
  30. package/cdn/Banner.BTj-CQM6.js +0 -162
  31. package/cdn/OpenInAppButton.C1Yipwka.js +0 -1
  32. package/cdn/PostPurchase.u0s94KFf.js +0 -52
  33. package/cdn/formatReward.C7mU9_cV.js +0 -1
  34. package/cdn/sprinkles.css.ts.vanilla.06k5OzG1.js +0 -1175
  35. package/cdn/useGlobalComponents.UJmjUUxk.js +0 -1
  36. package/cdn/useLightDomStyles.Gt7YUMDl.js +0 -1
  37. package/cdn/usePlacement.BJ7qe-pw.js +0 -58
  38. package/cdn/useReward.QsQc2c1D.js +0 -1
  39. package/dist/GiftIcon-c28NnqJ7.js +0 -1502
  40. package/dist/useLightDomStyles-gbuSWvRx.js +0 -89
  41. /package/dist/{useGlobalComponents-Cmfszr7v.js → useGlobalComponents-mSs9unyN.js} +0 -0
@@ -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