@financial-times/n-myft-ui 35.0.0 → 36.0.0

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.
@@ -4,12 +4,12 @@ orbs:
4
4
  executors:
5
5
  node:
6
6
  docker:
7
- - image: cimg/node:18.16-browsers
7
+ - image: cimg/node:18.20-browsers
8
8
  working_directory: /home/circleci/project/node_workspace
9
- node16_20-browsers:
9
+ node22_4-browsers:
10
10
  docker:
11
- - image: cimg/node:16.20-browsers
12
- working_directory: /home/circleci/project/node16_workspace
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
- - node16_20-browsers
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
- - node16_20-browsers
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
- - node16_20-browsers
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
- - node16_20-browsers
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
- - node16_20-browsers
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
- - node16_20-browsers
143
+ - node22_4-browsers
package/.toolkitrc.yml CHANGED
@@ -23,8 +23,8 @@ hooks:
23
23
  options:
24
24
  "@dotcom-tool-kit/circleci":
25
25
  nodeVersion:
26
- - '18.16-browsers'
27
- - '16.20-browsers'
26
+ - '18.20-browsers'
27
+ - '22.4-browsers'
28
28
  "@dotcom-tool-kit/eslint": {
29
29
  files: "{,!(public)/**/}*.js"
30
30
  }
@@ -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": "8eecd9445653f43bf8c4b153769812f497211ddc",
5
+ "tag": "v36.0.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": "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": "18.18.0"
134
+ "node": "22.11.0"
135
135
  },
136
136
  "engines": {
137
- "node": "16.x || 18.x",
138
- "npm": "7.x || 8.x || 9.x"
137
+ "node": "18.x || 22.x"
139
138
  },
140
139
  "x-dash": {
141
140
  "engine": {
@@ -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