@beworke/pixel 0.1.0-rc.6 → 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 +47 -75
- package/dist/Pixel-CCgGk43j.d.ts +797 -0
- package/dist/Pixel-CqbgC_72.d.mts +797 -0
- package/dist/{StorageFactory-tjfzk57c.d.ts → StorageFactory-BRBsnnH7.d.ts} +2 -2
- package/dist/{StorageFactory-CPghDPBj.d.mts → StorageFactory-Dp19Wecr.d.mts} +2 -2
- 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 +16 -6
- package/dist/config/index.d.ts +16 -6
- package/dist/config/index.esm.js +1 -1
- package/dist/config/index.esm.js.map +1 -1
- package/dist/events/index.cjs.js.map +1 -1
- package/dist/events/index.d.mts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.esm.js.map +1 -1
- package/dist/examples/html-script/README.md +20 -76
- package/dist/examples/html-script/RELEASE_CANDIDATE.md +20 -21
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-autocomplete.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-disabled.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-fields.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-data-track.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-dedupe.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-manual.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-rules-card.html +41 -48
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-security.html +41 -48
- package/dist/examples/html-script/add-to-cart/README.md +6 -3
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-attribute.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-auto.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-click.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-dedupe.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-link.html +590 -0
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-manual.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-order-bump.html +43 -49
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-text.html +43 -49
- package/dist/examples/html-script/behavior/example-behavior-engagement.html +5 -5
- package/dist/examples/html-script/behavior/example-behavior-heartbeat.html +5 -5
- package/dist/examples/html-script/behavior/example-behavior-runtime-intelligence.html +5 -5
- package/dist/examples/html-script/behavior/example-behavior-viewport.html +5 -5
- package/dist/examples/html-script/behavior/example-behavior.html +1 -1
- package/dist/examples/html-script/buygoods/example-buygoods-checkout.html +83 -0
- package/dist/examples/html-script/example-basic.html +1 -1
- package/dist/examples/html-script/example-checkout-commerce.html +32 -31
- package/dist/examples/html-script/example-conversion.html +42 -49
- 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 +40 -46
- package/dist/examples/html-script/example-landing-commerce.html +45 -9
- package/dist/examples/html-script/example-runtime-diagnostics.html +5 -5
- package/dist/examples/html-script/example-transport.html +65 -58
- package/dist/examples/html-script/full-funnel/README.md +1 -1
- package/dist/examples/html-script/full-funnel/checkout.html +4 -2
- package/dist/examples/html-script/full-funnel/downsell.html +4 -2
- package/dist/examples/html-script/full-funnel/landing.html +57 -3
- package/dist/examples/html-script/full-funnel/thank-you.html +4 -2
- package/dist/examples/html-script/full-funnel/upsell.html +4 -2
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-attribute.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-auto.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-click.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-manual.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-snapshot.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-submit.html +41 -48
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-text.html +41 -48
- package/dist/examples/html-script/lead/example-lead-trigger-attribute.html +41 -48
- package/dist/examples/html-script/lead/example-lead-trigger-auto.html +41 -48
- package/dist/examples/html-script/lead/example-lead-trigger-click.html +41 -48
- package/dist/examples/html-script/release-candidate.html +32 -31
- 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 +41 -48
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-css.html +41 -48
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-dedupe.html +48 -55
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-manual.html +41 -48
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-multi.html +41 -48
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-state.html +41 -48
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-text.html +41 -48
- package/dist/examples/html-script/search/example-search-attribute.html +41 -48
- package/dist/examples/html-script/search/example-search-button-sync.html +41 -48
- package/dist/examples/html-script/search/example-search-dedupe.html +41 -48
- package/dist/examples/html-script/search/example-search-input.html +41 -48
- package/dist/examples/html-script/search/example-search-manual.html +41 -48
- package/dist/examples/html-script/search/example-search-submit.html +41 -48
- package/dist/examples/html-script/search/example-search-text.html +41 -48
- package/dist/examples/html-script/url-context/example-url-context-allowed-domains.html +38 -9
- package/dist/examples/html-script/url-context/example-url-context-landing.html +53 -13
- package/dist/examples/html-script/url-context/example-url-context-upsell.html +48 -10
- package/dist/examples/html-script/url-context/example-url-context.html +55 -21
- package/dist/examples/html-script/view-content/example-view-content-attribute.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-css.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-dedupe.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-empty.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-manual.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-product-card.html +41 -48
- package/dist/examples/html-script/view-content/example-view-content-text.html +41 -48
- package/dist/examples/release-candidate/README.md +2 -1
- package/dist/examples/v2/README.md +15 -15
- package/dist/{index-CQAyT5Od.d.ts → index-B8u_3PGG.d.ts} +21 -2
- package/dist/{index-JlKPz4pp.d.mts → index-BxT2d-TK.d.mts} +21 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +21 -782
- package/dist/index.d.ts +21 -782
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/{pixel-CKc4OQUx.d.mts → pixel-C93c-0M2.d.mts} +234 -101
- package/dist/{pixel-BxZZx8l5.d.ts → pixel-DVy4rzj8.d.ts} +234 -101
- 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 +6 -6
- package/dist/runtime/index.d.ts +6 -6
- 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 +7 -7
- package/dist/services/index.d.ts +7 -7
- package/dist/services/index.esm.js +1 -1
- package/dist/services/index.esm.js.map +1 -1
- package/dist/{types-C75pQP31.d.ts → types-B2aUNHb3.d.ts} +2 -2
- package/dist/{types-BP8dz1gP.d.mts → types-C0J9KUQg.d.mts} +2 -2
- package/dist/{types-DMhzHSVC.d.mts → types-C2dsBog1.d.mts} +2 -2
- package/dist/{types-D_SsCur9.d.ts → types-DcaBYgVI.d.ts} +2 -2
- package/dist/{url-context-BjAsQoVl.d.mts → url-context-Ck2LK18V.d.mts} +4 -2
- package/dist/{url-context-BjAsQoVl.d.ts → url-context-Ck2LK18V.d.ts} +4 -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 +26 -8
- package/dist/v2/index.d.ts +26 -8
- package/dist/v2/index.esm.js +1 -1
- package/dist/v2/index.esm.js.map +1 -1
- package/docs/public/README.md +20 -15
- package/docs/public/api/exports.md +12 -8
- package/docs/public/api/pixel.md +28 -7
- package/docs/public/configuration/commerce.md +3 -3
- 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 +20 -15
- 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 +2 -2
- package/docs/public/guides/funnel-full.md +3 -3
- package/docs/public/guides/funnel-landing.md +10 -8
- package/docs/public/limitations.md +6 -5
- package/docs/public/privacy/limitations.md +6 -6
- package/docs/public/release-candidate/validation.md +24 -19
- package/docs/public/troubleshooting.md +7 -6
- package/package.json +15 -14
- package/dist/pixel-default-config-CJl-eypl.d.mts +0 -5
- package/dist/pixel-default-config-aAOujzwp.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beworke/pixel",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.8",
|
|
4
4
|
"description": "Pixel v2 — SDK de analytics e conversão para API própria e destinos browser",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
"import": "./dist/index.esm.js",
|
|
12
12
|
"require": "./dist/index.cjs.js"
|
|
13
13
|
},
|
|
14
|
+
"./browser": {
|
|
15
|
+
"types": "./dist/browser/index.d.ts",
|
|
16
|
+
"import": "./dist/browser/index.esm.js",
|
|
17
|
+
"require": "./dist/browser/index.cjs.js"
|
|
18
|
+
},
|
|
14
19
|
"./global": {
|
|
15
|
-
"default": "./dist/
|
|
20
|
+
"default": "./dist/browser/pixel.global.js"
|
|
16
21
|
},
|
|
17
22
|
"./config": {
|
|
18
23
|
"types": "./dist/config/index.d.ts",
|
|
@@ -54,15 +59,14 @@
|
|
|
54
59
|
],
|
|
55
60
|
"scripts": {
|
|
56
61
|
"dev": "tsup --watch",
|
|
57
|
-
"build": "tsup",
|
|
62
|
+
"build": "tsup && node ../../scripts/copy-packaged-examples.mjs",
|
|
58
63
|
"test": "vitest run",
|
|
59
64
|
"test:watch": "vitest",
|
|
60
|
-
"test:smoke:real": "node
|
|
61
|
-
"validate:rc-package": "node
|
|
62
|
-
"validate:public-docs": "node
|
|
63
|
-
"validate:public-examples": "node
|
|
64
|
-
"publish:rc": "
|
|
65
|
-
"validate:15b": "node ./scripts/validate-15b.mjs",
|
|
65
|
+
"test:smoke:real": "node ../../scripts/run-smoke-real.mjs",
|
|
66
|
+
"validate:rc-package": "node ../../scripts/validate-rc-package.mjs",
|
|
67
|
+
"validate:public-docs": "node ../../scripts/validate-public-docs.mjs",
|
|
68
|
+
"validate:public-examples": "node ../../scripts/validate-public-examples.mjs",
|
|
69
|
+
"publish:rc": "pnpm publish --access public --tag rc --no-git-checks && node -e \"require('child_process').execSync('npm dist-tag add @beworke/pixel@'+require('./package.json').version+' latest',{stdio:'inherit'})\"",
|
|
66
70
|
"test:integration": "vitest run src/integration",
|
|
67
71
|
"test:transport": "vitest run src/transport",
|
|
68
72
|
"test:full-funnel": "vitest run src/modules/core/url-context src/integration/stage-15b-module-matrix.test.ts",
|
|
@@ -72,9 +76,7 @@
|
|
|
72
76
|
"format": "prettier --write src/**/*.{ts,tsx,js,jsx,json,css,md}",
|
|
73
77
|
"type-check": "tsc --noEmit",
|
|
74
78
|
"prepublishOnly": "pnpm build",
|
|
75
|
-
"
|
|
76
|
-
"version": "changeset version",
|
|
77
|
-
"release": "pnpm build && changeset publish"
|
|
79
|
+
"clean": "rimraf dist coverage"
|
|
78
80
|
},
|
|
79
81
|
"keywords": [
|
|
80
82
|
"pixel",
|
|
@@ -92,9 +94,7 @@
|
|
|
92
94
|
"publishConfig": {
|
|
93
95
|
"access": "public"
|
|
94
96
|
},
|
|
95
|
-
"packageManager": "pnpm@10.7.1",
|
|
96
97
|
"devDependencies": {
|
|
97
|
-
"@changesets/cli": "^2.29.7",
|
|
98
98
|
"@types/node": "^20.0.0",
|
|
99
99
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
100
100
|
"@typescript-eslint/parser": "^6.0.0",
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
"eslint-plugin-prettier": "^5.0.0",
|
|
104
104
|
"happy-dom": "^20.6.3",
|
|
105
105
|
"prettier": "^3.0.0",
|
|
106
|
+
"rimraf": "^6.0.1",
|
|
106
107
|
"tsup": "^8.5.0",
|
|
107
108
|
"typescript": "^5.0.0",
|
|
108
109
|
"vitest": "^4.0.18"
|