@corva/create-app 0.15.0-0 → 0.16.0-rc.0

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.16.0-rc.0](https://github.com/corva-ai/create-corva-app/compare/v0.16.0-1...v0.16.0-rc.0) (2021-11-23)
6
+
7
+ ## [0.16.0-1](https://github.com/corva-ai/create-corva-app/compare/v0.16.0-0...v0.16.0-1) (2021-11-18)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add .idea to gitignore ([1d3c8d3](https://github.com/corva-ai/create-corva-app/commit/1d3c8d314ca6ce853e03f475c88c0bab5f0dde76))
13
+
14
+ ## [0.16.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.15.0-0...v0.16.0-0) (2021-11-09)
15
+
16
+
17
+ ### Features
18
+
19
+ * **core:** upgrade template AppSettings.tsx to React.FC approach ([383203c](https://github.com/corva-ai/create-corva-app/commit/383203c5d4323f66218726de16be0a77da108f7e))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **templates:** move out React.FC syntax from AppSettings.tsx ([aaec071](https://github.com/corva-ai/create-corva-app/commit/aaec071cf5c546c226ad59133b5d28b29e968f58))
25
+
5
26
  ## [0.15.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.14.0-0...v0.15.0-0) (2021-10-26)
6
27
 
7
28
  ## [0.14.0-0](https://github.com/corva-ai/create-corva-app/compare/v0.13.0-0...v0.14.0-0) (2021-10-12)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.15.0-0",
3
+ "version": "0.16.0-rc.0",
4
4
  "private": false,
5
5
  "description": "Create app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -18,6 +18,7 @@
18
18
  .env.development.local
19
19
  .env.test.local
20
20
  .env.production.local
21
+ .idea
21
22
 
22
23
  npm-debug.log*
23
24
  yarn-debug.log*
@@ -10,6 +10,12 @@
10
10
  "extends": ["@corva/eslint-config-browser", "plugin:@typescript-eslint/recommended"],
11
11
  "rules": {
12
12
  "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
13
- "@typescript-eslint/no-explicit-any": "off"
13
+ "@typescript-eslint/no-explicit-any": "off",
14
+ /* Turned off until adopted by @corva/eslint-config-browser */
15
+ "react/prop-types": 0,
16
+ "react/default-props-match-prop-types": 0,
17
+ "react/no-unused-prop-types": 0,
18
+ "react/require-default-props": 0
19
+ /* Turned off until adopted by @corva/eslint-config-browser */
14
20
  }
15
21
  }
@@ -18,6 +18,7 @@
18
18
  .env.development.local
19
19
  .env.test.local
20
20
  .env.production.local
21
+ .idea
21
22
 
22
23
  npm-debug.log*
23
24
  yarn-debug.log*
@@ -1,20 +1,9 @@
1
1
  import { Checkbox, FormControlLabel } from '@material-ui/core';
2
- import PropTypes from 'prop-types';
3
2
 
4
3
  import { DEFAULT_SETTINGS } from './constants';
5
4
 
6
- type Props = {
7
- app: { [key: string]: any };
8
- appData: { [key: string]: any };
9
- company: { [key: string]: any };
10
- onSettingChange: (key: string, value: any) => void;
11
- settings: {
12
- isExampleCheckboxChecked: boolean;
13
- };
14
- user: { [key: string]: any };
15
- };
16
-
17
- function AppSettings({ settings: apiSettings, onSettingChange }: Props): JSX.Element {
5
+ const AppSettings = (props: AppSettingsProps): JSX.Element => {
6
+ const { settings: apiSettings, onSettingChange } = props;
18
7
  const settings = { ...DEFAULT_SETTINGS, ...apiSettings };
19
8
 
20
9
  return (
@@ -30,24 +19,24 @@ function AppSettings({ settings: apiSettings, onSettingChange }: Props): JSX.Ele
30
19
  />
31
20
  </div>
32
21
  );
33
- }
34
-
35
- AppSettings.propTypes = {
36
- app: PropTypes.shape({}).isRequired,
37
- appData: PropTypes.shape({}).isRequired,
38
- company: PropTypes.shape({}),
39
- onSettingChange: PropTypes.func.isRequired,
40
- settings: PropTypes.shape({
41
- isExampleCheckboxChecked: PropTypes.bool,
42
- }).isRequired,
43
- user: PropTypes.shape({}),
44
22
  };
45
-
46
23
  AppSettings.defaultProps = {
47
24
  user: {},
48
25
  company: {},
49
26
  };
50
27
 
28
+ /* Types */
29
+ interface AppSettingsProps {
30
+ app: { [key: string]: any };
31
+ appData: { [key: string]: any };
32
+ company: { [key: string]: any };
33
+ onSettingChange: (key: string, value: any) => void;
34
+ settings: {
35
+ isExampleCheckboxChecked: boolean;
36
+ };
37
+ user: { [key: string]: any };
38
+ }
39
+
51
40
  // Important: Do not change root component default export (AppSettings.js). Use it as container
52
41
  // for your App Settings. It's required to make build and zip scripts work as expected;
53
42
  export default AppSettings;