Releases: kwameopareasiedu/react-simple-widgets
Releases · kwameopareasiedu/react-simple-widgets
v6.7.0 (Sep 16, 2022)
Styled Components Integration
- Integrated styled-components into all widgets
- Moved global styles to separate import. This stops each widget from redeclaring global styles and CSS variables in the DOM, thus improving performance. The global styles need to be imported at the start of your React app as shown below:
import ReactDOM from "react-dom";
import { RSWGlobalStyle } from "react-simple-widgets/dist/style";
import App from "./app";
/* Other imports */
const root = document.getElementById("root");
ReactDOM.createRoot(root).render(
<React.StrictMode>
<RSWGlobalStyle />
<App/>
</React.StrictMode>
);v6.6.1 (July 21, 2022)
v6.5.0 (July 8, 2022)
- Changed return type of useQueryParams hook to an object with query parameters
qpand functions to modify the query parametersaddQp()anddelQp()[BREAKING] - Fixed bug in useQueryParams causing additional parameters to overwrite existing parameters.
v6.4.0 (July 1, 2022)
Root Import Support
-
Added the
mainandtypingsentry topackage.jsonwhich point to an index file exporting all built ES modules. This means both import statements will work out of the box:import { DialogProvider } from "react-simple-widgets"
import { DialogProvider } from "react-simple-widgets/dist/dialog-provider"
-
Using ES modules adds dead-code elimination support (I.e. module bundlers can tree-shake this library) for lower app bundle sizes.
v6.3.0 (June 29, 2022)
v6.2.0 (June 27, 2022)
- Added TagInput widget
- Added TagField widget
- Added
helper.send(msg?)to DialogProvider widget which allows dialogs to send messages to the host without closing the dialog