@beworke/pixel 0.1.0-rc.20 → 0.1.0-rc.22
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-DUetv5py.d.ts → Pixel-BJpooH0D.d.ts} +3 -3
- package/dist/{Pixel-D1fcxReI.d.mts → Pixel-CsTsYkkC.d.mts} +3 -3
- package/dist/{StorageFactory-BVmmJO1a.d.ts → StorageFactory-DlQ8v7VU.d.ts} +1 -1
- package/dist/{StorageFactory-BZTUkX6N.d.mts → StorageFactory-VTd78IuB.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 +5 -5
- package/dist/browser/index.d.ts +5 -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.hwaffiliate-checkout.global.js +4 -0
- package/dist/browser/pixel.hwaffiliate-checkout.global.js.map +1 -0
- package/dist/browser/pixel.hwaffiliate-landing.global.js +4 -0
- package/dist/browser/pixel.hwaffiliate-landing.global.js.map +1 -0
- package/dist/browser/pixel.internal-checkout.global.js +1 -1
- package/dist/browser/pixel.internal-checkout.global.js.map +1 -1
- package/dist/config/index.cjs.js +1 -1
- package/dist/config/index.cjs.js.map +1 -1
- package/dist/config/index.d.mts +4 -4
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.esm.js +1 -1
- package/dist/config/index.esm.js.map +1 -1
- package/dist/examples/html-script/buygoods/example-buygoods-checkout.html +2 -2
- package/dist/examples/html-script/buygoods/ladding.html +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/{pixel-pGxfBdTP.d.ts → pixel-BtLxQyzX.d.ts} +1 -1
- package/dist/{pixel-default-config-BDgBFnrC.d.ts → pixel-default-config-15a2t_Hy.d.ts} +2 -2
- package/dist/{pixel-default-config-Bn7HHahZ.d.mts → pixel-default-config-DKVxt49E.d.mts} +2 -2
- package/dist/{pixel-settings-DCS3urPW.d.ts → pixel-settings-DVSDQbqf.d.ts} +6 -5
- package/dist/{pixel-settings-BtOaRx0V.d.mts → pixel-settings-zrjtQCD6.d.mts} +6 -5
- package/dist/{pixel-CxqUVkoz.d.mts → pixel-zUWhS33D.d.mts} +1 -1
- package/dist/runtime/index.d.mts +4 -4
- package/dist/runtime/index.d.ts +4 -4
- package/dist/services/index.d.mts +4 -4
- package/dist/services/index.d.ts +4 -4
- package/dist/{types-DYb4eijS.d.mts → types-9vJdlxVs.d.mts} +1 -1
- package/dist/{types-D9LVwIMD.d.ts → types-C3AJJEpO.d.ts} +2 -2
- package/dist/{types-DEpGsIPx.d.ts → types-DWm_Aie_.d.ts} +1 -1
- package/dist/{types-CN902l1H.d.mts → types-R2fckqjU.d.mts} +2 -2
- 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 +10 -10
- package/dist/v2/index.d.ts +10 -10
- package/dist/v2/index.esm.js +1 -1
- package/dist/v2/index.esm.js.map +1 -1
- package/docs/public/api/exports.md +3 -3
- package/docs/public/configuration/overview.md +2 -2
- package/docs/public/getting-started/installation.md +3 -3
- package/docs/public/getting-started/quick-start.md +1 -1
- package/docs/public/getting-started/react-nextjs.md +1 -1
- package/docs/public/getting-started/script-tag.md +4 -4
- package/package.json +9 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PixelConfig } from './pixel-
|
|
2
|
-
import { P as PixelSettings } from './pixel-settings-
|
|
1
|
+
import { P as PixelConfig } from './pixel-BtLxQyzX.js';
|
|
2
|
+
import { P as PixelSettings } from './pixel-settings-DVSDQbqf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Resolve input público parcial em `PixelConfig` completo e isolado.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PixelConfig } from './pixel-
|
|
2
|
-
import { P as PixelSettings } from './pixel-settings-
|
|
1
|
+
import { P as PixelConfig } from './pixel-zUWhS33D.mjs';
|
|
2
|
+
import { P as PixelSettings } from './pixel-settings-zrjtQCD6.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Resolve input público parcial em `PixelConfig` completo e isolado.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IdentityConfig, a as AppConfig, T as TransportConfig, b as TransportSenderConfig, c as StorageConfig, d as AttributionConfig, C as CommerceConfig, M as ModulesConfig } from './pixel-
|
|
1
|
+
import { I as IdentityConfig, a as AppConfig, T as TransportConfig, b as TransportSenderConfig, c as StorageConfig, d as AttributionConfig, C as CommerceConfig, M as ModulesConfig } from './pixel-BtLxQyzX.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Partial profundo seguro para input público.
|
|
@@ -21,15 +21,16 @@ type DeepPartial<T> = T extends (...args: never[]) => unknown ? T : T extends re
|
|
|
21
21
|
type PixelTransportSettings = Omit<DeepPartial<TransportConfig>, 'sender'> & {
|
|
22
22
|
sender?: TransportSenderConfig;
|
|
23
23
|
};
|
|
24
|
-
type PixelIdentitySettings =
|
|
24
|
+
type PixelIdentitySettings = Partial<IdentityConfig>;
|
|
25
25
|
/**
|
|
26
|
-
* Contrato público de entrada
|
|
27
|
-
*
|
|
26
|
+
* Contrato público de entrada sem identificadores obrigatórios.
|
|
27
|
+
* `workspaceId`, `pixelId`, `products` e `offers` são enriquecimentos
|
|
28
|
+
* opcionais: sua ausência não impede a criação ou o envio do Pixel.
|
|
28
29
|
*
|
|
29
30
|
* Um `PixelConfig` completo continua atribuível a este tipo.
|
|
30
31
|
*/
|
|
31
32
|
type PixelSettings = {
|
|
32
|
-
identity
|
|
33
|
+
identity?: PixelIdentitySettings;
|
|
33
34
|
app?: DeepPartial<AppConfig>;
|
|
34
35
|
transport?: PixelTransportSettings;
|
|
35
36
|
storage?: DeepPartial<StorageConfig>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IdentityConfig, a as AppConfig, T as TransportConfig, b as TransportSenderConfig, c as StorageConfig, d as AttributionConfig, C as CommerceConfig, M as ModulesConfig } from './pixel-
|
|
1
|
+
import { I as IdentityConfig, a as AppConfig, T as TransportConfig, b as TransportSenderConfig, c as StorageConfig, d as AttributionConfig, C as CommerceConfig, M as ModulesConfig } from './pixel-zUWhS33D.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Partial profundo seguro para input público.
|
|
@@ -21,15 +21,16 @@ type DeepPartial<T> = T extends (...args: never[]) => unknown ? T : T extends re
|
|
|
21
21
|
type PixelTransportSettings = Omit<DeepPartial<TransportConfig>, 'sender'> & {
|
|
22
22
|
sender?: TransportSenderConfig;
|
|
23
23
|
};
|
|
24
|
-
type PixelIdentitySettings =
|
|
24
|
+
type PixelIdentitySettings = Partial<IdentityConfig>;
|
|
25
25
|
/**
|
|
26
|
-
* Contrato público de entrada
|
|
27
|
-
*
|
|
26
|
+
* Contrato público de entrada sem identificadores obrigatórios.
|
|
27
|
+
* `workspaceId`, `pixelId`, `products` e `offers` são enriquecimentos
|
|
28
|
+
* opcionais: sua ausência não impede a criação ou o envio do Pixel.
|
|
28
29
|
*
|
|
29
30
|
* Um `PixelConfig` completo continua atribuível a este tipo.
|
|
30
31
|
*/
|
|
31
32
|
type PixelSettings = {
|
|
32
|
-
identity
|
|
33
|
+
identity?: PixelIdentitySettings;
|
|
33
34
|
app?: DeepPartial<AppConfig>;
|
|
34
35
|
transport?: PixelTransportSettings;
|
|
35
36
|
storage?: DeepPartial<StorageConfig>;
|
package/dist/runtime/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PixelModule } from '../types-
|
|
2
|
-
export { M as ModuleName, a as PixelRuntimeContext } from '../types-
|
|
3
|
-
import { P as PixelConfig } from '../pixel-
|
|
4
|
-
import { P as PixelRuntimeServices } from '../types-
|
|
1
|
+
import { P as PixelModule } from '../types-R2fckqjU.mjs';
|
|
2
|
+
export { M as ModuleName, a as PixelRuntimeContext } from '../types-R2fckqjU.mjs';
|
|
3
|
+
import { P as PixelConfig } from '../pixel-zUWhS33D.mjs';
|
|
4
|
+
import { P as PixelRuntimeServices } from '../types-9vJdlxVs.mjs';
|
|
5
5
|
import '../PixelLogger-B21lEjep.mjs';
|
|
6
6
|
import '../url-context-Ck2LK18V.mjs';
|
|
7
7
|
import '../index-CbYBtMnG.mjs';
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PixelModule } from '../types-
|
|
2
|
-
export { M as ModuleName, a as PixelRuntimeContext } from '../types-
|
|
3
|
-
import { P as PixelConfig } from '../pixel-
|
|
4
|
-
import { P as PixelRuntimeServices } from '../types-
|
|
1
|
+
import { P as PixelModule } from '../types-C3AJJEpO.js';
|
|
2
|
+
export { M as ModuleName, a as PixelRuntimeContext } from '../types-C3AJJEpO.js';
|
|
3
|
+
import { P as PixelConfig } from '../pixel-BtLxQyzX.js';
|
|
4
|
+
import { P as PixelRuntimeServices } from '../types-DWm_Aie_.js';
|
|
5
5
|
import '../PixelLogger-B21lEjep.js';
|
|
6
6
|
import '../url-context-Ck2LK18V.js';
|
|
7
7
|
import '../index-TNfahUI6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as DispatcherService, F as FingerprintService, S as SessionService, a as SessionData, E as EnsureSessionResult, V as VisitorService } from '../types-
|
|
2
|
-
export { e as CommerceEnrichmentEvent, f as CommerceEventType, C as CommerceResolver, g as CommerceResolverInput, h as CommerceResolverOptions, i as CommerceResolverResult, b as CommerceService, c as CommerceState, j as CommerceStateOptions, k as CommerceStateSnapshot, l as ExtractedProductInput, m as OrderCalculationInput, n as OrderCalculationResult, O as OrderCalculator, o as PageViewCommercePayload, P as PixelRuntimeServices, d as ProductCatalog, p as ProductCatalogOptions, q as ProductCatalogSnapshot, R as ResolvedCommerceItem } from '../types-
|
|
1
|
+
import { D as DispatcherService, F as FingerprintService, S as SessionService, a as SessionData, E as EnsureSessionResult, V as VisitorService } from '../types-9vJdlxVs.mjs';
|
|
2
|
+
export { e as CommerceEnrichmentEvent, f as CommerceEventType, C as CommerceResolver, g as CommerceResolverInput, h as CommerceResolverOptions, i as CommerceResolverResult, b as CommerceService, c as CommerceState, j as CommerceStateOptions, k as CommerceStateSnapshot, l as ExtractedProductInput, m as OrderCalculationInput, n as OrderCalculationResult, O as OrderCalculator, o as PageViewCommercePayload, P as PixelRuntimeServices, d as ProductCatalog, p as ProductCatalogOptions, q as ProductCatalogSnapshot, R as ResolvedCommerceItem } from '../types-9vJdlxVs.mjs';
|
|
3
3
|
import { A as AttributionService, S as StorageService, d as AttributionConfig, e as AttributionIdentifiers, B as BrowserMetadataService, f as BrowserMetadata, g as CustomerData, C as CustomerIdentityService, P as PixelEvent, a as StorageAdapter } from '../index-CbYBtMnG.mjs';
|
|
4
4
|
export { l as ATTRIBUTION_STORAGE_KEY, h as BasePixelEvent, D as DEFAULT_ATTRIBUTION_CONFIG, i as PageViewEvent, k as SessionExpiredEvent, j as SessionRenewedEvent, m as cloneCustomerData, n as hasCustomerData } from '../index-CbYBtMnG.mjs';
|
|
5
5
|
import { P as PixelLogger } from '../PixelLogger-B21lEjep.mjs';
|
|
6
|
-
import { P as PixelConfig } from '../pixel-
|
|
7
|
-
export { S as StoragePersistence, c as createStorageAdapter, r as resolveStorageAdapterName } from '../StorageFactory-
|
|
6
|
+
import { P as PixelConfig } from '../pixel-zUWhS33D.mjs';
|
|
7
|
+
export { S as StoragePersistence, c as createStorageAdapter, r as resolveStorageAdapterName } from '../StorageFactory-VTd78IuB.mjs';
|
|
8
8
|
import '../url-context-Ck2LK18V.mjs';
|
|
9
9
|
|
|
10
10
|
declare class AttributionServiceImpl implements AttributionService {
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as DispatcherService, F as FingerprintService, S as SessionService, a as SessionData, E as EnsureSessionResult, V as VisitorService } from '../types-
|
|
2
|
-
export { e as CommerceEnrichmentEvent, f as CommerceEventType, C as CommerceResolver, g as CommerceResolverInput, h as CommerceResolverOptions, i as CommerceResolverResult, b as CommerceService, c as CommerceState, j as CommerceStateOptions, k as CommerceStateSnapshot, l as ExtractedProductInput, m as OrderCalculationInput, n as OrderCalculationResult, O as OrderCalculator, o as PageViewCommercePayload, P as PixelRuntimeServices, d as ProductCatalog, p as ProductCatalogOptions, q as ProductCatalogSnapshot, R as ResolvedCommerceItem } from '../types-
|
|
1
|
+
import { D as DispatcherService, F as FingerprintService, S as SessionService, a as SessionData, E as EnsureSessionResult, V as VisitorService } from '../types-DWm_Aie_.js';
|
|
2
|
+
export { e as CommerceEnrichmentEvent, f as CommerceEventType, C as CommerceResolver, g as CommerceResolverInput, h as CommerceResolverOptions, i as CommerceResolverResult, b as CommerceService, c as CommerceState, j as CommerceStateOptions, k as CommerceStateSnapshot, l as ExtractedProductInput, m as OrderCalculationInput, n as OrderCalculationResult, O as OrderCalculator, o as PageViewCommercePayload, P as PixelRuntimeServices, d as ProductCatalog, p as ProductCatalogOptions, q as ProductCatalogSnapshot, R as ResolvedCommerceItem } from '../types-DWm_Aie_.js';
|
|
3
3
|
import { A as AttributionService, S as StorageService, d as AttributionConfig, e as AttributionIdentifiers, B as BrowserMetadataService, f as BrowserMetadata, g as CustomerData, C as CustomerIdentityService, P as PixelEvent, a as StorageAdapter } from '../index-TNfahUI6.js';
|
|
4
4
|
export { l as ATTRIBUTION_STORAGE_KEY, h as BasePixelEvent, D as DEFAULT_ATTRIBUTION_CONFIG, i as PageViewEvent, k as SessionExpiredEvent, j as SessionRenewedEvent, m as cloneCustomerData, n as hasCustomerData } from '../index-TNfahUI6.js';
|
|
5
5
|
import { P as PixelLogger } from '../PixelLogger-B21lEjep.js';
|
|
6
|
-
import { P as PixelConfig } from '../pixel-
|
|
7
|
-
export { S as StoragePersistence, c as createStorageAdapter, r as resolveStorageAdapterName } from '../StorageFactory-
|
|
6
|
+
import { P as PixelConfig } from '../pixel-BtLxQyzX.js';
|
|
7
|
+
export { S as StoragePersistence, c as createStorageAdapter, r as resolveStorageAdapterName } from '../StorageFactory-DlQ8v7VU.js';
|
|
8
8
|
import '../url-context-Ck2LK18V.js';
|
|
9
9
|
|
|
10
10
|
declare class AttributionServiceImpl implements AttributionService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PixelEvent, b as PixelItem, S as StorageService, B as BrowserMetadataService, c as BaseEventBuilder, A as AttributionService, U as UrlContextService, C as CustomerIdentityService } from './index-CbYBtMnG.mjs';
|
|
2
|
-
import { ap as CommerceProduct, ai as CommerceCartItem, ag as CommerceCalculateValueFrom, am as CommerceEnrichmentSource, C as CommerceConfig, an as CommerceEventEnrichmentConfig, aA as normalizeCalculateValueFrom, ao as CommerceMappingsConfig } from './pixel-
|
|
2
|
+
import { ap as CommerceProduct, ai as CommerceCartItem, ag as CommerceCalculateValueFrom, am as CommerceEnrichmentSource, C as CommerceConfig, an as CommerceEventEnrichmentConfig, aA as normalizeCalculateValueFrom, ao as CommerceMappingsConfig } from './pixel-zUWhS33D.mjs';
|
|
3
3
|
|
|
4
4
|
interface DispatcherService {
|
|
5
5
|
dispatch(event: PixelEvent): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PixelConfig } from './pixel-
|
|
1
|
+
import { P as PixelConfig } from './pixel-BtLxQyzX.js';
|
|
2
2
|
import { P as PixelLogger } from './PixelLogger-B21lEjep.js';
|
|
3
|
-
import { P as PixelRuntimeServices } from './types-
|
|
3
|
+
import { P as PixelRuntimeServices } from './types-DWm_Aie_.js';
|
|
4
4
|
|
|
5
5
|
type PixelRuntimeContext = {
|
|
6
6
|
readonly config: PixelConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PixelEvent, b as PixelItem, S as StorageService, B as BrowserMetadataService, c as BaseEventBuilder, A as AttributionService, U as UrlContextService, C as CustomerIdentityService } from './index-TNfahUI6.js';
|
|
2
|
-
import { ap as CommerceProduct, ai as CommerceCartItem, ag as CommerceCalculateValueFrom, am as CommerceEnrichmentSource, C as CommerceConfig, an as CommerceEventEnrichmentConfig, aA as normalizeCalculateValueFrom, ao as CommerceMappingsConfig } from './pixel-
|
|
2
|
+
import { ap as CommerceProduct, ai as CommerceCartItem, ag as CommerceCalculateValueFrom, am as CommerceEnrichmentSource, C as CommerceConfig, an as CommerceEventEnrichmentConfig, aA as normalizeCalculateValueFrom, ao as CommerceMappingsConfig } from './pixel-BtLxQyzX.js';
|
|
3
3
|
|
|
4
4
|
interface DispatcherService {
|
|
5
5
|
dispatch(event: PixelEvent): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PixelConfig } from './pixel-
|
|
1
|
+
import { P as PixelConfig } from './pixel-zUWhS33D.mjs';
|
|
2
2
|
import { P as PixelLogger } from './PixelLogger-B21lEjep.mjs';
|
|
3
|
-
import { P as PixelRuntimeServices } from './types-
|
|
3
|
+
import { P as PixelRuntimeServices } from './types-9vJdlxVs.mjs';
|
|
4
4
|
|
|
5
5
|
type PixelRuntimeContext = {
|
|
6
6
|
readonly config: PixelConfig;
|