@beamimpact/web-sdk 1.55.7 → 1.56.3
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 +5 -0
- package/dist/chunks/_share-dialog-dependencies-Bk60ibnw.esm.js +2 -0
- package/dist/chunks/{_share-dialog-dependencies-BVNp0oLJ.esm.js.map → _share-dialog-dependencies-Bk60ibnw.esm.js.map} +1 -1
- package/dist/chunks/_share-dialog-dependencies-D6vA_2f6.esm.js +2 -0
- package/dist/chunks/{_share-dialog-dependencies-D4i8Nvve.esm.js.map → _share-dialog-dependencies-D6vA_2f6.esm.js.map} +1 -1
- package/dist/chunks/beam-errors-Ci0d3926.esm.js.map +1 -1
- package/dist/chunks/{beam-errors-CCe004HS.esm.d.ts → beam-errors-DUQ9pK2V.esm.d.ts} +7 -1
- package/dist/chunks/{cart-contents-CLT7p7Gd.esm.d.ts → cart-contents-CEoSx3y4.esm.d.ts} +1 -1
- package/dist/chunks/{css-card-grid-CvoGpsJH.esm.js → css-card-grid-DixMt6ek.esm.js} +2 -2
- package/dist/chunks/{css-card-grid-CvoGpsJH.esm.js.map → css-card-grid-DixMt6ek.esm.js.map} +1 -1
- package/dist/chunks/enforce-config-DHnpgqSK.esm.js +3 -0
- package/dist/chunks/enforce-config-DHnpgqSK.esm.js.map +1 -0
- package/dist/chunks/enforce-config-DUbQnaLO.esm.js +3 -0
- package/dist/chunks/enforce-config-DUbQnaLO.esm.js.map +1 -0
- package/dist/chunks/events-COWOQoLW.esm.js +2 -0
- package/dist/chunks/{events-Dki0ka4F.esm.js.map → events-COWOQoLW.esm.js.map} +1 -1
- package/dist/chunks/{events-B7l6VPsF.esm.d.ts → events-Dwqfqbij.esm.d.ts} +33 -5
- package/dist/chunks/index-8rOpG9kf.esm.js +2 -0
- package/dist/chunks/index-8rOpG9kf.esm.js.map +1 -0
- package/dist/chunks/{index-BAgWh5OK.esm.js → index-B1GmdVT3.esm.js} +2 -2
- package/dist/chunks/index-B1GmdVT3.esm.js.map +1 -0
- package/dist/chunks/{index-DKAZRTl5.esm.js → index-B2dxbh1d.esm.js} +2 -2
- package/dist/chunks/{index-DKAZRTl5.esm.js.map → index-B2dxbh1d.esm.js.map} +1 -1
- package/dist/chunks/{index-DPptZHfR.esm.js → index-BEEmYYxP.esm.js} +28 -18
- package/dist/chunks/index-BEEmYYxP.esm.js.map +1 -0
- package/dist/chunks/{index-CWnHkgy3.esm.js → index-BIEV1MH0.esm.js} +2 -2
- package/dist/chunks/{index-CWnHkgy3.esm.js.map → index-BIEV1MH0.esm.js.map} +1 -1
- package/dist/chunks/{index-CBS5Fqry.esm.d.ts → index-BLlSL37B.esm.d.ts} +4 -2
- package/dist/chunks/{index-C-hPf29c.esm.d.ts → index-BY5lSRmw.esm.d.ts} +4 -1
- package/dist/chunks/index-BaWMWAyt.esm.js +2 -0
- package/dist/chunks/index-BaWMWAyt.esm.js.map +1 -0
- package/dist/chunks/index-BeX4QeUu.esm.js +2 -0
- package/dist/chunks/index-BeX4QeUu.esm.js.map +1 -0
- package/dist/chunks/{index-CGKJagBi.esm.js → index-C3v-y56g.esm.js} +2 -2
- package/dist/chunks/index-C3v-y56g.esm.js.map +1 -0
- package/dist/chunks/{index-DEoMwStx.esm.d.ts → index-C_u1FXtO.esm.d.ts} +33 -5
- package/dist/chunks/{index-CG2AhvV9.esm.js → index-CqqF1sQo.esm.js} +2 -2
- package/dist/chunks/index-CqqF1sQo.esm.js.map +1 -0
- package/dist/chunks/index-Cs4Kp9X4.esm.js +2 -0
- package/dist/chunks/index-Cs4Kp9X4.esm.js.map +1 -0
- package/dist/chunks/index-D20ifskY.esm.d.ts +21 -0
- package/dist/chunks/{index-DmUEFwoM.esm.js → index-D3hxLDQF.esm.js} +2 -2
- package/dist/chunks/index-D3hxLDQF.esm.js.map +1 -0
- package/dist/chunks/{index-DBb5HSkR.esm.js → index-D5TZB-zM.esm.js} +2 -2
- package/dist/chunks/index-D5TZB-zM.esm.js.map +1 -0
- package/dist/chunks/{index-DTPlqZRf.esm.d.ts → index-DDCtGN21.esm.d.ts} +15 -2
- package/dist/chunks/index-DSJACB_p.esm.js +2 -0
- package/dist/chunks/{index-BNjsFEGn.esm.js.map → index-DSJACB_p.esm.js.map} +1 -1
- package/dist/chunks/{index-Ct1m4IjM.esm.js → index-DmjZnpod.esm.js} +2 -2
- package/dist/chunks/index-DmjZnpod.esm.js.map +1 -0
- package/dist/chunks/{index-rxgS4BLp.esm.d.ts → index-DyUuvdr3.esm.d.ts} +6 -2
- package/dist/chunks/{index-Bliur1O3.esm.d.ts → index-EJRmgmQu.esm.d.ts} +33 -5
- package/dist/chunks/{index-DvhxjeiK.esm.js → index-UMeAzKTG.esm.js} +28 -18
- package/dist/chunks/index-UMeAzKTG.esm.js.map +1 -0
- package/dist/chunks/index-hghrT7Z_.esm.d.ts +40 -0
- package/dist/chunks/index-mppXVWCH.esm.js +2 -0
- package/dist/chunks/{index-IKiJwo5v.esm.js.map → index-mppXVWCH.esm.js.map} +1 -1
- package/dist/chunks/{index-DjrWwYdg.esm.js → index-n62IxH5D.esm.js} +2 -2
- package/dist/chunks/index-n62IxH5D.esm.js.map +1 -0
- package/dist/chunks/{index-tbwbkOdj.esm.js → index-nAPzvUWE.esm.js} +2 -2
- package/dist/chunks/index-nAPzvUWE.esm.js.map +1 -0
- package/dist/chunks/{index-DXj15KHe.esm.d.ts → index-xcGPhpiO.esm.d.ts} +13 -1
- package/dist/chunks/lit-JRlupCB5.esm.js +25 -0
- package/dist/chunks/lit-JRlupCB5.esm.js.map +1 -0
- package/dist/chunks/loading-template-BFvXaTlD.esm.js +2 -0
- package/dist/chunks/{loading-template-DG4lkIIc.esm.js.map → loading-template-BFvXaTlD.esm.js.map} +1 -1
- package/dist/chunks/{localize-Btu9xYcE.esm.js → localize-Dg7NgKIP.esm.js} +4 -4
- package/dist/chunks/localize-Dg7NgKIP.esm.js.map +1 -0
- package/dist/chunks/{localize-C25pEGnx.esm.js → localize-DkAbsh05.esm.js} +4 -4
- package/dist/chunks/localize-DkAbsh05.esm.js.map +1 -0
- package/dist/chunks/lodash-BSs6Il-c.esm.js +2 -0
- package/dist/chunks/lodash-BSs6Il-c.esm.js.map +1 -0
- package/dist/chunks/{openapi-spec-Bk7E2QQP.esm.d.ts → openapi-spec-B4z4_CMq.esm.d.ts} +18 -0
- package/dist/chunks/{order-page-C3b348k0.esm.js → order-page-B0WbVrvh.esm.js} +2 -2
- package/dist/chunks/order-page-B0WbVrvh.esm.js.map +1 -0
- package/dist/chunks/{order-page-M7a2TINy.esm.d.ts → order-page-CSEjG6ma.esm.d.ts} +19 -18
- package/dist/chunks/{order-page-CuL1s6HR.esm.js → order-page-CT3hnhzf.esm.js} +2 -2
- package/dist/chunks/order-page-CT3hnhzf.esm.js.map +1 -0
- package/dist/chunks/{progress-bar-DF7UuuHb.esm.js → progress-bar-B82FOT8n.esm.js} +2 -2
- package/dist/chunks/{progress-bar-DF7UuuHb.esm.js.map → progress-bar-B82FOT8n.esm.js.map} +1 -1
- package/dist/chunks/{promo-pill-label-BihVdXIv.esm.js → promo-pill-label-D_4zJ7uy.esm.js} +3 -3
- package/dist/chunks/{promo-pill-label-BihVdXIv.esm.js.map → promo-pill-label-D_4zJ7uy.esm.js.map} +1 -1
- package/dist/chunks/{promo-pill-label-CD0lWdsv.esm.js → promo-pill-label-DcsiJS_N.esm.js} +3 -3
- package/dist/chunks/{promo-pill-label-CD0lWdsv.esm.js.map → promo-pill-label-DcsiJS_N.esm.js.map} +1 -1
- package/dist/chunks/{promo-types-BPmDZ5dF.esm.d.ts → promo-types-CmZzhkpN.esm.d.ts} +3 -2
- package/dist/chunks/promo-types-DKAOFHJr.esm.js.map +1 -1
- package/dist/chunks/{responsive-BR8qUfBa.esm.js → responsive-CIV4sFdH.esm.js} +2 -2
- package/dist/chunks/{responsive-BR8qUfBa.esm.js.map → responsive-CIV4sFdH.esm.js.map} +1 -1
- package/dist/chunks/routes-BIMwJ8u9.esm.js +2 -0
- package/dist/chunks/routes-BIMwJ8u9.esm.js.map +1 -0
- package/dist/chunks/routes-DSu5s3K7.esm.js +2 -0
- package/dist/chunks/routes-DSu5s3K7.esm.js.map +1 -0
- package/dist/chunks/routes-OxC3Ah30.esm.d.ts +638 -0
- package/dist/chunks/{share-button-BnNOZHBt.esm.js → share-button-CLMw49f5.esm.js} +2 -2
- package/dist/chunks/{share-button-BnNOZHBt.esm.js.map → share-button-CLMw49f5.esm.js.map} +1 -1
- package/dist/chunks/{share-button-BzmG48J9.esm.js → share-button-DXS3zbJz.esm.js} +2 -2
- package/dist/chunks/{share-button-BzmG48J9.esm.js.map → share-button-DXS3zbJz.esm.js.map} +1 -1
- package/dist/chunks/{share-button-BJ8T-uYK.esm.js → share-button-DkTpGZk1.esm.js} +8 -3
- package/dist/chunks/share-button-DkTpGZk1.esm.js.map +1 -0
- package/dist/chunks/{share-button-VEIdBFu3.esm.js → share-button-Dzc7loia.esm.js} +8 -3
- package/dist/chunks/share-button-Dzc7loia.esm.js.map +1 -0
- package/dist/chunks/{types-CPxMwnoR.esm.d.ts → types-D_PLq1pj.esm.d.ts} +1 -1
- package/dist/chunks/{update-cart-HlVGSYR7.esm.js → update-cart-ByUvNLyZ.esm.js} +2 -2
- package/dist/chunks/update-cart-ByUvNLyZ.esm.js.map +1 -0
- package/dist/chunks/{update-cart-CauFT0AF.esm.d.ts → update-cart-DWgFuC7U.esm.d.ts} +3 -2
- package/dist/chunks/{update-cart-C6BdmBt1.esm.js → update-cart-yj_9VGHp.esm.js} +2 -2
- package/dist/chunks/update-cart-yj_9VGHp.esm.js.map +1 -0
- package/dist/chunks/vendor-ckSdd6aH.esm.js +1286 -0
- package/dist/chunks/vendor-ckSdd6aH.esm.js.map +1 -0
- package/dist/components/beam-partner-logos.esm.js +5 -5
- package/dist/components/beam-partner-logos.esm.js.map +1 -1
- package/dist/components/beam-partner-logos.js +5 -5
- package/dist/components/beam-partner-logos.js.map +1 -1
- package/dist/components/community-impact.d.ts +1 -3
- package/dist/components/community-impact.esm.js +11 -6
- package/dist/components/community-impact.esm.js.map +1 -1
- package/dist/components/community-impact.js +11 -6
- package/dist/components/community-impact.js.map +1 -1
- package/dist/components/cumulative-impact.d.ts +1 -1
- package/dist/components/cumulative-impact.esm.js +10 -10
- package/dist/components/cumulative-impact.esm.js.map +1 -1
- package/dist/components/cumulative-impact.js +10 -10
- package/dist/components/cumulative-impact.js.map +1 -1
- package/dist/components/impact-overview.d.ts +36 -39
- package/dist/components/impact-overview.esm.js +11 -6
- package/dist/components/impact-overview.esm.js.map +1 -1
- package/dist/components/impact-overview.js +11 -6
- package/dist/components/impact-overview.js.map +1 -1
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/post-purchase.d.ts +11 -12
- package/dist/components/post-purchase.esm.js +4 -4
- package/dist/components/post-purchase.esm.js.map +1 -1
- package/dist/components/post-purchase.js +4 -4
- package/dist/components/post-purchase.js.map +1 -1
- package/dist/components/product-details-page.d.ts +25 -26
- package/dist/components/product-details-page.esm.js +21 -21
- package/dist/components/product-details-page.esm.js.map +1 -1
- package/dist/components/product-details-page.js +21 -21
- package/dist/components/product-details-page.js.map +1 -1
- package/dist/components/redeem-transaction.d.ts +4 -7
- package/dist/components/redeem-transaction.esm.js +1 -1
- package/dist/components/redeem-transaction.js +1 -1
- package/dist/components/select-nonprofit.d.ts +4 -16
- package/dist/components/select-nonprofit.esm.js +6 -5
- package/dist/components/select-nonprofit.esm.js.map +1 -1
- package/dist/components/select-nonprofit.js +6 -5
- package/dist/components/select-nonprofit.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.d.ts +2 -3
- package/dist/components/select-subscription-nonprofit.esm.js +42 -21
- package/dist/components/select-subscription-nonprofit.esm.js.map +1 -1
- package/dist/components/select-subscription-nonprofit.js +42 -21
- package/dist/components/select-subscription-nonprofit.js.map +1 -1
- package/dist/components/shopify.d.ts +8 -12
- package/dist/components/shopify.esm.js +1 -1
- package/dist/components/shopify.js +1 -1
- package/dist/components/social-share.d.ts +13 -2
- package/dist/components/social-share.esm.js +11 -4
- package/dist/components/social-share.esm.js.map +1 -1
- package/dist/components/social-share.js +11 -4
- package/dist/components/social-share.js.map +1 -1
- package/dist/components/subscription-impact.d.ts +37 -50
- package/dist/components/subscription-impact.esm.js +15 -3
- package/dist/components/subscription-impact.esm.js.map +1 -1
- package/dist/components/subscription-impact.js +15 -3
- package/dist/components/subscription-impact.js.map +1 -1
- package/dist/components/subscription-management.d.ts +92 -93
- package/dist/components/subscription-management.esm.js +4 -3
- package/dist/components/subscription-management.esm.js.map +1 -1
- package/dist/components/subscription-management.js +4 -3
- package/dist/components/subscription-management.js.map +1 -1
- package/dist/index.d.ts +19 -22
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/beam.d.ts +3 -2
- package/dist/integrations/beam.esm.js +1 -1
- package/dist/integrations/beam.esm.js.map +1 -1
- package/dist/integrations/beam.js +1 -1
- package/dist/integrations/beam.js.map +1 -1
- package/dist/integrations/cart.d.ts +3 -3
- package/dist/integrations/cart.esm.js +1 -1
- package/dist/integrations/cart.js +1 -1
- package/dist/integrations/index.d.ts +14 -18
- package/dist/integrations/index.esm.js +1 -1
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/logs.d.ts +2 -2
- package/dist/integrations/logs.esm.js +1 -1
- package/dist/integrations/logs.js +1 -1
- package/dist/integrations/promoManager.d.ts +1 -1
- package/dist/integrations/promoManager.esm.js +1 -1
- package/dist/integrations/promoManager.esm.js.map +1 -1
- package/dist/integrations/promoManager.js +1 -1
- package/dist/integrations/promoManager.js.map +1 -1
- package/dist/integrations/session.d.ts +1 -1
- package/dist/integrations/session.esm.js +1 -1
- package/dist/integrations/session.js +1 -1
- package/dist/integrations/shopify.d.ts +6 -10
- package/dist/integrations/shopify.esm.js +1 -1
- package/dist/integrations/shopify.js +1 -1
- package/dist/integrations/statsig.d.ts +9 -5
- package/dist/integrations/statsig.esm.js +14 -14
- package/dist/integrations/statsig.esm.js.map +1 -1
- package/dist/integrations/statsig.js +14 -14
- package/dist/integrations/statsig.js.map +1 -1
- package/dist/integrations/utils.d.ts +7 -7
- package/dist/integrations/utils.esm.js +1 -1
- package/dist/integrations/utils.js +1 -1
- package/dist/react/beam-partner-logos.esm.js +1 -1
- package/dist/react/beam-partner-logos.esm.js.map +1 -1
- package/dist/react/beam-partner-logos.js +1 -1
- package/dist/react/beam-partner-logos.js.map +1 -1
- package/dist/react/community-impact.d.ts +1 -3
- package/dist/react/community-impact.esm.js +1 -1
- package/dist/react/community-impact.esm.js.map +1 -1
- package/dist/react/community-impact.js +1 -1
- package/dist/react/community-impact.js.map +1 -1
- package/dist/react/cumulative-impact.d.ts +1 -1
- package/dist/react/cumulative-impact.esm.js +1 -1
- package/dist/react/cumulative-impact.esm.js.map +1 -1
- package/dist/react/cumulative-impact.js +1 -1
- package/dist/react/cumulative-impact.js.map +1 -1
- package/dist/react/impact-overview.d.ts +1 -4
- package/dist/react/impact-overview.esm.js +1 -1
- package/dist/react/impact-overview.esm.js.map +1 -1
- package/dist/react/impact-overview.js +1 -1
- package/dist/react/impact-overview.js.map +1 -1
- package/dist/react/index.d.ts +18 -21
- package/dist/react/index.esm.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/post-purchase.d.ts +3 -7
- package/dist/react/post-purchase.esm.js +1 -1
- package/dist/react/post-purchase.esm.js.map +1 -1
- package/dist/react/post-purchase.js +1 -1
- package/dist/react/post-purchase.js.map +1 -1
- package/dist/react/product-details-page.d.ts +1 -2
- package/dist/react/product-details-page.esm.js +1 -1
- package/dist/react/product-details-page.esm.js.map +1 -1
- package/dist/react/product-details-page.js +1 -1
- package/dist/react/product-details-page.js.map +1 -1
- package/dist/react/redeem-transaction.d.ts +5 -8
- package/dist/react/redeem-transaction.esm.js +1 -1
- package/dist/react/redeem-transaction.esm.js.map +1 -1
- package/dist/react/redeem-transaction.js +1 -1
- package/dist/react/redeem-transaction.js.map +1 -1
- package/dist/react/select-nonprofit.d.ts +5 -7
- package/dist/react/select-nonprofit.esm.js +1 -1
- package/dist/react/select-nonprofit.esm.js.map +1 -1
- package/dist/react/select-nonprofit.js +1 -1
- package/dist/react/select-nonprofit.js.map +1 -1
- package/dist/react/select-subscription-nonprofit.d.ts +5 -6
- package/dist/react/select-subscription-nonprofit.esm.js +1 -1
- package/dist/react/select-subscription-nonprofit.esm.js.map +1 -1
- package/dist/react/select-subscription-nonprofit.js +1 -1
- package/dist/react/select-subscription-nonprofit.js.map +1 -1
- package/dist/react/social-share.d.ts +1 -2
- package/dist/react/social-share.esm.js +1 -1
- package/dist/react/social-share.esm.js.map +1 -1
- package/dist/react/social-share.js +1 -1
- package/dist/react/social-share.js.map +1 -1
- package/dist/react/subscription-impact.d.ts +1 -3
- package/dist/react/subscription-impact.esm.js +1 -1
- package/dist/react/subscription-impact.esm.js.map +1 -1
- package/dist/react/subscription-impact.js +1 -1
- package/dist/react/subscription-impact.js.map +1 -1
- package/dist/react/subscription-management.d.ts +4 -6
- package/dist/react/subscription-management.esm.js +1 -1
- package/dist/react/subscription-management.esm.js.map +1 -1
- package/dist/react/subscription-management.js +1 -1
- package/dist/react/subscription-management.js.map +1 -1
- package/dist/utils/beam-errors.d.ts +1 -1
- package/dist/utils/cookies.d.ts +1 -41
- package/dist/utils/cookies.esm.js +1 -1
- package/dist/utils/cookies.esm.js.map +1 -1
- package/dist/utils/cookies.js +1 -1
- package/dist/utils/cookies.js.map +1 -1
- package/dist/utils/debounce.esm.js +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/events.d.ts +5 -5
- package/dist/utils/events.esm.js +1 -1
- package/dist/utils/events.js +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/is-equal.esm.js +1 -1
- package/dist/utils/is-equal.js +1 -1
- package/dist/utils/makeApiKeyHeader.esm.js.map +1 -1
- package/dist/utils/makeApiKeyHeader.js.map +1 -1
- package/dist/utils/memoize-last.esm.js +1 -1
- package/dist/utils/memoize-last.esm.js.map +1 -1
- package/dist/utils/memoize-last.js +1 -1
- package/dist/utils/memoize-last.js.map +1 -1
- package/dist/utils/network-listeners.esm.js +1 -1
- package/dist/utils/network-listeners.esm.js.map +1 -1
- package/dist/utils/network-listeners.js +1 -1
- package/dist/utils/network-listeners.js.map +1 -1
- package/dist/utils/promoManager.d.ts +6 -18
- package/dist/utils/promoManager.esm.js.map +1 -1
- package/dist/utils/promoManager.js.map +1 -1
- package/dist/utils/wait-for-element.esm.js.map +1 -1
- package/dist/utils/wait-for-element.js.map +1 -1
- package/package.json +42 -39
- package/dist/chunks/_share-dialog-dependencies-BVNp0oLJ.esm.js +0 -2
- package/dist/chunks/_share-dialog-dependencies-D4i8Nvve.esm.js +0 -2
- package/dist/chunks/enforce-config-Ba1JkOHs.esm.js +0 -3
- package/dist/chunks/enforce-config-Ba1JkOHs.esm.js.map +0 -1
- package/dist/chunks/enforce-config-CZ3ToOgr.esm.js +0 -3
- package/dist/chunks/enforce-config-CZ3ToOgr.esm.js.map +0 -1
- package/dist/chunks/events-Dki0ka4F.esm.js +0 -2
- package/dist/chunks/index-BAgWh5OK.esm.js.map +0 -1
- package/dist/chunks/index-BNjsFEGn.esm.js +0 -2
- package/dist/chunks/index-C0J0SqUr.esm.js +0 -2
- package/dist/chunks/index-C0J0SqUr.esm.js.map +0 -1
- package/dist/chunks/index-CG2AhvV9.esm.js.map +0 -1
- package/dist/chunks/index-CGKJagBi.esm.js.map +0 -1
- package/dist/chunks/index-CLNjLpMX.esm.js +0 -2
- package/dist/chunks/index-CLNjLpMX.esm.js.map +0 -1
- package/dist/chunks/index-Ct1m4IjM.esm.js.map +0 -1
- package/dist/chunks/index-DBb5HSkR.esm.js.map +0 -1
- package/dist/chunks/index-DFGxZmsj.esm.js +0 -2
- package/dist/chunks/index-DFGxZmsj.esm.js.map +0 -1
- package/dist/chunks/index-DHK-p5LV.esm.d.ts +0 -15
- package/dist/chunks/index-DPptZHfR.esm.js.map +0 -1
- package/dist/chunks/index-DbaDUPup.esm.d.ts +0 -28
- package/dist/chunks/index-DjrWwYdg.esm.js.map +0 -1
- package/dist/chunks/index-DmUEFwoM.esm.js.map +0 -1
- package/dist/chunks/index-DvhxjeiK.esm.js.map +0 -1
- package/dist/chunks/index-IKiJwo5v.esm.js +0 -2
- package/dist/chunks/index-NHPT4c0V.esm.js +0 -2
- package/dist/chunks/index-NHPT4c0V.esm.js.map +0 -1
- package/dist/chunks/index-tbwbkOdj.esm.js.map +0 -1
- package/dist/chunks/lit-WqMxC_PA.esm.js +0 -34
- package/dist/chunks/lit-WqMxC_PA.esm.js.map +0 -1
- package/dist/chunks/loading-template-DG4lkIIc.esm.js +0 -2
- package/dist/chunks/localize-Btu9xYcE.esm.js.map +0 -1
- package/dist/chunks/localize-C25pEGnx.esm.js.map +0 -1
- package/dist/chunks/lodash-D3TLHRR_.esm.js +0 -2
- package/dist/chunks/lodash-D3TLHRR_.esm.js.map +0 -1
- package/dist/chunks/order-page-C3b348k0.esm.js.map +0 -1
- package/dist/chunks/order-page-CuL1s6HR.esm.js.map +0 -1
- package/dist/chunks/progress-bar-CveZ8E6Q.esm.d.ts +0 -15
- package/dist/chunks/promo-pill-label-BXRqZHET.esm.d.ts +0 -19
- package/dist/chunks/routes-BHChxaFQ.esm.js +0 -2
- package/dist/chunks/routes-BHChxaFQ.esm.js.map +0 -1
- package/dist/chunks/routes-BoeGe1RQ.esm.d.ts +0 -638
- package/dist/chunks/routes-E1gMJl6d.esm.js +0 -2
- package/dist/chunks/routes-E1gMJl6d.esm.js.map +0 -1
- package/dist/chunks/share-button-BJ8T-uYK.esm.js.map +0 -1
- package/dist/chunks/share-button-CDVVaxEc.esm.d.ts +0 -27
- package/dist/chunks/share-button-VEIdBFu3.esm.js.map +0 -1
- package/dist/chunks/update-cart-C6BdmBt1.esm.js.map +0 -1
- package/dist/chunks/update-cart-HlVGSYR7.esm.js.map +0 -1
- package/dist/chunks/vendor-KKSARHWL.esm.js +0 -1284
- package/dist/chunks/vendor-KKSARHWL.esm.js.map +0 -1
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
declare const getChainNonprofits: ({ headers, baseUrl, apiRoot, pathParams, queryParams, requestBody, }: {
|
|
2
|
+
baseUrl?: string;
|
|
3
|
+
apiRoot?: string;
|
|
4
|
+
pathParams?: {
|
|
5
|
+
chainId: number;
|
|
6
|
+
} | undefined;
|
|
7
|
+
queryParams?: {
|
|
8
|
+
postalCode?: string;
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
storeId?: number;
|
|
11
|
+
lang?: "en" | "fr" | "de" | "es" | "it" | "pl" | "ja";
|
|
12
|
+
widgetName: "select-nonprofit" | "redeem-transaction";
|
|
13
|
+
version: string;
|
|
14
|
+
} | undefined;
|
|
15
|
+
requestBody?: undefined;
|
|
16
|
+
headers?: Record<string, string>;
|
|
17
|
+
}) => Promise<{
|
|
18
|
+
chain: {
|
|
19
|
+
name: string;
|
|
20
|
+
logoUrl: string | null;
|
|
21
|
+
logoLockupUrl?: string | null;
|
|
22
|
+
communityImpactUrl: string | null;
|
|
23
|
+
donationTypeName: string | null;
|
|
24
|
+
matchDonationTypeName: string | null;
|
|
25
|
+
};
|
|
26
|
+
config: {
|
|
27
|
+
web: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
promoDescriptionPrefix?: string;
|
|
31
|
+
promoDescription?: string;
|
|
32
|
+
confirmButton?: string;
|
|
33
|
+
confirmedButton?: string;
|
|
34
|
+
collapsedButton?: string;
|
|
35
|
+
theme?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
} | null;
|
|
38
|
+
nonprofitSelectedHeader?: string;
|
|
39
|
+
nonprofitUnselectedHeader?: string;
|
|
40
|
+
dynamicStrings?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
} | null;
|
|
43
|
+
additionalStrings?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
} | null;
|
|
46
|
+
disableAnimation?: boolean;
|
|
47
|
+
promo?: {
|
|
48
|
+
"promo-text-long": string;
|
|
49
|
+
"promo-text-short": string;
|
|
50
|
+
"promo-cause-alt-text": string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
mobileWeb?: {
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
nonprofitSelectedHeader?: string;
|
|
57
|
+
nonprofitUnselectedHeader?: string;
|
|
58
|
+
};
|
|
59
|
+
mobile: {
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
nonprofitSelectedHeader?: string;
|
|
63
|
+
nonprofitUnselectedHeader?: string;
|
|
64
|
+
};
|
|
65
|
+
enableNonprofitDeselection?: boolean;
|
|
66
|
+
} & {
|
|
67
|
+
web?: {
|
|
68
|
+
redeemButtonText?: string;
|
|
69
|
+
};
|
|
70
|
+
mobileWeb?: {
|
|
71
|
+
redeemButtonText?: string;
|
|
72
|
+
};
|
|
73
|
+
mobile?: {
|
|
74
|
+
redeemButtonText?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
nonprofits: {
|
|
78
|
+
imageUrl: Partial<string | null> & Partial<string | null>;
|
|
79
|
+
nonprofit: {
|
|
80
|
+
id: number;
|
|
81
|
+
name: string;
|
|
82
|
+
cause: string | null;
|
|
83
|
+
causeIconUrl: string | null;
|
|
84
|
+
causeIconSelectedUrl: string | null;
|
|
85
|
+
causeColor: string | null;
|
|
86
|
+
extensibility?: {
|
|
87
|
+
causeIconUrl?: string | null;
|
|
88
|
+
causeIconSelectedUrl?: string | null;
|
|
89
|
+
causeIconAndBackgroundUrl?: string | null;
|
|
90
|
+
};
|
|
91
|
+
website: string | null;
|
|
92
|
+
websiteLinkText: string;
|
|
93
|
+
badge?: string;
|
|
94
|
+
includeInPersonalImpact?: boolean;
|
|
95
|
+
};
|
|
96
|
+
impact: {
|
|
97
|
+
description: string | null;
|
|
98
|
+
goalCompletionText: string;
|
|
99
|
+
goalProgressText: string;
|
|
100
|
+
goalProgressPercentage: number;
|
|
101
|
+
};
|
|
102
|
+
promo?: {
|
|
103
|
+
type?: string;
|
|
104
|
+
isActive: boolean;
|
|
105
|
+
multiplier: number | null;
|
|
106
|
+
} | null;
|
|
107
|
+
}[];
|
|
108
|
+
store: {
|
|
109
|
+
id: number;
|
|
110
|
+
};
|
|
111
|
+
region: {
|
|
112
|
+
id: string | null;
|
|
113
|
+
};
|
|
114
|
+
promos?: {
|
|
115
|
+
validatedPromoCodes: {
|
|
116
|
+
promoCodeId: string | null;
|
|
117
|
+
promoCodeGroupId?: string | null;
|
|
118
|
+
promoId?: number;
|
|
119
|
+
validatedAt: string;
|
|
120
|
+
apply: boolean;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
extensibility?: {
|
|
124
|
+
excludeB2BOrders?: boolean;
|
|
125
|
+
};
|
|
126
|
+
settings?: {
|
|
127
|
+
excludeDonationsForRecurringTransactions: boolean;
|
|
128
|
+
};
|
|
129
|
+
}>;
|
|
130
|
+
declare const getImpact: ({ headers, baseUrl, apiRoot, pathParams, queryParams, requestBody, }: {
|
|
131
|
+
baseUrl?: string;
|
|
132
|
+
apiRoot?: string;
|
|
133
|
+
pathParams?: Record<string, never> | undefined;
|
|
134
|
+
queryParams?: {
|
|
135
|
+
chainId?: number;
|
|
136
|
+
storeId?: number;
|
|
137
|
+
beamUserId?: string;
|
|
138
|
+
nonprofitId?: number;
|
|
139
|
+
communityImpactLimit?: number;
|
|
140
|
+
personalImpactLimit?: number;
|
|
141
|
+
widgetName: "impact-overview" | "community-impact" | "subscription-impact" | "subscription-management";
|
|
142
|
+
version: string;
|
|
143
|
+
lang?: "en" | "fr" | "de" | "es" | "it" | "pl" | "ja";
|
|
144
|
+
omitThemes?: boolean;
|
|
145
|
+
draftConfig?: boolean;
|
|
146
|
+
discountCodes?: string[];
|
|
147
|
+
transactionId?: string;
|
|
148
|
+
partnerUserId?: string;
|
|
149
|
+
} | undefined;
|
|
150
|
+
requestBody?: undefined;
|
|
151
|
+
headers?: Record<string, string>;
|
|
152
|
+
}) => Promise<{
|
|
153
|
+
chain: {
|
|
154
|
+
name: string;
|
|
155
|
+
logoUrl: string | null;
|
|
156
|
+
logoLockupUrl?: string | null;
|
|
157
|
+
communityImpactUrl: string | null;
|
|
158
|
+
donationTypeName: string | null;
|
|
159
|
+
matchDonationTypeName: string | null;
|
|
160
|
+
};
|
|
161
|
+
store: {
|
|
162
|
+
name: string | null;
|
|
163
|
+
displayName: string | null;
|
|
164
|
+
communityPageURL: string | null;
|
|
165
|
+
};
|
|
166
|
+
config: {
|
|
167
|
+
web: {
|
|
168
|
+
title: string;
|
|
169
|
+
description: string;
|
|
170
|
+
promoDescriptionPrefix?: string;
|
|
171
|
+
promoDescription?: string;
|
|
172
|
+
confirmButton?: string;
|
|
173
|
+
confirmedButton?: string;
|
|
174
|
+
collapsedButton?: string;
|
|
175
|
+
theme?: {
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
} | null;
|
|
178
|
+
nonprofitSelectedHeader?: string;
|
|
179
|
+
nonprofitUnselectedHeader?: string;
|
|
180
|
+
dynamicStrings?: {
|
|
181
|
+
[key: string]: string;
|
|
182
|
+
} | null;
|
|
183
|
+
additionalStrings?: {
|
|
184
|
+
[key: string]: string;
|
|
185
|
+
} | null;
|
|
186
|
+
disableAnimation?: boolean;
|
|
187
|
+
promo?: {
|
|
188
|
+
"promo-text-long": string;
|
|
189
|
+
"promo-text-short": string;
|
|
190
|
+
"promo-cause-alt-text": string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
mobileWeb?: {
|
|
194
|
+
title: string;
|
|
195
|
+
description: string;
|
|
196
|
+
nonprofitSelectedHeader?: string;
|
|
197
|
+
nonprofitUnselectedHeader?: string;
|
|
198
|
+
};
|
|
199
|
+
mobile: {
|
|
200
|
+
title: string;
|
|
201
|
+
description: string;
|
|
202
|
+
nonprofitSelectedHeader?: string;
|
|
203
|
+
nonprofitUnselectedHeader?: string;
|
|
204
|
+
};
|
|
205
|
+
enableNonprofitDeselection?: boolean;
|
|
206
|
+
};
|
|
207
|
+
personal: {
|
|
208
|
+
imageUrl: string | null;
|
|
209
|
+
nonprofit: {
|
|
210
|
+
id: number;
|
|
211
|
+
name: string;
|
|
212
|
+
cause: string | null;
|
|
213
|
+
causeIconUrl: string | null;
|
|
214
|
+
causeIconSelectedUrl: string | null;
|
|
215
|
+
causeColor: string | null;
|
|
216
|
+
extensibility?: {
|
|
217
|
+
causeIconUrl?: string | null;
|
|
218
|
+
causeIconSelectedUrl?: string | null;
|
|
219
|
+
causeIconAndBackgroundUrl?: string | null;
|
|
220
|
+
};
|
|
221
|
+
website: string | null;
|
|
222
|
+
websiteLinkText: string;
|
|
223
|
+
badge?: string;
|
|
224
|
+
includeInPersonalImpact?: boolean;
|
|
225
|
+
};
|
|
226
|
+
impact: {
|
|
227
|
+
description: string | null;
|
|
228
|
+
goalCompletionText: string;
|
|
229
|
+
goalProgressText: string;
|
|
230
|
+
goalProgressPercentage: number;
|
|
231
|
+
};
|
|
232
|
+
share: {
|
|
233
|
+
imageUrl: string | null;
|
|
234
|
+
};
|
|
235
|
+
filters?: string[];
|
|
236
|
+
}[];
|
|
237
|
+
community: {
|
|
238
|
+
imageUrl: string | null;
|
|
239
|
+
nonprofit: {
|
|
240
|
+
id: number;
|
|
241
|
+
name: string;
|
|
242
|
+
cause: string | null;
|
|
243
|
+
causeIconUrl: string | null;
|
|
244
|
+
causeIconSelectedUrl: string | null;
|
|
245
|
+
causeColor: string | null;
|
|
246
|
+
extensibility?: {
|
|
247
|
+
causeIconUrl?: string | null;
|
|
248
|
+
causeIconSelectedUrl?: string | null;
|
|
249
|
+
causeIconAndBackgroundUrl?: string | null;
|
|
250
|
+
};
|
|
251
|
+
website: string | null;
|
|
252
|
+
websiteLinkText: string;
|
|
253
|
+
badge?: string;
|
|
254
|
+
includeInPersonalImpact?: boolean;
|
|
255
|
+
};
|
|
256
|
+
impact: {
|
|
257
|
+
description: string | null;
|
|
258
|
+
goalCompletionText: string;
|
|
259
|
+
goalProgressText: string;
|
|
260
|
+
goalProgressPercentage: number;
|
|
261
|
+
};
|
|
262
|
+
share: {
|
|
263
|
+
imageUrl: string | null;
|
|
264
|
+
};
|
|
265
|
+
filters?: string[];
|
|
266
|
+
}[];
|
|
267
|
+
promo: {
|
|
268
|
+
type?: string;
|
|
269
|
+
isActive: boolean;
|
|
270
|
+
multiplier: number | null;
|
|
271
|
+
} | null;
|
|
272
|
+
promoAssetUrl: string | null;
|
|
273
|
+
personalImpactAssetUrl: string | null;
|
|
274
|
+
settings?: {
|
|
275
|
+
excludeDonationsForRecurringTransactions: boolean;
|
|
276
|
+
};
|
|
277
|
+
}>;
|
|
278
|
+
declare const postTransaction: ({ headers, baseUrl, apiRoot, pathParams, queryParams, requestBody, }: {
|
|
279
|
+
baseUrl?: string;
|
|
280
|
+
apiRoot?: string;
|
|
281
|
+
pathParams?: undefined;
|
|
282
|
+
queryParams?: undefined;
|
|
283
|
+
requestBody?: {
|
|
284
|
+
orderId: string | number;
|
|
285
|
+
storeId?: number;
|
|
286
|
+
selectionId?: string;
|
|
287
|
+
beamCartId?: string;
|
|
288
|
+
cartId?: string;
|
|
289
|
+
nonprofitId?: number | null;
|
|
290
|
+
beamUserId?: string;
|
|
291
|
+
email?: string;
|
|
292
|
+
partnerUserId?: string;
|
|
293
|
+
currencyCode: string;
|
|
294
|
+
defaultToLastNonprofit?: boolean;
|
|
295
|
+
postalCode?: string;
|
|
296
|
+
countryCode?: string;
|
|
297
|
+
cart?: {
|
|
298
|
+
schema: {
|
|
299
|
+
source: "shopify";
|
|
300
|
+
variant: "ajax";
|
|
301
|
+
version?: string;
|
|
302
|
+
};
|
|
303
|
+
content: {
|
|
304
|
+
localAmount?: number;
|
|
305
|
+
discounts?: {
|
|
306
|
+
code: string;
|
|
307
|
+
applicable: boolean;
|
|
308
|
+
}[] | null;
|
|
309
|
+
items: {
|
|
310
|
+
id?: number | null;
|
|
311
|
+
gift_card?: boolean | null;
|
|
312
|
+
final_line_price: number | null;
|
|
313
|
+
final_price?: number | null;
|
|
314
|
+
line_level_discount_applications?: ({
|
|
315
|
+
title: string;
|
|
316
|
+
} & {
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
})[] | null;
|
|
319
|
+
quantity?: number | null;
|
|
320
|
+
sku: string | null;
|
|
321
|
+
product_id?: number | null;
|
|
322
|
+
product_title?: string | null;
|
|
323
|
+
product_type?: string | null;
|
|
324
|
+
variant_id?: number | null;
|
|
325
|
+
}[];
|
|
326
|
+
subscriptions?: {
|
|
327
|
+
remoteSubscriptionId: string;
|
|
328
|
+
isNew?: boolean;
|
|
329
|
+
}[];
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
schema: {
|
|
333
|
+
source: "shopify";
|
|
334
|
+
variant: "liquid";
|
|
335
|
+
version?: string;
|
|
336
|
+
};
|
|
337
|
+
content: {
|
|
338
|
+
localAmount?: number;
|
|
339
|
+
discounts?: {
|
|
340
|
+
code: string;
|
|
341
|
+
applicable: boolean;
|
|
342
|
+
}[] | null;
|
|
343
|
+
items: {
|
|
344
|
+
id?: number | null;
|
|
345
|
+
gift_card?: boolean | null;
|
|
346
|
+
final_line_price: number | null;
|
|
347
|
+
final_price?: number | null;
|
|
348
|
+
line_level_discount_applications?: ({
|
|
349
|
+
title: string;
|
|
350
|
+
} & {
|
|
351
|
+
[key: string]: unknown;
|
|
352
|
+
})[] | null;
|
|
353
|
+
quantity?: number | null;
|
|
354
|
+
sku: string | null;
|
|
355
|
+
product_id?: number | null;
|
|
356
|
+
variant_id?: number | null;
|
|
357
|
+
}[];
|
|
358
|
+
subscriptions?: {
|
|
359
|
+
remoteSubscriptionId: string;
|
|
360
|
+
isNew?: boolean;
|
|
361
|
+
}[];
|
|
362
|
+
};
|
|
363
|
+
} | {
|
|
364
|
+
schema: {
|
|
365
|
+
source: "generic";
|
|
366
|
+
variant?: "default";
|
|
367
|
+
version?: string;
|
|
368
|
+
};
|
|
369
|
+
content: {
|
|
370
|
+
localAmount?: number;
|
|
371
|
+
discounts?: {
|
|
372
|
+
code: string;
|
|
373
|
+
applicable: boolean;
|
|
374
|
+
}[] | null;
|
|
375
|
+
items: {
|
|
376
|
+
remoteProductIdentifier?: string | null;
|
|
377
|
+
localAmount: number;
|
|
378
|
+
remoteSubscriptionId?: string;
|
|
379
|
+
discounts?: {
|
|
380
|
+
code: string;
|
|
381
|
+
applicable: boolean;
|
|
382
|
+
}[] | null;
|
|
383
|
+
}[];
|
|
384
|
+
subscriptions?: {
|
|
385
|
+
remoteSubscriptionId: string;
|
|
386
|
+
isNew?: boolean;
|
|
387
|
+
}[];
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
remoteSessionId?: string;
|
|
391
|
+
options?: {
|
|
392
|
+
config?: {
|
|
393
|
+
omitThemes?: boolean;
|
|
394
|
+
draftConfig?: boolean;
|
|
395
|
+
};
|
|
396
|
+
response?: {
|
|
397
|
+
personalImpact?: boolean;
|
|
398
|
+
communityImpact?: boolean;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
widgetName?: "select-nonprofit" | "redeem-transaction" | "select-nonprofit-cta";
|
|
402
|
+
version?: string;
|
|
403
|
+
donation?: {
|
|
404
|
+
currencyCode: string;
|
|
405
|
+
amount: number;
|
|
406
|
+
};
|
|
407
|
+
cartTotal?: number;
|
|
408
|
+
discountCodes?: string[];
|
|
409
|
+
creationMethod?: "recurring" | null;
|
|
410
|
+
promos?: {
|
|
411
|
+
unvalidatedPromoCodes: (Partial<{
|
|
412
|
+
type?: "manual" | "url";
|
|
413
|
+
} & {
|
|
414
|
+
attributes?: {
|
|
415
|
+
value?: string;
|
|
416
|
+
};
|
|
417
|
+
}> & Partial<{
|
|
418
|
+
type?: "manual" | "url";
|
|
419
|
+
} & {
|
|
420
|
+
attributes?: {
|
|
421
|
+
url?: string;
|
|
422
|
+
};
|
|
423
|
+
}>)[];
|
|
424
|
+
validatedPromoCodes: {
|
|
425
|
+
promoCodeId: string | null;
|
|
426
|
+
promoCodeGroupId?: string | null;
|
|
427
|
+
promoId?: number;
|
|
428
|
+
validatedAt: string;
|
|
429
|
+
apply: boolean;
|
|
430
|
+
}[];
|
|
431
|
+
};
|
|
432
|
+
} | undefined;
|
|
433
|
+
headers?: Record<string, string>;
|
|
434
|
+
}) => Promise<{
|
|
435
|
+
transactionId: string;
|
|
436
|
+
transactionCreated?: boolean;
|
|
437
|
+
beamUserId: string;
|
|
438
|
+
beamCartId?: string | null;
|
|
439
|
+
chainId: number;
|
|
440
|
+
nonprofitId: number | (number | null);
|
|
441
|
+
creationMethod?: string;
|
|
442
|
+
impact?: {
|
|
443
|
+
personal?: {
|
|
444
|
+
imageUrl: string | null;
|
|
445
|
+
nonprofit: {
|
|
446
|
+
id: number;
|
|
447
|
+
name: string;
|
|
448
|
+
cause: string | null;
|
|
449
|
+
causeIconUrl: string | null;
|
|
450
|
+
causeIconSelectedUrl: string | null;
|
|
451
|
+
causeColor: string | null;
|
|
452
|
+
extensibility?: {
|
|
453
|
+
causeIconUrl?: string | null;
|
|
454
|
+
causeIconSelectedUrl?: string | null;
|
|
455
|
+
causeIconAndBackgroundUrl?: string | null;
|
|
456
|
+
};
|
|
457
|
+
website: string | null;
|
|
458
|
+
websiteLinkText: string;
|
|
459
|
+
badge?: string;
|
|
460
|
+
includeInPersonalImpact?: boolean;
|
|
461
|
+
};
|
|
462
|
+
impact: {
|
|
463
|
+
description: string | null;
|
|
464
|
+
goalCompletionText: string;
|
|
465
|
+
goalProgressText: string;
|
|
466
|
+
goalProgressPercentage: number;
|
|
467
|
+
};
|
|
468
|
+
share: {
|
|
469
|
+
imageUrl: string | null;
|
|
470
|
+
};
|
|
471
|
+
filters?: string[];
|
|
472
|
+
}[];
|
|
473
|
+
community?: {
|
|
474
|
+
imageUrl: string | null;
|
|
475
|
+
nonprofit: {
|
|
476
|
+
id: number;
|
|
477
|
+
name: string;
|
|
478
|
+
cause: string | null;
|
|
479
|
+
causeIconUrl: string | null;
|
|
480
|
+
causeIconSelectedUrl: string | null;
|
|
481
|
+
causeColor: string | null;
|
|
482
|
+
extensibility?: {
|
|
483
|
+
causeIconUrl?: string | null;
|
|
484
|
+
causeIconSelectedUrl?: string | null;
|
|
485
|
+
causeIconAndBackgroundUrl?: string | null;
|
|
486
|
+
};
|
|
487
|
+
website: string | null;
|
|
488
|
+
websiteLinkText: string;
|
|
489
|
+
badge?: string;
|
|
490
|
+
includeInPersonalImpact?: boolean;
|
|
491
|
+
};
|
|
492
|
+
impact: {
|
|
493
|
+
description: string | null;
|
|
494
|
+
goalCompletionText: string;
|
|
495
|
+
goalProgressText: string;
|
|
496
|
+
goalProgressPercentage: number;
|
|
497
|
+
};
|
|
498
|
+
share: {
|
|
499
|
+
imageUrl: string | null;
|
|
500
|
+
};
|
|
501
|
+
filters?: string[];
|
|
502
|
+
}[];
|
|
503
|
+
};
|
|
504
|
+
config?: {
|
|
505
|
+
mobile?: {
|
|
506
|
+
title?: unknown;
|
|
507
|
+
description?: string;
|
|
508
|
+
theme?: {
|
|
509
|
+
[key: string]: unknown;
|
|
510
|
+
} | null;
|
|
511
|
+
};
|
|
512
|
+
mobileWeb?: {
|
|
513
|
+
title?: unknown;
|
|
514
|
+
description?: string;
|
|
515
|
+
theme?: {
|
|
516
|
+
[key: string]: unknown;
|
|
517
|
+
} | null;
|
|
518
|
+
};
|
|
519
|
+
web?: {
|
|
520
|
+
title?: string;
|
|
521
|
+
description?: string;
|
|
522
|
+
theme?: {
|
|
523
|
+
[key: string]: unknown;
|
|
524
|
+
} | null;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
extensibility?: {
|
|
528
|
+
excludeB2BOrders?: boolean;
|
|
529
|
+
};
|
|
530
|
+
reportSettings?: {
|
|
531
|
+
excludeRecurringDonations?: boolean;
|
|
532
|
+
};
|
|
533
|
+
}>;
|
|
534
|
+
declare const postProductDetailsPage: ({ headers, baseUrl, apiRoot, pathParams, queryParams, requestBody, }: {
|
|
535
|
+
baseUrl?: string;
|
|
536
|
+
apiRoot?: string;
|
|
537
|
+
pathParams?: Record<string, never> | undefined;
|
|
538
|
+
queryParams?: {
|
|
539
|
+
lang?: "en" | "fr" | "de" | "es" | "it" | "pl" | "ja";
|
|
540
|
+
version: string;
|
|
541
|
+
storeId: number;
|
|
542
|
+
draftConfig?: boolean;
|
|
543
|
+
widgetName?: "community-impact" | "impact-overview" | "select-nonprofit" | "redeem-transaction" | "cumulative-impact" | "mobile-full-screen-nonprofit-selection" | "mobile-impact-list" | "mobile-minimal-nonprofit-selection" | "mobile-personal-impact" | "mobile-selected-nonprofit" | "mobile-progress-bar" | "select-nonprofit-cta" | "mobile-share-button" | "subscription-management" | "product-details-page" | "select-subscription-nonprofit" | "subscription-impact";
|
|
544
|
+
remoteProductIdentifier?: string;
|
|
545
|
+
} | undefined;
|
|
546
|
+
requestBody?: {
|
|
547
|
+
lang?: string;
|
|
548
|
+
version?: string;
|
|
549
|
+
storeId?: number;
|
|
550
|
+
widgetName?: string;
|
|
551
|
+
remoteProductIdentifier?: string;
|
|
552
|
+
beamCartId?: string;
|
|
553
|
+
draftConfig?: boolean;
|
|
554
|
+
promos?: {
|
|
555
|
+
unvalidatedPromoCodes: (Partial<{
|
|
556
|
+
type?: "manual" | "url";
|
|
557
|
+
} & {
|
|
558
|
+
attributes?: {
|
|
559
|
+
value?: string;
|
|
560
|
+
};
|
|
561
|
+
}> & Partial<{
|
|
562
|
+
type?: "manual" | "url";
|
|
563
|
+
} & {
|
|
564
|
+
attributes?: {
|
|
565
|
+
url?: string;
|
|
566
|
+
};
|
|
567
|
+
}>)[];
|
|
568
|
+
validatedPromoCodes: {
|
|
569
|
+
promoCodeId: string | null;
|
|
570
|
+
promoCodeGroupId?: string | null;
|
|
571
|
+
promoId?: number;
|
|
572
|
+
validatedAt: string;
|
|
573
|
+
apply: boolean;
|
|
574
|
+
}[];
|
|
575
|
+
};
|
|
576
|
+
} | undefined;
|
|
577
|
+
headers?: Record<string, string>;
|
|
578
|
+
}) => Promise<{
|
|
579
|
+
config: {
|
|
580
|
+
web: {
|
|
581
|
+
title: string;
|
|
582
|
+
description: string;
|
|
583
|
+
promoDescriptionPrefix?: string;
|
|
584
|
+
promoDescription?: string;
|
|
585
|
+
confirmButton?: string;
|
|
586
|
+
confirmedButton?: string;
|
|
587
|
+
collapsedButton?: string;
|
|
588
|
+
theme?: {
|
|
589
|
+
[key: string]: unknown;
|
|
590
|
+
} | null;
|
|
591
|
+
nonprofitSelectedHeader?: string;
|
|
592
|
+
nonprofitUnselectedHeader?: string;
|
|
593
|
+
dynamicStrings?: {
|
|
594
|
+
[key: string]: string;
|
|
595
|
+
} | null;
|
|
596
|
+
additionalStrings?: {
|
|
597
|
+
[key: string]: string;
|
|
598
|
+
} | null;
|
|
599
|
+
disableAnimation?: boolean;
|
|
600
|
+
promo?: {
|
|
601
|
+
"promo-text-long": string;
|
|
602
|
+
"promo-text-short": string;
|
|
603
|
+
"promo-cause-alt-text": string;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
mobileWeb?: {
|
|
607
|
+
title: string;
|
|
608
|
+
description: string;
|
|
609
|
+
nonprofitSelectedHeader?: string;
|
|
610
|
+
nonprofitUnselectedHeader?: string;
|
|
611
|
+
};
|
|
612
|
+
mobile: {
|
|
613
|
+
title: string;
|
|
614
|
+
description: string;
|
|
615
|
+
nonprofitSelectedHeader?: string;
|
|
616
|
+
nonprofitUnselectedHeader?: string;
|
|
617
|
+
};
|
|
618
|
+
enableNonprofitDeselection?: boolean;
|
|
619
|
+
};
|
|
620
|
+
ppgfDisclosure?: {
|
|
621
|
+
copy: string;
|
|
622
|
+
};
|
|
623
|
+
ppgfDisclosureHyperlink?: {
|
|
624
|
+
url: string;
|
|
625
|
+
copy: string;
|
|
626
|
+
};
|
|
627
|
+
promos?: {
|
|
628
|
+
validatedPromoCodes?: {
|
|
629
|
+
promoCodeId: string | null;
|
|
630
|
+
promoCodeGroupId?: string | null;
|
|
631
|
+
promoId?: number;
|
|
632
|
+
validatedAt: string;
|
|
633
|
+
apply: boolean;
|
|
634
|
+
}[];
|
|
635
|
+
};
|
|
636
|
+
}>;
|
|
637
|
+
|
|
638
|
+
export { getImpact as a, postTransaction as b, getChainNonprofits as g, postProductDetailsPage as p };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as u}from"./routes-
|
|
2
|
-
//# sourceMappingURL=share-button-
|
|
1
|
+
import{f as u}from"./routes-BIMwJ8u9.esm.js";async function o({baseUrl:a,apiKey:i,requestBody:t}){try{const e=a+"/api/v4/events/socialShare",r=JSON.stringify(t);await u(e,{method:"POST",body:r,headers:{authorization:`Api-Key ${i}`}})}catch(e){console.error(e)}}const n=async a=>fetch(a).then(async i=>{const t=new URL(a),e=await i.blob();return new File([e],t.pathname,{type:e.type})}),c={en:{impactShareButton:()=>"Share to Grow Your Impact",impactShareText:({brandName:a=""})=>`Help ${a} reach their giving goal by sharing this cause on social media`,impactShareTitle:()=>"Share on Social Media",impactShareCopy:()=>"Copy",impactShareDownload:()=>"Download",impactShareClose:()=>"Close"},fr:{impactShareButton:()=>"Partagez pour augmentez votre cause",impactShareText:({brandName:a=""})=>`Aidez ${a} a atteindre leur objectif en partageant cette cause sur votre r\xE9seaux sociaux`,impactShareTitle:()=>"Partager sur votre r\xE9seaux sociaux",impactShareCopy:()=>"Copier",impactShareDownload:()=>"T\xE9l\xE9charger",impactShareClose:()=>"Fermer"},de:{impactShareButton:()=>"Teil, um unserem Beitrag zu erh\xF6hen",impactShareText:({brandName:a=""})=>`Hilf ${a} ihre Spendenziel zu erreichen`,impactShareTitle:()=>"In den sozialen Medien teilen",impactShareCopy:()=>"Kopieren",impactShareDownload:()=>"Herunterladen",impactShareClose:()=>"Schlie\xDFen"},es:{impactShareButton:()=>"Comparte para aumentar nuestro impacto",impactShareText:({brandName:a=""})=>`Comparte en las redes sociales para ayudar a ${a} a alcanzar su objetivo.`,impactShareTitle:()=>"Compartir en redes sociales",impactShareCopy:()=>"Copiar",impactShareDownload:()=>"Descargar",impactShareClose:()=>"Cerrar"},it:{impactShareButton:()=>"Condividi, aiutaci a fare la differenza",impactShareText:({brandName:a=""})=>`Aiuta ${a} a raggiungere il suo obiettivo di donazione condividendo questa causa sui social media.`,impactShareTitle:()=>"Condividi, aiutaci a fare la differenza",impactShareCopy:()=>"Copia",impactShareDownload:()=>"Scarica",impactShareClose:()=>"Chiudi"},pl:{impactShareButton:()=>"Udost\u0119pnij, by szerzy\u0107 nasz\u0105 misj\u0119",impactShareText:({brandName:a=""})=>`Pom\xF3\u017C ${a} osi\u0105gn\u0105\u0107 cel i podziel si\u0119 t\u0105 inicjatyw\u0105 na swoim profilu`,impactShareTitle:()=>"Udost\u0119pnij na swoim profilu",impactShareCopy:()=>"Kopiuj",impactShareDownload:()=>"Pobierz",impactShareClose:()=>"Zamknij"},ja:{impactShareButton:()=>"\u6D3B\u52D5\u306E\u8F2A\u3092\u5E83\u3052\u3088\u3046",impactShareText:({brandName:a=""})=>`${a}\u306E\u5BC4\u4ED8\u76EE\u6A19\u9054\u6210\u306B\u5411\u3051\u3066\u3001SNS\u3067\u3053\u306E\u6D3B\u52D5\u3092\u662F\u975E\u30B7\u30A7\u30A2\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,impactShareTitle:()=>"SNS\u3067\u30B7\u30A7\u30A2\u3059\u308B",impactShareCopy:()=>"\u30B3\u30D4\u30FC",impactShareDownload:()=>"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",impactShareClose:()=>"\u9589\u3058\u308B"}};export{o as p,c as s,n as u};
|
|
2
|
+
//# sourceMappingURL=share-button-CLMw49f5.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-button-
|
|
1
|
+
{"version":3,"file":"share-button-CLMw49f5.esm.js","sources":["../../src/api-sdk/v2/users/events.ts","../../src/shared/files.ts","../../src/shared/components/strings/share-button.ts"],"sourcesContent":["import { TUrl } from \"../../types\";\nimport { fetchJson } from \"../../fetch-json\";\n\nexport interface SocialShareAnalyticsEventPayload {\n eventName?: string | null;\n nonprofitId?: number | null;\n storeId?: number | null;\n transactionId?: number | null;\n timestamp?: number | null;\n}\n\nexport async function postSocialShareAnalyticsEvent({\n baseUrl,\n apiKey,\n requestBody,\n}: {\n baseUrl: TUrl;\n apiKey: string;\n requestBody: SocialShareAnalyticsEventPayload;\n}): Promise<void> {\n try {\n const url = baseUrl + \"/api/v4/events/socialShare\";\n const body = JSON.stringify(requestBody);\n await fetchJson(url, {\n method: \"POST\",\n body,\n headers: { authorization: `Api-Key ${apiKey}` },\n });\n } catch (error: any) {\n console.error(error);\n }\n}\n","export const urlToFile = async (url: string) => {\n return fetch(url).then(async (r) => {\n const u = new URL(url);\n const blob = await r.blob();\n return new File([blob], u.pathname, { type: blob.type });\n });\n};\n","export const strings = {\n en: {\n impactShareButton: () => `Share to Grow Your Impact`,\n impactShareText: ({ brandName = \"\" }) =>\n `Help ${brandName} reach their giving goal by sharing this cause on social media`,\n impactShareTitle: () => `Share on Social Media`,\n impactShareCopy: () => `Copy`,\n impactShareDownload: () => `Download`,\n impactShareClose: () => `Close`,\n },\n fr: {\n impactShareButton: () => `Partagez pour augmentez votre cause`,\n impactShareText: ({ brandName = \"\" }) =>\n `Aidez ${brandName} a atteindre leur objectif en partageant cette cause sur votre réseaux sociaux`,\n impactShareTitle: () => `Partager sur votre réseaux sociaux`,\n impactShareCopy: () => `Copier`,\n impactShareDownload: () => `Télécharger`,\n impactShareClose: () => `Fermer`,\n },\n de: {\n impactShareButton: () => `Teil, um unserem Beitrag zu erhöhen`, // TODO: Update translation copy SDK-2210\n impactShareText: ({ brandName = \"\" }) => `Hilf ${brandName} ihre Spendenziel zu erreichen`,\n impactShareTitle: () => `In den sozialen Medien teilen`,\n impactShareCopy: () => `Kopieren`,\n impactShareDownload: () => `Herunterladen`,\n impactShareClose: () => `Schließen`,\n },\n es: {\n impactShareButton: () => \"Comparte para aumentar nuestro impacto\", // TODO: Update translation copy SDK-2210\n impactShareText: ({ brandName = \"\" }) =>\n `Comparte en las redes sociales para ayudar a ${brandName} a alcanzar su objetivo.`,\n impactShareTitle: () => \"Compartir en redes sociales\",\n impactShareCopy: () => \"Copiar\",\n impactShareDownload: () => \"Descargar\",\n impactShareClose: () => \"Cerrar\",\n },\n it: {\n impactShareButton: () => \"Condividi, aiutaci a fare la differenza\", // TODO: Update translation copy SDK-2210\n impactShareText: ({ brandName = \"\" }) =>\n `Aiuta ${brandName} a raggiungere il suo obiettivo di donazione condividendo questa causa sui social media.`,\n impactShareTitle: () => \"Condividi, aiutaci a fare la differenza\",\n impactShareCopy: () => \"Copia\",\n impactShareDownload: () => \"Scarica\",\n impactShareClose: () => \"Chiudi\",\n },\n pl: {\n impactShareButton: () => `Udostępnij, by szerzyć naszą misję`, // TODO: Update translation copy SDK-2210\n impactShareText: ({ brandName = \"\" }) =>\n `Pomóż ${brandName} osiągnąć cel i podziel się tą inicjatywą na swoim profilu`,\n impactShareTitle: () => `Udostępnij na swoim profilu`,\n impactShareCopy: () => `Kopiuj`,\n impactShareDownload: () => `Pobierz`,\n impactShareClose: () => `Zamknij`,\n },\n ja: {\n impactShareButton: () => `活動の輪を広げよう`,\n impactShareText: ({ brandName = \"\" }) =>\n `${brandName}の寄付目標達成に向けて、SNSでこの活動を是非シェアしてください。`,\n impactShareTitle: () => `SNSでシェアする`,\n impactShareCopy: () => `コピー`,\n impactShareDownload: () => `ダウンロード`,\n impactShareClose: () => `閉じる`,\n },\n};\n"],"names":["postSocialShareAnalyticsEvent","baseUrl","apiKey","requestBody","url","body","fetchJson","error","urlToFile","r","u","blob","strings","brandName"],"mappings":"6CAWA,eAAsBA,EAA8B,CAClD,QAAAC,EACA,OAAAC,EACA,YAAAC,CACF,EAIkB,CAChB,GAAI,CACF,MAAMC,EAAMH,EAAU,6BAChBI,EAAO,KAAK,UAAUF,CAAW,EACvC,MAAMG,EAAUF,EAAK,CACnB,OAAQ,OACR,KAAAC,EACA,QAAS,CAAE,cAAe,WAAWH,CAAM,EAAG,CAChD,CAAC,CACH,OAASK,EAAY,CACnB,QAAQ,MAAMA,CAAK,CACrB,CACF,CC/BO,MAAMC,EAAY,MAAOJ,GACvB,MAAMA,CAAG,EAAE,KAAK,MAAOK,GAAM,CAClC,MAAMC,EAAI,IAAI,IAAIN,CAAG,EACfO,EAAO,MAAMF,EAAE,OACrB,OAAO,IAAI,KAAK,CAACE,CAAI,EAAGD,EAAE,SAAU,CAAE,KAAMC,EAAK,IAAK,CAAC,CACzD,CAAC,ECLUC,EAAU,CACrB,GAAI,CACF,kBAAmB,IAAM,4BACzB,gBAAiB,CAAC,CAAE,UAAAC,EAAY,EAAG,IACjC,QAAQA,CAAS,iEACnB,iBAAkB,IAAM,wBACxB,gBAAiB,IAAM,OACvB,oBAAqB,IAAM,WAC3B,iBAAkB,IAAM,OAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,sCACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IACjC,SAASA,CAAS,oFACpB,iBAAkB,IAAM,wCACxB,gBAAiB,IAAM,SACvB,oBAAqB,IAAM,oBAC3B,iBAAkB,IAAM,QAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,yCACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IAAM,QAAQA,CAAS,iCAC1D,iBAAkB,IAAM,gCACxB,gBAAiB,IAAM,WACvB,oBAAqB,IAAM,gBAC3B,iBAAkB,IAAM,cAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,yCACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IACjC,gDAAgDA,CAAS,2BAC3D,iBAAkB,IAAM,8BACxB,gBAAiB,IAAM,SACvB,oBAAqB,IAAM,YAC3B,iBAAkB,IAAM,QAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,0CACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IACjC,SAASA,CAAS,2FACpB,iBAAkB,IAAM,0CACxB,gBAAiB,IAAM,QACvB,oBAAqB,IAAM,UAC3B,iBAAkB,IAAM,QAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,yDACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IACjC,iBAASA,CAAS,2FACpB,iBAAkB,IAAM,mCACxB,gBAAiB,IAAM,SACvB,oBAAqB,IAAM,UAC3B,iBAAkB,IAAM,SAC1B,EACA,GAAI,CACF,kBAAmB,IAAM,yDACzB,gBAAiB,CAAC,CAAE,UAAAA,EAAY,EAAG,IACjC,GAAGA,CAAS,0LACd,iBAAkB,IAAM,0CACxB,gBAAiB,IAAM,qBACvB,oBAAqB,IAAM,uCAC3B,iBAAkB,IAAM,oBAC1B,CACF"}
|