@financial-times/n-myft-ui 39.0.1 → 39.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "74f8e2fad7c450d21ba716d2acb746369ab8c2b4",
5
- "tag": "v39.0.1"
4
+ "version": "ff071c61edca061681a9699abe65b019dfd6a76f",
5
+ "tag": "v39.0.2"
6
6
  }
package/myft/ui/lists.js CHANGED
@@ -19,12 +19,7 @@ async function openSaveArticleToList (contentId, options = {}) {
19
19
  return restoreContent();
20
20
  }
21
21
 
22
- /**
23
- * The 5th argument here needs to be a uuid for legacy reasons
24
- * However its no longer used because the User Preferences API assigns the list an ID
25
- * As a short term fix I am using a fake uuid here to prevent production errors
26
- */
27
- myFtClient.add('user', null, 'created', 'list', '00000000-0000-0000-0000-000000000000', { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
22
+ myFtClient.add('user', null, 'created', 'list', null, { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
28
23
  .then(detail => {
29
24
  const listId = detail.results[0].subject.properties.uuid;
30
25
  myFtClient.add('list', listId, 'contained', 'content', contentId, { token: csrfToken }).then((data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "39.0.1",
3
+ "version": "39.0.2",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
@@ -113,7 +113,7 @@
113
113
  "@financial-times/o3-button": "^3.0.0",
114
114
  "@financial-times/o3-editorial-typography": "^3.0.2",
115
115
  "@financial-times/o3-foundation": "^3.0.0",
116
- "next-myft-client": "^14.0.0",
116
+ "next-myft-client": "^14.0.1",
117
117
  "react": "17.x || 18.x"
118
118
  },
119
119
  "dependencies": {