@developer_tribe/react-native-comnyx 0.6.2 → 0.7.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 (448) hide show
  1. package/Comnyx.podspec +1 -1
  2. package/README.md +192 -16
  3. package/android/build.gradle +13 -1
  4. package/android/generated/RCTAppDependencyProvider.h +25 -0
  5. package/android/generated/RCTAppDependencyProvider.mm +55 -0
  6. package/android/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  7. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  8. package/android/generated/RCTThirdPartyComponentsProvider.h +16 -0
  9. package/android/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  10. package/android/generated/ReactAppDependencyProvider.podspec +34 -0
  11. package/android/generated/jni/RNComnyxSpec-generated.cpp +1 -11
  12. package/android/generated/jni/RNComnyxSpec.h +0 -7
  13. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +0 -11
  14. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +0 -52
  15. package/android/src/main/AndroidManifestNew.xml +10 -0
  16. package/android/src/main/java/com/comnyx/ComnyxModule.kt +107 -5
  17. package/android/src/main/java/com/comnyx/ComnyxPackage.kt +10 -6
  18. package/android/src/main/java/com/comnyx/src/messaging/ComnyxMessaging.kt +45 -0
  19. package/android/src/main/java/com/comnyx/src/messaging/firebase/FCM.kt +38 -0
  20. package/android/src/main/java/com/comnyx/src/messaging/firebase/FirebaseMessagingService.kt +45 -0
  21. package/android/src/main/java/com/comnyx/src/messaging/notifications/NotificationsService.kt +82 -0
  22. package/android/src/main/java/com/comnyx/src/messaging/permissions/Permissions.kt +64 -0
  23. package/ios/APNService.swift +74 -0
  24. package/ios/Comnyx-Bridging-Header.h +17 -0
  25. package/ios/Comnyx.m +15 -0
  26. package/ios/Comnyx.swift +77 -0
  27. package/ios/ComnyxMessaging.swift +84 -0
  28. package/ios/PushService.swift +7 -0
  29. package/lib/commonjs/NativeComnyx.js +9 -0
  30. package/lib/commonjs/NativeComnyx.js.map +1 -0
  31. package/lib/commonjs/api/api.js +14 -4
  32. package/lib/commonjs/api/api.js.map +1 -1
  33. package/lib/commonjs/api/customers.js +3 -8
  34. package/lib/commonjs/api/customers.js.map +1 -1
  35. package/lib/commonjs/api/index.js +1 -1
  36. package/lib/commonjs/components/AppText.js +1 -1
  37. package/lib/commonjs/components/AppText.js.map +1 -1
  38. package/lib/commonjs/components/ChatList.js +1 -1
  39. package/lib/commonjs/components/ChatList.js.map +1 -1
  40. package/lib/commonjs/components/CustomerForm.js +2 -4
  41. package/lib/commonjs/components/CustomerForm.js.map +1 -1
  42. package/lib/commonjs/components/MessageInput.js +1 -1
  43. package/lib/commonjs/components/MessageInput.js.map +1 -1
  44. package/lib/commonjs/constants/viewabilityConfig.js.map +1 -0
  45. package/lib/commonjs/hooks/isRtl.js +1 -1
  46. package/lib/commonjs/hooks/useLocalize.js +1 -1
  47. package/lib/commonjs/hooks/useLocalize.js.map +1 -1
  48. package/lib/commonjs/hooks/usePolling.js +1 -1
  49. package/lib/commonjs/hooks/usePolling.js.map +1 -1
  50. package/lib/commonjs/hooks/useTheme.js +1 -1
  51. package/lib/commonjs/hooks/useTheme.js.map +1 -1
  52. package/lib/commonjs/index.js +9 -16
  53. package/lib/commonjs/index.js.map +1 -1
  54. package/lib/commonjs/notifications/index.js +21 -0
  55. package/lib/commonjs/notifications/index.js.map +1 -0
  56. package/lib/commonjs/{Accumulator.js → register/Accumulator.js} +8 -1
  57. package/lib/commonjs/register/Accumulator.js.map +1 -0
  58. package/lib/commonjs/{collectData.js → register/collectData.js} +2 -0
  59. package/lib/commonjs/register/collectData.js.map +1 -0
  60. package/lib/commonjs/register/index.js +17 -0
  61. package/lib/commonjs/register/index.js.map +1 -0
  62. package/lib/commonjs/register/init.js +14 -0
  63. package/lib/commonjs/register/init.js.map +1 -0
  64. package/lib/commonjs/register/login.js +24 -0
  65. package/lib/commonjs/register/login.js.map +1 -0
  66. package/lib/commonjs/register/logout.js +20 -0
  67. package/lib/commonjs/register/logout.js.map +1 -0
  68. package/lib/commonjs/{store.js → store/store.js} +3 -2
  69. package/lib/commonjs/store/store.js.map +1 -0
  70. package/lib/commonjs/{App.js → support/ComnyxSupport.js} +39 -14
  71. package/lib/commonjs/support/ComnyxSupport.js.map +1 -0
  72. package/lib/commonjs/support/index.js +13 -0
  73. package/lib/commonjs/support/index.js.map +1 -0
  74. package/lib/commonjs/utils/scalingUtils.js +1 -1
  75. package/lib/module/NativeComnyx.js +5 -0
  76. package/lib/module/NativeComnyx.js.map +1 -0
  77. package/lib/module/api/api.js +11 -4
  78. package/lib/module/api/api.js.map +1 -1
  79. package/lib/module/api/customers.js +3 -7
  80. package/lib/module/api/customers.js.map +1 -1
  81. package/lib/module/api/index.js +1 -1
  82. package/lib/module/api/index.js.map +1 -1
  83. package/lib/module/components/AppText.js +1 -1
  84. package/lib/module/components/AppText.js.map +1 -1
  85. package/lib/module/components/ChatList.js +1 -1
  86. package/lib/module/components/ChatList.js.map +1 -1
  87. package/lib/module/components/CustomerForm.js +2 -4
  88. package/lib/module/components/CustomerForm.js.map +1 -1
  89. package/lib/module/components/MessageInput.js +1 -1
  90. package/lib/module/components/MessageInput.js.map +1 -1
  91. package/lib/module/constants/viewabilityConfig.js.map +1 -0
  92. package/lib/module/hooks/isRtl.js +1 -1
  93. package/lib/module/hooks/isRtl.js.map +1 -1
  94. package/lib/module/hooks/useLocalize.js +1 -1
  95. package/lib/module/hooks/useLocalize.js.map +1 -1
  96. package/lib/module/hooks/usePolling.js +1 -1
  97. package/lib/module/hooks/usePolling.js.map +1 -1
  98. package/lib/module/hooks/useTheme.js +1 -1
  99. package/lib/module/hooks/useTheme.js.map +1 -1
  100. package/lib/module/index.js +8 -5
  101. package/lib/module/index.js.map +1 -1
  102. package/lib/module/notifications/index.js +19 -0
  103. package/lib/module/notifications/index.js.map +1 -0
  104. package/lib/module/{Accumulator.js → register/Accumulator.js} +7 -1
  105. package/lib/module/register/Accumulator.js.map +1 -0
  106. package/lib/module/{collectData.js → register/collectData.js} +2 -0
  107. package/lib/module/register/collectData.js.map +1 -0
  108. package/lib/module/register/index.js +13 -0
  109. package/lib/module/register/index.js.map +1 -0
  110. package/lib/module/register/init.js +10 -0
  111. package/lib/module/register/init.js.map +1 -0
  112. package/lib/module/register/login.js +20 -0
  113. package/lib/module/register/login.js.map +1 -0
  114. package/lib/module/register/logout.js +16 -0
  115. package/lib/module/register/logout.js.map +1 -0
  116. package/lib/module/{store.js → store/store.js} +2 -2
  117. package/lib/module/store/store.js.map +1 -0
  118. package/lib/module/{App.js → support/ComnyxSupport.js} +40 -15
  119. package/lib/module/support/ComnyxSupport.js.map +1 -0
  120. package/lib/module/support/index.js +4 -0
  121. package/lib/module/support/index.js.map +1 -0
  122. package/lib/module/utils/scalingUtils.js +1 -1
  123. package/lib/module/utils/scalingUtils.js.map +1 -1
  124. package/lib/typescript/jest.config.d.ts +4 -0
  125. package/lib/typescript/jest.config.d.ts.map +1 -0
  126. package/lib/typescript/setup-jest.d.ts +1 -0
  127. package/lib/typescript/setup-jest.d.ts.map +1 -0
  128. package/lib/typescript/src/NativeComnyx.d.ts +7 -0
  129. package/lib/typescript/src/NativeComnyx.d.ts.map +1 -0
  130. package/lib/typescript/src/api/api.d.ts +7 -0
  131. package/lib/typescript/src/api/api.d.ts.map +1 -0
  132. package/lib/typescript/src/api/conversations.d.ts.map +1 -0
  133. package/lib/typescript/src/api/customers.d.ts +5 -0
  134. package/lib/typescript/src/api/customers.d.ts.map +1 -0
  135. package/lib/typescript/{commonjs/src → src}/api/index.d.ts +1 -1
  136. package/lib/typescript/src/api/index.d.ts.map +1 -0
  137. package/lib/typescript/src/api/messages.d.ts.map +1 -0
  138. package/lib/typescript/src/components/AppText.d.ts.map +1 -0
  139. package/lib/typescript/src/components/ChatList.d.ts.map +1 -0
  140. package/lib/typescript/src/components/CustomAlert.d.ts.map +1 -0
  141. package/lib/typescript/src/components/CustomerForm.d.ts.map +1 -0
  142. package/lib/typescript/src/components/EmptyList.d.ts.map +1 -0
  143. package/lib/typescript/src/components/InitFailed.d.ts.map +1 -0
  144. package/lib/typescript/src/components/MessageInput.d.ts.map +1 -0
  145. package/lib/typescript/src/components/MessageItem.d.ts.map +1 -0
  146. package/lib/typescript/src/components/ScaledSheet.d.ts.map +1 -0
  147. package/lib/typescript/src/constants/activeOpacity.d.ts.map +1 -0
  148. package/lib/typescript/src/constants/countries.d.ts.map +1 -0
  149. package/lib/typescript/src/constants/rtl.d.ts.map +1 -0
  150. package/lib/typescript/src/constants/translations.d.ts.map +1 -0
  151. package/lib/typescript/src/constants/viewabilityConfig.d.ts.map +1 -0
  152. package/lib/typescript/src/data/fake/conversations.d.ts.map +1 -0
  153. package/lib/typescript/src/data/fake/customers.d.ts.map +1 -0
  154. package/lib/typescript/src/data/fake/messages.d.ts.map +1 -0
  155. package/lib/typescript/src/hooks/isRtl.d.ts.map +1 -0
  156. package/lib/typescript/src/hooks/useLocalize.d.ts.map +1 -0
  157. package/lib/typescript/src/hooks/usePolling.d.ts.map +1 -0
  158. package/lib/typescript/src/hooks/useTheme.d.ts.map +1 -0
  159. package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
  160. package/lib/typescript/src/index.d.ts +5 -0
  161. package/lib/typescript/src/index.d.ts.map +1 -0
  162. package/lib/typescript/src/notifications/index.d.ts +21 -0
  163. package/lib/typescript/src/notifications/index.d.ts.map +1 -0
  164. package/lib/typescript/{commonjs/src → src/register}/Accumulator.d.ts +4 -3
  165. package/lib/typescript/src/register/Accumulator.d.ts.map +1 -0
  166. package/lib/typescript/src/register/collectData.d.ts.map +1 -0
  167. package/lib/typescript/src/register/index.d.ts +11 -0
  168. package/lib/typescript/src/register/index.d.ts.map +1 -0
  169. package/lib/typescript/src/register/init.d.ts +6 -0
  170. package/lib/typescript/src/register/init.d.ts.map +1 -0
  171. package/lib/typescript/src/register/login.d.ts +6 -0
  172. package/lib/typescript/src/register/login.d.ts.map +1 -0
  173. package/lib/typescript/src/register/logout.d.ts +2 -0
  174. package/lib/typescript/src/register/logout.d.ts.map +1 -0
  175. package/lib/typescript/{module/src → src/store}/store.d.ts +6 -4
  176. package/lib/typescript/src/store/store.d.ts.map +1 -0
  177. package/lib/typescript/src/support/ComnyxSupport.d.ts +12 -0
  178. package/lib/typescript/src/support/ComnyxSupport.d.ts.map +1 -0
  179. package/lib/typescript/src/support/index.d.ts +2 -0
  180. package/lib/typescript/src/support/index.d.ts.map +1 -0
  181. package/lib/typescript/src/types/ApiOptions.d.ts.map +1 -0
  182. package/lib/typescript/src/types/Conversation.d.ts.map +1 -0
  183. package/lib/typescript/src/types/Customer.d.ts.map +1 -0
  184. package/lib/typescript/src/types/GlobalTheme.d.ts.map +1 -0
  185. package/lib/typescript/src/types/Language.d.ts.map +1 -0
  186. package/lib/typescript/src/types/LocalizationKeys.d.ts.map +1 -0
  187. package/lib/typescript/src/types/MessageResponse.d.ts.map +1 -0
  188. package/lib/typescript/src/types/Theme.d.ts.map +1 -0
  189. package/lib/typescript/src/utils/date.d.ts.map +1 -0
  190. package/lib/typescript/src/utils/deepMap.d.ts.map +1 -0
  191. package/lib/typescript/src/utils/formatDate.d.ts.map +1 -0
  192. package/lib/typescript/src/utils/scalingUtils.d.ts.map +1 -0
  193. package/package.json +13 -27
  194. package/src/NativeComnyx.ts +6 -5
  195. package/src/api/api.ts +14 -4
  196. package/src/api/customers.ts +3 -8
  197. package/src/api/index.ts +1 -1
  198. package/src/components/AppText.tsx +1 -1
  199. package/src/components/ChatList.tsx +1 -1
  200. package/src/components/CustomerForm.tsx +2 -3
  201. package/src/components/MessageInput.tsx +1 -1
  202. package/src/hooks/isRtl.ts +1 -1
  203. package/src/hooks/useLocalize.ts +1 -1
  204. package/src/hooks/usePolling.ts +1 -1
  205. package/src/hooks/useTheme.ts +1 -1
  206. package/src/index.ts +8 -0
  207. package/src/notifications/index.ts +49 -0
  208. package/src/{Accumulator.ts → register/Accumulator.ts} +10 -2
  209. package/src/{collectData.ts → register/collectData.ts} +1 -0
  210. package/src/register/index.ts +11 -0
  211. package/src/register/init.ts +16 -0
  212. package/src/register/login.ts +23 -0
  213. package/src/register/logout.ts +14 -0
  214. package/src/{store.ts → store/store.ts} +7 -7
  215. package/src/{App.tsx → support/ComnyxSupport.tsx} +41 -14
  216. package/src/support/index.ts +1 -0
  217. package/src/utils/scalingUtils.ts +1 -1
  218. package/android/generated/java/com/comnyx/NativeComnyxSpec.java +0 -37
  219. package/ios/Comnyx.h +0 -6
  220. package/ios/Comnyx.mm +0 -18
  221. package/ios/generated/RNComnyxSpec/RNComnyxSpec-generated.mm +0 -39
  222. package/ios/generated/RNComnyxSpec/RNComnyxSpec.h +0 -63
  223. package/ios/generated/RNComnyxSpecJSI-generated.cpp +0 -28
  224. package/ios/generated/RNComnyxSpecJSI.h +0 -71
  225. package/lib/commonjs/Accumulator.js.map +0 -1
  226. package/lib/commonjs/App.js.map +0 -1
  227. package/lib/commonjs/NativeComnyx.ts +0 -8
  228. package/lib/commonjs/__dev__.js +0 -29
  229. package/lib/commonjs/__dev__.js.map +0 -1
  230. package/lib/commonjs/collectData.js.map +0 -1
  231. package/lib/commonjs/components/SizeMatter.js +0 -27
  232. package/lib/commonjs/components/SizeMatter.js.map +0 -1
  233. package/lib/commonjs/package.json +0 -1
  234. package/lib/commonjs/register.js +0 -26
  235. package/lib/commonjs/register.js.map +0 -1
  236. package/lib/commonjs/store.js.map +0 -1
  237. package/lib/commonjs/viewabilityConfig.js.map +0 -1
  238. package/lib/module/Accumulator.js.map +0 -1
  239. package/lib/module/App.js.map +0 -1
  240. package/lib/module/NativeComnyx.ts +0 -8
  241. package/lib/module/__dev__.js +0 -29
  242. package/lib/module/__dev__.js.map +0 -1
  243. package/lib/module/collectData.js.map +0 -1
  244. package/lib/module/components/SizeMatter.js +0 -23
  245. package/lib/module/components/SizeMatter.js.map +0 -1
  246. package/lib/module/package.json +0 -1
  247. package/lib/module/register.js +0 -22
  248. package/lib/module/register.js.map +0 -1
  249. package/lib/module/store.js.map +0 -1
  250. package/lib/module/viewabilityConfig.js.map +0 -1
  251. package/lib/typescript/commonjs/package.json +0 -1
  252. package/lib/typescript/commonjs/src/Accumulator.d.ts.map +0 -1
  253. package/lib/typescript/commonjs/src/App.d.ts +0 -12
  254. package/lib/typescript/commonjs/src/App.d.ts.map +0 -1
  255. package/lib/typescript/commonjs/src/NativeComnyx.d.ts +0 -7
  256. package/lib/typescript/commonjs/src/NativeComnyx.d.ts.map +0 -1
  257. package/lib/typescript/commonjs/src/__dev__.d.ts +0 -2
  258. package/lib/typescript/commonjs/src/__dev__.d.ts.map +0 -1
  259. package/lib/typescript/commonjs/src/api/api.d.ts +0 -4
  260. package/lib/typescript/commonjs/src/api/api.d.ts.map +0 -1
  261. package/lib/typescript/commonjs/src/api/conversations.d.ts.map +0 -1
  262. package/lib/typescript/commonjs/src/api/customers.d.ts +0 -6
  263. package/lib/typescript/commonjs/src/api/customers.d.ts.map +0 -1
  264. package/lib/typescript/commonjs/src/api/index.d.ts.map +0 -1
  265. package/lib/typescript/commonjs/src/api/messages.d.ts.map +0 -1
  266. package/lib/typescript/commonjs/src/collectData.d.ts.map +0 -1
  267. package/lib/typescript/commonjs/src/components/AppText.d.ts.map +0 -1
  268. package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +0 -1
  269. package/lib/typescript/commonjs/src/components/CustomAlert.d.ts.map +0 -1
  270. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +0 -1
  271. package/lib/typescript/commonjs/src/components/EmptyList.d.ts.map +0 -1
  272. package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +0 -1
  273. package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +0 -1
  274. package/lib/typescript/commonjs/src/components/MessageItem.d.ts.map +0 -1
  275. package/lib/typescript/commonjs/src/components/ScaledSheet.d.ts.map +0 -1
  276. package/lib/typescript/commonjs/src/components/SizeMatter.d.ts +0 -7
  277. package/lib/typescript/commonjs/src/components/SizeMatter.d.ts.map +0 -1
  278. package/lib/typescript/commonjs/src/constants/activeOpacity.d.ts.map +0 -1
  279. package/lib/typescript/commonjs/src/constants/countries.d.ts.map +0 -1
  280. package/lib/typescript/commonjs/src/constants/rtl.d.ts.map +0 -1
  281. package/lib/typescript/commonjs/src/constants/translations.d.ts.map +0 -1
  282. package/lib/typescript/commonjs/src/data/fake/conversations.d.ts.map +0 -1
  283. package/lib/typescript/commonjs/src/data/fake/customers.d.ts.map +0 -1
  284. package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +0 -1
  285. package/lib/typescript/commonjs/src/hooks/isRtl.d.ts.map +0 -1
  286. package/lib/typescript/commonjs/src/hooks/useLocalize.d.ts.map +0 -1
  287. package/lib/typescript/commonjs/src/hooks/usePolling.d.ts.map +0 -1
  288. package/lib/typescript/commonjs/src/hooks/useTheme.d.ts.map +0 -1
  289. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +0 -1
  290. package/lib/typescript/commonjs/src/index.d.ts +0 -7
  291. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  292. package/lib/typescript/commonjs/src/register.d.ts +0 -6
  293. package/lib/typescript/commonjs/src/register.d.ts.map +0 -1
  294. package/lib/typescript/commonjs/src/store.d.ts +0 -40
  295. package/lib/typescript/commonjs/src/store.d.ts.map +0 -1
  296. package/lib/typescript/commonjs/src/types/ApiOptions.d.ts.map +0 -1
  297. package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +0 -1
  298. package/lib/typescript/commonjs/src/types/Customer.d.ts.map +0 -1
  299. package/lib/typescript/commonjs/src/types/GlobalTheme.d.ts.map +0 -1
  300. package/lib/typescript/commonjs/src/types/Language.d.ts.map +0 -1
  301. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +0 -1
  302. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +0 -1
  303. package/lib/typescript/commonjs/src/types/Theme.d.ts.map +0 -1
  304. package/lib/typescript/commonjs/src/utils/date.d.ts.map +0 -1
  305. package/lib/typescript/commonjs/src/utils/deepMap.d.ts.map +0 -1
  306. package/lib/typescript/commonjs/src/utils/formatDate.d.ts.map +0 -1
  307. package/lib/typescript/commonjs/src/utils/scalingUtils.d.ts.map +0 -1
  308. package/lib/typescript/commonjs/src/viewabilityConfig.d.ts.map +0 -1
  309. package/lib/typescript/module/package.json +0 -1
  310. package/lib/typescript/module/src/Accumulator.d.ts +0 -18
  311. package/lib/typescript/module/src/Accumulator.d.ts.map +0 -1
  312. package/lib/typescript/module/src/App.d.ts +0 -12
  313. package/lib/typescript/module/src/App.d.ts.map +0 -1
  314. package/lib/typescript/module/src/NativeComnyx.d.ts +0 -7
  315. package/lib/typescript/module/src/NativeComnyx.d.ts.map +0 -1
  316. package/lib/typescript/module/src/__dev__.d.ts +0 -2
  317. package/lib/typescript/module/src/__dev__.d.ts.map +0 -1
  318. package/lib/typescript/module/src/api/api.d.ts +0 -4
  319. package/lib/typescript/module/src/api/api.d.ts.map +0 -1
  320. package/lib/typescript/module/src/api/conversations.d.ts +0 -7
  321. package/lib/typescript/module/src/api/conversations.d.ts.map +0 -1
  322. package/lib/typescript/module/src/api/customers.d.ts +0 -6
  323. package/lib/typescript/module/src/api/customers.d.ts.map +0 -1
  324. package/lib/typescript/module/src/api/index.d.ts +0 -4
  325. package/lib/typescript/module/src/api/index.d.ts.map +0 -1
  326. package/lib/typescript/module/src/api/messages.d.ts +0 -4
  327. package/lib/typescript/module/src/api/messages.d.ts.map +0 -1
  328. package/lib/typescript/module/src/collectData.d.ts +0 -3
  329. package/lib/typescript/module/src/collectData.d.ts.map +0 -1
  330. package/lib/typescript/module/src/components/AppText.d.ts +0 -14
  331. package/lib/typescript/module/src/components/AppText.d.ts.map +0 -1
  332. package/lib/typescript/module/src/components/ChatList.d.ts +0 -4
  333. package/lib/typescript/module/src/components/ChatList.d.ts.map +0 -1
  334. package/lib/typescript/module/src/components/CustomAlert.d.ts +0 -15
  335. package/lib/typescript/module/src/components/CustomAlert.d.ts.map +0 -1
  336. package/lib/typescript/module/src/components/CustomerForm.d.ts +0 -4
  337. package/lib/typescript/module/src/components/CustomerForm.d.ts.map +0 -1
  338. package/lib/typescript/module/src/components/EmptyList.d.ts +0 -2
  339. package/lib/typescript/module/src/components/EmptyList.d.ts.map +0 -1
  340. package/lib/typescript/module/src/components/InitFailed.d.ts +0 -6
  341. package/lib/typescript/module/src/components/InitFailed.d.ts.map +0 -1
  342. package/lib/typescript/module/src/components/MessageInput.d.ts +0 -5
  343. package/lib/typescript/module/src/components/MessageInput.d.ts.map +0 -1
  344. package/lib/typescript/module/src/components/MessageItem.d.ts +0 -6
  345. package/lib/typescript/module/src/components/MessageItem.d.ts.map +0 -1
  346. package/lib/typescript/module/src/components/ScaledSheet.d.ts +0 -2
  347. package/lib/typescript/module/src/components/ScaledSheet.d.ts.map +0 -1
  348. package/lib/typescript/module/src/components/SizeMatter.d.ts +0 -7
  349. package/lib/typescript/module/src/components/SizeMatter.d.ts.map +0 -1
  350. package/lib/typescript/module/src/constants/activeOpacity.d.ts +0 -2
  351. package/lib/typescript/module/src/constants/activeOpacity.d.ts.map +0 -1
  352. package/lib/typescript/module/src/constants/countries.d.ts +0 -7
  353. package/lib/typescript/module/src/constants/countries.d.ts.map +0 -1
  354. package/lib/typescript/module/src/constants/rtl.d.ts +0 -2
  355. package/lib/typescript/module/src/constants/rtl.d.ts.map +0 -1
  356. package/lib/typescript/module/src/constants/translations.d.ts +0 -4
  357. package/lib/typescript/module/src/constants/translations.d.ts.map +0 -1
  358. package/lib/typescript/module/src/data/fake/conversations.d.ts +0 -5
  359. package/lib/typescript/module/src/data/fake/conversations.d.ts.map +0 -1
  360. package/lib/typescript/module/src/data/fake/customers.d.ts +0 -3
  361. package/lib/typescript/module/src/data/fake/customers.d.ts.map +0 -1
  362. package/lib/typescript/module/src/data/fake/messages.d.ts +0 -3
  363. package/lib/typescript/module/src/data/fake/messages.d.ts.map +0 -1
  364. package/lib/typescript/module/src/hooks/isRtl.d.ts +0 -2
  365. package/lib/typescript/module/src/hooks/isRtl.d.ts.map +0 -1
  366. package/lib/typescript/module/src/hooks/useLocalize.d.ts +0 -3
  367. package/lib/typescript/module/src/hooks/useLocalize.d.ts.map +0 -1
  368. package/lib/typescript/module/src/hooks/usePolling.d.ts +0 -2
  369. package/lib/typescript/module/src/hooks/usePolling.d.ts.map +0 -1
  370. package/lib/typescript/module/src/hooks/useTheme.d.ts +0 -3
  371. package/lib/typescript/module/src/hooks/useTheme.d.ts.map +0 -1
  372. package/lib/typescript/module/src/hooks/useThemeColors.d.ts +0 -3
  373. package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +0 -1
  374. package/lib/typescript/module/src/index.d.ts +0 -7
  375. package/lib/typescript/module/src/index.d.ts.map +0 -1
  376. package/lib/typescript/module/src/register.d.ts +0 -6
  377. package/lib/typescript/module/src/register.d.ts.map +0 -1
  378. package/lib/typescript/module/src/store.d.ts.map +0 -1
  379. package/lib/typescript/module/src/types/ApiOptions.d.ts +0 -4
  380. package/lib/typescript/module/src/types/ApiOptions.d.ts.map +0 -1
  381. package/lib/typescript/module/src/types/Conversation.d.ts +0 -33
  382. package/lib/typescript/module/src/types/Conversation.d.ts.map +0 -1
  383. package/lib/typescript/module/src/types/Customer.d.ts +0 -39
  384. package/lib/typescript/module/src/types/Customer.d.ts.map +0 -1
  385. package/lib/typescript/module/src/types/GlobalTheme.d.ts +0 -6
  386. package/lib/typescript/module/src/types/GlobalTheme.d.ts.map +0 -1
  387. package/lib/typescript/module/src/types/Language.d.ts +0 -2
  388. package/lib/typescript/module/src/types/Language.d.ts.map +0 -1
  389. package/lib/typescript/module/src/types/LocalizationKeys.d.ts +0 -43
  390. package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +0 -1
  391. package/lib/typescript/module/src/types/MessageResponse.d.ts +0 -61
  392. package/lib/typescript/module/src/types/MessageResponse.d.ts.map +0 -1
  393. package/lib/typescript/module/src/types/Theme.d.ts +0 -28
  394. package/lib/typescript/module/src/types/Theme.d.ts.map +0 -1
  395. package/lib/typescript/module/src/utils/date.d.ts +0 -7
  396. package/lib/typescript/module/src/utils/date.d.ts.map +0 -1
  397. package/lib/typescript/module/src/utils/deepMap.d.ts +0 -7
  398. package/lib/typescript/module/src/utils/deepMap.d.ts.map +0 -1
  399. package/lib/typescript/module/src/utils/formatDate.d.ts +0 -2
  400. package/lib/typescript/module/src/utils/formatDate.d.ts.map +0 -1
  401. package/lib/typescript/module/src/utils/scalingUtils.d.ts +0 -10
  402. package/lib/typescript/module/src/utils/scalingUtils.d.ts.map +0 -1
  403. package/lib/typescript/module/src/viewabilityConfig.d.ts +0 -5
  404. package/lib/typescript/module/src/viewabilityConfig.d.ts.map +0 -1
  405. package/src/__dev__.ts +0 -22
  406. package/src/components/SizeMatter.tsx +0 -22
  407. package/src/index.tsx +0 -9
  408. package/src/register.ts +0 -34
  409. /package/lib/commonjs/{viewabilityConfig.js → constants/viewabilityConfig.js} +0 -0
  410. /package/lib/module/{viewabilityConfig.js → constants/viewabilityConfig.js} +0 -0
  411. /package/lib/typescript/{commonjs/src → src}/api/conversations.d.ts +0 -0
  412. /package/lib/typescript/{commonjs/src → src}/api/messages.d.ts +0 -0
  413. /package/lib/typescript/{commonjs/src → src}/components/AppText.d.ts +0 -0
  414. /package/lib/typescript/{commonjs/src → src}/components/ChatList.d.ts +0 -0
  415. /package/lib/typescript/{commonjs/src → src}/components/CustomAlert.d.ts +0 -0
  416. /package/lib/typescript/{commonjs/src → src}/components/CustomerForm.d.ts +0 -0
  417. /package/lib/typescript/{commonjs/src → src}/components/EmptyList.d.ts +0 -0
  418. /package/lib/typescript/{commonjs/src → src}/components/InitFailed.d.ts +0 -0
  419. /package/lib/typescript/{commonjs/src → src}/components/MessageInput.d.ts +0 -0
  420. /package/lib/typescript/{commonjs/src → src}/components/MessageItem.d.ts +0 -0
  421. /package/lib/typescript/{commonjs/src → src}/components/ScaledSheet.d.ts +0 -0
  422. /package/lib/typescript/{commonjs/src → src}/constants/activeOpacity.d.ts +0 -0
  423. /package/lib/typescript/{commonjs/src → src}/constants/countries.d.ts +0 -0
  424. /package/lib/typescript/{commonjs/src → src}/constants/rtl.d.ts +0 -0
  425. /package/lib/typescript/{commonjs/src → src}/constants/translations.d.ts +0 -0
  426. /package/lib/typescript/{commonjs/src → src/constants}/viewabilityConfig.d.ts +0 -0
  427. /package/lib/typescript/{commonjs/src → src}/data/fake/conversations.d.ts +0 -0
  428. /package/lib/typescript/{commonjs/src → src}/data/fake/customers.d.ts +0 -0
  429. /package/lib/typescript/{commonjs/src → src}/data/fake/messages.d.ts +0 -0
  430. /package/lib/typescript/{commonjs/src → src}/hooks/isRtl.d.ts +0 -0
  431. /package/lib/typescript/{commonjs/src → src}/hooks/useLocalize.d.ts +0 -0
  432. /package/lib/typescript/{commonjs/src → src}/hooks/usePolling.d.ts +0 -0
  433. /package/lib/typescript/{commonjs/src → src}/hooks/useTheme.d.ts +0 -0
  434. /package/lib/typescript/{commonjs/src → src}/hooks/useThemeColors.d.ts +0 -0
  435. /package/lib/typescript/{commonjs/src → src/register}/collectData.d.ts +0 -0
  436. /package/lib/typescript/{commonjs/src → src}/types/ApiOptions.d.ts +0 -0
  437. /package/lib/typescript/{commonjs/src → src}/types/Conversation.d.ts +0 -0
  438. /package/lib/typescript/{commonjs/src → src}/types/Customer.d.ts +0 -0
  439. /package/lib/typescript/{commonjs/src → src}/types/GlobalTheme.d.ts +0 -0
  440. /package/lib/typescript/{commonjs/src → src}/types/Language.d.ts +0 -0
  441. /package/lib/typescript/{commonjs/src → src}/types/LocalizationKeys.d.ts +0 -0
  442. /package/lib/typescript/{commonjs/src → src}/types/MessageResponse.d.ts +0 -0
  443. /package/lib/typescript/{commonjs/src → src}/types/Theme.d.ts +0 -0
  444. /package/lib/typescript/{commonjs/src → src}/utils/date.d.ts +0 -0
  445. /package/lib/typescript/{commonjs/src → src}/utils/deepMap.d.ts +0 -0
  446. /package/lib/typescript/{commonjs/src → src}/utils/formatDate.d.ts +0 -0
  447. /package/lib/typescript/{commonjs/src → src}/utils/scalingUtils.d.ts +0 -0
  448. /package/src/{viewabilityConfig.ts → constants/viewabilityConfig.ts} +0 -0
@@ -1,6 +0,0 @@
1
- export declare function registerComnyx(registerOptions: {
2
- externalId: string;
3
- token: string;
4
- baseURL: string;
5
- }): void;
6
- //# sourceMappingURL=register.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/register.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,eAAe,EAAE;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,QAuBA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/store.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC5C,OAAO,EAAE,CACP,EAAE,EAAE,CACF,QAAQ,EAAE,sBAAsB,EAAE,GAAG,IAAI,KACtC,sBAAsB,EAAE,GAAG,IAAI,KACjC,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,sBAAsB,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxD,WAAW,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,oBAAoB,EAAE,CAAC,MAAM,EAAE;QAC7B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,IAAI,CAAC;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACnC;AA+CD,eAAO,MAAM,WAAW;;;;;;;;;;EAWvB,CAAC"}
@@ -1,4 +0,0 @@
1
- export interface ApiOptions {
2
- fake: boolean;
3
- }
4
- //# sourceMappingURL=ApiOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiOptions.d.ts","sourceRoot":"","sources":["../../../../../src/types/ApiOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IAEzB,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -1,33 +0,0 @@
1
- export interface ConversationMessage {
2
- id: number;
3
- content: string;
4
- created_at: string;
5
- user?: any | null;
6
- bot?: any | null;
7
- customer?: {
8
- name: string;
9
- profile_photo_url: null;
10
- } | null;
11
- }
12
- export interface AppConversationMessage extends Omit<ConversationMessage, 'id' | 'created_at'> {
13
- id: number | null;
14
- approved?: boolean;
15
- created_at: Date;
16
- error?: boolean;
17
- resending?: boolean;
18
- }
19
- export interface ConversationPage {
20
- current_page: number;
21
- data: ConversationMessage[];
22
- first_page_url: string;
23
- from: number;
24
- next_page_url: string | null;
25
- path: string;
26
- per_page: number;
27
- prev_page_url: string | null;
28
- to: number;
29
- }
30
- export interface ConversationResponse {
31
- page: ConversationPage;
32
- }
33
- //# sourceMappingURL=Conversation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Conversation.d.ts","sourceRoot":"","sources":["../../../../../src/types/Conversation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,YAAY,CAAC;IACtD,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,gBAAgB,CAAC;CACxB"}
@@ -1,39 +0,0 @@
1
- export interface CustomParameter {
2
- name: string;
3
- value: string;
4
- }
5
- export interface OneSignalIntegrationParameters {
6
- external_id: string;
7
- }
8
- export interface IntegrationParameters {
9
- onesignal?: OneSignalIntegrationParameters;
10
- }
11
- export interface CreateCustomerRequest {
12
- name?: string;
13
- country?: string;
14
- language?: string;
15
- email?: string;
16
- phone?: string;
17
- ipAddress?: string;
18
- customParameters?: CustomParameter[];
19
- integrationParameters?: IntegrationParameters;
20
- }
21
- export interface Customer {
22
- id: number;
23
- project_id: number;
24
- external_id: string;
25
- name: string;
26
- device: null | string;
27
- country: string;
28
- language: string;
29
- email: string;
30
- phone: string;
31
- ip_address: string;
32
- custom_parameters: string;
33
- user_code: string;
34
- created_at: string;
35
- updated_at: string;
36
- deleted_at: null | string;
37
- integration_parameters: IntegrationParameters;
38
- }
39
- //# sourceMappingURL=Customer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../../../src/types/Customer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,8BAA8B,CAAC;CAC5C;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,sBAAsB,EAAE,qBAAqB,CAAC;CAC/C"}
@@ -1,6 +0,0 @@
1
- import type { FamilyWeight } from '../components/AppText';
2
- export type ExtendedBaseTheme = {
3
- family?: (code: string) => Partial<FamilyWeight>;
4
- };
5
- export type GlobalTheme = ExtendedBaseTheme;
6
- //# sourceMappingURL=GlobalTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalTheme.d.ts","sourceRoot":"","sources":["../../../../../src/types/GlobalTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- export type LanguageCode = 'en' | 'tr' | 'ar' | 'fr' | 'pt' | 'id' | 'ru' | 'vi' | 'es' | 'de' | 'zh' | 'sv' | 'ko' | 'it' | 'hi' | 'nl' | 'he' | 'uk' | 'hu' | 'ro' | 'ja' | 'ms' | 'az' | 'hr' | 'kk' | 'af' | 'yo' | 'da' | 'pl';
2
- //# sourceMappingURL=Language.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Language.d.ts","sourceRoot":"","sources":["../../../../../src/types/Language.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC"}
@@ -1,43 +0,0 @@
1
- export type LocalizationKeys = {
2
- 'customer.form.title': string;
3
- 'customer.form.email': string;
4
- 'customer.form.phone': string;
5
- 'customer.form.country': string;
6
- 'customer.form.submit': string;
7
- 'customer.form.error': string;
8
- 'customer.form.instructions': string;
9
- 'customer.form.error.country': string;
10
- 'customer.form.error.email': string;
11
- 'customer.form.error.phone': string;
12
- 'customer.form.placeholder.name': string;
13
- 'customer.form.placeholder.country': string;
14
- 'customer.form.placeholder.email': string;
15
- 'customer.form.placeholder.phone': string;
16
- 'customer.form.validation.email.pattern': string;
17
- 'customer.form.validation.phone.invalid': string;
18
- 'customer.form.validation.country.maxLength': string;
19
- 'customer.form.validation.name.maxLength': string;
20
- 'customer.form.validation.name.required': string;
21
- 'chat.messageInput.placeholder': string;
22
- 'app.initialization.required': string;
23
- 'chat.load.error': string;
24
- 'chat.init.error': string;
25
- 'chat.empty': string;
26
- 'chat.empty.title': string;
27
- 'chat.empty.description': string;
28
- 'chat.live': string;
29
- 'chat.support-team': string;
30
- 'customer.form.resend': string;
31
- 'chat.list-failed-message.title': string;
32
- 'chat.list-failed-message.description': string;
33
- 'chat.list-cancel': string;
34
- 'customer.form.failed.name': string;
35
- 'customer.form.failed.name.desc': string;
36
- 'customer.form.failed.email': string;
37
- 'customer.form.failed.email.desc': string;
38
- 'customer.form.failed.phone': string;
39
- 'customer.form.failed.phone.desc': string;
40
- 'customer.form.name': string;
41
- 'customer.form.cancel': string;
42
- };
43
- //# sourceMappingURL=LocalizationKeys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalizationKeys.d.ts","sourceRoot":"","sources":["../../../../../src/types/LocalizationKeys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,4BAA4B,EAAE,MAAM,CAAC;IACrC,6BAA6B,EAAE,MAAM,CAAC;IACtC,2BAA2B,EAAE,MAAM,CAAC;IACpC,2BAA2B,EAAE,MAAM,CAAC;IACpC,gCAAgC,EAAE,MAAM,CAAC;IACzC,mCAAmC,EAAE,MAAM,CAAC;IAC5C,iCAAiC,EAAE,MAAM,CAAC;IAC1C,iCAAiC,EAAE,MAAM,CAAC;IAC1C,wCAAwC,EAAE,MAAM,CAAC;IACjD,wCAAwC,EAAE,MAAM,CAAC;IACjD,4CAA4C,EAAE,MAAM,CAAC;IACrD,yCAAyC,EAAE,MAAM,CAAC;IAClD,wCAAwC,EAAE,MAAM,CAAC;IACjD,+BAA+B,EAAE,MAAM,CAAC;IACxC,6BAA6B,EAAE,MAAM,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gCAAgC,EAAE,MAAM,CAAC;IACzC,sCAAsC,EAAE,MAAM,CAAC;IAC/C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2BAA2B,EAAE,MAAM,CAAC;IACpC,gCAAgC,EAAE,MAAM,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iCAAiC,EAAE,MAAM,CAAC;IAC1C,4BAA4B,EAAE,MAAM,CAAC;IACrC,iCAAiC,EAAE,MAAM,CAAC;IAC1C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC"}
@@ -1,61 +0,0 @@
1
- export interface MessageResponse {
2
- message: {
3
- conversation_id: number;
4
- content: string;
5
- is_note: boolean;
6
- updated_at: string;
7
- created_at: string;
8
- id: number;
9
- user: null | any;
10
- customer: null | any;
11
- bot: null | any;
12
- conversation: {
13
- id: number;
14
- project_id: number;
15
- customer_id: number;
16
- created_at: string;
17
- updated_at: string;
18
- deleted_at: null | string;
19
- language: string;
20
- use_ai_answers: number;
21
- project: {
22
- id: number;
23
- name: string;
24
- organization_id: number;
25
- created_at: string;
26
- updated_at: string;
27
- deleted_at: null | string;
28
- uuid: string;
29
- organization: {
30
- id: number;
31
- name: string;
32
- created_at: string;
33
- updated_at: string;
34
- deleted_at: null | string;
35
- owner: Array<{
36
- id: number;
37
- name: string;
38
- email: string;
39
- email_verified_at: null | string;
40
- created_at: string;
41
- updated_at: string;
42
- avatar: null | string;
43
- two_factor_secret: null | string;
44
- two_factor_recovery_codes: null | string;
45
- is_bot: boolean;
46
- profile_photo_url: string;
47
- pivot: {
48
- organization_id: number;
49
- user_id: number;
50
- role: string;
51
- created_at: string;
52
- updated_at: string;
53
- };
54
- }>;
55
- };
56
- };
57
- };
58
- events: any[];
59
- };
60
- }
61
- //# sourceMappingURL=MessageResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageResponse.d.ts","sourceRoot":"","sources":["../../../../../src/types/MessageResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,IAAI,GAAG,GAAG,CAAC;QACjB,QAAQ,EAAE,IAAI,GAAG,GAAG,CAAC;QACrB,GAAG,EAAE,IAAI,GAAG,GAAG,CAAC;QAChB,YAAY,EAAE;YACZ,EAAE,EAAE,MAAM,CAAC;YACX,UAAU,EAAE,MAAM,CAAC;YACnB,WAAW,EAAE,MAAM,CAAC;YACpB,UAAU,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,MAAM,CAAC;YACnB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;YAC1B,QAAQ,EAAE,MAAM,CAAC;YACjB,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE;gBACP,EAAE,EAAE,MAAM,CAAC;gBACX,IAAI,EAAE,MAAM,CAAC;gBACb,eAAe,EAAE,MAAM,CAAC;gBACxB,UAAU,EAAE,MAAM,CAAC;gBACnB,UAAU,EAAE,MAAM,CAAC;gBACnB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;gBAC1B,IAAI,EAAE,MAAM,CAAC;gBACb,YAAY,EAAE;oBACZ,EAAE,EAAE,MAAM,CAAC;oBACX,IAAI,EAAE,MAAM,CAAC;oBACb,UAAU,EAAE,MAAM,CAAC;oBACnB,UAAU,EAAE,MAAM,CAAC;oBACnB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;oBAC1B,KAAK,EAAE,KAAK,CAAC;wBACX,EAAE,EAAE,MAAM,CAAC;wBACX,IAAI,EAAE,MAAM,CAAC;wBACb,KAAK,EAAE,MAAM,CAAC;wBACd,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC;wBACjC,UAAU,EAAE,MAAM,CAAC;wBACnB,UAAU,EAAE,MAAM,CAAC;wBACnB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;wBACtB,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC;wBACjC,yBAAyB,EAAE,IAAI,GAAG,MAAM,CAAC;wBACzC,MAAM,EAAE,OAAO,CAAC;wBAChB,iBAAiB,EAAE,MAAM,CAAC;wBAC1B,KAAK,EAAE;4BACL,eAAe,EAAE,MAAM,CAAC;4BACxB,OAAO,EAAE,MAAM,CAAC;4BAChB,IAAI,EAAE,MAAM,CAAC;4BACb,UAAU,EAAE,MAAM,CAAC;4BACnB,UAAU,EAAE,MAAM,CAAC;yBACpB,CAAC;qBACH,CAAC,CAAC;iBACJ,CAAC;aACH,CAAC;SACH,CAAC;QACF,MAAM,EAAE,GAAG,EAAE,CAAC;KACf,CAAC;CACH"}
@@ -1,28 +0,0 @@
1
- export interface ThemeColors {
2
- primary: string;
3
- secondary: string;
4
- background: string;
5
- text: string;
6
- error: string;
7
- success: string;
8
- warning: string;
9
- info: string;
10
- border: string;
11
- light_text: string;
12
- dark_background: string;
13
- gainsboro: string;
14
- slate: string;
15
- green: string;
16
- light_green: string;
17
- ghost: string;
18
- navy: string;
19
- lavender: string;
20
- silver: string;
21
- }
22
- export declare const lightTheme: ThemeColors;
23
- export declare const darkTheme: ThemeColors;
24
- export interface Theme {
25
- light: ThemeColors;
26
- dark: ThemeColors;
27
- }
28
- //# sourceMappingURL=Theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../../../src/types/Theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,WAoBxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAoBvB,CAAC;AAEF,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;CACnB"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Converts a Date object to Unix timestamp (seconds)
3
- * @param date - The Date object to convert
4
- * @returns Unix timestamp in seconds, or undefined if date is undefined
5
- */
6
- export declare const dateToUnixTimestamp: (date: Date | undefined) => number | undefined;
7
- //# sourceMappingURL=date.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,SACxB,IAAI,GAAG,SAAS,KACrB,MAAM,GAAG,SAWX,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Recursively maps through a nested object/array structure
3
- * and applies the mapping function to all non-object values
4
- */
5
- declare const deepMap: <T, R>(obj: T, fn: (value: any) => R) => T extends any[] ? R[] : T extends Record<string, any> ? Record<string, R> : R;
6
- export default deepMap;
7
- //# sourceMappingURL=deepMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deepMap.d.ts","sourceRoot":"","sources":["../../../../../src/utils/deepMap.ts"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,QAAA,MAAM,OAAO,6BAEC,GAAG,wFAkBhB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const formatDate: (language: string, date?: Date | null) => string;
2
- //# sourceMappingURL=formatDate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../../../src/utils/formatDate.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,aAAc,MAAM,SAAS,IAAI,GAAG,IAAI,KAAG,MAYjE,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const s: (size: number) => number;
2
- export declare const vs: (size: number) => number;
3
- export declare const ms: (size: number, factor?: number) => number;
4
- export declare const mvs: (size: number, factor?: number) => number;
5
- export declare const scale: (size: number) => number;
6
- export declare const verticalScale: (size: number) => number;
7
- export declare const fs: (size: number) => number;
8
- export declare const moderateScale: (size: number, factor?: number) => number;
9
- export declare const moderateVerticalScale: (size: number, factor?: number) => number;
10
- //# sourceMappingURL=scalingUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scalingUtils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/scalingUtils.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,CAAC,SAAU,MAAM,WAA6C,CAAC;AAC5E,eAAO,MAAM,EAAE,SAAU,MAAM,WAA6C,CAAC;AAC7E,eAAO,MAAM,EAAE,SAAU,MAAM,4BACO,CAAC;AACvC,eAAO,MAAM,GAAG,SAAU,MAAM,4BACc,CAAC;AAE/C,eAAO,MAAM,KAAK,SAPM,MAAM,WAOR,CAAC;AACvB,eAAO,MAAM,aAAa,SAPD,MAAM,WAOA,CAAC;AAChC,eAAO,MAAM,EAAE,SARU,MAAM,WAQX,CAAC;AACrB,eAAO,MAAM,aAAa,SARD,MAAM,4BAQA,CAAC;AAChC,eAAO,MAAM,qBAAqB,SAPR,MAAM,4BAOQ,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const viewabilityConfig: {
2
- itemVisiblePercentThreshold: number;
3
- minimumViewTime: number;
4
- };
5
- //# sourceMappingURL=viewabilityConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viewabilityConfig.d.ts","sourceRoot":"","sources":["../../../../src/viewabilityConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
package/src/__dev__.ts DELETED
@@ -1,22 +0,0 @@
1
- import { useAppStore } from './store';
2
- import type { LanguageCode } from './types/Language';
3
-
4
- // @ts-ignore
5
- global.clearStorage = async () => {
6
- useAppStore.setState({ data: null });
7
- console.info('Storage cleared');
8
- };
9
-
10
- // @ts-ignore
11
- global.changeLanguage = (language: string) => {
12
- useAppStore.setState({ language: language as LanguageCode });
13
- console.info(`Language changed to: ${language}`);
14
- };
15
-
16
- // @ts-ignore
17
- global.toggleTheme = () => {
18
- const currentTheme = useAppStore.getState().theme;
19
- const newTheme = currentTheme === 'light' ? 'dark' : 'light';
20
- useAppStore.setState({ theme: newTheme });
21
- console.info(`Theme changed to: ${newTheme}`);
22
- };
@@ -1,22 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { useAppStore } from '../store';
3
-
4
- interface ISizeMatter {
5
- baseWidth: number;
6
- baseHeight: number;
7
- }
8
-
9
- export function SizeMatter({ baseWidth = 390, baseHeight = 844 }: ISizeMatter) {
10
- const { updateBaseDimensions } = useAppStore((s) => ({
11
- updateBaseDimensions: s.updateBaseDimensions,
12
- }));
13
-
14
- useEffect(() => {
15
- updateBaseDimensions({
16
- baseWidth,
17
- baseHeight,
18
- });
19
- }, [baseHeight, baseWidth, updateBaseDimensions]);
20
-
21
- return <></>;
22
- }
package/src/index.tsx DELETED
@@ -1,9 +0,0 @@
1
- import './__dev__';
2
- export {
3
- collectData as collectDataForComnyx,
4
- registerOneSignalForComnyx,
5
- } from './collectData';
6
- export { registerComnyx } from './register';
7
- export type { CreateCustomerRequest } from './types/Customer';
8
- export { Comnyx } from './App';
9
- export { SizeMatter } from './components/SizeMatter';
package/src/register.ts DELETED
@@ -1,34 +0,0 @@
1
- import { accumulator } from './Accumulator';
2
- import { initApi } from './api/api';
3
- import { useAppStore } from './store';
4
- import { createCustomer } from './api';
5
- import type { CreateCustomerRequest } from './types/Customer';
6
-
7
- export function registerComnyx(registerOptions: {
8
- externalId: string;
9
- token: string;
10
- baseURL: string;
11
- }) {
12
- if (!registerOptions.externalId) {
13
- throw new Error('External ID is required for initialization');
14
- }
15
- if (!registerOptions.token) {
16
- throw new Error('Authentication token is required');
17
- }
18
-
19
- initApi(
20
- registerOptions.token,
21
- registerOptions.externalId,
22
- registerOptions.baseURL
23
- );
24
- accumulator.register(async (accumulatedData: CreateCustomerRequest) => {
25
- const data = await createCustomer(
26
- accumulatedData,
27
- {
28
- fake: false,
29
- },
30
- registerOptions.externalId
31
- );
32
- useAppStore.getState().setCustomer(data.customer);
33
- });
34
- }