namirasoft-site-react 1.4.397 → 1.4.398

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/dist/index.js CHANGED
@@ -2,6 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import ReactDOM from 'react-dom/client';
3
3
  import './index.css';
4
4
  import { App } from './App';
5
+ import TagManager from 'react-gtm-module';
6
+ import { EnvService } from 'namirasoft-core';
7
+ let GOOGLE_TAGMANAGER_ID = new EnvService("GOOGLE_TAGMANAGER_ID").getNullString();
8
+ if (GOOGLE_TAGMANAGER_ID)
9
+ TagManager.initialize({
10
+ gtmId: GOOGLE_TAGMANAGER_ID
11
+ });
5
12
  const root = ReactDOM.createRoot(document.getElementById('root'));
6
13
  root.render(_jsx(App, {}));
7
14
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAC5B,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAgB,CACjD,CAAC;AACF,IAAI,CAAC,MAAM,CAAC,KAAC,GAAG,KAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,IAAI,oBAAoB,GAAG,IAAI,UAAU,CAAC,sBAAsB,CAAC,CAAC,aAAa,EAAE,CAAC;AAElF,IAAI,oBAAoB;IACpB,UAAU,CAAC,UAAU,CAAC;QAClB,KAAK,EAAE,oBAAoB;KAC9B,CAAC,CAAC;AAEP,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAC5B,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAgB,CACjD,CAAC;AACF,IAAI,CAAC,MAAM,CAAC,KAAC,GAAG,KAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.397",
11
+ "version": "1.4.398",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -27,6 +27,7 @@
27
27
  "@types/react": "^18.3.12",
28
28
  "@types/react-bootstrap": "^1.1.0",
29
29
  "@types/react-dom": "^18.3.1",
30
+ "@types/react-gtm-module": "^2.0.4",
30
31
  "antd": "^5.25.3",
31
32
  "async-mutex": "^0.5.0",
32
33
  "bootstrap": "^5.3.6",
@@ -46,6 +47,7 @@
46
47
  "react-bootstrap": "^2.10.10",
47
48
  "react-chartjs-2": "^5.3.0",
48
49
  "react-dom": "^18.3.1",
50
+ "react-gtm-module": "^2.0.11",
49
51
  "react-phone-input-2": "^2.15.1",
50
52
  "react-phone-number-input": "^3.4.12",
51
53
  "react-router-dom": "^7.6.1",
package/src/index.tsx CHANGED
@@ -1,6 +1,15 @@
1
1
  import ReactDOM from 'react-dom/client';
2
2
  import './index.css';
3
3
  import { App } from './App';
4
+ import TagManager from 'react-gtm-module';
5
+ import { EnvService } from 'namirasoft-core';
6
+
7
+ let GOOGLE_TAGMANAGER_ID = new EnvService("GOOGLE_TAGMANAGER_ID").getNullString();
8
+
9
+ if (GOOGLE_TAGMANAGER_ID)
10
+ TagManager.initialize({
11
+ gtmId: GOOGLE_TAGMANAGER_ID
12
+ });
4
13
 
5
14
  const root = ReactDOM.createRoot(
6
15
  document.getElementById('root') as HTMLElement