@oxyhq/services 5.21.6 → 5.21.7

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 (129) hide show
  1. package/lib/commonjs/crypto/keyManager.js +67 -22
  2. package/lib/commonjs/crypto/keyManager.js.map +1 -1
  3. package/lib/commonjs/index.js +66 -0
  4. package/lib/commonjs/index.js.map +1 -1
  5. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +57 -0
  6. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -0
  7. package/lib/commonjs/ui/components/profile/EditBioModal.js +24 -156
  8. package/lib/commonjs/ui/components/profile/EditBioModal.js.map +1 -1
  9. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js +28 -178
  10. package/lib/commonjs/ui/components/profile/EditDisplayNameModal.js.map +1 -1
  11. package/lib/commonjs/ui/components/profile/EditEmailModal.js +32 -159
  12. package/lib/commonjs/ui/components/profile/EditEmailModal.js.map +1 -1
  13. package/lib/commonjs/ui/components/profile/EditLocationModal.js +45 -227
  14. package/lib/commonjs/ui/components/profile/EditLocationModal.js.map +1 -1
  15. package/lib/commonjs/ui/components/profile/EditUsernameModal.js +30 -155
  16. package/lib/commonjs/ui/components/profile/EditUsernameModal.js.map +1 -1
  17. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +177 -0
  18. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -0
  19. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -123
  20. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  21. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +2 -32
  22. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  23. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +2 -31
  24. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  25. package/lib/commonjs/ui/hooks/useFileFiltering.js +76 -0
  26. package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -0
  27. package/lib/commonjs/ui/screens/FileManagementScreen.js +2 -2
  28. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  29. package/lib/commonjs/ui/utils/authHelpers.js +164 -0
  30. package/lib/commonjs/ui/utils/authHelpers.js.map +1 -0
  31. package/lib/commonjs/ui/utils/avatarUtils.js +18 -61
  32. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  33. package/lib/module/crypto/keyManager.js +67 -22
  34. package/lib/module/crypto/keyManager.js.map +1 -1
  35. package/lib/module/index.js +6 -0
  36. package/lib/module/index.js.map +1 -1
  37. package/lib/module/ui/components/fileManagement/AnimatedButton.js +50 -0
  38. package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -0
  39. package/lib/module/ui/components/profile/EditBioModal.js +24 -156
  40. package/lib/module/ui/components/profile/EditBioModal.js.map +1 -1
  41. package/lib/module/ui/components/profile/EditDisplayNameModal.js +28 -178
  42. package/lib/module/ui/components/profile/EditDisplayNameModal.js.map +1 -1
  43. package/lib/module/ui/components/profile/EditEmailModal.js +32 -159
  44. package/lib/module/ui/components/profile/EditEmailModal.js.map +1 -1
  45. package/lib/module/ui/components/profile/EditLocationModal.js +45 -227
  46. package/lib/module/ui/components/profile/EditLocationModal.js.map +1 -1
  47. package/lib/module/ui/components/profile/EditUsernameModal.js +30 -155
  48. package/lib/module/ui/components/profile/EditUsernameModal.js.map +1 -1
  49. package/lib/module/ui/hooks/mutations/mutationFactory.js +173 -0
  50. package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -0
  51. package/lib/module/ui/hooks/mutations/useAccountMutations.js +10 -122
  52. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  53. package/lib/module/ui/hooks/queries/useAccountQueries.js +2 -32
  54. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  55. package/lib/module/ui/hooks/queries/useServicesQueries.js +2 -31
  56. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  57. package/lib/module/ui/hooks/useFileFiltering.js +72 -0
  58. package/lib/module/ui/hooks/useFileFiltering.js.map +1 -0
  59. package/lib/module/ui/screens/FileManagementScreen.js +2 -2
  60. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  61. package/lib/module/ui/utils/authHelpers.js +154 -0
  62. package/lib/module/ui/utils/authHelpers.js.map +1 -0
  63. package/lib/module/ui/utils/avatarUtils.js +18 -61
  64. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  65. package/lib/typescript/commonjs/crypto/keyManager.d.ts.map +1 -1
  66. package/lib/typescript/commonjs/index.d.ts +6 -0
  67. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
  69. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
  70. package/lib/typescript/commonjs/ui/components/profile/EditBioModal.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/ui/components/profile/EditDisplayNameModal.d.ts.map +1 -1
  72. package/lib/typescript/commonjs/ui/components/profile/EditEmailModal.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts +1 -0
  74. package/lib/typescript/commonjs/ui/components/profile/EditLocationModal.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/ui/components/profile/EditUsernameModal.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +76 -0
  77. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
  78. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
  79. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +1 -1
  81. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +1 -1
  83. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts +29 -0
  85. package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -0
  86. package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts +99 -0
  87. package/lib/typescript/commonjs/ui/utils/authHelpers.d.ts.map +1 -0
  88. package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
  89. package/lib/typescript/module/crypto/keyManager.d.ts.map +1 -1
  90. package/lib/typescript/module/index.d.ts +6 -0
  91. package/lib/typescript/module/index.d.ts.map +1 -1
  92. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +16 -0
  93. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -0
  94. package/lib/typescript/module/ui/components/profile/EditBioModal.d.ts.map +1 -1
  95. package/lib/typescript/module/ui/components/profile/EditDisplayNameModal.d.ts.map +1 -1
  96. package/lib/typescript/module/ui/components/profile/EditEmailModal.d.ts.map +1 -1
  97. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts +1 -0
  98. package/lib/typescript/module/ui/components/profile/EditLocationModal.d.ts.map +1 -1
  99. package/lib/typescript/module/ui/components/profile/EditUsernameModal.d.ts.map +1 -1
  100. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +76 -0
  101. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -0
  102. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +29 -4
  103. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  104. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +1 -1
  105. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  106. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +1 -1
  107. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  108. package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts +29 -0
  109. package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -0
  110. package/lib/typescript/module/ui/utils/authHelpers.d.ts +99 -0
  111. package/lib/typescript/module/ui/utils/authHelpers.d.ts.map +1 -0
  112. package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/src/crypto/keyManager.ts +23 -22
  115. package/src/index.ts +25 -0
  116. package/src/ui/components/fileManagement/AnimatedButton.tsx +56 -0
  117. package/src/ui/components/profile/EditBioModal.tsx +38 -176
  118. package/src/ui/components/profile/EditDisplayNameModal.tsx +48 -195
  119. package/src/ui/components/profile/EditEmailModal.tsx +49 -180
  120. package/src/ui/components/profile/EditLocationModal.tsx +76 -263
  121. package/src/ui/components/profile/EditUsernameModal.tsx +47 -175
  122. package/src/ui/hooks/mutations/mutationFactory.ts +215 -0
  123. package/src/ui/hooks/mutations/useAccountMutations.ts +48 -136
  124. package/src/ui/hooks/queries/useAccountQueries.ts +6 -33
  125. package/src/ui/hooks/queries/useServicesQueries.ts +6 -32
  126. package/src/ui/hooks/useFileFiltering.ts +115 -0
  127. package/src/ui/screens/FileManagementScreen.tsx +2 -2
  128. package/src/ui/utils/authHelpers.ts +183 -0
  129. package/src/ui/utils/avatarUtils.ts +25 -65
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EditEmailModal = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
10
- var _useThemeStyles = require("../../hooks/useThemeStyles.js");
11
- var _useColorScheme = require("../../hooks/use-color-scheme.js");
12
- var _useI18n = require("../../hooks/useI18n.js");
13
- var _fonts = require("../../styles/fonts.js");
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _EditFieldModal = require("./EditFieldModal.js");
14
9
  var _useProfileEditing = require("../../hooks/useProfileEditing.js");
10
+ var _useI18n = require("../../hooks/useI18n.js");
11
+ var _validationUtils = require("../../../utils/validationUtils.js");
15
12
  var _jsxRuntime = require("react/jsx-runtime");
16
- 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); }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
14
  const EditEmailModal = ({
18
15
  visible,
19
16
  onClose,
@@ -24,161 +21,37 @@ const EditEmailModal = ({
24
21
  const {
25
22
  t
26
23
  } = (0, _useI18n.useI18n)();
27
- const colorScheme = (0, _useColorScheme.useColorScheme)();
28
- const themeStyles = (0, _useThemeStyles.useThemeStyles)(theme || 'light', colorScheme);
29
- const colors = themeStyles.colors;
30
24
  const {
31
- updateField,
32
- isSaving
25
+ updateField
33
26
  } = (0, _useProfileEditing.useProfileEditing)();
34
- const [email, setEmail] = (0, _react.useState)(initialValue);
35
- (0, _react.useEffect)(() => {
36
- if (visible) {
37
- setEmail(initialValue);
38
- }
39
- }, [visible, initialValue]);
40
- const handleSave = async () => {
41
- const success = await updateField('email', email);
42
- if (success) {
43
- onSave?.();
44
- onClose();
45
- }
46
- };
47
- const isValidEmail = email => {
48
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
49
- };
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditFieldModal.EditFieldModal, {
51
28
  visible: visible,
52
- animationType: "slide",
53
- transparent: true,
54
- onRequestClose: onClose,
55
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
56
- style: styles.modalOverlay,
57
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
58
- style: [styles.modalContent, {
59
- backgroundColor: colors.background
60
- }],
61
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
62
- style: styles.modalHeader,
63
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
64
- onPress: onClose,
65
- style: styles.closeButton,
66
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
67
- name: "close",
68
- size: 24,
69
- color: colors.text
70
- })
71
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
72
- style: [styles.modalTitle, {
73
- color: colors.text
74
- }],
75
- children: t('editProfile.items.email.title') || 'Email'
76
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
77
- onPress: handleSave,
78
- disabled: isSaving || !isValidEmail(email),
79
- style: [styles.saveButton, {
80
- opacity: isSaving || !isValidEmail(email) ? 0.5 : 1
81
- }],
82
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
83
- style: [styles.saveButtonText, {
84
- color: colors.tint
85
- }],
86
- children: isSaving ? 'Saving...' : 'Save'
87
- })
88
- })]
89
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
90
- style: styles.modalBody,
91
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
92
- style: styles.inputGroup,
93
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
94
- style: [styles.label, {
95
- color: colors.text
96
- }],
97
- children: t('editProfile.items.email.label') || 'Email Address'
98
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
99
- style: [styles.input, {
100
- backgroundColor: colors.card,
101
- color: colors.text,
102
- borderColor: colors.border
103
- }],
104
- value: email,
105
- onChangeText: setEmail,
106
- placeholder: t('editProfile.items.email.placeholder') || 'Enter your email address',
107
- placeholderTextColor: colors.secondaryText,
108
- autoFocus: true,
109
- keyboardType: "email-address",
110
- autoCapitalize: "none",
111
- autoCorrect: false,
112
- selectionColor: colors.tint
113
- })]
114
- })
115
- })]
116
- })
117
- })
29
+ onClose: onClose,
30
+ title: t('editProfile.items.email.title') || 'Email',
31
+ theme: theme,
32
+ onSave: onSave,
33
+ variant: "single",
34
+ fields: [{
35
+ key: 'email',
36
+ label: t('editProfile.items.email.label') || 'Email Address',
37
+ initialValue,
38
+ placeholder: t('editProfile.items.email.placeholder') || 'Enter your email address',
39
+ validation: value => {
40
+ if (!_validationUtils.EMAIL_REGEX.test(value)) {
41
+ return t('editProfile.items.email.invalid') || 'Please enter a valid email address';
42
+ }
43
+ return undefined;
44
+ },
45
+ inputProps: {
46
+ keyboardType: 'email-address',
47
+ autoCapitalize: 'none',
48
+ autoCorrect: false
49
+ }
50
+ }],
51
+ onSubmit: async data => {
52
+ return await updateField('email', data.email);
53
+ }
118
54
  });
119
55
  };
120
56
  exports.EditEmailModal = EditEmailModal;
121
- const styles = _reactNative.StyleSheet.create({
122
- modalOverlay: {
123
- flex: 1,
124
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
125
- justifyContent: 'flex-end'
126
- },
127
- modalContent: {
128
- borderTopLeftRadius: 20,
129
- borderTopRightRadius: 20,
130
- paddingTop: _reactNative.Platform.OS === 'ios' ? 20 : 16,
131
- maxHeight: '80%'
132
- },
133
- modalHeader: {
134
- flexDirection: 'row',
135
- alignItems: 'center',
136
- justifyContent: 'space-between',
137
- paddingHorizontal: 16,
138
- paddingBottom: 16,
139
- borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
140
- borderBottomColor: '#E5E5EA'
141
- },
142
- closeButton: {
143
- width: 40,
144
- height: 40,
145
- alignItems: 'center',
146
- justifyContent: 'center'
147
- },
148
- modalTitle: {
149
- fontSize: 18,
150
- fontWeight: '600',
151
- fontFamily: _fonts.fontFamilies.phuduSemiBold,
152
- flex: 1,
153
- textAlign: 'center'
154
- },
155
- saveButton: {
156
- paddingHorizontal: 16,
157
- paddingVertical: 8
158
- },
159
- saveButtonText: {
160
- fontSize: 16,
161
- fontWeight: '600',
162
- fontFamily: _fonts.fontFamilies.phuduSemiBold
163
- },
164
- modalBody: {
165
- padding: 16,
166
- gap: 16
167
- },
168
- inputGroup: {
169
- gap: 8
170
- },
171
- label: {
172
- fontSize: 14,
173
- fontWeight: '600',
174
- fontFamily: _fonts.fontFamilies.phuduSemiBold
175
- },
176
- input: {
177
- borderWidth: _reactNative.StyleSheet.hairlineWidth,
178
- borderRadius: 12,
179
- padding: 16,
180
- fontSize: 16,
181
- minHeight: 52
182
- }
183
- });
184
57
  //# sourceMappingURL=EditEmailModal.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_vectorIcons","_useThemeStyles","_useColorScheme","_useI18n","_fonts","_useProfileEditing","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EditEmailModal","visible","onClose","initialValue","theme","onSave","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","colors","updateField","isSaving","useProfileEditing","email","setEmail","useState","useEffect","handleSave","success","isValidEmail","test","jsx","Modal","animationType","transparent","onRequestClose","children","View","style","styles","modalOverlay","jsxs","modalContent","backgroundColor","background","modalHeader","TouchableOpacity","onPress","closeButton","Ionicons","name","size","color","text","Text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","modalBody","inputGroup","label","TextInput","input","card","borderColor","border","value","onChangeText","placeholder","placeholderTextColor","secondaryText","autoFocus","keyboardType","autoCapitalize","autoCorrect","selectionColor","exports","StyleSheet","create","flex","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","Platform","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomWidth","hairlineWidth","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","fontFamilies","phuduSemiBold","textAlign","paddingVertical","padding","gap","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditEmailModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAAkE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,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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EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAY,CAACC,aAAa;IACtCrB,IAAI,EAAE,CAAC;IACPsB,SAAS,EAAE;EACf,CAAC;EACD/C,UAAU,EAAE;IACRmC,iBAAiB,EAAE,EAAE;IACrBa,eAAe,EAAE;EACrB,CAAC;EACD9C,cAAc,EAAE;IACZwC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAY,CAACC;EAC7B,CAAC;EACD1C,SAAS,EAAE;IACP6C,OAAO,EAAE,EAAE;IACXC,GAAG,EAAE;EACT,CAAC;EACD7C,UAAU,EAAE;IACR6C,GAAG,EAAE;EACT,CAAC;EACD5C,KAAK,EAAE;IACHoC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAY,CAACC;EAC7B,CAAC;EACDtC,KAAK,EAAE;IACH2C,WAAW,EAAE5B,uBAAU,CAACe,aAAa;IACrCc,YAAY,EAAE,EAAE;IAChBH,OAAO,EAAE,EAAE;IACXP,QAAQ,EAAE,EAAE;IACZW,SAAS,EAAE;EACf;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_EditFieldModal","_useProfileEditing","_useI18n","_validationUtils","_jsxRuntime","e","__esModule","default","EditEmailModal","visible","onClose","initialValue","theme","onSave","t","useI18n","updateField","useProfileEditing","jsx","EditFieldModal","title","variant","fields","key","label","placeholder","validation","value","EMAIL_REGEX","test","undefined","inputProps","keyboardType","autoCapitalize","autoCorrect","onSubmit","data","email","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditEmailModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAA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KAAe,CAAC;IACzD;EAAE,CACH,CAAC;AAEN,CAAC;AAACC,OAAA,CAAA9B,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -4,16 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EditLocationModal = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
7
+ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _vectorIcons = require("@expo/vector-icons");
10
- var _useThemeStyles = require("../../hooks/useThemeStyles.js");
11
- var _useColorScheme = require("../../hooks/use-color-scheme.js");
12
- var _useI18n = require("../../hooks/useI18n.js");
13
- var _fonts = require("../../styles/fonts.js");
10
+ var _EditFieldModal = require("./EditFieldModal.js");
14
11
  var _useProfileEditing = require("../../hooks/useProfileEditing.js");
12
+ var _useI18n = require("../../hooks/useI18n.js");
15
13
  var _jsxRuntime = require("react/jsx-runtime");
16
- 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); }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
15
  const EditLocationModal = ({
18
16
  visible,
19
17
  onClose,
@@ -24,243 +22,63 @@ const EditLocationModal = ({
24
22
  const {
25
23
  t
26
24
  } = (0, _useI18n.useI18n)();
27
- const colorScheme = (0, _useColorScheme.useColorScheme)();
28
- const themeStyles = (0, _useThemeStyles.useThemeStyles)(theme || 'light', colorScheme);
29
- const colors = themeStyles.colors;
30
25
  const {
31
- saveProfile,
32
- isSaving
26
+ saveProfile
33
27
  } = (0, _useProfileEditing.useProfileEditing)();
34
- const [locations, setLocations] = (0, _react.useState)(initialLocations);
35
- const [newLocation, setNewLocation] = (0, _react.useState)('');
36
- (0, _react.useEffect)(() => {
37
- if (visible) {
38
- setLocations(initialLocations);
39
- setNewLocation('');
40
- }
41
- }, [visible, initialLocations]);
42
- const handleAddLocation = () => {
43
- if (!newLocation.trim()) return;
44
- const location = {
45
- id: `location-${Date.now()}`,
46
- name: newLocation.trim()
47
- };
48
- setLocations([...locations, location]);
49
- setNewLocation('');
50
- };
51
- const handleRemoveLocation = id => {
52
- setLocations(locations.filter(loc => loc.id !== id));
53
- };
54
- const handleSave = async () => {
55
- const success = await saveProfile({
56
- locations
57
- });
58
- if (success) {
59
- onSave?.();
60
- onClose();
61
- }
62
- };
63
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
28
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditFieldModal.EditFieldModal, {
64
29
  visible: visible,
65
- animationType: "slide",
66
- transparent: true,
67
- onRequestClose: onClose,
68
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
69
- style: styles.modalOverlay,
70
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
71
- style: [styles.modalContent, {
72
- backgroundColor: colors.background
30
+ onClose: onClose,
31
+ title: t('editProfile.items.locations.title') || 'Locations',
32
+ theme: theme,
33
+ onSave: onSave,
34
+ variant: "list",
35
+ listConfig: {
36
+ items: initialLocations,
37
+ addItemLabel: t('editProfile.items.locations.add') || 'Add Location',
38
+ listTitle: t('editProfile.items.locations.yourLocations') || 'Your Locations',
39
+ addItemPlaceholder: t('editProfile.items.locations.placeholder') || 'Enter location name',
40
+ createItem: value => ({
41
+ id: `location-${Date.now()}`,
42
+ name: value.trim()
43
+ }),
44
+ renderItem: (item, onRemove, colors) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
45
+ style: [styles.locationItem, {
46
+ backgroundColor: colors.card,
47
+ borderColor: colors.border
73
48
  }],
74
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
75
- style: styles.modalHeader,
76
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
77
- onPress: onClose,
78
- style: styles.closeButton,
79
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
80
- name: "close",
81
- size: 24,
82
- color: colors.text
83
- })
84
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
85
- style: [styles.modalTitle, {
86
- color: colors.text
87
- }],
88
- children: t('editProfile.items.locations.title') || 'Locations'
89
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
90
- onPress: handleSave,
91
- disabled: isSaving,
92
- style: [styles.saveButton, {
93
- opacity: isSaving ? 0.5 : 1
94
- }],
95
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
96
- style: [styles.saveButtonText, {
97
- color: colors.tint
98
- }],
99
- children: isSaving ? 'Saving...' : 'Save'
100
- })
101
- })]
102
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
103
- style: styles.modalBody,
104
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
105
- style: styles.inputGroup,
106
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
107
- style: [styles.label, {
108
- color: colors.text
109
- }],
110
- children: t('editProfile.items.locations.add') || 'Add Location'
111
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
112
- style: styles.addLocationRow,
113
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
114
- style: [styles.input, {
115
- backgroundColor: colors.card,
116
- color: colors.text,
117
- borderColor: colors.border,
118
- flex: 1
119
- }],
120
- value: newLocation,
121
- onChangeText: setNewLocation,
122
- placeholder: t('editProfile.items.locations.placeholder') || 'Enter location name',
123
- placeholderTextColor: colors.secondaryText,
124
- selectionColor: colors.tint
125
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
126
- style: [styles.addButton, {
127
- backgroundColor: colors.tint
128
- }],
129
- onPress: handleAddLocation,
130
- disabled: !newLocation.trim(),
131
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
132
- name: "add",
133
- size: 20,
134
- color: "#fff"
135
- })
136
- })]
137
- })]
138
- }), locations.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
139
- style: styles.locationsList,
140
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
141
- style: [styles.listTitle, {
142
- color: colors.text
143
- }],
144
- children: [t('editProfile.items.locations.yourLocations') || 'Your Locations', " (", locations.length, ")"]
145
- }), locations.map((location, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
146
- style: [styles.locationItem, {
147
- backgroundColor: colors.card,
148
- borderColor: colors.border
149
- }, index < locations.length - 1 && {
150
- borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
151
- }],
152
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
153
- style: [styles.locationName, {
154
- color: colors.text
155
- }],
156
- children: location.name
157
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
158
- onPress: () => handleRemoveLocation(location.id),
159
- style: styles.removeButton,
160
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
161
- name: "trash-outline",
162
- size: 18,
163
- color: "#FF3B30"
164
- })
165
- })]
166
- }, location.id))]
167
- })]
49
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
50
+ style: [styles.locationName, {
51
+ color: colors.text
52
+ }],
53
+ children: item.name
54
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
55
+ onPress: onRemove,
56
+ style: styles.removeButton,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
58
+ name: "trash-outline",
59
+ size: 18,
60
+ color: "#FF3B30"
61
+ })
168
62
  })]
169
63
  })
170
- })
64
+ },
65
+ onSubmit: async data => {
66
+ return await saveProfile({
67
+ locations: data.items
68
+ });
69
+ }
171
70
  });
172
71
  };
173
72
  exports.EditLocationModal = EditLocationModal;
174
73
  const styles = _reactNative.StyleSheet.create({
175
- modalOverlay: {
176
- flex: 1,
177
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
178
- justifyContent: 'flex-end'
179
- },
180
- modalContent: {
181
- borderTopLeftRadius: 20,
182
- borderTopRightRadius: 20,
183
- paddingTop: _reactNative.Platform.OS === 'ios' ? 20 : 16,
184
- maxHeight: '80%'
185
- },
186
- modalHeader: {
187
- flexDirection: 'row',
188
- alignItems: 'center',
189
- justifyContent: 'space-between',
190
- paddingHorizontal: 16,
191
- paddingBottom: 16,
192
- borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
193
- borderBottomColor: '#E5E5EA'
194
- },
195
- closeButton: {
196
- width: 40,
197
- height: 40,
198
- alignItems: 'center',
199
- justifyContent: 'center'
200
- },
201
- modalTitle: {
202
- fontSize: 18,
203
- fontWeight: '600',
204
- fontFamily: _fonts.fontFamilies.phuduSemiBold,
205
- flex: 1,
206
- textAlign: 'center'
207
- },
208
- saveButton: {
209
- paddingHorizontal: 16,
210
- paddingVertical: 8
211
- },
212
- saveButtonText: {
213
- fontSize: 16,
214
- fontWeight: '600',
215
- fontFamily: _fonts.fontFamilies.phuduSemiBold
216
- },
217
- modalBody: {
218
- padding: 16
219
- },
220
- inputGroup: {
221
- gap: 8,
222
- marginBottom: 24
223
- },
224
- label: {
225
- fontSize: 14,
226
- fontWeight: '600',
227
- fontFamily: _fonts.fontFamilies.phuduSemiBold
228
- },
229
- addLocationRow: {
230
- flexDirection: 'row',
231
- gap: 8,
232
- alignItems: 'center'
233
- },
234
- input: {
235
- borderWidth: _reactNative.StyleSheet.hairlineWidth,
236
- borderRadius: 12,
237
- padding: 16,
238
- fontSize: 16,
239
- minHeight: 52
240
- },
241
- addButton: {
242
- width: 52,
243
- height: 52,
244
- borderRadius: 12,
245
- alignItems: 'center',
246
- justifyContent: 'center'
247
- },
248
- locationsList: {
249
- gap: 8
250
- },
251
- listTitle: {
252
- fontSize: 16,
253
- fontWeight: '600',
254
- fontFamily: _fonts.fontFamilies.phuduSemiBold,
255
- marginBottom: 8
256
- },
257
74
  locationItem: {
258
75
  flexDirection: 'row',
259
76
  alignItems: 'center',
260
77
  justifyContent: 'space-between',
261
78
  padding: 16,
262
79
  borderRadius: 12,
263
- borderWidth: _reactNative.StyleSheet.hairlineWidth
80
+ borderWidth: _reactNative.StyleSheet.hairlineWidth,
81
+ marginBottom: 8
264
82
  },
265
83
  locationName: {
266
84
  fontSize: 16,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_vectorIcons","_useThemeStyles","_useColorScheme","_useI18n","_fonts","_useProfileEditing","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EditLocationModal","visible","onClose","initialLocations","theme","onSave","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","colors","saveProfile","isSaving","useProfileEditing","locations","setLocations","useState","newLocation","setNewLocation","useEffect","handleAddLocation","trim","location","id","Date","now","name","handleRemoveLocation","filter","loc","handleSave","success","jsx","Modal","animationType","transparent","onRequestClose","children","View","style","styles","modalOverlay","jsxs","modalContent","backgroundColor","background","modalHeader","TouchableOpacity","onPress","closeButton","Ionicons","size","color","text","Text","modalTitle","disabled","saveButton","opacity","saveButtonText","tint","ScrollView","modalBody","inputGroup","label","addLocationRow","TextInput","input","card","borderColor","border","flex","value","onChangeText","placeholder","placeholderTextColor","secondaryText","selectionColor","addButton","length","locationsList","listTitle","map","index","locationItem","borderBottomWidth","StyleSheet","hairlineWidth","locationName","removeButton","exports","create","justifyContent","borderTopLeftRadius","borderTopRightRadius","paddingTop","Platform","OS","maxHeight","flexDirection","alignItems","paddingHorizontal","paddingBottom","borderBottomColor","width","height","fontSize","fontWeight","fontFamily","fontFamilies","phuduSemiBold","textAlign","paddingVertical","padding","gap","marginBottom","borderWidth","borderRadius","minHeight"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLocationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAAkE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,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,gBAA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IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAY,CAACC,aAAa;IACtCK,YAAY,EAAE;EAClB,CAAC;EACD/B,YAAY,EAAE;IACVe,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBR,cAAc,EAAE,eAAe;IAC/BqB,OAAO,EAAE,EAAE;IACXI,YAAY,EAAE,EAAE;IAChBD,WAAW,EAAE9B,uBAAU,CAACC;EAC5B,CAAC;EACDC,YAAY,EAAE;IACVkB,QAAQ,EAAE,EAAE;IACZnC,IAAI,EAAE;EACV,CAAC;EACDkB,YAAY,EAAE;IACVwB,OAAO,EAAE;EACb;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_EditFieldModal","_useProfileEditing","_useI18n","_jsxRuntime","e","__esModule","default","EditLocationModal","visible","onClose","initialLocations","theme","onSave","t","useI18n","saveProfile","useProfileEditing","jsx","EditFieldModal","title","variant","listConfig","items","addItemLabel","listTitle","addItemPlaceholder","createItem","value","id","Date","now","name","trim","renderItem","item","onRemove","colors","jsxs","View","style","styles","locationItem","backgroundColor","card","borderColor","border","children","Text","locationName","color","text","TouchableOpacity","onPress","removeButton","Ionicons","size","onSubmit","data","locations","exports","StyleSheet","create","flexDirection","alignItems","justifyContent","padding","borderRadius","borderWidth","hairlineWidth","marginBottom","fontSize","flex"],"sourceRoot":"../../../../../src","sources":["ui/components/profile/EditLocationModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAA8C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,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