@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "4d2e9522b7d651b9d8e80ce8eb6f9a90a3f80ff0",
5
- "tag": "v35.0.0"
4
+ "version": "7cca3abae2560390cc9bea6d919ec91a6a7a63cf",
5
+ "tag": "v35.2.0"
6
6
  }
package/CODEOWNERS CHANGED
@@ -1,4 +1,4 @@
1
1
  # See https://help.github.com/articles/about-codeowners/ for more information about this file.
2
2
 
3
- /components/jsx/* @Financial-times/accounts
3
+ /components/jsx/* @Financial-times/cp-retention-team
4
4
  * @Financial-Times/content-discovery
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', uuid(), { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
22
+ myFtClient.add('user', null, 'created', 'list', crypto.randomUUID(), { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
24
23
  .then(detail => {
25
- myFtClient.add('list', detail.subject, 'contained', 'content', contentId, { token: csrfToken }).then((data) => {
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": "35.0.0",
3
+ "version": "35.2.0",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
@@ -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: []