@oxyhq/services 6.9.28 → 6.9.29
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/ui/components/SettingsIcon.js +45 -0
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +7 -0
- package/lib/commonjs/ui/components/index.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +127 -126
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +203 -191
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +209 -205
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +66 -63
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js +40 -0
- package/lib/module/ui/components/SettingsIcon.js.map +1 -0
- package/lib/module/ui/components/index.js +1 -0
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +127 -126
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +204 -192
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +210 -206
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +67 -64
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +14 -0
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts +14 -0
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/index.d.ts +1 -0
- package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/ui/components/SettingsIcon.tsx +43 -0
- package/src/ui/components/index.ts +1 -0
- package/src/ui/screens/AccountCenterScreen.tsx +97 -145
- package/src/ui/screens/AccountOverviewScreen.tsx +154 -220
- package/src/ui/screens/AppInfoScreen.tsx +177 -248
- package/src/ui/screens/HelpSupportScreen.tsx +53 -76
|
@@ -8,9 +8,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _sonner = require("../../lib/sonner");
|
|
10
10
|
var _index = require("../components/index.js");
|
|
11
|
+
var _SettingsIcon = require("../components/SettingsIcon.js");
|
|
11
12
|
var _useI18n = require("../hooks/useI18n.js");
|
|
12
13
|
var _useThemeStyles = require("../hooks/useThemeStyles.js");
|
|
13
14
|
var _useColorScheme = require("../hooks/useColorScheme.js");
|
|
15
|
+
var _settingsList = require("@oxyhq/bloom/settings-list");
|
|
14
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
17
|
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); }
|
|
16
18
|
const HelpSupportScreen = ({
|
|
@@ -53,71 +55,72 @@ const HelpSupportScreen = ({
|
|
|
53
55
|
elevation: "subtle"
|
|
54
56
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
55
57
|
style: styles.content,
|
|
56
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
58
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
57
59
|
title: t('help.options') || 'Get Help',
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
})
|
|
83
|
-
}), /*#__PURE__*/(0, _jsxRuntime.
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
61
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
62
|
+
name: "help-circle",
|
|
63
|
+
color: themeStyles.colors.iconSecurity
|
|
64
|
+
}),
|
|
65
|
+
title: t('help.faq.title') || 'Frequently Asked Questions',
|
|
66
|
+
description: t('help.faq.subtitle') || 'Find answers to common questions',
|
|
67
|
+
onPress: handleFAQ
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
69
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
70
|
+
name: "email",
|
|
71
|
+
color: themeStyles.colors.iconPersonalInfo
|
|
72
|
+
}),
|
|
73
|
+
title: t('help.contact.title') || 'Contact Support',
|
|
74
|
+
description: t('help.contact.subtitle') || 'Get help from our support team',
|
|
75
|
+
onPress: handleContactSupport
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
77
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
78
|
+
name: "bug",
|
|
79
|
+
color: themeStyles.colors.iconStorage
|
|
80
|
+
}),
|
|
81
|
+
title: t('help.reportBug.title') || 'Report a Bug',
|
|
82
|
+
description: t('help.reportBug.subtitle') || 'Help us improve by reporting issues',
|
|
83
|
+
onPress: handleReportBug
|
|
84
|
+
})]
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
|
|
84
86
|
title: t('help.resources') || 'Resources',
|
|
85
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
87
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
88
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
89
|
+
name: "file-document",
|
|
90
|
+
color: "#8E8E93"
|
|
91
|
+
}),
|
|
92
|
+
title: t('help.documentation.title') || 'Documentation',
|
|
93
|
+
description: t('help.documentation.subtitle') || 'User guides and tutorials',
|
|
94
|
+
onPress: () => {
|
|
95
|
+
_reactNative.Linking.openURL('https://developer.oxy.so/docs').catch(() => {
|
|
96
|
+
_sonner.toast.error(t('help.linkError') || 'Failed to open link');
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
100
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
101
|
+
name: "account-group",
|
|
102
|
+
color: themeStyles.colors.iconData
|
|
103
|
+
}),
|
|
104
|
+
title: t('help.community.title') || 'Community',
|
|
105
|
+
description: t('help.community.subtitle') || 'Join our community',
|
|
106
|
+
onPress: () => {
|
|
107
|
+
_reactNative.Linking.openURL('https://community.oxy.so').catch(() => {
|
|
108
|
+
_sonner.toast.error(t('help.linkError') || 'Failed to open link');
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
|
|
112
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
|
|
113
|
+
name: "code-tags",
|
|
114
|
+
color: themeStyles.colors.iconSharing
|
|
115
|
+
}),
|
|
116
|
+
title: t('help.developersPortal.title') || 'Developers Portal',
|
|
117
|
+
description: t('help.developersPortal.subtitle') || 'API documentation and developer resources',
|
|
118
|
+
onPress: () => {
|
|
119
|
+
_reactNative.Linking.openURL('https://developer.oxy.so').catch(() => {
|
|
120
|
+
_sonner.toast.error(t('help.linkError') || 'Failed to open link');
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
})]
|
|
121
124
|
})]
|
|
122
125
|
})]
|
|
123
126
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_useI18n","_useThemeStyles","_useColorScheme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","HelpSupportScreen","onClose","theme","goBack","navigate","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","handleContactSupport","useMemo","Linking","openURL","catch","toast","error","handleFAQ","info","handleReportBug","jsxs","View","style","styles","container","backgroundColor","children","jsx","Header","title","onBack","variant","elevation","ScrollView","content","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_SettingsIcon","_useI18n","_useThemeStyles","_useColorScheme","_settingsList","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","HelpSupportScreen","onClose","theme","goBack","navigate","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","handleContactSupport","useMemo","Linking","openURL","catch","toast","error","handleFAQ","info","handleReportBug","jsxs","View","style","styles","container","backgroundColor","children","jsx","Header","title","onBack","variant","elevation","ScrollView","content","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","color","colors","iconSecurity","description","onPress","iconPersonalInfo","iconStorage","iconData","iconSharing","StyleSheet","create","flex","padding","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/HelpSupportScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AACA,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,EAAE;EACV,CAAC;EACDjB,OAAO,EAAE;IACLiB,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACb;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA/D,OAAA,gBAEYgE,cAAK,CAACC,IAAI,CAACxD,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
6
|
+
import { darkenColor } from "../utils/colorUtils.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* Compact colored-circle icon for use with bloom's SettingsListItem.
|
|
10
|
+
* Renders a MaterialCommunityIcons glyph inside a tinted circle,
|
|
11
|
+
* sized to fit bloom's 20x20 icon container.
|
|
12
|
+
*/
|
|
13
|
+
const SettingsIconComponent = ({
|
|
14
|
+
name,
|
|
15
|
+
color,
|
|
16
|
+
iconSize = 14,
|
|
17
|
+
size = 20
|
|
18
|
+
}) => /*#__PURE__*/_jsx(View, {
|
|
19
|
+
style: [styles.circle, {
|
|
20
|
+
width: size,
|
|
21
|
+
height: size,
|
|
22
|
+
borderRadius: size / 2,
|
|
23
|
+
backgroundColor: color
|
|
24
|
+
}],
|
|
25
|
+
children: /*#__PURE__*/_jsx(MaterialCommunityIcons, {
|
|
26
|
+
name: name,
|
|
27
|
+
size: iconSize,
|
|
28
|
+
color: darkenColor(color)
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
SettingsIconComponent.displayName = 'SettingsIcon';
|
|
32
|
+
export const SettingsIcon = /*#__PURE__*/memo(SettingsIconComponent);
|
|
33
|
+
export default SettingsIcon;
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
circle: {
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center'
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=SettingsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","StyleSheet","MaterialCommunityIcons","darkenColor","jsx","_jsx","SettingsIconComponent","name","color","iconSize","size","style","styles","circle","width","height","borderRadius","backgroundColor","children","displayName","SettingsIcon","create","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["ui/components/SettingsIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,sBAAsB,QAAQ,oBAAoB;AAC3D,SAASC,WAAW,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAalD;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAAkD,GAAGA,CAAC;EACxDC,IAAI;EACJC,KAAK;EACLC,QAAQ,GAAG,EAAE;EACbC,IAAI,GAAG;AACX,CAAC,kBACGL,IAAA,CAACL,IAAI;EAACW,KAAK,EAAE,CAACC,MAAM,CAACC,MAAM,EAAE;IAAEC,KAAK,EAAEJ,IAAI;IAAEK,MAAM,EAAEL,IAAI;IAAEM,YAAY,EAAEN,IAAI,GAAG,CAAC;IAAEO,eAAe,EAAET;EAAM,CAAC,CAAE;EAAAU,QAAA,eACxGb,IAAA,CAACH,sBAAsB;IAACK,IAAI,EAAEA,IAAY;IAACG,IAAI,EAAED,QAAS;IAACD,KAAK,EAAEL,WAAW,CAACK,KAAK;EAAE,CAAE;AAAC,CACtF,CACT;AAEDF,qBAAqB,CAACa,WAAW,GAAG,cAAc;AAElD,OAAO,MAAMC,YAAY,gBAAGrB,IAAI,CAACO,qBAAqB,CAAC;AACvD,eAAec,YAAY;AAE3B,MAAMR,MAAM,GAAGX,UAAU,CAACoB,MAAM,CAAC;EAC7BR,MAAM,EAAE;IACJS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ export { default as Header, getHeaderHeight } from "./Header.js";
|
|
|
11
11
|
export { default as LoadingState } from "./LoadingState.js";
|
|
12
12
|
export { default as EmptyState } from "./EmptyState.js";
|
|
13
13
|
export { default as SettingRow } from "./SettingRow.js";
|
|
14
|
+
export { SettingsIcon } from "./SettingsIcon.js";
|
|
14
15
|
|
|
15
16
|
// Re-export existing components
|
|
16
17
|
export { default as Avatar } from "./Avatar.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","ProfileCard","Section","SectionTitle","GroupedItem","GroupedSection","QuickActions","Header","getHeaderHeight","LoadingState","EmptyState","SettingRow","Avatar","FollowButton","FontLoader","setupFonts","OxyLogo","OxySignInButton","OxyPayButton"],"sourceRoot":"../../../../src","sources":["ui/components/index.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASD,OAAO,IAAIE,OAAO,QAAQ,cAAW;AAC9C,SAASF,OAAO,IAAIG,YAAY,QAAQ,mBAAgB;AACxD,SAASH,OAAO,IAAII,WAAW,QAAQ,kBAAe;AACtD,SAASJ,OAAO,IAAIK,cAAc,QAAQ,qBAAkB;AAC5D,SAASL,OAAO,IAAIM,YAAY,QAAQ,mBAAgB;AACxD,SAASN,OAAO,IAAIO,MAAM,EAAEC,eAAe,QAAQ,aAAU;AAC7D,SAASR,OAAO,IAAIS,YAAY,QAAQ,mBAAgB;AACxD,SAAST,OAAO,IAAIU,UAAU,QAAQ,iBAAc;AACpD,SAASV,OAAO,IAAIW,UAAU,QAAQ,iBAAc;;
|
|
1
|
+
{"version":3,"names":["default","ProfileCard","Section","SectionTitle","GroupedItem","GroupedSection","QuickActions","Header","getHeaderHeight","LoadingState","EmptyState","SettingRow","SettingsIcon","Avatar","FollowButton","FontLoader","setupFonts","OxyLogo","OxySignInButton","OxyPayButton"],"sourceRoot":"../../../../src","sources":["ui/components/index.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASD,OAAO,IAAIE,OAAO,QAAQ,cAAW;AAC9C,SAASF,OAAO,IAAIG,YAAY,QAAQ,mBAAgB;AACxD,SAASH,OAAO,IAAII,WAAW,QAAQ,kBAAe;AACtD,SAASJ,OAAO,IAAIK,cAAc,QAAQ,qBAAkB;AAC5D,SAASL,OAAO,IAAIM,YAAY,QAAQ,mBAAgB;AACxD,SAASN,OAAO,IAAIO,MAAM,EAAEC,eAAe,QAAQ,aAAU;AAC7D,SAASR,OAAO,IAAIS,YAAY,QAAQ,mBAAgB;AACxD,SAAST,OAAO,IAAIU,UAAU,QAAQ,iBAAc;AACpD,SAASV,OAAO,IAAIW,UAAU,QAAQ,iBAAc;AACpD,SAASC,YAAY,QAAQ,mBAAgB;;AAE7C;AACA,SAASZ,OAAO,IAAIa,MAAM,QAAQ,aAAU;AAC5C,SAASb,OAAO,IAAIc,YAAY,QAAQ,mBAAgB;AACxD,SAASC,UAAU,EAAEC,UAAU,QAAQ,iBAAc;AACrD,SAAShB,OAAO,IAAIiB,OAAO,QAAQ,cAAW;AAC9C,SAASjB,OAAO,IAAIkB,eAAe,QAAQ,sBAAmB;AAC9D,SAASlB,OAAO,IAAImB,YAAY,QAAQ,mBAAgB","ignoreList":[]}
|
|
@@ -9,8 +9,7 @@ import { fontFamilies } from "../styles/fonts.js";
|
|
|
9
9
|
import ProfileCard from "../components/ProfileCard.js";
|
|
10
10
|
import Section from "../components/Section.js";
|
|
11
11
|
import QuickActions from "../components/QuickActions.js";
|
|
12
|
-
import
|
|
13
|
-
import GroupedItem from "../components/GroupedItem.js";
|
|
12
|
+
import { SettingsIcon } from "../components/SettingsIcon.js";
|
|
14
13
|
import { useI18n } from "../hooks/useI18n.js";
|
|
15
14
|
import { useThemeStyles } from "../hooks/useThemeStyles.js";
|
|
16
15
|
import { useColorScheme } from "../hooks/useColorScheme.js";
|
|
@@ -18,6 +17,7 @@ import { Colors } from "../constants/theme.js";
|
|
|
18
17
|
import { normalizeColorScheme, normalizeTheme } from "../utils/themeUtils.js";
|
|
19
18
|
import { useOxy } from "../context/OxyContext.js";
|
|
20
19
|
import { screenContentStyle } from "../constants/spacing.js";
|
|
20
|
+
import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
const AccountCenterScreen = ({
|
|
23
23
|
onClose,
|
|
@@ -43,8 +43,6 @@ const AccountCenterScreen = ({
|
|
|
43
43
|
// Extract commonly used colors for readability - ensure colors is always defined
|
|
44
44
|
const {
|
|
45
45
|
textColor,
|
|
46
|
-
secondaryBackgroundColor,
|
|
47
|
-
borderColor,
|
|
48
46
|
primaryColor,
|
|
49
47
|
dangerColor,
|
|
50
48
|
colors: themeColors
|
|
@@ -154,138 +152,141 @@ const AccountCenterScreen = ({
|
|
|
154
152
|
onPress: () => navigate?.('AccountSwitcher')
|
|
155
153
|
}] : [])], [user?.isPremium, sessions, navigate, t, colors])
|
|
156
154
|
})
|
|
157
|
-
}), /*#__PURE__*/
|
|
155
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
158
156
|
title: t('accountCenter.sections.accountManagement') || 'Account Management',
|
|
159
|
-
children: /*#__PURE__*/_jsx(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
157
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
158
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
159
|
+
name: "account-circle",
|
|
160
|
+
color: colors.iconSecurity
|
|
161
|
+
}),
|
|
162
|
+
title: t('accountCenter.items.accountOverview.title') || 'Account Overview',
|
|
163
|
+
description: t('accountCenter.items.accountOverview.subtitle') || 'Complete account information',
|
|
164
|
+
onPress: () => navigate?.('AccountOverview')
|
|
165
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
166
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
167
|
+
name: "cog",
|
|
168
|
+
color: colors.iconData
|
|
169
|
+
}),
|
|
170
|
+
title: t('accountCenter.items.editProfile.title') || 'Edit Profile',
|
|
171
|
+
description: t('accountCenter.items.editProfile.subtitle') || 'Manage your profile and preferences',
|
|
172
|
+
onPress: () => navigate?.('AccountSettings')
|
|
173
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
174
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
175
|
+
name: "shield-check",
|
|
176
|
+
color: colors.iconSecurity
|
|
177
|
+
}),
|
|
178
|
+
title: t('accountCenter.items.manageSessions.title') || 'Manage Sessions',
|
|
179
|
+
description: t('accountCenter.items.manageSessions.subtitle') || 'Security and active devices',
|
|
180
|
+
onPress: () => navigate?.('SessionManagement')
|
|
181
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
182
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
183
|
+
name: "folder",
|
|
184
|
+
color: colors.iconStorage
|
|
185
|
+
}),
|
|
186
|
+
title: t('accountCenter.items.fileManagement.title') || 'File Management',
|
|
187
|
+
description: t('accountCenter.items.fileManagement.subtitle') || 'Upload, download, and manage your files',
|
|
188
|
+
onPress: () => navigate?.('FileManagement')
|
|
189
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
190
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
191
|
+
name: "star",
|
|
192
|
+
color: colors.iconPayments
|
|
193
|
+
}),
|
|
194
|
+
title: t('accountCenter.items.premium.title') || 'Oxy+ Subscriptions',
|
|
195
|
+
description: user?.isPremium ? t('accountCenter.items.premium.manage') || 'Manage your premium plan' : t('accountCenter.items.premium.upgrade') || 'Upgrade to premium features',
|
|
196
|
+
onPress: () => navigate?.('PremiumSubscription')
|
|
197
|
+
}), user?.isPremium ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
198
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
199
|
+
name: "credit-card",
|
|
200
|
+
color: colors.iconPersonalInfo
|
|
201
|
+
}),
|
|
202
|
+
title: t('accountCenter.items.billing.title') || 'Billing Management',
|
|
203
|
+
description: t('accountCenter.items.billing.subtitle') || 'Payment methods and invoices',
|
|
204
|
+
onPress: () => navigate?.('PaymentGateway')
|
|
205
|
+
}) : null]
|
|
206
|
+
}), sessions && sessions.length > 1 && /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
205
207
|
title: t('accountCenter.sections.multiAccount') || 'Multi-Account',
|
|
206
|
-
children: /*#__PURE__*/_jsx(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
})
|
|
225
|
-
}), (!sessions || sessions.length <= 1) && /*#__PURE__*/_jsx(
|
|
208
|
+
children: [/*#__PURE__*/_jsx(SettingsListItem, {
|
|
209
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
210
|
+
name: "account-group",
|
|
211
|
+
color: colors.iconStorage
|
|
212
|
+
}),
|
|
213
|
+
title: t('accountCenter.items.switchAccount.title') || 'Switch Account',
|
|
214
|
+
description: t('accountCenter.items.switchAccount.subtitle', {
|
|
215
|
+
count: sessions.length
|
|
216
|
+
}) || `${sessions.length} accounts available`,
|
|
217
|
+
onPress: () => navigate?.('AccountSwitcher')
|
|
218
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
219
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
220
|
+
name: "account-plus",
|
|
221
|
+
color: colors.iconPersonalInfo
|
|
222
|
+
}),
|
|
223
|
+
title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
|
|
224
|
+
description: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
|
|
225
|
+
onPress: () => navigate?.('OxyAuth')
|
|
226
|
+
})]
|
|
227
|
+
}), (!sessions || sessions.length <= 1) && /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
226
228
|
title: t('accountCenter.sections.addAccount') || 'Add Account',
|
|
227
|
-
children: /*#__PURE__*/_jsx(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}], [navigate, t, colors])
|
|
229
|
+
children: /*#__PURE__*/_jsx(SettingsListItem, {
|
|
230
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
231
|
+
name: "account-plus",
|
|
232
|
+
color: colors.iconPersonalInfo
|
|
233
|
+
}),
|
|
234
|
+
title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
|
|
235
|
+
description: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
|
|
236
|
+
onPress: () => navigate?.('OxyAuth')
|
|
236
237
|
})
|
|
237
|
-
}), /*#__PURE__*/
|
|
238
|
+
}), /*#__PURE__*/_jsxs(SettingsListGroup, {
|
|
238
239
|
title: t('accountCenter.sections.moreOptions') || 'More Options',
|
|
239
|
-
children: /*#__PURE__*/_jsx(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
240
|
+
children: [Platform.OS !== 'web' ? /*#__PURE__*/_jsx(SettingsListItem, {
|
|
241
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
242
|
+
name: "bell",
|
|
243
|
+
color: colors.iconStorage
|
|
244
|
+
}),
|
|
245
|
+
title: t('accountCenter.items.notifications.title') || 'Notifications',
|
|
246
|
+
description: t('accountCenter.items.notifications.subtitle') || 'Manage notification settings',
|
|
247
|
+
onPress: () => navigate?.('AccountSettings', {
|
|
248
|
+
activeTab: 'notifications'
|
|
249
|
+
})
|
|
250
|
+
}) : null, /*#__PURE__*/_jsx(SettingsListItem, {
|
|
251
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
252
|
+
name: "translate",
|
|
253
|
+
color: colors.iconPersonalInfo
|
|
254
|
+
}),
|
|
255
|
+
title: t('language.title') || 'Language',
|
|
256
|
+
description: t('language.subtitle') || 'Choose your preferred language',
|
|
257
|
+
onPress: () => navigate?.('LanguageSelector')
|
|
258
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
259
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
260
|
+
name: "help-circle",
|
|
261
|
+
color: colors.iconSecurity
|
|
262
|
+
}),
|
|
263
|
+
title: t('accountOverview.items.help.title') || 'Help & Support',
|
|
264
|
+
description: t('accountOverview.items.help.subtitle') || 'Get help and contact support',
|
|
265
|
+
onPress: () => navigate?.('HelpSupport')
|
|
266
|
+
}), /*#__PURE__*/_jsx(SettingsListItem, {
|
|
267
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
268
|
+
name: "information",
|
|
269
|
+
color: "#8E8E93"
|
|
270
|
+
}),
|
|
271
|
+
title: t('accountCenter.items.appInfo.title') || 'App Information',
|
|
272
|
+
description: t('accountCenter.items.appInfo.subtitle') || 'Version and system details',
|
|
273
|
+
onPress: () => navigate?.('AppInfo')
|
|
274
|
+
})]
|
|
275
|
+
}), /*#__PURE__*/_jsx(SettingsListGroup, {
|
|
276
|
+
children: /*#__PURE__*/_jsx(SettingsListItem, {
|
|
277
|
+
icon: /*#__PURE__*/_jsx(SettingsIcon, {
|
|
278
|
+
name: "logout",
|
|
279
|
+
color: dangerColor
|
|
280
|
+
}),
|
|
276
281
|
title: isLoading ? t('accountCenter.signingOut') || 'Signing out...' : t('common.actions.signOut') || 'Sign Out',
|
|
277
282
|
onPress: confirmLogout,
|
|
278
|
-
|
|
279
|
-
isLast: true,
|
|
283
|
+
destructive: true,
|
|
280
284
|
showChevron: false,
|
|
281
285
|
disabled: isLoading,
|
|
282
|
-
|
|
286
|
+
rightElement: isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
283
287
|
color: dangerColor,
|
|
284
|
-
size: "small"
|
|
285
|
-
|
|
286
|
-
marginRight: 16
|
|
287
|
-
}
|
|
288
|
-
}) : null
|
|
288
|
+
size: "small"
|
|
289
|
+
}) : undefined
|
|
289
290
|
})
|
|
290
291
|
}), /*#__PURE__*/_jsx(View, {
|
|
291
292
|
style: styles.versionContainer,
|