@developer_tribe/react-native-comnyx 0.1.0 → 0.2.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 (385) hide show
  1. package/lib/commonjs/App.js +59 -0
  2. package/lib/commonjs/App.js.map +1 -0
  3. package/lib/commonjs/__dev__.js +29 -0
  4. package/lib/commonjs/__dev__.js.map +1 -0
  5. package/lib/commonjs/api/api.js +22 -0
  6. package/lib/commonjs/api/api.js.map +1 -0
  7. package/lib/commonjs/api/conversations.js +37 -0
  8. package/lib/commonjs/api/conversations.js.map +1 -0
  9. package/lib/commonjs/api/customers.js +15 -0
  10. package/lib/commonjs/api/customers.js.map +1 -0
  11. package/lib/commonjs/api/index.js +33 -0
  12. package/lib/commonjs/api/index.js.map +1 -0
  13. package/lib/commonjs/api/messages.js +27 -0
  14. package/lib/commonjs/api/messages.js.map +1 -0
  15. package/lib/commonjs/assets/clock.png +0 -0
  16. package/lib/commonjs/assets/double-check.png +0 -0
  17. package/lib/commonjs/assets/down.png +0 -0
  18. package/lib/commonjs/assets/send.png +0 -0
  19. package/lib/commonjs/components/AppText.js +38 -0
  20. package/lib/commonjs/components/AppText.js.map +1 -0
  21. package/lib/commonjs/components/ChatList.js +268 -0
  22. package/lib/commonjs/components/ChatList.js.map +1 -0
  23. package/lib/commonjs/components/CustomerForm.js +213 -0
  24. package/lib/commonjs/components/CustomerForm.js.map +1 -0
  25. package/lib/commonjs/components/EmptyList.js +40 -0
  26. package/lib/commonjs/components/EmptyList.js.map +1 -0
  27. package/lib/commonjs/components/InitFailed.js +51 -0
  28. package/lib/commonjs/components/InitFailed.js.map +1 -0
  29. package/lib/commonjs/components/MessageInput.js +119 -0
  30. package/lib/commonjs/components/MessageInput.js.map +1 -0
  31. package/lib/commonjs/components/MessageItem.js +117 -0
  32. package/lib/commonjs/components/MessageItem.js.map +1 -0
  33. package/lib/commonjs/constants/translations.js +219 -0
  34. package/lib/commonjs/constants/translations.js.map +1 -0
  35. package/lib/commonjs/data/fake/conversations.js +95 -0
  36. package/lib/commonjs/data/fake/conversations.js.map +1 -0
  37. package/lib/commonjs/data/fake/customers.js +24 -0
  38. package/lib/commonjs/data/fake/customers.js.map +1 -0
  39. package/lib/commonjs/data/fake/messages.js +67 -0
  40. package/lib/commonjs/data/fake/messages.js.map +1 -0
  41. package/lib/commonjs/hooks/useLocalize.js +20 -0
  42. package/lib/commonjs/hooks/useLocalize.js.map +1 -0
  43. package/lib/commonjs/hooks/usePolling.js +50 -0
  44. package/lib/commonjs/hooks/usePolling.js.map +1 -0
  45. package/lib/commonjs/hooks/useThemeColors.js +17 -0
  46. package/lib/commonjs/hooks/useThemeColors.js.map +1 -0
  47. package/lib/commonjs/index.js +15 -6
  48. package/lib/commonjs/index.js.map +1 -1
  49. package/lib/commonjs/register.js +21 -0
  50. package/lib/commonjs/register.js.map +1 -0
  51. package/lib/commonjs/store.js +79 -0
  52. package/lib/commonjs/store.js.map +1 -0
  53. package/lib/commonjs/types/ApiOptions.js +2 -0
  54. package/lib/commonjs/types/ApiOptions.js.map +1 -0
  55. package/lib/commonjs/types/Conversation.js +2 -0
  56. package/lib/commonjs/types/Conversation.js.map +1 -0
  57. package/lib/commonjs/types/Customer.js +2 -0
  58. package/lib/commonjs/types/Customer.js.map +1 -0
  59. package/lib/commonjs/types/Language.js +2 -0
  60. package/lib/commonjs/types/Language.js.map +1 -0
  61. package/lib/commonjs/types/LocalizationKeys.js +2 -0
  62. package/lib/commonjs/types/LocalizationKeys.js.map +1 -0
  63. package/lib/commonjs/types/MessageResponse.js +2 -0
  64. package/lib/commonjs/types/MessageResponse.js.map +1 -0
  65. package/lib/commonjs/types/Theme.js +29 -0
  66. package/lib/commonjs/types/Theme.js.map +1 -0
  67. package/lib/commonjs/utils/date.js +17 -0
  68. package/lib/commonjs/utils/date.js.map +1 -0
  69. package/lib/module/App.js +55 -0
  70. package/lib/module/App.js.map +1 -0
  71. package/lib/module/__dev__.js +29 -0
  72. package/lib/module/__dev__.js.map +1 -0
  73. package/lib/module/api/api.js +17 -0
  74. package/lib/module/api/api.js.map +1 -0
  75. package/lib/module/api/conversations.js +32 -0
  76. package/lib/module/api/conversations.js.map +1 -0
  77. package/lib/module/api/customers.js +11 -0
  78. package/lib/module/api/customers.js.map +1 -0
  79. package/lib/module/api/index.js +6 -0
  80. package/lib/module/api/index.js.map +1 -0
  81. package/lib/module/api/messages.js +23 -0
  82. package/lib/module/api/messages.js.map +1 -0
  83. package/lib/module/assets/clock.png +0 -0
  84. package/lib/module/assets/double-check.png +0 -0
  85. package/lib/module/assets/down.png +0 -0
  86. package/lib/module/assets/send.png +0 -0
  87. package/lib/module/components/AppText.js +34 -0
  88. package/lib/module/components/AppText.js.map +1 -0
  89. package/lib/module/components/ChatList.js +265 -0
  90. package/lib/module/components/ChatList.js.map +1 -0
  91. package/lib/module/components/CustomerForm.js +209 -0
  92. package/lib/module/components/CustomerForm.js.map +1 -0
  93. package/lib/module/components/EmptyList.js +36 -0
  94. package/lib/module/components/EmptyList.js.map +1 -0
  95. package/lib/module/components/InitFailed.js +47 -0
  96. package/lib/module/components/InitFailed.js.map +1 -0
  97. package/lib/module/components/MessageInput.js +115 -0
  98. package/lib/module/components/MessageInput.js.map +1 -0
  99. package/lib/module/components/MessageItem.js +114 -0
  100. package/lib/module/components/MessageItem.js.map +1 -0
  101. package/lib/module/constants/translations.js +215 -0
  102. package/lib/module/constants/translations.js.map +1 -0
  103. package/lib/module/data/fake/conversations.js +88 -0
  104. package/lib/module/data/fake/conversations.js.map +1 -0
  105. package/lib/module/data/fake/customers.js +20 -0
  106. package/lib/module/data/fake/customers.js.map +1 -0
  107. package/lib/module/data/fake/messages.js +63 -0
  108. package/lib/module/data/fake/messages.js.map +1 -0
  109. package/lib/module/hooks/useLocalize.js +16 -0
  110. package/lib/module/hooks/useLocalize.js.map +1 -0
  111. package/lib/module/hooks/usePolling.js +46 -0
  112. package/lib/module/hooks/usePolling.js.map +1 -0
  113. package/lib/module/hooks/useThemeColors.js +13 -0
  114. package/lib/module/hooks/useThemeColors.js.map +1 -0
  115. package/lib/module/index.js +3 -4
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/module/register.js +17 -0
  118. package/lib/module/register.js.map +1 -0
  119. package/lib/module/store.js +74 -0
  120. package/lib/module/store.js.map +1 -0
  121. package/lib/module/types/ApiOptions.js +2 -0
  122. package/lib/module/types/ApiOptions.js.map +1 -0
  123. package/lib/module/types/Conversation.js +2 -0
  124. package/lib/module/types/Conversation.js.map +1 -0
  125. package/lib/module/types/Customer.js +2 -0
  126. package/lib/module/types/Customer.js.map +1 -0
  127. package/lib/module/types/Language.js +2 -0
  128. package/lib/module/types/Language.js.map +1 -0
  129. package/lib/module/types/LocalizationKeys.js +2 -0
  130. package/lib/module/types/LocalizationKeys.js.map +1 -0
  131. package/lib/module/types/MessageResponse.js +2 -0
  132. package/lib/module/types/MessageResponse.js.map +1 -0
  133. package/lib/module/types/Theme.js +25 -0
  134. package/lib/module/types/Theme.js.map +1 -0
  135. package/lib/module/utils/date.js +12 -0
  136. package/lib/module/utils/date.js.map +1 -0
  137. package/lib/typescript/commonjs/src/App.d.ts +9 -0
  138. package/lib/typescript/commonjs/src/App.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/src/__dev__.d.ts +2 -0
  140. package/lib/typescript/commonjs/src/__dev__.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/src/api/api.d.ts +4 -0
  142. package/lib/typescript/commonjs/src/api/api.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/api/conversations.d.ts +7 -0
  144. package/lib/typescript/commonjs/src/api/conversations.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/api/customers.d.ts +4 -0
  146. package/lib/typescript/commonjs/src/api/customers.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/api/index.d.ts +4 -0
  148. package/lib/typescript/commonjs/src/api/index.d.ts.map +1 -0
  149. package/lib/typescript/commonjs/src/api/messages.d.ts +4 -0
  150. package/lib/typescript/commonjs/src/api/messages.d.ts.map +1 -0
  151. package/lib/typescript/commonjs/src/components/AppText.d.ts +10 -0
  152. package/lib/typescript/commonjs/src/components/AppText.d.ts.map +1 -0
  153. package/lib/typescript/commonjs/src/components/ChatList.d.ts +2 -0
  154. package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +1 -0
  155. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts +2 -0
  156. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/src/components/EmptyList.d.ts +2 -0
  158. package/lib/typescript/commonjs/src/components/EmptyList.d.ts.map +1 -0
  159. package/lib/typescript/commonjs/src/components/InitFailed.d.ts +6 -0
  160. package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/src/components/MessageInput.d.ts +4 -0
  162. package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/src/components/MessageItem.d.ts +5 -0
  164. package/lib/typescript/commonjs/src/components/MessageItem.d.ts.map +1 -0
  165. package/lib/typescript/commonjs/src/constants/translations.d.ts +4 -0
  166. package/lib/typescript/commonjs/src/constants/translations.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts +5 -0
  168. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/data/fake/customers.d.ts +3 -0
  170. package/lib/typescript/commonjs/src/data/fake/customers.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/data/fake/messages.d.ts +3 -0
  172. package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts +3 -0
  174. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts +2 -0
  176. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts +3 -0
  178. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/src/index.d.ts +4 -1
  180. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/src/register.d.ts +5 -0
  182. package/lib/typescript/commonjs/src/register.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/store.d.ts +35 -0
  184. package/lib/typescript/commonjs/src/store.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts +4 -0
  186. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/types/Conversation.d.ts +26 -0
  188. package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/src/types/Customer.d.ts +30 -0
  190. package/lib/typescript/commonjs/src/types/Customer.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/src/types/Language.d.ts +2 -0
  192. package/lib/typescript/commonjs/src/types/Language.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts +22 -0
  194. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts +59 -0
  196. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/src/types/Theme.d.ts +18 -0
  198. package/lib/typescript/commonjs/src/types/Theme.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/src/utils/date.d.ts +7 -0
  200. package/lib/typescript/commonjs/src/utils/date.d.ts.map +1 -0
  201. package/lib/typescript/module/src/App.d.ts +9 -0
  202. package/lib/typescript/module/src/App.d.ts.map +1 -0
  203. package/lib/typescript/module/src/__dev__.d.ts +2 -0
  204. package/lib/typescript/module/src/__dev__.d.ts.map +1 -0
  205. package/lib/typescript/module/src/api/api.d.ts +4 -0
  206. package/lib/typescript/module/src/api/api.d.ts.map +1 -0
  207. package/lib/typescript/module/src/api/conversations.d.ts +7 -0
  208. package/lib/typescript/module/src/api/conversations.d.ts.map +1 -0
  209. package/lib/typescript/module/src/api/customers.d.ts +4 -0
  210. package/lib/typescript/module/src/api/customers.d.ts.map +1 -0
  211. package/lib/typescript/module/src/api/index.d.ts +4 -0
  212. package/lib/typescript/module/src/api/index.d.ts.map +1 -0
  213. package/lib/typescript/module/src/api/messages.d.ts +4 -0
  214. package/lib/typescript/module/src/api/messages.d.ts.map +1 -0
  215. package/lib/typescript/module/src/components/AppText.d.ts +10 -0
  216. package/lib/typescript/module/src/components/AppText.d.ts.map +1 -0
  217. package/lib/typescript/module/src/components/ChatList.d.ts +2 -0
  218. package/lib/typescript/module/src/components/ChatList.d.ts.map +1 -0
  219. package/lib/typescript/module/src/components/CustomerForm.d.ts +2 -0
  220. package/lib/typescript/module/src/components/CustomerForm.d.ts.map +1 -0
  221. package/lib/typescript/module/src/components/EmptyList.d.ts +2 -0
  222. package/lib/typescript/module/src/components/EmptyList.d.ts.map +1 -0
  223. package/lib/typescript/module/src/components/InitFailed.d.ts +6 -0
  224. package/lib/typescript/module/src/components/InitFailed.d.ts.map +1 -0
  225. package/lib/typescript/module/src/components/MessageInput.d.ts +4 -0
  226. package/lib/typescript/module/src/components/MessageInput.d.ts.map +1 -0
  227. package/lib/typescript/module/src/components/MessageItem.d.ts +5 -0
  228. package/lib/typescript/module/src/components/MessageItem.d.ts.map +1 -0
  229. package/lib/typescript/module/src/constants/translations.d.ts +4 -0
  230. package/lib/typescript/module/src/constants/translations.d.ts.map +1 -0
  231. package/lib/typescript/module/src/data/fake/conversations.d.ts +5 -0
  232. package/lib/typescript/module/src/data/fake/conversations.d.ts.map +1 -0
  233. package/lib/typescript/module/src/data/fake/customers.d.ts +3 -0
  234. package/lib/typescript/module/src/data/fake/customers.d.ts.map +1 -0
  235. package/lib/typescript/module/src/data/fake/messages.d.ts +3 -0
  236. package/lib/typescript/module/src/data/fake/messages.d.ts.map +1 -0
  237. package/lib/typescript/module/src/hooks/useLocalize.d.ts +3 -0
  238. package/lib/typescript/module/src/hooks/useLocalize.d.ts.map +1 -0
  239. package/lib/typescript/module/src/hooks/usePolling.d.ts +2 -0
  240. package/lib/typescript/module/src/hooks/usePolling.d.ts.map +1 -0
  241. package/lib/typescript/module/src/hooks/useThemeColors.d.ts +3 -0
  242. package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +1 -0
  243. package/lib/typescript/module/src/index.d.ts +4 -1
  244. package/lib/typescript/module/src/index.d.ts.map +1 -1
  245. package/lib/typescript/module/src/register.d.ts +5 -0
  246. package/lib/typescript/module/src/register.d.ts.map +1 -0
  247. package/lib/typescript/module/src/store.d.ts +35 -0
  248. package/lib/typescript/module/src/store.d.ts.map +1 -0
  249. package/lib/typescript/module/src/types/ApiOptions.d.ts +4 -0
  250. package/lib/typescript/module/src/types/ApiOptions.d.ts.map +1 -0
  251. package/lib/typescript/module/src/types/Conversation.d.ts +26 -0
  252. package/lib/typescript/module/src/types/Conversation.d.ts.map +1 -0
  253. package/lib/typescript/module/src/types/Customer.d.ts +30 -0
  254. package/lib/typescript/module/src/types/Customer.d.ts.map +1 -0
  255. package/lib/typescript/module/src/types/Language.d.ts +2 -0
  256. package/lib/typescript/module/src/types/Language.d.ts.map +1 -0
  257. package/lib/typescript/module/src/types/LocalizationKeys.d.ts +22 -0
  258. package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +1 -0
  259. package/lib/typescript/module/src/types/MessageResponse.d.ts +59 -0
  260. package/lib/typescript/module/src/types/MessageResponse.d.ts.map +1 -0
  261. package/lib/typescript/module/src/types/Theme.d.ts +18 -0
  262. package/lib/typescript/module/src/types/Theme.d.ts.map +1 -0
  263. package/lib/typescript/module/src/utils/date.d.ts +7 -0
  264. package/lib/typescript/module/src/utils/date.d.ts.map +1 -0
  265. package/package.json +10 -2
  266. package/src/App.tsx +59 -0
  267. package/src/__dev__.ts +22 -0
  268. package/src/api/api.ts +16 -0
  269. package/src/api/conversations.ts +53 -0
  270. package/src/api/customers.ts +16 -0
  271. package/src/api/index.ts +6 -0
  272. package/src/api/messages.ts +33 -0
  273. package/src/assets/clock.png +0 -0
  274. package/src/assets/double-check.png +0 -0
  275. package/src/assets/down.png +0 -0
  276. package/src/assets/send.png +0 -0
  277. package/src/components/AppText.tsx +43 -0
  278. package/src/components/ChatList.tsx +305 -0
  279. package/src/components/CustomerForm.tsx +203 -0
  280. package/src/components/EmptyList.tsx +32 -0
  281. package/src/components/InitFailed.tsx +46 -0
  282. package/src/components/MessageInput.tsx +133 -0
  283. package/src/components/MessageItem.tsx +141 -0
  284. package/src/constants/translations.ts +232 -0
  285. package/src/data/fake/conversations.ts +558 -0
  286. package/src/data/fake/customers.ts +19 -0
  287. package/src/data/fake/messages.ts +64 -0
  288. package/src/hooks/useLocalize.ts +18 -0
  289. package/src/hooks/usePolling.ts +46 -0
  290. package/src/hooks/useThemeColors.ts +10 -0
  291. package/src/index.tsx +4 -5
  292. package/src/register.ts +17 -0
  293. package/src/store.ts +85 -0
  294. package/src/types/ApiOptions.ts +4 -0
  295. package/src/types/Conversation.ts +29 -0
  296. package/src/types/Customer.ts +31 -0
  297. package/src/types/Language.ts +11 -0
  298. package/src/types/LocalizationKeys.ts +21 -0
  299. package/src/types/MessageResponse.ts +58 -0
  300. package/src/types/Theme.ts +40 -0
  301. package/src/utils/date.ts +11 -0
  302. package/.editorconfig +0 -15
  303. package/.gitattributes +0 -3
  304. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -68
  305. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  306. package/.github/actions/setup/action.yml +0 -36
  307. package/.github/workflows/ci.yml +0 -165
  308. package/.gitignore +0 -86
  309. package/.idea/.gitignore +0 -8
  310. package/.idea/codeStyles/Project.xml +0 -59
  311. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  312. package/.idea/comnyx-rn.iml +0 -12
  313. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  314. package/.idea/modules.xml +0 -8
  315. package/.idea/prettier.xml +0 -6
  316. package/.idea/vcs.xml +0 -6
  317. package/.idea/workspace.xml +0 -71
  318. package/.nvmrc +0 -1
  319. package/.watchmanconfig +0 -1
  320. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  321. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  322. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  323. package/.yarnrc.yml +0 -10
  324. package/CODE_OF_CONDUCT.md +0 -133
  325. package/CONTRIBUTING.md +0 -130
  326. package/babel.config.js +0 -3
  327. package/example/.bundle/config +0 -2
  328. package/example/.watchmanconfig +0 -1
  329. package/example/Gemfile +0 -10
  330. package/example/README.md +0 -97
  331. package/example/android/app/build.gradle +0 -133
  332. package/example/android/app/debug.keystore +0 -0
  333. package/example/android/app/proguard-rules.pro +0 -10
  334. package/example/android/app/src/debug/AndroidManifest.xml +0 -9
  335. package/example/android/app/src/main/AndroidManifest.xml +0 -26
  336. package/example/android/app/src/main/java/comnyx/example/MainActivity.kt +0 -22
  337. package/example/android/app/src/main/java/comnyx/example/MainApplication.kt +0 -44
  338. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  339. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  340. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  341. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  342. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  343. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  344. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  345. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  346. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  347. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  348. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  349. package/example/android/app/src/main/res/values/strings.xml +0 -3
  350. package/example/android/app/src/main/res/values/styles.xml +0 -9
  351. package/example/android/build.gradle +0 -21
  352. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  353. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  354. package/example/android/gradle.properties +0 -39
  355. package/example/android/gradlew +0 -251
  356. package/example/android/gradlew.bat +0 -94
  357. package/example/android/settings.gradle +0 -6
  358. package/example/app.json +0 -4
  359. package/example/babel.config.js +0 -12
  360. package/example/index.js +0 -5
  361. package/example/ios/.xcode.env +0 -11
  362. package/example/ios/ComnyxExample/AppDelegate.swift +0 -30
  363. package/example/ios/ComnyxExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  364. package/example/ios/ComnyxExample/Images.xcassets/Contents.json +0 -6
  365. package/example/ios/ComnyxExample/Info.plist +0 -52
  366. package/example/ios/ComnyxExample/LaunchScreen.storyboard +0 -47
  367. package/example/ios/ComnyxExample/PrivacyInfo.xcprivacy +0 -37
  368. package/example/ios/ComnyxExample.xcodeproj/project.pbxproj +0 -505
  369. package/example/ios/ComnyxExample.xcodeproj/xcshareddata/xcschemes/ComnyxExample.xcscheme +0 -88
  370. package/example/ios/Podfile +0 -43
  371. package/example/jest.config.js +0 -3
  372. package/example/metro.config.js +0 -18
  373. package/example/package.json +0 -31
  374. package/example/react-native.config.js +0 -21
  375. package/example/src/App.tsx +0 -20
  376. package/lefthook.yml +0 -14
  377. package/lib/typescript/commonjs/src/__tests__/index.test.d.ts +0 -1
  378. package/lib/typescript/commonjs/src/__tests__/index.test.d.ts.map +0 -1
  379. package/lib/typescript/module/src/__tests__/index.test.d.ts +0 -1
  380. package/lib/typescript/module/src/__tests__/index.test.d.ts.map +0 -1
  381. package/src/__tests__/index.test.tsx +0 -1
  382. package/tsconfig.build.json +0 -4
  383. package/tsconfig.json +0 -30
  384. package/turbo.json +0 -36
  385. package/yarn.lock +0 -9251
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LocalizationList = void 0;
7
+ const LocalizationList = exports.LocalizationList = {
8
+ en: {
9
+ 'customer.form.title': 'Customer Information',
10
+ 'customer.form.email': 'Email',
11
+ 'customer.form.phone': 'Phone',
12
+ 'customer.form.country': 'Country',
13
+ 'customer.form.submit': 'Submit',
14
+ 'customer.form.error': 'Please fill in all required fields',
15
+ 'customer.form.instructions': 'Complete the form below to receive personalized service',
16
+ 'customer.form.error.country': 'Country is required',
17
+ 'customer.form.error.email': 'Valid email is required',
18
+ 'customer.form.error.phone': 'Phone is required',
19
+ 'customer.form.placeholder.name': 'Enter your name',
20
+ 'customer.form.placeholder.country': 'Enter your country',
21
+ 'customer.form.placeholder.email': 'Enter your email',
22
+ 'customer.form.placeholder.phone': 'Enter your phone number',
23
+ 'chat.messageInput.placeholder': 'Type your message...',
24
+ 'app.initialization.required': 'Please initialize first',
25
+ 'chat.load.error': 'Failed to load messages. Tap to retry',
26
+ 'chat.init.error': 'Failed to initialize chat. Tap to retry',
27
+ 'chat.empty': 'No messages yet'
28
+ },
29
+ tr: {
30
+ 'customer.form.title': 'Müşteri Bilgileri',
31
+ 'customer.form.email': 'E-posta',
32
+ 'customer.form.phone': 'Telefon',
33
+ 'customer.form.country': 'Ülke',
34
+ 'customer.form.submit': 'Gönder',
35
+ 'customer.form.error': 'Lütfen tüm zorunlu alanları doldurun',
36
+ 'customer.form.instructions': 'Kişiselleştirilmiş hizmet almak için aşağıdaki formu doldurun',
37
+ 'customer.form.error.country': 'Ülke alanı zorunludur',
38
+ 'customer.form.error.email': 'Geçerli bir e-posta adresi gerekli',
39
+ 'customer.form.error.phone': 'Telefon alanı zorunludur',
40
+ 'customer.form.placeholder.name': 'Adınızı girin',
41
+ 'customer.form.placeholder.country': 'Ülkenizi girin',
42
+ 'customer.form.placeholder.email': 'E-posta adresinizi girin',
43
+ 'customer.form.placeholder.phone': 'Telefon numaranızı girin',
44
+ 'chat.messageInput.placeholder': 'Mesajınızı yazın...',
45
+ 'app.initialization.required': 'Lütfen önce başlatın',
46
+ 'chat.load.error': 'Mesajlar yüklenemedi. Tekrar denemek için dokunun',
47
+ 'chat.init.error': 'Sohbet başlatılamadı. Tekrar denemek için dokunun',
48
+ 'chat.empty': 'Henüz mesaj yok'
49
+ },
50
+ es: {
51
+ 'customer.form.title': 'Información del Cliente',
52
+ 'customer.form.email': 'Correo Electrónico',
53
+ 'customer.form.phone': 'Teléfono',
54
+ 'customer.form.country': 'País',
55
+ 'customer.form.submit': 'Enviar',
56
+ 'customer.form.error': 'Por favor complete todos los campos requeridos',
57
+ 'customer.form.instructions': 'Complete el formulario a continuación para recibir un servicio personalizado',
58
+ 'customer.form.error.country': 'El país es requerido',
59
+ 'customer.form.error.email': 'Se requiere un correo electrónico válido',
60
+ 'customer.form.error.phone': 'El teléfono es requerido',
61
+ 'customer.form.placeholder.name': 'Ingrese su nombre',
62
+ 'customer.form.placeholder.country': 'Ingrese su país',
63
+ 'customer.form.placeholder.email': 'Ingrese su correo electrónico',
64
+ 'customer.form.placeholder.phone': 'Ingrese su número de teléfono',
65
+ 'chat.messageInput.placeholder': 'Escribe tu mensaje...',
66
+ 'app.initialization.required': 'Por favor inicialice primero',
67
+ 'chat.load.error': 'Error al cargar mensajes. Toque para reintentar',
68
+ 'chat.init.error': 'Error al inicializar el chat. Toque para reintentar',
69
+ 'chat.empty': 'Aún no hay mensajes'
70
+ },
71
+ fr: {
72
+ 'customer.form.title': 'Informations Client',
73
+ 'customer.form.email': 'Email',
74
+ 'customer.form.phone': 'Téléphone',
75
+ 'customer.form.country': 'Pays',
76
+ 'customer.form.submit': 'Envoyer',
77
+ 'customer.form.error': 'Veuillez remplir tous les champs obligatoires',
78
+ 'customer.form.instructions': 'Complétez le formulaire ci-dessous pour recevoir un service personnalisé',
79
+ 'customer.form.error.country': 'Le pays est requis',
80
+ 'customer.form.error.email': 'Un email valide est requis',
81
+ 'customer.form.error.phone': 'Le téléphone est requis',
82
+ 'customer.form.placeholder.name': 'Entrez votre nom',
83
+ 'customer.form.placeholder.country': 'Entrez votre pays',
84
+ 'customer.form.placeholder.email': 'Entrez votre email',
85
+ 'customer.form.placeholder.phone': 'Entrez votre numéro de téléphone',
86
+ 'chat.messageInput.placeholder': 'Tapez votre message...',
87
+ 'app.initialization.required': "Veuillez initialiser d'abord",
88
+ 'chat.load.error': 'Échec du chargement des messages. Appuyez pour réessayer',
89
+ 'chat.init.error': "Échec de l'initialisation du chat. Appuyez pour réessayer",
90
+ 'chat.empty': 'Aucun message pour le moment'
91
+ },
92
+ de: {
93
+ 'customer.form.title': 'Kundeninformationen',
94
+ 'customer.form.email': 'E-Mail',
95
+ 'customer.form.phone': 'Telefon',
96
+ 'customer.form.country': 'Land',
97
+ 'customer.form.submit': 'Absenden',
98
+ 'customer.form.error': 'Bitte füllen Sie alle erforderlichen Felder aus',
99
+ 'customer.form.instructions': 'Füllen Sie das folgende Formular aus, um einen personalisierten Service zu erhalten',
100
+ 'customer.form.error.country': 'Land ist erforderlich',
101
+ 'customer.form.error.email': 'Eine gültige E-Mail-Adresse ist erforderlich',
102
+ 'customer.form.error.phone': 'Telefon ist erforderlich',
103
+ 'customer.form.placeholder.name': 'Geben Sie Ihren Namen ein',
104
+ 'customer.form.placeholder.country': 'Geben Sie Ihr Land ein',
105
+ 'customer.form.placeholder.email': 'Geben Sie Ihre E-Mail-Adresse ein',
106
+ 'customer.form.placeholder.phone': 'Geben Sie Ihre Telefonnummer ein',
107
+ 'chat.messageInput.placeholder': 'Geben Sie Ihre Nachricht ein...',
108
+ 'app.initialization.required': 'Bitte initialisieren Sie zuerst',
109
+ 'chat.load.error': 'Nachrichten konnten nicht geladen werden. Tippen Sie zum Wiederholen',
110
+ 'chat.init.error': 'Chat konnte nicht initialisiert werden. Tippen Sie zum Wiederholen',
111
+ 'chat.empty': 'Noch keine Nachrichten'
112
+ },
113
+ it: {
114
+ 'customer.form.title': 'Informazioni Cliente',
115
+ 'customer.form.email': 'Email',
116
+ 'customer.form.phone': 'Telefono',
117
+ 'customer.form.country': 'Paese',
118
+ 'customer.form.submit': 'Invia',
119
+ 'customer.form.error': 'Si prega di compilare tutti i campi obbligatori',
120
+ 'customer.form.instructions': 'Completa il modulo sottostante per ricevere un servizio personalizzato',
121
+ 'customer.form.error.country': 'Il paese è obbligatorio',
122
+ 'customer.form.error.email': "È richiesta un'email valida",
123
+ 'customer.form.error.phone': 'Il telefono è obbligatorio',
124
+ 'customer.form.placeholder.name': 'Inserisci il tuo nome',
125
+ 'customer.form.placeholder.country': 'Inserisci il tuo paese',
126
+ 'customer.form.placeholder.email': 'Inserisci la tua email',
127
+ 'customer.form.placeholder.phone': 'Inserisci il tuo numero di telefono',
128
+ 'chat.messageInput.placeholder': 'Scrivi il tuo messaggio...',
129
+ 'app.initialization.required': 'Si prega di inizializzare prima',
130
+ 'chat.load.error': 'Impossibile caricare i messaggi. Tocca per riprovare',
131
+ 'chat.init.error': 'Impossibile inizializzare la chat. Tocca per riprovare',
132
+ 'chat.empty': 'Ancora nessun messaggio'
133
+ },
134
+ pt: {
135
+ 'customer.form.title': 'Informações do Cliente',
136
+ 'customer.form.email': 'Email',
137
+ 'customer.form.phone': 'Telefone',
138
+ 'customer.form.country': 'País',
139
+ 'customer.form.submit': 'Enviar',
140
+ 'customer.form.error': 'Por favor, preencha todos os campos obrigatórios',
141
+ 'customer.form.instructions': 'Complete o formulário abaixo para receber um serviço personalizado',
142
+ 'customer.form.error.country': 'O país é obrigatório',
143
+ 'customer.form.error.email': 'Um email válido é obrigatório',
144
+ 'customer.form.error.phone': 'O telefone é obrigatório',
145
+ 'customer.form.placeholder.name': 'Digite seu nome',
146
+ 'customer.form.placeholder.country': 'Digite seu país',
147
+ 'customer.form.placeholder.email': 'Digite seu email',
148
+ 'customer.form.placeholder.phone': 'Digite seu número de telefone',
149
+ 'chat.messageInput.placeholder': 'Digite sua mensagem...',
150
+ 'app.initialization.required': 'Por favor, inicialize primeiro',
151
+ 'chat.load.error': 'Falha ao carregar mensagens. Toque para tentar novamente',
152
+ 'chat.init.error': 'Falha ao inicializar o chat. Toque para tentar novamente',
153
+ 'chat.empty': 'Ainda não há mensagens'
154
+ },
155
+ ru: {
156
+ 'customer.form.title': 'Информация о клиенте',
157
+ 'customer.form.email': 'Электронная почта',
158
+ 'customer.form.phone': 'Телефон',
159
+ 'customer.form.country': 'Страна',
160
+ 'customer.form.submit': 'Отправить',
161
+ 'customer.form.error': 'Пожалуйста, заполните все обязательные поля',
162
+ 'customer.form.instructions': 'Заполните форму ниже, чтобы получить персонализированное обслуживание',
163
+ 'customer.form.error.country': 'Страна обязательна',
164
+ 'customer.form.error.email': 'Требуется действительный email',
165
+ 'customer.form.error.phone': 'Телефон обязателен',
166
+ 'customer.form.placeholder.name': 'Введите ваше имя',
167
+ 'customer.form.placeholder.country': 'Введите вашу страну',
168
+ 'customer.form.placeholder.email': 'Введите ваш email',
169
+ 'customer.form.placeholder.phone': 'Введите ваш номер телефона',
170
+ 'chat.messageInput.placeholder': 'Введите ваше сообщение...',
171
+ 'app.initialization.required': 'Пожалуйста, сначала инициализируйте',
172
+ 'chat.load.error': 'Не удалось загрузить сообщения. Нажмите, чтобы повторить попытку',
173
+ 'chat.init.error': 'Не удалось инициализировать чат. Нажмите, чтобы повторить попытку',
174
+ 'chat.empty': 'Пока нет сообщений'
175
+ },
176
+ ja: {
177
+ 'customer.form.title': '顧客情報',
178
+ 'customer.form.email': 'メールアドレス',
179
+ 'customer.form.phone': '電話番号',
180
+ 'customer.form.country': '国',
181
+ 'customer.form.submit': '送信',
182
+ 'customer.form.error': '必須項目をすべて入力してください',
183
+ 'customer.form.instructions': 'パーソナライズされたサービスを受けるには、以下のフォームに記入してください',
184
+ 'customer.form.error.country': '国は必須です',
185
+ 'customer.form.error.email': '有効なメールアドレスが必要です',
186
+ 'customer.form.error.phone': '電話番号は必須です',
187
+ 'customer.form.placeholder.name': 'お名前を入力してください',
188
+ 'customer.form.placeholder.country': '国を入力してください',
189
+ 'customer.form.placeholder.email': 'メールアドレスを入力してください',
190
+ 'customer.form.placeholder.phone': '電話番号を入力してください',
191
+ 'chat.messageInput.placeholder': 'メッセージを入力...',
192
+ 'app.initialization.required': 'まず初期化してください',
193
+ 'chat.load.error': 'メッセージの読み込みに失敗しました。タップして再試行',
194
+ 'chat.init.error': 'チャットの初期化に失敗しました。タップして再試行',
195
+ 'chat.empty': 'まだメッセージはありません'
196
+ },
197
+ zh: {
198
+ 'customer.form.title': '客户信息',
199
+ 'customer.form.email': '电子邮件',
200
+ 'customer.form.phone': '电话',
201
+ 'customer.form.country': '国家',
202
+ 'customer.form.submit': '提交',
203
+ 'customer.form.error': '请填写所有必填字段',
204
+ 'customer.form.instructions': '填写以下表格以获取个性化服务',
205
+ 'customer.form.error.country': '国家为必填项',
206
+ 'customer.form.error.email': '需要有效的电子邮件',
207
+ 'customer.form.error.phone': '电话为必填项',
208
+ 'customer.form.placeholder.name': '请输入您的姓名',
209
+ 'customer.form.placeholder.country': '请输入您的国家',
210
+ 'customer.form.placeholder.email': '请输入您的电子邮件',
211
+ 'customer.form.placeholder.phone': '请输入您的电话号码',
212
+ 'chat.messageInput.placeholder': '输入您的消息...',
213
+ 'app.initialization.required': '请先初始化',
214
+ 'chat.load.error': '加载消息失败。点击重试',
215
+ 'chat.init.error': '初始化聊天失败。点击重试',
216
+ 'chat.empty': '暂无消息'
217
+ }
218
+ };
219
+ //# sourceMappingURL=translations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LocalizationList","exports","en","tr","es","fr","de","it","pt","ru","ja","zh"],"sourceRoot":"../../../src","sources":["constants/translations.ts"],"mappings":";;;;;;AAGO,MAAMA,gBAAwD,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EACtEE,EAAE,EAAE;IACF,qBAAqB,EAAE,sBAAsB;IAC7C,qBAAqB,EAAE,OAAO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B,EAAE,4BAA4B;IAC/C,iBAAiB,EAAE,0BAA0B;IAC7C,YAAY,EAAE;EAChB,CAAC;EACDC,EAAE,EAAE;IACF,qBAAqB,EAAE,MAAM;IAC7B,qBAAqB,EAAE,MAAM;IAC7B,qBAAqB,EAAE,IAAI;IAC3B,uBAAuB,EAAE,IAAI;IAC7B,sBAAsB,EAAE,IAAI;IAC5B,qBAAqB,EAAE,WAAW;IAClC,4BAA4B,EAAE,gBAAgB;IAC9C,6BAA6B,EAAE,QAAQ;IACvC,2BAA2B,EAAE,WAAW;IACxC,2BAA2B,EAAE,QAAQ;IACrC,gCAAgC,EAAE,SAAS;IAC3C,mCAAmC,EAAE,SAAS;IAC9C,iCAAiC,EAAE,WAAW;IAC9C,iCAAiC,EAAE,WAAW;IAC9C,+BAA+B,EAAE,WAAW;IAC5C,6BAA6B,EAAE,OAAO;IACtC,iBAAiB,EAAE,aAAa;IAChC,iBAAiB,EAAE,cAAc;IACjC,YAAY,EAAE;EAChB;AACF,CAAU","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getFakePaginatedConversationResponse = exports.getFakeConversations = exports.getFakeConversationResponse = void 0;
7
+ const generateMessages = (count, from = 0, to = count, random = false) => {
8
+ const messages = [];
9
+ const customerData = {
10
+ id: 1,
11
+ name: 'John Doe',
12
+ email: 'john@example.com'
13
+ };
14
+ const systemMessages = ['Hello! How can I help you today?', "Sure, I'd be happy to help! What's your order number?", 'Let me check that for you...', 'I can help you with that. What specific settings would you like to change?', 'Is there anything else I can help you with?', "Could you please describe the issue you're experiencing?", "I'm sorry to hear that. Could you tell me why you want to cancel?", "I'll guide you through the password reset process", 'Let me check the shipping status for you', 'I can help you with that. Which plan are you interested in?', 'Thank you for providing that information', 'I understand your concern', 'We value your feedback', "I'll escalate this to our technical team", 'Have you tried restarting the application?', 'Let me connect you with a specialist', 'Your request has been processed successfully', 'We apologize for the inconvenience', 'Your satisfaction is our priority', "Is there a specific feature you're looking for?", "I'll be happy to assist you with your inquiry", 'Could you provide more details about your issue?', "I'm checking our database now", 'Your account has been updated successfully', "We've received your request and will process it shortly", 'Our team is working on resolving this issue', 'Would you like me to send you an email confirmation?', 'I can see your previous orders in our system', "That's a great question", 'Let me transfer you to our billing department', 'I recommend trying our new feature that addresses this', 'Your feedback will help us improve our service', "I've noted your preferences for future reference", 'We have several options available for you', 'Please allow 2-3 business days for processing', 'I can certainly help you troubleshoot this problem', 'We appreciate your patience', "I'll make sure this doesn't happen again", 'Would you like to hear about our current promotions?', "I've sent the instructions to your email", 'Let me know if you need any clarification', "We're committed to resolving this for you", "I've updated your account settings as requested", 'Is your issue related to our mobile app or website?', "We've extended your subscription as a courtesy", "I'm pulling up your account information now", "That's not a problem at all", 'We can definitely accommodate that request', "I'm sorry for any confusion this has caused", 'Let me explain how this feature works', "We've implemented additional security measures", 'Your account security is our top priority', "I've documented this conversation for our records", "We're constantly improving our services based on feedback", "I'll need to verify your identity before proceeding", 'We have a solution that might work for your situation', "I'm happy to walk you through the process step by step", 'We offer 24/7 customer support for issues like this', "I can see you've been a loyal customer", 'Let me suggest an alternative approach', "We've recently updated our policies regarding this", "I'll need a few more details to assist you properly", 'We can schedule a follow-up if needed', 'Your case has been assigned a priority status', "I'm checking with our warehouse about your order", 'We value you as a customer', "I'll make a note of your preference for future interactions", 'We have a dedicated team for these types of requests', 'I can see the history of your issue in our system', 'Let me offer you a solution that has worked for others', "We're sorry for any inconvenience this has caused", "I'm looking into this matter personally", 'We appreciate your understanding', "I'll ensure this feedback reaches our product team", "We're working on enhancing this feature", 'Your input helps us serve you better', 'I can confirm that your request has been processed', 'We have a step-by-step guide I can share with you', 'Let me know if you encounter this issue again', "We're here to support you whenever you need assistance", "I'm sending you a link with more information", 'We take these matters very seriously', "I'll follow up with you personally on this", "We're committed to providing excellent service", 'I understand this is frustrating', 'Let me see what special arrangements we can make', 'We appreciate your loyalty to our brand', "I'm checking our knowledge base for solutions", 'We have several tutorials that might help', 'Your feedback will be shared with our management team', "I'm happy to explain our policy on this", 'We can certainly make an exception in this case', "I'll need to consult with my supervisor about this", "We're continuously training our staff to handle these situations", 'I appreciate your patience while we resolve this', 'Let me know if my explanation makes sense', 'We want to ensure your complete satisfaction', "I'm noting this as a priority issue", 'We have a dedicated resource for this topic', "I'll be your point of contact throughout this process", 'We understand the urgency of your request', "I'm checking all possible solutions for you", 'We strive to exceed your expectations', "I'll make sure this is addressed promptly", 'We have a comprehensive FAQ that might help', "Let me know if you'd prefer a different approach", "We're grateful for your continued support", "I'm investigating all aspects of this issue", 'We have a team dedicated to quality assurance', "I'll ensure this doesn't affect your experience with us", "We're constantly updating our systems to prevent this", 'I appreciate you bringing this to our attention', "Let me know if there's anything else on your mind", "We're here to make your experience seamless", "I'm documenting your suggestions for our team", 'We take every opportunity to improve our service', "I'll be monitoring your case personally", 'We have specialized tools to address this', 'Let me know how else I can assist you today', "We're committed to finding the best solution for you", "I'm happy to provide additional information", 'We value transparency in all our communications', "I'll make sure your voice is heard", "We're dedicated to resolving this completely", "I'm checking our latest policies on this matter", 'We appreciate your constructive feedback', 'Let me know if this resolves your concern', "We're always looking for ways to improve", "I'm glad we could address this together", 'We hope to exceed your expectations next time', "I'll be sure to follow up on this matter", "We're thankful for your patience during this process", "I'm here to ensure your complete satisfaction", 'We take pride in our customer service', 'Let me know if you have any other questions', "We're committed to your success with our product", "I'm pleased we could find a solution", 'We look forward to serving you again soon', "I'll ensure this feedback reaches the appropriate team", "We're constantly evolving based on customer input", 'Let me know if you need any clarification on this', 'We appreciate you choosing our service', "I'm dedicated to resolving this for you today", 'We understand the importance of this to you', "I'll make sure we address all your concerns", "We're here whenever you need assistance", "I'm happy we could help resolve this issue", 'We value every interaction with our customers', "Let me know if there's anything else I can explain", "We're grateful for your business", "I'm confident we can find a solution together", 'We aim to provide exceptional service every time', "I'll ensure your experience improves moving forward", "We're committed to your satisfaction", 'Let me know how this solution works for you', 'We appreciate your understanding in this matter', "I'm here to support you throughout this process", 'We value your time and patience', "I'll make sure this is handled with care", "We're dedicated to making this right for you", "Let me know if you'd like me to elaborate further", "We're thankful for your continued trust in us", "I'm pleased to assist you with this today", 'We strive for excellence in every interaction', "I'll ensure your feedback is addressed properly", "We're here to make your experience positive", 'Let me know if this meets your expectations', 'We appreciate your loyalty to our service', "I'm committed to finding the best solution for you", 'We understand the importance of resolving this quickly', "I'll be thorough in addressing your concerns", "We value each customer's unique needs", 'Let me know if you need any additional support', "We're here to help you succeed", "I'm glad we could connect on this issue", 'We appreciate your patience throughout this process'];
15
+ const userMessages = ['I have a question about my order', 'My order number is #12345', 'I need help with my account settings', 'I want to update my email address', "No, that's all. Thank you!", 'I have a technical issue with the app', 'The app keeps crashing when I try to open it', 'I need to cancel my subscription', "I'm not using the service anymore", 'How do I reset my password?', 'When will my order arrive?', 'I want to upgrade my plan', 'The premium plan', 'Is there a refund policy?', "I can't log into my account", 'The website is loading very slowly', "I'd like to change my payment method", 'Can I get a discount?', 'I need to return an item', 'How do I contact customer support?', 'Is there a way to track my order?', "The product doesn't match the description", 'I need help with installation', 'Do you offer international shipping?', 'What are your business hours?', 'Can I speak with a manager?', "I'm having trouble with checkout", 'My payment was declined', 'I need to update my shipping address', "The discount code isn't working", 'I received the wrong item', 'How long is the warranty period?', 'Can I add more items to my existing order?', 'I need a copy of my receipt', 'Is there a loyalty program?', 'The product arrived damaged', 'How do I use this feature?', 'Can I change my username?', 'I forgot my username', 'Where can I find my order history?', 'Do you have this in a different color?', "What's the difference between the basic and premium plans?", 'How do I delete my account?', 'Can I transfer my subscription to another account?', 'I need to report a bug', 'The instructions are confusing', 'Is there a user manual available?', 'How do I connect this to my other devices?', 'Can I get a replacement part?', "I'm getting an error message", 'How do I export my data?', 'Can I schedule a delivery time?', 'I need to change my subscription plan', 'How do I update my credit card information?', 'Is there a mobile app available?', 'How do I enable notifications?', 'Can I use multiple payment methods?', 'I need help with the search function', 'How do I filter results?', 'Can I save my preferences?', 'Is there a way to automate this process?', 'How do I share this with others?', 'Can I integrate this with other tools?', 'I need help with importing data', 'How secure is my information?', 'Can I set up two-factor authentication?', "I'm concerned about privacy", 'How do I opt out of marketing emails?', 'Can I download a receipt for tax purposes?', 'How do I report inappropriate content?', 'Is there a community forum?', 'How do I become a beta tester?', 'Can I suggest a new feature?', 'I need help with customization options', 'How do I set my preferences?', 'Can I create multiple profiles?', 'I need to merge two accounts', 'How do I transfer my data to a new device?', 'Can I use this offline?', 'How do I sync across devices?', "I'm having issues with the latest update", 'Can I revert to a previous version?', 'How do I clear my cache?', "The search results aren't relevant", 'Can I save my search criteria?', 'How do I set up alerts?', 'I need help with the dashboard', 'Can I customize the interface?', 'How do I generate reports?', 'Can I export data in different formats?', 'I need help with the analytics feature', 'How accurate is this information?', 'Can I schedule automatic backups?', 'How do I restore from a backup?', 'I need help with account verification', 'How long does verification take?', 'Can I expedite this process?', 'I need to speak with someone urgently', 'How do I file a formal complaint?', 'Can I get compensation for this issue?', "I've been charged incorrectly", "There's an unauthorized transaction", 'How do I dispute a charge?', 'Can I get an extension on my trial?', 'How do I refer a friend?', 'Is there a referral bonus?', 'I need help with the collaboration features', 'How do I invite team members?', 'Can I set different permission levels?', 'How do I restrict access to certain features?', 'I need help with bulk operations', 'Can I import a spreadsheet?', 'How do I format my data correctly?', "I'm getting validation errors", 'Can I schedule posts in advance?', 'How do I set up recurring events?', 'I need help with the calendar integration', 'Can I sync with my Google Calendar?', 'How do I set my time zone?', "The reminders aren't working", 'Can I customize notification sounds?', 'How do I mute notifications temporarily?', 'I need help with the mobile version', 'The app is using too much battery', 'Can I use this on a tablet?', 'How do I optimize for different screen sizes?', 'I need help with accessibility features', 'Is there a screen reader mode?', 'Can I increase the font size?', 'How do I enable high contrast mode?', 'I need help with language settings', 'Can I use multiple languages?', 'How do I translate content?', 'The translation seems incorrect', 'I need technical specifications', 'What are the system requirements?', 'Can this run on my operating system?', 'How much storage space is needed?', 'I need help with the API', 'Where can I find documentation?', 'Can I get an API key?', 'What are the rate limits?', 'I need help understanding the pricing', 'Are there any hidden fees?', 'Can I get a custom quote?', 'How often do prices change?', 'I need help with billing issues', 'Why was I charged twice?', 'Can I get a monthly statement?', 'How do I update my billing address?', 'I need help with the checkout process', 'The page keeps refreshing', 'Can I save my payment information?', 'How do I apply a gift card?', 'I need help with shipping options', "What's the fastest delivery method?", 'Can I change shipping after ordering?', 'How do I track international shipments?', 'I need help with returns', "What's your return policy?", 'How do I print a return label?', 'Can I exchange instead of return?', 'I need help with product recommendations', 'What do you suggest for my needs?', 'Can I see what others purchased?', 'How do I find similar products?', 'I need help with my wishlist', 'Can I share my wishlist?', 'How do I move items to my cart?', 'Can I set up price alerts?', 'I need help with gift options', 'Can I add a gift message?', 'Do you offer gift wrapping?', 'How do I send a gift directly?', 'I need help with my review', 'Why was my review rejected?', 'Can I edit my review?', 'How do I add photos to my review?', 'I need help with my profile', 'How do I change my profile picture?', 'Can I make my profile private?', 'How do I link social media accounts?', 'I need help with the search filters', "The filters aren't working properly", 'Can I save my filter settings?', 'How do I clear all filters?', 'I need help finding a specific product', 'Do you have this in stock?', 'When will it be available again?', "Can I be notified when it's back?", 'I need help with product compatibility', 'Will this work with my device?', 'Is this compatible with older versions?', 'Do I need additional adapters?', 'I need help with assembly instructions', "The parts don't seem to fit", 'Are there video tutorials available?', 'Can I get professional assembly?', 'I need help with troubleshooting', "I've tried everything you suggested", 'Is there a diagnostic tool?', 'Can you walk me through the steps again?', 'I need help with my warranty claim', 'How do I submit a warranty claim?', 'What documentation do I need?', 'How long does the process take?', 'I need help with my account security', 'I think my account was hacked', 'How do I secure my account?', 'Should I change all my passwords?', 'I need help with the newsletter', 'How do I subscribe to updates?', 'Can I choose which topics I receive?', 'How do I unsubscribe?', 'I need help with the mobile app permissions', 'Why does the app need access to my camera?', 'Can I use the app with limited permissions?', 'How do I update permission settings?', 'I need help with in-app purchases', 'Why am I being charged monthly?', 'How do I cancel recurring payments?', 'Can I get a refund for accidental purchases?', 'I need help with the desktop application', "The program won't start", 'Can I run this in the background?', 'How do I update to the latest version?', 'I need help with file formats', 'What formats are supported?', 'How do I convert my files?', 'Why are my files not uploading?', 'I need help with printing issues', "The document isn't formatting correctly", 'Can I print specific pages only?', 'How do I troubleshoot printer connection?', 'I need help with my subscription renewal', 'When does my subscription expire?', 'Will it renew automatically?', 'How do I get a renewal discount?', 'I need help with my account status', 'Why is my account suspended?', 'How do I reactivate my account?', 'Can I temporarily freeze my account?', 'I need help with the verification code', "I'm not receiving the code", "The code doesn't work", 'How long is the code valid?', 'I need help with my purchase history', 'Can I see past transactions?', 'How do I download invoices?', 'Is there a way to hide certain purchases?', 'I need help with promotional offers', 'When does this promotion end?', 'Can I combine multiple offers?', 'Why am I not eligible for this promotion?', 'I need help with my digital downloads', 'Where do I find my downloads?', 'Can I download again if I lost the file?', 'Is there a limit to download attempts?', 'I need help with the shopping cart', 'Items keep disappearing from my cart', 'Can I save my cart for later?', 'How long are items held in my cart?'];
16
+ if (random) {
17
+ const number = Math.floor(Math.random() * 2);
18
+ for (let i = 0; i <= number; i++) {
19
+ const isSystemMessage = i % 2 === 1;
20
+ const messageArray = systemMessages;
21
+ const messageIndex = Math.floor(Math.random() * messageArray.length);
22
+ const content = messageArray[messageIndex];
23
+ messages.push({
24
+ id: systemMessages.length + i + Math.floor(Math.random() * 5000),
25
+ content,
26
+ created_at: new Date(Date.now() - (count - i) * 60000).toISOString(),
27
+ // Each message 1 minute apart
28
+ user: isSystemMessage ? null : customerData
29
+ });
30
+ }
31
+ }
32
+ for (let i = from + 1; i <= to; i++) {
33
+ const isSystemMessage = i % 2 === 1;
34
+ const messageArray = isSystemMessage ? systemMessages : userMessages;
35
+ const messageIndex = Math.floor((i - 1) / 2) % messageArray.length;
36
+ const content = messageArray[messageIndex];
37
+ messages.push({
38
+ id: i,
39
+ content,
40
+ created_at: new Date(Date.now() - (count - i) * 60000).toISOString(),
41
+ // Each message 1 minute apart
42
+ user: isSystemMessage ? null : customerData
43
+ });
44
+ }
45
+ return messages;
46
+ };
47
+ const getFakeConversations = (per_page, from, to, random = false) => {
48
+ return generateMessages(per_page, from, to, random);
49
+ };
50
+ exports.getFakeConversations = getFakeConversations;
51
+ const getFakeConversationResponse = (per_page, from, to, random = false) => {
52
+ const pageData = {
53
+ current_page: 0,
54
+ from,
55
+ to,
56
+ first_page_url: '',
57
+ per_page,
58
+ next_page_url: '',
59
+ path: '',
60
+ prev_page_url: '',
61
+ data: getFakeConversations(per_page, from, to, random)
62
+ };
63
+ return new Promise((resolve, _) => {
64
+ setTimeout(() => {
65
+ resolve({
66
+ page: pageData
67
+ });
68
+ }, 500);
69
+ });
70
+ };
71
+ exports.getFakeConversationResponse = getFakeConversationResponse;
72
+ const getFakePaginatedConversationResponse = (page, per_page = 5) => {
73
+ const from = page * per_page;
74
+ const to = from + per_page;
75
+ const pageData = {
76
+ current_page: page,
77
+ from,
78
+ to,
79
+ first_page_url: '',
80
+ per_page,
81
+ next_page_url: '',
82
+ path: '',
83
+ prev_page_url: '',
84
+ data: getFakeConversations(per_page, from, to)
85
+ };
86
+ return new Promise((resolve, _) => {
87
+ setTimeout(() => {
88
+ resolve({
89
+ page: pageData
90
+ });
91
+ }, 500);
92
+ });
93
+ };
94
+ exports.getFakePaginatedConversationResponse = getFakePaginatedConversationResponse;
95
+ //# sourceMappingURL=conversations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["generateMessages","count","from","to","random","messages","customerData","id","name","email","systemMessages","userMessages","number","Math","floor","i","isSystemMessage","messageArray","messageIndex","length","content","push","created_at","Date","now","toISOString","user","getFakeConversations","per_page","exports","getFakeConversationResponse","pageData","current_page","first_page_url","next_page_url","path","prev_page_url","data","Promise","resolve","_","setTimeout","page","getFakePaginatedConversationResponse"],"sourceRoot":"../../../../src","sources":["data/fake/conversations.ts"],"mappings":";;;;;;AAMA,MAAMA,gBAAgB,GAAGA,CACvBC,KAAa,EACbC,IAAY,GAAG,CAAC,EAChBC,EAAU,GAAGF,KAA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T,CAAC,CAAC;AACJ,CAAC;AAACF,OAAA,CAAAc,oCAAA,GAAAA,oCAAA","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getFakeCustomer = getFakeCustomer;
7
+ function getFakeCustomer(customerData) {
8
+ return {
9
+ id: Math.floor(Math.random() * 1000),
10
+ project_id: 1,
11
+ external_id: customerData.externalId,
12
+ name: customerData.name,
13
+ country: customerData.country,
14
+ language: customerData.language,
15
+ email: customerData.email,
16
+ phone: customerData.phone,
17
+ ip_address: customerData.ipAddress,
18
+ custom_parameters: JSON.stringify(customerData.customParameters || []),
19
+ user_code: Math.random().toString(36).substring(7),
20
+ updated_at: new Date().toISOString(),
21
+ created_at: new Date().toISOString()
22
+ };
23
+ }
24
+ //# sourceMappingURL=customers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getFakeCustomer","customerData","id","Math","floor","random","project_id","external_id","externalId","name","country","language","email","phone","ip_address","ipAddress","custom_parameters","JSON","stringify","customParameters","user_code","toString","substring","updated_at","Date","toISOString","created_at"],"sourceRoot":"../../../../src","sources":["data/fake/customers.ts"],"mappings":";;;;;;AAEO,SAASA,eAAeA,CAACC,YAAmC,EAAY;EAC7E,OAAO;IACLC,EAAE,EAAEC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;IACpCC,UAAU,EAAE,CAAC;IACbC,WAAW,EAAEN,YAAY,CAACO,UAAU;IACpCC,IAAI,EAAER,YAAY,CAACQ,IAAI;IACvBC,OAAO,EAAET,YAAY,CAACS,OAAO;IAC7BC,QAAQ,EAAEV,YAAY,CAACU,QAAQ;IAC/BC,KAAK,EAAEX,YAAY,CAACW,KAAK;IACzBC,KAAK,EAAEZ,YAAY,CAACY,KAAK;IACzBC,UAAU,EAAEb,YAAY,CAACc,SAAS;IAClCC,iBAAiB,EAAEC,IAAI,CAACC,SAAS,CAACjB,YAAY,CAACkB,gBAAgB,IAAI,EAAE,CAAC;IACtEC,SAAS,EAAEjB,IAAI,CAACE,MAAM,CAAC,CAAC,CAACgB,QAAQ,CAAC,EAAE,CAAC,CAACC,SAAS,CAAC,CAAC,CAAC;IAClDC,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IACpCC,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC;EACrC,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getFakeMessageResponse = getFakeMessageResponse;
7
+ function getFakeMessageResponse(content) {
8
+ return {
9
+ message: {
10
+ conversation_id: 1,
11
+ content: content,
12
+ is_note: false,
13
+ updated_at: new Date().toISOString(),
14
+ created_at: new Date().toISOString(),
15
+ id: Math.floor(Math.random() * 1000),
16
+ user: null,
17
+ conversation: {
18
+ id: 1,
19
+ project_id: 1,
20
+ customer_id: 1,
21
+ created_at: new Date().toISOString(),
22
+ updated_at: new Date().toISOString(),
23
+ deleted_at: null,
24
+ language: 'en',
25
+ use_ai_answers: 0,
26
+ project: {
27
+ id: 1,
28
+ name: 'Demo Project',
29
+ organization_id: 1,
30
+ created_at: new Date().toISOString(),
31
+ updated_at: new Date().toISOString(),
32
+ deleted_at: null,
33
+ uuid: 'demo-uuid',
34
+ organization: {
35
+ id: 1,
36
+ name: 'Demo Organization',
37
+ created_at: new Date().toISOString(),
38
+ updated_at: new Date().toISOString(),
39
+ deleted_at: null,
40
+ owner: [{
41
+ id: 1,
42
+ name: 'Demo User',
43
+ email: 'demo@example.com',
44
+ email_verified_at: null,
45
+ created_at: new Date().toISOString(),
46
+ updated_at: new Date().toISOString(),
47
+ avatar: null,
48
+ two_factor_secret: null,
49
+ two_factor_recovery_codes: null,
50
+ is_bot: false,
51
+ profile_photo_url: '',
52
+ pivot: {
53
+ organization_id: 1,
54
+ user_id: 1,
55
+ role: 'owner',
56
+ created_at: new Date().toISOString(),
57
+ updated_at: new Date().toISOString()
58
+ }
59
+ }]
60
+ }
61
+ }
62
+ },
63
+ events: []
64
+ }
65
+ };
66
+ }
67
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getFakeMessageResponse","content","message","conversation_id","is_note","updated_at","Date","toISOString","created_at","id","Math","floor","random","user","conversation","project_id","customer_id","deleted_at","language","use_ai_answers","project","name","organization_id","uuid","organization","owner","email","email_verified_at","avatar","two_factor_secret","two_factor_recovery_codes","is_bot","profile_photo_url","pivot","user_id","role","events"],"sourceRoot":"../../../../src","sources":["data/fake/messages.ts"],"mappings":";;;;;;AAEO,SAASA,sBAAsBA,CAACC,OAAe,EAAmB;EACvE,OAAO;IACLC,OAAO,EAAE;MACPC,eAAe,EAAE,CAAC;MAClBF,OAAO,EAAEA,OAAO;MAChBG,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;MACpCC,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;MACpCE,EAAE,EAAEC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;MACpCC,IAAI,EAAE,IAAI;MACVC,YAAY,EAAE;QACZL,EAAE,EAAE,CAAC;QACLM,UAAU,EAAE,CAAC;QACbC,WAAW,EAAE,CAAC;QACdR,UAAU,EAAE,IAAIF,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;QACpCF,UAAU,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;QACpCU,UAAU,EAAE,IAAI;QAChBC,QAAQ,EAAE,IAAI;QACdC,cAAc,EAAE,CAAC;QACjBC,OAAO,EAAE;UACPX,EAAE,EAAE,CAAC;UACLY,IAAI,EAAE,cAAc;U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
+ value: true
5
+ });
6
+ exports.useLocalize = useLocalize;
7
+ var _react = require("react");
8
+ var _translations = require("../constants/translations.js");
9
+ var _store = require("../store.js");
10
+ function useLocalize() {
11
+ const {
12
+ language
13
+ } = (0, _store.useAppStore)(s => ({
14
+ language: s.language
15
+ }));
16
+ return (0, _react.useCallback)(localization => {
17
+ return (_translations.LocalizationList[language] || _translations.LocalizationList.en)[localization];
18
+ }, [language]);
19
+ }
20
+ //# sourceMappingURL=useLocalize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_translations","_store","useLocalize","language","useAppStore","s","useCallback","localization","LocalizationList","en"],"sourceRoot":"../../../src","sources":["hooks/useLocalize.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAGO,SAASG,WAAWA,CAAA,EAAG;EAC5B,MAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,kBAAW,EAAEC,CAAC,KAAM;IACvCF,QAAQ,EAAEE,CAAC,CAACF;EACd,CAAC,CAAC,CAAC;EAEH,OAAO,IAAAG,kBAAW,EACfC,YAAoC,IAAa;IAChD,OAAO,CAACC,8BAAgB,CAACL,QAAQ,CAAkC,IACjEK,8BAAgB,CAACC,EAAE,EAAEF,YAAY,CAAC;EACtC,CAAC,EACD,CAACJ,QAAQ,CACX,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usePolling = usePolling;
7
+ var _react = require("react");
8
+ var _store = require("../store.js");
9
+ var _index = require("../api/index.js");
10
+ const NEW_MESSAGES_CHECK_INTERVAL = 10000;
11
+ function usePolling() {
12
+ const {
13
+ customer,
14
+ data,
15
+ setData
16
+ } = (0, _store.useAppStore)(s => ({
17
+ customer: s.customer,
18
+ data: s.data,
19
+ setData: s.setData
20
+ }));
21
+ const lastMessage = data ? data[data.length - 1] : null;
22
+ (0, _react.useEffect)(() => {
23
+ const created_at = lastMessage?.created_at;
24
+ let interval = null;
25
+ if (customer?.external_id && created_at) {
26
+ interval = setInterval(() => {
27
+ (0, _index.getNewCustomerConversation)(customer.external_id, created_at, {
28
+ fake: _store.useAppStore.getState().fake
29
+ }).then(newData => {
30
+ setData(prevData => {
31
+ const newMessages = newData.page.data;
32
+ const existingIds = new Set(prevData?.map(msg => msg.id));
33
+ const uniqueNewMessages = newMessages.filter(msg => !existingIds.has(msg.id));
34
+ return [...uniqueNewMessages.map(u => ({
35
+ ...u,
36
+ created_at: new Date(u.created_at),
37
+ approved: true
38
+ })), ...(prevData ?? [])];
39
+ });
40
+ });
41
+ }, NEW_MESSAGES_CHECK_INTERVAL);
42
+ }
43
+ return () => {
44
+ if (interval) {
45
+ clearInterval(interval);
46
+ }
47
+ };
48
+ }, [customer?.external_id, lastMessage?.created_at, setData]);
49
+ }
50
+ //# sourceMappingURL=usePolling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_store","_index","NEW_MESSAGES_CHECK_INTERVAL","usePolling","customer","data","setData","useAppStore","s","lastMessage","length","useEffect","created_at","interval","external_id","setInterval","getNewCustomerConversation","fake","getState","then","newData","prevData","newMessages","page","existingIds","Set","map","msg","id","uniqueNewMessages","filter","has","u","Date","approved","clearInterval"],"sourceRoot":"../../../src","sources":["hooks/usePolling.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,MAAMG,2BAA2B,GAAG,KAAK;AAElC,SAASC,UAAUA,CAAA,EAAG;EAC3B,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAG,IAAAC,kBAAW,EAAEC,CAAC,KAAM;IACtDJ,QAAQ,EAAEI,CAAC,CAACJ,QAAQ;IACpBC,IAAI,EAAEG,CAAC,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AAQ,EAAE;QACZsB,aAAa,CAACtB,QAAQ,CAAC;MACzB;IACF,CAAC;EACH,CAAC,EAAE,CAACT,QAAQ,EAAEU,WAAW,EAAEL,WAAW,EAAEG,UAAU,EAAEN,OAAO,CAAC,CAAC;AAC/D","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useThemeColors = useThemeColors;
7
+ var _store = require("../store.js");
8
+ var _Theme = require("../types/Theme.js");
9
+ function useThemeColors() {
10
+ const {
11
+ theme
12
+ } = (0, _store.useAppStore)(s => ({
13
+ theme: s.theme
14
+ }));
15
+ return theme === 'light' ? _Theme.lightTheme : _Theme.darkTheme;
16
+ }
17
+ //# sourceMappingURL=useThemeColors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_store","require","_Theme","useThemeColors","theme","useAppStore","s","lightTheme","darkTheme"],"sourceRoot":"../../../src","sources":["hooks/useThemeColors.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,SAASE,cAAcA,CAAA,EAAgB;EAC5C,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,kBAAW,EAAEC,CAAC,KAAM;IACpCF,KAAK,EAAEE,CAAC,CAACF;EACX,CAAC,CAAC,CAAC;EAEH,OAAOA,KAAK,KAAK,OAAO,GAAGG,iBAAU,GAAGC,gBAAS;AACnD","ignoreList":[]}
@@ -3,10 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.multiply = multiply;
7
- var _NativeComnyx = _interopRequireDefault(require("./NativeComnyx"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- function multiply(a, b) {
10
- return _NativeComnyx.default.multiply(a, b);
11
- }
6
+ Object.defineProperty(exports, "Comnyx", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _App.Comnyx;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "registerComnyx", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _register.registerComnyx;
16
+ }
17
+ });
18
+ require("./__dev__.js");
19
+ var _register = require("./register.js");
20
+ var _App = require("./App.js");
12
21
  //# sourceMappingURL=index.js.map