@dtdot/lego 0.17.5 → 0.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ const addVariants = {
35
35
  const defaultValue = [{ id: uuidv4(), value: '' }];
36
36
  const LiveList = ({ value: inputValue, name, onChange: propsOnChange }) => {
37
37
  const { getFocused, requestFocus } = useContext(FocusContext);
38
- const { value: contextValue, error: contextError, onChange: contextOnChange } = useFormNode(name);
38
+ const { value: contextValue, error: contextError, onChange: contextOnChange, } = useFormNode(name);
39
39
  const value = contextValue || inputValue || defaultValue;
40
40
  const wrappedOnChange = useCallback((val) => {
41
41
  if (propsOnChange) {
@@ -57,7 +57,7 @@ const FocusContextProvider = ({ children }) => {
57
57
  function FocusContextProviderHOC(WrappedComponent) {
58
58
  const HocComponent = (props) => {
59
59
  return (React.createElement(FocusContextProvider, null,
60
- React.createElement(WrappedComponent, Object.assign({}, props))));
60
+ React.createElement(WrappedComponent, { ...props })));
61
61
  };
62
62
  return HocComponent;
63
63
  }
@@ -11,5 +11,5 @@ const NotificationContainer = styled.div `
11
11
  }
12
12
  `;
13
13
  const Notification = (props) => (React.createElement(NotificationContainer, null,
14
- React.createElement(Alert, Object.assign({}, props))));
14
+ React.createElement(Alert, { ...props })));
15
15
  export default Notification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtdot/lego",
3
- "version": "0.17.5",
3
+ "version": "0.17.8",
4
4
  "description": "Some reusable components for building my applications",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -17,36 +17,36 @@
17
17
  "build"
18
18
  ],
19
19
  "devDependencies": {
20
- "@babel/cli": "^7.12.8",
21
- "@babel/core": "^7.12.9",
22
- "@babel/preset-react": "^7.12.7",
23
- "@babel/preset-typescript": "^7.12.7",
24
- "@storybook/addon-actions": "^6.1.10",
25
- "@storybook/addon-essentials": "^6.1.10",
26
- "@storybook/addon-links": "^6.1.10",
27
- "@storybook/react": "^6.1.10",
28
- "@types/identicon.js": "^2.3.0",
29
- "@types/qrcode": "^1.4.0",
30
- "@types/react": "^17.0.0",
31
- "@types/react-dom": "^17.0.9",
20
+ "@babel/cli": "^7.17.0",
21
+ "@babel/core": "^7.17.2",
22
+ "@babel/preset-react": "^7.16.7",
23
+ "@babel/preset-typescript": "^7.16.7",
24
+ "@storybook/addon-actions": "^6.4.19",
25
+ "@storybook/addon-essentials": "^6.4.19",
26
+ "@storybook/addon-links": "^6.4.19",
27
+ "@storybook/react": "^6.4.19",
28
+ "@types/identicon.js": "^2.3.1",
29
+ "@types/qrcode": "^1.4.2",
30
+ "@types/react": "^17.0.39",
31
+ "@types/react-dom": "^17.0.11",
32
32
  "@types/spark-md5": "^3.0.2",
33
- "@types/styled-components": "^5.1.4",
33
+ "@types/styled-components": "^5.1.22",
34
34
  "@types/uuid": "^8.3.4",
35
- "@typescript-eslint/eslint-plugin": "^4.9.1",
36
- "@typescript-eslint/parser": "^4.9.1",
37
- "babel-loader": "^8.2.2",
38
- "eslint": "^7.15.0",
39
- "eslint-config-prettier": "^7.0.0",
40
- "eslint-plugin-prettier": "^3.2.0",
41
- "eslint-plugin-react": "^7.21.5",
42
- "eslint-plugin-react-hooks": "^4.2.0",
43
- "prettier": "^2.2.1",
35
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
36
+ "@typescript-eslint/parser": "^4.33.0",
37
+ "babel-loader": "^8.2.3",
38
+ "eslint": "^7.32.0",
39
+ "eslint-config-prettier": "^7.2.0",
40
+ "eslint-plugin-prettier": "^3.4.1",
41
+ "eslint-plugin-react": "^7.28.0",
42
+ "eslint-plugin-react-hooks": "^4.3.0",
43
+ "prettier": "^2.5.1",
44
44
  "prettier-eslint": "^12.0.0",
45
- "react": "^17.0.1",
46
- "react-dom": "^17.0.1",
45
+ "react": "^17.0.2",
46
+ "react-dom": "^17.0.2",
47
47
  "storybook-addon-styled-component-theme": "^1.3.0",
48
- "styled-components": "^5.2.1",
49
- "typescript": "^4.1.2"
48
+ "styled-components": "^5.3.3",
49
+ "typescript": "^4.5.5"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^17.0.1",
@@ -55,13 +55,13 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
58
- "@fortawesome/free-solid-svg-icons": "^5.15.1",
58
+ "@fortawesome/free-solid-svg-icons": "^5.15.4",
59
59
  "@fortawesome/react-fontawesome": "^0.1.13",
60
- "framer-motion": "^4.1.17",
60
+ "framer-motion": "^6.2.6",
61
61
  "identicon.js": "^2.3.3",
62
- "qrcode": "^1.4.4",
62
+ "qrcode": "^1.5.0",
63
63
  "react-use-measure": "^2.1.1",
64
- "spark-md5": "^3.0.1",
64
+ "spark-md5": "^3.0.2",
65
65
  "uuid": "^8.3.2"
66
66
  }
67
67
  }