@onairos/react-native 1.0.2 → 1.0.3
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/lib/commonjs/components/OnairosButton.js +29 -121
- package/lib/commonjs/components/OnairosButton.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +8 -5
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/commonjs/index.js +12 -276
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/components/OnairosButton.js +31 -122
- package/lib/module/components/OnairosButton.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +8 -5
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/index.js +8 -31
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/package.json +1 -1
- package/src/components/OnairosButton.tsx +33 -134
- package/src/components/UniversalOnboarding.tsx +7 -4
- package/src/types/index.ts +24 -12
- package/src/types.ts +29 -0
|
@@ -6,159 +6,67 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.OnairosButton = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
10
9
|
var _UniversalOnboarding = require("./UniversalOnboarding");
|
|
11
|
-
var
|
|
12
|
-
var _useCredentials = require("../hooks/useCredentials");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _constants = require("../constants");
|
|
14
11
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
-
// import { validateCredentials } from '../utils/auth';
|
|
16
|
-
// import { COLORS } from '../constants';
|
|
17
|
-
|
|
18
12
|
const OnairosButton = ({
|
|
13
|
+
title,
|
|
14
|
+
onPress,
|
|
15
|
+
style,
|
|
16
|
+
buttonType = 'default',
|
|
17
|
+
buttonForm = 'signup',
|
|
19
18
|
AppName,
|
|
20
19
|
requestData,
|
|
21
20
|
returnLink,
|
|
21
|
+
onComplete,
|
|
22
22
|
embedd = false,
|
|
23
|
-
color = '#00BFA5',
|
|
24
|
-
icon = 'auto_awesome',
|
|
25
|
-
onResolved,
|
|
26
|
-
login = false,
|
|
27
|
-
buttonType = 'circle',
|
|
28
23
|
debug = false,
|
|
29
24
|
test = false
|
|
30
25
|
}) => {
|
|
31
26
|
const [showOnboarding, setShowOnboarding] = (0, _react.useState)(false);
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
hasCredentials,
|
|
35
|
-
getCredentials,
|
|
36
|
-
validateCredentials
|
|
37
|
-
} = (0, _useCredentials.useCredentials)();
|
|
38
|
-
const [loading, setLoading] = (0, _react.useState)(false);
|
|
39
|
-
const handlePress = (0, _react.useCallback)(async () => {
|
|
40
|
-
setLoading(true);
|
|
41
|
-
try {
|
|
42
|
-
const hasExisting = await hasCredentials();
|
|
43
|
-
if (!hasExisting) {
|
|
44
|
-
setShowOnboarding(true);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const credentials = await getCredentials();
|
|
48
|
-
if (!credentials) {
|
|
49
|
-
setShowOnboarding(true);
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const validationResult = await validateCredentials(credentials.username);
|
|
53
|
-
if (!validationResult.isValid) {
|
|
54
|
-
setShowOnboarding(true);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// If we have valid credentials, show data request modal
|
|
59
|
-
setShowDataRequest(true);
|
|
60
|
-
} catch (error) {
|
|
61
|
-
console.error('Error in button press:', error);
|
|
27
|
+
const handlePress = () => {
|
|
28
|
+
if (buttonForm === 'signup') {
|
|
62
29
|
setShowOnboarding(true);
|
|
63
|
-
}
|
|
64
|
-
|
|
30
|
+
} else {
|
|
31
|
+
onPress();
|
|
65
32
|
}
|
|
66
|
-
}
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
console.error('Error handling data request accept:', error);
|
|
76
|
-
}
|
|
77
|
-
}, [getCredentials, onResolved]);
|
|
78
|
-
(0, _react.useEffect)(() => {
|
|
79
|
-
// Setup deep linking
|
|
80
|
-
const handleDeepLink = ({
|
|
81
|
-
url
|
|
82
|
-
}) => {
|
|
83
|
-
if (url.includes('onairosreact://authenticate')) {
|
|
84
|
-
// Handle authentication callback
|
|
85
|
-
const params = new URL(url).searchParams;
|
|
86
|
-
const nonce = params.get('nonce');
|
|
87
|
-
const callback = params.get('callback');
|
|
88
|
-
if (nonce && callback) {
|
|
89
|
-
// Process authentication
|
|
90
|
-
setShowOnboarding(false);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
_reactNative.Linking.addEventListener('url', handleDeepLink);
|
|
95
|
-
return () => {
|
|
96
|
-
// Cleanup deep linking
|
|
97
|
-
// Note: Remove event listener based on RN version
|
|
98
|
-
// if (Platform.OS === 'android') {
|
|
99
|
-
// Linking.removeEventListener('url', handleDeepLink);
|
|
100
|
-
// }
|
|
101
|
-
};
|
|
102
|
-
}, []);
|
|
103
|
-
const buttonStyles = [styles.button, buttonType === 'pill' ? styles.pillButton : styles.circleButton, {
|
|
104
|
-
backgroundColor: color
|
|
105
|
-
}];
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
107
|
-
style: buttonStyles,
|
|
108
|
-
onPress: handlePress,
|
|
109
|
-
disabled: loading
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
111
|
-
name: icon,
|
|
112
|
-
size: 24,
|
|
113
|
-
color: "white"
|
|
114
|
-
}), buttonType === 'pill' && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
33
|
+
};
|
|
34
|
+
const handleOnboardingComplete = (apiUrl, token, data) => {
|
|
35
|
+
setShowOnboarding(false);
|
|
36
|
+
onComplete(apiUrl, token, data);
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
39
|
+
style: [styles.button, buttonType === 'pill' && styles.pillButton, style],
|
|
40
|
+
onPress: handlePress
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
115
42
|
style: styles.buttonText
|
|
116
|
-
},
|
|
43
|
+
}, title)), /*#__PURE__*/_react.default.createElement(_UniversalOnboarding.UniversalOnboarding, {
|
|
117
44
|
visible: showOnboarding,
|
|
118
45
|
onClose: () => setShowOnboarding(false),
|
|
119
46
|
AppName: AppName,
|
|
120
47
|
requestData: requestData,
|
|
121
48
|
returnLink: returnLink,
|
|
122
|
-
onComplete:
|
|
49
|
+
onComplete: handleOnboardingComplete,
|
|
123
50
|
embedd: embedd,
|
|
124
51
|
debug: debug,
|
|
125
52
|
test: test
|
|
126
|
-
}), /*#__PURE__*/_react.default.createElement(_DataRequestModal.DataRequestModal, {
|
|
127
|
-
visible: showDataRequest,
|
|
128
|
-
onClose: () => setShowDataRequest(false),
|
|
129
|
-
onAccept: handleDataRequestAccept,
|
|
130
|
-
requestData: requestData,
|
|
131
|
-
AppName: AppName
|
|
132
53
|
}));
|
|
133
54
|
};
|
|
134
55
|
exports.OnairosButton = OnairosButton;
|
|
135
56
|
const styles = _reactNative.StyleSheet.create({
|
|
136
57
|
button: {
|
|
58
|
+
backgroundColor: _constants.COLORS.primary,
|
|
59
|
+
paddingVertical: 12,
|
|
60
|
+
paddingHorizontal: 24,
|
|
61
|
+
borderRadius: 8,
|
|
137
62
|
alignItems: 'center',
|
|
138
|
-
justifyContent: 'center'
|
|
139
|
-
elevation: 3,
|
|
140
|
-
shadowColor: '#000',
|
|
141
|
-
shadowOffset: {
|
|
142
|
-
width: 0,
|
|
143
|
-
height: 2
|
|
144
|
-
},
|
|
145
|
-
shadowOpacity: 0.25,
|
|
146
|
-
shadowRadius: 3.84
|
|
147
|
-
},
|
|
148
|
-
circleButton: {
|
|
149
|
-
width: 60,
|
|
150
|
-
height: 60,
|
|
151
|
-
borderRadius: 30
|
|
63
|
+
justifyContent: 'center'
|
|
152
64
|
},
|
|
153
65
|
pillButton: {
|
|
154
|
-
|
|
155
|
-
paddingHorizontal: 16,
|
|
156
|
-
paddingVertical: 12,
|
|
157
|
-
borderRadius: 25
|
|
66
|
+
borderRadius: 20
|
|
158
67
|
},
|
|
159
68
|
buttonText: {
|
|
160
|
-
color: '
|
|
161
|
-
marginLeft: 8,
|
|
69
|
+
color: '#fff',
|
|
162
70
|
fontSize: 16,
|
|
163
71
|
fontWeight: '600'
|
|
164
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_UniversalOnboarding","_constants","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OnairosButton","title","onPress","style","buttonType","buttonForm","AppName","requestData","returnLink","onComplete","embedd","debug","test","showOnboarding","setShowOnboarding","useState","handlePress","handleOnboardingComplete","apiUrl","token","data","createElement","View","TouchableOpacity","styles","button","pillButton","Text","buttonText","UniversalOnboarding","visible","onClose","exports","StyleSheet","create","backgroundColor","COLORS","primary","paddingVertical","paddingHorizontal","borderRadius","alignItems","justifyContent","color","fontSize","fontWeight"],"sourceRoot":"..\\..\\..\\src","sources":["components/OnairosButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAsC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP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A8B,aAAA,CAAC1C,oBAAA,CAAAkD,mBAAmB;IAClBC,OAAO,EAAEjB,cAAe;IACxBkB,OAAO,EAAEA,CAAA,KAAMjB,iBAAiB,CAAC,KAAK,CAAE;IACxCR,OAAO,EAAEA,OAAQ;IACjBC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA,UAAW;IACvBC,UAAU,EAAEQ,wBAAyB;IACrCP,MAAM,EAAEA,MAAO;IACfC,KAAK,EAAEA,KAAM;IACbC,IAAI,EAAEA;EAAK,CACZ,CACG,CAAC;AAEX,CAAC;AAACoB,OAAA,CAAAhC,aAAA,GAAAA,aAAA;AAEF,MAAMwB,MAAM,GAAGS,uBAAU,CAACC,MAAM,CAAC;EAC/BT,MAAM,EAAE;IACNU,eAAe,EAAEC,iBAAM,CAACC,OAAO;IAC/BC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDhB,UAAU,EAAE;IACVc,YAAY,EAAE;EAChB,CAAC;EACDZ,UAAU,EAAE;IACVe,KAAK,EAAE,MAAM;IACbC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -25,14 +25,15 @@ const UniversalOnboarding = ({
|
|
|
25
25
|
requestData,
|
|
26
26
|
returnLink,
|
|
27
27
|
onComplete,
|
|
28
|
-
embedd,
|
|
29
|
-
debug,
|
|
30
|
-
test
|
|
28
|
+
embedd = false,
|
|
29
|
+
debug = false,
|
|
30
|
+
test = false
|
|
31
31
|
}) => {
|
|
32
32
|
const bottomSheetRef = (0, _react.useRef)(null);
|
|
33
33
|
const [step, setStep] = (0, _react.useState)('connect');
|
|
34
34
|
const [connections, setConnections] = (0, _react.useState)({});
|
|
35
35
|
const [pin, setPin] = (0, _react.useState)('');
|
|
36
|
+
const [selectedTier, setSelectedTier] = (0, _react.useState)('Medium');
|
|
36
37
|
const [training, setTraining] = (0, _react.useState)({
|
|
37
38
|
progress: 0,
|
|
38
39
|
eta: ''
|
|
@@ -85,11 +86,13 @@ const UniversalOnboarding = ({
|
|
|
85
86
|
clearInterval(interval);
|
|
86
87
|
onComplete('https://api2.onairos.uk', 'dummy-token', {
|
|
87
88
|
pin: userPin,
|
|
88
|
-
connections
|
|
89
|
+
connections,
|
|
90
|
+
selectedTier,
|
|
91
|
+
tierData: requestData[selectedTier]
|
|
89
92
|
});
|
|
90
93
|
}
|
|
91
94
|
}, 1000);
|
|
92
|
-
}, [connections, onComplete]);
|
|
95
|
+
}, [connections, onComplete, selectedTier, requestData]);
|
|
93
96
|
const canProceedToPin = (0, _react.useMemo)(() => {
|
|
94
97
|
const connectedPlatforms = Object.values(connections).filter(Boolean).length;
|
|
95
98
|
return connectedPlatforms >= 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bottomSheet","_interopRequireDefault","_MaterialIcons","_PlatformList","_PinInput","_TrainingModal","_useConnections","_constants","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","height","Dimensions","UniversalOnboarding","visible","onClose","AppName","requestData","returnLink","onComplete","embedd","debug","test","bottomSheetRef","useRef","step","setStep","useState","connections","setConnections","pin","setPin","training","setTraining","progress","eta","connectPlatform","disconnectPlatform","getConnectionStatus","isConnecting","useConnections","snapPoints","useMemo","useEffect","_bottomSheetRef$curre","current","expand","loadInitialStatus","_bottomSheetRef$curre2","close","useCallback","status","handlePlatformToggle","platform","connect","error","console","handlePinSubmit","userPin","interval","setInterval","Math","round","clearInterval","canProceedToPin","connectedPlatforms","values","filter","Boolean","length","renderHeader","createElement","View","style","styles","header","name","size","color","COLORS","primary","Text","headerTitle","TouchableOpacity","onPress","closeButton","renderContent","PlatformList","onToggle","isLoading","canProceed","onProceed","PinInput","onSubmit","minLength","requireSpecialChar","requireNumber","TrainingModal","onCancel","ref","enablePanDownToClose","index","container","exports","StyleSheet","create","flex","backgroundColor","flexDirection","alignItems","padding","headerBg","borderTopLeftRadius","borderTopRightRadius","fontSize","fontWeight","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/UniversalOnboarding.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,cAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAAsC,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAAA,GAAAS,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAG,CAAA,OAAAK,CAAA,CAAAI,GAAA,IAAAJ,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAAAE,CAAA,EAAAN,CAAA,EAAAK,CAAA,IAAAC,CAAA,CAAAN,CAAA,IAAAH,CAAA,CAAAG,CAAA,WAAAM,CAAA,KAAAT,CAAA,EAAAG,CAAA;AAGtC,MAAM;EAAEgB;AAAO,CAAC,GAAGC,uBAAU,CAACR,GAAG,CAAC,QAAQ,CAAC;AAEpC,MAAMS,mBAAuD,GAAGA,CAAC;EACtEC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,UAAU;EACVC,MAAM;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_bottomSheet","_interopRequireDefault","_MaterialIcons","_PlatformList","_PinInput","_TrainingModal","_useConnections","_constants","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","height","Dimensions","UniversalOnboarding","visible","onClose","AppName","requestData","returnLink","onComplete","embedd","debug","test","bottomSheetRef","useRef","step","setStep","useState","connections","setConnections","pin","setPin","selectedTier","setSelectedTier","training","setTraining","progress","eta","connectPlatform","disconnectPlatform","getConnectionStatus","isConnecting","useConnections","snapPoints","useMemo","useEffect","_bottomSheetRef$curre","current","expand","loadInitialStatus","_bottomSheetRef$curre2","close","useCallback","status","handlePlatformToggle","platform","connect","error","console","handlePinSubmit","userPin","interval","setInterval","Math","round","clearInterval","tierData","canProceedToPin","connectedPlatforms","values","filter","Boolean","length","renderHeader","createElement","View","style","styles","header","name","size","color","COLORS","primary","Text","headerTitle","TouchableOpacity","onPress","closeButton","renderContent","PlatformList","onToggle","isLoading","canProceed","onProceed","PinInput","onSubmit","minLength","requireSpecialChar","requireNumber","TrainingModal","onCancel","ref","enablePanDownToClose","index","container","exports","StyleSheet","create","flex","backgroundColor","flexDirection","alignItems","padding","headerBg","borderTopLeftRadius","borderTopRightRadius","fontSize","fontWeight","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/UniversalOnboarding.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,cAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAAsC,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CA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,CACnB,CAAC;IAER;EACF,CAAC;EAED,oBACEnC,MAAA,CAAAc,OAAA,CAAAgF,aAAA,CAAC1F,YAAA,CAAAU,OAAW;IACV4G,GAAG,EAAE/E,cAAe;IACpBoB,UAAU,EAAEA,UAAW;IACvB4D,oBAAoB;IACpBxF,OAAO,EAAEA,OAAQ;IACjByF,KAAK,EAAE1F,OAAO,GAAG,CAAC,GAAG,CAAC;EAAE,gBAExBlC,MAAA,CAAAc,OAAA,CAAAgF,aAAA,CAAC3F,YAAA,CAAA4F,IAAI;IAACC,KAAK,EAAEC,MAAM,CAAC4B;EAAU,GAC3BhC,YAAY,CAAC,CAAC,EACdgB,aAAa,CAAC,CACX,CACK,CAAC;AAElB,CAAC;AAACiB,OAAA,CAAA7F,mBAAA,GAAAA,mBAAA;AAEF,MAAMgE,MAAM,GAAG8B,uBAAU,CAACC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACnB,CAAC;EACDhC,MAAM,EAAE;IACNiC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,EAAE;IACXH,eAAe,EAAE5B,iBAAM,CAACgC,QAAQ;IAChCC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE;EACxB,CAAC;EACD/B,WAAW,EAAE;IACXwB,IAAI,EAAE,CAAC;IACPQ,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdtC,KAAK,EAAE;EACT,CAAC;EACDO,WAAW,EAAE;IACXyB,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,280 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Object.defineProperty(exports, "ConnectorScreen", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _ConnectorScreen.ConnectorScreen;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "DEEP_LINK_CONFIG", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _constants.DEEP_LINK_CONFIG;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "LoadingScreen", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _LoadingScreen.LoadingScreen;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "OAuthWebView", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _OAuthWebView.OAuthWebView;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "OnairosButton", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _OnairosButton.OnairosButton;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "OnboardingHeader", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _OnboardingHeader.OnboardingHeader;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "Overlay", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _Overlay.Overlay;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "PIN_REQUIREMENTS", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _constants.PIN_REQUIREMENTS;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "PLATFORMS", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _constants.PLATFORMS;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "PinCreationScreen", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _PinCreationScreen.PinCreationScreen;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "PinInput", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _PinInput.PinInput;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "PlatformConnector", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _PlatformConnector.PlatformConnector;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "STORAGE_KEYS", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return _constants.STORAGE_KEYS;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "UniversalOnboarding", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () {
|
|
99
|
-
return _UniversalOnboarding.UniversalOnboarding;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "authenticate", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _onairosApi.authenticate;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "base64ToBuffer", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () {
|
|
111
|
-
return _crypto.base64ToBuffer;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "cleanupOAuthService", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function () {
|
|
117
|
-
return _oauthService.cleanupOAuthService;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "connectPlatform", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return _oauthService.connectPlatform;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, "createAccount", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () {
|
|
129
|
-
return _onairosApi.createAccount;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "deleteCredentials", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () {
|
|
135
|
-
return _secureStorage.deleteCredentials;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "disconnectPlatform", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function () {
|
|
141
|
-
return _oauthService.disconnectPlatform;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "generateDeviceUsername", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () {
|
|
147
|
-
return _secureStorage.generateDeviceUsername;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(exports, "getCredentials", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function () {
|
|
153
|
-
return _secureStorage.getCredentials;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "getPlatformData", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function () {
|
|
159
|
-
return _onairosApi.getPlatformData;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "getUserProfile", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function () {
|
|
165
|
-
return _onairosApi.getUserProfile;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "hasCredentials", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function () {
|
|
171
|
-
return _secureStorage.hasCredentials;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "initializeOAuthService", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function () {
|
|
177
|
-
return _oauthService.initializeOAuthService;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "isDebugMode", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function () {
|
|
183
|
-
return _debugHelper.isDebugMode;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(exports, "logDebug", {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function () {
|
|
189
|
-
return _debugHelper.logDebug;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
Object.defineProperty(exports, "logError", {
|
|
193
|
-
enumerable: true,
|
|
194
|
-
get: function () {
|
|
195
|
-
return _debugHelper.logError;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
Object.defineProperty(exports, "refreshToken", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function () {
|
|
201
|
-
return _onairosApi.refreshToken;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "rsaEncrypt", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function () {
|
|
207
|
-
return _crypto.rsaEncrypt;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "sha256", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function () {
|
|
213
|
-
return _crypto.sha256;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "storeCredentials", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function () {
|
|
219
|
-
return _secureStorage.storeCredentials;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(exports, "storePlatformConnection", {
|
|
223
|
-
enumerable: true,
|
|
224
|
-
get: function () {
|
|
225
|
-
return _oauthService.storePlatformConnection;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "updateCredentials", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function () {
|
|
231
|
-
return _secureStorage.updateCredentials;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(exports, "updatePlatformConnections", {
|
|
235
|
-
enumerable: true,
|
|
236
|
-
get: function () {
|
|
237
|
-
return _onairosApi.updatePlatformConnections;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
Object.defineProperty(exports, "useConnections", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function () {
|
|
243
|
-
return _useConnections.useConnections;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(exports, "useCredentials", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function () {
|
|
249
|
-
return _useCredentials.useCredentials;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "validateCredentials", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () {
|
|
255
|
-
return _onairosApi.validateCredentials;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(exports, "verifyCredentials", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function () {
|
|
261
|
-
return _secureStorage.verifyCredentials;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
var _OnairosButton = require("./components/OnairosButton");
|
|
265
|
-
var _UniversalOnboarding = require("./components/UniversalOnboarding");
|
|
266
|
-
var _Overlay = require("./components/Overlay");
|
|
267
|
-
var _ConnectorScreen = require("./components/screens/ConnectorScreen");
|
|
268
|
-
var _PinCreationScreen = require("./components/screens/PinCreationScreen");
|
|
269
|
-
var _LoadingScreen = require("./components/screens/LoadingScreen");
|
|
270
|
-
var _OAuthWebView = require("./components/onboarding/OAuthWebView");
|
|
271
|
-
var _PlatformConnector = require("./components/onboarding/PlatformConnector");
|
|
272
|
-
var _OnboardingHeader = require("./components/onboarding/OnboardingHeader");
|
|
273
|
-
var _PinInput = require("./components/onboarding/PinInput");
|
|
274
|
-
var _useConnections = require("./hooks/useConnections");
|
|
275
|
-
var _useCredentials = require("./hooks/useCredentials");
|
|
276
|
-
var _secureStorage = require("./utils/secureStorage");
|
|
277
|
-
var _onairosApi = require("./utils/onairosApi");
|
|
278
|
-
var _crypto = require("./utils/crypto");
|
|
279
|
-
var _debugHelper = require("./utils/debugHelper");
|
|
280
|
-
var _oauthService = require("./services/oauthService");
|
|
281
|
-
var _constants = require("./constants");
|
|
6
|
+
exports.default = exports.CryptoUtils = exports.AuthUtils = exports.ApiUtils = void 0;
|
|
7
|
+
var _OnairosButton = _interopRequireDefault(require("./components/OnairosButton"));
|
|
8
|
+
var AuthUtils = _interopRequireWildcard(require("./utils/auth"));
|
|
9
|
+
exports.AuthUtils = AuthUtils;
|
|
10
|
+
var CryptoUtils = _interopRequireWildcard(require("./utils/crypto"));
|
|
11
|
+
exports.CryptoUtils = CryptoUtils;
|
|
12
|
+
var ApiUtils = _interopRequireWildcard(require("./utils/api"));
|
|
13
|
+
exports.ApiUtils = ApiUtils;
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
// Export the main component
|
|
17
|
+
var _default = exports.default = _OnairosButton.default; // Export utilities for advanced usage
|
|
282
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_OnairosButton","require","
|
|
1
|
+
{"version":3,"names":["_OnairosButton","_interopRequireDefault","require","AuthUtils","_interopRequireWildcard","exports","CryptoUtils","ApiUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_default","OnairosButton"],"sourceRoot":"..\\..\\src","sources":["index.js"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA0CG,OAAA,CAAAF,SAAA,GAAAA,SAAA;AAC1C,IAAAG,WAAA,GAAAF,uBAAA,CAAAF,OAAA;AAA8CG,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAC9C,IAAAC,QAAA,GAAAH,uBAAA,CAAAF,OAAA;AAAwCG,OAAA,CAAAE,QAAA,GAAAA,QAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CA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