@oxyhq/services 5.2.0 → 5.2.2

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.
Files changed (36) hide show
  1. package/README.md +70 -0
  2. package/UI_COMPONENTS.md +74 -0
  3. package/lib/commonjs/constants/version.js +28 -0
  4. package/lib/commonjs/constants/version.js.map +1 -0
  5. package/lib/commonjs/ui/index.js +9 -1
  6. package/lib/commonjs/ui/index.js.map +1 -1
  7. package/lib/commonjs/ui/navigation/OxyRouter.js +5 -0
  8. package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
  9. package/lib/commonjs/ui/screens/AccountCenterScreen.js +14 -2
  10. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  11. package/lib/commonjs/ui/screens/AppInfoScreen.js +352 -0
  12. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
  13. package/lib/module/constants/version.js +21 -0
  14. package/lib/module/constants/version.js.map +1 -0
  15. package/lib/module/ui/index.js +1 -0
  16. package/lib/module/ui/index.js.map +1 -1
  17. package/lib/module/ui/navigation/OxyRouter.js +5 -0
  18. package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
  19. package/lib/module/ui/screens/AccountCenterScreen.js +14 -2
  20. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  21. package/lib/module/ui/screens/AppInfoScreen.js +347 -0
  22. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
  23. package/lib/typescript/constants/version.d.ts +14 -0
  24. package/lib/typescript/constants/version.d.ts.map +1 -0
  25. package/lib/typescript/ui/index.d.ts +1 -0
  26. package/lib/typescript/ui/index.d.ts.map +1 -1
  27. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
  28. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  29. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
  30. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
  31. package/package.json +6 -1
  32. package/src/constants/version.ts +15 -0
  33. package/src/ui/index.ts +1 -0
  34. package/src/ui/navigation/OxyRouter.tsx +5 -0
  35. package/src/ui/screens/AccountCenterScreen.tsx +9 -1
  36. package/src/ui/screens/AppInfoScreen.tsx +290 -0
@@ -0,0 +1,347 @@
1
+ "use strict";
2
+
3
+ import React, { useState, useEffect } from 'react';
4
+ import { View, Text, TouchableOpacity, StyleSheet, Platform, Dimensions, Alert, Clipboard, ScrollView } from 'react-native';
5
+ import { useOxy } from '../context/OxyContext';
6
+ import { fontFamilies } from '../styles/fonts';
7
+ import { packageInfo } from '../../constants/version';
8
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
+ const AppInfoScreen = ({
10
+ onClose,
11
+ theme,
12
+ navigate
13
+ }) => {
14
+ const {
15
+ user,
16
+ users
17
+ } = useOxy();
18
+ const [systemInfo, setSystemInfo] = useState(null);
19
+ const isDarkTheme = theme === 'dark';
20
+ const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
21
+ const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF';
22
+ const secondaryBackgroundColor = isDarkTheme ? '#222222' : '#F5F5F5';
23
+ const borderColor = isDarkTheme ? '#444444' : '#E0E0E0';
24
+ const primaryColor = '#0066CC';
25
+ const successColor = '#4CAF50';
26
+ useEffect(() => {
27
+ const dimensions = Dimensions.get('window');
28
+ setSystemInfo({
29
+ platform: Platform.OS,
30
+ version: Platform.Version?.toString() || 'Unknown',
31
+ screenDimensions: {
32
+ width: dimensions.width,
33
+ height: dimensions.height
34
+ },
35
+ timestamp: new Date().toISOString()
36
+ });
37
+ }, []);
38
+ const copyToClipboard = async (text, label) => {
39
+ try {
40
+ await Clipboard.setString(text);
41
+ Alert.alert('Copied', `${label} copied to clipboard`);
42
+ } catch (error) {
43
+ Alert.alert('Error', 'Failed to copy to clipboard');
44
+ }
45
+ };
46
+ const generateFullReport = () => {
47
+ const report = {
48
+ packageInfo: {
49
+ name: packageInfo.name,
50
+ version: packageInfo.version,
51
+ description: packageInfo.description
52
+ },
53
+ systemInfo,
54
+ userInfo: {
55
+ isAuthenticated: !!user,
56
+ userId: user?.id || 'Not authenticated',
57
+ username: user?.username || 'N/A',
58
+ totalUsers: users?.length || 0
59
+ },
60
+ apiConfiguration: {
61
+ apiUrl: 'http://localhost:3001'
62
+ },
63
+ buildInfo: {
64
+ timestamp: new Date().toISOString(),
65
+ environment: __DEV__ ? 'Development' : 'Production'
66
+ }
67
+ };
68
+ return JSON.stringify(report, null, 2);
69
+ };
70
+ const handleCopyFullReport = () => {
71
+ const report = generateFullReport();
72
+ copyToClipboard(report, 'Full application report');
73
+ };
74
+ const InfoSection = ({
75
+ title,
76
+ children
77
+ }) => /*#__PURE__*/_jsxs(View, {
78
+ style: [styles.section, {
79
+ backgroundColor: secondaryBackgroundColor,
80
+ borderColor
81
+ }],
82
+ children: [/*#__PURE__*/_jsx(Text, {
83
+ style: [styles.sectionTitle, {
84
+ color: primaryColor
85
+ }],
86
+ children: title
87
+ }), children]
88
+ });
89
+ const InfoRow = ({
90
+ label,
91
+ value,
92
+ copyable = false
93
+ }) => /*#__PURE__*/_jsxs(View, {
94
+ style: styles.infoRow,
95
+ children: [/*#__PURE__*/_jsxs(Text, {
96
+ style: [styles.infoLabel, {
97
+ color: isDarkTheme ? '#CCCCCC' : '#666666'
98
+ }],
99
+ children: [label, ":"]
100
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
101
+ style: styles.infoValueContainer,
102
+ onPress: copyable ? () => copyToClipboard(value, label) : undefined,
103
+ disabled: !copyable,
104
+ children: /*#__PURE__*/_jsx(Text, {
105
+ style: [styles.infoValue, {
106
+ color: textColor
107
+ }, copyable && {
108
+ color: primaryColor,
109
+ textDecorationLine: 'underline'
110
+ }],
111
+ children: value
112
+ })
113
+ })]
114
+ });
115
+ return /*#__PURE__*/_jsxs(View, {
116
+ style: [styles.container, {
117
+ backgroundColor
118
+ }],
119
+ children: [/*#__PURE__*/_jsxs(View, {
120
+ style: [styles.header, {
121
+ borderBottomColor: borderColor
122
+ }],
123
+ children: [/*#__PURE__*/_jsx(Text, {
124
+ style: [styles.title, {
125
+ color: textColor
126
+ }],
127
+ children: "Application Information"
128
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
129
+ onPress: onClose,
130
+ style: styles.closeButton,
131
+ children: /*#__PURE__*/_jsx(Text, {
132
+ style: [styles.closeButtonText, {
133
+ color: primaryColor
134
+ }],
135
+ children: "\xD7"
136
+ })
137
+ })]
138
+ }), /*#__PURE__*/_jsxs(ScrollView, {
139
+ style: styles.content,
140
+ showsVerticalScrollIndicator: false,
141
+ children: [/*#__PURE__*/_jsxs(InfoSection, {
142
+ title: "Package Information",
143
+ children: [/*#__PURE__*/_jsx(InfoRow, {
144
+ label: "Name",
145
+ value: packageInfo.name,
146
+ copyable: true
147
+ }), /*#__PURE__*/_jsx(InfoRow, {
148
+ label: "Version",
149
+ value: packageInfo.version,
150
+ copyable: true
151
+ }), /*#__PURE__*/_jsx(InfoRow, {
152
+ label: "Description",
153
+ value: packageInfo.description || 'No description'
154
+ }), /*#__PURE__*/_jsx(InfoRow, {
155
+ label: "Main Entry",
156
+ value: packageInfo.main || 'N/A'
157
+ }), /*#__PURE__*/_jsx(InfoRow, {
158
+ label: "Module Entry",
159
+ value: packageInfo.module || 'N/A'
160
+ }), /*#__PURE__*/_jsx(InfoRow, {
161
+ label: "Types Entry",
162
+ value: packageInfo.types || 'N/A'
163
+ })]
164
+ }), /*#__PURE__*/_jsxs(InfoSection, {
165
+ title: "System Information",
166
+ children: [/*#__PURE__*/_jsx(InfoRow, {
167
+ label: "Platform",
168
+ value: Platform.OS
169
+ }), /*#__PURE__*/_jsx(InfoRow, {
170
+ label: "Platform Version",
171
+ value: systemInfo?.version || 'Loading...'
172
+ }), /*#__PURE__*/_jsx(InfoRow, {
173
+ label: "Screen Width",
174
+ value: `${systemInfo?.screenDimensions.width || 0}px`
175
+ }), /*#__PURE__*/_jsx(InfoRow, {
176
+ label: "Screen Height",
177
+ value: `${systemInfo?.screenDimensions.height || 0}px`
178
+ }), /*#__PURE__*/_jsx(InfoRow, {
179
+ label: "Environment",
180
+ value: __DEV__ ? 'Development' : 'Production'
181
+ })]
182
+ }), /*#__PURE__*/_jsxs(InfoSection, {
183
+ title: "User Information",
184
+ children: [/*#__PURE__*/_jsx(InfoRow, {
185
+ label: "Authentication Status",
186
+ value: user ? 'Authenticated' : 'Not Authenticated'
187
+ }), user && /*#__PURE__*/_jsxs(_Fragment, {
188
+ children: [/*#__PURE__*/_jsx(InfoRow, {
189
+ label: "User ID",
190
+ value: user.id,
191
+ copyable: true
192
+ }), /*#__PURE__*/_jsx(InfoRow, {
193
+ label: "Username",
194
+ value: user.username || 'N/A'
195
+ }), /*#__PURE__*/_jsx(InfoRow, {
196
+ label: "Email",
197
+ value: user.email || 'N/A'
198
+ }), /*#__PURE__*/_jsx(InfoRow, {
199
+ label: "Premium Status",
200
+ value: user.isPremium ? 'Premium' : 'Standard'
201
+ })]
202
+ }), /*#__PURE__*/_jsx(InfoRow, {
203
+ label: "Total Signed-in Users",
204
+ value: users?.length?.toString() || '0'
205
+ })]
206
+ }), /*#__PURE__*/_jsxs(InfoSection, {
207
+ title: "API Configuration",
208
+ children: [/*#__PURE__*/_jsx(InfoRow, {
209
+ label: "API Base URL",
210
+ value: "http://localhost:3001",
211
+ copyable: true
212
+ }), /*#__PURE__*/_jsx(InfoRow, {
213
+ label: "Connection Status",
214
+ value: "Unknown"
215
+ })]
216
+ }), /*#__PURE__*/_jsxs(InfoSection, {
217
+ title: "Build Information",
218
+ children: [/*#__PURE__*/_jsx(InfoRow, {
219
+ label: "Build Timestamp",
220
+ value: systemInfo?.timestamp || 'Loading...',
221
+ copyable: true
222
+ }), /*#__PURE__*/_jsx(InfoRow, {
223
+ label: "React Native",
224
+ value: "Expo/React Native"
225
+ }), /*#__PURE__*/_jsx(InfoRow, {
226
+ label: "JavaScript Engine",
227
+ value: "Hermes"
228
+ })]
229
+ }), /*#__PURE__*/_jsxs(InfoSection, {
230
+ title: "Dependencies",
231
+ children: [/*#__PURE__*/_jsx(InfoRow, {
232
+ label: "React Native Version",
233
+ value: "Latest"
234
+ }), /*#__PURE__*/_jsx(InfoRow, {
235
+ label: "Expo SDK",
236
+ value: "Latest"
237
+ }), /*#__PURE__*/_jsx(InfoRow, {
238
+ label: "TypeScript",
239
+ value: "Enabled"
240
+ })]
241
+ }), /*#__PURE__*/_jsxs(View, {
242
+ style: styles.actionSection,
243
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
244
+ style: [styles.actionButton, {
245
+ backgroundColor: primaryColor
246
+ }],
247
+ onPress: handleCopyFullReport,
248
+ children: /*#__PURE__*/_jsx(Text, {
249
+ style: styles.actionButtonText,
250
+ children: "Copy Full Report"
251
+ })
252
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
253
+ style: [styles.actionButton, {
254
+ backgroundColor: successColor
255
+ }],
256
+ onPress: () => {
257
+ Alert.alert('System Check', 'All systems operational', [{
258
+ text: 'OK'
259
+ }]);
260
+ },
261
+ children: /*#__PURE__*/_jsx(Text, {
262
+ style: styles.actionButtonText,
263
+ children: "Run System Check"
264
+ })
265
+ })]
266
+ })]
267
+ })]
268
+ });
269
+ };
270
+ const styles = StyleSheet.create({
271
+ container: {
272
+ flex: 1
273
+ },
274
+ header: {
275
+ flexDirection: 'row',
276
+ justifyContent: 'space-between',
277
+ alignItems: 'center',
278
+ padding: 20,
279
+ borderBottomWidth: 1
280
+ },
281
+ title: {
282
+ fontSize: 20,
283
+ fontFamily: fontFamilies.phuduBold
284
+ },
285
+ closeButton: {
286
+ padding: 10
287
+ },
288
+ closeButtonText: {
289
+ fontSize: 24,
290
+ fontFamily: fontFamilies.phuduBold
291
+ },
292
+ content: {
293
+ flex: 1,
294
+ padding: 16
295
+ },
296
+ section: {
297
+ marginBottom: 20,
298
+ borderRadius: 12,
299
+ padding: 16,
300
+ borderWidth: 1
301
+ },
302
+ sectionTitle: {
303
+ fontSize: 18,
304
+ fontFamily: fontFamilies.phuduBold,
305
+ marginBottom: 12
306
+ },
307
+ infoRow: {
308
+ flexDirection: 'row',
309
+ justifyContent: 'space-between',
310
+ alignItems: 'flex-start',
311
+ marginBottom: 8,
312
+ minHeight: 24
313
+ },
314
+ infoLabel: {
315
+ fontSize: 14,
316
+ fontFamily: fontFamilies.phuduMedium,
317
+ flex: 1,
318
+ marginRight: 12
319
+ },
320
+ infoValueContainer: {
321
+ flex: 2
322
+ },
323
+ infoValue: {
324
+ fontSize: 14,
325
+ fontFamily: fontFamilies.phudu,
326
+ textAlign: 'right',
327
+ flexWrap: 'wrap'
328
+ },
329
+ actionSection: {
330
+ marginTop: 20,
331
+ marginBottom: 40
332
+ },
333
+ actionButton: {
334
+ paddingVertical: 12,
335
+ paddingHorizontal: 24,
336
+ borderRadius: 8,
337
+ marginBottom: 12,
338
+ alignItems: 'center'
339
+ },
340
+ actionButtonText: {
341
+ color: '#FFFFFF',
342
+ fontSize: 16,
343
+ fontFamily: fontFamilies.phuduMedium
344
+ }
345
+ });
346
+ export default AppInfoScreen;
347
+ //# sourceMappingURL=AppInfoScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","useEffect","View","Text","TouchableOpacity","StyleSheet","Platform","Dimensions","Alert","Clipboard","ScrollView","useOxy","fontFamilies","packageInfo","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","AppInfoScreen","onClose","theme","navigate","user","users","systemInfo","setSystemInfo","isDarkTheme","textColor","backgroundColor","secondaryBackgroundColor","borderColor","primaryColor","successColor","dimensions","get","platform","OS","version","Version","toString","screenDimensions","width","height","timestamp","Date","toISOString","copyToClipboard","text","label","setString","alert","error","generateFullReport","report","name","description","userInfo","isAuthenticated","userId","id","username","totalUsers","length","apiConfiguration","apiUrl","buildInfo","environment","__DEV__","JSON","stringify","handleCopyFullReport","InfoSection","title","children","style","styles","section","sectionTitle","color","InfoRow","value","copyable","infoRow","infoLabel","infoValueContainer","onPress","undefined","disabled","infoValue","textDecorationLine","container","header","borderBottomColor","closeButton","closeButtonText","content","showsVerticalScrollIndicator","main","module","types","email","isPremium","actionSection","actionButton","actionButtonText","create","flex","flexDirection","justifyContent","alignItems","padding","borderBottomWidth","fontSize","fontFamily","phuduBold","marginBottom","borderRadius","borderWidth","minHeight","phuduMedium","marginRight","phudu","textAlign","flexWrap","marginTop","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["ui/screens/AppInfoScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACIC,IAAI,EACJC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,EACRC,UAAU,EACVC,KAAK,EACLC,SAAS,EAETC,UAAU,QACP,cAAc;AAErB,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,WAAW,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAYtD,MAAMC,aAAwC,GAAGA,CAAC;EAC9CC,OAAO;EACPC,KAAK;EACLC;AACJ,CAAC,KAAK;EACF,MAAM;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAGd,MAAM,CAAC,CAAC;EAChC,MAAM,CAACe,UAAU,EAAEC,aAAa,CAAC,GAAG3B,QAAQ,CAAoB,IAAI,CAAC;EAErE,MAAM4B,WAAW,GAAGN,KAAK,KAAK,MAAM;EACpC,MAAMO,SAAS,GAAGD,WAAW,GAAG,SAAS,GAAG,SAAS;EACrD,MAAME,eAAe,GAAGF,WAAW,GAAG,SAAS,GAAG,SAAS;EAC3D,MAAMG,wBAAwB,GAAGH,WAAW,GAAG,SAAS,GAAG,SAAS;EACpE,MAAMI,WAAW,GAAGJ,WAAW,GAAG,SAAS,GAAG,SAAS;EACvD,MAAMK,YAAY,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,CAAC,CAAC;AAEF,eAAerG,aAAa","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Package version and metadata constants
3
+ * This file is auto-generated to avoid runtime dependency on package.json
4
+ */
5
+ export declare const packageInfo: {
6
+ readonly name: "@oxyhq/services";
7
+ readonly version: "5.2.1";
8
+ readonly description: "Reusable OxyHQ module to handle authentication, user management, karma system and more 🚀";
9
+ readonly main: "lib/commonjs/node/index.js";
10
+ readonly module: "lib/module/node/index.js";
11
+ readonly types: "lib/typescript/node/index.d.ts";
12
+ };
13
+ export declare const name: "@oxyhq/services", version: "5.2.1", description: "Reusable OxyHQ module to handle authentication, user management, karma system and more 🚀";
14
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/constants/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAEX,eAAO,MAAQ,IAAI,qBAAE,OAAO,WAAE,WAAW,6FAAgB,CAAC"}
@@ -15,5 +15,6 @@ export { default as AccountCenterScreen } from './screens/AccountCenterScreen';
15
15
  export { default as SessionManagementScreen } from './screens/SessionManagementScreen';
16
16
  export { default as AccountOverviewScreen } from './screens/AccountOverviewScreen';
17
17
  export { default as AccountSettingsScreen } from './screens/AccountSettingsScreen';
18
+ export { default as AppInfoScreen } from './screens/AppInfoScreen';
18
19
  export * from './navigation/types';
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAA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B,EAClB,MAAM,EACN,eAAe,EACf,uBAAuB,EACxB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGnE,cAAc,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OxyRouter.d.ts","sourceRoot":"","sources":["../../../../src/ui/navigation/OxyRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAqBnD,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AA8DtD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiGvC,CAAC;AAaF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"OxyRouter.d.ts","sourceRoot":"","sources":["../../../../src/ui/navigation/OxyRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAsBnD,OAAO,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AAkEtD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiGvC,CAAC;AAaF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccountCenterScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/AccountCenterScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmKlD,CAAC;AAwFF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"AccountCenterScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/AccountCenterScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0KlD,CAAC;AAwFF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { BaseScreenProps } from '../navigation/types';
3
+ declare const AppInfoScreen: React.FC<BaseScreenProps>;
4
+ export default AppInfoScreen;
5
+ //# sourceMappingURL=AppInfoScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppInfoScreen.d.ts","sourceRoot":"","sources":["../../../../src/ui/screens/AppInfoScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsL5C,CAAC;AA+EF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "Reusable OxyHQ module to handle authentication, user management, karma system and more 🚀",
5
5
  "main": "lib/commonjs/node/index.js",
6
6
  "module": "lib/module/node/index.js",
@@ -9,6 +9,11 @@
9
9
  "source": "src/index.ts",
10
10
  "exports": {
11
11
  ".": {
12
+ "import": "./lib/module/index.js",
13
+ "require": "./lib/commonjs/index.js",
14
+ "types": "./lib/typescript/index.d.ts"
15
+ },
16
+ "./core": {
12
17
  "import": "./lib/module/node/index.js",
13
18
  "require": "./lib/commonjs/node/index.js",
14
19
  "types": "./lib/typescript/node/index.d.ts"
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Package version and metadata constants
3
+ * This file is auto-generated to avoid runtime dependency on package.json
4
+ */
5
+
6
+ export const packageInfo = {
7
+ name: "@oxyhq/services",
8
+ version: "5.2.1",
9
+ description: "Reusable OxyHQ module to handle authentication, user management, karma system and more 🚀",
10
+ main: "lib/commonjs/node/index.js",
11
+ module: "lib/module/node/index.js",
12
+ types: "lib/typescript/node/index.d.ts"
13
+ } as const;
14
+
15
+ export const { name, version, description } = packageInfo;
package/src/ui/index.ts CHANGED
@@ -26,6 +26,7 @@ export { default as AccountCenterScreen } from './screens/AccountCenterScreen';
26
26
  export { default as SessionManagementScreen } from './screens/SessionManagementScreen';
27
27
  export { default as AccountOverviewScreen } from './screens/AccountOverviewScreen';
28
28
  export { default as AccountSettingsScreen } from './screens/AccountSettingsScreen';
29
+ export { default as AppInfoScreen } from './screens/AppInfoScreen';
29
30
 
30
31
  // Export types
31
32
  export * from './navigation/types';
@@ -10,6 +10,7 @@ import AccountSwitcherScreen from '../screens/AccountSwitcherScreen';
10
10
  import SessionManagementScreen from '../screens/SessionManagementScreen';
11
11
  import AccountOverviewScreen from '../screens/AccountOverviewScreen';
12
12
  import AccountSettingsScreen from '../screens/AccountSettingsScreen';
13
+ import AppInfoScreen from '../screens/AppInfoScreen';
13
14
  import KarmaCenterScreen from '../screens/karma/KarmaCenterScreen';
14
15
  import KarmaLeaderboardScreen from '../screens/karma/KarmaLeaderboardScreen';
15
16
  import KarmaRulesScreen from '../screens/karma/KarmaRulesScreen';
@@ -51,6 +52,10 @@ const routes: Record<string, RouteConfig> = {
51
52
  component: AccountSettingsScreen,
52
53
  snapPoints: ['60%', '100%'],
53
54
  },
55
+ AppInfo: {
56
+ component: AppInfoScreen,
57
+ snapPoints: ['60%', '90%'],
58
+ },
54
59
  KarmaCenter: {
55
60
  component: KarmaCenterScreen,
56
61
  snapPoints: ['60%', '100%'],
@@ -13,6 +13,7 @@ import {
13
13
  import { BaseScreenProps } from '../navigation/types';
14
14
  import { useOxy } from '../context/OxyContext';
15
15
  import { fontFamilies } from '../styles/fonts';
16
+ import { packageInfo } from '../../constants/version';
16
17
 
17
18
  const AccountCenterScreen: React.FC<BaseScreenProps> = ({
18
19
  onClose,
@@ -149,6 +150,13 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
149
150
  >
150
151
  <Text style={[styles.actionButtonText, { color: textColor }]}>Help & Support</Text>
151
152
  </TouchableOpacity>
153
+
154
+ <TouchableOpacity
155
+ style={[styles.actionButton, { borderColor }]}
156
+ onPress={() => navigate('AppInfo')}
157
+ >
158
+ <Text style={[styles.actionButtonText, { color: textColor }]}>App Information</Text>
159
+ </TouchableOpacity>
152
160
  </View>
153
161
 
154
162
  <TouchableOpacity
@@ -165,7 +173,7 @@ const AccountCenterScreen: React.FC<BaseScreenProps> = ({
165
173
 
166
174
  <View style={styles.versionContainer}>
167
175
  <Text style={[styles.versionText, { color: isDarkTheme ? '#666666' : '#999999' }]}>
168
- Version 5.1.4
176
+ Version {packageInfo.version}
169
177
  </Text>
170
178
  </View>
171
179
  </ScrollView>