@financial-times/n-myft-ui 26.1.0 → 27.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.circleci/config.yml +46 -34
- package/.nvmrc +1 -1
- package/Makefile +0 -1
- package/README.md +2 -48
- package/build-state/npm-shrinkwrap.json +10147 -20187
- package/components/collections/collections.html +85 -0
- package/components/concept-list/concept-list.html +31 -0
- package/components/csrf-token/input.html +5 -0
- package/components/follow-button/follow-button.html +79 -0
- package/components/instant-alert/instant-alert.html +47 -0
- package/components/pin-button/pin-button.html +20 -0
- package/components/save-for-later/save-for-later.html +67 -0
- package/components/unread-articles-indicator/date-fns.js +6 -6
- package/demos/app.js +3 -26
- package/demos/templates/demo.html +11 -10
- package/package.json +16 -30
- package/components/collections/collections.jsx +0 -68
- package/components/collections/collections.test.js +0 -83
- package/components/concept-list/concept-list.jsx +0 -69
- package/components/concept-list/concept-list.test.js +0 -116
- package/components/csrf-token/input.jsx +0 -20
- package/components/csrf-token/input.test.js +0 -23
- package/components/follow-button/follow-button.jsx +0 -176
- package/components/follow-button/follow-button.test.js +0 -40
- package/components/index.js +0 -17
- package/components/instant-alert/instant-alert.jsx +0 -73
- package/components/instant-alert/instant-alert.test.js +0 -86
- package/components/pin-button/pin-button.jsx +0 -40
- package/components/pin-button/pin-button.test.js +0 -57
- package/components/save-for-later/save-for-later.jsx +0 -101
- package/components/save-for-later/save-for-later.test.js +0 -59
- package/demos/templates/demo-layout.html +0 -25
- package/demos/templates/demo.jsx +0 -125
- package/dist/bundles/bundle.js +0 -3232
- package/jest.config.js +0 -8
- package/jsx-migration.md +0 -16
- package/webpack.config.js +0 -34
package/jest.config.js
DELETED
package/jsx-migration.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
### Handlebars to JSX migration notes
|
2
|
-
|
3
|
-
This document serves as a troubleshooting guide for `handlebars` components that have been migrated to `jsx`. Also, notes can be added to this document for anything related to the migration.
|
4
|
-
|
5
|
-
A common cause of issues/bugs with migrated components is missing HTML attributes. The business logic related to these components heavily depend on these attributes and their values. If an action related to any of these migrated components fails, compare the jsx version and the handlebars version to see if an attribute is getting the wrong value or is missing.
|
6
|
-
|
7
|
-
Another cause of issues will be missing flags. Ensure consuming applications pass the required flags to these components.
|
8
|
-
|
9
|
-
Currently we have migrated the following `handlebars` partials to `jsx`:
|
10
|
-
- components/collections/collections.jsx [handlebars fount here](https://github.com/Financial-Times/n-myft-ui/blob/dfbf06d10f78756871cfe8d2aeb863ce4bcca1e1/components/collections/collections.html)
|
11
|
-
- components/concept-list/concept-list.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/dfbf06d10f78756871cfe8d2aeb863ce4bcca1e1/components/concept-list/concept-list.html)
|
12
|
-
- components/follow-button/follow-button.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/bf2145fcfd211001dfab6a3a271dd72808d062bd/components/follow-button/follow-button.html)
|
13
|
-
- components/pin-button/pin-button.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/dfbf06d10f78756871cfe8d2aeb863ce4bcca1e1/components/pin-button/pin-button.html)
|
14
|
-
- components/save-for-later/save-for-later.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/11d483364bb0f002c3a0b45bc024c83bb055268e/components/save-for-later/save-for-later.jsx)
|
15
|
-
- components/instant-alert/instant-alert.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/dfbf06d10f78756871cfe8d2aeb863ce4bcca1e1/components/instant-alert/instant-alert.html)
|
16
|
-
- components/csrf-token/input.jsx [handlebars found here](https://github.com/Financial-Times/n-myft-ui/blob/bf2145fcfd211001dfab6a3a271dd72808d062bd/components/csrf-token/input.html)
|
package/webpack.config.js
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
const path = require('path');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
entry: './components/index.js',
|
5
|
-
resolve: {
|
6
|
-
extensions: ['.js', '.jsx']
|
7
|
-
},
|
8
|
-
module: {
|
9
|
-
rules: [
|
10
|
-
{
|
11
|
-
test: /\.(js|jsx)$/,
|
12
|
-
exclude: /node_modules/,
|
13
|
-
use: [
|
14
|
-
{
|
15
|
-
loader: 'babel-loader',
|
16
|
-
options: {
|
17
|
-
presets: [
|
18
|
-
'react',
|
19
|
-
'stage-2'
|
20
|
-
]
|
21
|
-
}
|
22
|
-
}
|
23
|
-
]
|
24
|
-
}
|
25
|
-
]
|
26
|
-
},
|
27
|
-
target: 'node',
|
28
|
-
output: {
|
29
|
-
path: path.resolve(__dirname, 'dist/bundles'),
|
30
|
-
filename: 'bundle.js',
|
31
|
-
libraryTarget: 'umd',
|
32
|
-
library: '@financial-times/n-myft-ui'
|
33
|
-
}
|
34
|
-
};
|