@financial-times/n-myft-ui 35.0.0 → 36.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.circleci/config.yml +10 -10
- package/.toolkitrc.yml +2 -2
- package/.toolkitstate/ci.json +2 -2
- package/CODEOWNERS +1 -1
- package/myft/ui/lists.js +3 -3
- package/package.json +3 -4
- package/.github/settings.yml +0 -14
- package/.nvmrc +0 -1
package/.circleci/config.yml
CHANGED
@@ -4,12 +4,12 @@ orbs:
|
|
4
4
|
executors:
|
5
5
|
node:
|
6
6
|
docker:
|
7
|
-
- image: cimg/node:18.
|
7
|
+
- image: cimg/node:18.20-browsers
|
8
8
|
working_directory: /home/circleci/project/node_workspace
|
9
|
-
|
9
|
+
node22_4-browsers:
|
10
10
|
docker:
|
11
|
-
- image: cimg/node:
|
12
|
-
working_directory: /home/circleci/project/
|
11
|
+
- image: cimg/node:22.4-browsers
|
12
|
+
working_directory: /home/circleci/project/node22_workspace
|
13
13
|
jobs:
|
14
14
|
deploy-gh-pages:
|
15
15
|
docker:
|
@@ -63,7 +63,7 @@ workflows:
|
|
63
63
|
parameters:
|
64
64
|
executor:
|
65
65
|
- node
|
66
|
-
-
|
66
|
+
- node22_4-browsers
|
67
67
|
filters:
|
68
68
|
tags:
|
69
69
|
only: /^v\d+\.\d+\.\d+(-.+)?/
|
@@ -75,7 +75,7 @@ workflows:
|
|
75
75
|
parameters:
|
76
76
|
executor:
|
77
77
|
- node
|
78
|
-
-
|
78
|
+
- node22_4-browsers
|
79
79
|
filters:
|
80
80
|
tags:
|
81
81
|
only: /^v\d+\.\d+\.\d+(-.+)?/
|
@@ -87,7 +87,7 @@ workflows:
|
|
87
87
|
parameters:
|
88
88
|
executor:
|
89
89
|
- node
|
90
|
-
-
|
90
|
+
- node22_4-browsers
|
91
91
|
filters:
|
92
92
|
tags:
|
93
93
|
only: /^v\d+\.\d+\.\d+(-.+)?/
|
@@ -122,7 +122,7 @@ workflows:
|
|
122
122
|
parameters:
|
123
123
|
executor:
|
124
124
|
- node
|
125
|
-
-
|
125
|
+
- node22_4-browsers
|
126
126
|
- tool-kit/build:
|
127
127
|
name: tool-kit/build-<< matrix.executor >>
|
128
128
|
requires:
|
@@ -131,7 +131,7 @@ workflows:
|
|
131
131
|
parameters:
|
132
132
|
executor:
|
133
133
|
- node
|
134
|
-
-
|
134
|
+
- node22_4-browsers
|
135
135
|
- tool-kit/test:
|
136
136
|
name: tool-kit/test-<< matrix.executor >>
|
137
137
|
requires:
|
@@ -140,4 +140,4 @@ workflows:
|
|
140
140
|
parameters:
|
141
141
|
executor:
|
142
142
|
- node
|
143
|
-
-
|
143
|
+
- node22_4-browsers
|
package/.toolkitrc.yml
CHANGED
package/.toolkitstate/ci.json
CHANGED
package/CODEOWNERS
CHANGED
package/myft/ui/lists.js
CHANGED
@@ -2,7 +2,6 @@ import myFtClient from 'next-myft-client';
|
|
2
2
|
import isMobile from './lib/is-mobile';
|
3
3
|
import escapeText from './lib/escape-text';
|
4
4
|
import Overlay from '@financial-times/o-overlay';
|
5
|
-
import { uuid } from 'n-ui-foundations';
|
6
5
|
import getToken from './lib/get-csrf-token';
|
7
6
|
import stringToHTMLElement from './lib/convert-string-to-html-element';
|
8
7
|
|
@@ -20,9 +19,10 @@ async function openSaveArticleToList (contentId, options = {}) {
|
|
20
19
|
return restoreContent();
|
21
20
|
}
|
22
21
|
|
23
|
-
myFtClient.add('user', null, 'created', 'list',
|
22
|
+
myFtClient.add('user', null, 'created', 'list', crypto.randomUUID(), { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
|
24
23
|
.then(detail => {
|
25
|
-
|
24
|
+
const listId = detail.results[0].subject.properties.uuid;
|
25
|
+
myFtClient.add('list', listId, 'contained', 'content', contentId, { token: csrfToken }).then((data) => {
|
26
26
|
const createdList = { name: newList.name, uuid: data.actorId, checked: true, isPublic: !!newList.isPublic };
|
27
27
|
lists.unshift(createdList);
|
28
28
|
const announceListContainer = document.querySelector('.myft-ui-create-list-announcement');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/n-myft-ui",
|
3
|
-
"version": "
|
3
|
+
"version": "36.0.0",
|
4
4
|
"description": "Client side component for interaction with myft",
|
5
5
|
"main": "server.js",
|
6
6
|
"scripts": {
|
@@ -131,11 +131,10 @@
|
|
131
131
|
"puppeteer": "$puppeteer"
|
132
132
|
},
|
133
133
|
"volta": {
|
134
|
-
"node": "
|
134
|
+
"node": "22.11.0"
|
135
135
|
},
|
136
136
|
"engines": {
|
137
|
-
"node": "
|
138
|
-
"npm": "7.x || 8.x || 9.x"
|
137
|
+
"node": "18.x || 22.x"
|
139
138
|
},
|
140
139
|
"x-dash": {
|
141
140
|
"engine": {
|
package/.github/settings.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
_extends: github-apps-config-next
|
2
|
-
|
3
|
-
branches:
|
4
|
-
- name: main
|
5
|
-
protection:
|
6
|
-
required_pull_request_reviews: null
|
7
|
-
required_status_checks:
|
8
|
-
strict: true
|
9
|
-
contexts:
|
10
|
-
- "ci/circleci: build"
|
11
|
-
enforce_admins: true
|
12
|
-
restrictions:
|
13
|
-
users: []
|
14
|
-
teams: []
|
package/.nvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
16
|