@bifold/core 2.11.11 → 2.11.12
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/inputs/BiometryControl.js +4 -3
- package/lib/commonjs/components/inputs/BiometryControl.js.map +1 -1
- package/lib/commonjs/components/misc/PINScreenTitleText.js +2 -4
- package/lib/commonjs/components/misc/PINScreenTitleText.js.map +1 -1
- package/lib/commonjs/screens/PINChange.js +5 -3
- package/lib/commonjs/screens/PINChange.js.map +1 -1
- package/lib/commonjs/screens/PINChangeSuccess.js +5 -3
- package/lib/commonjs/screens/PINChangeSuccess.js.map +1 -1
- package/lib/commonjs/screens/PINCreate.js +13 -31
- package/lib/commonjs/screens/PINCreate.js.map +1 -1
- package/lib/commonjs/screens/PINEnter.js +36 -52
- package/lib/commonjs/screens/PINEnter.js.map +1 -1
- package/lib/commonjs/screens/PINVerify.js +6 -4
- package/lib/commonjs/screens/PINVerify.js.map +1 -1
- package/lib/commonjs/screens/PushNotifications.js +6 -26
- package/lib/commonjs/screens/PushNotifications.js.map +1 -1
- package/lib/commonjs/screens/TogglePushNotifications.js +13 -27
- package/lib/commonjs/screens/TogglePushNotifications.js.map +1 -1
- package/lib/commonjs/screens/UpdateAvailable.js +23 -44
- package/lib/commonjs/screens/UpdateAvailable.js.map +1 -1
- package/lib/module/components/inputs/BiometryControl.js +4 -3
- package/lib/module/components/inputs/BiometryControl.js.map +1 -1
- package/lib/module/components/misc/PINScreenTitleText.js +2 -4
- package/lib/module/components/misc/PINScreenTitleText.js.map +1 -1
- package/lib/module/screens/PINChange.js +5 -3
- package/lib/module/screens/PINChange.js.map +1 -1
- package/lib/module/screens/PINChangeSuccess.js +5 -3
- package/lib/module/screens/PINChangeSuccess.js.map +1 -1
- package/lib/module/screens/PINCreate.js +14 -32
- package/lib/module/screens/PINCreate.js.map +1 -1
- package/lib/module/screens/PINEnter.js +36 -52
- package/lib/module/screens/PINEnter.js.map +1 -1
- package/lib/module/screens/PINVerify.js +6 -4
- package/lib/module/screens/PINVerify.js.map +1 -1
- package/lib/module/screens/PushNotifications.js +6 -26
- package/lib/module/screens/PushNotifications.js.map +1 -1
- package/lib/module/screens/TogglePushNotifications.js +14 -28
- package/lib/module/screens/TogglePushNotifications.js.map +1 -1
- package/lib/module/screens/UpdateAvailable.js +24 -45
- package/lib/module/screens/UpdateAvailable.js.map +1 -1
- package/lib/typescript/src/components/misc/PINScreenTitleText.d.ts.map +1 -1
- package/lib/typescript/src/components/views/ScreenWrapper.d.ts +1 -1
- package/lib/typescript/src/screens/PINCreate.d.ts.map +1 -1
- package/lib/typescript/src/screens/PINEnter.d.ts.map +1 -1
- package/lib/typescript/src/screens/PushNotifications.d.ts.map +1 -1
- package/lib/typescript/src/screens/TogglePushNotifications.d.ts.map +1 -1
- package/lib/typescript/src/screens/UpdateAvailable.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -37,7 +37,8 @@ const PINVerify = ({
|
|
|
37
37
|
const [loading, setLoading] = useState(false);
|
|
38
38
|
const [alertModalVisible, setAlertModalVisible] = useState(false);
|
|
39
39
|
const {
|
|
40
|
-
ColorPalette
|
|
40
|
+
ColorPalette,
|
|
41
|
+
Spacing
|
|
41
42
|
} = useTheme();
|
|
42
43
|
const {
|
|
43
44
|
ButtonLoading,
|
|
@@ -102,7 +103,7 @@ const PINVerify = ({
|
|
|
102
103
|
const style = StyleSheet.create({
|
|
103
104
|
screenContainer: {
|
|
104
105
|
flex: 1,
|
|
105
|
-
padding:
|
|
106
|
+
padding: Spacing.md,
|
|
106
107
|
backgroundColor: ColorPalette.brand.primaryBackground,
|
|
107
108
|
justifyContent: 'space-between'
|
|
108
109
|
},
|
|
@@ -124,7 +125,7 @@ const PINVerify = ({
|
|
|
124
125
|
},
|
|
125
126
|
changeBiometricsHeader: {
|
|
126
127
|
marginTop: 0,
|
|
127
|
-
marginBottom:
|
|
128
|
+
marginBottom: Spacing.xl
|
|
128
129
|
},
|
|
129
130
|
loadingContainer: {
|
|
130
131
|
justifyContent: 'center',
|
|
@@ -133,11 +134,12 @@ const PINVerify = ({
|
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
return /*#__PURE__*/React.createElement(ScreenWrapper, {
|
|
137
|
+
padded: false,
|
|
136
138
|
keyboardActive: true
|
|
137
139
|
}, /*#__PURE__*/React.createElement(View, {
|
|
138
140
|
style: style.screenContainer
|
|
139
141
|
}, /*#__PURE__*/React.createElement(View, null, usage === PINEntryUsage.ChangeBiometrics && /*#__PURE__*/React.createElement(ThemedText, {
|
|
140
|
-
variant: "
|
|
142
|
+
variant: "headingThree",
|
|
141
143
|
style: style.changeBiometricsHeader
|
|
142
144
|
}, t('PINEnter.ChangeBiometricsHeader')), usage !== PINEntryUsage.ChangePIN && /*#__PURE__*/React.createElement(ThemedText, {
|
|
143
145
|
style: style.helpText
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useState","useTranslation","Keyboard","StyleSheet","View","Button","ButtonType","PINInput","InfoBoxType","PopupModal","ThemedText","ScreenWrapper","minPINLength","TOKENS","useServices","useAnimatedComponents","useAuth","useTheme","usePreventScreenCapture","testIdWithKey","InlineErrorType","PINEntryUsage","PINVerify","setAuthenticated","usage","PINCheck","onCancelAuth","t","verifyPIN","PIN","setPIN","continueDisabled","setContinueDisabled","loading","setLoading","alertModalVisible","setAlertModalVisible","ColorPalette","ButtonLoading","LoadingSpinner","inlineMessageField","setInlineMessageField","preventScreenCapture","inlineMessages","CONFIG","INLINE_ERRORS","undefined","clearAlertModal","ChangePIN","onPINInputCompleted","userPinInput","isPINVerified","enabled","message","inlineType","error","config","inputLabelText","ChangeBiometrics","inputTestId","primaryButtonText","primaryButtonTestId","helpText","isContinueDisabled","length","style","create","screenContainer","flex","padding","backgroundColor","brand","primaryBackground","justifyContent","buttonContainer","width","alignSelf","textAlign","marginBottom","modalText","marginVertical","changeBiometricsHeader","marginTop","loadingContainer","alignItems","createElement","keyboardActive","variant","onPINChanged","dismiss","testID","accessibilityLabel","autoFocus","inlineMessage","onSubmitEditing","size","color","primary","title","buttonType","Primary","disabled","onPress","Secondary","notificationType","Info","onCallToActionLabel","onCallToActionPressed"],"sourceRoot":"../../../src","sources":["screens/PINVerify.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC/D,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEzD,OAAOC,MAAM,IAAIC,UAAU,QAAQ,8BAA8B;AAEjE,OAAOC,QAAQ,MAAM,+BAA+B;AACpD,SAASC,WAAW,QAAQ,4BAA4B;AACxD,OAAOC,UAAU,MAAM,iCAAiC;AACxD,SAASC,UAAU,QAAQ,gCAAgC;AAC3D,OAAOC,aAAa,MAAM,mCAAmC;AAC7D,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,MAAM,EAAEC,WAAW,QAAQ,kBAAkB;AACtD,SAASC,qBAAqB,QAAQ,iCAAiC;AACvE,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,OAAOC,uBAAuB,MAAM,yBAAyB;AAC7D,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,eAAe,QAAQ,sCAAsC;AAQtE,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAMzB,MAAMC,SAAmC,GAAGA,CAAC;EAAEC,gBAAgB;EAAEC,KAAK,GAAGH,aAAa,CAACI,QAAQ;EAAEC;AAAa,CAAC,KAAK;EAClH,MAAM;IAAEC;EAAE,CAAC,GAAG1B,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAE2B;EAAU,CAAC,GAAGZ,OAAO,CAAC,CAAC;EAC/B,MAAM,CAACa,GAAG,EAAEC,MAAM,CAAC,GAAG9B,QAAQ,CAAS,EAAE,CAAC;EAC1C,MAAM,CAAC+B,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGhC,QAAQ,CAAC,KAAK,CAAC;EAC/D,MAAM,CAACiC,OAAO,EAAEC,UAAU,CAAC,GAAGlC,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM,CAACmC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGpC,QAAQ,CAAU,KAAK,CAAC;EAC1E,MAAM;IAAEqC;
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useState","useTranslation","Keyboard","StyleSheet","View","Button","ButtonType","PINInput","InfoBoxType","PopupModal","ThemedText","ScreenWrapper","minPINLength","TOKENS","useServices","useAnimatedComponents","useAuth","useTheme","usePreventScreenCapture","testIdWithKey","InlineErrorType","PINEntryUsage","PINVerify","setAuthenticated","usage","PINCheck","onCancelAuth","t","verifyPIN","PIN","setPIN","continueDisabled","setContinueDisabled","loading","setLoading","alertModalVisible","setAlertModalVisible","ColorPalette","Spacing","ButtonLoading","LoadingSpinner","inlineMessageField","setInlineMessageField","preventScreenCapture","inlineMessages","CONFIG","INLINE_ERRORS","undefined","clearAlertModal","ChangePIN","onPINInputCompleted","userPinInput","isPINVerified","enabled","message","inlineType","error","config","inputLabelText","ChangeBiometrics","inputTestId","primaryButtonText","primaryButtonTestId","helpText","isContinueDisabled","length","style","create","screenContainer","flex","padding","md","backgroundColor","brand","primaryBackground","justifyContent","buttonContainer","width","alignSelf","textAlign","marginBottom","modalText","marginVertical","changeBiometricsHeader","marginTop","xl","loadingContainer","alignItems","createElement","padded","keyboardActive","variant","onPINChanged","dismiss","testID","accessibilityLabel","autoFocus","inlineMessage","onSubmitEditing","size","color","primary","title","buttonType","Primary","disabled","onPress","Secondary","notificationType","Info","onCallToActionLabel","onCallToActionPressed"],"sourceRoot":"../../../src","sources":["screens/PINVerify.tsx"],"mappings":"AAAA,OAAOA,KAA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EAAEjG,UAAU,CAACqG,SAAU;IACjCb,MAAM,EAAE3E,aAAa,CAAC,kBAAkB,CAAE;IAC1C4E,kBAAkB,EAAEpE,CAAC,CAAC,2BAA2B,CAAE;IACnD+E,OAAO,EAAEA,CAAA,KAAMhF,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAG,KAAK;EAAE,CACtC,CACG,CAEJ,CAAC,EACNS,iBAAiB,iBAChBtC,KAAA,CAAA2F,aAAA,CAAC/E,UAAU;IACTmG,gBAAgB,EAAEpG,WAAW,CAACqG,IAAK;IACnCP,KAAK,EAAE3E,CAAC,CAAC,uBAAuB,CAAE;IAClCmF,mBAAmB,EAAEnF,CAAC,CAAC,aAAa,CAAE;IACtCoF,qBAAqB,EAAE/D;EAAgB,CACxC,CAEU,CAAC;AAEpB,CAAC;AAED,eAAe1B,SAAS","ignoreList":[]}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { ScrollView, StyleSheet, View } from 'react-native';
|
|
4
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
3
|
import Button, { ButtonType } from '../components/buttons/Button';
|
|
6
4
|
import PushNotificationsContent from '../components/views/PushNotificationsContent';
|
|
7
5
|
import { TOKENS, useServices } from '../container-api';
|
|
8
6
|
import { DispatchAction } from '../contexts/reducers/store';
|
|
9
7
|
import { useStore } from '../contexts/store';
|
|
10
8
|
import { testIdWithKey } from '../utils/testable';
|
|
9
|
+
import ScreenWrapper from '../components/views/ScreenWrapper';
|
|
11
10
|
|
|
12
11
|
// Screen to show during onboarding that prompts
|
|
13
12
|
// for push notification permissions
|
|
@@ -22,15 +21,6 @@ const PushNotifications = () => {
|
|
|
22
21
|
if (!enablePushNotifications) {
|
|
23
22
|
throw new Error('Push notification configuration not found');
|
|
24
23
|
}
|
|
25
|
-
const styles = StyleSheet.create({
|
|
26
|
-
screenContainer: {
|
|
27
|
-
flex: 1,
|
|
28
|
-
padding: 30
|
|
29
|
-
},
|
|
30
|
-
controlsContainer: {
|
|
31
|
-
marginTop: 'auto'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
24
|
const activatePushNotifications = async () => {
|
|
35
25
|
const state = await enablePushNotifications.setup();
|
|
36
26
|
dispatch({
|
|
@@ -38,26 +28,16 @@ const PushNotifications = () => {
|
|
|
38
28
|
payload: [state === 'granted']
|
|
39
29
|
});
|
|
40
30
|
};
|
|
41
|
-
|
|
42
|
-
style: {
|
|
43
|
-
flex: 1
|
|
44
|
-
},
|
|
45
|
-
edges: ['left', 'right', 'bottom']
|
|
46
|
-
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
47
|
-
contentContainerStyle: {
|
|
48
|
-
flexGrow: 1
|
|
49
|
-
}
|
|
50
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
51
|
-
style: styles.screenContainer
|
|
52
|
-
}, /*#__PURE__*/React.createElement(PushNotificationsContent, null), /*#__PURE__*/React.createElement(View, {
|
|
53
|
-
style: styles.controlsContainer
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
31
|
+
const controls = /*#__PURE__*/React.createElement(Button, {
|
|
55
32
|
buttonType: ButtonType.Primary,
|
|
56
33
|
title: t('Global.Continue'),
|
|
57
34
|
accessibilityLabel: t('Global.Continue'),
|
|
58
35
|
testID: testIdWithKey('PushNotificationContinue'),
|
|
59
36
|
onPress: activatePushNotifications
|
|
60
|
-
})
|
|
37
|
+
});
|
|
38
|
+
return /*#__PURE__*/React.createElement(ScreenWrapper, {
|
|
39
|
+
controls: controls
|
|
40
|
+
}, /*#__PURE__*/React.createElement(PushNotificationsContent, null));
|
|
61
41
|
};
|
|
62
42
|
export default PushNotifications;
|
|
63
43
|
//# sourceMappingURL=PushNotifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useTranslation","
|
|
1
|
+
{"version":3,"names":["React","useTranslation","Button","ButtonType","PushNotificationsContent","TOKENS","useServices","DispatchAction","useStore","testIdWithKey","ScreenWrapper","PushNotifications","t","dispatch","enablePushNotifications","CONFIG","Error","activatePushNotifications","state","setup","type","USE_PUSH_NOTIFICATIONS","payload","controls","createElement","buttonType","Primary","title","accessibilityLabel","testID","onPress"],"sourceRoot":"../../../src","sources":["screens/PushNotifications.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAE9C,OAAOC,MAAM,IAAIC,UAAU,QAAQ,8BAA8B;AACjE,OAAOC,wBAAwB,MAAM,8CAA8C;AACnF,SAASC,MAAM,EAAEC,WAAW,QAAQ,kBAAkB;AACtD,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,aAAa,QAAQ,mBAAmB;AACjD,OAAOC,aAAa,MAAM,mCAAmC;;AAE7D;AACA;AACA,MAAMC,iBAA2B,GAAGA,CAAA,KAAM;EACxC,MAAM;IAAEC;EAAE,CAAC,GAAGX,cAAc,CAAC,CAAC;EAC9B,MAAM,GAAGY,QAAQ,CAAC,GAAGL,QAAQ,CAAC,CAAC;EAC/B,MAAM,CAAC;IAAEM;EAAwB,CAAC,CAAC,GAAGR,WAAW,CAAC,CAACD,MAAM,CAACU,MAAM,CAAC,CAAC;EAElE,IAAI,CAACD,uBAAuB,EAAE;IAC5B,MAAM,IAAIE,KAAK,CAAC,2CAA2C,CAAC;EAC9D;EAEA,MAAMC,yBAAyB,GAAG,MAAAA,CAAA,KAAY;IAC5C,MAAMC,KAAK,GAAG,MAAMJ,uBAAuB,CAACK,KAAK,CAAC,CAAC;IACnDN,QAAQ,CAAC;MAAEO,IAAI,EAAEb,cAAc,CAACc,sBAAsB;MAAEC,OAAO,EAAE,CAACJ,KAAK,KAAK,SAAS;IAAE,CAAC,CAAC;EAC3F,CAAC;EAED,MAAMK,QAAQ,gBACZvB,KAAA,CAAAwB,aAAA,CAACtB,MAAM;IACLuB,UAAU,EAAEtB,UAAU,CAACuB,OAAQ;IAC/BC,KAAK,EAAEf,CAAC,CAAC,iBAAiB,CAAE;IAC5BgB,kBAAkB,EAAEhB,CAAC,CAAC,iBAAiB,CAAE;IACzCiB,MAAM,EAAEpB,aAAa,CAAC,0BAA0B,CAAE;IAClDqB,OAAO,EAAEb;EAA0B,CACpC,CACF;EAED,oBACEjB,KAAA,CAAAwB,aAAA,CAACd,aAAa;IAACa,QAAQ,EAAEA;EAAS,gBAChCvB,KAAA,CAAAwB,aAAA,CAACpB,wBAAwB,MAAE,CACd,CAAC;AAEpB,CAAC;AAED,eAAeO,iBAAiB","ignoreList":[]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useAgent } from '@credo-ts/react-hooks';
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { AppState, Linking,
|
|
5
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
|
+
import { AppState, Linking, StyleSheet, Switch, View } from 'react-native';
|
|
6
5
|
import Button, { ButtonType } from '../components/buttons/Button';
|
|
7
6
|
import { ThemedText } from '../components/texts/ThemedText';
|
|
8
7
|
import PushNotificationsContent from '../components/views/PushNotificationsContent';
|
|
@@ -12,6 +11,7 @@ import { DispatchAction } from '../contexts/reducers/store';
|
|
|
12
11
|
import { useStore } from '../contexts/store';
|
|
13
12
|
import { useTheme } from '../contexts/theme';
|
|
14
13
|
import { testIdWithKey } from '../utils/testable';
|
|
14
|
+
import ScreenWrapper from '../components/views/ScreenWrapper';
|
|
15
15
|
|
|
16
16
|
// Screen accesible through settings that allows the user to
|
|
17
17
|
// enable or disable push notifications
|
|
@@ -24,7 +24,8 @@ const TogglePushNotifications = () => {
|
|
|
24
24
|
agent
|
|
25
25
|
} = useAgent();
|
|
26
26
|
const {
|
|
27
|
-
ColorPalette
|
|
27
|
+
ColorPalette,
|
|
28
|
+
Spacing
|
|
28
29
|
} = useTheme();
|
|
29
30
|
const [{
|
|
30
31
|
enablePushNotifications
|
|
@@ -35,18 +36,12 @@ const TogglePushNotifications = () => {
|
|
|
35
36
|
throw new Error('Push notification configuration not found');
|
|
36
37
|
}
|
|
37
38
|
const styles = StyleSheet.create({
|
|
38
|
-
screenContainer: {
|
|
39
|
-
flex: 1,
|
|
40
|
-
padding: 30
|
|
41
|
-
},
|
|
42
39
|
toggleContainer: {
|
|
43
|
-
marginTop: 25,
|
|
44
40
|
display: 'flex',
|
|
45
41
|
flexDirection: 'row',
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
marginTop: 'auto'
|
|
42
|
+
gap: Spacing.md,
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
justifyContent: 'center'
|
|
50
45
|
}
|
|
51
46
|
});
|
|
52
47
|
useEffect(() => {
|
|
@@ -73,26 +68,13 @@ const TogglePushNotifications = () => {
|
|
|
73
68
|
enablePushNotifications.toggle(!notificationState, agent);
|
|
74
69
|
setNotificationState(!notificationState);
|
|
75
70
|
};
|
|
76
|
-
|
|
77
|
-
style: {
|
|
78
|
-
flex: 1
|
|
79
|
-
},
|
|
80
|
-
edges: ['left', 'right', 'bottom']
|
|
81
|
-
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
82
|
-
contentContainerStyle: {
|
|
83
|
-
flexGrow: 1
|
|
84
|
-
}
|
|
85
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
86
|
-
style: styles.screenContainer
|
|
87
|
-
}, hasNotificationsDisabled ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PushNotificationsDisabledContent, null), /*#__PURE__*/React.createElement(View, {
|
|
88
|
-
style: styles.controlsContainer
|
|
89
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
71
|
+
const controls = hasNotificationsDisabled ? /*#__PURE__*/React.createElement(Button, {
|
|
90
72
|
buttonType: ButtonType.Primary,
|
|
91
73
|
title: t('PushNotifications.OpenSettings'),
|
|
92
74
|
accessibilityLabel: t('PushNotifications.OpenSettings'),
|
|
93
75
|
testID: testIdWithKey('PushNotificationSettings'),
|
|
94
76
|
onPress: () => Linking.openSettings()
|
|
95
|
-
})
|
|
77
|
+
}) : /*#__PURE__*/React.createElement(View, {
|
|
96
78
|
style: styles.toggleContainer
|
|
97
79
|
}, /*#__PURE__*/React.createElement(ThemedText, null, t('PushNotifications.ReceiveNotifications')), /*#__PURE__*/React.createElement(Switch, {
|
|
98
80
|
trackColor: {
|
|
@@ -106,7 +88,11 @@ const TogglePushNotifications = () => {
|
|
|
106
88
|
accessibilityRole: "switch",
|
|
107
89
|
testID: testIdWithKey('PushNotificationSwitch'),
|
|
108
90
|
value: notificationState
|
|
109
|
-
}))
|
|
91
|
+
}));
|
|
92
|
+
return /*#__PURE__*/React.createElement(ScreenWrapper, {
|
|
93
|
+
controls: controls,
|
|
94
|
+
padded: true
|
|
95
|
+
}, hasNotificationsDisabled ? /*#__PURE__*/React.createElement(PushNotificationsDisabledContent, null) : /*#__PURE__*/React.createElement(PushNotificationsContent, null));
|
|
110
96
|
};
|
|
111
97
|
export default TogglePushNotifications;
|
|
112
98
|
//# sourceMappingURL=TogglePushNotifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAgent","React","useEffect","useState","useTranslation","AppState","Linking","
|
|
1
|
+
{"version":3,"names":["useAgent","React","useEffect","useState","useTranslation","AppState","Linking","StyleSheet","Switch","View","Button","ButtonType","ThemedText","PushNotificationsContent","PushNotificationsDisabledContent","TOKENS","useServices","DispatchAction","useStore","useTheme","testIdWithKey","ScreenWrapper","TogglePushNotifications","t","store","dispatch","agent","ColorPalette","Spacing","enablePushNotifications","CONFIG","notificationState","setNotificationState","preferences","usePushNotifications","notificationStatus","setNotificationStatus","Error","styles","create","toggleContainer","display","flexDirection","gap","md","alignItems","justifyContent","updateNotificationState","status","subscription","addEventListener","remove","hasNotificationsDisabled","onboarding","didConsiderPushNotifications","toggleSwitch","res","setup","type","USE_PUSH_NOTIFICATIONS","payload","toggle","controls","createElement","buttonType","Primary","title","accessibilityLabel","testID","onPress","openSettings","style","trackColor","false","grayscale","lightGrey","true","brand","primaryDisabled","thumbColor","primary","mediumGrey","ios_backgroundColor","onValueChange","accessibilityRole","value","padded"],"sourceRoot":"../../../src","sources":["screens/TogglePushNotifications.tsx"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,uBAAuB;AAChD,OAAOC,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAEC,IAAI,QAAQ,cAAc;AAE1E,OAAOC,MAAM,IAAIC,UAAU,QAAQ,8BAA8B;AACjE,SAASC,UAAU,QAAQ,gCAAgC;AAC3D,OAAOC,wBAAwB,MAAM,8CAA8C;AACnF,OAAOC,gCAAgC,MAAM,sDAAsD;AACnG,SAASC,MAAM,EAAEC,WAAW,QAAQ,kBAAkB;AACtD,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,aAAa,QAAQ,mBAAmB;AACjD,OAAOC,aAAa,MAAM,mCAAmC;;AAE7D;AACA;AACA,MAAMC,uBAAiC,GAAGA,CAAA,KAAM;EAC9C,MAAM;IAAEC;EAAE,CAAC,GAAGnB,cAAc,CAAC,CAAC;EAC9B,MAAM,CAACoB,KAAK,EAAEC,QAAQ,CAAC,GAAGP,QAAQ,CAAC,CAAC;EACpC,MAAM;IAAEQ;EAAM,CAAC,GAAG1B,QAAQ,CAAC,CAAC;EAC5B,MAAM;IAAE2B,YAAY;IAAEC;EAAQ,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5C,MAAM,CAAC;IAAEU;EAAwB,CAAC,CAAC,GAAGb,WAAW,CAAC,CAACD,MAAM,CAACe,MAAM,CAAC,CAAC;EAClE,MA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CAAC,wBAAwB,CAAE;IAChDiE,KAAK,EAAEtD;EAAkB,CAC1B,CACG,CACP;EAED,oBACE9B,KAAA,CAAA8D,aAAA,CAAC1C,aAAa;IAACyC,QAAQ,EAAEA,QAAS;IAACwB,MAAM;EAAA,GACtClC,wBAAwB,gBAAGnD,KAAA,CAAA8D,aAAA,CAACjD,gCAAgC,MAAE,CAAC,gBAAGb,KAAA,CAAA8D,aAAA,CAAClD,wBAAwB,MAAE,CACjF,CAAC;AAEpB,CAAC;AAED,eAAeS,uBAAuB","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import {
|
|
4
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
3
|
+
import { StyleSheet, View, Platform, Linking } from 'react-native';
|
|
5
4
|
import Button, { ButtonType } from '../components/buttons/Button';
|
|
6
5
|
import Link from '../components/texts/Link';
|
|
7
6
|
import { ThemedText } from '../components/texts/ThemedText';
|
|
@@ -10,6 +9,7 @@ import { useStore } from '../contexts/store';
|
|
|
10
9
|
import { DispatchAction } from '../contexts/reducers/store';
|
|
11
10
|
import { testIdWithKey } from '../utils/testable';
|
|
12
11
|
import { TOKENS, useServices } from '../container-api';
|
|
12
|
+
import ScreenWrapper from '../components/views/ScreenWrapper';
|
|
13
13
|
const UpdateAvailable = ({
|
|
14
14
|
appleAppStoreUrl,
|
|
15
15
|
googlePlayStoreUrl
|
|
@@ -47,41 +47,38 @@ const UpdateAvailable = ({
|
|
|
47
47
|
width: 130
|
|
48
48
|
};
|
|
49
49
|
const styles = StyleSheet.create({
|
|
50
|
-
container: {
|
|
51
|
-
flexGrow: 1,
|
|
52
|
-
padding: 20
|
|
53
|
-
},
|
|
54
50
|
image: {
|
|
55
|
-
marginTop:
|
|
51
|
+
marginTop: Spacing.md
|
|
56
52
|
},
|
|
57
53
|
imageContainer: {
|
|
58
54
|
alignItems: 'center',
|
|
59
|
-
marginBottom:
|
|
55
|
+
marginBottom: Spacing.lg
|
|
60
56
|
},
|
|
61
57
|
messageText: {
|
|
62
58
|
textAlign: 'center',
|
|
63
|
-
marginTop:
|
|
64
|
-
},
|
|
65
|
-
controlsContainer: {
|
|
66
|
-
marginTop: 'auto',
|
|
67
|
-
margin: 20
|
|
59
|
+
marginTop: Spacing.lg
|
|
68
60
|
},
|
|
69
61
|
delayMessageText: {
|
|
70
62
|
textAlign: 'center',
|
|
71
|
-
marginTop:
|
|
72
|
-
},
|
|
73
|
-
buttonContainer: {
|
|
74
|
-
justifyContent: 'flex-end',
|
|
75
|
-
flex: 1
|
|
63
|
+
marginTop: Spacing.md
|
|
76
64
|
}
|
|
77
65
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
const controls = /*#__PURE__*/React.createElement(React.Fragment, null, hasStoreLinks && /*#__PURE__*/React.createElement(Button, {
|
|
67
|
+
title: t('AppUpdate.UpdateNow'),
|
|
68
|
+
accessibilityLabel: t('AppUpdate.UpdateNow'),
|
|
69
|
+
testID: testIdWithKey('UpdateNow'),
|
|
70
|
+
buttonType: ButtonType.Primary,
|
|
71
|
+
onPress: onPressWhatIsNew
|
|
72
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
73
|
+
title: t('AppUpdate.UpdateLater'),
|
|
74
|
+
accessibilityLabel: t('AppUpdate.UpdateLater'),
|
|
75
|
+
testID: testIdWithKey('UpdateLater'),
|
|
76
|
+
buttonType: ButtonType.Secondary,
|
|
77
|
+
onPress: onPressLater
|
|
78
|
+
}));
|
|
79
|
+
return /*#__PURE__*/React.createElement(ScreenWrapper, {
|
|
80
|
+
controls: controls,
|
|
81
|
+
padded: true
|
|
85
82
|
}, /*#__PURE__*/React.createElement(View, {
|
|
86
83
|
style: styles.imageContainer
|
|
87
84
|
}, /*#__PURE__*/React.createElement(Assets.svg.updateAvailable, iconOptions)), /*#__PURE__*/React.createElement(ThemedText, {
|
|
@@ -91,29 +88,11 @@ const UpdateAvailable = ({
|
|
|
91
88
|
}
|
|
92
89
|
}, t('AppUpdate.Heading')), /*#__PURE__*/React.createElement(ThemedText, null, t('AppUpdate.Body')), hasStoreLinks && /*#__PURE__*/React.createElement(Link, {
|
|
93
90
|
style: {
|
|
94
|
-
marginVertical:
|
|
91
|
+
marginVertical: Spacing.lg
|
|
95
92
|
},
|
|
96
93
|
onPress: onPressWhatIsNew,
|
|
97
94
|
linkText: t('AppUpdate.LearnMore')
|
|
98
|
-
})
|
|
99
|
-
style: styles.buttonContainer
|
|
100
|
-
}, hasStoreLinks && /*#__PURE__*/React.createElement(View, {
|
|
101
|
-
style: {
|
|
102
|
-
marginBottom: 15
|
|
103
|
-
}
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
105
|
-
title: t('AppUpdate.UpdateNow'),
|
|
106
|
-
accessibilityLabel: t('AppUpdate.UpdateNow'),
|
|
107
|
-
testID: testIdWithKey('UpdateNow'),
|
|
108
|
-
buttonType: ButtonType.Primary,
|
|
109
|
-
onPress: onPressWhatIsNew
|
|
110
|
-
})), /*#__PURE__*/React.createElement(Button, {
|
|
111
|
-
title: t('AppUpdate.UpdateLater'),
|
|
112
|
-
accessibilityLabel: t('AppUpdate.UpdateLater'),
|
|
113
|
-
testID: testIdWithKey('UpdateLater'),
|
|
114
|
-
buttonType: ButtonType.Secondary,
|
|
115
|
-
onPress: onPressLater
|
|
116
|
-
}))));
|
|
95
|
+
}));
|
|
117
96
|
};
|
|
118
97
|
export default UpdateAvailable;
|
|
119
98
|
//# sourceMappingURL=UpdateAvailable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useTranslation","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useTranslation","StyleSheet","View","Platform","Linking","Button","ButtonType","Link","ThemedText","useTheme","useStore","DispatchAction","testIdWithKey","TOKENS","useServices","ScreenWrapper","UpdateAvailable","appleAppStoreUrl","googlePlayStoreUrl","t","dispatch","ColorPalette","Assets","Spacing","logger","UTIL_LOGGER","hasStoreLinks","Boolean","onPressWhatIsNew","url","OS","openURL","catch","err","error","onPressLater","type","SET_VERSION_INFO","payload","dismissed","iconOptions","fill","notification","infoText","height","width","styles","create","image","marginTop","md","imageContainer","alignItems","marginBottom","lg","messageText","textAlign","delayMessageText","controls","createElement","Fragment","title","accessibilityLabel","testID","buttonType","Primary","onPress","Secondary","padded","style","svg","updateAvailable","variant","marginVertical","linkText"],"sourceRoot":"../../../src","sources":["screens/UpdateAvailable.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,OAAO,QAAQ,cAAc;AAElE,OAAOC,MAAM,IAAIC,UAAU,QAAQ,8BAA8B;AACjE,OAAOC,IAAI,MAAM,0BAA0B;AAC3C,SAASC,UAAU,QAAQ,gCAAgC;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,MAAM,EAAEC,WAAW,QAAQ,kBAAkB;AACtD,OAAOC,aAAa,MAAM,mCAAmC;AAO7D,MAAMC,eAA+C,GAAGA,CAAC;EAAEC,gBAAgB;EAAEC;AAAmB,CAAC,KAAK;EACpG,MAAM;IAAEC;EAAE,CAAC,GAAGnB,cAAc,CAAC,CAAC;EAC9B,MAAM,GAAGoB,QAAQ,CAAC,GAAGV,QAAQ,CAAC,CAAC;EAC/B,MAAM;IAAEW,YAAY;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACpD,MAAM,CAACe,MAAM,CAAC,GAAGV,WAAW,CAAC,CAACD,MAAM,CAACY,W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AAA,CAACpD,IAAI;IAAC8D,KAAK,EAAE;MAAEI,cAAc,EAAElD,OAAO,CAAC+B;IAAG,CAAE;IAACY,OAAO,EAAEtC,gBAAiB;IAAC8C,QAAQ,EAAEvD,CAAC,CAAC,qBAAqB;EAAE,CAAE,CAElG,CAAC;AAEpB,CAAC;AAED,eAAeH,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PINScreenTitleText.d.ts","sourceRoot":"","sources":["../../../../../src/components/misc/PINScreenTitleText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,kBAAkB,0BAA2B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"PINScreenTitleText.d.ts","sourceRoot":"","sources":["../../../../../src/components/misc/PINScreenTitleText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,kBAAkB,0BAA2B,uBAAuB,sBAmBzE,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PINCreate.d.ts","sourceRoot":"","sources":["../../../../src/screens/PINCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAiD,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"PINCreate.d.ts","sourceRoot":"","sources":["../../../../src/screens/PINCreate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAiD,MAAM,OAAO,CAAA;AAwBrE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAQ7C,UAAU,cAAe,SAAQ,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC;IACjF,eAAe,EAAE,OAAO,CAAA;IACxB,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0LvC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PINEnter.d.ts","sourceRoot":"","sources":["../../../../src/screens/PINEnter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAmChF,UAAU,aAAa;IACrB,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"PINEnter.d.ts","sourceRoot":"","sources":["../../../../src/screens/PINEnter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAmChF,UAAU,aAAa;IACrB,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgdrC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushNotifications.d.ts","sourceRoot":"","sources":["../../../../src/screens/PushNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"PushNotifications.d.ts","sourceRoot":"","sources":["../../../../src/screens/PushNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EA6B9B,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TogglePushNotifications.d.ts","sourceRoot":"","sources":["../../../../src/screens/TogglePushNotifications.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAiBlD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"TogglePushNotifications.d.ts","sourceRoot":"","sources":["../../../../src/screens/TogglePushNotifications.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAiBlD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAiFpC,CAAA;AAED,eAAe,uBAAuB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateAvailable.d.ts","sourceRoot":"","sources":["../../../../src/screens/UpdateAvailable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAc1C,KAAK,oBAAoB,GAAG;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"UpdateAvailable.d.ts","sourceRoot":"","sources":["../../../../src/screens/UpdateAvailable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAc1C,KAAK,oBAAoB,GAAG;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmFnD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifold/core",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.12",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"module": "lib/module/index.js",
|
|
6
6
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/core": "~7.22.20",
|
|
47
47
|
"@babel/runtime": "~7.23.9",
|
|
48
|
-
"@bifold/oca": "2.11.
|
|
49
|
-
"@bifold/verifier": "2.11.
|
|
48
|
+
"@bifold/oca": "2.11.12",
|
|
49
|
+
"@bifold/verifier": "2.11.12",
|
|
50
50
|
"@credo-ts/anoncreds": "0.5.17",
|
|
51
51
|
"@credo-ts/askar": "0.5.17",
|
|
52
52
|
"@credo-ts/core": "0.5.17",
|