@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.
- package/CHANGELOG.md +20 -0
- package/README.md +71 -56
- package/RELEASE_CANDIDATE.md +28 -62
- package/dist/Pixel-CCgGk43j.d.ts +797 -0
- package/dist/Pixel-CqbgC_72.d.mts +797 -0
- package/dist/{StorageFactory-DeMaZ8wk.d.ts → StorageFactory-BRBsnnH7.d.ts} +1 -1
- package/dist/{StorageFactory-Cq29vF32.d.mts → StorageFactory-Dp19Wecr.d.mts} +1 -1
- package/dist/browser/index.cjs.js +3 -0
- package/dist/browser/index.cjs.js.map +1 -0
- package/dist/browser/index.d.mts +55 -0
- package/dist/browser/index.d.ts +55 -0
- package/dist/browser/index.esm.js +3 -0
- package/dist/browser/index.esm.js.map +1 -0
- package/dist/browser/pixel.global.js +4 -0
- package/dist/browser/pixel.global.js.map +1 -0
- package/dist/config/index.cjs.js +1 -1
- package/dist/config/index.cjs.js.map +1 -1
- package/dist/config/index.d.mts +15 -5
- package/dist/config/index.d.ts +15 -5
- package/dist/config/index.esm.js +1 -1
- package/dist/config/index.esm.js.map +1 -1
- package/dist/examples/html-script/RELEASE_CANDIDATE.md +6 -8
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-autocomplete.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-disabled.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-fields.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-data-track.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-dedupe.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-manual.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-rules-card.html +40 -47
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-security.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-attribute.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-auto.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-click.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-dedupe.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-link.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-manual.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-order-bump.html +40 -47
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-text.html +40 -47
- package/dist/examples/html-script/behavior/example-behavior-engagement.html +4 -4
- package/dist/examples/html-script/behavior/example-behavior-heartbeat.html +4 -4
- package/dist/examples/html-script/behavior/example-behavior-runtime-intelligence.html +4 -4
- package/dist/examples/html-script/behavior/example-behavior-viewport.html +4 -4
- package/dist/examples/html-script/buygoods/example-buygoods-checkout.html +83 -0
- package/dist/examples/html-script/example-checkout-commerce.html +31 -30
- package/dist/examples/html-script/example-conversion.html +41 -48
- package/dist/examples/html-script/example-global-factory-classic.html +45 -0
- package/dist/examples/html-script/example-global-factory.html +40 -0
- package/dist/examples/html-script/example-integration.html +39 -45
- package/dist/examples/html-script/example-landing-commerce.html +3 -8
- package/dist/examples/html-script/example-runtime-diagnostics.html +4 -4
- package/dist/examples/html-script/example-transport.html +59 -57
- package/dist/examples/html-script/full-funnel/checkout.html +3 -1
- package/dist/examples/html-script/full-funnel/downsell.html +3 -1
- package/dist/examples/html-script/full-funnel/landing.html +3 -1
- package/dist/examples/html-script/full-funnel/thank-you.html +3 -1
- package/dist/examples/html-script/full-funnel/upsell.html +3 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-attribute.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-auto.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-click.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-manual.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-snapshot.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-submit.html +40 -47
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-text.html +40 -47
- package/dist/examples/html-script/lead/example-lead-trigger-attribute.html +40 -47
- package/dist/examples/html-script/lead/example-lead-trigger-auto.html +40 -47
- package/dist/examples/html-script/lead/example-lead-trigger-click.html +40 -47
- package/dist/examples/html-script/release-candidate.html +31 -30
- package/dist/examples/html-script/remove-from-cart/README.md +3 -3
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-attribute.html +40 -47
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-css.html +40 -47
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-dedupe.html +47 -54
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-manual.html +40 -47
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-multi.html +40 -47
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-state.html +40 -47
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-text.html +40 -47
- package/dist/examples/html-script/search/example-search-attribute.html +40 -47
- package/dist/examples/html-script/search/example-search-button-sync.html +40 -47
- package/dist/examples/html-script/search/example-search-dedupe.html +40 -47
- package/dist/examples/html-script/search/example-search-input.html +40 -47
- package/dist/examples/html-script/search/example-search-manual.html +40 -47
- package/dist/examples/html-script/search/example-search-submit.html +40 -47
- package/dist/examples/html-script/search/example-search-text.html +40 -47
- package/dist/examples/html-script/url-context/example-url-context-allowed-domains.html +4 -4
- package/dist/examples/html-script/url-context/example-url-context-landing.html +4 -4
- package/dist/examples/html-script/url-context/example-url-context-upsell.html +4 -4
- package/dist/examples/html-script/url-context/example-url-context.html +4 -4
- package/dist/examples/html-script/view-content/example-view-content-attribute.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-css.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-dedupe.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-empty.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-manual.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-product-card.html +40 -47
- package/dist/examples/html-script/view-content/example-view-content-text.html +40 -47
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/{pixel-DMwpppf_.d.mts → pixel-C93c-0M2.d.mts} +109 -97
- package/dist/{pixel-2uL4LSyC.d.ts → pixel-DVy4rzj8.d.ts} +109 -97
- package/dist/pixel-default-config-BkAjriVH.d.mts +21 -0
- package/dist/pixel-default-config-Co69vDP3.d.ts +21 -0
- package/dist/pixel-settings-BhfJqA92.d.mts +40 -0
- package/dist/pixel-settings-C0qPFTii.d.ts +40 -0
- package/dist/runtime/index.cjs.js +1 -1
- package/dist/runtime/index.cjs.js.map +1 -1
- package/dist/runtime/index.d.mts +4 -4
- package/dist/runtime/index.d.ts +4 -4
- package/dist/runtime/index.esm.js +1 -1
- package/dist/runtime/index.esm.js.map +1 -1
- package/dist/services/index.cjs.js +1 -1
- package/dist/services/index.cjs.js.map +1 -1
- package/dist/services/index.d.mts +4 -4
- package/dist/services/index.d.ts +4 -4
- package/dist/services/index.esm.js +1 -1
- package/dist/services/index.esm.js.map +1 -1
- package/dist/{types-BqUEoZo0.d.ts → types-B2aUNHb3.d.ts} +2 -2
- package/dist/{types-6HF3UlsL.d.mts → types-C0J9KUQg.d.mts} +2 -2
- package/dist/{types-CgrabttM.d.mts → types-C2dsBog1.d.mts} +1 -1
- package/dist/{types-fFcQ1apy.d.ts → types-DcaBYgVI.d.ts} +1 -1
- package/dist/v2/global.global.js +1 -1
- package/dist/v2/global.global.js.map +1 -1
- package/dist/v2/index.cjs.js +1 -1
- package/dist/v2/index.cjs.js.map +1 -1
- package/dist/v2/index.d.mts +21 -787
- package/dist/v2/index.d.ts +21 -787
- package/dist/v2/index.esm.js +1 -1
- package/dist/v2/index.esm.js.map +1 -1
- package/docs/public/README.md +7 -4
- package/docs/public/api/exports.md +12 -8
- package/docs/public/api/pixel.md +27 -6
- package/docs/public/configuration/commerce.md +2 -2
- package/docs/public/configuration/modules.md +11 -14
- package/docs/public/configuration/overview.md +41 -25
- package/docs/public/configuration/transport.md +127 -0
- package/docs/public/events/catalog.md +3 -1
- package/docs/public/getting-started/installation.md +14 -12
- package/docs/public/getting-started/quick-start.md +95 -30
- package/docs/public/getting-started/react-nextjs.md +57 -34
- package/docs/public/getting-started/script-tag.md +55 -32
- package/docs/public/guides/funnel-checkout.md +1 -1
- package/docs/public/guides/funnel-landing.md +9 -7
- package/docs/public/limitations.md +5 -4
- package/docs/public/privacy/limitations.md +6 -6
- package/docs/public/release-candidate/validation.md +4 -4
- package/docs/public/troubleshooting.md +7 -6
- package/package.json +8 -3
- package/dist/pixel-default-config-BDPUVHse.d.ts +0 -5
- 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
|
-
...
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
...
|
|
220
|
-
|
|
221
|
-
|
|
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,
|