methodvef.blogg.se

The blueprint 2
The blueprint 2






Ensure className prop is supported for all components ( #1950).Add sideEffects: "false" to package.json manifests for Webpack 4 tree-shaking support ( #2051).All component displayNames use Blueprint2 prefix for easier debugging ( #2052).Enable esModuleInterop and allowSyntheticDefaultImports compiler flags to emit valid ES import statements for modules such as classnames and moment.🌟 Publish correct ES module files using new TypeScript compiler flags ( #2200).🌟 Run published CSS files through postcss to remove comments and run Autoprefixer ( #2241).icon prop now accepts JSX.Element in addition to an IconName string so you can provide your own SVG icon set.🔥 Prop rename: iconName → icon ( #2070).SVG files in the root resources/icons/ directory have also been stripped of the pt-icon- prefix in their filenames.

#THE BLUEPRINT 2 UPGRADE#

🛠 This refactor is handled by the upgrade script.🔥 Support for long icon names (those prefixed with pt-icon-) has been removed in all component APIs ( #2072).🔥 React component factories ( DialogFactory) have been removed for all components ( #1938).) for unpkg CDN consumption are still output in /dist/ less files are now output in the /lib/ folder in the distributed packages instead of /dist/ ( #2002) See an example of this here: test-commmons/polyfill.js If you need to support older browsers that don't have these features built-in, you will need to polyfill them.🔥 A small set of ES6 features are used by all Blueprint libraries: Map, Set, om, Array.fill (similar to React 16 itself).🎨 indicates CSS layout breaks which may affect you if you have customized the styling & layout of Blueprint components directly.

the blueprint 2

  • ⚠️ indicates deprecations which produced warnings in Blueprint 1.x.
  • Many of these are renames which are handled automatically by the 2.0 upgrade script.
  • the blueprint 2

  • 🔥 indicates new breaks that will likely require your attention during the upgrade.
  • All Labs components (in have been moved into separate packages so that you no longer have to deal with the 0.x version range for many components that are used widely in production.īreaking changes are highlighted with icons:.
  • It uses Popper.js instead of Tether, which provides much better auto-positioning capabilities and solves a number of outstanding bugs out-of-the-box.






    The blueprint 2