@financial-times/n-myft-ui 25.0.0-beta.3 → 26.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -3
- package/build-state/npm-shrinkwrap.json +20926 -20379
- package/components/collections/collections.jsx +3 -3
- package/components/concept-list/concept-list.jsx +10 -4
- package/components/csrf-token/input.jsx +1 -7
- package/components/csrf-token/{__tests__/input.test.js → input.test.js} +2 -2
- package/components/follow-button/follow-button.jsx +3 -1
- package/components/follow-button/{__tests__/follow-button.test.js → follow-button.test.js} +1 -1
- package/components/index.js +3 -1
- package/components/instant-alert/instant-alert.jsx +73 -0
- package/components/instant-alert/instant-alert.test.js +86 -0
- package/components/pin-button/pin-button.jsx +30 -30
- package/components/pin-button/pin-button.test.js +2 -2
- package/components/save-for-later/save-for-later.jsx +19 -21
- package/demos/templates/demo.html +1 -2
- package/dist/bundles/bundle.js +165 -74
- package/jsx-migration.md +16 -0
- package/package.json +2 -1
- package/components/instant-alert/instant-alert.html +0 -47
package/README.md
CHANGED
@@ -44,7 +44,7 @@ View the demo on `localhost:5005`
|
|
44
44
|
|
45
45
|
### Upgrading from v25
|
46
46
|
|
47
|
-
|
47
|
+
V25 introduces some major changes to n-myft-ui components. Some of the components have been moved from handlebars to jsx.
|
48
48
|
|
49
49
|
These components include:
|
50
50
|
- csrf-token
|
@@ -53,6 +53,7 @@ These components include:
|
|
53
53
|
- pin-button
|
54
54
|
- concept-list
|
55
55
|
- collections
|
56
|
+
- InstantAlert
|
56
57
|
|
57
58
|
A consumer of any of these components needs to render them directly as `jsx` components in a parent `jsx` component or use the `renderReactComponent` helper function provided by `@financial-times/dotcom-server-handlebars` in a consuming handlebars template/partial.
|
58
59
|
|
@@ -87,5 +88,3 @@ To render a jsx component in a handlebars partial, consumers need to add the `he
|
|
87
88
|
|
88
89
|
More examples of rendering jsx in handlebars partials can be found [here](https://github.com/Financial-Times/n-myft-ui/blob/main/demos/templates/demo.html)
|
89
90
|
|
90
|
-
|
91
|
-
NB: This branch is the development branch for v25 and all bug fixes for breaking changes related to `jsx` go here.
|