@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.
package/.toolkitstate/ci.json
CHANGED
@@ -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('
|
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: {
|
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": "
|
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",
|