@financial-times/n-myft-ui 36.0.0 → 37.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "8eecd9445653f43bf8c4b153769812f497211ddc",
5
- "tag": "v36.0.0"
4
+ "version": "f514e53e2d5c21fe7c366f3836aeefed030438bf",
5
+ "tag": "v37.0.0"
6
6
  }
@@ -76,11 +76,13 @@ export default function (relationshipName, formEl) {
76
76
  const { actorType, subjectType } = relConfig;
77
77
 
78
78
  if( !formEl.elements.token || !formEl.elements.token.value ) {
79
- document.body.dispatchEvent(new CustomEvent('oErrors.log', {
79
+ document.body.dispatchEvent(new CustomEvent('oTracking.event', {
80
80
  bubbles: true,
81
81
  detail: {
82
+ category: 'missing_csrf_token',
83
+ action,
82
84
  error: Error('myFT form submitted without a CSRF token'),
83
- info: {action, actorType, actorId, relationshipName, subjectType, subjectId, formData}
85
+ info: {actorType, actorId, relationshipName, subjectType, subjectId, formData}
84
86
  }
85
87
  }));
86
88
  }
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "36.0.0",
3
+ "version": "37.0.0",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
7
7
  "sass": "sass demos/src/demo.scss public/main.css --load-path node_modules",
8
8
  "test": "dotcom-tool-kit test:local",
9
9
  "commit": "commit-wizard",
10
- "prepare": "npx snyk protect || npx snyk protect -d || true",
11
10
  "build": "dotcom-tool-kit build:local",
12
11
  "start": "dotcom-tool-kit run:local",
13
12
  "demo-build": "dotcom-tool-kit build:demo -- demo-build",
@@ -97,7 +96,6 @@
97
96
  "semver": "6.3.0",
98
97
  "sinon": "^7.1.0",
99
98
  "sinon-chai": "^3.7.0",
100
- "snyk": "^1.1227.0",
101
99
  "sucrase": "^3.34.0",
102
100
  "webpack": "^4.47.0",
103
101
  "webpack-cli": "^4.9.2"
@@ -106,15 +104,14 @@
106
104
  "@financial-times/n-notification": "^8.2.2",
107
105
  "@financial-times/o-buttons": "^7.7.3",
108
106
  "@financial-times/o-editorial-typography": "^2.3.2",
109
- "@financial-times/o-errors": "^5.0.0",
110
107
  "@financial-times/o-forms": "^9.4.0",
111
108
  "@financial-times/o-grid": "^6.1.1",
112
109
  "@financial-times/o-normalise": "^3.3.0",
113
110
  "@financial-times/o-overlay": "^4.0.0",
114
111
  "@financial-times/o-spacing": "^3.0.0",
115
112
  "@financial-times/o-tooltip": "^5.2.4",
116
- "next-myft-client": "^12.2.0",
117
113
  "n-ui-foundations": "^9.0.0 || ^10.0.0",
114
+ "next-myft-client": "^13.0.0",
118
115
  "react": "^17.0.2"
119
116
  },
120
117
  "dependencies": {
package/.snyk DELETED
@@ -1,4 +0,0 @@
1
- # Snyk (https://snyk.io) policy file, which patches or ignores known vulnerabilities.
2
- version: v1.13.5
3
- ignore: {}
4
- patch: {}