@financial-times/n-myft-ui 34.0.2 → 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": "94545da9cb4c9a0302f46e185d97f0aec3c17171",
5
- "tag": "v34.0.2"
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": "34.0.2",
3
+ "version": "35.2.0",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
@@ -113,6 +113,7 @@
113
113
  "@financial-times/o-overlay": "^4.0.0",
114
114
  "@financial-times/o-spacing": "^3.0.0",
115
115
  "@financial-times/o-tooltip": "^5.2.4",
116
+ "next-myft-client": "^12.2.0",
116
117
  "n-ui-foundations": "^9.0.0 || ^10.0.0",
117
118
  "react": "^17.0.2"
118
119
  },
@@ -122,7 +123,6 @@
122
123
  "form-serialize": "^0.7.2",
123
124
  "ftdomdelegate": "^4.0.6",
124
125
  "js-cookie": "^2.2.1",
125
- "next-myft-client": "^12.0.1",
126
126
  "next-session-client": "^4.0.0",
127
127
  "ready-state": "^2.0.5",
128
128
  "superstore-sync": "^2.1.1"
@@ -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: []