@beamimpact/web-sdk 1.42.1 → 1.42.2

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 (168) hide show
  1. package/dist/chunks/_share-dialog-dependencies-g3jQ8id8.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-g3jQ8id8.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-illEcadu.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-illEcadu.esm.js.map +1 -0
  5. package/dist/chunks/{cart-contents-sUhfwLAz.esm.d.ts → cart-contents-WB1BF6hG.esm.d.ts} +1 -1
  6. package/dist/chunks/{events-QJc86_5Y.esm.d.ts → events-MfRTtTVm.esm.d.ts} +1 -1
  7. package/dist/chunks/index-3sQuy5hc.esm.js +2 -0
  8. package/dist/chunks/index-3sQuy5hc.esm.js.map +1 -0
  9. package/dist/chunks/{index-M-0eAFA6.esm.d.ts → index-B9w02q6y.esm.d.ts} +1 -1
  10. package/dist/chunks/index-DMAoV_0a.esm.js +2 -0
  11. package/dist/chunks/index-DMAoV_0a.esm.js.map +1 -0
  12. package/dist/chunks/{index-_Hgu38MH.esm.d.ts → index-OaRsZJh7.esm.d.ts} +1 -1
  13. package/dist/chunks/{index-euJMrXIc.esm.d.ts → index-UggwPn9Q.esm.d.ts} +1 -1
  14. package/dist/chunks/index-ZkBd4ymi.esm.js +2 -0
  15. package/dist/chunks/index-ZkBd4ymi.esm.js.map +1 -0
  16. package/dist/chunks/index-i2CQiQI2.esm.js +2 -0
  17. package/dist/chunks/index-i2CQiQI2.esm.js.map +1 -0
  18. package/dist/chunks/{index-ZgCs6F4e.esm.d.ts → index-ozcDdIom.esm.d.ts} +4 -4
  19. package/dist/chunks/{index-giTGb0gn.esm.js → index-q6z7dFlx.esm.js} +2 -2
  20. package/dist/chunks/{index-giTGb0gn.esm.js.map → index-q6z7dFlx.esm.js.map} +1 -1
  21. package/dist/chunks/{index-qjhWIDcT.esm.js → index-sq8adzxn.esm.js} +2 -2
  22. package/dist/chunks/{index-qjhWIDcT.esm.js.map → index-sq8adzxn.esm.js.map} +1 -1
  23. package/dist/chunks/{index-VHXu2kRx.esm.d.ts → index-uqNCQVUx.esm.d.ts} +1 -1
  24. package/dist/chunks/index-x8t2PPR9.esm.js +2 -0
  25. package/dist/chunks/index-x8t2PPR9.esm.js.map +1 -0
  26. package/dist/chunks/index-xd5EFnau.esm.js +2 -0
  27. package/dist/chunks/index-xd5EFnau.esm.js.map +1 -0
  28. package/dist/chunks/{index-_UuYsIe9.esm.d.ts → index-yeW2w5bb.esm.d.ts} +1 -1
  29. package/dist/chunks/{openapi-spec--WoGcZgR.esm.d.ts → openapi-spec-GGEBbqAJ.esm.d.ts} +892 -27
  30. package/dist/chunks/order-page-HVySSia7.esm.js +2 -0
  31. package/dist/chunks/order-page-HVySSia7.esm.js.map +1 -0
  32. package/dist/chunks/{order-page-Ps8Qyjfg.esm.d.ts → order-page-LvE0Otsn.esm.d.ts} +3 -3
  33. package/dist/chunks/order-page-V0lMZwIk.esm.js +2 -0
  34. package/dist/chunks/order-page-V0lMZwIk.esm.js.map +1 -0
  35. package/dist/chunks/{routes-sc6xljWU.esm.js → routes-8O1TW_Zi.esm.js} +2 -2
  36. package/dist/chunks/{routes-sc6xljWU.esm.js.map → routes-8O1TW_Zi.esm.js.map} +1 -1
  37. package/dist/chunks/{routes-zzEfDMIn.esm.js → routes-SVTSfe0m.esm.js} +2 -2
  38. package/dist/chunks/{routes-zzEfDMIn.esm.js.map → routes-SVTSfe0m.esm.js.map} +1 -1
  39. package/dist/chunks/{routes-qbvie7oI.esm.d.ts → routes-wCCYf_uA.esm.d.ts} +31 -0
  40. package/dist/chunks/{share-button-AUvXGlky.esm.js → share-button-MIfALwo7.esm.js} +2 -2
  41. package/dist/chunks/{share-button-AUvXGlky.esm.js.map → share-button-MIfALwo7.esm.js.map} +1 -1
  42. package/dist/chunks/{share-button-wmGQW923.esm.js → share-button-SBb1jPC2.esm.js} +2 -2
  43. package/dist/chunks/{share-button-wmGQW923.esm.js.map → share-button-SBb1jPC2.esm.js.map} +1 -1
  44. package/dist/chunks/{shoelace-components-29N4dEDv.esm.js → shoelace-components-5jajO5Gh.esm.js} +2 -2
  45. package/dist/chunks/{shoelace-components-29N4dEDv.esm.js.map → shoelace-components-5jajO5Gh.esm.js.map} +1 -1
  46. package/dist/chunks/{shoelace-components-YboJNgEe.esm.js → shoelace-components-fjdtu7FL.esm.js} +2 -2
  47. package/dist/chunks/{shoelace-components-YboJNgEe.esm.js.map → shoelace-components-fjdtu7FL.esm.js.map} +1 -1
  48. package/dist/chunks/{update-cart-_5yw3Tg7.esm.js → update-cart-iH40XbBA.esm.js} +2 -2
  49. package/dist/chunks/{update-cart-_5yw3Tg7.esm.js.map → update-cart-iH40XbBA.esm.js.map} +1 -1
  50. package/dist/chunks/{update-cart-SajqAoez.esm.d.ts → update-cart-tjLR7pMx.esm.d.ts} +1 -1
  51. package/dist/chunks/{update-cart-yfZE8kwS.esm.js → update-cart-x_iZyHUC.esm.js} +2 -2
  52. package/dist/chunks/{update-cart-yfZE8kwS.esm.js.map → update-cart-x_iZyHUC.esm.js.map} +1 -1
  53. package/dist/components/community-impact.esm.js +1 -1
  54. package/dist/components/community-impact.js +1 -1
  55. package/dist/components/cumulative-impact.esm.js +1 -1
  56. package/dist/components/cumulative-impact.js +1 -1
  57. package/dist/components/impact-overview.d.ts +15 -0
  58. package/dist/components/impact-overview.esm.js +7 -7
  59. package/dist/components/impact-overview.esm.js.map +1 -1
  60. package/dist/components/impact-overview.js +7 -7
  61. package/dist/components/impact-overview.js.map +1 -1
  62. package/dist/components/index.d.ts +3 -3
  63. package/dist/components/index.esm.js +1 -1
  64. package/dist/components/index.js +1 -1
  65. package/dist/components/post-purchase.d.ts +11 -3
  66. package/dist/components/post-purchase.esm.js +2 -1
  67. package/dist/components/post-purchase.esm.js.map +1 -1
  68. package/dist/components/post-purchase.js +2 -1
  69. package/dist/components/post-purchase.js.map +1 -1
  70. package/dist/components/product-details-page.d.ts +4 -1
  71. package/dist/components/product-details-page.esm.js +1 -1
  72. package/dist/components/product-details-page.js +1 -1
  73. package/dist/components/redeem-transaction.d.ts +3 -3
  74. package/dist/components/redeem-transaction.esm.js +1 -1
  75. package/dist/components/redeem-transaction.js +1 -1
  76. package/dist/components/select-nonprofit.d.ts +3 -3
  77. package/dist/components/select-nonprofit.esm.js +1 -1
  78. package/dist/components/select-nonprofit.js +1 -1
  79. package/dist/components/select-subscription-nonprofit.d.ts +1 -1
  80. package/dist/components/select-subscription-nonprofit.esm.js +1 -1
  81. package/dist/components/select-subscription-nonprofit.js +1 -1
  82. package/dist/components/shopify.d.ts +6 -6
  83. package/dist/components/shopify.esm.js +1 -1
  84. package/dist/components/shopify.js +1 -1
  85. package/dist/components/social-share.d.ts +1 -0
  86. package/dist/components/social-share.esm.js +2 -2
  87. package/dist/components/social-share.esm.js.map +1 -1
  88. package/dist/components/social-share.js +2 -2
  89. package/dist/components/social-share.js.map +1 -1
  90. package/dist/components/subscription-impact.d.ts +15 -1
  91. package/dist/components/subscription-impact.esm.js +1 -1
  92. package/dist/components/subscription-impact.js +1 -1
  93. package/dist/components/subscription-management.d.ts +26 -4
  94. package/dist/components/subscription-management.esm.js +1 -1
  95. package/dist/components/subscription-management.js +1 -1
  96. package/dist/index.d.ts +12 -12
  97. package/dist/index.esm.js +1 -1
  98. package/dist/index.js +1 -1
  99. package/dist/integrations/beam.esm.js +1 -1
  100. package/dist/integrations/beam.js +1 -1
  101. package/dist/integrations/cart.d.ts +3 -3
  102. package/dist/integrations/cart.esm.js +1 -1
  103. package/dist/integrations/cart.js +1 -1
  104. package/dist/integrations/index.d.ts +10 -10
  105. package/dist/integrations/index.esm.js +1 -1
  106. package/dist/integrations/index.js +1 -1
  107. package/dist/integrations/logs.d.ts +2 -2
  108. package/dist/integrations/logs.esm.js +1 -1
  109. package/dist/integrations/logs.js +1 -1
  110. package/dist/integrations/shopify.d.ts +5 -5
  111. package/dist/integrations/shopify.esm.js +1 -1
  112. package/dist/integrations/shopify.js +1 -1
  113. package/dist/integrations/statsig.esm.js +1 -1
  114. package/dist/integrations/statsig.js +1 -1
  115. package/dist/integrations/utils.d.ts +3 -3
  116. package/dist/react/community-impact.esm.js +1 -1
  117. package/dist/react/community-impact.js +1 -1
  118. package/dist/react/cumulative-impact.esm.js +1 -1
  119. package/dist/react/cumulative-impact.js +1 -1
  120. package/dist/react/impact-overview.esm.js +1 -1
  121. package/dist/react/impact-overview.js +1 -1
  122. package/dist/react/index.d.ts +4 -4
  123. package/dist/react/index.esm.js +1 -1
  124. package/dist/react/index.js +1 -1
  125. package/dist/react/post-purchase.d.ts +2 -2
  126. package/dist/react/post-purchase.esm.js +1 -1
  127. package/dist/react/post-purchase.js +1 -1
  128. package/dist/react/product-details-page.esm.js +1 -1
  129. package/dist/react/product-details-page.js +1 -1
  130. package/dist/react/redeem-transaction.d.ts +3 -3
  131. package/dist/react/redeem-transaction.esm.js +1 -1
  132. package/dist/react/redeem-transaction.js +1 -1
  133. package/dist/react/select-nonprofit.d.ts +3 -3
  134. package/dist/react/select-nonprofit.esm.js +1 -1
  135. package/dist/react/select-nonprofit.js +1 -1
  136. package/dist/react/select-subscription-nonprofit.d.ts +3 -3
  137. package/dist/react/select-subscription-nonprofit.esm.js +1 -1
  138. package/dist/react/select-subscription-nonprofit.js +1 -1
  139. package/dist/react/social-share.esm.js +1 -1
  140. package/dist/react/social-share.js +1 -1
  141. package/dist/react/subscription-impact.esm.js +1 -1
  142. package/dist/react/subscription-impact.js +1 -1
  143. package/dist/react/subscription-management.d.ts +3 -3
  144. package/dist/react/subscription-management.esm.js +1 -1
  145. package/dist/react/subscription-management.js +1 -1
  146. package/dist/utils/events.d.ts +3 -3
  147. package/dist/utils/index.d.ts +3 -3
  148. package/package.json +1 -1
  149. package/dist/chunks/_share-dialog-dependencies-KpCcT5X6.esm.js +0 -2
  150. package/dist/chunks/_share-dialog-dependencies-KpCcT5X6.esm.js.map +0 -1
  151. package/dist/chunks/_share-dialog-dependencies-vHG7OoOA.esm.js +0 -2
  152. package/dist/chunks/_share-dialog-dependencies-vHG7OoOA.esm.js.map +0 -1
  153. package/dist/chunks/index--iA4GcfC.esm.js +0 -2
  154. package/dist/chunks/index--iA4GcfC.esm.js.map +0 -1
  155. package/dist/chunks/index-F1U8ROKG.esm.js +0 -2
  156. package/dist/chunks/index-F1U8ROKG.esm.js.map +0 -1
  157. package/dist/chunks/index-LF_9YLx7.esm.js +0 -2
  158. package/dist/chunks/index-LF_9YLx7.esm.js.map +0 -1
  159. package/dist/chunks/index-MSOdvudi.esm.js +0 -2
  160. package/dist/chunks/index-MSOdvudi.esm.js.map +0 -1
  161. package/dist/chunks/index-QeW-IaK9.esm.js +0 -2
  162. package/dist/chunks/index-QeW-IaK9.esm.js.map +0 -1
  163. package/dist/chunks/index-e--9y-Sl.esm.js +0 -2
  164. package/dist/chunks/index-e--9y-Sl.esm.js.map +0 -1
  165. package/dist/chunks/order-page-HoZ7DC0L.esm.js +0 -2
  166. package/dist/chunks/order-page-HoZ7DC0L.esm.js.map +0 -1
  167. package/dist/chunks/order-page-m5hkOPEQ.esm.js +0 -2
  168. package/dist/chunks/order-page-m5hkOPEQ.esm.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import"./vendor--f7lkyBk.esm.js";import"./shoelace-components-5jajO5Gh.esm.js";import"./lit-3QHn3fwl.esm.js";import"./routes-SVTSfe0m.esm.js";import"./beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.esm.js";
2
+ //# sourceMappingURL=_share-dialog-dependencies-g3jQ8id8.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_share-dialog-dependencies-g3jQ8id8.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import"./vendor--f7lkyBk.esm.js";import"./shoelace-components-fjdtu7FL.esm.js";import"./lit-3QHn3fwl.esm.js";import"./routes-8O1TW_Zi.esm.js";import"./beam-errors-P-Lu07Ce.esm.js";import"../utils/logger.js";
2
+ //# sourceMappingURL=_share-dialog-dependencies-illEcadu.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_share-dialog-dependencies-illEcadu.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { p as paths } from './openapi-spec--WoGcZgR.esm.js';
1
+ import { p as paths } from './openapi-spec-GGEBbqAJ.esm.js';
2
2
 
3
3
  type TCartApi = paths["/chain/findEligibleNonprofitsForCart"]["post"]["requestBody"]["content"]["application/json"]["cart"];
4
4
  type TCart = TCartApi & {
@@ -1,4 +1,4 @@
1
- import { a as TCartApi } from './cart-contents-sUhfwLAz.esm.js';
1
+ import { a as TCartApi } from './cart-contents-WB1BF6hG.esm.js';
2
2
  import { W as WidgetName, a as TId } from './types-zbTZ8-KP.esm.js';
3
3
 
4
4
  type NetworkEventDetail = {
@@ -0,0 +1,2 @@
1
+ import{f as e,h as r,M as t,s as a,U as o}from"./order-page-HVySSia7.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
2
+ //# sourceMappingURL=index-3sQuy5hc.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-3sQuy5hc.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { b as beamErrors } from './beam-errors-fXDkG1zo.esm.js';
2
- import { e as events } from './events-QJc86_5Y.esm.js';
2
+ import { e as events } from './events-MfRTtTVm.esm.js';
3
3
  import { logger } from '../utils/logger.js';
4
4
  import { fetchProxy, initNetworkListeners, xhrProxy } from '../utils/network-listeners.js';
5
5
  import { createScopedLocalStorage } from '../utils/local-storage.js';
@@ -0,0 +1,2 @@
1
+ import{K as e}from"./update-cart-iH40XbBA.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
+ //# sourceMappingURL=index-DMAoV_0a.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DMAoV_0a.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { p as paths } from './openapi-spec--WoGcZgR.esm.js';
1
+ import { p as paths } from './openapi-spec-GGEBbqAJ.esm.js';
2
2
 
3
3
  type PostLogsReq = paths["/logs"]["post"]["requestBody"]["content"]["application/json"];
4
4
  interface SendLogConfig {
@@ -1,4 +1,4 @@
1
- import { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from './update-cart-SajqAoez.esm.js';
1
+ import { B as BeamCartAPIConfig, a as BeamCartValues, u as updateCart } from './update-cart-tjLR7pMx.esm.js';
2
2
 
3
3
  declare const index_BeamCartAPIConfig: typeof BeamCartAPIConfig;
4
4
  declare const index_BeamCartValues: typeof BeamCartValues;
@@ -0,0 +1,2 @@
1
+ import{f as e,h as r,M as t,s as a,U as o}from"./order-page-V0lMZwIk.esm.js";var s=Object.freeze({__proto__:null,addBeamAttributesToCart:e,getCurrentCart:r,registerCartIntegration:t,showBeamOrderPageWidgets:a,trackCart:o});export{s as i};
2
+ //# sourceMappingURL=index-ZkBd4ymi.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ZkBd4ymi.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{i}from"./index-z8c9I9IQ.esm.js";import{i as o}from"./index-3sQuy5hc.esm.js";import{i as r}from"./index-mw70Caof.esm.js";import{i as e}from"./index-x8t2PPR9.esm.js";import{i as m}from"./index-sq8adzxn.esm.js";var s=Object.freeze({__proto__:null,Cart:e,Logs:m,Session:r,Shopify:o,Utils:i});export{s as i};
2
+ //# sourceMappingURL=index-i2CQiQI2.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-i2CQiQI2.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
- import { i as index$5 } from './index-VHXu2kRx.esm.js';
2
- import { i as index$4 } from './index-_UuYsIe9.esm.js';
1
+ import { i as index$5 } from './index-uqNCQVUx.esm.js';
2
+ import { i as index$4 } from './index-yeW2w5bb.esm.js';
3
3
  import { i as index$3 } from './index-EGiUuWe-.esm.js';
4
- import { i as index$1 } from './index-euJMrXIc.esm.js';
5
- import { i as index$2 } from './index-_Hgu38MH.esm.js';
4
+ import { i as index$1 } from './index-UggwPn9Q.esm.js';
5
+ import { i as index$2 } from './index-OaRsZJh7.esm.js';
6
6
 
7
7
  /**
8
8
  * This file is used to provide type definitions
@@ -1,2 +1,2 @@
1
- import{a as i,c as n}from"./routes-sc6xljWU.esm.js";import{logger as c}from"../utils/logger.js";async function e(o,r){const{apiKey:a,baseUrl:s}=o;try{await n({baseUrl:s||i,headers:{authorization:`Api-Key ${a}`},requestBody:{...r}})}catch(t){c.error("Failed to send log",t)}}var d=Object.freeze({__proto__:null,sendLog:e});export{d as i,e as s};
2
- //# sourceMappingURL=index-giTGb0gn.esm.js.map
1
+ import{a as i,c as n}from"./routes-8O1TW_Zi.esm.js";import{logger as c}from"../utils/logger.js";async function e(o,r){const{apiKey:a,baseUrl:s}=o;try{await n({baseUrl:s||i,headers:{authorization:`Api-Key ${a}`},requestBody:{...r}})}catch(t){c.error("Failed to send log",t)}}var d=Object.freeze({__proto__:null,sendLog:e});export{d as i,e as s};
2
+ //# sourceMappingURL=index-q6z7dFlx.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-giTGb0gn.esm.js","sources":["../../src/integrations/logs/index.ts"],"sourcesContent":["import { postLogs } from \"../../api-sdk/v3/routes\";\nimport { paths } from \"../../api-sdk/v3/openapi-spec\";\nimport { logger } from \"../../utils/logger\";\nimport { DEFAULT_LOG_URL } from \"../../api-sdk/constants\";\n\ntype PostLogsReq = paths[\"/logs\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"];\n\ninterface SendLogConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport async function sendLog(config: SendLogConfig, payload: PostLogsReq): Promise<void> {\n const { apiKey, baseUrl } = config;\n try {\n await postLogs({\n baseUrl: baseUrl || DEFAULT_LOG_URL,\n headers: {\n authorization: `Api-Key ${apiKey}`,\n },\n requestBody: {\n ...payload,\n },\n });\n } catch (err) {\n logger.error(\"Failed to send log\", err);\n }\n}\n"],"names":["sendLog","config","payload","apiKey","baseUrl","postLogs","DEFAULT_LOG_URL","err","logger"],"mappings":"gGAYA,eAAsBA,EAAQC,EAAuBC,EAAqC,CACxF,KAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIH,EAC5B,GAAI,CACF,MAAMI,EAAS,CACb,QAASD,GAAWE,EACpB,QAAS,CACP,cAAe,WAAWH,CAAM,EAClC,EACA,YAAa,CACX,GAAGD,CACL,CACF,CAAC,CACH,OAASK,EAAK,CACZC,EAAO,MAAM,qBAAsBD,CAAG,CACxC,CACF"}
1
+ {"version":3,"file":"index-q6z7dFlx.esm.js","sources":["../../src/integrations/logs/index.ts"],"sourcesContent":["import { postLogs } from \"../../api-sdk/v3/routes\";\nimport { paths } from \"../../api-sdk/v3/openapi-spec\";\nimport { logger } from \"../../utils/logger\";\nimport { DEFAULT_LOG_URL } from \"../../api-sdk/constants\";\n\ntype PostLogsReq = paths[\"/logs\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"];\n\ninterface SendLogConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport async function sendLog(config: SendLogConfig, payload: PostLogsReq): Promise<void> {\n const { apiKey, baseUrl } = config;\n try {\n await postLogs({\n baseUrl: baseUrl || DEFAULT_LOG_URL,\n headers: {\n authorization: `Api-Key ${apiKey}`,\n },\n requestBody: {\n ...payload,\n },\n });\n } catch (err) {\n logger.error(\"Failed to send log\", err);\n }\n}\n"],"names":["sendLog","config","payload","apiKey","baseUrl","postLogs","DEFAULT_LOG_URL","err","logger"],"mappings":"gGAYA,eAAsBA,EAAQC,EAAuBC,EAAqC,CACxF,KAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIH,EAC5B,GAAI,CACF,MAAMI,EAAS,CACb,QAASD,GAAWE,EACpB,QAAS,CACP,cAAe,WAAWH,CAAM,EAClC,EACA,YAAa,CACX,GAAGD,CACL,CACF,CAAC,CACH,OAASK,EAAK,CACZC,EAAO,MAAM,qBAAsBD,CAAG,CACxC,CACF"}
@@ -1,2 +1,2 @@
1
- import{a as i,c as n}from"./routes-zzEfDMIn.esm.js";import{logger as c}from"../utils/logger.esm.js";async function e(o,r){const{apiKey:a,baseUrl:s}=o;try{await n({baseUrl:s||i,headers:{authorization:`Api-Key ${a}`},requestBody:{...r}})}catch(t){c.error("Failed to send log",t)}}var d=Object.freeze({__proto__:null,sendLog:e});export{d as i,e as s};
2
- //# sourceMappingURL=index-qjhWIDcT.esm.js.map
1
+ import{a as i,c as n}from"./routes-SVTSfe0m.esm.js";import{logger as c}from"../utils/logger.esm.js";async function e(o,r){const{apiKey:a,baseUrl:s}=o;try{await n({baseUrl:s||i,headers:{authorization:`Api-Key ${a}`},requestBody:{...r}})}catch(t){c.error("Failed to send log",t)}}var d=Object.freeze({__proto__:null,sendLog:e});export{d as i,e as s};
2
+ //# sourceMappingURL=index-sq8adzxn.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-qjhWIDcT.esm.js","sources":["../../src/integrations/logs/index.ts"],"sourcesContent":["import { postLogs } from \"../../api-sdk/v3/routes\";\nimport { paths } from \"../../api-sdk/v3/openapi-spec\";\nimport { logger } from \"../../utils/logger\";\nimport { DEFAULT_LOG_URL } from \"../../api-sdk/constants\";\n\ntype PostLogsReq = paths[\"/logs\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"];\n\ninterface SendLogConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport async function sendLog(config: SendLogConfig, payload: PostLogsReq): Promise<void> {\n const { apiKey, baseUrl } = config;\n try {\n await postLogs({\n baseUrl: baseUrl || DEFAULT_LOG_URL,\n headers: {\n authorization: `Api-Key ${apiKey}`,\n },\n requestBody: {\n ...payload,\n },\n });\n } catch (err) {\n logger.error(\"Failed to send log\", err);\n }\n}\n"],"names":["sendLog","config","payload","apiKey","baseUrl","postLogs","DEFAULT_LOG_URL","err","logger"],"mappings":"oGAYA,eAAsBA,EAAQC,EAAuBC,EAAqC,CACxF,KAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIH,EAC5B,GAAI,CACF,MAAMI,EAAS,CACb,QAASD,GAAWE,EACpB,QAAS,CACP,cAAe,WAAWH,CAAM,EAClC,EACA,YAAa,CACX,GAAGD,CACL,CACF,CAAC,CACH,OAASK,EAAK,CACZC,EAAO,MAAM,qBAAsBD,CAAG,CACxC,CACF"}
1
+ {"version":3,"file":"index-sq8adzxn.esm.js","sources":["../../src/integrations/logs/index.ts"],"sourcesContent":["import { postLogs } from \"../../api-sdk/v3/routes\";\nimport { paths } from \"../../api-sdk/v3/openapi-spec\";\nimport { logger } from \"../../utils/logger\";\nimport { DEFAULT_LOG_URL } from \"../../api-sdk/constants\";\n\ntype PostLogsReq = paths[\"/logs\"][\"post\"][\"requestBody\"][\"content\"][\"application/json\"];\n\ninterface SendLogConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport async function sendLog(config: SendLogConfig, payload: PostLogsReq): Promise<void> {\n const { apiKey, baseUrl } = config;\n try {\n await postLogs({\n baseUrl: baseUrl || DEFAULT_LOG_URL,\n headers: {\n authorization: `Api-Key ${apiKey}`,\n },\n requestBody: {\n ...payload,\n },\n });\n } catch (err) {\n logger.error(\"Failed to send log\", err);\n }\n}\n"],"names":["sendLog","config","payload","apiKey","baseUrl","postLogs","DEFAULT_LOG_URL","err","logger"],"mappings":"oGAYA,eAAsBA,EAAQC,EAAuBC,EAAqC,CACxF,KAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIH,EAC5B,GAAI,CACF,MAAMI,EAAS,CACb,QAASD,GAAWE,EACpB,QAAS,CACP,cAAe,WAAWH,CAAM,EAClC,EACA,YAAa,CACX,GAAGD,CACL,CACF,CAAC,CACH,OAASK,EAAK,CACZC,EAAO,MAAM,qBAAsBD,CAAG,CACxC,CACF"}
@@ -1,5 +1,5 @@
1
1
  import { b as beamErrors } from './beam-errors-fXDkG1zo.esm.js';
2
- import { e as events } from './events-QJc86_5Y.esm.js';
2
+ import { e as events } from './events-MfRTtTVm.esm.js';
3
3
  import { logger } from '../utils/logger.js';
4
4
  import { fetchProxy, initNetworkListeners, xhrProxy } from '../utils/network-listeners.js';
5
5
  import { createScopedLocalStorage } from '../utils/local-storage.js';
@@ -0,0 +1,2 @@
1
+ import{K as e}from"./update-cart-x_iZyHUC.esm.js";var r=Object.freeze({__proto__:null,updateCart:e});export{r as i};
2
+ //# sourceMappingURL=index-x8t2PPR9.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-x8t2PPR9.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{i}from"./index-x2kxA_Xo.esm.js";import{i as o}from"./index-ZkBd4ymi.esm.js";import{i as r}from"./index-1nI7l5vj.esm.js";import{i as e}from"./index-DMAoV_0a.esm.js";import{i as m}from"./index-q6z7dFlx.esm.js";var s=Object.freeze({__proto__:null,Cart:e,Logs:m,Session:r,Shopify:o,Utils:i});export{s as i};
2
+ //# sourceMappingURL=index-xd5EFnau.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-xd5EFnau.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { T as TBeamOrderPageParams, a as addBeamAttributesToCart, g as getCurrentCart, r as registerCartIntegration, s as showBeamOrderPageWidgets, t as trackCart } from './order-page-Ps8Qyjfg.esm.js';
1
+ import { T as TBeamOrderPageParams, a as addBeamAttributesToCart, g as getCurrentCart, r as registerCartIntegration, s as showBeamOrderPageWidgets, t as trackCart } from './order-page-LvE0Otsn.esm.js';
2
2
 
3
3
  declare const index_TBeamOrderPageParams: typeof TBeamOrderPageParams;
4
4
  declare const index_addBeamAttributesToCart: typeof addBeamAttributesToCart;