@beamimpact/web-sdk 1.36.0 → 1.36.1

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 (128) hide show
  1. package/README.md +81 -9
  2. package/dist/chunks/{_share-dialog-dependencies-JkqAjyWn.esm.js → _share-dialog-dependencies-Sh_9ajqn.esm.js} +2 -2
  3. package/dist/chunks/_share-dialog-dependencies-Sh_9ajqn.esm.js.map +1 -0
  4. package/dist/chunks/{_share-dialog-dependencies-mxkp5-2m.esm.js → _share-dialog-dependencies-xo568n-h.esm.js} +2 -2
  5. package/dist/chunks/_share-dialog-dependencies-xo568n-h.esm.js.map +1 -0
  6. package/dist/chunks/{cart-contents-22-v_s94.esm.d.ts → cart-contents-tEvcY9ip.esm.d.ts} +1 -1
  7. package/dist/chunks/{events-rt-wdsLM.esm.d.ts → events-PZnG_xac.esm.d.ts} +1 -1
  8. package/dist/chunks/index--hSdkzxR.esm.js +2 -0
  9. package/dist/chunks/index--hSdkzxR.esm.js.map +1 -0
  10. package/dist/chunks/{index-e13I7Ozo.esm.js → index--zKNaLmP.esm.js} +2 -2
  11. package/dist/chunks/{index-e13I7Ozo.esm.js.map → index--zKNaLmP.esm.js.map} +1 -1
  12. package/dist/chunks/index-1yIQ8_af.esm.js +2 -0
  13. package/dist/chunks/index-1yIQ8_af.esm.js.map +1 -0
  14. package/dist/chunks/{index-W4Y5lVSA.esm.d.ts → index-5-EnaNnJ.esm.d.ts} +1 -1
  15. package/dist/chunks/index-FOIyVs4d.esm.js +2 -0
  16. package/dist/chunks/index-FOIyVs4d.esm.js.map +1 -0
  17. package/dist/chunks/{index-olIrMP04.esm.js → index-H8eCrtpq.esm.js} +2 -2
  18. package/dist/chunks/{index-olIrMP04.esm.js.map → index-H8eCrtpq.esm.js.map} +1 -1
  19. package/dist/chunks/{index-IOQZUYT9.esm.d.ts → index-PL4iasT1.esm.d.ts} +1 -1
  20. package/dist/chunks/{index-xERV1BQn.esm.d.ts → index-U2dW3lkm.esm.d.ts} +1 -1
  21. package/dist/chunks/index-XXbpivFV.esm.js +2 -0
  22. package/dist/chunks/index-XXbpivFV.esm.js.map +1 -0
  23. package/dist/chunks/index-aSHxjlvk.esm.js +2 -0
  24. package/dist/chunks/index-aSHxjlvk.esm.js.map +1 -0
  25. package/dist/chunks/{index-qerf6TiH.esm.d.ts → index-hbzssC4x.esm.d.ts} +1 -1
  26. package/dist/chunks/{index-iTqsULiK.esm.d.ts → index-nJEBkWPL.esm.d.ts} +1 -1
  27. package/dist/chunks/{index-rTMJFwfk.esm.d.ts → index-rOz-i1aX.esm.d.ts} +4 -4
  28. package/dist/chunks/index-x02SNG40.esm.js +2 -0
  29. package/dist/chunks/index-x02SNG40.esm.js.map +1 -0
  30. package/dist/chunks/{openapi-spec-scRfHArN.esm.d.ts → openapi-spec-tJkr2i9K.esm.d.ts} +56 -1
  31. package/dist/chunks/{order-page-scELdENh.esm.d.ts → order-page-cFAaDNWE.esm.d.ts} +2 -2
  32. package/dist/chunks/{order-page-Q9iJrRjP.esm.js → order-page-iki-LwqZ.esm.js} +2 -2
  33. package/dist/chunks/{order-page-Q9iJrRjP.esm.js.map → order-page-iki-LwqZ.esm.js.map} +1 -1
  34. package/dist/chunks/{order-page-ua17ZUZi.esm.js → order-page-nw4ww0A4.esm.js} +2 -2
  35. package/dist/chunks/{order-page-ua17ZUZi.esm.js.map → order-page-nw4ww0A4.esm.js.map} +1 -1
  36. package/dist/chunks/routes-oHbXmMIK.esm.js +2 -0
  37. package/dist/chunks/{routes-2eYzHPEh.esm.js.map → routes-oHbXmMIK.esm.js.map} +1 -1
  38. package/dist/chunks/routes-tF7SMdXL.esm.js +2 -0
  39. package/dist/chunks/{routes-dMIUHq8Y.esm.js.map → routes-tF7SMdXL.esm.js.map} +1 -1
  40. package/dist/chunks/{update-cart-rzsMaDu6.esm.js → update-cart-UgMNqKER.esm.js} +2 -2
  41. package/dist/chunks/{update-cart-rzsMaDu6.esm.js.map → update-cart-UgMNqKER.esm.js.map} +1 -1
  42. package/dist/chunks/{update-cart-lCgGJZvM.esm.d.ts → update-cart-m3NdnSx2.esm.d.ts} +1 -1
  43. package/dist/chunks/{update-cart-1CVVu5Xc.esm.js → update-cart-ylLlsQBX.esm.js} +2 -2
  44. package/dist/chunks/{update-cart-1CVVu5Xc.esm.js.map → update-cart-ylLlsQBX.esm.js.map} +1 -1
  45. package/dist/components/community-impact.esm.js +1 -1
  46. package/dist/components/community-impact.js +1 -1
  47. package/dist/components/cumulative-impact.esm.js +1 -1
  48. package/dist/components/cumulative-impact.js +1 -1
  49. package/dist/components/impact-overview.esm.js +1 -1
  50. package/dist/components/impact-overview.js +1 -1
  51. package/dist/components/index.d.ts +2 -2
  52. package/dist/components/index.esm.js +1 -1
  53. package/dist/components/index.js +1 -1
  54. package/dist/components/post-purchase.d.ts +3 -3
  55. package/dist/components/post-purchase.esm.js +1 -2
  56. package/dist/components/post-purchase.esm.js.map +1 -1
  57. package/dist/components/post-purchase.js +1 -2
  58. package/dist/components/post-purchase.js.map +1 -1
  59. package/dist/components/redeem-transaction.d.ts +3 -5
  60. package/dist/components/redeem-transaction.esm.js +5 -5
  61. package/dist/components/redeem-transaction.esm.js.map +1 -1
  62. package/dist/components/redeem-transaction.js +5 -5
  63. package/dist/components/redeem-transaction.js.map +1 -1
  64. package/dist/components/select-nonprofit.d.ts +4 -4
  65. package/dist/components/select-nonprofit.esm.js +1 -1
  66. package/dist/components/select-nonprofit.esm.js.map +1 -1
  67. package/dist/components/select-nonprofit.js +1 -1
  68. package/dist/components/select-nonprofit.js.map +1 -1
  69. package/dist/components/shopify.d.ts +5 -5
  70. package/dist/components/shopify.esm.js +1 -1
  71. package/dist/components/shopify.js +1 -1
  72. package/dist/index.d.ts +11 -11
  73. package/dist/index.esm.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/integrations/beam.esm.js +1 -1
  76. package/dist/integrations/beam.js +1 -1
  77. package/dist/integrations/cart.d.ts +3 -3
  78. package/dist/integrations/cart.esm.js +1 -1
  79. package/dist/integrations/cart.js +1 -1
  80. package/dist/integrations/index.d.ts +9 -9
  81. package/dist/integrations/index.esm.js +1 -1
  82. package/dist/integrations/index.js +1 -1
  83. package/dist/integrations/logs.d.ts +2 -2
  84. package/dist/integrations/logs.esm.js +1 -1
  85. package/dist/integrations/logs.js +1 -1
  86. package/dist/integrations/shopify.d.ts +4 -4
  87. package/dist/integrations/shopify.esm.js +1 -1
  88. package/dist/integrations/shopify.js +1 -1
  89. package/dist/integrations/statsig.esm.js +1 -1
  90. package/dist/integrations/statsig.js +1 -1
  91. package/dist/integrations/utils.d.ts +3 -3
  92. package/dist/react/community-impact.esm.js +1 -1
  93. package/dist/react/community-impact.js +1 -1
  94. package/dist/react/cumulative-impact.esm.js +1 -1
  95. package/dist/react/cumulative-impact.js +1 -1
  96. package/dist/react/impact-overview.esm.js +1 -1
  97. package/dist/react/impact-overview.js +1 -1
  98. package/dist/react/index.d.ts +3 -3
  99. package/dist/react/index.esm.js +1 -1
  100. package/dist/react/index.js +1 -1
  101. package/dist/react/post-purchase.d.ts +2 -2
  102. package/dist/react/post-purchase.esm.js +1 -1
  103. package/dist/react/post-purchase.js +1 -1
  104. package/dist/react/redeem-transaction.d.ts +3 -3
  105. package/dist/react/redeem-transaction.esm.js +1 -1
  106. package/dist/react/redeem-transaction.js +1 -1
  107. package/dist/react/select-nonprofit.d.ts +3 -3
  108. package/dist/react/select-nonprofit.esm.js +1 -1
  109. package/dist/react/select-nonprofit.js +1 -1
  110. package/dist/utils/events.d.ts +3 -3
  111. package/dist/utils/index.d.ts +3 -3
  112. package/package.json +1 -1
  113. package/dist/chunks/_share-dialog-dependencies-JkqAjyWn.esm.js.map +0 -1
  114. package/dist/chunks/_share-dialog-dependencies-mxkp5-2m.esm.js.map +0 -1
  115. package/dist/chunks/index-Ex-M28eQ.esm.js +0 -2
  116. package/dist/chunks/index-Ex-M28eQ.esm.js.map +0 -1
  117. package/dist/chunks/index-QVOgLnoJ.esm.js +0 -2
  118. package/dist/chunks/index-QVOgLnoJ.esm.js.map +0 -1
  119. package/dist/chunks/index-R8Ga2jzl.esm.js +0 -2
  120. package/dist/chunks/index-R8Ga2jzl.esm.js.map +0 -1
  121. package/dist/chunks/index-XDPjy3-K.esm.js +0 -2
  122. package/dist/chunks/index-XDPjy3-K.esm.js.map +0 -1
  123. package/dist/chunks/index-nLDGmOkp.esm.js +0 -2
  124. package/dist/chunks/index-nLDGmOkp.esm.js.map +0 -1
  125. package/dist/chunks/index-rvzEx3Qj.esm.js +0 -2
  126. package/dist/chunks/index-rvzEx3Qj.esm.js.map +0 -1
  127. package/dist/chunks/routes-2eYzHPEh.esm.js +0 -2
  128. package/dist/chunks/routes-dMIUHq8Y.esm.js +0 -2
@@ -1,2 +0,0 @@
1
- import{B as E,N as d}from"./beam-errors-AMvTvR1C.esm.js";import{logger as p}from"../utils/logger.esm.js";var w="1.36.0",C={"@lit/react":"1.0.0","@lukeed/uuid":"2.0.0","@shoelace-style/shoelace":"2.11.2",lit:"2.6.1","lodash-es":"4.17.21","lucide-static":"0.292.0"};async function O(o,s){const c={method:"GET",...s,headers:{"Content-Type":"application/json",Accept:"application/json","X-Beam-Client":"WebSDK","X-Beam-Client-Version":w,...s?.headers},preflightContinue:!0,mode:s?.mode||"cors",body:s?.body!=null?s.body:void 0};let r;try{r=await fetch(o,c)}catch(t){const e=new E(`Network call failed (${c?.method.toUpperCase()} ${o})`);throw e.cause=t,p.error(e,o),e}let n,i;try{i=await r.text(),i&&(n=JSON.parse(i))}catch(t){let e=t;throw t instanceof SyntaxError&&(e=new d(r,n,`Response invalid. Expected JSON. Received: "${i}"`),e.cause=t),p.error(e),e}if(!r.ok){const t=new d(r,n,"Response was not OK");throw p.error(t),t}return n}const h="https://production-central-backend-ne.beamimpact.com",v="https://production.beamimpactlogs.com",U={en:"en",fr:"fr",de:"de",es:"es",it:"it",pl:"pl"},a=(o,s,c)=>({[o]:async function({headers:r={},baseUrl:n=h,apiRoot:i="/api/v3",pathParams:t={},queryParams:e={},requestBody:m}){const f=Object.entries(t).reduce((S,[N,b])=>S.replace(`{${N}}`,b),o),u=JSON.parse(JSON.stringify(e)),l=new URLSearchParams(u).toString(),g=n+i+f+(l&&`?${l}`),y={headers:r,method:s,body:JSON.stringify(m)};return O(g,y)}})[o],L=a("/chain/{chainId}/nonprofits","get"),R=a("/impact","get"),T=a("/chain/{chainId}/cumulativeImpact","get"),k=a("/selectNonprofit","post"),A=a("/transaction","post"),x=a("/transaction/{transactionId}","put"),B=a("/cart","post"),I=a("/chain/findEligibleNonprofitsForCart","post"),J=a("/logs","post"),D=a("/experimentSession","post");export{h as D,U as S,v as a,A as b,B as c,J as d,R as e,I as f,L as g,k as h,x as i,T as j,C as k,D as p};
2
- //# sourceMappingURL=routes-2eYzHPEh.esm.js.map
@@ -1,2 +0,0 @@
1
- import{B as E,N as d}from"./beam-errors-AMvTvR1C.esm.js";import{logger as p}from"../utils/logger.js";var w="1.36.0",C={"@lit/react":"1.0.0","@lukeed/uuid":"2.0.0","@shoelace-style/shoelace":"2.11.2",lit:"2.6.1","lodash-es":"4.17.21","lucide-static":"0.292.0"};async function O(o,s){const c={method:"GET",...s,headers:{"Content-Type":"application/json",Accept:"application/json","X-Beam-Client":"WebSDK","X-Beam-Client-Version":w,...s?.headers},preflightContinue:!0,mode:s?.mode||"cors",body:s?.body!=null?s.body:void 0};let r;try{r=await fetch(o,c)}catch(t){const e=new E(`Network call failed (${c?.method.toUpperCase()} ${o})`);throw e.cause=t,p.error(e,o),e}let n,i;try{i=await r.text(),i&&(n=JSON.parse(i))}catch(t){let e=t;throw t instanceof SyntaxError&&(e=new d(r,n,`Response invalid. Expected JSON. Received: "${i}"`),e.cause=t),p.error(e),e}if(!r.ok){const t=new d(r,n,"Response was not OK");throw p.error(t),t}return n}const h="https://production-central-backend-ne.beamimpact.com",v="https://production.beamimpactlogs.com",U={en:"en",fr:"fr",de:"de",es:"es",it:"it",pl:"pl"},a=(o,s,c)=>({[o]:async function({headers:r={},baseUrl:n=h,apiRoot:i="/api/v3",pathParams:t={},queryParams:e={},requestBody:m}){const f=Object.entries(t).reduce((S,[N,b])=>S.replace(`{${N}}`,b),o),u=JSON.parse(JSON.stringify(e)),l=new URLSearchParams(u).toString(),g=n+i+f+(l&&`?${l}`),y={headers:r,method:s,body:JSON.stringify(m)};return O(g,y)}})[o],L=a("/chain/{chainId}/nonprofits","get"),R=a("/impact","get"),T=a("/chain/{chainId}/cumulativeImpact","get"),k=a("/selectNonprofit","post"),A=a("/transaction","post"),x=a("/transaction/{transactionId}","put"),B=a("/cart","post"),I=a("/chain/findEligibleNonprofitsForCart","post"),J=a("/logs","post"),D=a("/experimentSession","post");export{h as D,U as S,v as a,A as b,B as c,J as d,R as e,I as f,L as g,k as h,x as i,T as j,C as k,D as p};
2
- //# sourceMappingURL=routes-dMIUHq8Y.esm.js.map