@graphcommerce/google-datalayer 8.0.6-canary.4 → 8.1.0-canary.5
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 +2 -0
- package/api/googleEventNames.ts +39 -0
- package/api/sendEvent.ts +1 -39
- package/index.ts +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const googleEventNames = [
|
|
2
|
+
'add_payment_info',
|
|
3
|
+
'add_shipping_info',
|
|
4
|
+
'add_to_cart',
|
|
5
|
+
'add_to_wishlist',
|
|
6
|
+
'begin_checkout',
|
|
7
|
+
'checkout_progress',
|
|
8
|
+
'earn_virtual_currency',
|
|
9
|
+
'exception',
|
|
10
|
+
'generate_lead',
|
|
11
|
+
'join_group',
|
|
12
|
+
'level_end',
|
|
13
|
+
'level_start',
|
|
14
|
+
'level_up',
|
|
15
|
+
'login',
|
|
16
|
+
'page_view',
|
|
17
|
+
'post_score',
|
|
18
|
+
'purchase',
|
|
19
|
+
'refund',
|
|
20
|
+
'remove_from_cart',
|
|
21
|
+
'screen_view',
|
|
22
|
+
'search',
|
|
23
|
+
'select_content',
|
|
24
|
+
'select_item',
|
|
25
|
+
'select_promotion',
|
|
26
|
+
'set_checkout_option',
|
|
27
|
+
'share',
|
|
28
|
+
'sign_up',
|
|
29
|
+
'spend_virtual_currency',
|
|
30
|
+
'tutorial_begin',
|
|
31
|
+
'tutorial_complete',
|
|
32
|
+
'unlock_achievement',
|
|
33
|
+
'timing_complete',
|
|
34
|
+
'view_cart',
|
|
35
|
+
'view_item',
|
|
36
|
+
'view_item_list',
|
|
37
|
+
'view_promotion',
|
|
38
|
+
'view_search_results',
|
|
39
|
+
] as const
|
package/api/sendEvent.ts
CHANGED
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
'add_payment_info',
|
|
3
|
-
'add_shipping_info',
|
|
4
|
-
'add_to_cart',
|
|
5
|
-
'add_to_wishlist',
|
|
6
|
-
'begin_checkout',
|
|
7
|
-
'checkout_progress',
|
|
8
|
-
'earn_virtual_currency',
|
|
9
|
-
'exception',
|
|
10
|
-
'generate_lead',
|
|
11
|
-
'join_group',
|
|
12
|
-
'level_end',
|
|
13
|
-
'level_start',
|
|
14
|
-
'level_up',
|
|
15
|
-
'login',
|
|
16
|
-
'page_view',
|
|
17
|
-
'post_score',
|
|
18
|
-
'purchase',
|
|
19
|
-
'refund',
|
|
20
|
-
'remove_from_cart',
|
|
21
|
-
'screen_view',
|
|
22
|
-
'search',
|
|
23
|
-
'select_content',
|
|
24
|
-
'select_item',
|
|
25
|
-
'select_promotion',
|
|
26
|
-
'set_checkout_option',
|
|
27
|
-
'share',
|
|
28
|
-
'sign_up',
|
|
29
|
-
'spend_virtual_currency',
|
|
30
|
-
'tutorial_begin',
|
|
31
|
-
'tutorial_complete',
|
|
32
|
-
'unlock_achievement',
|
|
33
|
-
'timing_complete',
|
|
34
|
-
'view_cart',
|
|
35
|
-
'view_item',
|
|
36
|
-
'view_item_list',
|
|
37
|
-
'view_promotion',
|
|
38
|
-
'view_search_results',
|
|
39
|
-
] as const
|
|
1
|
+
import { googleEventNames } from './googleEventNames'
|
|
40
2
|
|
|
41
3
|
export type EventMapFunctionType = (
|
|
42
4
|
eventName: (typeof googleEventNames)[number] | (string & Record<never, never>),
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/google-datalayer",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.0
|
|
5
|
+
"version": "8.1.0-canary.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^8.0
|
|
16
|
-
"@graphcommerce/magento-cart": "^8.0
|
|
17
|
-
"@graphcommerce/magento-cart-payment-method": "^8.0
|
|
18
|
-
"@graphcommerce/magento-cart-shipping-method": "^8.0
|
|
19
|
-
"@graphcommerce/magento-product": "^8.0
|
|
20
|
-
"@graphcommerce/next-ui": "^8.0
|
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^8.0
|
|
22
|
-
"@graphcommerce/typescript-config-pwa": "^8.0
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.5",
|
|
16
|
+
"@graphcommerce/magento-cart": "^8.1.0-canary.5",
|
|
17
|
+
"@graphcommerce/magento-cart-payment-method": "^8.1.0-canary.5",
|
|
18
|
+
"@graphcommerce/magento-cart-shipping-method": "^8.1.0-canary.5",
|
|
19
|
+
"@graphcommerce/magento-product": "^8.1.0-canary.5",
|
|
20
|
+
"@graphcommerce/next-ui": "^8.1.0-canary.5",
|
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.5",
|
|
22
|
+
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.5",
|
|
23
23
|
"@mui/material": "^5.14.20",
|
|
24
24
|
"next": "^14",
|
|
25
25
|
"react": "^18.2.0",
|