@financial-times/n-myft-ui 32.0.0 → 33.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build-state/npm-shrinkwrap.json +10 -11
- package/myft/ui/myft-buttons/init.js +2 -8
- package/package.json +3 -3
- package/secrets.js +0 -1
@@ -14,7 +14,7 @@
|
|
14
14
|
"form-serialize": "^0.7.2",
|
15
15
|
"ftdomdelegate": "^4.0.6",
|
16
16
|
"js-cookie": "^2.2.1",
|
17
|
-
"next-myft-client": "^
|
17
|
+
"next-myft-client": "^12.0.1",
|
18
18
|
"next-session-client": "^4.0.0",
|
19
19
|
"ready-state": "^2.0.5",
|
20
20
|
"superstore-sync": "^2.1.1"
|
@@ -105,7 +105,7 @@
|
|
105
105
|
"@financial-times/o-overlay": "^4.0.0",
|
106
106
|
"@financial-times/o-spacing": "^3.0.0",
|
107
107
|
"@financial-times/o-tooltip": "^5.2.4",
|
108
|
-
"n-ui-foundations": "^9.0.0",
|
108
|
+
"n-ui-foundations": "^9.0.0 || ^10.0.0",
|
109
109
|
"react": "^17.0.2"
|
110
110
|
}
|
111
111
|
},
|
@@ -16538,18 +16538,17 @@
|
|
16538
16538
|
}
|
16539
16539
|
},
|
16540
16540
|
"node_modules/next-myft-client": {
|
16541
|
-
"version": "
|
16542
|
-
"resolved": "https://registry.npmjs.org/next-myft-client/-/next-myft-client-
|
16543
|
-
"integrity": "sha512-
|
16544
|
-
"hasInstallScript": true,
|
16541
|
+
"version": "12.1.0",
|
16542
|
+
"resolved": "https://registry.npmjs.org/next-myft-client/-/next-myft-client-12.1.0.tgz",
|
16543
|
+
"integrity": "sha512-JDnM23YJa3VrVREmnxxMQM01zaTazP+YQl0zFk+Q5rD3VnRpph7hhi/RSQZk7j7MzVvCFBWmQ4pBOMWNM7BfwA==",
|
16545
16544
|
"dependencies": {
|
16546
16545
|
"black-hole-stream": "0.0.1",
|
16547
16546
|
"fetchres": "^1.7.2",
|
16548
16547
|
"next-session-client": "^4.0.0"
|
16549
16548
|
},
|
16550
16549
|
"engines": {
|
16551
|
-
"node": "
|
16552
|
-
"npm": "7.x || 8.x"
|
16550
|
+
"node": "16.x || 18.x",
|
16551
|
+
"npm": "7.x || 8.x || 9.x"
|
16553
16552
|
}
|
16554
16553
|
},
|
16555
16554
|
"node_modules/next-session-client": {
|
@@ -42243,9 +42242,9 @@
|
|
42243
42242
|
}
|
42244
42243
|
},
|
42245
42244
|
"next-myft-client": {
|
42246
|
-
"version": "
|
42247
|
-
"resolved": "https://registry.npmjs.org/next-myft-client/-/next-myft-client-
|
42248
|
-
"integrity": "sha512-
|
42245
|
+
"version": "12.1.0",
|
42246
|
+
"resolved": "https://registry.npmjs.org/next-myft-client/-/next-myft-client-12.1.0.tgz",
|
42247
|
+
"integrity": "sha512-JDnM23YJa3VrVREmnxxMQM01zaTazP+YQl0zFk+Q5rD3VnRpph7hhi/RSQZk7j7MzVvCFBWmQ4pBOMWNM7BfwA==",
|
42249
42248
|
"requires": {
|
42250
42249
|
"black-hole-stream": "0.0.1",
|
42251
42250
|
"fetchres": "^1.7.2",
|
@@ -26,7 +26,7 @@ function getInteractionHandler (relationshipName) {
|
|
26
26
|
};
|
27
27
|
}
|
28
28
|
|
29
|
-
function anonEventListeners (
|
29
|
+
function anonEventListeners () {
|
30
30
|
const currentPath = window.location.pathname;
|
31
31
|
const subscribeUrl = '/products?segID=400863&segmentID=190b4443-dc03-bd53-e79b-b4b6fbd04e64';
|
32
32
|
const signInLink = `/login${currentPath.length ? `?location=${currentPath}` : ''}`;
|
@@ -35,12 +35,6 @@ function anonEventListeners (flags = {}) {
|
|
35
35
|
saved: `Please <a href="${subscribeUrl}" class="myft-ui-subscribe" data-trackable="Subscribe">subscribe</a> or <a href="${signInLink}" data-trackable="Sign In">sign in</a> to save this article.`
|
36
36
|
};
|
37
37
|
|
38
|
-
// 11/5/23 - US Growth test for Free Article Demand, see https://financialtimes.atlassian.net/browse/UG-1191
|
39
|
-
// This will be cleaned up after the test as part of https://financialtimes.atlassian.net/browse/UG-1221
|
40
|
-
if (flags.get && flags.get('podcastReferral')) {
|
41
|
-
messages.saved = `<a href="/register/access?multistepRegForm=multistep?segmentID=ce23dd51-4421-32fc-23df-30099f38f1a4" data-trackable="Register">Register</a> for free or <a href="${signInLink}" data-trackable="Sign In">sign in</a> to save this article`;
|
42
|
-
};
|
43
|
-
|
44
38
|
['followed', 'saved'].forEach(action => {
|
45
39
|
createDelegate('submit', relationshipConfig[action].uiSelector, event => {
|
46
40
|
event.preventDefault();
|
@@ -105,7 +99,7 @@ export default function (opts) {
|
|
105
99
|
enhanceActionUrls();
|
106
100
|
|
107
101
|
if (opts && opts.anonymous) {
|
108
|
-
anonEventListeners(
|
102
|
+
anonEventListeners();
|
109
103
|
} else {
|
110
104
|
signedInEventListeners();
|
111
105
|
personaliseLinks();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/n-myft-ui",
|
3
|
-
"version": "
|
3
|
+
"version": "33.0.0",
|
4
4
|
"description": "Client side component for interaction with myft",
|
5
5
|
"main": "server.js",
|
6
6
|
"scripts": {
|
@@ -100,7 +100,7 @@
|
|
100
100
|
"@financial-times/o-overlay": "^4.0.0",
|
101
101
|
"@financial-times/o-spacing": "^3.0.0",
|
102
102
|
"@financial-times/o-tooltip": "^5.2.4",
|
103
|
-
"n-ui-foundations": "^9.0.0",
|
103
|
+
"n-ui-foundations": "^9.0.0 || ^10.0.0",
|
104
104
|
"react": "^17.0.2"
|
105
105
|
},
|
106
106
|
"dependencies": {
|
@@ -109,7 +109,7 @@
|
|
109
109
|
"form-serialize": "^0.7.2",
|
110
110
|
"ftdomdelegate": "^4.0.6",
|
111
111
|
"js-cookie": "^2.2.1",
|
112
|
-
"next-myft-client": "^
|
112
|
+
"next-myft-client": "^12.0.1",
|
113
113
|
"next-session-client": "^4.0.0",
|
114
114
|
"ready-state": "^2.0.5",
|
115
115
|
"superstore-sync": "^2.1.1"
|
package/secrets.js
CHANGED
@@ -4,7 +4,6 @@ module.exports = {
|
|
4
4
|
'38d9c080-3301-11ea-9616-d1b31132c269', // components/unread-articles-indicator/README.md:3
|
5
5
|
'11df4800-391a-11ea-973b-4a52933561ab', // components/unread-articles-indicator/README.md:67
|
6
6
|
'190b4443-dc03-bd53-e79b-b4b6fbd04e64', // segment ID for subscribe URL
|
7
|
-
'ce23dd51-4421-32fc-23df-30099f38f1a4', // segment ID for USG test https://financialtimes.atlassian.net/browse/UG-1191
|
8
7
|
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx', // regex for uuid generator
|
9
8
|
'a5676e20-5c92-47f3-a76c-11f9761121f5', // test/navigationAlphaTest.spec.js
|
10
9
|
'72de123e-5082-11ee-be56-0242ac120002' // components/jsx/preferences-modal/index.js
|