@rownd/react-native 0.2.5 → 2.1.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/LICENSE +1 -2
- package/README.md +15 -52
- package/android/build.gradle +127 -37
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/reactnativerowndplugin/RowndPluginModule.kt +98 -0
- package/android/src/main/java/com/reactnativerowndplugin/RowndPluginPackage.kt +16 -0
- package/ios/{ReactNative.xcodeproj → Rownd.xcodeproj}/project.pbxproj +13 -12
- package/ios/Rownd.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/RowndPlugin-Bridging-Header.h +3 -0
- package/ios/RowndPlugin.m +26 -0
- package/ios/RowndPlugin.swift +83 -0
- package/ios/RowndPluginEventEmitter.m +12 -0
- package/ios/RowndPluginEventEmitter.swift +19 -0
- package/lib/commonjs/components/GlobalContext.js +30 -298
- package/lib/commonjs/components/GlobalContext.js.map +1 -1
- package/lib/commonjs/components/{BottomSheetTextInput/types.js → GlobalContext.types.js} +1 -1
- package/lib/commonjs/components/GlobalContext.types.js.map +1 -0
- package/lib/commonjs/constants/action.js +13 -0
- package/lib/commonjs/constants/action.js.map +1 -0
- package/lib/commonjs/hooks/rownd.js +15 -146
- package/lib/commonjs/hooks/rownd.js.map +1 -1
- package/lib/commonjs/index.js +2 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/reducer/rowndReducer.js +89 -0
- package/lib/commonjs/reducer/rowndReducer.js.map +1 -0
- package/lib/commonjs/utils/config.js +0 -26
- package/lib/commonjs/utils/config.js.map +1 -1
- package/lib/commonjs/utils/nativeModule.js +72 -0
- package/lib/commonjs/utils/nativeModule.js.map +1 -0
- package/lib/module/components/GlobalContext.js +29 -293
- package/lib/module/components/GlobalContext.js.map +1 -1
- package/lib/module/components/GlobalContext.types.js +2 -0
- package/lib/module/components/GlobalContext.types.js.map +1 -0
- package/lib/module/constants/action.js +6 -0
- package/lib/module/constants/action.js.map +1 -0
- package/lib/module/hooks/rownd.js +12 -137
- package/lib/module/hooks/rownd.js.map +1 -1
- package/lib/module/index.js +2 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/reducer/rowndReducer.js +78 -0
- package/lib/module/reducer/rowndReducer.js.map +1 -0
- package/lib/module/utils/config.js +1 -16
- package/lib/module/utils/config.js.map +1 -1
- package/lib/module/utils/nativeModule.js +48 -0
- package/lib/module/utils/nativeModule.js.map +1 -0
- package/lib/typescript/components/GlobalContext.d.ts +13 -0
- package/lib/typescript/{src/components/GlobalContext.d.ts → components/GlobalContext.types.d.ts} +9 -35
- package/lib/typescript/constants/action.d.ts +7 -0
- package/lib/typescript/{src/hooks → hooks}/rownd.d.ts +10 -13
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/reducer/rowndReducer.d.ts +4 -0
- package/lib/typescript/utils/config.d.ts +10 -0
- package/lib/typescript/utils/nativeModule.d.ts +10 -0
- package/package.json +36 -56
- package/rownd-react-native.podspec +36 -0
- package/src/components/GlobalContext.tsx +44 -457
- package/src/components/GlobalContext.types.ts +105 -0
- package/src/constants/action.ts +8 -0
- package/src/hooks/rownd.ts +29 -147
- package/src/index.tsx +2 -4
- package/src/reducer/rowndReducer.ts +78 -0
- package/src/utils/config.ts +0 -27
- package/src/utils/nativeModule.ts +69 -0
- package/android/src/main/java/com/reactnative/ReactNativePackage.java +0 -22
- package/android/src/main/java/com/reactnative/ReactNativeViewManager.java +0 -31
- package/ios/ReactNativeViewManager.m +0 -34
- package/lib/commonjs/assets/images/checkmark--filled.svg +0 -12
- package/lib/commonjs/assets/images/email-verify-waiting.svg +0 -36
- package/lib/commonjs/assets/images/error-icon-material.svg +0 -1
- package/lib/commonjs/assets/images/phone-verify-waiting.svg +0 -26
- package/lib/commonjs/components/AuthenticatedComponent.js +0 -35
- package/lib/commonjs/components/AuthenticatedComponent.js.map +0 -1
- package/lib/commonjs/components/AutoSigninDialog.js +0 -132
- package/lib/commonjs/components/AutoSigninDialog.js.map +0 -1
- package/lib/commonjs/components/BottomSheetTextInput/BottomSheetTextInput.js +0 -65
- package/lib/commonjs/components/BottomSheetTextInput/BottomSheetTextInput.js.map +0 -1
- package/lib/commonjs/components/BottomSheetTextInput/index.js +0 -24
- package/lib/commonjs/components/BottomSheetTextInput/index.js.map +0 -1
- package/lib/commonjs/components/BottomSheetTextInput/types.js.map +0 -1
- package/lib/commonjs/components/DarkText.js +0 -35
- package/lib/commonjs/components/DarkText.js.map +0 -1
- package/lib/commonjs/components/DefaultContext.js +0 -266
- package/lib/commonjs/components/DefaultContext.js.map +0 -1
- package/lib/commonjs/components/RowndComponents.js +0 -25
- package/lib/commonjs/components/RowndComponents.js.map +0 -1
- package/lib/commonjs/components/RowndProvider.js +0 -55
- package/lib/commonjs/components/RowndProvider.js.map +0 -1
- package/lib/commonjs/components/SignIn.js +0 -644
- package/lib/commonjs/components/SignIn.js.map +0 -1
- package/lib/commonjs/components/images/CheckmarkFilled.js +0 -40
- package/lib/commonjs/components/images/CheckmarkFilled.js.map +0 -1
- package/lib/commonjs/components/images/EmailVerifyWaiting.js +0 -100
- package/lib/commonjs/components/images/EmailVerifyWaiting.js.map +0 -1
- package/lib/commonjs/components/images/ErrorIcon.js +0 -31
- package/lib/commonjs/components/images/ErrorIcon.js.map +0 -1
- package/lib/commonjs/components/images/PhoneVerifyWaiting.js +0 -91
- package/lib/commonjs/components/images/PhoneVerifyWaiting.js.map +0 -1
- package/lib/commonjs/data/actions.js +0 -26
- package/lib/commonjs/data/actions.js.map +0 -1
- package/lib/commonjs/hooks/api.js +0 -155
- package/lib/commonjs/hooks/api.js.map +0 -1
- package/lib/commonjs/hooks/debounce.js +0 -38
- package/lib/commonjs/hooks/debounce.js.map +0 -1
- package/lib/commonjs/hooks/fingerprint.js +0 -176
- package/lib/commonjs/hooks/fingerprint.js.map +0 -1
- package/lib/commonjs/hooks/index.js +0 -48
- package/lib/commonjs/hooks/index.js.map +0 -1
- package/lib/commonjs/hooks/interval.js +0 -31
- package/lib/commonjs/hooks/interval.js.map +0 -1
- package/lib/commonjs/hooks/nav.js +0 -39
- package/lib/commonjs/hooks/nav.js.map +0 -1
- package/lib/commonjs/index.tsx.bak +0 -26
- package/lib/commonjs/types.js +0 -2
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/events.js +0 -57
- package/lib/commonjs/utils/events.js.map +0 -1
- package/lib/commonjs/utils/form.js +0 -46
- package/lib/commonjs/utils/form.js.map +0 -1
- package/lib/commonjs/utils/queue.js +0 -117
- package/lib/commonjs/utils/queue.js.map +0 -1
- package/lib/commonjs/utils/storage.js +0 -15
- package/lib/commonjs/utils/storage.js.map +0 -1
- package/lib/commonjs/utils/tokens.js +0 -35
- package/lib/commonjs/utils/tokens.js.map +0 -1
- package/lib/commonjs/utils/user-data.js +0 -21
- package/lib/commonjs/utils/user-data.js.map +0 -1
- package/lib/module/assets/images/checkmark--filled.svg +0 -12
- package/lib/module/assets/images/email-verify-waiting.svg +0 -36
- package/lib/module/assets/images/error-icon-material.svg +0 -1
- package/lib/module/assets/images/phone-verify-waiting.svg +0 -26
- package/lib/module/components/AuthenticatedComponent.js +0 -24
- package/lib/module/components/AuthenticatedComponent.js.map +0 -1
- package/lib/module/components/AutoSigninDialog.js +0 -110
- package/lib/module/components/AutoSigninDialog.js.map +0 -1
- package/lib/module/components/BottomSheetTextInput/BottomSheetTextInput.js +0 -52
- package/lib/module/components/BottomSheetTextInput/BottomSheetTextInput.js.map +0 -1
- package/lib/module/components/BottomSheetTextInput/index.js +0 -5
- package/lib/module/components/BottomSheetTextInput/index.js.map +0 -1
- package/lib/module/components/BottomSheetTextInput/types.js +0 -2
- package/lib/module/components/BottomSheetTextInput/types.js.map +0 -1
- package/lib/module/components/DarkText.js +0 -24
- package/lib/module/components/DarkText.js.map +0 -1
- package/lib/module/components/DefaultContext.js +0 -244
- package/lib/module/components/DefaultContext.js.map +0 -1
- package/lib/module/components/RowndComponents.js +0 -12
- package/lib/module/components/RowndComponents.js.map +0 -1
- package/lib/module/components/RowndProvider.js +0 -39
- package/lib/module/components/RowndProvider.js.map +0 -1
- package/lib/module/components/SignIn.js +0 -616
- package/lib/module/components/SignIn.js.map +0 -1
- package/lib/module/components/images/CheckmarkFilled.js +0 -27
- package/lib/module/components/images/CheckmarkFilled.js.map +0 -1
- package/lib/module/components/images/EmailVerifyWaiting.js +0 -87
- package/lib/module/components/images/EmailVerifyWaiting.js.map +0 -1
- package/lib/module/components/images/ErrorIcon.js +0 -18
- package/lib/module/components/images/ErrorIcon.js.map +0 -1
- package/lib/module/components/images/PhoneVerifyWaiting.js +0 -78
- package/lib/module/components/images/PhoneVerifyWaiting.js.map +0 -1
- package/lib/module/data/actions.js +0 -19
- package/lib/module/data/actions.js.map +0 -1
- package/lib/module/hooks/api.js +0 -135
- package/lib/module/hooks/api.js.map +0 -1
- package/lib/module/hooks/debounce.js +0 -29
- package/lib/module/hooks/debounce.js.map +0 -1
- package/lib/module/hooks/fingerprint.js +0 -157
- package/lib/module/hooks/fingerprint.js.map +0 -1
- package/lib/module/hooks/index.js +0 -7
- package/lib/module/hooks/index.js.map +0 -1
- package/lib/module/hooks/interval.js +0 -23
- package/lib/module/hooks/interval.js.map +0 -1
- package/lib/module/hooks/nav.js +0 -30
- package/lib/module/hooks/nav.js.map +0 -1
- package/lib/module/index.tsx.bak +0 -26
- package/lib/module/types.js +0 -2
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils/events.js +0 -45
- package/lib/module/utils/events.js.map +0 -1
- package/lib/module/utils/form.js +0 -34
- package/lib/module/utils/form.js.map +0 -1
- package/lib/module/utils/queue.js +0 -109
- package/lib/module/utils/queue.js.map +0 -1
- package/lib/module/utils/storage.js +0 -6
- package/lib/module/utils/storage.js.map +0 -1
- package/lib/module/utils/tokens.js +0 -24
- package/lib/module/utils/tokens.js.map +0 -1
- package/lib/module/utils/user-data.js +0 -14
- package/lib/module/utils/user-data.js.map +0 -1
- package/lib/package.json +0 -173
- package/lib/typescript/src/components/AuthenticatedComponent.d.ts +0 -7
- package/lib/typescript/src/components/AutoSigninDialog.d.ts +0 -2
- package/lib/typescript/src/components/BottomSheetTextInput/BottomSheetTextInput.d.ts +0 -4
- package/lib/typescript/src/components/BottomSheetTextInput/index.d.ts +0 -2
- package/lib/typescript/src/components/BottomSheetTextInput/types.d.ts +0 -3
- package/lib/typescript/src/components/DarkText.d.ts +0 -3
- package/lib/typescript/src/components/DefaultContext.d.ts +0 -12
- package/lib/typescript/src/components/RowndComponents.d.ts +0 -2
- package/lib/typescript/src/components/RowndProvider.d.ts +0 -8
- package/lib/typescript/src/components/SignIn.d.ts +0 -2
- package/lib/typescript/src/components/images/CheckmarkFilled.d.ts +0 -4
- package/lib/typescript/src/components/images/EmailVerifyWaiting.d.ts +0 -4
- package/lib/typescript/src/components/images/ErrorIcon.d.ts +0 -4
- package/lib/typescript/src/components/images/PhoneVerifyWaiting.d.ts +0 -4
- package/lib/typescript/src/data/actions.d.ts +0 -20
- package/lib/typescript/src/hooks/api.d.ts +0 -12
- package/lib/typescript/src/hooks/debounce.d.ts +0 -5
- package/lib/typescript/src/hooks/fingerprint.d.ts +0 -12
- package/lib/typescript/src/hooks/index.d.ts +0 -6
- package/lib/typescript/src/hooks/interval.d.ts +0 -2
- package/lib/typescript/src/hooks/nav.d.ts +0 -6
- package/lib/typescript/src/index.d.ts +0 -4
- package/lib/typescript/src/types.d.ts +0 -26
- package/lib/typescript/src/utils/config.d.ts +0 -18
- package/lib/typescript/src/utils/events.d.ts +0 -22
- package/lib/typescript/src/utils/form.d.ts +0 -18
- package/lib/typescript/src/utils/queue.d.ts +0 -21
- package/lib/typescript/src/utils/storage.d.ts +0 -3
- package/lib/typescript/src/utils/tokens.d.ts +0 -4
- package/lib/typescript/src/utils/user-data.d.ts +0 -3
- package/react-native.podspec +0 -19
- package/src/assets/images/checkmark--filled.svg +0 -12
- package/src/assets/images/email-verify-waiting.svg +0 -36
- package/src/assets/images/error-icon-material.svg +0 -1
- package/src/assets/images/phone-verify-waiting.svg +0 -26
- package/src/components/AuthenticatedComponent.tsx +0 -30
- package/src/components/AutoSigninDialog.tsx +0 -131
- package/src/components/BottomSheetTextInput/BottomSheetTextInput.tsx +0 -57
- package/src/components/BottomSheetTextInput/index.ts +0 -5
- package/src/components/BottomSheetTextInput/types.ts +0 -3
- package/src/components/DarkText.tsx +0 -16
- package/src/components/DefaultContext.tsx +0 -278
- package/src/components/RowndComponents.tsx +0 -18
- package/src/components/RowndProvider.tsx +0 -56
- package/src/components/SignIn.tsx +0 -797
- package/src/components/images/CheckmarkFilled.tsx +0 -30
- package/src/components/images/EmailVerifyWaiting.tsx +0 -95
- package/src/components/images/ErrorIcon.tsx +0 -11
- package/src/components/images/PhoneVerifyWaiting.tsx +0 -74
- package/src/data/actions.ts +0 -21
- package/src/hooks/api.ts +0 -162
- package/src/hooks/debounce.ts +0 -36
- package/src/hooks/fingerprint.ts +0 -217
- package/src/hooks/index.ts +0 -7
- package/src/hooks/interval.ts +0 -25
- package/src/hooks/nav.tsx +0 -29
- package/src/index.tsx.bak +0 -26
- package/src/types.ts +0 -27
- package/src/utils/events.ts +0 -54
- package/src/utils/form.tsx +0 -64
- package/src/utils/queue.ts +0 -75
- package/src/utils/storage.ts +0 -7
- package/src/utils/tokens.ts +0 -26
- package/src/utils/user-data.ts +0 -15
package/lib/package.json
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rownd/react-native",
|
|
3
|
-
"version": "0.2.5",
|
|
4
|
-
"description": "Rownd bindings for React Native",
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "lib/commonjs/index",
|
|
7
|
-
"module": "lib/module/index",
|
|
8
|
-
"types": "lib/typescript/src/index.d.ts",
|
|
9
|
-
"react-native": "src/index",
|
|
10
|
-
"source": "src/index",
|
|
11
|
-
"files": [
|
|
12
|
-
"src",
|
|
13
|
-
"lib",
|
|
14
|
-
"android",
|
|
15
|
-
"ios",
|
|
16
|
-
"cpp",
|
|
17
|
-
"package.json",
|
|
18
|
-
"react-native.podspec",
|
|
19
|
-
"!lib/typescript/example",
|
|
20
|
-
"!android/build",
|
|
21
|
-
"!ios/build",
|
|
22
|
-
"!**/__tests__",
|
|
23
|
-
"!**/__fixtures__",
|
|
24
|
-
"!**/__mocks__"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"typescript": "tsc --noEmit",
|
|
29
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
30
|
-
"prepare": "bob build && cp package.json lib/",
|
|
31
|
-
"release": "release-it",
|
|
32
|
-
"example": "yarn --cwd example",
|
|
33
|
-
"pods": "cd example && pod-install --quiet",
|
|
34
|
-
"bootstrap": "yarn example && yarn && yarn pods"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"react-native",
|
|
38
|
-
"ios",
|
|
39
|
-
"android"
|
|
40
|
-
],
|
|
41
|
-
"repository": "https://github.com/rownd/react-native",
|
|
42
|
-
"author": "Matt Hamann <mhamann@rownd.io> (https://github.com/rownd)",
|
|
43
|
-
"license": "MIT",
|
|
44
|
-
"bugs": {
|
|
45
|
-
"url": "https://github.com/rownd/react-native/issues"
|
|
46
|
-
},
|
|
47
|
-
"homepage": "https://github.com/rownd/react-native#readme",
|
|
48
|
-
"publishConfig": {
|
|
49
|
-
"registry": "https://registry.npmjs.org/",
|
|
50
|
-
"access": "public"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@commitlint/config-conventional": "^11.0.0",
|
|
54
|
-
"@react-native-community/eslint-config": "^2.0.0",
|
|
55
|
-
"@release-it/conventional-changelog": "^2.0.0",
|
|
56
|
-
"@types/date-fns": "^2.6.0",
|
|
57
|
-
"@types/debounce": "^1.2.1",
|
|
58
|
-
"@types/jest": "^26.0.0",
|
|
59
|
-
"@types/lodash-es": "^4.17.6",
|
|
60
|
-
"@types/phone": "^2.4.1",
|
|
61
|
-
"@types/react": "^17.0.2",
|
|
62
|
-
"@types/react-native": "^0.67.8",
|
|
63
|
-
"@types/react-native-base64": "^0.2.0",
|
|
64
|
-
"commitlint": "^11.0.0",
|
|
65
|
-
"eslint": "^7.2.0",
|
|
66
|
-
"eslint-config-prettier": "^7.0.0",
|
|
67
|
-
"eslint-plugin-prettier": "^3.1.3",
|
|
68
|
-
"husky": "^6.0.0",
|
|
69
|
-
"jest": "^26.0.1",
|
|
70
|
-
"pod-install": "^0.1.0",
|
|
71
|
-
"prettier": "^2.0.5",
|
|
72
|
-
"react": "^17.0.2",
|
|
73
|
-
"react-native": "^0.68.2",
|
|
74
|
-
"react-native-builder-bob": "^0.18.0",
|
|
75
|
-
"release-it": "^14.2.2",
|
|
76
|
-
"typescript": "^4.1.3"
|
|
77
|
-
},
|
|
78
|
-
"peerDependencies": {
|
|
79
|
-
"@gorhom/bottom-sheet": "*",
|
|
80
|
-
"@react-native-clipboard/clipboard": "*",
|
|
81
|
-
"react": "*",
|
|
82
|
-
"react-native": "*",
|
|
83
|
-
"react-native-device-info": "*",
|
|
84
|
-
"react-native-mmkv": "*",
|
|
85
|
-
"react-native-sha256": "*",
|
|
86
|
-
"react-native-svg": "*"
|
|
87
|
-
},
|
|
88
|
-
"jest": {
|
|
89
|
-
"preset": "react-native",
|
|
90
|
-
"modulePathIgnorePatterns": [
|
|
91
|
-
"<rootDir>/example/node_modules",
|
|
92
|
-
"<rootDir>/lib/"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"commitlint": {
|
|
96
|
-
"extends": [
|
|
97
|
-
"@commitlint/config-conventional"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"release-it": {
|
|
101
|
-
"git": {
|
|
102
|
-
"commitMessage": "chore: release ${version}",
|
|
103
|
-
"tagName": "v${version}"
|
|
104
|
-
},
|
|
105
|
-
"npm": {
|
|
106
|
-
"publish": true
|
|
107
|
-
},
|
|
108
|
-
"github": {
|
|
109
|
-
"release": true
|
|
110
|
-
},
|
|
111
|
-
"plugins": {
|
|
112
|
-
"@release-it/conventional-changelog": {
|
|
113
|
-
"preset": "angular"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"eslintConfig": {
|
|
118
|
-
"root": true,
|
|
119
|
-
"extends": [
|
|
120
|
-
"@react-native-community",
|
|
121
|
-
"prettier"
|
|
122
|
-
],
|
|
123
|
-
"rules": {
|
|
124
|
-
"prettier/prettier": [
|
|
125
|
-
"error",
|
|
126
|
-
{
|
|
127
|
-
"quoteProps": "consistent",
|
|
128
|
-
"singleQuote": true,
|
|
129
|
-
"tabWidth": 2,
|
|
130
|
-
"trailingComma": "es5",
|
|
131
|
-
"useTabs": false
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"eslintIgnore": [
|
|
137
|
-
"node_modules/",
|
|
138
|
-
"lib/"
|
|
139
|
-
],
|
|
140
|
-
"prettier": {
|
|
141
|
-
"quoteProps": "consistent",
|
|
142
|
-
"singleQuote": true,
|
|
143
|
-
"tabWidth": 2,
|
|
144
|
-
"trailingComma": "es5",
|
|
145
|
-
"useTabs": false
|
|
146
|
-
},
|
|
147
|
-
"react-native-builder-bob": {
|
|
148
|
-
"source": "src",
|
|
149
|
-
"output": "lib",
|
|
150
|
-
"targets": [
|
|
151
|
-
"commonjs",
|
|
152
|
-
"module",
|
|
153
|
-
[
|
|
154
|
-
"typescript",
|
|
155
|
-
{
|
|
156
|
-
"project": "tsconfig.build.json"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
"dependencies": {
|
|
162
|
-
"@react-native-picker/picker": "^2.4.1",
|
|
163
|
-
"date-fns": "^2.28.0",
|
|
164
|
-
"debounce": "^1.2.1",
|
|
165
|
-
"eventemitter3": "^4.0.7",
|
|
166
|
-
"jwt-decode": "^3.1.2",
|
|
167
|
-
"ky": "^0.30.0",
|
|
168
|
-
"lodash-es": "^4.17.21",
|
|
169
|
-
"phone": "^3.1.20",
|
|
170
|
-
"react-native-base64": "^0.2.1",
|
|
171
|
-
"usehooks-ts": "^2.5.4"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IAuthenticatedComponentProps {
|
|
3
|
-
shouldRequestSignIn?: boolean;
|
|
4
|
-
renderContentWhenUnauthenticated?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default function ({ shouldRequestSignIn, renderContentWhenUnauthenticated, children, }: React.PropsWithChildren<IAuthenticatedComponentProps>): JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IConfig } from '../utils/config';
|
|
2
|
-
export declare type UserInfoResp = {
|
|
3
|
-
data: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
redacted: string[];
|
|
7
|
-
};
|
|
8
|
-
declare type DefaultContextProps = {
|
|
9
|
-
config: IConfig;
|
|
10
|
-
};
|
|
11
|
-
export declare function DefaultContext({ config }: DefaultContextProps): null;
|
|
12
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare enum ActionType {
|
|
2
|
-
SET_CONTAINER_VISIBLE = "SET_CONTAINER_VISIBLE",
|
|
3
|
-
CHANGE_ROUTE = "CHANGE_ROUTE",
|
|
4
|
-
LOGIN_SUCCESS = "LOGIN_SUCCESS",
|
|
5
|
-
LOAD_USER = "LOAD_USER",
|
|
6
|
-
REFRESH_TOKEN = "REFRESH_TOKEN",
|
|
7
|
-
SIGN_OUT = "SIGN_OUT",
|
|
8
|
-
UPDATE_LOCAL_ACLS = "UPDATE_LOCAL_ACLS",
|
|
9
|
-
SET_USER_DATA_FIELD = "SET_USER_DATA_FIELD",
|
|
10
|
-
SET_USER_DATA = "SET_USER_DATA",
|
|
11
|
-
SET_REFRESH_USER_DATA = "SET_REFRESH_USER_DATA",
|
|
12
|
-
LOAD_STATE = "LOAD_STATE",
|
|
13
|
-
SET_SECTION = "SET_SECTION",
|
|
14
|
-
SET_IS_SAVING_USER_DATA = "SET_IS_SAVING_USER_DATA",
|
|
15
|
-
SET_APP_CONFIG = "SET_APP_CONFIG"
|
|
16
|
-
}
|
|
17
|
-
export declare type TAction = {
|
|
18
|
-
type: ActionType;
|
|
19
|
-
payload?: any;
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GlobalState } from '../components/GlobalContext';
|
|
2
|
-
declare type RefreshTokenResp = {
|
|
3
|
-
access_token: string;
|
|
4
|
-
refresh_token: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const DEFAULT_USER_AGENT: string;
|
|
7
|
-
export default function useApi(): {
|
|
8
|
-
client: import("ky/distribution/types/ky").KyInstance;
|
|
9
|
-
newAccessTokenFromRefreshToken: (stateCopy?: GlobalState) => Promise<RefreshTokenResp>;
|
|
10
|
-
isNewAccessTokenNeeded: (request?: Request) => boolean;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface IChallenge {
|
|
2
|
-
key: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
export default function (): {
|
|
6
|
-
getFingerprint: () => Promise<{
|
|
7
|
-
visitorId: string;
|
|
8
|
-
}>;
|
|
9
|
-
getChallengeIfPresent: (appId: string | undefined, challengeLookupValues: string[]) => Promise<IChallenge | null>;
|
|
10
|
-
clearFingerprint: (challenge: string) => void;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare type TRowndContext = {
|
|
2
|
-
requestSignIn: Function;
|
|
3
|
-
signOut: Function;
|
|
4
|
-
getAccessToken: Function;
|
|
5
|
-
is_authenticated: boolean;
|
|
6
|
-
is_initializing: boolean;
|
|
7
|
-
access_token: string | null;
|
|
8
|
-
auth: AuthContext;
|
|
9
|
-
user: UserContext;
|
|
10
|
-
};
|
|
11
|
-
declare type AuthContext = {
|
|
12
|
-
access_token: string | null;
|
|
13
|
-
app_id?: string;
|
|
14
|
-
is_authenticated: boolean;
|
|
15
|
-
is_verified_user?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare type UserContext = {
|
|
18
|
-
data: {
|
|
19
|
-
id?: string;
|
|
20
|
-
email?: string | null;
|
|
21
|
-
phone?: string | null;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
|
-
redacted_fields: string[];
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IConfig {
|
|
2
|
-
baseUrl: string;
|
|
3
|
-
apiUrl: string;
|
|
4
|
-
pdcBaseUrl: string;
|
|
5
|
-
appKey: string;
|
|
6
|
-
postLoginUrl: null | string;
|
|
7
|
-
postRegistrationUrl: null | string;
|
|
8
|
-
locationHash: null | string;
|
|
9
|
-
postAuthenticationApi: null | PostAuthApiSpec;
|
|
10
|
-
}
|
|
11
|
-
export declare type PostAuthApiSpec = {
|
|
12
|
-
method: 'post' | 'put';
|
|
13
|
-
url: string;
|
|
14
|
-
extra_headers: {
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare function createConfig(opts: Partial<IConfig>): IConfig;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import EventEmitter from 'eventemitter3';
|
|
2
|
-
export declare enum EventType {
|
|
3
|
-
AUTH = "auth",
|
|
4
|
-
SIGN_OUT = "sign_out",
|
|
5
|
-
USER_DATA = "user_data",
|
|
6
|
-
USER_DATA_SAVED = "user_data_saved"
|
|
7
|
-
}
|
|
8
|
-
export declare type TAuthEvent = {
|
|
9
|
-
access_token: string;
|
|
10
|
-
user_id: string;
|
|
11
|
-
app_id: string;
|
|
12
|
-
};
|
|
13
|
-
declare type EventListenerOptions = {
|
|
14
|
-
once?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const events: {
|
|
17
|
-
addEventListener: (type: string, callback: (...args: any[]) => void | null, options?: boolean | EventListenerOptions | undefined) => void;
|
|
18
|
-
removeEventListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean | undefined) => EventEmitter<string | symbol, any>;
|
|
19
|
-
dispatchEvent: (event: CustomEvent) => boolean;
|
|
20
|
-
dispatch(type: EventType, data: any): boolean;
|
|
21
|
-
};
|
|
22
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type FormFieldProps = {
|
|
3
|
-
id?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
options?: [
|
|
10
|
-
{
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}
|
|
14
|
-
] | null;
|
|
15
|
-
onChange?: (value: string) => void;
|
|
16
|
-
};
|
|
17
|
-
export declare function renderField({ id, label, name, type, value, placeholder, options, onChange, }: FormFieldProps): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare type QueueItem = {
|
|
2
|
-
action: () => Promise<any>;
|
|
3
|
-
resolve: (value?: any) => void;
|
|
4
|
-
reject: (reason?: any) => void;
|
|
5
|
-
count: number;
|
|
6
|
-
};
|
|
7
|
-
declare class Queue {
|
|
8
|
-
#private;
|
|
9
|
-
constructor();
|
|
10
|
-
enqueue(item: QueueItem | (() => Promise<any>)): void;
|
|
11
|
-
dequeue(): any;
|
|
12
|
-
get size(): number;
|
|
13
|
-
}
|
|
14
|
-
declare class AutoQueue<T> extends Queue {
|
|
15
|
-
#private;
|
|
16
|
-
_cache: Record<string, unknown>;
|
|
17
|
-
constructor();
|
|
18
|
-
enqueue(action: () => Promise<any>): Promise<T>;
|
|
19
|
-
dequeue(): Promise<boolean>;
|
|
20
|
-
}
|
|
21
|
-
export default AutoQueue;
|
package/react-native.podspec
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
|
|
5
|
-
Pod::Spec.new do |s|
|
|
6
|
-
s.name = "react-native"
|
|
7
|
-
s.version = package["version"]
|
|
8
|
-
s.summary = package["description"]
|
|
9
|
-
s.homepage = package["homepage"]
|
|
10
|
-
s.license = package["license"]
|
|
11
|
-
s.authors = package["author"]
|
|
12
|
-
|
|
13
|
-
s.platforms = { :ios => "10.0" }
|
|
14
|
-
s.source = { :git => "https://github.com/rownd/react-native.git", :tag => "#{s.version}" }
|
|
15
|
-
|
|
16
|
-
s.source_files = "ios/**/*.{h,m,mm}"
|
|
17
|
-
|
|
18
|
-
s.dependency "React-Core"
|
|
19
|
-
end
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
2
|
-
<defs>
|
|
3
|
-
<style>
|
|
4
|
-
.cls-1 {
|
|
5
|
-
fill: none;
|
|
6
|
-
}
|
|
7
|
-
</style>
|
|
8
|
-
</defs>
|
|
9
|
-
<path d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"/>
|
|
10
|
-
<polygon id="inner-path" class="cls-1" points="14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591"/>
|
|
11
|
-
<rect id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" class="cls-1" width="32" height="32"/>
|
|
12
|
-
</svg>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="79px" height="68px" viewBox="0 0 79 68" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>Group</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<rect id="path-1" x="9.69736842" y="6.17105263" width="53.7763158" height="45.8421053" rx="8"></rect>
|
|
6
|
-
<filter x="-27.0%" y="-20.7%" width="153.9%" height="163.3%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
-
<feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
-
<feGaussianBlur stdDeviation="4" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
-
</filter>
|
|
11
|
-
<path d="M1.49198314,22.8826009 L27.3602885,37.5009111 C33.5004408,40.9707422 41.014234,40.9500831 47.1352131,37.4465401 L72.5558685,22.8961951 C73.0351888,22.6218404 73.6461631,22.7879979 73.9205178,23.2673182 C74.007089,23.4185653 74.0526316,23.5898106 74.0526316,23.7640813 L74.0526316,63 C74.0526316,65.209139 72.2617706,67 70.0526316,67 L4,67 C1.790861,67 2.705415e-16,65.209139 0,63 L0,23.7532056 C8.43762138e-16,23.2009209 0.44771525,22.7532056 1,22.7532056 C1.17240673,22.7532056 1.34188502,22.7977797 1.49198314,22.8826009 Z" id="path-3"></path>
|
|
12
|
-
<filter x="-4.7%" y="-8.4%" width="109.5%" height="114.0%" filterUnits="objectBoundingBox" id="filter-4">
|
|
13
|
-
<feOffset dx="0" dy="-1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
14
|
-
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
15
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
16
|
-
</filter>
|
|
17
|
-
</defs>
|
|
18
|
-
<g id="V2-post--feedback" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
19
|
-
<g id="xlg-1312px-16-column-copy-96" transform="translate(-616.000000, -265.000000)">
|
|
20
|
-
<g id="Group" transform="translate(618.000000, 265.000000)">
|
|
21
|
-
<path d="M1.1333848,21.7417845 L33.0948714,2.49908682 C35.6464021,0.96291506 38.8400625,0.97130271 41.383489,2.52085558 L72.9358668,21.743773 C73.4075139,22.0311185 73.5569199,22.6464036 73.2695744,23.1180507 C73.2235298,23.1936281 73.1676563,23.2627588 73.1034181,23.3236315 L37.2457723,57.3026316 L37.2457723,57.3026316 L0.965647178,23.3284209 C0.562522036,22.9509179 0.54175124,22.3180937 0.919254307,21.9149685 C0.982302388,21.8476412 1.0543624,21.7893607 1.1333848,21.7417845 Z" id="Path-28" fill="#545454"></path>
|
|
22
|
-
<g id="Rectangle">
|
|
23
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
24
|
-
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-1"></use>
|
|
25
|
-
</g>
|
|
26
|
-
<rect id="Rectangle" fill-opacity="0.4" fill="#D8D8D8" x="18.5131579" y="19.3947368" width="36.1447368" height="3.52631579"></rect>
|
|
27
|
-
<rect id="Rectangle-Copy" fill-opacity="0.4" fill="#D8D8D8" x="18.5131579" y="27.3289474" width="36.1447368" height="26.4473684"></rect>
|
|
28
|
-
<g id="Rectangle">
|
|
29
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
|
|
30
|
-
<use fill="#646464" fill-rule="evenodd" xlink:href="#path-3"></use>
|
|
31
|
-
</g>
|
|
32
|
-
<path d="M23.2845382,51.744338 L1.76315789,67 L1.76315789,67 L71.4078947,67 L49.8865144,51.744338 C41.9186006,46.0961966 31.252452,46.0961966 23.2845382,51.744338 Z" id="Path-29" fill="#545454"></path>
|
|
33
|
-
</g>
|
|
34
|
-
</g>
|
|
35
|
-
</g>
|
|
36
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="48" width="48"><path d="M24 34q.7 0 1.175-.475.475-.475.475-1.175 0-.7-.475-1.175Q24.7 30.7 24 30.7q-.7 0-1.175.475-.475.475-.475 1.175 0 .7.475 1.175Q23.3 34 24 34Zm-1.35-7.65h3V13.7h-3ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 23.95q0-4.1 1.575-7.75 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24.05 4q4.1 0 7.75 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm.05-3q7.05 0 12-4.975T41 23.95q0-7.05-4.95-12T24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24.05 41ZM24 24Z"/></svg>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="62px" height="100px" viewBox="0 0 62 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<title>unverified-phone</title>
|
|
4
|
-
<defs>
|
|
5
|
-
<rect id="path-1" x="0" y="0" width="58" height="96" rx="8"></rect>
|
|
6
|
-
<filter x="-5.2%" y="-3.1%" width="110.3%" height="106.2%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
-
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
-
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
-
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
-
</filter>
|
|
11
|
-
</defs>
|
|
12
|
-
<g id="SMS-verify-from-web-stay-on-web-(BR)" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
-
<g id="xlg-1312px-16-column-copy-51" transform="translate(-625.000000, -259.000000)">
|
|
14
|
-
<g id="unverified-phone" transform="translate(627.000000, 261.000000)">
|
|
15
|
-
<g id="Rectangle">
|
|
16
|
-
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
17
|
-
<use fill="#444444" fill-rule="evenodd" xlink:href="#path-1"></use>
|
|
18
|
-
</g>
|
|
19
|
-
<circle id="Oval" fill="#000000" cx="29" cy="89" r="5"></circle>
|
|
20
|
-
<rect id="Rectangle" fill="#FFFFFF" x="5" y="11" width="48" height="71" rx="2"></rect>
|
|
21
|
-
<rect id="Rectangle" fill-opacity="0.4" fill="#D8D8D8" x="10" y="20" width="38" height="5"></rect>
|
|
22
|
-
<rect id="Rectangle-Copy" fill-opacity="0.4" fill="#D8D8D8" x="10" y="31" width="38" height="36"></rect>
|
|
23
|
-
</g>
|
|
24
|
-
</g>
|
|
25
|
-
</g>
|
|
26
|
-
</svg>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
const { useRownd } = require('../hooks/rownd');
|
|
4
|
-
|
|
5
|
-
interface IAuthenticatedComponentProps {
|
|
6
|
-
shouldRequestSignIn?: boolean;
|
|
7
|
-
renderContentWhenUnauthenticated?: boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default function ({
|
|
11
|
-
shouldRequestSignIn,
|
|
12
|
-
renderContentWhenUnauthenticated,
|
|
13
|
-
children,
|
|
14
|
-
}: React.PropsWithChildren<IAuthenticatedComponentProps>) {
|
|
15
|
-
const { is_authenticated, requestSignIn } = useRownd();
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (shouldRequestSignIn && !is_authenticated) {
|
|
19
|
-
requestSignIn();
|
|
20
|
-
}
|
|
21
|
-
}, [is_authenticated, requestSignIn, shouldRequestSignIn]);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<>
|
|
25
|
-
{(is_authenticated || renderContentWhenUnauthenticated) && (
|
|
26
|
-
<>{children}</>
|
|
27
|
-
)}
|
|
28
|
-
</>
|
|
29
|
-
);
|
|
30
|
-
}
|