@aws-amplify/ui-react-native 1.2.9 → 1.2.11
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/.eslintrc.js +6 -95
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/Authenticator/common/DefaultContainer/styles.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/Field.d.ts +1 -0
- package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/jest.setup.js +1 -1
- package/package.json +12 -17
- package/src/Authenticator/common/DefaultContainer/styles.ts +1 -1
- package/src/version.ts +1 -1
- package/tsconfig.json +2 -14
package/.eslintrc.js
CHANGED
|
@@ -1,101 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ignorePatterns: [
|
|
5
|
-
'dist',
|
|
6
|
-
'.eslintrc.js',
|
|
7
|
-
'babel.config.js',
|
|
8
|
-
'jest.config.js',
|
|
9
|
-
'jest.setup.js',
|
|
10
|
-
],
|
|
11
|
-
extends: [
|
|
12
|
-
'eslint:recommended',
|
|
13
|
-
'plugin:jest/recommended',
|
|
14
|
-
'plugin:react/recommended',
|
|
15
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
16
|
-
'plugin:react-hooks/recommended',
|
|
17
|
-
|
|
18
|
-
// always extend last to override previous extensions
|
|
19
|
-
'prettier',
|
|
20
|
-
],
|
|
21
|
-
plugins: ['@typescript-eslint', 'jest', 'react', 'react-hooks'],
|
|
22
|
-
parser: '@typescript-eslint/parser',
|
|
23
|
-
parserOptions: {
|
|
24
|
-
ecmaFeatures: { jsx: true },
|
|
25
|
-
ecmaVersion: 12,
|
|
26
|
-
project: ['tsconfig.json'],
|
|
27
|
-
tsconfigRootDir: __dirname,
|
|
28
|
-
sourceType: 'module',
|
|
29
|
-
},
|
|
30
|
-
settings: {
|
|
31
|
-
react: {
|
|
32
|
-
version: 'detect',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
2
|
+
ignorePatterns: ['dist', '.eslintrc.js', '*.config.js', 'jest.setup.js'],
|
|
3
|
+
extends: ['amplify-ui/react'],
|
|
35
4
|
overrides: [
|
|
36
5
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
plugins: ['@typescript-eslint', 'jest'],
|
|
40
|
-
rules: {
|
|
41
|
-
'jest/unbound-method': 'error',
|
|
42
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
43
|
-
},
|
|
6
|
+
extends: ['amplify-ui/jest'],
|
|
7
|
+
files: ['**/__mocks__/**', '**/__tests__/**'],
|
|
44
8
|
},
|
|
45
9
|
],
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
'@typescript-eslint/explicit-module-boundary-types': 2,
|
|
49
|
-
'@typescript-eslint/member-ordering': 'error',
|
|
50
|
-
'@typescript-eslint/no-extra-semi': 'error',
|
|
51
|
-
'@typescript-eslint/no-floating-promises': 'off',
|
|
52
|
-
'@typescript-eslint/no-unused-expressions': [
|
|
53
|
-
'error',
|
|
54
|
-
{ allowTernary: true },
|
|
55
|
-
],
|
|
56
|
-
'@typescript-eslint/no-use-before-define': 'error',
|
|
57
|
-
'@typescript-eslint/no-unused-vars': [
|
|
58
|
-
'error',
|
|
59
|
-
{ argsIgnorePattern: '_', varsIgnorePattern: '_' },
|
|
60
|
-
],
|
|
61
|
-
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
62
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
63
|
-
'@typescript-eslint/unbound-method': 'off',
|
|
64
|
-
|
|
65
|
-
// eslint rules either not in recommended rule set or overridden
|
|
66
|
-
'comma-dangle': ['error', 'only-multiline'],
|
|
67
|
-
'function-paren-newline': 'off',
|
|
68
|
-
'generator-star-spacing': 'off',
|
|
69
|
-
'global-require': 'off',
|
|
70
|
-
'implicit-arrow-linebreak': 'off',
|
|
71
|
-
'max-params': 2,
|
|
72
|
-
'no-alert': 'error',
|
|
73
|
-
'no-console': 'error',
|
|
74
|
-
'no-eval': 'error',
|
|
75
|
-
'no-tabs': ['error', { allowIndentationTabs: true }],
|
|
76
|
-
'no-unused-vars': 'off', // prefer @typescript-eslint version
|
|
77
|
-
'prefer-const': 'error',
|
|
78
|
-
'prefer-destructuring': ['error', { array: false, object: true }],
|
|
79
|
-
|
|
80
|
-
// jest rules either not in recommended rule set or overridden
|
|
81
|
-
'jest/expect-expect': ['error', { assertFunctionNames: ['expect*'] }],
|
|
82
|
-
'jest/no-mocks-import': 'off',
|
|
83
|
-
|
|
84
|
-
// react rules either not in recommended rule set or overridden
|
|
85
|
-
'react/destructuring-assignment': ['error', 'always'],
|
|
86
|
-
'react/jsx-boolean-value': 'error',
|
|
87
|
-
'react/jsx-no-constructed-context-values': 'error',
|
|
88
|
-
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
|
|
89
|
-
'react/jsx-props-no-spreading': 'off',
|
|
90
|
-
'react/jsx-wrap-multilines': ['error', { declaration: 'ignore' }],
|
|
91
|
-
'react/no-array-index-key': 'off',
|
|
92
|
-
'react/no-danger': 'error',
|
|
93
|
-
'react/no-unused-prop-types': 'error',
|
|
94
|
-
'react/prop-types': 'off',
|
|
95
|
-
'react/static-property-placement': ['error', 'static public field'],
|
|
96
|
-
|
|
97
|
-
// react hook rules
|
|
98
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
99
|
-
'react-hooks/exhaustive-deps': 'error',
|
|
100
|
-
},
|
|
10
|
+
// point to local tsconfig
|
|
11
|
+
parserOptions: { project: ['tsconfig.json'], tsconfigRootDir: __dirname },
|
|
101
12
|
};
|
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @aws-amplify/ui-react-native
|
|
2
2
|
|
|
3
|
+
## 1.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ee2c6981e`](https://github.com/aws-amplify/amplify-ui/commit/ee2c6981e19413f0d9a9fd093d14be934ae5d63b), [`9cc835828`](https://github.com/aws-amplify/amplify-ui/commit/9cc8358284be497e67911c335dfda76c8f41bf98)]:
|
|
8
|
+
- @aws-amplify/ui@5.5.8
|
|
9
|
+
- @aws-amplify/ui-react-core@2.1.16
|
|
10
|
+
|
|
11
|
+
## 1.2.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#3497](https://github.com/aws-amplify/amplify-ui/pull/3497) [`5249a450d`](https://github.com/aws-amplify/amplify-ui/commit/5249a450dcd07487188fc57d5b6b04dbf52e1970) Thanks [@calebpollman](https://github.com/calebpollman)! - chore(tsconfig): add configs directory and ts configuration
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`a55aa4584`](https://github.com/aws-amplify/amplify-ui/commit/a55aa4584dd9aba4e97d4e36acc289238710d30e), [`6501852a7`](https://github.com/aws-amplify/amplify-ui/commit/6501852a7916cc2afb90bfb52461877c1e637b99), [`50fbe91de`](https://github.com/aws-amplify/amplify-ui/commit/50fbe91defab6172c09eb03c71671a5cc5f4d265), [`5249a450d`](https://github.com/aws-amplify/amplify-ui/commit/5249a450dcd07487188fc57d5b6b04dbf52e1970)]:
|
|
18
|
+
- @aws-amplify/ui@5.5.7
|
|
19
|
+
- @aws-amplify/ui-react-core@2.1.15
|
|
20
|
+
|
|
3
21
|
## 1.2.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewStyle } from 'react-native';
|
|
2
|
-
import { StrictTheme } from '
|
|
2
|
+
import { StrictTheme } from '../../../theme';
|
|
3
3
|
import { ContainerStyles, InnerContainerStyles } from './types';
|
|
4
4
|
export declare const getThemedStyles: ({ tokens: { colors } }: StrictTheme, insetPadding: Pick<ViewStyle, 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop'>) => Required<ContainerStyles>;
|
|
5
5
|
export declare const getInnerContainerStyles: ({ tokens: { space }, }: StrictTheme) => InnerContainerStyles;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.2.
|
|
1
|
+
export declare const VERSION = "1.2.11";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.2.
|
|
1
|
+
export const VERSION = '1.2.11';
|
package/jest.setup.js
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-native",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "yarn dist && cp -a src/assets dist",
|
|
9
|
+
"build": "yarn build:dist && cp -a src/assets dist",
|
|
10
|
+
"build:dist": "tsc --project tsconfig.dist.json",
|
|
10
11
|
"clean": "rimraf dist",
|
|
11
|
-
"dev": "yarn dist --watch",
|
|
12
|
-
"
|
|
13
|
-
"lint": "tsc --noEmit && eslint src",
|
|
12
|
+
"dev": "yarn build:dist --watch",
|
|
13
|
+
"lint": "yarn typecheck && eslint src",
|
|
14
14
|
"prebuild": "rimraf dist",
|
|
15
|
-
"test": "jest
|
|
16
|
-
"test:
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"test:ci": "yarn test",
|
|
17
|
+
"test:watch": "yarn test --watch",
|
|
18
|
+
"typecheck": "tsc --noEmit"
|
|
17
19
|
},
|
|
18
20
|
"devDependencies": {
|
|
19
21
|
"@babel/cli": "^7.17.10",
|
|
@@ -24,16 +26,9 @@
|
|
|
24
26
|
"@types/react": "^17.0.2",
|
|
25
27
|
"@types/react-native": "^0.67.6",
|
|
26
28
|
"@types/react-test-renderer": "^17.0.1",
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
|
28
|
-
"@typescript-eslint/parser": "^5.20.0",
|
|
29
29
|
"babel-jest": "^28.0.3",
|
|
30
30
|
"eslint": "^8.14.0",
|
|
31
|
-
"eslint-config-
|
|
32
|
-
"eslint-plugin-import": "^2.26.0",
|
|
33
|
-
"eslint-plugin-jest": "^26.1.4",
|
|
34
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
35
|
-
"eslint-plugin-react": "^7.29.4",
|
|
36
|
-
"eslint-plugin-react-hooks": "^4.4.0",
|
|
31
|
+
"eslint-config-amplify-ui": "0.0.0",
|
|
37
32
|
"metro-react-native-babel-preset": "^0.70.2",
|
|
38
33
|
"react": "^17.0.2",
|
|
39
34
|
"react-native": "^0.68.1",
|
|
@@ -42,8 +37,8 @@
|
|
|
42
37
|
"rimraf": "^3.0.2"
|
|
43
38
|
},
|
|
44
39
|
"dependencies": {
|
|
45
|
-
"@aws-amplify/ui": "5.5.
|
|
46
|
-
"@aws-amplify/ui-react-core": "2.1.
|
|
40
|
+
"@aws-amplify/ui": "5.5.8",
|
|
41
|
+
"@aws-amplify/ui-react-core": "2.1.16"
|
|
47
42
|
},
|
|
48
43
|
"peerDependencies": {
|
|
49
44
|
"aws-amplify": ">= 5.0.1",
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.2.
|
|
1
|
+
export const VERSION = '1.2.11';
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../configs/ts/tsconfig.react-native.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"allowSyntheticDefaultImports": true,
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"downlevelIteration": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"jsx": "react-native",
|
|
9
|
-
"noImplicitAny": true,
|
|
10
|
-
"module": "es2015",
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"noEmitOnError": true,
|
|
13
4
|
"outDir": "./dist",
|
|
14
|
-
"rootDir": "src"
|
|
15
|
-
"skipLibCheck": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"target": "esnext"
|
|
5
|
+
"rootDir": "src"
|
|
18
6
|
},
|
|
19
7
|
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
|
20
8
|
"exclude": ["node_modules"]
|