rn-erxes-sdk 0.1.22 → 0.1.24

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 (233) hide show
  1. package/README.md +40 -2
  2. package/lib/commonjs/App.js +41 -21
  3. package/lib/commonjs/App.js.map +1 -1
  4. package/lib/commonjs/Widget.js +158 -31
  5. package/lib/commonjs/Widget.js.map +1 -1
  6. package/lib/commonjs/components/Avatar.js +24 -27
  7. package/lib/commonjs/components/Avatar.js.map +1 -1
  8. package/lib/commonjs/components/AvatarWithStatus.js +56 -0
  9. package/lib/commonjs/components/AvatarWithStatus.js.map +1 -0
  10. package/lib/commonjs/components/ConversationItem.js +161 -0
  11. package/lib/commonjs/components/ConversationItem.js.map +1 -0
  12. package/lib/commonjs/components/Icons.js +558 -0
  13. package/lib/commonjs/components/Icons.js.map +1 -0
  14. package/lib/commonjs/components/InputTools.js +329 -38
  15. package/lib/commonjs/components/InputTools.js.map +1 -1
  16. package/lib/commonjs/components/MessengerShell.js +64 -0
  17. package/lib/commonjs/components/MessengerShell.js.map +1 -0
  18. package/lib/commonjs/components/conversation/DateSeparator.js +47 -0
  19. package/lib/commonjs/components/conversation/DateSeparator.js.map +1 -0
  20. package/lib/commonjs/components/conversation/EmojiPicker.js +62 -0
  21. package/lib/commonjs/components/conversation/EmojiPicker.js.map +1 -0
  22. package/lib/commonjs/components/conversation/PersistentMenu.js +64 -0
  23. package/lib/commonjs/components/conversation/PersistentMenu.js.map +1 -0
  24. package/lib/commonjs/components/conversation/TypingStatus.js +122 -0
  25. package/lib/commonjs/components/conversation/TypingStatus.js.map +1 -0
  26. package/lib/commonjs/components/conversation/WelcomeMessage.js +85 -0
  27. package/lib/commonjs/components/conversation/WelcomeMessage.js.map +1 -0
  28. package/lib/commonjs/components/nav/Navigation.js +130 -0
  29. package/lib/commonjs/components/nav/Navigation.js.map +1 -0
  30. package/lib/commonjs/components/nav/constants.js +23 -0
  31. package/lib/commonjs/components/nav/constants.js.map +1 -0
  32. package/lib/commonjs/graphql/ApolloContainer.js +1 -2
  33. package/lib/commonjs/graphql/ApolloContainer.js.map +1 -1
  34. package/lib/commonjs/graphql/mutation.js +58 -23
  35. package/lib/commonjs/graphql/mutation.js.map +1 -1
  36. package/lib/commonjs/graphql/query.js +85 -55
  37. package/lib/commonjs/graphql/query.js.map +1 -1
  38. package/lib/commonjs/graphql/subscription.js +32 -28
  39. package/lib/commonjs/graphql/subscription.js.map +1 -1
  40. package/lib/commonjs/screen/conversation/Attachment.js +77 -12
  41. package/lib/commonjs/screen/conversation/Attachment.js.map +1 -1
  42. package/lib/commonjs/screen/conversation/ConversationDetail.js +307 -136
  43. package/lib/commonjs/screen/conversation/ConversationDetail.js.map +1 -1
  44. package/lib/commonjs/screen/conversation/Message.js +145 -82
  45. package/lib/commonjs/screen/conversation/Message.js.map +1 -1
  46. package/lib/commonjs/screen/faq/Faq.js +373 -0
  47. package/lib/commonjs/screen/faq/Faq.js.map +1 -0
  48. package/lib/commonjs/screen/greetings/Social.js +19 -9
  49. package/lib/commonjs/screen/greetings/Social.js.map +1 -1
  50. package/lib/commonjs/screen/greetings/Supporters.js +49 -46
  51. package/lib/commonjs/screen/greetings/Supporters.js.map +1 -1
  52. package/lib/commonjs/screen/home/Home.js +246 -0
  53. package/lib/commonjs/screen/home/Home.js.map +1 -0
  54. package/lib/commonjs/screen/messages/Messages.js +312 -0
  55. package/lib/commonjs/screen/messages/Messages.js.map +1 -0
  56. package/lib/commonjs/theme.js +132 -0
  57. package/lib/commonjs/theme.js.map +1 -0
  58. package/lib/commonjs/utils/messages.js +93 -0
  59. package/lib/commonjs/utils/messages.js.map +1 -0
  60. package/lib/commonjs/utils/onlineHours.js +127 -0
  61. package/lib/commonjs/utils/onlineHours.js.map +1 -0
  62. package/lib/commonjs/utils/upload.js +245 -0
  63. package/lib/commonjs/utils/upload.js.map +1 -0
  64. package/lib/module/App.js +41 -21
  65. package/lib/module/App.js.map +1 -1
  66. package/lib/module/Widget.js +161 -34
  67. package/lib/module/Widget.js.map +1 -1
  68. package/lib/module/components/Avatar.js +25 -28
  69. package/lib/module/components/Avatar.js.map +1 -1
  70. package/lib/module/components/AvatarWithStatus.js +47 -0
  71. package/lib/module/components/AvatarWithStatus.js.map +1 -0
  72. package/lib/module/components/ConversationItem.js +153 -0
  73. package/lib/module/components/ConversationItem.js.map +1 -0
  74. package/lib/module/components/Icons.js +537 -0
  75. package/lib/module/components/Icons.js.map +1 -0
  76. package/lib/module/components/InputTools.js +331 -39
  77. package/lib/module/components/InputTools.js.map +1 -1
  78. package/lib/module/components/MessengerShell.js +55 -0
  79. package/lib/module/components/MessengerShell.js.map +1 -0
  80. package/lib/module/components/conversation/DateSeparator.js +40 -0
  81. package/lib/module/components/conversation/DateSeparator.js.map +1 -0
  82. package/lib/module/components/conversation/EmojiPicker.js +55 -0
  83. package/lib/module/components/conversation/EmojiPicker.js.map +1 -0
  84. package/lib/module/components/conversation/PersistentMenu.js +57 -0
  85. package/lib/module/components/conversation/PersistentMenu.js.map +1 -0
  86. package/lib/module/components/conversation/TypingStatus.js +113 -0
  87. package/lib/module/components/conversation/TypingStatus.js.map +1 -0
  88. package/lib/module/components/conversation/WelcomeMessage.js +76 -0
  89. package/lib/module/components/conversation/WelcomeMessage.js.map +1 -0
  90. package/lib/module/components/nav/Navigation.js +121 -0
  91. package/lib/module/components/nav/Navigation.js.map +1 -0
  92. package/lib/module/components/nav/constants.js +16 -0
  93. package/lib/module/components/nav/constants.js.map +1 -0
  94. package/lib/module/graphql/ApolloContainer.js +1 -2
  95. package/lib/module/graphql/ApolloContainer.js.map +1 -1
  96. package/lib/module/graphql/mutation.js +57 -23
  97. package/lib/module/graphql/mutation.js.map +1 -1
  98. package/lib/module/graphql/query.js +83 -52
  99. package/lib/module/graphql/query.js.map +1 -1
  100. package/lib/module/graphql/subscription.js +31 -28
  101. package/lib/module/graphql/subscription.js.map +1 -1
  102. package/lib/module/screen/conversation/Attachment.js +79 -14
  103. package/lib/module/screen/conversation/Attachment.js.map +1 -1
  104. package/lib/module/screen/conversation/ConversationDetail.js +311 -139
  105. package/lib/module/screen/conversation/ConversationDetail.js.map +1 -1
  106. package/lib/module/screen/conversation/Message.js +145 -82
  107. package/lib/module/screen/conversation/Message.js.map +1 -1
  108. package/lib/module/screen/faq/Faq.js +363 -0
  109. package/lib/module/screen/faq/Faq.js.map +1 -0
  110. package/lib/module/screen/greetings/Social.js +19 -9
  111. package/lib/module/screen/greetings/Social.js.map +1 -1
  112. package/lib/module/screen/greetings/Supporters.js +50 -46
  113. package/lib/module/screen/greetings/Supporters.js.map +1 -1
  114. package/lib/module/screen/home/Home.js +236 -0
  115. package/lib/module/screen/home/Home.js.map +1 -0
  116. package/lib/module/screen/messages/Messages.js +303 -0
  117. package/lib/module/screen/messages/Messages.js.map +1 -0
  118. package/lib/module/theme.js +122 -0
  119. package/lib/module/theme.js.map +1 -0
  120. package/lib/module/utils/messages.js +81 -0
  121. package/lib/module/utils/messages.js.map +1 -0
  122. package/lib/module/utils/onlineHours.js +118 -0
  123. package/lib/module/utils/onlineHours.js.map +1 -0
  124. package/lib/module/utils/upload.js +233 -0
  125. package/lib/module/utils/upload.js.map +1 -0
  126. package/lib/typescript/App.d.ts +2 -1
  127. package/lib/typescript/App.d.ts.map +1 -1
  128. package/lib/typescript/Widget.d.ts.map +1 -1
  129. package/lib/typescript/components/Avatar.d.ts +7 -1
  130. package/lib/typescript/components/Avatar.d.ts.map +1 -1
  131. package/lib/typescript/components/AvatarWithStatus.d.ts +11 -0
  132. package/lib/typescript/components/AvatarWithStatus.d.ts.map +1 -0
  133. package/lib/typescript/components/ConversationItem.d.ts +9 -0
  134. package/lib/typescript/components/ConversationItem.d.ts.map +1 -0
  135. package/lib/typescript/components/Icons.d.ts +33 -0
  136. package/lib/typescript/components/Icons.d.ts.map +1 -0
  137. package/lib/typescript/components/InputTools.d.ts.map +1 -1
  138. package/lib/typescript/components/MessengerShell.d.ts +4 -0
  139. package/lib/typescript/components/MessengerShell.d.ts.map +1 -0
  140. package/lib/typescript/components/conversation/DateSeparator.d.ts +6 -0
  141. package/lib/typescript/components/conversation/DateSeparator.d.ts.map +1 -0
  142. package/lib/typescript/components/conversation/EmojiPicker.d.ts +7 -0
  143. package/lib/typescript/components/conversation/EmojiPicker.d.ts.map +1 -0
  144. package/lib/typescript/components/conversation/PersistentMenu.d.ts +13 -0
  145. package/lib/typescript/components/conversation/PersistentMenu.d.ts.map +1 -0
  146. package/lib/typescript/components/conversation/TypingStatus.d.ts +4 -0
  147. package/lib/typescript/components/conversation/TypingStatus.d.ts.map +1 -0
  148. package/lib/typescript/components/conversation/WelcomeMessage.d.ts +6 -0
  149. package/lib/typescript/components/conversation/WelcomeMessage.d.ts.map +1 -0
  150. package/lib/typescript/components/nav/Navigation.d.ts +12 -0
  151. package/lib/typescript/components/nav/Navigation.d.ts.map +1 -0
  152. package/lib/typescript/components/nav/constants.d.ts +7 -0
  153. package/lib/typescript/components/nav/constants.d.ts.map +1 -0
  154. package/lib/typescript/graphql/ApolloContainer.d.ts.map +1 -1
  155. package/lib/typescript/graphql/mutation.d.ts +2 -1
  156. package/lib/typescript/graphql/mutation.d.ts.map +1 -1
  157. package/lib/typescript/graphql/query.d.ts +2 -3
  158. package/lib/typescript/graphql/query.d.ts.map +1 -1
  159. package/lib/typescript/graphql/subscription.d.ts +2 -1
  160. package/lib/typescript/graphql/subscription.d.ts.map +1 -1
  161. package/lib/typescript/screen/conversation/Attachment.d.ts.map +1 -1
  162. package/lib/typescript/screen/conversation/ConversationDetail.d.ts.map +1 -1
  163. package/lib/typescript/screen/conversation/Message.d.ts.map +1 -1
  164. package/lib/typescript/screen/faq/Faq.d.ts +4 -0
  165. package/lib/typescript/screen/faq/Faq.d.ts.map +1 -0
  166. package/lib/typescript/screen/greetings/Social.d.ts +1 -1
  167. package/lib/typescript/screen/greetings/Social.d.ts.map +1 -1
  168. package/lib/typescript/screen/greetings/Supporters.d.ts.map +1 -1
  169. package/lib/typescript/screen/home/Home.d.ts +4 -0
  170. package/lib/typescript/screen/home/Home.d.ts.map +1 -0
  171. package/lib/typescript/screen/messages/Messages.d.ts +4 -0
  172. package/lib/typescript/screen/messages/Messages.d.ts.map +1 -0
  173. package/lib/typescript/theme.d.ts +93 -0
  174. package/lib/typescript/theme.d.ts.map +1 -0
  175. package/lib/typescript/utils/messages.d.ts +27 -0
  176. package/lib/typescript/utils/messages.d.ts.map +1 -0
  177. package/lib/typescript/utils/onlineHours.d.ts +19 -0
  178. package/lib/typescript/utils/onlineHours.d.ts.map +1 -0
  179. package/lib/typescript/utils/upload.d.ts +32 -0
  180. package/lib/typescript/utils/upload.d.ts.map +1 -0
  181. package/package.json +25 -21
  182. package/src/App.tsx +48 -24
  183. package/src/Widget.tsx +214 -40
  184. package/src/components/Avatar.tsx +30 -30
  185. package/src/components/AvatarWithStatus.tsx +63 -0
  186. package/src/components/ConversationItem.tsx +199 -0
  187. package/src/components/Icons.tsx +532 -0
  188. package/src/components/InputTools.tsx +387 -48
  189. package/src/components/MessengerShell.tsx +58 -0
  190. package/src/components/conversation/DateSeparator.tsx +36 -0
  191. package/src/components/conversation/EmojiPicker.tsx +111 -0
  192. package/src/components/conversation/PersistentMenu.tsx +74 -0
  193. package/src/components/conversation/TypingStatus.tsx +112 -0
  194. package/src/components/conversation/WelcomeMessage.tsx +70 -0
  195. package/src/components/nav/Navigation.tsx +137 -0
  196. package/src/components/nav/constants.ts +16 -0
  197. package/src/graphql/ApolloContainer.tsx +0 -1
  198. package/src/graphql/mutation.ts +58 -22
  199. package/src/graphql/query.ts +83 -55
  200. package/src/graphql/subscription.ts +31 -27
  201. package/src/screen/conversation/Attachment.tsx +123 -33
  202. package/src/screen/conversation/ConversationDetail.tsx +367 -134
  203. package/src/screen/conversation/Message.tsx +160 -98
  204. package/src/screen/faq/Faq.tsx +425 -0
  205. package/src/screen/greetings/Social.tsx +18 -4
  206. package/src/screen/greetings/Supporters.tsx +56 -41
  207. package/src/screen/home/Home.tsx +276 -0
  208. package/src/screen/messages/Messages.tsx +331 -0
  209. package/src/theme.ts +104 -0
  210. package/src/utils/messages.ts +105 -0
  211. package/src/utils/onlineHours.ts +167 -0
  212. package/src/utils/upload.ts +326 -0
  213. package/lib/commonjs/components/FAB.js +0 -51
  214. package/lib/commonjs/components/FAB.js.map +0 -1
  215. package/lib/commonjs/screen/conversation/Conversations.js +0 -158
  216. package/lib/commonjs/screen/conversation/Conversations.js.map +0 -1
  217. package/lib/commonjs/screen/greetings/Greetings.js +0 -96
  218. package/lib/commonjs/screen/greetings/Greetings.js.map +0 -1
  219. package/lib/module/components/FAB.js +0 -42
  220. package/lib/module/components/FAB.js.map +0 -1
  221. package/lib/module/screen/conversation/Conversations.js +0 -147
  222. package/lib/module/screen/conversation/Conversations.js.map +0 -1
  223. package/lib/module/screen/greetings/Greetings.js +0 -85
  224. package/lib/module/screen/greetings/Greetings.js.map +0 -1
  225. package/lib/typescript/components/FAB.d.ts +0 -16
  226. package/lib/typescript/components/FAB.d.ts.map +0 -1
  227. package/lib/typescript/screen/conversation/Conversations.d.ts +0 -4
  228. package/lib/typescript/screen/conversation/Conversations.d.ts.map +0 -1
  229. package/lib/typescript/screen/greetings/Greetings.d.ts +0 -4
  230. package/lib/typescript/screen/greetings/Greetings.d.ts.map +0 -1
  231. package/src/components/FAB.tsx +0 -69
  232. package/src/screen/conversation/Conversations.tsx +0 -148
  233. package/src/screen/greetings/Greetings.tsx +0 -98
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarWithStatus.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarWithStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,gBAAgB,oCAA0C,KAAK,sBA+BpE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ item: any;
4
+ bgColor: string;
5
+ onPress: () => void;
6
+ };
7
+ declare const ConversationItem: ({ item, bgColor, onPress }: Props) => React.JSX.Element;
8
+ export default ConversationItem;
9
+ //# sourceMappingURL=ConversationItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationItem.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,+BAAgC,KAAK,sBAiG1D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ type IconProps = {
3
+ color?: string;
4
+ size?: number;
5
+ };
6
+ export declare const BackIcon: ({ color, size }: IconProps) => React.JSX.Element;
7
+ export declare const SendIcon: ({ color, size }: IconProps) => React.JSX.Element;
8
+ export declare const PlusIcon: ({ color, size }: IconProps) => React.JSX.Element;
9
+ export declare const NewChatIcon: ({ color, size }: IconProps) => React.JSX.Element;
10
+ export declare const CloseIcon: ({ color, size }: IconProps) => React.JSX.Element;
11
+ export declare const AttachmentIcon: ({ color, size }: IconProps) => React.JSX.Element;
12
+ export declare const HomeIcon: ({ color, size }: IconProps) => React.JSX.Element;
13
+ export declare const MessageIcon: ({ color, size }: IconProps) => React.JSX.Element;
14
+ export declare const ChevronRightIcon: ({ color, size, }: IconProps) => React.JSX.Element;
15
+ export declare const HelpIcon: ({ color, size }: IconProps) => React.JSX.Element;
16
+ export declare const MenuIcon: ({ color, size }: IconProps) => React.JSX.Element;
17
+ export declare const SmileyIcon: ({ color, size }: IconProps) => React.JSX.Element;
18
+ declare const _default: {
19
+ BackIcon: ({ color, size }: IconProps) => React.JSX.Element;
20
+ SendIcon: ({ color, size }: IconProps) => React.JSX.Element;
21
+ PlusIcon: ({ color, size }: IconProps) => React.JSX.Element;
22
+ NewChatIcon: ({ color, size }: IconProps) => React.JSX.Element;
23
+ CloseIcon: ({ color, size }: IconProps) => React.JSX.Element;
24
+ AttachmentIcon: ({ color, size }: IconProps) => React.JSX.Element;
25
+ HomeIcon: ({ color, size }: IconProps) => React.JSX.Element;
26
+ MessageIcon: ({ color, size }: IconProps) => React.JSX.Element;
27
+ ChevronRightIcon: ({ color, size, }: IconProps) => React.JSX.Element;
28
+ HelpIcon: ({ color, size }: IconProps) => React.JSX.Element;
29
+ MenuIcon: ({ color, size }: IconProps) => React.JSX.Element;
30
+ SmileyIcon: ({ color, size }: IconProps) => React.JSX.Element;
31
+ };
32
+ export default _default;
33
+ //# sourceMappingURL=Icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../src/components/Icons.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBA8CnE,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBAoDnE,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBA+BnE,CAAC;AAGF,eAAO,MAAM,WAAW,oBAAsC,SAAS,sBAoCtE,CAAC;AAGF,eAAO,MAAM,SAAS,oBAAsC,SAAS,sBAiCpE,CAAC;AAGF,eAAO,MAAM,cAAc,oBAAsC,SAAS,sBAuBzE,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBAmDnE,CAAC;AAGF,eAAO,MAAM,WAAW,oBAAsC,SAAS,sBAkDtE,CAAC;AAGF,eAAO,MAAM,gBAAgB,qBAG1B,SAAS,sBAuBX,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBAmCnE,CAAC;AAGF,eAAO,MAAM,QAAQ,oBAAsC,SAAS,sBAuBnE,CAAC;AAGF,eAAO,MAAM,UAAU,oBAAsC,SAAS,sBA+DrE,CAAC;;;;;;;;;;;;;;;AAEF,wBAaE"}
@@ -1 +1 @@
1
- {"version":3,"file":"InputTools.d.ts","sourceRoot":"","sources":["../../../src/components/InputTools.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAwC7B,CAAC;AAsBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"InputTools.d.ts","sourceRoot":"","sources":["../../../src/components/InputTools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAoCpE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAuO7B,CAAC;AA0IF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const MessengerShell: () => React.JSX.Element;
3
+ export default MessengerShell;
4
+ //# sourceMappingURL=MessengerShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessengerShell.d.ts","sourceRoot":"","sources":["../../../src/components/MessengerShell.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAapD,QAAA,MAAM,cAAc,yBA+BnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const DateSeparator: ({ label }: {
3
+ label: string;
4
+ }) => React.JSX.Element;
5
+ export default DateSeparator;
6
+ //# sourceMappingURL=DateSeparator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateSeparator.d.ts","sourceRoot":"","sources":["../../../../src/components/conversation/DateSeparator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,aAAa;WAAwB,MAAM;uBAQhD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ onSelect: (emoji: string) => void;
4
+ };
5
+ declare const EmojiPicker: ({ onSelect }: Props) => React.JSX.Element;
6
+ export default EmojiPicker;
7
+ //# sourceMappingURL=EmojiPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/conversation/EmojiPicker.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiD1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,WAAW,iBAAkB,KAAK,sBAqBvC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ type MenuItem = {
3
+ type?: string;
4
+ text: string;
5
+ link?: string;
6
+ };
7
+ type Props = {
8
+ items?: MenuItem[];
9
+ onSendText: (text: string) => void;
10
+ };
11
+ declare const PersistentMenu: ({ items, onSendText }: Props) => React.JSX.Element | null;
12
+ export default PersistentMenu;
13
+ //# sourceMappingURL=PersistentMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PersistentMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/conversation/PersistentMenu.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,QAAQ,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,cAAc,0BAA2B,KAAK,6BA4BnD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const TypingStatus: () => React.JSX.Element;
3
+ export default TypingStatus;
4
+ //# sourceMappingURL=TypingStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypingStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/conversation/TypingStatus.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAiD7D,QAAA,MAAM,YAAY,yBAoBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const WelcomeMessage: ({ content }: {
3
+ content?: string | undefined;
4
+ }) => React.JSX.Element | null;
5
+ export default WelcomeMessage;
6
+ //# sourceMappingURL=WelcomeMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WelcomeMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/conversation/WelcomeMessage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,QAAA,MAAM,cAAc;;8BAsBnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { TabKey } from './constants';
3
+ type Props = {
4
+ activeTab: TabKey;
5
+ onChange: (tab: TabKey) => void;
6
+ bgColor: string;
7
+ unreadCount?: number;
8
+ hiddenTabs?: TabKey[];
9
+ };
10
+ declare const Navigation: ({ activeTab, onChange, bgColor, unreadCount, hiddenTabs, }: Props) => React.JSX.Element;
11
+ export default Navigation;
12
+ //# sourceMappingURL=Navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../../src/components/nav/Navigation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAmB,MAAM,EAAE,MAAM,aAAa,CAAC;AAEtD,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAYF,QAAA,MAAM,UAAU,+DAMb,KAAK,sBAuCP,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type TabKey = 'home' | 'messages' | 'faq';
2
+ export type NavItem = {
3
+ key: TabKey;
4
+ label: string;
5
+ };
6
+ export declare const NAVIGATION_MENU: NavItem[];
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/nav/constants.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;AAEjD,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,OAAO,EAIpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloContainer.d.ts","sourceRoot":"","sources":["../../../src/graphql/ApolloContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,eAAe,4BAA6B,GAAG,sBAoDpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ApolloContainer.d.ts","sourceRoot":"","sources":["../../../src/graphql/ApolloContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,eAAe,4BAA6B,GAAG,sBAmDpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,6 +1,7 @@
1
1
  declare const connect: import("@apollo/client").DocumentNode;
2
2
  declare const widgetsInsertMessage: import("@apollo/client").DocumentNode;
3
3
  declare const widgetsSaveCustomerGetNotified: import("@apollo/client").DocumentNode;
4
+ declare const widgetsReadConversationMessages: import("@apollo/client").DocumentNode;
4
5
  declare const widgetsSaveBrowserInfo: import("@apollo/client").DocumentNode;
5
- export { connect, widgetsInsertMessage, widgetsSaveCustomerGetNotified, widgetsSaveBrowserInfo, };
6
+ export { connect, widgetsInsertMessage, widgetsReadConversationMessages, widgetsSaveCustomerGetNotified, widgetsSaveBrowserInfo, };
6
7
  //# sourceMappingURL=mutation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../../src/graphql/mutation.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,uCAqCZ,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCA+DzB,CAAC;AAEF,QAAA,MAAM,8BAA8B,uCAcnC,CAAC;AAEF,QAAA,MAAM,sBAAsB,uCAgB3B,CAAC;AAEF,OAAO,EACL,OAAO,EACP,oBAAoB,EACpB,8BAA8B,EAC9B,sBAAsB,GACvB,CAAC"}
1
+ {"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../../src/graphql/mutation.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,uCAyCZ,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCAwDzB,CAAC;AAEF,QAAA,MAAM,8BAA8B,uCAcnC,CAAC;AAEF,QAAA,MAAM,+BAA+B,uCAIpC,CAAC;AAEF,QAAA,MAAM,sBAAsB,uCAgD3B,CAAC;AAEF,OAAO,EACL,OAAO,EACP,oBAAoB,EACpB,+BAA+B,EAC/B,8BAA8B,EAC9B,sBAAsB,GACvB,CAAC"}
@@ -1,8 +1,7 @@
1
1
  declare const widgetsMessengerSupporters: import("@apollo/client").DocumentNode;
2
2
  declare const widgetsConversations: import("@apollo/client").DocumentNode;
3
- declare const knowledgeBaseTopicDetail: import("@apollo/client").DocumentNode;
4
- declare const knowledgeBaseCategoryDetail: import("@apollo/client").DocumentNode;
5
3
  declare const widgetsConversationDetail: import("@apollo/client").DocumentNode;
6
4
  declare const widgetsTotalUnreadCount: import("@apollo/client").DocumentNode;
7
- export { widgetsMessengerSupporters, widgetsConversations, widgetsConversationDetail, knowledgeBaseTopicDetail, knowledgeBaseCategoryDetail, widgetsTotalUnreadCount, };
5
+ declare const knowledgeBaseTopicDetail: import("@apollo/client").DocumentNode;
6
+ export { widgetsMessengerSupporters, widgetsConversations, widgetsConversationDetail, widgetsTotalUnreadCount, knowledgeBaseTopicDetail, };
8
7
  //# sourceMappingURL=query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/graphql/query.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,0BAA0B,uCAoB/B,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCAyBzB,CAAC;AAEF,QAAA,MAAM,wBAAwB,uCA0B7B,CAAC;AAEF,QAAA,MAAM,2BAA2B,uCAqBhC,CAAC;AAEF,QAAA,MAAM,yBAAyB,uCAwD9B,CAAC;AAEF,QAAA,MAAM,uBAAuB,uCAY5B,CAAC;AAEF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,GACxB,CAAC"}
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/graphql/query.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,0BAA0B,uCAoB/B,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCA+CzB,CAAC;AAEF,QAAA,MAAM,yBAAyB,uCA8D9B,CAAC;AAEF,QAAA,MAAM,uBAAuB,uCAY5B,CAAC;AAIF,QAAA,MAAM,wBAAwB,uCAgD7B,CAAC;AAEF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  declare const conversationMessageInserted: import("@apollo/client").DocumentNode;
2
2
  declare const conversationClientMessageInserted: import("@apollo/client").DocumentNode;
3
3
  declare const conversationChanged: import("@apollo/client").DocumentNode;
4
+ declare const conversationBotTypingStatus: import("@apollo/client").DocumentNode;
4
5
  declare const conversationExternalIntegrationMessageInserted: import("@apollo/client").DocumentNode;
5
6
  declare const adminMessageInserted: import("@apollo/client").DocumentNode;
6
- export { conversationMessageInserted, conversationClientMessageInserted, conversationChanged, conversationExternalIntegrationMessageInserted, adminMessageInserted, };
7
+ export { conversationMessageInserted, conversationClientMessageInserted, conversationChanged, conversationExternalIntegrationMessageInserted, adminMessageInserted, conversationBotTypingStatus, };
7
8
  //# sourceMappingURL=subscription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/graphql/subscription.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B,uCA8ChC,CAAC;AAEF,QAAA,MAAM,iCAAiC,uCAUtC,CAAC;AAEF,QAAA,MAAM,mBAAmB,uCAOxB,CAAC;AACF,QAAA,MAAM,8CAA8C,uCAInD,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCAMzB,CAAC;AAEF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,mBAAmB,EACnB,8CAA8C,EAC9C,oBAAoB,GACrB,CAAC"}
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/graphql/subscription.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B,uCAyChC,CAAC;AAEF,QAAA,MAAM,iCAAiC,uCAUtC,CAAC;AAEF,QAAA,MAAM,mBAAmB,uCAOxB,CAAC;AAIF,QAAA,MAAM,2BAA2B,uCAIhC,CAAC;AACF,QAAA,MAAM,8CAA8C,uCAInD,CAAC;AAEF,QAAA,MAAM,oBAAoB,uCAMzB,CAAC;AAEF,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,EACjC,mBAAmB,EACnB,8CAA8C,EAC9C,oBAAoB,EACpB,2BAA2B,GAC5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/Attachment.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAgI7B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/Attachment.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAoBpD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAkL7B,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationDetail.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/ConversationDetail.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,QAAA,MAAM,kBAAkB,yBAoKvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ConversationDetail.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/ConversationDetail.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAgFxE,QAAA,MAAM,kBAAkB,yBA8TvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/Message.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,QAAA,MAAM,OAAO,UAAW,GAAG,sBAyD1B,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/screen/conversation/Message.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,OAAO,UAAW,GAAG,sBAoF1B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const Faq: () => React.JSX.Element;
3
+ export default Faq;
4
+ //# sourceMappingURL=Faq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Faq.d.ts","sourceRoot":"","sources":["../../../../src/screen/faq/Faq.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAY7D,QAAA,MAAM,GAAG,yBA8QR,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare const Social: (props: any) => React.JSX.Element;
2
+ declare const Social: (props: any) => React.JSX.Element | null;
3
3
  export default Social;
4
4
  //# sourceMappingURL=Social.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Social.d.ts","sourceRoot":"","sources":["../../../../src/screen/greetings/Social.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,MAAM,UAAW,GAAG,sBAyBzB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Social.d.ts","sourceRoot":"","sources":["../../../../src/screen/greetings/Social.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,MAAM,UAAW,GAAG,6BA+BzB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Supporters.d.ts","sourceRoot":"","sources":["../../../../src/screen/greetings/Supporters.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,QAAA,MAAM,UAAU,UAAW,GAAG,6BAmD7B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"Supporters.d.ts","sourceRoot":"","sources":["../../../../src/screen/greetings/Supporters.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,QAAA,MAAM,UAAU,UAAW,GAAG,6BA4D7B,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const Home: () => React.JSX.Element;
3
+ export default Home;
4
+ //# sourceMappingURL=Home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../src/screen/home/Home.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAe1C,QAAA,MAAM,IAAI,yBA8IT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const Messages: () => React.JSX.Element;
3
+ export default Messages;
4
+ //# sourceMappingURL=Messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Messages.d.ts","sourceRoot":"","sources":["../../../../src/screen/messages/Messages.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAgB1C,QAAA,MAAM,QAAQ,yBAgNb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,93 @@
1
+ export declare const messengerTheme: {
2
+ colors: {
3
+ primary: string;
4
+ primaryForeground: string;
5
+ background: string;
6
+ surface: string;
7
+ border: string;
8
+ divider: string;
9
+ text: string;
10
+ mutedText: string;
11
+ subtleText: string;
12
+ incomingBubble: string;
13
+ outgoingBubble: string;
14
+ incomingText: string;
15
+ outgoingText: string;
16
+ inputBackground: string;
17
+ online: string;
18
+ offline: string;
19
+ ring: string;
20
+ danger: string;
21
+ brandSecondary: string;
22
+ };
23
+ spacing: {
24
+ xs: number;
25
+ sm: number;
26
+ md: number;
27
+ lg: number;
28
+ xl: number;
29
+ xxl: number;
30
+ };
31
+ radius: {
32
+ sm: number;
33
+ md: number;
34
+ lg: number;
35
+ xl: number;
36
+ bubble: number;
37
+ tail: number;
38
+ pill: number;
39
+ };
40
+ shadow: {
41
+ card: {
42
+ shadowColor: string;
43
+ shadowOffset: {
44
+ width: number;
45
+ height: number;
46
+ };
47
+ shadowOpacity: number;
48
+ shadowRadius: number;
49
+ elevation: number;
50
+ };
51
+ bubble: {
52
+ shadowColor: string;
53
+ shadowOffset: {
54
+ width: number;
55
+ height: number;
56
+ };
57
+ shadowOpacity: number;
58
+ shadowRadius: number;
59
+ elevation: number;
60
+ };
61
+ floating: {
62
+ shadowColor: string;
63
+ shadowOffset: {
64
+ width: number;
65
+ height: number;
66
+ };
67
+ shadowOpacity: number;
68
+ shadowRadius: number;
69
+ elevation: number;
70
+ };
71
+ };
72
+ };
73
+ export declare const COLORS: {
74
+ surface: string;
75
+ background: string;
76
+ textPrimary: string;
77
+ textSecondary: string;
78
+ textMuted: string;
79
+ online: string;
80
+ offline: string;
81
+ ring: string;
82
+ brandSecondary: string;
83
+ };
84
+ export declare const RADIUS: {
85
+ card: number;
86
+ header: number;
87
+ pill: number;
88
+ };
89
+ export declare const SPACING: {
90
+ screenH: number;
91
+ cardGap: number;
92
+ };
93
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D1B,CAAC;AAKF,eAAO,MAAM,MAAM;;;;;;;;;;CAUlB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAGnB,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const MESSAGE_GROUP_TIME_WINDOW: number;
2
+ export declare const getDateKey: (date: any) => string;
3
+ export declare const formatMessageDate: (dateKey: string) => string;
4
+ export type ChatRow = {
5
+ type: 'welcome';
6
+ id: string;
7
+ content?: string;
8
+ } | {
9
+ type: 'date';
10
+ id: string;
11
+ label: string;
12
+ } | {
13
+ type: 'message';
14
+ id: string;
15
+ item: any;
16
+ isFirstInGroup: boolean;
17
+ isLastInGroup: boolean;
18
+ };
19
+ /**
20
+ * Build the chronological row list (welcome → date separators → grouped
21
+ * messages) for the chat screen.
22
+ *
23
+ * @param chronological messages oldest-first
24
+ * @param welcomeContent optional welcome bubble shown at the very top
25
+ */
26
+ export declare const buildChatRows: (chronological: any[], welcomeContent?: string) => ChatRow[];
27
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/utils/messages.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB,QAAgB,CAAC;AAEvD,eAAO,MAAM,UAAU,SAAU,GAAG,KAAG,MACL,CAAC;AAEnC,eAAO,MAAM,iBAAiB,YAAa,MAAM,KAAG,MASnD,CAAC;AAwBF,MAAM,MAAM,OAAO,GACf;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC3C;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEN;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,kBACT,GAAG,EAAE,mBACH,MAAM,KACtB,OAAO,EAsCT,CAAC"}
@@ -0,0 +1,19 @@
1
+ type OnlineHour = {
2
+ day: string;
3
+ from: string;
4
+ to: string;
5
+ };
6
+ type FormatOnlineHoursOptions = {
7
+ onlineHours?: OnlineHour[];
8
+ timezone?: string;
9
+ showTimezone?: boolean;
10
+ };
11
+ export declare const AVAILABILITY_MESSAGE = "We're available between 9.00 am and 6.00 pm (GMT +8). We'll get back to you as soon as possible.";
12
+ export declare const formatOnlineHours: ({ onlineHours, timezone, showTimezone, }: FormatOnlineHoursOptions) => {
13
+ workHours: string;
14
+ formattedTimeZone: string;
15
+ onlineDays: string;
16
+ } | null;
17
+ export declare const formatOnlineHoursShort: ({ onlineHours, timezone, showTimezone, }: FormatOnlineHoursOptions) => string;
18
+ export {};
19
+ //# sourceMappingURL=onlineHours.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onlineHours.d.ts","sourceRoot":"","sources":["../../../src/utils/onlineHours.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qGACmE,CAAC;AA+ErG,eAAO,MAAM,iBAAiB,6CAI3B,wBAAwB,KAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,IAsBH,CAAC;AAEF,eAAO,MAAM,sBAAsB,6CAIhC,wBAAwB,KAAG,MAsC7B,CAAC"}
@@ -0,0 +1,32 @@
1
+ export type PickedFile = {
2
+ uri: string;
3
+ name: string;
4
+ type: string;
5
+ size?: number;
6
+ };
7
+ export type UploadedAttachment = {
8
+ url: string;
9
+ name: string;
10
+ type: string;
11
+ size?: number;
12
+ };
13
+ export type UploadResponseType = 'text' | 'json';
14
+ export type UploadOptions = {
15
+ url?: string;
16
+ kind?: string;
17
+ userId?: string;
18
+ responseType?: UploadResponseType;
19
+ maxHeight?: number;
20
+ maxWidth?: number;
21
+ extraFormData?: Array<{
22
+ key: string;
23
+ value: string;
24
+ }>;
25
+ };
26
+ export declare const unsupportedImageUploadMessage = "Only PNG and JPG images can be uploaded.";
27
+ export declare const isAllowedImageFile: (file: PickedFile) => boolean;
28
+ export declare const isImagePickerAvailable: () => boolean;
29
+ export declare const pickImage: () => Promise<PickedFile | null>;
30
+ export declare const getUploadUrl: (subDomain: string, options?: UploadOptions) => string;
31
+ export declare const uploadFile: (file: PickedFile, subDomain: string, options?: UploadOptions) => Promise<UploadedAttachment>;
32
+ //# sourceMappingURL=upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/utils/upload.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvD,CAAC;AAKF,eAAO,MAAM,6BAA6B,6CACE,CAAC;AAkF7C,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,OAUrD,CAAC;AAsBF,eAAO,MAAM,sBAAsB,QAAO,OAIvC,CAAC;AAEJ,eAAO,MAAM,SAAS,QAAa,QAAQ,UAAU,GAAG,IAAI,CAsD3D,CAAC;AA+BF,eAAO,MAAM,YAAY,cACZ,MAAM,YACR,aAAa,KACrB,MAaF,CAAC;AAEF,eAAO,MAAM,UAAU,SACf,UAAU,aACL,MAAM,YACR,aAAa,KACrB,QAAQ,kBAAkB,CAuD5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-erxes-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "react-native erxes sdk",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -51,38 +51,48 @@
51
51
  "registry": "https://registry.npmjs.org/"
52
52
  },
53
53
  "devDependencies": {
54
+ "@babel/core": "^7.26.0",
55
+ "@babel/eslint-parser": "^7.26.0",
54
56
  "@commitlint/config-conventional": "^17.0.2",
55
57
  "@evilmartians/lefthook": "^1.2.2",
58
+ "@react-native-async-storage/async-storage": "2.2.0",
56
59
  "@react-native-community/eslint-config": "^3.0.2",
60
+ "@react-native/babel-preset": "0.81.5",
57
61
  "@release-it/conventional-changelog": "^5.0.0",
58
62
  "@types/jest": "^28.1.2",
59
- "@types/react": "~17.0.21",
60
- "@types/react-native": "0.70.0",
63
+ "@types/react": "^19.0.0",
61
64
  "commitlint": "^17.0.2",
62
65
  "del-cli": "^5.0.0",
63
66
  "eslint": "^8.4.1",
64
67
  "eslint-config-prettier": "^8.5.0",
68
+ "eslint-plugin-ft-flow": "^2.0.3",
65
69
  "eslint-plugin-prettier": "^4.0.0",
66
70
  "jest": "^28.1.1",
67
71
  "pod-install": "^0.1.0",
68
72
  "prettier": "^2.0.5",
69
- "react": "18.2.0",
70
- "react-native": "0.71.8",
73
+ "react": "19.1.0",
74
+ "react-native": "0.81.5",
71
75
  "react-native-builder-bob": "^0.20.0",
76
+ "react-native-get-random-values": "~1.11.0",
72
77
  "release-it": "^15.0.0",
73
78
  "typescript": "^4.5.2"
74
79
  },
75
- "resolutions": {
76
- "@types/react": "17.0.21"
77
- },
78
80
  "peerDependencies": {
81
+ "@react-native-async-storage/async-storage": ">=2.2.0",
79
82
  "react": "*",
80
- "react-native": "*"
83
+ "react-native": "*",
84
+ "react-native-get-random-values": ">=1.11.0",
85
+ "expo-image-picker": "*"
86
+ },
87
+ "peerDependenciesMeta": {
88
+ "expo-image-picker": {
89
+ "optional": true
90
+ }
81
91
  },
82
92
  "engines": {
83
- "node": ">= 16.0.0"
93
+ "node": ">=20.19.0"
84
94
  },
85
- "packageManager": "^yarn@1.22.15",
95
+ "packageManager": "yarn@1.22.22",
86
96
  "jest": {
87
97
  "preset": "react-native",
88
98
  "modulePathIgnorePatterns": [
@@ -151,24 +161,18 @@
151
161
  [
152
162
  "typescript",
153
163
  {
154
- "project": "tsconfig.build.json"
164
+ "project": "tsconfig.build.json",
165
+ "tsc": "node_modules/.bin/tsc"
155
166
  }
156
167
  ]
157
168
  ]
158
169
  },
159
170
  "dependencies": {
160
- "@apollo/client": "^3.7.15",
161
- "@react-native-async-storage/async-storage": "^1.18.2",
171
+ "@apollo/client": "^3.14.1",
162
172
  "bson": "^5.3.0",
163
173
  "dayjs": "^1.11.8",
164
174
  "graphql": "^16.6.0",
165
175
  "graphql-ws": "^5.13.1",
166
- "react-apollo": "^3.1.5",
167
- "react-native-gesture-handler": "^2.12.0",
168
- "react-native-get-random-values": "^1.9.0",
169
- "react-native-render-html": "^6.3.4",
170
- "react-native-safe-area-context": "^4.5.3",
171
- "react-native-screens": "^3.21.1",
172
- "react-native-uuid": "^2.0.1"
176
+ "react-native-render-html": "^6.3.4"
173
177
  }
174
178
  }