@financial-times/n-myft-ui 36.1.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": "296cb6605f019511e15d555c4b5f3c4a146ee80f",
5
- "tag": "v36.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "36.1.0",
3
+ "version": "37.0.0",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
@@ -104,7 +104,6 @@
104
104
  "@financial-times/n-notification": "^8.2.2",
105
105
  "@financial-times/o-buttons": "^7.7.3",
106
106
  "@financial-times/o-editorial-typography": "^2.3.2",
107
- "@financial-times/o-errors": "^5.0.0",
108
107
  "@financial-times/o-forms": "^9.4.0",
109
108
  "@financial-times/o-grid": "^6.1.1",
110
109
  "@financial-times/o-normalise": "^3.3.0",