@oxyhq/services 5.17.18 → 5.18.0

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 (238) hide show
  1. package/lib/commonjs/core/mixins/OxyServices.features.js +372 -0
  2. package/lib/commonjs/core/mixins/OxyServices.features.js.map +1 -0
  3. package/lib/commonjs/core/mixins/index.js +3 -2
  4. package/lib/commonjs/core/mixins/index.js.map +1 -1
  5. package/lib/commonjs/ui/components/GroupedItem.js +11 -1
  6. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
  7. package/lib/commonjs/ui/components/SettingRow.js +17 -4
  8. package/lib/commonjs/ui/components/SettingRow.js.map +1 -1
  9. package/lib/commonjs/ui/components/feedback/FormInput.js +72 -0
  10. package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -0
  11. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js +33 -0
  12. package/lib/commonjs/ui/components/feedback/ProgressIndicator.js.map +1 -0
  13. package/lib/commonjs/ui/components/feedback/constants.js +59 -0
  14. package/lib/commonjs/ui/components/feedback/constants.js.map +1 -0
  15. package/lib/commonjs/ui/components/feedback/feedbackStyles.js +262 -0
  16. package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +1 -0
  17. package/lib/commonjs/ui/components/feedback/index.js +54 -0
  18. package/lib/commonjs/ui/components/feedback/index.js.map +1 -0
  19. package/lib/commonjs/ui/components/feedback/types.js +6 -0
  20. package/lib/commonjs/ui/components/feedback/types.js.map +1 -0
  21. package/lib/commonjs/ui/components/feedback/useFeedbackForm.js +52 -0
  22. package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -0
  23. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +282 -0
  24. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -0
  25. package/lib/commonjs/ui/components/modals/index.js +14 -0
  26. package/lib/commonjs/ui/components/modals/index.js.map +1 -0
  27. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +309 -0
  28. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -0
  29. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +79 -0
  30. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -0
  31. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +108 -0
  32. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -0
  33. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +79 -0
  34. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -0
  35. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +176 -0
  36. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -0
  37. package/lib/commonjs/ui/components/payment/constants.js +53 -0
  38. package/lib/commonjs/ui/components/payment/constants.js.map +1 -0
  39. package/lib/commonjs/ui/components/payment/index.js +80 -0
  40. package/lib/commonjs/ui/components/payment/index.js.map +1 -0
  41. package/lib/commonjs/ui/components/payment/paymentStyles.js +409 -0
  42. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -0
  43. package/lib/commonjs/ui/components/payment/types.js +6 -0
  44. package/lib/commonjs/ui/components/payment/types.js.map +1 -0
  45. package/lib/commonjs/ui/hooks/index.js +26 -0
  46. package/lib/commonjs/ui/hooks/index.js.map +1 -1
  47. package/lib/commonjs/ui/hooks/useAsyncAction.js +95 -0
  48. package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -0
  49. package/lib/commonjs/ui/hooks/useSettingToggle.js +126 -0
  50. package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -0
  51. package/lib/commonjs/ui/navigation/routes.js +1 -0
  52. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  53. package/lib/commonjs/ui/screens/AccountCenterScreen.js +4 -2
  54. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +33 -30
  56. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  57. package/lib/commonjs/ui/screens/FAQScreen.js +315 -0
  58. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -0
  59. package/lib/commonjs/ui/screens/FeedbackScreen.js +73 -590
  60. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/HelpSupportScreen.js +8 -7
  62. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  63. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +67 -1395
  64. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  65. package/lib/commonjs/ui/screens/ProfileScreen.js +13 -5
  66. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  67. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +16 -10
  68. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  69. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +23 -11
  70. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  71. package/lib/module/core/mixins/OxyServices.features.js +369 -0
  72. package/lib/module/core/mixins/OxyServices.features.js.map +1 -0
  73. package/lib/module/core/mixins/index.js +3 -2
  74. package/lib/module/core/mixins/index.js.map +1 -1
  75. package/lib/module/ui/components/GroupedItem.js +11 -1
  76. package/lib/module/ui/components/GroupedItem.js.map +1 -1
  77. package/lib/module/ui/components/SettingRow.js +17 -4
  78. package/lib/module/ui/components/SettingRow.js.map +1 -1
  79. package/lib/module/ui/components/feedback/FormInput.js +67 -0
  80. package/lib/module/ui/components/feedback/FormInput.js.map +1 -0
  81. package/lib/module/ui/components/feedback/ProgressIndicator.js +28 -0
  82. package/lib/module/ui/components/feedback/ProgressIndicator.js.map +1 -0
  83. package/lib/module/ui/components/feedback/constants.js +55 -0
  84. package/lib/module/ui/components/feedback/constants.js.map +1 -0
  85. package/lib/module/ui/components/feedback/feedbackStyles.js +257 -0
  86. package/lib/module/ui/components/feedback/feedbackStyles.js.map +1 -0
  87. package/lib/module/ui/components/feedback/index.js +8 -0
  88. package/lib/module/ui/components/feedback/index.js.map +1 -0
  89. package/lib/module/ui/components/feedback/types.js +4 -0
  90. package/lib/module/ui/components/feedback/types.js.map +1 -0
  91. package/lib/module/ui/components/feedback/useFeedbackForm.js +47 -0
  92. package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -0
  93. package/lib/module/ui/components/modals/DeleteAccountModal.js +276 -0
  94. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -0
  95. package/lib/module/ui/components/modals/index.js +4 -0
  96. package/lib/module/ui/components/modals/index.js.map +1 -0
  97. package/lib/module/ui/components/payment/PaymentDetailsStep.js +303 -0
  98. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -0
  99. package/lib/module/ui/components/payment/PaymentMethodStep.js +73 -0
  100. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -0
  101. package/lib/module/ui/components/payment/PaymentReviewStep.js +102 -0
  102. package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -0
  103. package/lib/module/ui/components/payment/PaymentSuccessStep.js +73 -0
  104. package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -0
  105. package/lib/module/ui/components/payment/PaymentSummaryStep.js +170 -0
  106. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -0
  107. package/lib/module/ui/components/payment/constants.js +47 -0
  108. package/lib/module/ui/components/payment/constants.js.map +1 -0
  109. package/lib/module/ui/components/payment/index.js +10 -0
  110. package/lib/module/ui/components/payment/index.js.map +1 -0
  111. package/lib/module/ui/components/payment/paymentStyles.js +404 -0
  112. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -0
  113. package/lib/module/ui/components/payment/types.js +4 -0
  114. package/lib/module/ui/components/payment/types.js.map +1 -0
  115. package/lib/module/ui/hooks/index.js +2 -0
  116. package/lib/module/ui/hooks/index.js.map +1 -1
  117. package/lib/module/ui/hooks/useAsyncAction.js +89 -0
  118. package/lib/module/ui/hooks/useAsyncAction.js.map +1 -0
  119. package/lib/module/ui/hooks/useSettingToggle.js +120 -0
  120. package/lib/module/ui/hooks/useSettingToggle.js.map +1 -0
  121. package/lib/module/ui/navigation/routes.js +1 -0
  122. package/lib/module/ui/navigation/routes.js.map +1 -1
  123. package/lib/module/ui/screens/AccountCenterScreen.js +4 -2
  124. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  125. package/lib/module/ui/screens/AccountOverviewScreen.js +33 -30
  126. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  127. package/lib/module/ui/screens/FAQScreen.js +310 -0
  128. package/lib/module/ui/screens/FAQScreen.js.map +1 -0
  129. package/lib/module/ui/screens/FeedbackScreen.js +64 -581
  130. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  131. package/lib/module/ui/screens/HelpSupportScreen.js +8 -7
  132. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  133. package/lib/module/ui/screens/PaymentGatewayScreen.js +67 -1397
  134. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  135. package/lib/module/ui/screens/ProfileScreen.js +13 -5
  136. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  137. package/lib/module/ui/screens/SavesCollectionsScreen.js +16 -10
  138. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  139. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +23 -11
  140. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  141. package/lib/typescript/core/mixins/OxyServices.features.d.ts +229 -0
  142. package/lib/typescript/core/mixins/OxyServices.features.d.ts.map +1 -0
  143. package/lib/typescript/core/mixins/index.d.ts +71 -1
  144. package/lib/typescript/core/mixins/index.d.ts.map +1 -1
  145. package/lib/typescript/ui/components/GroupedItem.d.ts +5 -1
  146. package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -1
  147. package/lib/typescript/ui/components/SettingRow.d.ts +6 -0
  148. package/lib/typescript/ui/components/SettingRow.d.ts.map +1 -1
  149. package/lib/typescript/ui/components/feedback/FormInput.d.ts +20 -0
  150. package/lib/typescript/ui/components/feedback/FormInput.d.ts.map +1 -0
  151. package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts +11 -0
  152. package/lib/typescript/ui/components/feedback/ProgressIndicator.d.ts.map +1 -0
  153. package/lib/typescript/ui/components/feedback/constants.d.ts +5 -0
  154. package/lib/typescript/ui/components/feedback/constants.d.ts.map +1 -0
  155. package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts +280 -0
  156. package/lib/typescript/ui/components/feedback/feedbackStyles.d.ts.map +1 -0
  157. package/lib/typescript/ui/components/feedback/index.d.ts +7 -0
  158. package/lib/typescript/ui/components/feedback/index.d.ts.map +1 -0
  159. package/lib/typescript/ui/components/feedback/types.d.ts +46 -0
  160. package/lib/typescript/ui/components/feedback/types.d.ts.map +1 -0
  161. package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts +9 -0
  162. package/lib/typescript/ui/components/feedback/useFeedbackForm.d.ts.map +1 -0
  163. package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts +19 -0
  164. package/lib/typescript/ui/components/modals/DeleteAccountModal.d.ts.map +1 -0
  165. package/lib/typescript/ui/components/modals/index.d.ts +2 -0
  166. package/lib/typescript/ui/components/modals/index.d.ts.map +1 -0
  167. package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts +21 -0
  168. package/lib/typescript/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -0
  169. package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts +14 -0
  170. package/lib/typescript/ui/components/payment/PaymentMethodStep.d.ts.map +1 -0
  171. package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts +16 -0
  172. package/lib/typescript/ui/components/payment/PaymentReviewStep.d.ts.map +1 -0
  173. package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts +10 -0
  174. package/lib/typescript/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -0
  175. package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts +15 -0
  176. package/lib/typescript/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -0
  177. package/lib/typescript/ui/components/payment/constants.d.ts +7 -0
  178. package/lib/typescript/ui/components/payment/constants.d.ts.map +1 -0
  179. package/lib/typescript/ui/components/payment/index.d.ts +9 -0
  180. package/lib/typescript/ui/components/payment/index.d.ts.map +1 -0
  181. package/lib/typescript/ui/components/payment/paymentStyles.d.ts +396 -0
  182. package/lib/typescript/ui/components/payment/paymentStyles.d.ts.map +1 -0
  183. package/lib/typescript/ui/components/payment/types.d.ts +40 -0
  184. package/lib/typescript/ui/components/payment/types.d.ts.map +1 -0
  185. package/lib/typescript/ui/hooks/index.d.ts +2 -0
  186. package/lib/typescript/ui/hooks/index.d.ts.map +1 -1
  187. package/lib/typescript/ui/hooks/useAsyncAction.d.ts +51 -0
  188. package/lib/typescript/ui/hooks/useAsyncAction.d.ts.map +1 -0
  189. package/lib/typescript/ui/hooks/useSettingToggle.d.ts +55 -0
  190. package/lib/typescript/ui/hooks/useSettingToggle.d.ts.map +1 -0
  191. package/lib/typescript/ui/navigation/routes.d.ts +1 -1
  192. package/lib/typescript/ui/navigation/routes.d.ts.map +1 -1
  193. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  194. package/lib/typescript/ui/screens/FAQScreen.d.ts +5 -0
  195. package/lib/typescript/ui/screens/FAQScreen.d.ts.map +1 -0
  196. package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -1
  197. package/lib/typescript/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  198. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +3 -15
  199. package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  200. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
  201. package/lib/typescript/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  202. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -1
  203. package/package.json +1 -1
  204. package/src/core/mixins/OxyServices.features.ts +428 -0
  205. package/src/core/mixins/index.ts +20 -17
  206. package/src/ui/components/GroupedItem.tsx +19 -1
  207. package/src/ui/components/SettingRow.tsx +26 -4
  208. package/src/ui/components/feedback/FormInput.tsx +84 -0
  209. package/src/ui/components/feedback/ProgressIndicator.tsx +35 -0
  210. package/src/ui/components/feedback/constants.ts +22 -0
  211. package/src/ui/components/feedback/feedbackStyles.ts +247 -0
  212. package/src/ui/components/feedback/index.ts +6 -0
  213. package/src/ui/components/feedback/types.ts +52 -0
  214. package/src/ui/components/feedback/useFeedbackForm.ts +44 -0
  215. package/src/ui/components/modals/DeleteAccountModal.tsx +294 -0
  216. package/src/ui/components/modals/index.ts +1 -0
  217. package/src/ui/components/payment/PaymentDetailsStep.tsx +222 -0
  218. package/src/ui/components/payment/PaymentMethodStep.tsx +89 -0
  219. package/src/ui/components/payment/PaymentReviewStep.tsx +126 -0
  220. package/src/ui/components/payment/PaymentSuccessStep.tsx +71 -0
  221. package/src/ui/components/payment/PaymentSummaryStep.tsx +159 -0
  222. package/src/ui/components/payment/constants.ts +39 -0
  223. package/src/ui/components/payment/index.ts +9 -0
  224. package/src/ui/components/payment/paymentStyles.ts +397 -0
  225. package/src/ui/components/payment/types.ts +45 -0
  226. package/src/ui/hooks/index.ts +3 -1
  227. package/src/ui/hooks/useAsyncAction.ts +129 -0
  228. package/src/ui/hooks/useSettingToggle.ts +147 -0
  229. package/src/ui/navigation/routes.ts +2 -0
  230. package/src/ui/screens/AccountCenterScreen.tsx +2 -2
  231. package/src/ui/screens/AccountOverviewScreen.tsx +35 -37
  232. package/src/ui/screens/FAQScreen.tsx +332 -0
  233. package/src/ui/screens/FeedbackScreen.tsx +91 -626
  234. package/src/ui/screens/HelpSupportScreen.tsx +7 -5
  235. package/src/ui/screens/PaymentGatewayScreen.tsx +96 -1275
  236. package/src/ui/screens/ProfileScreen.tsx +11 -6
  237. package/src/ui/screens/SavesCollectionsScreen.tsx +19 -10
  238. package/src/ui/screens/karma/KarmaCenterScreen.tsx +10 -10
@@ -0,0 +1,229 @@
1
+ /**
2
+ * Features Methods Mixin
3
+ *
4
+ * Provides methods for various features:
5
+ * - Feedback submission
6
+ * - Subscription plans
7
+ * - Saves/Collections
8
+ * - User history
9
+ * - FAQ
10
+ * - User stats
11
+ * - Achievements
12
+ */
13
+ import type { OxyServicesBase } from '../OxyServices.base';
14
+ export interface FeedbackPayload {
15
+ type: 'bug' | 'feature' | 'general' | 'support';
16
+ title: string;
17
+ description: string;
18
+ priority: 'low' | 'medium' | 'high' | 'critical';
19
+ category: string;
20
+ contactEmail?: string;
21
+ systemInfo?: {
22
+ platform: string;
23
+ version: string;
24
+ appVersion: string;
25
+ userId?: string;
26
+ username?: string;
27
+ timestamp: string;
28
+ };
29
+ }
30
+ export interface FeedbackResult {
31
+ id: string;
32
+ status: string;
33
+ createdAt: string;
34
+ }
35
+ export interface SubscriptionPlan {
36
+ id: string;
37
+ name: string;
38
+ description: string;
39
+ price: number;
40
+ currency: string;
41
+ interval: 'month' | 'year';
42
+ features: string[];
43
+ }
44
+ export interface SubscriptionResult {
45
+ subscriptionId: string;
46
+ status: string;
47
+ currentPeriodEnd: string;
48
+ }
49
+ export interface SavedItem {
50
+ id: string;
51
+ itemId: string;
52
+ itemType: string;
53
+ title: string;
54
+ createdAt: string;
55
+ }
56
+ export interface Collection {
57
+ id: string;
58
+ name: string;
59
+ description?: string;
60
+ itemCount: number;
61
+ createdAt: string;
62
+ }
63
+ export interface UserStats {
64
+ postCount: number;
65
+ commentCount: number;
66
+ followerCount: number;
67
+ followingCount: number;
68
+ karmaScore?: number;
69
+ }
70
+ export interface HistoryItem {
71
+ id: string;
72
+ type: string;
73
+ title: string;
74
+ timestamp: string;
75
+ metadata?: Record<string, any>;
76
+ }
77
+ export interface FAQ {
78
+ id: string;
79
+ question: string;
80
+ answer: string;
81
+ category: string;
82
+ }
83
+ export interface Achievement {
84
+ id: string;
85
+ name: string;
86
+ description: string;
87
+ icon: string;
88
+ unlockedAt?: string;
89
+ }
90
+ export declare function OxyServicesFeaturesMixin<T extends typeof OxyServicesBase>(Base: T): {
91
+ new (...args: any[]): {
92
+ /**
93
+ * Submit user feedback
94
+ */
95
+ submitFeedback(payload: FeedbackPayload): Promise<FeedbackResult>;
96
+ /**
97
+ * Get available subscription plans
98
+ */
99
+ getSubscriptionPlans(): Promise<SubscriptionPlan[]>;
100
+ /**
101
+ * Get individual purchasable features
102
+ */
103
+ getIndividualFeatures(): Promise<any[]>;
104
+ /**
105
+ * Subscribe to a plan
106
+ */
107
+ subscribe(planId: string, paymentMethodId?: string): Promise<SubscriptionResult>;
108
+ /**
109
+ * Subscribe to an individual feature
110
+ */
111
+ subscribeToFeature(featureId: string, paymentMethodId?: string): Promise<SubscriptionResult>;
112
+ /**
113
+ * Cancel subscription
114
+ */
115
+ cancelSubscription(subscriptionId: string): Promise<void>;
116
+ /**
117
+ * Reactivate subscription
118
+ */
119
+ reactivateSubscription(subscriptionId: string): Promise<void>;
120
+ /**
121
+ * Get current user's subscription
122
+ */
123
+ getCurrentSubscription(): Promise<SubscriptionResult | null>;
124
+ /**
125
+ * Get user's saved items
126
+ */
127
+ getSavedItems(userId?: string): Promise<SavedItem[]>;
128
+ /**
129
+ * Get user's collections
130
+ */
131
+ getCollections(userId?: string): Promise<Collection[]>;
132
+ /**
133
+ * Save an item
134
+ */
135
+ saveItem(itemId: string, itemType: string, collectionId?: string): Promise<SavedItem>;
136
+ /**
137
+ * Remove an item from saves
138
+ */
139
+ removeSavedItem(saveId: string): Promise<void>;
140
+ /**
141
+ * Create a collection
142
+ */
143
+ createCollection(name: string, description?: string): Promise<Collection>;
144
+ /**
145
+ * Delete a collection
146
+ */
147
+ deleteCollection(collectionId: string): Promise<void>;
148
+ /**
149
+ * Get user statistics
150
+ */
151
+ getUserStats(userId: string): Promise<UserStats>;
152
+ /**
153
+ * Get user history
154
+ */
155
+ getUserHistory(userId?: string, limit?: number, offset?: number): Promise<HistoryItem[]>;
156
+ /**
157
+ * Clear user history
158
+ */
159
+ clearUserHistory(): Promise<void>;
160
+ /**
161
+ * Delete a history item
162
+ */
163
+ deleteHistoryItem(itemId: string): Promise<void>;
164
+ /**
165
+ * Get FAQs
166
+ */
167
+ getFAQs(category?: string): Promise<FAQ[]>;
168
+ /**
169
+ * Search FAQs
170
+ */
171
+ searchFAQs(query: string): Promise<FAQ[]>;
172
+ /**
173
+ * Get user achievements
174
+ */
175
+ getUserAchievements(userId?: string): Promise<Achievement[]>;
176
+ /**
177
+ * Get all available achievements
178
+ */
179
+ getAllAchievements(): Promise<Achievement[]>;
180
+ /**
181
+ * Delete user account (requires password confirmation)
182
+ */
183
+ deleteAccount(password: string): Promise<void>;
184
+ httpService: import("../HttpService").HttpService;
185
+ cloudURL: string;
186
+ config: import("../OxyServices.base").OxyConfig;
187
+ makeRequest<T_1>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T_1>;
188
+ getBaseURL(): string;
189
+ getClient(): import("../HttpService").HttpService;
190
+ getMetrics(): {
191
+ totalRequests: number;
192
+ successfulRequests: number;
193
+ failedRequests: number;
194
+ cacheHits: number;
195
+ cacheMisses: number;
196
+ averageResponseTime: number;
197
+ };
198
+ clearCache(): void;
199
+ clearCacheEntry(key: string): void;
200
+ getCacheStats(): {
201
+ size: number;
202
+ hits: number;
203
+ misses: number;
204
+ hitRate: number;
205
+ };
206
+ getCloudURL(): string;
207
+ setTokens(accessToken: string, refreshToken?: string): void;
208
+ clearTokens(): void;
209
+ getCurrentUserId(): string | null;
210
+ hasValidToken(): boolean;
211
+ getAccessToken(): string | null;
212
+ waitForAuth(timeoutMs?: number): Promise<boolean>;
213
+ withAuthRetry<T_1>(operation: () => Promise<T_1>, operationName: string, options?: {
214
+ maxRetries?: number;
215
+ retryDelay?: number;
216
+ authTimeoutMs?: number;
217
+ }): Promise<T_1>;
218
+ validate(): Promise<boolean>;
219
+ handleError(error: unknown): Error;
220
+ healthCheck(): Promise<{
221
+ status: string;
222
+ users?: number;
223
+ timestamp?: string;
224
+ [key: string]: any;
225
+ }>;
226
+ };
227
+ __resetTokensForTests(): void;
228
+ } & T;
229
+ //# sourceMappingURL=OxyServices.features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OxyServices.features.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.features.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,GAAG,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;WAEG;kCAC6B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;QAUtD;;WAEG;2BACsB,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAYhD;;WAEG;0BACqB,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAe/C;;WAEG;qCACgC,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAUlE;;WAEG;8BACyB,OAAO,CAAC,WAAW,EAAE,CAAC;QAelD;;WAEG;gCAC2B,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA9MxC,CAAV;sBACM,CAAZ;yBACW,CAAC;;;;;;iBAuF4B,CAAC;qBAEjC,CAAZ;;;;;MAyHC"}
@@ -31,7 +31,77 @@ export declare function composeOxyServices(): {
31
31
  onError?: ((error: import("..").ApiError) => any) | undefined;
32
32
  loadUser?: boolean;
33
33
  session?: boolean;
34
- }): (req: any, res: any, next: any) => any;
34
+ }): (req: any, res: any, // Base authentication mixin
35
+ next: any) => any;
36
+ httpService: import("../HttpService").HttpService;
37
+ cloudURL: string;
38
+ config: import("../OxyServices.base").OxyConfig;
39
+ makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
40
+ getBaseURL(): string;
41
+ getClient(): import("../HttpService").HttpService;
42
+ getMetrics(): {
43
+ totalRequests: number;
44
+ successfulRequests: number;
45
+ failedRequests: number;
46
+ cacheHits: number;
47
+ cacheMisses: number;
48
+ averageResponseTime: number;
49
+ };
50
+ clearCache(): void;
51
+ clearCacheEntry(key: string): void;
52
+ getCacheStats(): {
53
+ size: number;
54
+ hits: number;
55
+ misses: number;
56
+ hitRate: number;
57
+ };
58
+ getCloudURL(): string;
59
+ setTokens(accessToken: string, refreshToken?: string): void;
60
+ clearTokens(): void;
61
+ getCurrentUserId(): string | null;
62
+ hasValidToken(): boolean;
63
+ getAccessToken(): string | null;
64
+ waitForAuth(timeoutMs?: number): Promise<boolean>;
65
+ withAuthRetry<T>(operation: () => Promise<T>, operationName: string, options?: {
66
+ maxRetries?: number;
67
+ retryDelay?: number;
68
+ authTimeoutMs?: number;
69
+ }): Promise<T>;
70
+ validate(): Promise<boolean>;
71
+ handleError(error: unknown): Error;
72
+ healthCheck(): Promise<{
73
+ status: string;
74
+ users?: number;
75
+ timestamp?: string;
76
+ [key: string]: any;
77
+ }>;
78
+ };
79
+ __resetTokensForTests(): void;
80
+ } & {
81
+ new (...args: any[]): {
82
+ submitFeedback(payload: import("./OxyServices.features").FeedbackPayload): Promise<import("./OxyServices.features").FeedbackResult>;
83
+ getSubscriptionPlans(): Promise<import("./OxyServices.features").SubscriptionPlan[]>;
84
+ getIndividualFeatures(): Promise<any[]>;
85
+ subscribe(planId: string, paymentMethodId?: string): Promise<import("./OxyServices.features").SubscriptionResult>;
86
+ subscribeToFeature(featureId: string, paymentMethodId?: string): Promise<import("./OxyServices.features").SubscriptionResult>;
87
+ cancelSubscription(subscriptionId: string): Promise<void>;
88
+ reactivateSubscription(subscriptionId: string): Promise<void>;
89
+ getCurrentSubscription(): Promise<import("./OxyServices.features").SubscriptionResult | null>;
90
+ getSavedItems(userId?: string): Promise<import("./OxyServices.features").SavedItem[]>;
91
+ getCollections(userId?: string): Promise<import("./OxyServices.features").Collection[]>;
92
+ saveItem(itemId: string, itemType: string, collectionId?: string): Promise<import("./OxyServices.features").SavedItem>;
93
+ removeSavedItem(saveId: string): Promise<void>;
94
+ createCollection(name: string, description?: string): Promise<import("./OxyServices.features").Collection>;
95
+ deleteCollection(collectionId: string): Promise<void>;
96
+ getUserStats(userId: string): Promise<import("./OxyServices.features").UserStats>;
97
+ getUserHistory(userId?: string, limit?: number, offset?: number): Promise<import("./OxyServices.features").HistoryItem[]>;
98
+ clearUserHistory(): Promise<void>;
99
+ deleteHistoryItem(itemId: string): Promise<void>;
100
+ getFAQs(category?: string): Promise<import("./OxyServices.features").FAQ[]>;
101
+ searchFAQs(query: string): Promise<import("./OxyServices.features").FAQ[]>;
102
+ getUserAchievements(userId?: string): Promise<import("./OxyServices.features").Achievement[]>;
103
+ getAllAchievements(): Promise<import("./OxyServices.features").Achievement[]>;
104
+ deleteAccount(password: string): Promise<void>;
35
105
  httpService: import("../HttpService").HttpService;
36
106
  cloudURL: string;
37
107
  config: import("../OxyServices.base").OxyConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAkBtD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;aAkBe,QAAQ,EAAC,QAAS,EAAC,SAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAiBghG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0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;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;2BAF79L"}
@@ -11,9 +11,13 @@ interface GroupedItemProps {
11
11
  disabled?: boolean;
12
12
  customContent?: React.ReactNode;
13
13
  customIcon?: React.ReactNode;
14
+ /** Accessibility label (defaults to title) */
15
+ accessibilityLabel?: string;
16
+ /** Accessibility hint for what happens on press */
17
+ accessibilityHint?: string;
14
18
  }
15
19
  export declare const GroupedItem: React.MemoExoticComponent<{
16
- ({ icon, iconColor, title, subtitle, onPress, isFirst, isLast, showChevron, disabled, customContent, customIcon, }: GroupedItemProps): import("react/jsx-runtime").JSX.Element;
20
+ ({ icon, iconColor, title, subtitle, onPress, isFirst, isLast, showChevron, disabled, customContent, customIcon, accessibilityLabel, accessibilityHint, }: GroupedItemProps): import("react/jsx-runtime").JSX.Element;
17
21
  displayName: string;
18
22
  }>;
19
23
  export default GroupedItem;
@@ -1 +1 @@
1
- {"version":3,"file":"GroupedItem.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/GroupedItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAY7C,UAAU,gBAAgB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AA+ED,eAAO,MAAM,WAAW;wHAjErB,gBAAgB;;EAiEkC,CAAC;AAkDtD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"GroupedItem.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/GroupedItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAY7C,UAAU,gBAAgB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,8CAA8C;IAC9C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AA6FD,eAAO,MAAM,WAAW;+JA7ErB,gBAAgB;;EA6EkC,CAAC;AAkDtD,eAAe,WAAW,CAAC"}
@@ -8,6 +8,12 @@ export interface SettingRowProps {
8
8
  textColor?: string;
9
9
  mutedTextColor?: string;
10
10
  borderColor?: string;
11
+ /** Active color for the switch track (default: #d169e5) */
12
+ activeColor?: string;
13
+ /** Inactive color for the switch track (default: #767577) */
14
+ inactiveColor?: string;
15
+ /** Accessibility label for the switch */
16
+ accessibilityLabel?: string;
11
17
  }
12
18
  declare const _default: React.NamedExoticComponent<SettingRowProps>;
13
19
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SettingRow.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/SettingRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;;AA8DD,wBAAsC"}
1
+ {"version":3,"file":"SettingRow.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/SettingRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;;AA8ED,wBAAsC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { FeedbackColors } from './types';
3
+ interface FormInputProps {
4
+ icon: string;
5
+ label: string;
6
+ value: string;
7
+ onChangeText: (text: string) => void;
8
+ placeholder?: string;
9
+ multiline?: boolean;
10
+ numberOfLines?: number;
11
+ testID?: string;
12
+ colors: FeedbackColors;
13
+ styles: any;
14
+ borderColor?: string;
15
+ accessibilityLabel?: string;
16
+ accessibilityHint?: string;
17
+ }
18
+ declare const FormInput: React.FC<FormInputProps>;
19
+ export default FormInput;
20
+ //# sourceMappingURL=FormInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/feedback/FormInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU,cAAc;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0DtC,CAAC;AAIH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { FeedbackColors } from './types';
3
+ interface ProgressIndicatorProps {
4
+ currentStep: number;
5
+ totalSteps: number;
6
+ colors: FeedbackColors;
7
+ styles: any;
8
+ }
9
+ declare const ProgressIndicator: React.FC<ProgressIndicatorProps>;
10
+ export default ProgressIndicator;
11
+ //# sourceMappingURL=ProgressIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/feedback/ProgressIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU,sBAAsB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,GAAG,CAAC;CACf;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmBtD,CAAC;AAIH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { FeedbackType, PriorityLevel } from './types';
2
+ export declare const FEEDBACK_TYPES: FeedbackType[];
3
+ export declare const PRIORITY_LEVELS: PriorityLevel[];
4
+ export declare const CATEGORIES: Record<string, string[]>;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/feedback/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE3D,eAAO,MAAM,cAAc,EAAE,YAAY,EAKxC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,aAAa,EAK1C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAK/C,CAAC"}