@buildinams/tracking 0.0.0-stage → 0.2.0

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 (51) hide show
  1. package/README.md +267 -2
  2. package/dist/chunk-KLN5K6PR.js +6 -0
  3. package/dist/chunk-KLN5K6PR.js.map +1 -0
  4. package/dist/compatibility-Dc1JmTeG.d.ts +35 -0
  5. package/dist/consent/cookiebot/index.d.ts +5 -0
  6. package/dist/consent/cookiebot/index.js +27 -0
  7. package/dist/consent/cookiebot/index.js.map +1 -0
  8. package/dist/consent/index.d.ts +18 -0
  9. package/dist/consent/index.js +3 -0
  10. package/dist/consent/index.js.map +1 -0
  11. package/dist/consent/onetrust/index.d.ts +9 -0
  12. package/dist/consent/onetrust/index.js +35 -0
  13. package/dist/consent/onetrust/index.js.map +1 -0
  14. package/dist/consent/shopify/index.d.ts +13 -0
  15. package/dist/consent/shopify/index.js +93 -0
  16. package/dist/consent/shopify/index.js.map +1 -0
  17. package/dist/destinations/ga4/index.d.ts +16 -0
  18. package/dist/destinations/ga4/index.js +15 -0
  19. package/dist/destinations/ga4/index.js.map +1 -0
  20. package/dist/destinations/index.d.ts +9 -0
  21. package/dist/destinations/index.js +17 -0
  22. package/dist/destinations/index.js.map +1 -0
  23. package/dist/destinations/shopify/index.d.ts +12 -0
  24. package/dist/destinations/shopify/index.js +18 -0
  25. package/dist/destinations/shopify/index.js.map +1 -0
  26. package/dist/events/index.d.ts +16 -0
  27. package/dist/events/index.js +77 -0
  28. package/dist/events/index.js.map +1 -0
  29. package/dist/flow/index.d.ts +16 -0
  30. package/dist/flow/index.js +82 -0
  31. package/dist/flow/index.js.map +1 -0
  32. package/dist/page/index.d.ts +27 -0
  33. package/dist/page/index.js +56 -0
  34. package/dist/page/index.js.map +1 -0
  35. package/dist/sources/cart/index.d.ts +27 -0
  36. package/dist/sources/cart/index.js +38 -0
  37. package/dist/sources/cart/index.js.map +1 -0
  38. package/dist/sources/cart/shopify/index.d.ts +28 -0
  39. package/dist/sources/cart/shopify/index.js +16 -0
  40. package/dist/sources/cart/shopify/index.js.map +1 -0
  41. package/dist/sources/dom/index.d.ts +202 -0
  42. package/dist/sources/dom/index.js +597 -0
  43. package/dist/sources/dom/index.js.map +1 -0
  44. package/dist/sources/index.d.ts +6 -0
  45. package/dist/sources/index.js +3 -0
  46. package/dist/sources/index.js.map +1 -0
  47. package/dist/types-BfJsv8AV.d.ts +30 -0
  48. package/dist/types-DfPz7mBl.d.ts +49 -0
  49. package/docs/decisions/001-vendor-neutral-event-pipeline.md +33 -0
  50. package/docs/events.md +187 -0
  51. package/package.json +141 -5
package/package.json CHANGED
@@ -1,6 +1,142 @@
1
1
  {
2
- "name": "@buildinams/tracking",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@buildinams/tracking",
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "author": "Build in Amsterdam <development@buildinamsterdam.com> (https://www.buildinamsterdam.com/)",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/buildinamsterdam/bia-shared.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/buildinamsterdam/bia-shared/issues"
13
+ },
14
+ "publishConfig": {
15
+ "registry": "https://registry.npmjs.org",
16
+ "access": "public"
17
+ },
18
+ "scripts": {
19
+ "build": "tsup",
20
+ "dev": "tsup --watch",
21
+ "lint": "eslint .",
22
+ "typecheck": "tsc --noEmit",
23
+ "test": "vitest watch",
24
+ "test:ci": "vitest run",
25
+ "lint:fix": "eslint . --fix"
26
+ },
27
+ "exports": {
28
+ "./events": {
29
+ "types": "./dist/events/index.d.ts",
30
+ "default": "./dist/events/index.js"
31
+ },
32
+ "./page": {
33
+ "types": "./dist/page/index.d.ts",
34
+ "default": "./dist/page/index.js"
35
+ },
36
+ "./flow": {
37
+ "types": "./dist/flow/index.d.ts",
38
+ "default": "./dist/flow/index.js"
39
+ },
40
+ "./sources": {
41
+ "types": "./dist/sources/index.d.ts",
42
+ "default": "./dist/sources/index.js"
43
+ },
44
+ "./sources/dom": {
45
+ "types": "./dist/sources/dom/index.d.ts",
46
+ "default": "./dist/sources/dom/index.js"
47
+ },
48
+ "./sources/cart": {
49
+ "types": "./dist/sources/cart/index.d.ts",
50
+ "default": "./dist/sources/cart/index.js"
51
+ },
52
+ "./sources/cart/shopify": {
53
+ "types": "./dist/sources/cart/shopify/index.d.ts",
54
+ "default": "./dist/sources/cart/shopify/index.js"
55
+ },
56
+ "./consent": {
57
+ "types": "./dist/consent/index.d.ts",
58
+ "default": "./dist/consent/index.js"
59
+ },
60
+ "./consent/cookiebot": {
61
+ "types": "./dist/consent/cookiebot/index.d.ts",
62
+ "default": "./dist/consent/cookiebot/index.js"
63
+ },
64
+ "./consent/onetrust": {
65
+ "types": "./dist/consent/onetrust/index.d.ts",
66
+ "default": "./dist/consent/onetrust/index.js"
67
+ },
68
+ "./consent/shopify": {
69
+ "types": "./dist/consent/shopify/index.d.ts",
70
+ "default": "./dist/consent/shopify/index.js"
71
+ },
72
+ "./destinations": {
73
+ "types": "./dist/destinations/index.d.ts",
74
+ "default": "./dist/destinations/index.js"
75
+ },
76
+ "./destinations/ga4": {
77
+ "types": "./dist/destinations/ga4/index.d.ts",
78
+ "default": "./dist/destinations/ga4/index.js"
79
+ },
80
+ "./destinations/shopify": {
81
+ "types": "./dist/destinations/shopify/index.d.ts",
82
+ "default": "./dist/destinations/shopify/index.js"
83
+ }
84
+ },
85
+ "typesVersions": {
86
+ "*": {
87
+ "./events": [
88
+ "./dist/events/index.d.ts"
89
+ ],
90
+ "./page": [
91
+ "./dist/page/index.d.ts"
92
+ ],
93
+ "./flow": [
94
+ "./dist/flow/index.d.ts"
95
+ ],
96
+ "./sources": [
97
+ "./dist/sources/index.d.ts"
98
+ ],
99
+ "./sources/dom": [
100
+ "./dist/sources/dom/index.d.ts"
101
+ ],
102
+ "./sources/cart": [
103
+ "./dist/sources/cart/index.d.ts"
104
+ ],
105
+ "./sources/cart/shopify": [
106
+ "./dist/sources/cart/shopify/index.d.ts"
107
+ ],
108
+ "./consent": [
109
+ "./dist/consent/index.d.ts"
110
+ ],
111
+ "./consent/cookiebot": [
112
+ "./dist/consent/cookiebot/index.d.ts"
113
+ ],
114
+ "./consent/onetrust": [
115
+ "./dist/consent/onetrust/index.d.ts"
116
+ ],
117
+ "./consent/shopify": [
118
+ "./dist/consent/shopify/index.d.ts"
119
+ ],
120
+ "./destinations": [
121
+ "./dist/destinations/index.d.ts"
122
+ ],
123
+ "./destinations/ga4": [
124
+ "./dist/destinations/ga4/index.d.ts"
125
+ ],
126
+ "./destinations/shopify": [
127
+ "./dist/destinations/shopify/index.d.ts"
128
+ ]
129
+ }
130
+ },
131
+ "files": [
132
+ "dist",
133
+ "docs"
134
+ ],
135
+ "devDependencies": {
136
+ "@buildinams/lint": "^0.4.0",
137
+ "jsdom": "^27.4.0",
138
+ "tsup": "^8.0.1",
139
+ "typescript": "^5.4.5",
140
+ "vitest": "^5.1.0"
141
+ }
142
+ }