@ikas/storefront 6.1.0-beta.384 → 6.1.0-beta.385
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/head/index.js +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import e from"html-react-parser";import{getIkasEventsScript as n}from"../events.js";import{observer as r}from"mobx-react-lite";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";var o="ikas-script-policy",i=function(){return"true"===process.env.NEXT_PUBLIC_RESTRICT_PAYMENT_SCRIPTS},s=function(t){return i()&&"payment"===t?"payment":"default"},c="window.dataLayer=window.dataLayer||[];window.dataLayer.push(".concat(JSON.stringify({"gtm.allowlist":["google"],"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts","nonGooglePixels","nonGoogleIframes"]}),");"),l=r((function(r){var o="payment"===r.scriptPolicy,i=a.getGtmId(),s=a.getFbpId(),l=a.getAnalytics4Id(),m=a.getTiktokPixelId(),d=a.getOpenAiPixelId(),g=a.getIsEditor(),p=o?[]:a.getStorefrontJSScripts(),u=o?[]:a.getHighPriorityStorefrontJSScripts(),f=a.getThemeStyleScripts(),y=
|
|
1
|
+
import*as t from"react";import e from"html-react-parser";import{getIkasEventsScript as n}from"../events.js";import{observer as r}from"mobx-react-lite";import{IkasStorefrontConfig as a}from"@ikas/storefront-config";var o="ikas-script-policy",i=function(){return"true"===process.env.NEXT_PUBLIC_RESTRICT_PAYMENT_SCRIPTS},s=function(t){return i()&&"payment"===t?"payment":"default"},c="window.dataLayer=window.dataLayer||[];window.dataLayer.push(".concat(JSON.stringify({"gtm.allowlist":["google"],"gtm.blocklist":["html","customScripts","customPixels","nonGoogleScripts","nonGooglePixels","nonGoogleIframes"]}),");"),l=r((function(r){var o="payment"===r.scriptPolicy,i=a.getGtmId(),s=a.getFbpId(),l=a.getAnalytics4Id(),m=a.getTiktokPixelId(),d=a.getOpenAiPixelId(),g=a.getIsEditor(),p=o?[]:a.getStorefrontJSScripts(),u=o?[]:a.getHighPriorityStorefrontJSScripts(),f=a.getThemeStyleScripts(),y=a.getNavigationWarningScript();return t.createElement(t.Fragment,null,o&&t.createElement("meta",{name:"ikas-script-policy",content:"payment"}),!!y&&!g&&e(y),u.map((function(t){return e(t)})),i&&!g&&o&&t.createElement("script",{dangerouslySetInnerHTML:{__html:c}}),i&&!g&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(i,"');")}}),!!s&&!g&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(s,"');\n fbq.disablePushState = true;\n fbq.allowDuplicatePageViews = true;")}}),l&&!g&&t.createElement(t.Fragment,null,t.createElement("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(l)}),t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(l,"');")}})),!!m&&!g&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:'!function (w, d, t) {\n w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n ttq.load(\''.concat(m,"');\n }(window, document, 'ttq');")}}),!!d&&!g&&t.createElement("script",{defer:!0,dangerouslySetInnerHTML:{__html:'(function (w, d, s, u) {\n if (w.oaiq) return;\n var q = function () { q.q.push(arguments); };\n q.q = [];\n w.oaiq = q;\n var js = d.createElement(s);\n js.async = true;\n js.src = u;\n var f = d.getElementsByTagName(s)[0];\n f.parentNode.insertBefore(js, f);\n })(window, document, "script", "https://bzrcdn.openai.com/sdk/oaiq.min.js");\n oaiq("init", { pixelId: '.concat(JSON.stringify(d).replace(/</g,"\\u003c")," });")}}),e(n()),p.map((function(t){return e(t)})),f.map((function(t){return e(t)})))})),m=function(e){var n="payment"===e.scriptPolicy?void 0:a.getGtmId(),r=a.getFbpId(),o=a.getIsEditor();return t.createElement(t.Fragment,null,n&&!o&&t.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id='.concat(n,'" height="0" width="0" style="display:none;visibility:hidden"></iframe>')}}),r&&!o&&t.createElement("noscript",{dangerouslySetInnerHTML:{__html:'<img height="1" width="1" style="display:none" \n src="https://www.facebook.com/tr?id='.concat(r,'&ev=PageView&noscript=1"/>')}}))};export{m as AnalyticsBody,l as AnalyticsHead,o as PAYMENT_SCRIPT_POLICY_META,s as getCheckoutScriptPolicy,i as isPaymentScriptPolicyEnabled};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.385",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"swiper": "11.0.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
27
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
28
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
29
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
30
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
26
|
+
"@ikas/storefront-api": "^6.1.0-beta.385",
|
|
27
|
+
"@ikas/storefront-config": "^6.1.0-beta.385",
|
|
28
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.385",
|
|
29
|
+
"@ikas/storefront-models": "^6.1.0-beta.385",
|
|
30
|
+
"@ikas/storefront-providers": "^6.1.0-beta.385",
|
|
31
31
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
32
32
|
"@adyen/adyen-web": "^5.57.0",
|
|
33
33
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
65
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
66
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
67
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
68
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
69
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
65
|
+
"@ikas/storefront-api": "^6.1.0-beta.385",
|
|
66
|
+
"@ikas/storefront-config": "^6.1.0-beta.385",
|
|
67
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.385",
|
|
68
|
+
"@ikas/storefront-models": "^6.1.0-beta.385",
|
|
69
|
+
"@ikas/storefront-providers": "^6.1.0-beta.385",
|
|
70
70
|
"mobx": "^6.1.3",
|
|
71
71
|
"mobx-react-lite": "^3.1.5",
|
|
72
72
|
"next": "12.2.0",
|