@financial-times/n-myft-ui 35.0.0 → 35.2.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/CODEOWNERS +1 -1
- package/myft/ui/lists.js +3 -3
- package/package.json +1 -1
- package/.github/settings.yml +0 -14
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
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: []
|