@beworke/pixel 0.1.0-rc.7 → 0.1.0-rc.8

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 (150) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +71 -56
  3. package/RELEASE_CANDIDATE.md +28 -62
  4. package/dist/Pixel-CCgGk43j.d.ts +797 -0
  5. package/dist/Pixel-CqbgC_72.d.mts +797 -0
  6. package/dist/{StorageFactory-DeMaZ8wk.d.ts → StorageFactory-BRBsnnH7.d.ts} +1 -1
  7. package/dist/{StorageFactory-Cq29vF32.d.mts → StorageFactory-Dp19Wecr.d.mts} +1 -1
  8. package/dist/browser/index.cjs.js +3 -0
  9. package/dist/browser/index.cjs.js.map +1 -0
  10. package/dist/browser/index.d.mts +55 -0
  11. package/dist/browser/index.d.ts +55 -0
  12. package/dist/browser/index.esm.js +3 -0
  13. package/dist/browser/index.esm.js.map +1 -0
  14. package/dist/browser/pixel.global.js +4 -0
  15. package/dist/browser/pixel.global.js.map +1 -0
  16. package/dist/config/index.cjs.js +1 -1
  17. package/dist/config/index.cjs.js.map +1 -1
  18. package/dist/config/index.d.mts +15 -5
  19. package/dist/config/index.d.ts +15 -5
  20. package/dist/config/index.esm.js +1 -1
  21. package/dist/config/index.esm.js.map +1 -1
  22. package/dist/examples/html-script/RELEASE_CANDIDATE.md +6 -8
  23. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-autocomplete.html +40 -47
  24. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-disabled.html +40 -47
  25. package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-fields.html +40 -47
  26. package/dist/examples/html-script/add-payment-info/example-add-payment-info-data-track.html +40 -47
  27. package/dist/examples/html-script/add-payment-info/example-add-payment-info-dedupe.html +40 -47
  28. package/dist/examples/html-script/add-payment-info/example-add-payment-info-manual.html +40 -47
  29. package/dist/examples/html-script/add-payment-info/example-add-payment-info-rules-card.html +40 -47
  30. package/dist/examples/html-script/add-payment-info/example-add-payment-info-security.html +40 -47
  31. package/dist/examples/html-script/add-to-cart/example-add-to-cart-attribute.html +40 -47
  32. package/dist/examples/html-script/add-to-cart/example-add-to-cart-auto.html +40 -47
  33. package/dist/examples/html-script/add-to-cart/example-add-to-cart-click.html +40 -47
  34. package/dist/examples/html-script/add-to-cart/example-add-to-cart-dedupe.html +40 -47
  35. package/dist/examples/html-script/add-to-cart/example-add-to-cart-link.html +40 -47
  36. package/dist/examples/html-script/add-to-cart/example-add-to-cart-manual.html +40 -47
  37. package/dist/examples/html-script/add-to-cart/example-add-to-cart-order-bump.html +40 -47
  38. package/dist/examples/html-script/add-to-cart/example-add-to-cart-text.html +40 -47
  39. package/dist/examples/html-script/behavior/example-behavior-engagement.html +4 -4
  40. package/dist/examples/html-script/behavior/example-behavior-heartbeat.html +4 -4
  41. package/dist/examples/html-script/behavior/example-behavior-runtime-intelligence.html +4 -4
  42. package/dist/examples/html-script/behavior/example-behavior-viewport.html +4 -4
  43. package/dist/examples/html-script/buygoods/example-buygoods-checkout.html +83 -0
  44. package/dist/examples/html-script/example-checkout-commerce.html +31 -30
  45. package/dist/examples/html-script/example-conversion.html +41 -48
  46. package/dist/examples/html-script/example-global-factory-classic.html +45 -0
  47. package/dist/examples/html-script/example-global-factory.html +40 -0
  48. package/dist/examples/html-script/example-integration.html +39 -45
  49. package/dist/examples/html-script/example-landing-commerce.html +3 -8
  50. package/dist/examples/html-script/example-runtime-diagnostics.html +4 -4
  51. package/dist/examples/html-script/example-transport.html +59 -57
  52. package/dist/examples/html-script/full-funnel/checkout.html +3 -1
  53. package/dist/examples/html-script/full-funnel/downsell.html +3 -1
  54. package/dist/examples/html-script/full-funnel/landing.html +3 -1
  55. package/dist/examples/html-script/full-funnel/thank-you.html +3 -1
  56. package/dist/examples/html-script/full-funnel/upsell.html +3 -1
  57. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-attribute.html +40 -47
  58. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-auto.html +40 -47
  59. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-click.html +40 -47
  60. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-manual.html +40 -47
  61. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-snapshot.html +40 -47
  62. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-submit.html +40 -47
  63. package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-text.html +40 -47
  64. package/dist/examples/html-script/lead/example-lead-trigger-attribute.html +40 -47
  65. package/dist/examples/html-script/lead/example-lead-trigger-auto.html +40 -47
  66. package/dist/examples/html-script/lead/example-lead-trigger-click.html +40 -47
  67. package/dist/examples/html-script/release-candidate.html +31 -30
  68. package/dist/examples/html-script/remove-from-cart/README.md +3 -3
  69. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-attribute.html +40 -47
  70. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-css.html +40 -47
  71. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-dedupe.html +47 -54
  72. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-manual.html +40 -47
  73. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-multi.html +40 -47
  74. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-state.html +40 -47
  75. package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-text.html +40 -47
  76. package/dist/examples/html-script/search/example-search-attribute.html +40 -47
  77. package/dist/examples/html-script/search/example-search-button-sync.html +40 -47
  78. package/dist/examples/html-script/search/example-search-dedupe.html +40 -47
  79. package/dist/examples/html-script/search/example-search-input.html +40 -47
  80. package/dist/examples/html-script/search/example-search-manual.html +40 -47
  81. package/dist/examples/html-script/search/example-search-submit.html +40 -47
  82. package/dist/examples/html-script/search/example-search-text.html +40 -47
  83. package/dist/examples/html-script/url-context/example-url-context-allowed-domains.html +4 -4
  84. package/dist/examples/html-script/url-context/example-url-context-landing.html +4 -4
  85. package/dist/examples/html-script/url-context/example-url-context-upsell.html +4 -4
  86. package/dist/examples/html-script/url-context/example-url-context.html +4 -4
  87. package/dist/examples/html-script/view-content/example-view-content-attribute.html +40 -47
  88. package/dist/examples/html-script/view-content/example-view-content-css.html +40 -47
  89. package/dist/examples/html-script/view-content/example-view-content-dedupe.html +40 -47
  90. package/dist/examples/html-script/view-content/example-view-content-empty.html +40 -47
  91. package/dist/examples/html-script/view-content/example-view-content-manual.html +40 -47
  92. package/dist/examples/html-script/view-content/example-view-content-product-card.html +40 -47
  93. package/dist/examples/html-script/view-content/example-view-content-text.html +40 -47
  94. package/dist/index.cjs.js +1 -1
  95. package/dist/index.cjs.js.map +1 -1
  96. package/dist/index.d.mts +8 -6
  97. package/dist/index.d.ts +8 -6
  98. package/dist/index.esm.js +1 -1
  99. package/dist/index.esm.js.map +1 -1
  100. package/dist/{pixel-DMwpppf_.d.mts → pixel-C93c-0M2.d.mts} +109 -97
  101. package/dist/{pixel-2uL4LSyC.d.ts → pixel-DVy4rzj8.d.ts} +109 -97
  102. package/dist/pixel-default-config-BkAjriVH.d.mts +21 -0
  103. package/dist/pixel-default-config-Co69vDP3.d.ts +21 -0
  104. package/dist/pixel-settings-BhfJqA92.d.mts +40 -0
  105. package/dist/pixel-settings-C0qPFTii.d.ts +40 -0
  106. package/dist/runtime/index.cjs.js +1 -1
  107. package/dist/runtime/index.cjs.js.map +1 -1
  108. package/dist/runtime/index.d.mts +4 -4
  109. package/dist/runtime/index.d.ts +4 -4
  110. package/dist/runtime/index.esm.js +1 -1
  111. package/dist/runtime/index.esm.js.map +1 -1
  112. package/dist/services/index.cjs.js +1 -1
  113. package/dist/services/index.cjs.js.map +1 -1
  114. package/dist/services/index.d.mts +4 -4
  115. package/dist/services/index.d.ts +4 -4
  116. package/dist/services/index.esm.js +1 -1
  117. package/dist/services/index.esm.js.map +1 -1
  118. package/dist/{types-BqUEoZo0.d.ts → types-B2aUNHb3.d.ts} +2 -2
  119. package/dist/{types-6HF3UlsL.d.mts → types-C0J9KUQg.d.mts} +2 -2
  120. package/dist/{types-CgrabttM.d.mts → types-C2dsBog1.d.mts} +1 -1
  121. package/dist/{types-fFcQ1apy.d.ts → types-DcaBYgVI.d.ts} +1 -1
  122. package/dist/v2/global.global.js +1 -1
  123. package/dist/v2/global.global.js.map +1 -1
  124. package/dist/v2/index.cjs.js +1 -1
  125. package/dist/v2/index.cjs.js.map +1 -1
  126. package/dist/v2/index.d.mts +21 -787
  127. package/dist/v2/index.d.ts +21 -787
  128. package/dist/v2/index.esm.js +1 -1
  129. package/dist/v2/index.esm.js.map +1 -1
  130. package/docs/public/README.md +7 -4
  131. package/docs/public/api/exports.md +12 -8
  132. package/docs/public/api/pixel.md +27 -6
  133. package/docs/public/configuration/commerce.md +2 -2
  134. package/docs/public/configuration/modules.md +11 -14
  135. package/docs/public/configuration/overview.md +41 -25
  136. package/docs/public/configuration/transport.md +127 -0
  137. package/docs/public/events/catalog.md +3 -1
  138. package/docs/public/getting-started/installation.md +14 -12
  139. package/docs/public/getting-started/quick-start.md +95 -30
  140. package/docs/public/getting-started/react-nextjs.md +57 -34
  141. package/docs/public/getting-started/script-tag.md +55 -32
  142. package/docs/public/guides/funnel-checkout.md +1 -1
  143. package/docs/public/guides/funnel-landing.md +9 -7
  144. package/docs/public/limitations.md +5 -4
  145. package/docs/public/privacy/limitations.md +6 -6
  146. package/docs/public/release-candidate/validation.md +4 -4
  147. package/docs/public/troubleshooting.md +7 -6
  148. package/package.json +8 -3
  149. package/dist/pixel-default-config-BDPUVHse.d.ts +0 -5
  150. package/dist/pixel-default-config-C5uLt52W.d.mts +0 -5
@@ -223,9 +223,46 @@ code { font-size: 0.85em; }
223
223
  debug: true,
224
224
  },
225
225
  transport: {
226
- ...DEFAULT_PIXEL_CONFIG.transport,
227
- apiEndpoint: API_ENDPOINT,
228
- timeoutMs: 10000,
226
+ ...base.transport,
227
+ enabled: true,
228
+ sender: { mode: 'internal', baseUrl: API_ENDPOINT },
229
+ persistence: { enabled: true },
230
+ replay: { enabled: true },
231
+ ordering: { enabled: true },
232
+ coordination: { enabled: true },
233
+ circuitBreaker: {
234
+ enabled: true,
235
+ failureThreshold: 5,
236
+ resetTimeoutMs: 30000,
237
+ halfOpenMaxAttempts: 2,
238
+ },
239
+ backpressure: {
240
+ enabled: true,
241
+ maxQueueSize: 500,
242
+ policy: 'drop_oldest',
243
+ sampleRate: 0.5,
244
+ },
245
+ deadLetter: { enabled: true, maxEntries: 200 },
246
+ compression: { enabled: true, strategy: 'identity' },
247
+ retry: {
248
+ enabled: true,
249
+ maxAttempts: 4,
250
+ baseDelayMs: 500,
251
+ maxDelayMs: 4000,
252
+ multiplier: 2,
253
+ },
254
+ batch: {
255
+ enabled: true,
256
+ batchSize: 10,
257
+ maxWaitMs: 5000,
258
+ },
259
+ timeout: { enabled: true, timeoutMs: 10000 },
260
+ offline: { enabled: true },
261
+ flush: {
262
+ enabled: true,
263
+ flushOnDestroy: true,
264
+ prepareUnloadHooks: true,
265
+ },
229
266
  },
230
267
  identity: { ...base.identity, pixelId: PIXEL_ID },
231
268
  commerce: {
@@ -300,50 +337,6 @@ code { font-size: 0.85em; }
300
337
  },
301
338
  behavior: { ...base.modules.behavior, enabled: false },
302
339
  privacy: { ...base.modules.privacy, enabled: false },
303
- transport: {
304
- enabled: true,
305
- mockSender: { enabled: false },
306
- sender: { mode: 'http' },
307
- persistence: { enabled: true },
308
- replay: { enabled: true },
309
- ordering: { enabled: true },
310
- coordination: { enabled: true },
311
- circuitBreaker: {
312
- enabled: true,
313
- failureThreshold: 5,
314
- resetTimeoutMs: 30000,
315
- halfOpenMaxAttempts: 2,
316
- },
317
- backpressure: {
318
- enabled: true,
319
- maxQueueSize: 500,
320
- policy: 'drop_oldest',
321
- sampleRate: 0.5,
322
- },
323
- deadLetter: { enabled: true, maxEntries: 200 },
324
- compression: { enabled: true, strategy: 'identity' },
325
- retry: {
326
- enabled: true,
327
- maxAttempts: 4,
328
- baseDelayMs: 500,
329
- maxDelayMs: 4000,
330
- multiplier: 2,
331
- },
332
- batch: {
333
- enabled: true,
334
- batchSize: 10,
335
- flushIntervalMs: 2000,
336
- maxWaitMs: 5000,
337
- },
338
- timeout: { enabled: true, timeoutMs: 10000 },
339
- offline: { enabled: true },
340
- flush: {
341
- enabled: true,
342
- flushIntervalMs: 2000,
343
- flushOnDestroy: true,
344
- prepareUnloadHooks: true,
345
- },
346
- },
347
340
  integrations: { ...base.modules.integrations, enabled: false },
348
341
  conversion: {
349
342
  enabled: true,
@@ -216,9 +216,46 @@ code { font-size: 0.85em; }
216
216
  debug: true,
217
217
  },
218
218
  transport: {
219
- ...DEFAULT_PIXEL_CONFIG.transport,
220
- apiEndpoint: API_ENDPOINT,
221
- timeoutMs: 10000,
219
+ ...base.transport,
220
+ enabled: true,
221
+ sender: { mode: 'internal', baseUrl: API_ENDPOINT },
222
+ persistence: { enabled: true },
223
+ replay: { enabled: true },
224
+ ordering: { enabled: true },
225
+ coordination: { enabled: true },
226
+ circuitBreaker: {
227
+ enabled: true,
228
+ failureThreshold: 5,
229
+ resetTimeoutMs: 30000,
230
+ halfOpenMaxAttempts: 2,
231
+ },
232
+ backpressure: {
233
+ enabled: true,
234
+ maxQueueSize: 500,
235
+ policy: 'drop_oldest',
236
+ sampleRate: 0.5,
237
+ },
238
+ deadLetter: { enabled: true, maxEntries: 200 },
239
+ compression: { enabled: true, strategy: 'identity' },
240
+ retry: {
241
+ enabled: true,
242
+ maxAttempts: 4,
243
+ baseDelayMs: 500,
244
+ maxDelayMs: 4000,
245
+ multiplier: 2,
246
+ },
247
+ batch: {
248
+ enabled: true,
249
+ batchSize: 10,
250
+ maxWaitMs: 5000,
251
+ },
252
+ timeout: { enabled: true, timeoutMs: 10000 },
253
+ offline: { enabled: true },
254
+ flush: {
255
+ enabled: true,
256
+ flushOnDestroy: true,
257
+ prepareUnloadHooks: true,
258
+ },
222
259
  },
223
260
  identity: { ...base.identity, pixelId: PIXEL_ID },
224
261
  commerce: {
@@ -293,50 +330,6 @@ code { font-size: 0.85em; }
293
330
  },
294
331
  behavior: { ...base.modules.behavior, enabled: false },
295
332
  privacy: { ...base.modules.privacy, enabled: false },
296
- transport: {
297
- enabled: true,
298
- mockSender: { enabled: false },
299
- sender: { mode: 'http' },
300
- persistence: { enabled: true },
301
- replay: { enabled: true },
302
- ordering: { enabled: true },
303
- coordination: { enabled: true },
304
- circuitBreaker: {
305
- enabled: true,
306
- failureThreshold: 5,
307
- resetTimeoutMs: 30000,
308
- halfOpenMaxAttempts: 2,
309
- },
310
- backpressure: {
311
- enabled: true,
312
- maxQueueSize: 500,
313
- policy: 'drop_oldest',
314
- sampleRate: 0.5,
315
- },
316
- deadLetter: { enabled: true, maxEntries: 200 },
317
- compression: { enabled: true, strategy: 'identity' },
318
- retry: {
319
- enabled: true,
320
- maxAttempts: 4,
321
- baseDelayMs: 500,
322
- maxDelayMs: 4000,
323
- multiplier: 2,
324
- },
325
- batch: {
326
- enabled: true,
327
- batchSize: 10,
328
- flushIntervalMs: 2000,
329
- maxWaitMs: 5000,
330
- },
331
- timeout: { enabled: true, timeoutMs: 10000 },
332
- offline: { enabled: true },
333
- flush: {
334
- enabled: true,
335
- flushIntervalMs: 2000,
336
- flushOnDestroy: true,
337
- prepareUnloadHooks: true,
338
- },
339
- },
340
333
  integrations: { ...base.modules.integrations, enabled: false },
341
334
  conversion: {
342
335
  enabled: true,