@ikas/storefront 4.7.6 → 4.7.7
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/build/analytics/facebookPixel.js +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",(r=t,{content_name:r.name,content_category:r.categories.length>0?r.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[r.selectedVariant.id],content_type:"product",value:r.selectedVariant.price.finalPrice,currency:""===r.selectedVariant.price.currency?"TRY":r.selectedVariant.price.currency})))}catch(t){console.error(t)}var r},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",function(t,n){var r,e=[];t.variant.categories&&(null===(r=t.variant.categories[0].categoryPath)||void 0===r||r.map((function(t){return e.push(t.name)}))),t.variant.categories&&t.variant.categories.length>0&&e.push(t.variant.categories[0].name);var o=e.length>0?e.join(" > "):"";return{content_name:t.variant.name,content_category:o,content_ids:[t.variant.id],content_type:"product",value:t.finalPrice,currency:t.currencyCode}}(t),{eventID:e}))}catch(t){console.error(t)}},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";var n="undefined"==typeof window,r=function(){function r(){t(this)}return r.productView=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewContent",(r=t,{content_name:r.name,content_category:r.categories.length>0?r.categories[0].path.map((function(t){return t.name})).join(" > "):"",content_ids:[r.selectedVariant.id],content_type:"product",value:r.selectedVariant.price.finalPrice,currency:""===r.selectedVariant.price.currency?"TRY":r.selectedVariant.price.currency})))}catch(t){console.error(t)}var r},r.addToCart=function(t,r,e){try{return void(!n&&window.fbq&&window.fbq("track","AddToCart",function(t,n){var r,e=[];t.variant.categories&&(null===(r=t.variant.categories[0].categoryPath)||void 0===r||r.map((function(t){return e.push(t.name)}))),t.variant.categories&&t.variant.categories.length>0&&e.push(t.variant.categories[0].name);var o=e.length>0?e.join(" > "):"";return{content_name:t.variant.name,content_category:o,content_ids:[t.variant.id],content_type:"product",value:t.finalPrice,currency:t.currencyCode}}(t),{eventID:e}))}catch(t){console.error(t)}},r.beginCheckout=function(t){try{return void(!n&&window.fbq&&window.fbq("track","InitiateCheckout",e(t)))}catch(t){console.error(t)}},r.purchase=function(t,r){try{return void(!n&&window.fbq&&window.fbq("track","Purchase",e(t),{eventID:r}))}catch(t){console.error(t)}},r.addToWishlist=function(t){try{return void(!n&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}},r.search=function(t){try{return void(!n&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}},r.completeRegistration=function(){try{return void(!n&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}},r.viewCart=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.items[0].currencyCode,value:t.totalPrice,num_items:t.items.length}}(t)))}catch(t){console.error(t)}},r.viewCategory=function(t){try{return void(!n&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}},r.contactForm=function(){try{return void(!n&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}},r}();function e(t){var n=[],r=[];return t.items.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"product",content_ids:n,currency:t.items[0].currencyCode,value:t.totalFinalPrice,num_items:t.items.length}}export{r as FacebookPixel};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.7",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "rm -rf build && rollup -c"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ikas/storefront-api": "^4.7.
|
|
21
|
-
"@ikas/storefront-config": "^4.7.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.7.
|
|
23
|
-
"@ikas/storefront-models": "^4.7.
|
|
24
|
-
"@ikas/storefront-providers": "^4.7.
|
|
20
|
+
"@ikas/storefront-api": "^4.7.7",
|
|
21
|
+
"@ikas/storefront-config": "^4.7.7",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.7.7",
|
|
23
|
+
"@ikas/storefront-models": "^4.7.7",
|
|
24
|
+
"@ikas/storefront-providers": "^4.7.7",
|
|
25
25
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
26
26
|
"@adyen/adyen-web": "^5.28.2",
|
|
27
27
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@ikas/localized-address": "^1.0.0-beta.3",
|
|
58
|
-
"@ikas/storefront-api": "^4.7.
|
|
59
|
-
"@ikas/storefront-config": "^4.7.
|
|
60
|
-
"@ikas/storefront-model-functions": "^4.7.
|
|
61
|
-
"@ikas/storefront-models": "^4.7.
|
|
62
|
-
"@ikas/storefront-providers": "^4.7.
|
|
58
|
+
"@ikas/storefront-api": "^4.7.7",
|
|
59
|
+
"@ikas/storefront-config": "^4.7.7",
|
|
60
|
+
"@ikas/storefront-model-functions": "^4.7.7",
|
|
61
|
+
"@ikas/storefront-models": "^4.7.7",
|
|
62
|
+
"@ikas/storefront-providers": "^4.7.7",
|
|
63
63
|
"mobx": "^6.1.3",
|
|
64
64
|
"mobx-react-lite": "^3.1.5",
|
|
65
65
|
"next": "12.2.0",
|