sass-template-common 0.1.25 → 0.1.26

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.
@@ -736,7 +736,7 @@ export declare function getVideoRealPath(pathname: string): {
736
736
  op: string;
737
737
  };
738
738
 
739
- export declare const GTM: () => JSX.Element;
739
+ export declare const GTM: () => "" | JSX.Element | undefined;
740
740
 
741
741
  export declare interface Hascontent {
742
742
  hasgalleryvideosflash: boolean;
@@ -105,7 +105,7 @@ const no = () => {
105
105
  ] });
106
106
  }, oo = () => {
107
107
  const { ANALYTICS_gtm: e } = H();
108
- return /* @__PURE__ */ m(Q, { children: [
108
+ return e && /* @__PURE__ */ m(Q, { children: [
109
109
  /* @__PURE__ */ a(
110
110
  "script",
111
111
  {
@@ -4,7 +4,7 @@
4
4
 
5
5
  gtag('config', '${s}', {'custom_map': ${JSON.stringify(a)}});
6
6
 
7
- gtag('event', 'page_view',${JSON.stringify(n)});`}})]})},ga=()=>{const{ANALYTICS_gtm:e}=$();return t.jsxs(t.Fragment,{children:[t.jsx("script",{id:"GTM",dangerouslySetInnerHTML:{__html:`
7
+ gtag('event', 'page_view',${JSON.stringify(n)});`}})]})},ga=()=>{const{ANALYTICS_gtm:e}=$();return e&&t.jsxs(t.Fragment,{children:[t.jsx("script",{id:"GTM",dangerouslySetInnerHTML:{__html:`
8
8
  (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
9
9
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10
10
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"