@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.
- package/.toolkitstate/ci.json +2 -2
- package/myft/ui/myft-buttons/do-form-submit.js +4 -2
- package/package.json +2 -5
- package/.snyk +0 -4
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,13 +1,12 @@
|
|
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": {
|
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