@financial-times/custom-code-component 1.9.8 → 1.9.9
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/custom-code-component.js +195 -1124
- package/package.json +4 -2
- package/src/tracking.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/custom-code-component",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
"vite-plugin-dts": "^3.6.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@financial-times/o-tracking": "^4.5.4",
|
|
30
29
|
"ftdomdelegate": "^5.0.0",
|
|
31
30
|
"react": "^18.2.0",
|
|
32
31
|
"react-dom": "^18.2.0"
|
|
33
32
|
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@financial-times/o-tracking": "4.x"
|
|
35
|
+
},
|
|
34
36
|
"overrides": {
|
|
35
37
|
"react-dom16": {
|
|
36
38
|
"react": "react16"
|
package/src/tracking.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Delegate from "ftdomdelegate";
|
|
2
|
-
import oTracking from "@financial-times/o-tracking";
|
|
3
2
|
import { getTrace } from "./get-trace";
|
|
4
3
|
import {
|
|
5
4
|
sanitise,
|
|
@@ -127,8 +126,6 @@ class Tracking {
|
|
|
127
126
|
this.isInitialised = true;
|
|
128
127
|
this.cccId = id ? id : this.cccId;
|
|
129
128
|
|
|
130
|
-
oTracking.init({ queue: true });
|
|
131
|
-
|
|
132
129
|
const eventData = {
|
|
133
130
|
action: "click",
|
|
134
131
|
category: this.category,
|