@beworke/pixel 0.1.0-rc.10 → 0.1.0-rc.12
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 +16 -0
- package/dist/{Pixel-BoUGqCbP.d.mts → Pixel-D4Typ_-F.d.mts} +3 -3
- package/dist/{Pixel-BnN86r4X.d.ts → Pixel-nqpXzWsc.d.ts} +3 -3
- package/dist/{StorageFactory-BfCArzMM.d.ts → StorageFactory-BEZY4jKp.d.ts} +1 -1
- package/dist/{StorageFactory-C0prtNR7.d.mts → StorageFactory-qycJqKIl.d.mts} +1 -1
- package/dist/browser/index.cjs.js +1 -1
- package/dist/browser/index.cjs.js.map +1 -1
- package/dist/browser/index.d.mts +11 -5
- package/dist/browser/index.d.ts +11 -5
- package/dist/browser/index.esm.js +1 -1
- package/dist/browser/index.esm.js.map +1 -1
- package/dist/browser/pixel.buygoods-checkout.global.js +1 -1
- package/dist/browser/pixel.buygoods-checkout.global.js.map +1 -1
- package/dist/browser/pixel.buygoods-landing.global.js +1 -1
- package/dist/browser/pixel.buygoods-landing.global.js.map +1 -1
- package/dist/browser/pixel.global.js +1 -1
- package/dist/browser/pixel.global.js.map +1 -1
- package/dist/browser/pixel.internal-checkout.global.js +4 -0
- package/dist/browser/pixel.internal-checkout.global.js.map +1 -0
- package/dist/events/index.cjs.js +1 -1
- package/dist/events/index.cjs.js.map +1 -1
- package/dist/events/index.d.mts +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.esm.js +1 -1
- package/dist/events/index.esm.js.map +1 -1
- package/dist/examples/html-script/internal-checkout/example-cardioclear-checkout.html +35 -81
- package/dist/examples/html-script/internal-checkout/example-slimsoda-checkout.html +30 -80
- package/dist/{index-BxT2d-TK.d.mts → index-CKZeennc.d.mts} +36 -2
- package/dist/{index-B8u_3PGG.d.ts → index-YlvQBRzR.d.ts} +36 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/runtime/index.cjs.js +1 -1
- package/dist/runtime/index.cjs.js.map +1 -1
- package/dist/runtime/index.d.mts +6 -4
- package/dist/runtime/index.d.ts +6 -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 +45 -6
- package/dist/services/index.d.ts +45 -6
- package/dist/services/index.esm.js +1 -1
- package/dist/services/index.esm.js.map +1 -1
- package/dist/{types-B-Nzagpk.d.mts → types-D57M3IEo.d.mts} +1 -1
- package/dist/{types-D0KVsgzs.d.mts → types-DcBG30Tw.d.mts} +2 -1
- package/dist/{types-D3kJ9bfT.d.ts → types-Dpe5sArp.d.ts} +2 -1
- package/dist/{types-Dfi9C49l.d.ts → types-cVrMwURS.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 +7 -7
- package/dist/v2/index.d.ts +7 -7
- package/dist/v2/index.esm.js +1 -1
- package/dist/v2/index.esm.js.map +1 -1
- package/docs/public/api/exports.md +2 -1
- package/docs/public/getting-started/installation.md +1 -0
- package/docs/public/getting-started/script-tag.md +8 -0
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @beworke/pixel
|
|
2
2
|
|
|
3
|
+
## 0.1.0-rc.12 — customer automático em todos os eventos
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `CustomerIdentityService` + observer de form (`input`/`change`) extrai todos os campos disponíveis de customer
|
|
8
|
+
- Todo evento (PAGE_VIEW, ADD_TO_CART, ADD_PAYMENT_INFO, HEARTBEAT, …) recebe `customer` no payload HTTP e em `data.customer` quando houver dados
|
|
9
|
+
- Extrator cobre email, phone, name, firstName, lastName, address, address2, city, state, postalCode, country (inclui `emailaddress` da BuyGoods)
|
|
10
|
+
|
|
11
|
+
## 0.1.0-rc.11 — preset checkout interno
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Bundle drop-in `dist/browser/pixel.internal-checkout.global.js` (`@beworke/pixel/internal-checkout`)
|
|
16
|
+
- Config interna (PAGE_VIEW, ATC email+phone, ADD_PAYMENT_INFO em `[data-checkout]`, HEARTBEAT, `hcid`)
|
|
17
|
+
- Único input do integrador: `?pixelId=pix_…` no `src` do script
|
|
18
|
+
|
|
3
19
|
## 0.1.0-rc.10 — presets BuyGoods (landing + checkout)
|
|
4
20
|
|
|
5
21
|
### Added
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PixelEvent,
|
|
1
|
+
import { P as PixelEvent, o as PurchaseData, L as LeadData, p as AddToCartData, R as RemoveFromCartData, I as InitiateCheckoutData, q as AddPaymentInfoData, V as ViewContentData, r as SearchData, e as AttributionIdentifiers } from './index-CKZeennc.mjs';
|
|
2
2
|
import { P as PixelLogger } from './PixelLogger-B21lEjep.mjs';
|
|
3
3
|
import { P as PixelSettings } from './pixel-settings-DGxl0MVm.mjs';
|
|
4
|
-
import { P as PixelRuntimeServices } from './types-
|
|
5
|
-
import { P as PixelModule, a as PixelRuntimeContext } from './types-
|
|
4
|
+
import { P as PixelRuntimeServices } from './types-DcBG30Tw.mjs';
|
|
5
|
+
import { P as PixelModule, a as PixelRuntimeContext } from './types-D57M3IEo.mjs';
|
|
6
6
|
|
|
7
7
|
type DestinationResultStatus = 'success' | 'failed' | 'ignored' | 'retry' | 'skipped';
|
|
8
8
|
type DestinationResult = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PixelEvent,
|
|
1
|
+
import { P as PixelEvent, o as PurchaseData, L as LeadData, p as AddToCartData, R as RemoveFromCartData, I as InitiateCheckoutData, q as AddPaymentInfoData, V as ViewContentData, r as SearchData, e as AttributionIdentifiers } from './index-YlvQBRzR.js';
|
|
2
2
|
import { P as PixelLogger } from './PixelLogger-B21lEjep.js';
|
|
3
3
|
import { P as PixelSettings } from './pixel-settings-D-t9zQb4.js';
|
|
4
|
-
import { P as PixelRuntimeServices } from './types-
|
|
5
|
-
import { P as PixelModule, a as PixelRuntimeContext } from './types-
|
|
4
|
+
import { P as PixelRuntimeServices } from './types-Dpe5sArp.js';
|
|
5
|
+
import { P as PixelModule, a as PixelRuntimeContext } from './types-cVrMwURS.js';
|
|
6
6
|
|
|
7
7
|
type DestinationResultStatus = 'success' | 'failed' | 'ignored' | 'retry' | 'skipped';
|
|
8
8
|
type DestinationResult = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-DNGbAN5C.js';
|
|
2
|
-
import { a as StorageAdapter } from './index-
|
|
2
|
+
import { a as StorageAdapter } from './index-YlvQBRzR.js';
|
|
3
3
|
|
|
4
4
|
type StoragePersistence = VisitorStoragePersistence | SessionStoragePersistence | AttributionStoragePersistence | QueueStoragePersistence;
|
|
5
5
|
declare function createStorageAdapter(persistence?: StoragePersistence): StorageAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { V as VisitorStoragePersistence, S as SessionStoragePersistence, A as AttributionStoragePersistence, Q as QueueStoragePersistence } from './pixel-_BSDpx4M.mjs';
|
|
2
|
-
import { a as StorageAdapter } from './index-
|
|
2
|
+
import { a as StorageAdapter } from './index-CKZeennc.mjs';
|
|
3
3
|
|
|
4
4
|
type StoragePersistence = VisitorStoragePersistence | SessionStoragePersistence | AttributionStoragePersistence | QueueStoragePersistence;
|
|
5
5
|
declare function createStorageAdapter(persistence?: StoragePersistence): StorageAdapter;
|