Comparing version 0.3.3 to 0.4.0
@@ -172,5 +172,5 @@ import React, { ReactElement } from 'react'; | ||
}): ReactElement; | ||
withBlocProvider: <P extends object>(bloc: BlocBase<any> | (() => BlocBase<any>)) => (Component: React.ComponentType<P>) => React.ComponentType<P>; | ||
withBlocProvider: <P extends object>(bloc: BlocBase<any> | (() => BlocBase<any>)) => (Component: React.FC<P>) => React.FC<P>; | ||
} | ||
export { BlacReact, Bloc, BlocObserver, Cubit }; |
@@ -509,8 +509,7 @@ import React, { useMemo, useContext, useState, useCallback, useEffect } from 'react'; | ||
const { BlocProvider } = this; | ||
return class WithBlocProvider extends React.Component { | ||
render() { | ||
return (React.createElement(BlocProvider, { bloc: bloc }, | ||
React.createElement(Component, { ...this.props }))); | ||
} | ||
const WithBlocProvider = (props) => { | ||
return (React.createElement(BlocProvider, { bloc: bloc }, | ||
React.createElement(Component, { ...props }))); | ||
}; | ||
return WithBlocProvider; | ||
}; | ||
@@ -517,0 +516,0 @@ } |
@@ -517,8 +517,7 @@ 'use strict'; | ||
const { BlocProvider } = this; | ||
return class WithBlocProvider extends React__default["default"].Component { | ||
render() { | ||
return (React__default["default"].createElement(BlocProvider, { bloc: bloc }, | ||
React__default["default"].createElement(Component, { ...this.props }))); | ||
} | ||
const WithBlocProvider = (props) => { | ||
return (React__default["default"].createElement(BlocProvider, { bloc: bloc }, | ||
React__default["default"].createElement(Component, { ...props }))); | ||
}; | ||
return WithBlocProvider; | ||
}; | ||
@@ -525,0 +524,0 @@ } |
{ | ||
"name": "blac", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -31,35 +31,34 @@ "main": "dist/blac.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.5", | ||
"@babel/core": "^7.17.9", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@material-ui/core": "^4.12.3", | ||
"@material-ui/icons": "^4.11.2", | ||
"@material-ui/lab": "^4.0.0-alpha.60", | ||
"@material-ui/core": "^4.12.4", | ||
"@material-ui/icons": "^4.11.3", | ||
"@material-ui/lab": "^4.0.0-alpha.61", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
"@rollup/plugin-commonjs": "^21.0.3", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@testing-library/react": "^12.1.3", | ||
"@testing-library/react-hooks": "^7.0.2", | ||
"@types/chrome": "^0.0.179", | ||
"@types/enzyme": "^3.10.11", | ||
"@testing-library/react": "^13.0.0", | ||
"@types/chrome": "^0.0.180", | ||
"@types/enzyme": "^3.10.12", | ||
"@types/jest": "^27.4.1", | ||
"@types/material-ui": "^0.21.12", | ||
"@types/react": "^17.0.39", | ||
"@types/react-dom": "^17.0.13", | ||
"@types/react": "^18.0.1", | ||
"@types/react-dom": "^18.0.0", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@typescript-eslint/eslint-plugin": "^5.13.0", | ||
"@typescript-eslint/parser": "^5.13.0", | ||
"@typescript-eslint/eslint-plugin": "^5.18.0", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"@vitejs/plugin-react-refresh": "^1.3.6", | ||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6", | ||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7", | ||
"codecov": "^3.8.3", | ||
"enzyme": "^3.11.0", | ||
"esbuild": "^0.14.25", | ||
"eslint": "^8.10.0", | ||
"esbuild": "^0.14.34", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.29.3", | ||
"eslint-plugin-react": "^7.29.4", | ||
"ext-messenger": "^3.0.2", | ||
@@ -70,10 +69,10 @@ "install": "^0.13.0", | ||
"jest-mock-console": "^1.2.3", | ||
"prettier": "^2.5.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-router-dom": "^6.2.2", | ||
"rollup": "^2.69.2", | ||
"prettier": "^2.6.2", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"react-router-dom": "^6.3.0", | ||
"rollup": "^2.70.1", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-dts": "^4.2.0", | ||
"rollup-plugin-dts": "^4.2.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
@@ -83,5 +82,5 @@ "rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"ts-jest": "^27.1.3", | ||
"typescript": "^4.6.2", | ||
"vite": "^2.8.6" | ||
"ts-jest": "^27.1.4", | ||
"typescript": "^4.6.3", | ||
"vite": "^2.9.1" | ||
}, | ||
@@ -88,0 +87,0 @@ "jest": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52
3951
153539