@sendbird/uikit-react 3.14.0-beta.2 → 3.14.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 (913) hide show
  1. package/App.js +78 -79
  2. package/App.js.map +1 -1
  3. package/CHANGELOG.md +99 -8
  4. package/Channel/components/ChannelHeader.js +29 -29
  5. package/Channel/components/ChannelUI.js +65 -65
  6. package/Channel/components/FileViewer.js +28 -28
  7. package/Channel/components/FrozenNotification.js +5 -5
  8. package/Channel/components/Message.js +55 -55
  9. package/Channel/components/MessageInput.js +41 -41
  10. package/Channel/components/MessageInputWrapper.js +41 -41
  11. package/Channel/components/MessageList.js +58 -58
  12. package/Channel/components/RemoveMessageModal.js +27 -27
  13. package/Channel/components/SuggestedMentionList.js +27 -27
  14. package/Channel/components/TypingIndicator.js +6 -6
  15. package/Channel/components/UnreadCount.js +7 -7
  16. package/Channel/context.js +21 -24
  17. package/Channel/context.js.map +1 -1
  18. package/Channel/hooks/useHandleUploadFiles.js +13 -13
  19. package/Channel/hooks/useInitialMessagesFetch.js +6 -6
  20. package/Channel/utils/compareMessagesForGrouping.js +5 -5
  21. package/Channel/utils/getMessagePartsInfo.js +6 -6
  22. package/Channel.js +65 -65
  23. package/ChannelList/components/AddChannel.js +20 -20
  24. package/ChannelList/components/ChannelListHeader.js +8 -8
  25. package/ChannelList/components/ChannelListUI.js +34 -34
  26. package/ChannelList/components/ChannelPreview.js +27 -27
  27. package/ChannelList/components/ChannelPreviewAction.js +11 -11
  28. package/ChannelList/context.js +10 -10
  29. package/ChannelList.js +34 -34
  30. package/ChannelSettings/components/ChannelProfile.js +14 -14
  31. package/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
  32. package/ChannelSettings/components/ChannelSettingsUI.js +24 -25
  33. package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  34. package/ChannelSettings/components/EditDetailsModal.js +14 -14
  35. package/ChannelSettings/components/LeaveChannel.js +11 -11
  36. package/ChannelSettings/components/ModerationPanel.js +22 -23
  37. package/ChannelSettings/components/ModerationPanel.js.map +1 -1
  38. package/ChannelSettings/components/UserListItem.js +13 -13
  39. package/ChannelSettings/components/UserPanel.js +20 -20
  40. package/ChannelSettings/context.js +3 -3
  41. package/ChannelSettings.js +22 -23
  42. package/ChannelSettings.js.map +1 -1
  43. package/CreateChannel/components/CreateChannelUI.js +16 -16
  44. package/CreateChannel/components/InviteUsers.js +16 -16
  45. package/CreateChannel/components/SelectChannelType.js +10 -10
  46. package/CreateChannel/context.js +4 -4
  47. package/CreateChannel.js +16 -16
  48. package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
  49. package/CreateOpenChannel/context.js +1 -1
  50. package/CreateOpenChannel.js +11 -11
  51. package/EditUserProfile/components/EditUserProfileUI.js +12 -12
  52. package/EditUserProfile.js +12 -12
  53. package/GroupChannel/components/FileViewer.js +57 -27
  54. package/GroupChannel/components/FileViewer.js.map +1 -1
  55. package/GroupChannel/components/FrozenNotification.js +5 -5
  56. package/GroupChannel/components/GroupChannelHeader.js +23 -22
  57. package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
  58. package/GroupChannel/components/GroupChannelUI.js +60 -59
  59. package/GroupChannel/components/GroupChannelUI.js.map +1 -1
  60. package/GroupChannel/components/Message.js +55 -54
  61. package/GroupChannel/components/Message.js.map +1 -1
  62. package/GroupChannel/components/MessageInputWrapper.js +39 -38
  63. package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
  64. package/GroupChannel/components/MessageList.js +53 -52
  65. package/GroupChannel/components/MessageList.js.map +1 -1
  66. package/GroupChannel/components/RemoveMessageModal.js +23 -22
  67. package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
  68. package/GroupChannel/components/SuggestedMentionList.js +12 -12
  69. package/GroupChannel/components/TypingIndicator.js +6 -6
  70. package/GroupChannel/components/UnreadCount.js +7 -7
  71. package/GroupChannel/context.js +29 -26
  72. package/GroupChannel/context.js.map +1 -1
  73. package/GroupChannel.js +60 -59
  74. package/GroupChannel.js.map +1 -1
  75. package/GroupChannelList/components/AddGroupChannel.js +18 -18
  76. package/GroupChannelList/components/GroupChannelListHeader.js +8 -8
  77. package/GroupChannelList/components/GroupChannelListItem.js +24 -24
  78. package/GroupChannelList/components/GroupChannelListUI.js +33 -33
  79. package/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
  80. package/GroupChannelList/context.js +5 -5
  81. package/GroupChannelList.js +33 -33
  82. package/MessageSearch/components/MessageSearchUI.js +14 -14
  83. package/MessageSearch/context.js +1 -1
  84. package/MessageSearch.js +14 -14
  85. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  86. package/OpenChannel/components/OpenChannelHeader.js +18 -18
  87. package/OpenChannel/components/OpenChannelInput.js +25 -25
  88. package/OpenChannel/components/OpenChannelMessage.js +35 -35
  89. package/OpenChannel/components/OpenChannelMessageList.js +39 -39
  90. package/OpenChannel/components/OpenChannelUI.js +39 -39
  91. package/OpenChannel/context.js +17 -17
  92. package/OpenChannel.js +39 -39
  93. package/OpenChannelList/components/OpenChannelListUI.js +14 -14
  94. package/OpenChannelList/components/OpenChannelPreview.js +6 -6
  95. package/OpenChannelList/context.js +3 -3
  96. package/OpenChannelList.js +14 -14
  97. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  98. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  99. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -19
  100. package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
  101. package/OpenChannelSettings/components/OperatorUI.js +19 -20
  102. package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
  103. package/OpenChannelSettings/components/ParticipantUI.js +17 -17
  104. package/OpenChannelSettings/context.js +3 -3
  105. package/OpenChannelSettings.js +19 -20
  106. package/OpenChannelSettings.js.map +1 -1
  107. package/SendbirdProvider.js +26 -48
  108. package/SendbirdProvider.js.map +1 -1
  109. package/Thread/components/ParentMessageInfo.js +78 -49
  110. package/Thread/components/ParentMessageInfo.js.map +1 -1
  111. package/Thread/components/ParentMessageInfoItem.js +74 -36
  112. package/Thread/components/ParentMessageInfoItem.js.map +1 -1
  113. package/Thread/components/ThreadHeader.js +7 -7
  114. package/Thread/components/ThreadList.js +46 -46
  115. package/Thread/components/ThreadListItem.js +112 -55
  116. package/Thread/components/ThreadListItem.js.map +1 -1
  117. package/Thread/components/ThreadMessageInput.js +43 -42
  118. package/Thread/components/ThreadMessageInput.js.map +1 -1
  119. package/Thread/components/ThreadUI.js +56 -56
  120. package/Thread/context.js +11 -10
  121. package/Thread/context.js.map +1 -1
  122. package/Thread.js +56 -56
  123. package/VoicePlayer/context.js +3 -3
  124. package/VoicePlayer/useVoicePlayer.js +10 -10
  125. package/VoiceRecorder/context.js +10 -10
  126. package/VoiceRecorder/useVoiceRecorder.js +9 -9
  127. package/chunks/{bundle-BJs_5v6q.js → bundle--v2l79xO.js} +2 -2
  128. package/chunks/{bundle-BJs_5v6q.js.map → bundle--v2l79xO.js.map} +1 -1
  129. package/chunks/{bundle-CF6PMu9B.js → bundle-65boKdRp.js} +1 -1
  130. package/chunks/bundle-65boKdRp.js.map +1 -0
  131. package/chunks/{bundle-BNydv1KA.js → bundle-B5vsennE.js} +6 -6
  132. package/chunks/bundle-B5vsennE.js.map +1 -0
  133. package/chunks/{bundle-CcTHgZqq.js → bundle-BFdttAaW.js} +1 -1
  134. package/chunks/{bundle-CcTHgZqq.js.map → bundle-BFdttAaW.js.map} +1 -1
  135. package/chunks/{bundle-D-cpJ5MP.js → bundle-BJxRm-OS.js} +1 -1
  136. package/chunks/bundle-BJxRm-OS.js.map +1 -0
  137. package/chunks/{bundle-BKG2cvZ9.js → bundle-BKYbtWkn.js} +3 -3
  138. package/chunks/bundle-BKYbtWkn.js.map +1 -0
  139. package/chunks/{bundle-GQqssfTX.js → bundle-BN9xM02J.js} +1 -1
  140. package/chunks/bundle-BN9xM02J.js.map +1 -0
  141. package/chunks/{bundle-CPszRkFg.js → bundle-BQoN_-_d.js} +1 -1
  142. package/chunks/bundle-BQoN_-_d.js.map +1 -0
  143. package/chunks/{bundle-DoLed6JB.js → bundle-BU3SRwZT.js} +1 -1
  144. package/chunks/bundle-BU3SRwZT.js.map +1 -0
  145. package/chunks/{bundle-CfKGkWtT.js → bundle-BUC4DRq0.js} +1 -1
  146. package/chunks/bundle-BUC4DRq0.js.map +1 -0
  147. package/chunks/{bundle-dw1OtCIz.js → bundle-Ba74MVBa.js} +2 -2
  148. package/chunks/{bundle-dw1OtCIz.js.map → bundle-Ba74MVBa.js.map} +1 -1
  149. package/chunks/{bundle-BNeRxCQA.js → bundle-BaMugzjD.js} +1 -1
  150. package/chunks/bundle-BaMugzjD.js.map +1 -0
  151. package/chunks/{bundle-C_n2Emjx.js → bundle-BbRFaX0l.js} +1 -1
  152. package/chunks/bundle-BbRFaX0l.js.map +1 -0
  153. package/chunks/{bundle-DvI4QhV3.js → bundle-BfvTBFop.js} +3 -3
  154. package/chunks/{bundle-DvI4QhV3.js.map → bundle-BfvTBFop.js.map} +1 -1
  155. package/chunks/{bundle-CcVFQEGF.js → bundle-BhXdj56o.js} +3 -3
  156. package/chunks/{bundle-CcVFQEGF.js.map → bundle-BhXdj56o.js.map} +1 -1
  157. package/chunks/{bundle-B2pNgmzq.js → bundle-BjWhPiF7.js} +3 -3
  158. package/chunks/bundle-BjWhPiF7.js.map +1 -0
  159. package/chunks/{bundle-cjTAVQxr.js → bundle-BsCYcxaN.js} +7 -7
  160. package/chunks/{bundle-cjTAVQxr.js.map → bundle-BsCYcxaN.js.map} +1 -1
  161. package/chunks/{bundle-CJIPD7gN.js → bundle-Bsg3ZeXI.js} +3 -3
  162. package/chunks/bundle-Bsg3ZeXI.js.map +1 -0
  163. package/chunks/{bundle-C8TvjQ68.js → bundle-BtLxIgDH.js} +10 -10
  164. package/chunks/{bundle-C8TvjQ68.js.map → bundle-BtLxIgDH.js.map} +1 -1
  165. package/chunks/{bundle-DCjOFMcr.js → bundle-Bu4CHE14.js} +4 -4
  166. package/chunks/bundle-Bu4CHE14.js.map +1 -0
  167. package/chunks/{bundle-aH4n4ipp.js → bundle-BubacXNL.js} +1 -1
  168. package/chunks/{bundle-aH4n4ipp.js.map → bundle-BubacXNL.js.map} +1 -1
  169. package/chunks/{bundle-rSEP1XoB.js → bundle-C-mS5Dam.js} +40 -9
  170. package/{cjs/chunks/bundle-B8jj7upa.js.map → chunks/bundle-C-mS5Dam.js.map} +1 -1
  171. package/chunks/{bundle-CbBN2HTx.js → bundle-C0fGI40C.js} +10 -10
  172. package/chunks/bundle-C0fGI40C.js.map +1 -0
  173. package/chunks/{bundle-CS7t26su.js → bundle-C4xjDmEt.js} +1 -1
  174. package/chunks/bundle-C4xjDmEt.js.map +1 -0
  175. package/chunks/{bundle-BJ9OAqWz.js → bundle-C5Wf2y_6.js} +1 -1
  176. package/chunks/bundle-C5Wf2y_6.js.map +1 -0
  177. package/chunks/{bundle-WwYLGAen.js → bundle-C8jQWzDU.js} +2 -2
  178. package/chunks/bundle-C8jQWzDU.js.map +1 -0
  179. package/chunks/{bundle-BFDyBk4r.js → bundle-CFYZBlok.js} +1 -1
  180. package/chunks/bundle-CFYZBlok.js.map +1 -0
  181. package/chunks/{bundle-Dicb9Y5f.js → bundle-CHtHakLU.js} +6 -6
  182. package/chunks/bundle-CHtHakLU.js.map +1 -0
  183. package/chunks/{bundle-azFrmmyK.js → bundle-CI-NOqgi.js} +10 -10
  184. package/chunks/{bundle-azFrmmyK.js.map → bundle-CI-NOqgi.js.map} +1 -1
  185. package/chunks/{bundle-BSPBjwR6.js → bundle-CIwNgqhu.js} +6 -6
  186. package/chunks/bundle-CIwNgqhu.js.map +1 -0
  187. package/chunks/{bundle-rfEyWmAm.js → bundle-CMax-oWd.js} +1 -1
  188. package/chunks/bundle-CMax-oWd.js.map +1 -0
  189. package/chunks/{bundle-XGYpSNOg.js → bundle-CThF5Krw.js} +5 -5
  190. package/chunks/{bundle-XGYpSNOg.js.map → bundle-CThF5Krw.js.map} +1 -1
  191. package/chunks/{bundle-BdZAuvN7.js → bundle-CVtMSwfw.js} +7 -7
  192. package/chunks/{bundle-BdZAuvN7.js.map → bundle-CVtMSwfw.js.map} +1 -1
  193. package/chunks/{bundle-DkRogqRS.js → bundle-CWVPqsi_.js} +3 -3
  194. package/chunks/bundle-CWVPqsi_.js.map +1 -0
  195. package/chunks/{bundle-C0LxowmB.js → bundle-CWYkDVsf.js} +3 -3
  196. package/chunks/{bundle-C0LxowmB.js.map → bundle-CWYkDVsf.js.map} +1 -1
  197. package/chunks/{bundle-C1RngQCJ.js → bundle-CYIneUd3.js} +9 -9
  198. package/chunks/bundle-CYIneUd3.js.map +1 -0
  199. package/chunks/{bundle-CTyr18ZN.js → bundle-CaUvCYOg.js} +3 -3
  200. package/chunks/{bundle-CTyr18ZN.js.map → bundle-CaUvCYOg.js.map} +1 -1
  201. package/chunks/{bundle-Bf5VthYV.js → bundle-CaYPuZ9G.js} +1 -1
  202. package/chunks/bundle-CaYPuZ9G.js.map +1 -0
  203. package/chunks/{bundle-D_KO6Orc.js → bundle-CfcfVkxG.js} +1 -1
  204. package/chunks/{bundle-D_KO6Orc.js.map → bundle-CfcfVkxG.js.map} +1 -1
  205. package/chunks/{bundle-BoezGGkX.js → bundle-Cl5_xPaV.js} +11 -11
  206. package/chunks/{bundle-BoezGGkX.js.map → bundle-Cl5_xPaV.js.map} +1 -1
  207. package/chunks/{bundle-PsMmoXV_.js → bundle-CmZPkDe1.js} +4 -4
  208. package/chunks/{bundle-PsMmoXV_.js.map → bundle-CmZPkDe1.js.map} +1 -1
  209. package/chunks/{bundle-DgJrJ2xn.js → bundle-CnzbHeuJ.js} +4 -4
  210. package/chunks/bundle-CnzbHeuJ.js.map +1 -0
  211. package/chunks/{bundle-GKCJ2hC_.js → bundle-Ct48juZF.js} +3 -3
  212. package/chunks/{bundle-GKCJ2hC_.js.map → bundle-Ct48juZF.js.map} +1 -1
  213. package/chunks/{bundle-BuIxT5aZ.js → bundle-CuD6w3tY.js} +1 -1
  214. package/chunks/bundle-CuD6w3tY.js.map +1 -0
  215. package/chunks/{bundle-Cvk0UZLW.js → bundle-CuW57Fa0.js} +4 -4
  216. package/chunks/{bundle-Cvk0UZLW.js.map → bundle-CuW57Fa0.js.map} +1 -1
  217. package/chunks/{bundle-DUTTSKO5.js → bundle-CvZD4CjF.js} +3 -3
  218. package/chunks/bundle-CvZD4CjF.js.map +1 -0
  219. package/chunks/{bundle-DnFiUPoR.js → bundle-CwINP854.js} +1 -1
  220. package/chunks/bundle-CwINP854.js.map +1 -0
  221. package/chunks/{bundle-BJgNc4do.js → bundle-Cy3rlDS2.js} +2 -2
  222. package/chunks/{bundle-BJgNc4do.js.map → bundle-Cy3rlDS2.js.map} +1 -1
  223. package/chunks/{bundle-CRLJsnLv.js → bundle-CznK5-Sd.js} +10 -10
  224. package/chunks/{bundle-CRLJsnLv.js.map → bundle-CznK5-Sd.js.map} +1 -1
  225. package/chunks/{bundle-By4sE23W.js → bundle-D4k3lbic.js} +8 -8
  226. package/chunks/{bundle-By4sE23W.js.map → bundle-D4k3lbic.js.map} +1 -1
  227. package/chunks/{bundle-D_X2Bqh-.js → bundle-D6_jF6vA.js} +2 -2
  228. package/chunks/bundle-D6_jF6vA.js.map +1 -0
  229. package/chunks/{bundle-C-_RpFyM.js → bundle-D81rUAiK.js} +3 -3
  230. package/chunks/bundle-D81rUAiK.js.map +1 -0
  231. package/chunks/{bundle-BUy5u56K.js → bundle-DF_LuHdb.js} +1 -1
  232. package/chunks/bundle-DF_LuHdb.js.map +1 -0
  233. package/chunks/{bundle-COGPgRK-.js → bundle-DKfCP7IG.js} +1 -1
  234. package/chunks/bundle-DKfCP7IG.js.map +1 -0
  235. package/chunks/{bundle-D56MXYqF.js → bundle-DMs2iFV3.js} +4 -4
  236. package/chunks/bundle-DMs2iFV3.js.map +1 -0
  237. package/chunks/{bundle-BPclYGwz.js → bundle-DO6PYt2s.js} +1 -1
  238. package/chunks/bundle-DO6PYt2s.js.map +1 -0
  239. package/chunks/{bundle-BvQAepkJ.js → bundle-DPSsFTo9.js} +1 -1
  240. package/chunks/bundle-DPSsFTo9.js.map +1 -0
  241. package/chunks/{bundle-DRIvYDIu.js → bundle-DRcme3Wk.js} +13 -12
  242. package/chunks/{bundle-DRIvYDIu.js.map → bundle-DRcme3Wk.js.map} +1 -1
  243. package/chunks/{bundle-Bys5RwQj.js → bundle-DcURn6BN.js} +2 -2
  244. package/chunks/bundle-DcURn6BN.js.map +1 -0
  245. package/chunks/{bundle-gSQF3Ob-.js → bundle-Don9PlYG.js} +1 -1
  246. package/chunks/bundle-Don9PlYG.js.map +1 -0
  247. package/chunks/{bundle-BH5rbsxO.js → bundle-DoqoSCJx.js} +1370 -120
  248. package/chunks/bundle-DoqoSCJx.js.map +1 -0
  249. package/chunks/{bundle-ynxAt7xC.js → bundle-DrjAD_2v.js} +1 -1
  250. package/chunks/bundle-DrjAD_2v.js.map +1 -0
  251. package/chunks/{bundle-RpPfSzD9.js → bundle-DuUoXuv1.js} +1 -1
  252. package/chunks/{bundle-RpPfSzD9.js.map → bundle-DuUoXuv1.js.map} +1 -1
  253. package/chunks/{bundle-DzuAq6CR.js → bundle-DzZlONIt.js} +2 -2
  254. package/chunks/bundle-DzZlONIt.js.map +1 -0
  255. package/chunks/{bundle-5okwu0-4.js → bundle-FVThTEKh.js} +5 -20
  256. package/chunks/{bundle-5okwu0-4.js.map → bundle-FVThTEKh.js.map} +1 -1
  257. package/chunks/{bundle-zf2ni0YJ.js → bundle-Go8RJZ6S.js} +16 -16
  258. package/chunks/bundle-Go8RJZ6S.js.map +1 -0
  259. package/chunks/{bundle-DRL21d0s.js → bundle-HQX6RTqS.js} +1 -1
  260. package/chunks/bundle-HQX6RTqS.js.map +1 -0
  261. package/chunks/{bundle-DXhynnjn.js → bundle-KeJ_rVJL.js} +1 -1
  262. package/chunks/{bundle-DXhynnjn.js.map → bundle-KeJ_rVJL.js.map} +1 -1
  263. package/chunks/{bundle-B0azZJiA.js → bundle-LL2dZ_t-.js} +14 -14
  264. package/chunks/{bundle-B0azZJiA.js.map → bundle-LL2dZ_t-.js.map} +1 -1
  265. package/chunks/{bundle-87W4GPnC.js → bundle-Y5rRHVbA.js} +1 -1
  266. package/chunks/bundle-Y5rRHVbA.js.map +1 -0
  267. package/chunks/{bundle-BhjXV0mk.js → bundle-YaC569om.js} +1 -1
  268. package/chunks/bundle-YaC569om.js.map +1 -0
  269. package/chunks/{bundle-DTDkmegk.js → bundle-aDOQN2rV.js} +1 -1
  270. package/chunks/bundle-aDOQN2rV.js.map +1 -0
  271. package/chunks/{bundle-N_XkA5JB.js → bundle-abfFo17w.js} +57 -63
  272. package/chunks/bundle-abfFo17w.js.map +1 -0
  273. package/chunks/{bundle-l_8hg8H3.js → bundle-c_OhpzFv.js} +2 -2
  274. package/chunks/bundle-c_OhpzFv.js.map +1 -0
  275. package/chunks/{bundle-BmPxXQ_C.js → bundle-gFk75Dds.js} +5 -5
  276. package/chunks/bundle-gFk75Dds.js.map +1 -0
  277. package/chunks/{bundle-DcOT2xg0.js → bundle-hWMpOZwq.js} +1 -1
  278. package/chunks/bundle-hWMpOZwq.js.map +1 -0
  279. package/chunks/{bundle-CwofYH9U.js → bundle-rA2Y0qFJ.js} +1 -1
  280. package/chunks/bundle-rA2Y0qFJ.js.map +1 -0
  281. package/chunks/{bundle-B1s46xJT.js → bundle-rGg9UI8F.js} +2 -2
  282. package/chunks/bundle-rGg9UI8F.js.map +1 -0
  283. package/chunks/bundle-v1dt12FL.js +16 -0
  284. package/chunks/bundle-v1dt12FL.js.map +1 -0
  285. package/chunks/{bundle-C4sUzPGS.js → bundle-vsdOwl6R.js} +3 -3
  286. package/chunks/bundle-vsdOwl6R.js.map +1 -0
  287. package/cjs/App.js +78 -79
  288. package/cjs/App.js.map +1 -1
  289. package/cjs/Channel/components/ChannelHeader.js +29 -29
  290. package/cjs/Channel/components/ChannelUI.js +65 -65
  291. package/cjs/Channel/components/FileViewer.js +28 -28
  292. package/cjs/Channel/components/FrozenNotification.js +5 -5
  293. package/cjs/Channel/components/Message.js +55 -55
  294. package/cjs/Channel/components/MessageInput.js +41 -41
  295. package/cjs/Channel/components/MessageInputWrapper.js +41 -41
  296. package/cjs/Channel/components/MessageList.js +58 -58
  297. package/cjs/Channel/components/RemoveMessageModal.js +27 -27
  298. package/cjs/Channel/components/SuggestedMentionList.js +27 -27
  299. package/cjs/Channel/components/TypingIndicator.js +6 -6
  300. package/cjs/Channel/components/UnreadCount.js +7 -7
  301. package/cjs/Channel/context.js +21 -24
  302. package/cjs/Channel/context.js.map +1 -1
  303. package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
  304. package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
  305. package/cjs/Channel/utils/compareMessagesForGrouping.js +5 -5
  306. package/cjs/Channel/utils/getMessagePartsInfo.js +6 -6
  307. package/cjs/Channel.js +65 -65
  308. package/cjs/ChannelList/components/AddChannel.js +20 -20
  309. package/cjs/ChannelList/components/ChannelListHeader.js +8 -8
  310. package/cjs/ChannelList/components/ChannelListUI.js +34 -34
  311. package/cjs/ChannelList/components/ChannelPreview.js +27 -27
  312. package/cjs/ChannelList/components/ChannelPreviewAction.js +11 -11
  313. package/cjs/ChannelList/context.js +10 -10
  314. package/cjs/ChannelList.js +34 -34
  315. package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
  316. package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
  317. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +22 -23
  318. package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  319. package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
  320. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  321. package/cjs/ChannelSettings/components/ModerationPanel.js +22 -23
  322. package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
  323. package/cjs/ChannelSettings/components/UserListItem.js +13 -13
  324. package/cjs/ChannelSettings/components/UserPanel.js +20 -20
  325. package/cjs/ChannelSettings/context.js +3 -3
  326. package/cjs/ChannelSettings.js +22 -23
  327. package/cjs/ChannelSettings.js.map +1 -1
  328. package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
  329. package/cjs/CreateChannel/components/InviteUsers.js +16 -16
  330. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  331. package/cjs/CreateChannel/context.js +4 -4
  332. package/cjs/CreateChannel.js +16 -16
  333. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
  334. package/cjs/CreateOpenChannel/context.js +1 -1
  335. package/cjs/CreateOpenChannel.js +11 -11
  336. package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
  337. package/cjs/EditUserProfile.js +12 -12
  338. package/cjs/GroupChannel/components/FileViewer.js +57 -27
  339. package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
  340. package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
  341. package/cjs/GroupChannel/components/GroupChannelHeader.js +23 -22
  342. package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
  343. package/cjs/GroupChannel/components/GroupChannelUI.js +60 -59
  344. package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
  345. package/cjs/GroupChannel/components/Message.js +55 -54
  346. package/cjs/GroupChannel/components/Message.js.map +1 -1
  347. package/cjs/GroupChannel/components/MessageInputWrapper.js +38 -37
  348. package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
  349. package/cjs/GroupChannel/components/MessageList.js +53 -52
  350. package/cjs/GroupChannel/components/MessageList.js.map +1 -1
  351. package/cjs/GroupChannel/components/RemoveMessageModal.js +23 -22
  352. package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
  353. package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
  354. package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
  355. package/cjs/GroupChannel/components/UnreadCount.js +7 -7
  356. package/cjs/GroupChannel/context.js +29 -26
  357. package/cjs/GroupChannel/context.js.map +1 -1
  358. package/cjs/GroupChannel.js +60 -59
  359. package/cjs/GroupChannel.js.map +1 -1
  360. package/cjs/GroupChannelList/components/AddGroupChannel.js +18 -18
  361. package/cjs/GroupChannelList/components/GroupChannelListHeader.js +8 -8
  362. package/cjs/GroupChannelList/components/GroupChannelListItem.js +24 -24
  363. package/cjs/GroupChannelList/components/GroupChannelListUI.js +33 -33
  364. package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
  365. package/cjs/GroupChannelList/context.js +5 -5
  366. package/cjs/GroupChannelList.js +33 -33
  367. package/cjs/MessageSearch/components/MessageSearchUI.js +14 -14
  368. package/cjs/MessageSearch/context.js +1 -1
  369. package/cjs/MessageSearch.js +14 -14
  370. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  371. package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -18
  372. package/cjs/OpenChannel/components/OpenChannelInput.js +25 -25
  373. package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
  374. package/cjs/OpenChannel/components/OpenChannelMessageList.js +39 -39
  375. package/cjs/OpenChannel/components/OpenChannelUI.js +39 -39
  376. package/cjs/OpenChannel/context.js +17 -17
  377. package/cjs/OpenChannel.js +39 -39
  378. package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
  379. package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
  380. package/cjs/OpenChannelList/context.js +3 -3
  381. package/cjs/OpenChannelList.js +14 -14
  382. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  383. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  384. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -19
  385. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
  386. package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -20
  387. package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
  388. package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
  389. package/cjs/OpenChannelSettings/context.js +3 -3
  390. package/cjs/OpenChannelSettings.js +19 -20
  391. package/cjs/OpenChannelSettings.js.map +1 -1
  392. package/cjs/SendbirdProvider.js +26 -48
  393. package/cjs/SendbirdProvider.js.map +1 -1
  394. package/cjs/Thread/components/ParentMessageInfo.js +78 -49
  395. package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
  396. package/cjs/Thread/components/ParentMessageInfoItem.js +74 -36
  397. package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
  398. package/cjs/Thread/components/ThreadHeader.js +7 -7
  399. package/cjs/Thread/components/ThreadList.js +46 -46
  400. package/cjs/Thread/components/ThreadListItem.js +112 -55
  401. package/cjs/Thread/components/ThreadListItem.js.map +1 -1
  402. package/cjs/Thread/components/ThreadMessageInput.js +43 -42
  403. package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
  404. package/cjs/Thread/components/ThreadUI.js +56 -56
  405. package/cjs/Thread/context.js +11 -10
  406. package/cjs/Thread/context.js.map +1 -1
  407. package/cjs/Thread.js +56 -56
  408. package/cjs/VoicePlayer/context.js +3 -3
  409. package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
  410. package/cjs/VoiceRecorder/context.js +10 -10
  411. package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
  412. package/cjs/chunks/{bundle-DxdzDF19.js → bundle--n4D2PVF.js} +2 -2
  413. package/cjs/chunks/bundle--n4D2PVF.js.map +1 -0
  414. package/cjs/chunks/{bundle-DUP4cxoZ.js → bundle-0NyPGfcV.js} +1 -1
  415. package/cjs/chunks/bundle-0NyPGfcV.js.map +1 -0
  416. package/cjs/chunks/{bundle-BsGXZt6G.js → bundle-1Lraxvfp.js} +3 -3
  417. package/cjs/chunks/bundle-1Lraxvfp.js.map +1 -0
  418. package/cjs/chunks/{bundle-BUOuk2jo.js → bundle-3ku2DsRp.js} +2 -2
  419. package/cjs/chunks/bundle-3ku2DsRp.js.map +1 -0
  420. package/cjs/chunks/{bundle-Q5_I3n-8.js → bundle-7SR3bIHI.js} +1 -1
  421. package/cjs/chunks/bundle-7SR3bIHI.js.map +1 -0
  422. package/cjs/chunks/{bundle-CsvKRjaK.js → bundle-B04GCotY.js} +1 -1
  423. package/cjs/chunks/bundle-B04GCotY.js.map +1 -0
  424. package/cjs/chunks/{bundle-DTjdtS4A.js → bundle-BAWPNqDt.js} +13 -12
  425. package/cjs/chunks/bundle-BAWPNqDt.js.map +1 -0
  426. package/cjs/chunks/{bundle-C2v2lxLx.js → bundle-BB5SwDry.js} +3 -3
  427. package/cjs/chunks/bundle-BB5SwDry.js.map +1 -0
  428. package/cjs/chunks/{bundle-1hCsXfVb.js → bundle-BDam-wvP.js} +1 -1
  429. package/cjs/chunks/{bundle-1hCsXfVb.js.map → bundle-BDam-wvP.js.map} +1 -1
  430. package/cjs/chunks/{bundle-7GCXhi1c.js → bundle-BHoDcZuM.js} +3 -3
  431. package/cjs/chunks/bundle-BHoDcZuM.js.map +1 -0
  432. package/cjs/chunks/{bundle-DJxxPTK5.js → bundle-BQ8kBY7P.js} +3 -3
  433. package/cjs/chunks/{bundle-DJxxPTK5.js.map → bundle-BQ8kBY7P.js.map} +1 -1
  434. package/cjs/chunks/{bundle-jdEKrUGh.js → bundle-BZwhrU6K.js} +1 -1
  435. package/cjs/chunks/bundle-BZwhrU6K.js.map +1 -0
  436. package/cjs/chunks/{bundle-6eXm5bOG.js → bundle-BaJn2YsZ.js} +1 -1
  437. package/cjs/chunks/bundle-BaJn2YsZ.js.map +1 -0
  438. package/cjs/chunks/{bundle-DREyIwSt.js → bundle-BdkEfjlQ.js} +10 -10
  439. package/cjs/chunks/{bundle-DREyIwSt.js.map → bundle-BdkEfjlQ.js.map} +1 -1
  440. package/cjs/chunks/{bundle-Dy6Gn-sd.js → bundle-Bqn5UkGf.js} +7 -7
  441. package/cjs/chunks/bundle-Bqn5UkGf.js.map +1 -0
  442. package/cjs/chunks/{bundle-C88DsCNB.js → bundle-BvwX2pXU.js} +3 -3
  443. package/cjs/chunks/bundle-BvwX2pXU.js.map +1 -0
  444. package/cjs/chunks/{bundle-BMsGwLym.js → bundle-BwuEkyq5.js} +1 -1
  445. package/cjs/chunks/bundle-BwuEkyq5.js.map +1 -0
  446. package/cjs/chunks/{bundle-BlvFC-Rm.js → bundle-Bx_5BAxl.js} +1 -1
  447. package/cjs/chunks/bundle-Bx_5BAxl.js.map +1 -0
  448. package/cjs/chunks/{bundle-BxaGZqGJ.js → bundle-ByUOxOjA.js} +3 -3
  449. package/cjs/chunks/bundle-ByUOxOjA.js.map +1 -0
  450. package/cjs/chunks/{bundle-FD0n8tOs.js → bundle-C1NORWsC.js} +4 -4
  451. package/cjs/chunks/bundle-C1NORWsC.js.map +1 -0
  452. package/cjs/chunks/{bundle-Y_FLyDnc.js → bundle-CDD7rA5D.js} +40 -9
  453. package/cjs/chunks/bundle-CDD7rA5D.js.map +1 -0
  454. package/cjs/chunks/{bundle-INETVVGE.js → bundle-CIoqC6d1.js} +1 -1
  455. package/cjs/chunks/bundle-CIoqC6d1.js.map +1 -0
  456. package/cjs/chunks/{bundle-qgvbJv89.js → bundle-CM2Yesst.js} +2 -2
  457. package/cjs/chunks/bundle-CM2Yesst.js.map +1 -0
  458. package/cjs/chunks/{bundle-tHnRbr7F.js → bundle-CYRD0mhW.js} +1 -1
  459. package/cjs/chunks/bundle-CYRD0mhW.js.map +1 -0
  460. package/cjs/chunks/{bundle-CqF06THu.js → bundle-CcICQ161.js} +1 -1
  461. package/cjs/chunks/{bundle-CqF06THu.js.map → bundle-CcICQ161.js.map} +1 -1
  462. package/cjs/chunks/{bundle-BF04PgMH.js → bundle-CcejNHwV.js} +1 -1
  463. package/cjs/chunks/bundle-CcejNHwV.js.map +1 -0
  464. package/cjs/chunks/{bundle-03LrACV2.js → bundle-CjPaNItW.js} +6 -6
  465. package/cjs/chunks/bundle-CjPaNItW.js.map +1 -0
  466. package/cjs/chunks/{bundle-BgLtZgZ_.js → bundle-Co8JsD2l.js} +1 -1
  467. package/cjs/chunks/bundle-Co8JsD2l.js.map +1 -0
  468. package/cjs/chunks/{bundle-CS644BJp.js → bundle-CpgiyizX.js} +1369 -119
  469. package/cjs/chunks/bundle-CpgiyizX.js.map +1 -0
  470. package/cjs/chunks/{bundle-DRFWOXrL.js → bundle-Cq1mLH5J.js} +1 -1
  471. package/cjs/chunks/bundle-Cq1mLH5J.js.map +1 -0
  472. package/cjs/chunks/{bundle-BwO19Jro.js → bundle-Crb55m_S.js} +3 -3
  473. package/cjs/chunks/bundle-Crb55m_S.js.map +1 -0
  474. package/cjs/chunks/{bundle-DX2BaZv_.js → bundle-Ctjr6ytm.js} +2 -2
  475. package/cjs/chunks/bundle-Ctjr6ytm.js.map +1 -0
  476. package/cjs/chunks/{bundle-Cyr1aQpR.js → bundle-Cv_3sQEK.js} +1 -1
  477. package/cjs/chunks/bundle-Cv_3sQEK.js.map +1 -0
  478. package/cjs/chunks/{bundle-BVgN7Stu.js → bundle-D1LOTtRp.js} +2 -2
  479. package/cjs/chunks/{bundle-BVgN7Stu.js.map → bundle-D1LOTtRp.js.map} +1 -1
  480. package/cjs/chunks/{bundle-tOZCSmZj.js → bundle-D2rrmfUO.js} +2 -2
  481. package/cjs/chunks/bundle-D2rrmfUO.js.map +1 -0
  482. package/cjs/chunks/{bundle-B8jj7upa.js → bundle-D69KMIe6.js} +4 -4
  483. package/cjs/chunks/bundle-D69KMIe6.js.map +1 -0
  484. package/cjs/chunks/{bundle-7FLBAmYO.js → bundle-DC4hSZ50.js} +2 -2
  485. package/cjs/chunks/{bundle-7FLBAmYO.js.map → bundle-DC4hSZ50.js.map} +1 -1
  486. package/cjs/chunks/{bundle-CmFB08Wf.js → bundle-DDm1Q65G.js} +3 -3
  487. package/cjs/chunks/bundle-DDm1Q65G.js.map +1 -0
  488. package/cjs/chunks/{bundle-B-dy_WYW.js → bundle-DJ64rHSo.js} +8 -8
  489. package/cjs/chunks/{bundle-B-dy_WYW.js.map → bundle-DJ64rHSo.js.map} +1 -1
  490. package/cjs/chunks/{bundle-dNtU9_eg.js → bundle-DOVeRCEG.js} +6 -6
  491. package/cjs/chunks/bundle-DOVeRCEG.js.map +1 -0
  492. package/cjs/chunks/{bundle-BH87xcnc.js → bundle-DSsqgxx7.js} +1 -1
  493. package/cjs/chunks/bundle-DSsqgxx7.js.map +1 -0
  494. package/cjs/chunks/{bundle-e6crA6HI.js → bundle-DTNXVmlf.js} +1 -1
  495. package/cjs/chunks/bundle-DTNXVmlf.js.map +1 -0
  496. package/cjs/chunks/{bundle-9K7l85xj.js → bundle-DUpA78AC.js} +4 -4
  497. package/cjs/chunks/bundle-DUpA78AC.js.map +1 -0
  498. package/cjs/chunks/{bundle-DjB9bkvD.js → bundle-DWVQJ2gC.js} +1 -1
  499. package/cjs/chunks/bundle-DWVQJ2gC.js.map +1 -0
  500. package/cjs/chunks/{bundle-BVuqbZx2.js → bundle-DWwL0a4W.js} +11 -11
  501. package/cjs/chunks/{bundle-BVuqbZx2.js.map → bundle-DWwL0a4W.js.map} +1 -1
  502. package/cjs/chunks/{bundle-B1Nml3ap.js → bundle-DYH-Fpti.js} +4 -19
  503. package/cjs/chunks/{bundle-B1Nml3ap.js.map → bundle-DYH-Fpti.js.map} +1 -1
  504. package/cjs/chunks/{bundle-BVLguSfh.js → bundle-Dcn5Xw_v.js} +4 -4
  505. package/cjs/chunks/{bundle-BVLguSfh.js.map → bundle-Dcn5Xw_v.js.map} +1 -1
  506. package/cjs/chunks/{bundle-CD9H6RqJ.js → bundle-Dg5cJzTw.js} +57 -63
  507. package/cjs/chunks/bundle-Dg5cJzTw.js.map +1 -0
  508. package/cjs/chunks/{bundle-BpOxHgfP.js → bundle-Dhc8aysm.js} +3 -3
  509. package/cjs/chunks/bundle-Dhc8aysm.js.map +1 -0
  510. package/cjs/chunks/{bundle-SIHqK2VF.js → bundle-DoE4Q2WU.js} +1 -1
  511. package/cjs/chunks/bundle-DoE4Q2WU.js.map +1 -0
  512. package/cjs/chunks/{bundle-ORLbcTP_.js → bundle-DsxetdDB.js} +1 -1
  513. package/cjs/chunks/bundle-DsxetdDB.js.map +1 -0
  514. package/cjs/chunks/{bundle-C8cnT2au.js → bundle-DvowIJM9.js} +9 -9
  515. package/cjs/chunks/bundle-DvowIJM9.js.map +1 -0
  516. package/cjs/chunks/{bundle-D1duSVks.js → bundle-L3CfQ_hg.js} +14 -14
  517. package/cjs/chunks/{bundle-D1duSVks.js.map → bundle-L3CfQ_hg.js.map} +1 -1
  518. package/cjs/chunks/{bundle-NU2voiKZ.js → bundle-LsedFW92.js} +2 -2
  519. package/cjs/chunks/bundle-LsedFW92.js.map +1 -0
  520. package/cjs/chunks/{bundle-BdHrSYl1.js → bundle-N_1Gt5W3.js} +4 -4
  521. package/cjs/chunks/bundle-N_1Gt5W3.js.map +1 -0
  522. package/cjs/chunks/{bundle-C9YHSQ4e.js → bundle-QN_dssGC.js} +1 -1
  523. package/cjs/chunks/bundle-QN_dssGC.js.map +1 -0
  524. package/cjs/chunks/{bundle-djPmP6bl.js → bundle-TEaGoE63.js} +5 -5
  525. package/cjs/chunks/bundle-TEaGoE63.js.map +1 -0
  526. package/cjs/chunks/{bundle-CDBTt08y.js → bundle-XORoItM6.js} +1 -1
  527. package/cjs/chunks/bundle-XORoItM6.js.map +1 -0
  528. package/cjs/chunks/{bundle-DgY0qwTL.js → bundle-ZARlfEpr.js} +5 -5
  529. package/cjs/chunks/bundle-ZARlfEpr.js.map +1 -0
  530. package/cjs/chunks/{bundle-CW9QUnWM.js → bundle-_KPYoqvO.js} +1 -1
  531. package/cjs/chunks/bundle-_KPYoqvO.js.map +1 -0
  532. package/cjs/chunks/{bundle-xvNVoWia.js → bundle-cFWnX4Tf.js} +6 -6
  533. package/cjs/chunks/bundle-cFWnX4Tf.js.map +1 -0
  534. package/cjs/chunks/{bundle-C9jXxNI1.js → bundle-gYlXAuPh.js} +7 -7
  535. package/cjs/chunks/bundle-gYlXAuPh.js.map +1 -0
  536. package/cjs/chunks/{bundle-JNAedgrE.js → bundle-hQ7iLiTN.js} +1 -1
  537. package/cjs/chunks/bundle-hQ7iLiTN.js.map +1 -0
  538. package/cjs/chunks/{bundle-BR23SbdZ.js → bundle-hVPEu0_c.js} +3 -3
  539. package/cjs/chunks/{bundle-BR23SbdZ.js.map → bundle-hVPEu0_c.js.map} +1 -1
  540. package/cjs/chunks/{bundle-f6dhmXLj.js → bundle-ioAYAc1x.js} +2 -2
  541. package/cjs/chunks/bundle-ioAYAc1x.js.map +1 -0
  542. package/cjs/chunks/bundle-k-Y_BM9m.js +18 -0
  543. package/cjs/chunks/bundle-k-Y_BM9m.js.map +1 -0
  544. package/cjs/chunks/{bundle-cf3-zuo6.js → bundle-lRPypcEP.js} +1 -1
  545. package/cjs/chunks/bundle-lRPypcEP.js.map +1 -0
  546. package/cjs/chunks/{bundle-DNP731Dg.js → bundle-lg2VZUfB.js} +16 -16
  547. package/cjs/chunks/bundle-lg2VZUfB.js.map +1 -0
  548. package/cjs/chunks/{bundle-DAVdWPDx.js → bundle-lwejARF-.js} +10 -10
  549. package/cjs/chunks/bundle-lwejARF-.js.map +1 -0
  550. package/cjs/chunks/{bundle-DfYperTC.js → bundle-mgZT4o2L.js} +1 -1
  551. package/cjs/chunks/bundle-mgZT4o2L.js.map +1 -0
  552. package/cjs/chunks/{bundle-8oxVWV_9.js → bundle-n7yqWnYc.js} +1 -1
  553. package/cjs/chunks/bundle-n7yqWnYc.js.map +1 -0
  554. package/cjs/chunks/{bundle-Cmmi9pdk.js → bundle-nbIOXEwY.js} +1 -1
  555. package/cjs/chunks/{bundle-Cmmi9pdk.js.map → bundle-nbIOXEwY.js.map} +1 -1
  556. package/cjs/chunks/{bundle-BR1tsZpK.js → bundle-pDTpawXd.js} +1 -1
  557. package/cjs/chunks/bundle-pDTpawXd.js.map +1 -0
  558. package/cjs/chunks/{bundle--ToWZ9cj.js → bundle-pJv3Q0cb.js} +1 -1
  559. package/cjs/chunks/bundle-pJv3Q0cb.js.map +1 -0
  560. package/cjs/chunks/{bundle-Dpu1gg5r.js → bundle-pW3_ob-0.js} +1 -1
  561. package/cjs/chunks/bundle-pW3_ob-0.js.map +1 -0
  562. package/cjs/chunks/{bundle-DcPTVUQJ.js → bundle-qc5egsO_.js} +3 -3
  563. package/cjs/chunks/bundle-qc5egsO_.js.map +1 -0
  564. package/cjs/chunks/{bundle-MFvyy6ar.js → bundle-sRcY6eTA.js} +10 -10
  565. package/cjs/chunks/{bundle-MFvyy6ar.js.map → bundle-sRcY6eTA.js.map} +1 -1
  566. package/cjs/chunks/{bundle-CIswYN43.js → bundle-vsCAD9Ej.js} +3 -3
  567. package/cjs/chunks/bundle-vsCAD9Ej.js.map +1 -0
  568. package/cjs/chunks/{bundle-B2cSnWcr.js → bundle-xOjjMFaY.js} +1 -1
  569. package/cjs/chunks/bundle-xOjjMFaY.js.map +1 -0
  570. package/cjs/chunks/{bundle-Bm5ysFU-.js → bundle-xn7uMkjF.js} +10 -10
  571. package/cjs/chunks/bundle-xn7uMkjF.js.map +1 -0
  572. package/cjs/hooks/useModal.js +9 -9
  573. package/cjs/index.js +82 -83
  574. package/cjs/index.js.map +1 -1
  575. package/cjs/pubSub/topics.js +1 -1
  576. package/cjs/sendbirdSelectors.js +2 -2
  577. package/cjs/ui/Accordion.js +28 -36
  578. package/cjs/ui/Accordion.js.map +1 -1
  579. package/cjs/ui/AccordionGroup.js +47 -11
  580. package/cjs/ui/AccordionGroup.js.map +1 -1
  581. package/cjs/ui/AdminMessage.js +3 -3
  582. package/cjs/ui/Avatar.js +4 -4
  583. package/cjs/ui/Badge.js +5 -5
  584. package/cjs/ui/BottomSheet.js +9 -9
  585. package/cjs/ui/Button.js +3 -3
  586. package/cjs/ui/ChannelAvatar.js +5 -5
  587. package/cjs/ui/ConnectionStatus.js +6 -6
  588. package/cjs/ui/ContextMenu.js +6 -6
  589. package/cjs/ui/DateSeparator.js +4 -4
  590. package/cjs/ui/EmojiReactions.js +29 -17
  591. package/cjs/ui/EmojiReactions.js.map +1 -1
  592. package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
  593. package/cjs/ui/FileMessageItemBody.js +50 -12
  594. package/cjs/ui/FileMessageItemBody.js.map +1 -1
  595. package/cjs/ui/FileViewer.js +15 -15
  596. package/cjs/ui/Icon.js +2 -2
  597. package/cjs/ui/IconButton.js +1 -1
  598. package/cjs/ui/ImageRenderer.js +3 -3
  599. package/cjs/ui/Input.js +3 -3
  600. package/cjs/ui/Label.js +3 -3
  601. package/cjs/ui/LinkLabel.js +3 -3
  602. package/cjs/ui/Loader.js +2 -2
  603. package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
  604. package/cjs/ui/MentionLabel.js +13 -13
  605. package/cjs/ui/MentionUserLabel.js +1 -1
  606. package/cjs/ui/MessageContent.js +138 -114
  607. package/cjs/ui/MessageContent.js.map +1 -1
  608. package/cjs/ui/MessageFeedbackFailedModal.js +35 -0
  609. package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -0
  610. package/cjs/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
  611. package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
  612. package/cjs/ui/MessageInput.js +15 -15
  613. package/cjs/ui/MessageItemMenu.js +63 -26
  614. package/cjs/ui/MessageItemMenu.js.map +1 -1
  615. package/cjs/ui/MessageItemReactionMenu.js +9 -9
  616. package/cjs/ui/MessageSearchFileItem.js +14 -14
  617. package/cjs/ui/MessageSearchItem.js +11 -11
  618. package/cjs/ui/MessageStatus.js +12 -12
  619. package/cjs/ui/MessageTemplate.js +2 -1
  620. package/cjs/ui/MessageTemplate.js.map +1 -1
  621. package/cjs/ui/MobileFeedbackMenu.js +9 -9
  622. package/cjs/ui/Modal.js +8 -8
  623. package/cjs/ui/MutedAvatarOverlay.js +2 -2
  624. package/cjs/ui/OGMessageItemBody.js +19 -17
  625. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  626. package/cjs/ui/OpenChannelAdminMessage.js +3 -3
  627. package/cjs/ui/OpenChannelAvatar.js +8 -8
  628. package/cjs/ui/OpenchannelConversationHeader.js +8 -8
  629. package/cjs/ui/OpenchannelFileMessage.js +18 -18
  630. package/cjs/ui/OpenchannelOGMessage.js +20 -20
  631. package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
  632. package/cjs/ui/OpenchannelUserMessage.js +18 -18
  633. package/cjs/ui/PlaceHolder.js +6 -6
  634. package/cjs/ui/PlaybackTime.js +3 -3
  635. package/cjs/ui/QuoteMessage.js +9 -9
  636. package/cjs/ui/QuoteMessageInput.js +9 -9
  637. package/cjs/ui/ReactionBadge.js +3 -3
  638. package/cjs/ui/ReactionButton.js +4 -4
  639. package/cjs/ui/SortByRow.js +2 -2
  640. package/cjs/ui/TemplateMessageItemBody.js +143 -72
  641. package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
  642. package/cjs/ui/TextButton.js +2 -2
  643. package/cjs/ui/TextMessageItemBody.js +16 -16
  644. package/cjs/ui/ThreadReplies.js +8 -8
  645. package/cjs/ui/ThumbnailMessageItemBody.js +7 -7
  646. package/cjs/ui/Toggle.js +1 -1
  647. package/cjs/ui/Tooltip.js +3 -3
  648. package/cjs/ui/TooltipWrapper.js +1 -1
  649. package/cjs/ui/TypingIndicatorBubble.js +4 -4
  650. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  651. package/cjs/ui/UserListItem.js +17 -16
  652. package/cjs/ui/UserListItem.js.map +1 -1
  653. package/cjs/ui/UserProfile.js +10 -10
  654. package/cjs/ui/VoiceMessageInput.js +9 -9
  655. package/cjs/ui/VoiceMessageItemBody.js +10 -10
  656. package/cjs/ui/Word.js +13 -13
  657. package/cjs/useSendbirdStateContext.js +1 -1
  658. package/cjs/utils/message/isVoiceMessage.js +3 -3
  659. package/cjs/withSendbird.js +1 -1
  660. package/dist/index.css +142 -148
  661. package/dist/index.css.map +1 -1
  662. package/hooks/useModal.js +10 -10
  663. package/index.js +82 -83
  664. package/index.js.map +1 -1
  665. package/package.json +19 -19
  666. package/pubSub/topics.js +1 -1
  667. package/sendbirdSelectors.js +2 -2
  668. package/types/lib/dux/appInfo/initialState.d.ts +1 -0
  669. package/types/lib/types.d.ts +1 -0
  670. package/types/modules/ChannelSettings/components/ModerationPanel/index.d.ts +1 -1
  671. package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +5 -3
  672. package/types/modules/GroupChannel/components/Message/MessageView.d.ts +6 -0
  673. package/types/modules/GroupChannel/components/MessageTemplateWrapper/index.d.ts +1 -1
  674. package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +6 -1
  675. package/types/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.d.ts +3 -1
  676. package/types/modules/Thread/context/ThreadProvider.d.ts +2 -0
  677. package/types/types.d.ts +1 -2
  678. package/types/ui/Accordion/Accordion.d.ts +10 -0
  679. package/types/ui/Accordion/AccordionGroup.d.ts +15 -5
  680. package/types/ui/Accordion/index.d.ts +6 -12
  681. package/types/ui/Carousel/index.d.ts +2 -3
  682. package/types/ui/EmojiReactions/index.d.ts +1 -2
  683. package/types/ui/FileMessageItemBody/index.d.ts +3 -1
  684. package/types/ui/FileViewer/index.d.ts +2 -1
  685. package/types/ui/FileViewer/types.d.ts +4 -2
  686. package/types/ui/MessageContent/MessageBody/index.d.ts +5 -1
  687. package/types/ui/MessageContent/index.d.ts +3 -1
  688. package/types/{modules/Channel/components → ui}/MessageFeedbackModal/index.d.ts +1 -1
  689. package/types/ui/MessageItemMenu/index.d.ts +10 -2
  690. package/types/ui/MessageTemplate/index.d.ts +4 -3
  691. package/types/ui/MessageTemplate/messageTemplateErrorBoundary.d.ts +3 -0
  692. package/types/ui/MobileMenu/types.d.ts +2 -1
  693. package/types/ui/MultipleFilesMessageItemBody/index.d.ts +3 -1
  694. package/types/ui/TemplateMessageItemBody/index.d.ts +3 -2
  695. package/types/ui/TemplateMessageItemBody/types.d.ts +11 -12
  696. package/types/ui/UserListItem/index.d.ts +2 -1
  697. package/types/utils/getIsReactionEnabled.d.ts +5 -4
  698. package/types/utils/index.d.ts +0 -2
  699. package/ui/Accordion.js +28 -39
  700. package/ui/Accordion.js.map +1 -1
  701. package/ui/AccordionGroup.js +43 -12
  702. package/ui/AccordionGroup.js.map +1 -1
  703. package/ui/AdminMessage.js +3 -3
  704. package/ui/Avatar.js +4 -4
  705. package/ui/Badge.js +5 -5
  706. package/ui/BottomSheet.js +9 -9
  707. package/ui/Button.js +3 -3
  708. package/ui/ChannelAvatar.js +5 -5
  709. package/ui/ConnectionStatus.js +6 -6
  710. package/ui/ContextMenu.js +6 -6
  711. package/ui/DateSeparator.js +4 -4
  712. package/ui/EmojiReactions.js +29 -17
  713. package/ui/EmojiReactions.js.map +1 -1
  714. package/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
  715. package/ui/FileMessageItemBody.js +50 -12
  716. package/ui/FileMessageItemBody.js.map +1 -1
  717. package/ui/FileViewer.js +15 -15
  718. package/ui/Icon.js +2 -2
  719. package/ui/IconButton.js +1 -1
  720. package/ui/ImageRenderer.js +3 -3
  721. package/ui/Input.js +3 -3
  722. package/ui/Label.js +3 -3
  723. package/ui/LinkLabel.js +3 -3
  724. package/ui/Loader.js +2 -2
  725. package/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
  726. package/ui/MentionLabel.js +13 -13
  727. package/ui/MentionUserLabel.js +1 -1
  728. package/ui/MessageContent.js +137 -113
  729. package/ui/MessageContent.js.map +1 -1
  730. package/ui/MessageFeedbackFailedModal.js +33 -0
  731. package/ui/MessageFeedbackFailedModal.js.map +1 -0
  732. package/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
  733. package/ui/MessageInput/hooks/usePaste.js +7 -7
  734. package/ui/MessageInput.js +15 -15
  735. package/ui/MessageItemMenu.js +63 -26
  736. package/ui/MessageItemMenu.js.map +1 -1
  737. package/ui/MessageItemReactionMenu.js +9 -9
  738. package/ui/MessageSearchFileItem.js +14 -14
  739. package/ui/MessageSearchItem.js +11 -11
  740. package/ui/MessageStatus.js +12 -12
  741. package/ui/MessageTemplate.js +2 -1
  742. package/ui/MessageTemplate.js.map +1 -1
  743. package/ui/MobileFeedbackMenu.js +9 -9
  744. package/ui/Modal.js +8 -8
  745. package/ui/MutedAvatarOverlay.js +2 -2
  746. package/ui/OGMessageItemBody.js +19 -17
  747. package/ui/OGMessageItemBody.js.map +1 -1
  748. package/ui/OpenChannelAdminMessage.js +3 -3
  749. package/ui/OpenChannelAvatar.js +8 -8
  750. package/ui/OpenchannelConversationHeader.js +8 -8
  751. package/ui/OpenchannelFileMessage.js +18 -18
  752. package/ui/OpenchannelOGMessage.js +20 -20
  753. package/ui/OpenchannelThumbnailMessage.js +17 -17
  754. package/ui/OpenchannelUserMessage.js +18 -18
  755. package/ui/PlaceHolder.js +6 -6
  756. package/ui/PlaybackTime.js +3 -3
  757. package/ui/QuoteMessage.js +9 -9
  758. package/ui/QuoteMessageInput.js +9 -9
  759. package/ui/ReactionBadge.js +3 -3
  760. package/ui/ReactionButton.js +4 -4
  761. package/ui/SortByRow.js +2 -2
  762. package/ui/TemplateMessageItemBody.js +143 -72
  763. package/ui/TemplateMessageItemBody.js.map +1 -1
  764. package/ui/TextButton.js +2 -2
  765. package/ui/TextMessageItemBody.js +16 -16
  766. package/ui/ThreadReplies.js +8 -8
  767. package/ui/ThumbnailMessageItemBody.js +7 -7
  768. package/ui/Toggle.js +1 -1
  769. package/ui/Tooltip.js +3 -3
  770. package/ui/TooltipWrapper.js +1 -1
  771. package/ui/TypingIndicatorBubble.js +4 -4
  772. package/ui/UnknownMessageItemBody.js +7 -7
  773. package/ui/UserListItem.js +17 -16
  774. package/ui/UserListItem.js.map +1 -1
  775. package/ui/UserProfile.js +10 -10
  776. package/ui/VoiceMessageInput.js +9 -9
  777. package/ui/VoiceMessageItemBody.js +10 -10
  778. package/ui/Word.js +13 -13
  779. package/useSendbirdStateContext.js +1 -1
  780. package/utils/message/isVoiceMessage.js +3 -3
  781. package/withSendbird.js +1 -1
  782. package/chunks/bundle-87W4GPnC.js.map +0 -1
  783. package/chunks/bundle-B1s46xJT.js.map +0 -1
  784. package/chunks/bundle-B2pNgmzq.js.map +0 -1
  785. package/chunks/bundle-B5kwbUC5.js +0 -11
  786. package/chunks/bundle-B5kwbUC5.js.map +0 -1
  787. package/chunks/bundle-BFDyBk4r.js.map +0 -1
  788. package/chunks/bundle-BH5rbsxO.js.map +0 -1
  789. package/chunks/bundle-BJ9OAqWz.js.map +0 -1
  790. package/chunks/bundle-BKG2cvZ9.js.map +0 -1
  791. package/chunks/bundle-BNeRxCQA.js.map +0 -1
  792. package/chunks/bundle-BNydv1KA.js.map +0 -1
  793. package/chunks/bundle-BPclYGwz.js.map +0 -1
  794. package/chunks/bundle-BSPBjwR6.js.map +0 -1
  795. package/chunks/bundle-BUy5u56K.js.map +0 -1
  796. package/chunks/bundle-Bf5VthYV.js.map +0 -1
  797. package/chunks/bundle-BhjXV0mk.js.map +0 -1
  798. package/chunks/bundle-BmPxXQ_C.js.map +0 -1
  799. package/chunks/bundle-BuIxT5aZ.js.map +0 -1
  800. package/chunks/bundle-BvQAepkJ.js.map +0 -1
  801. package/chunks/bundle-Bys5RwQj.js.map +0 -1
  802. package/chunks/bundle-C-_RpFyM.js.map +0 -1
  803. package/chunks/bundle-C1RngQCJ.js.map +0 -1
  804. package/chunks/bundle-C4sUzPGS.js.map +0 -1
  805. package/chunks/bundle-CF6PMu9B.js.map +0 -1
  806. package/chunks/bundle-CJIPD7gN.js.map +0 -1
  807. package/chunks/bundle-COGPgRK-.js.map +0 -1
  808. package/chunks/bundle-CPszRkFg.js.map +0 -1
  809. package/chunks/bundle-CS7t26su.js.map +0 -1
  810. package/chunks/bundle-C_n2Emjx.js.map +0 -1
  811. package/chunks/bundle-CbBN2HTx.js.map +0 -1
  812. package/chunks/bundle-CfKGkWtT.js.map +0 -1
  813. package/chunks/bundle-CwofYH9U.js.map +0 -1
  814. package/chunks/bundle-D-cpJ5MP.js.map +0 -1
  815. package/chunks/bundle-D56MXYqF.js.map +0 -1
  816. package/chunks/bundle-DCjOFMcr.js.map +0 -1
  817. package/chunks/bundle-DRL21d0s.js.map +0 -1
  818. package/chunks/bundle-DTDkmegk.js.map +0 -1
  819. package/chunks/bundle-DUTTSKO5.js.map +0 -1
  820. package/chunks/bundle-D_X2Bqh-.js.map +0 -1
  821. package/chunks/bundle-DcOT2xg0.js.map +0 -1
  822. package/chunks/bundle-DgJrJ2xn.js.map +0 -1
  823. package/chunks/bundle-Dicb9Y5f.js.map +0 -1
  824. package/chunks/bundle-DkRogqRS.js.map +0 -1
  825. package/chunks/bundle-DnFiUPoR.js.map +0 -1
  826. package/chunks/bundle-DoLed6JB.js.map +0 -1
  827. package/chunks/bundle-DrfdRrEf.js +0 -12
  828. package/chunks/bundle-DrfdRrEf.js.map +0 -1
  829. package/chunks/bundle-DzuAq6CR.js.map +0 -1
  830. package/chunks/bundle-GQqssfTX.js.map +0 -1
  831. package/chunks/bundle-N_XkA5JB.js.map +0 -1
  832. package/chunks/bundle-WwYLGAen.js.map +0 -1
  833. package/chunks/bundle-gSQF3Ob-.js.map +0 -1
  834. package/chunks/bundle-l_8hg8H3.js.map +0 -1
  835. package/chunks/bundle-rSEP1XoB.js.map +0 -1
  836. package/chunks/bundle-rfEyWmAm.js.map +0 -1
  837. package/chunks/bundle-ynxAt7xC.js.map +0 -1
  838. package/chunks/bundle-zf2ni0YJ.js.map +0 -1
  839. package/cjs/chunks/bundle--ToWZ9cj.js.map +0 -1
  840. package/cjs/chunks/bundle-03LrACV2.js.map +0 -1
  841. package/cjs/chunks/bundle-6eXm5bOG.js.map +0 -1
  842. package/cjs/chunks/bundle-7GCXhi1c.js.map +0 -1
  843. package/cjs/chunks/bundle-8oxVWV_9.js.map +0 -1
  844. package/cjs/chunks/bundle-9K7l85xj.js.map +0 -1
  845. package/cjs/chunks/bundle-B2cSnWcr.js.map +0 -1
  846. package/cjs/chunks/bundle-BF04PgMH.js.map +0 -1
  847. package/cjs/chunks/bundle-BH87xcnc.js.map +0 -1
  848. package/cjs/chunks/bundle-BLh1DOSs.js +0 -15
  849. package/cjs/chunks/bundle-BLh1DOSs.js.map +0 -1
  850. package/cjs/chunks/bundle-BMsGwLym.js.map +0 -1
  851. package/cjs/chunks/bundle-BR1tsZpK.js.map +0 -1
  852. package/cjs/chunks/bundle-BUOuk2jo.js.map +0 -1
  853. package/cjs/chunks/bundle-BdHrSYl1.js.map +0 -1
  854. package/cjs/chunks/bundle-BgLtZgZ_.js.map +0 -1
  855. package/cjs/chunks/bundle-BlvFC-Rm.js.map +0 -1
  856. package/cjs/chunks/bundle-Bm5ysFU-.js.map +0 -1
  857. package/cjs/chunks/bundle-BpOxHgfP.js.map +0 -1
  858. package/cjs/chunks/bundle-BsGXZt6G.js.map +0 -1
  859. package/cjs/chunks/bundle-BwO19Jro.js.map +0 -1
  860. package/cjs/chunks/bundle-BxaGZqGJ.js.map +0 -1
  861. package/cjs/chunks/bundle-C2v2lxLx.js.map +0 -1
  862. package/cjs/chunks/bundle-C88DsCNB.js.map +0 -1
  863. package/cjs/chunks/bundle-C8cnT2au.js.map +0 -1
  864. package/cjs/chunks/bundle-C9YHSQ4e.js.map +0 -1
  865. package/cjs/chunks/bundle-C9jXxNI1.js.map +0 -1
  866. package/cjs/chunks/bundle-CCVRe_w3.js +0 -13
  867. package/cjs/chunks/bundle-CCVRe_w3.js.map +0 -1
  868. package/cjs/chunks/bundle-CD9H6RqJ.js.map +0 -1
  869. package/cjs/chunks/bundle-CDBTt08y.js.map +0 -1
  870. package/cjs/chunks/bundle-CIswYN43.js.map +0 -1
  871. package/cjs/chunks/bundle-CS644BJp.js.map +0 -1
  872. package/cjs/chunks/bundle-CW9QUnWM.js.map +0 -1
  873. package/cjs/chunks/bundle-CmFB08Wf.js.map +0 -1
  874. package/cjs/chunks/bundle-CsvKRjaK.js.map +0 -1
  875. package/cjs/chunks/bundle-Cyr1aQpR.js.map +0 -1
  876. package/cjs/chunks/bundle-DAVdWPDx.js.map +0 -1
  877. package/cjs/chunks/bundle-DNP731Dg.js.map +0 -1
  878. package/cjs/chunks/bundle-DRFWOXrL.js.map +0 -1
  879. package/cjs/chunks/bundle-DTjdtS4A.js.map +0 -1
  880. package/cjs/chunks/bundle-DUP4cxoZ.js.map +0 -1
  881. package/cjs/chunks/bundle-DX2BaZv_.js.map +0 -1
  882. package/cjs/chunks/bundle-DcPTVUQJ.js.map +0 -1
  883. package/cjs/chunks/bundle-DfYperTC.js.map +0 -1
  884. package/cjs/chunks/bundle-DgY0qwTL.js.map +0 -1
  885. package/cjs/chunks/bundle-DjB9bkvD.js.map +0 -1
  886. package/cjs/chunks/bundle-Dpu1gg5r.js.map +0 -1
  887. package/cjs/chunks/bundle-DxdzDF19.js.map +0 -1
  888. package/cjs/chunks/bundle-Dy6Gn-sd.js.map +0 -1
  889. package/cjs/chunks/bundle-FD0n8tOs.js.map +0 -1
  890. package/cjs/chunks/bundle-INETVVGE.js.map +0 -1
  891. package/cjs/chunks/bundle-JNAedgrE.js.map +0 -1
  892. package/cjs/chunks/bundle-NU2voiKZ.js.map +0 -1
  893. package/cjs/chunks/bundle-ORLbcTP_.js.map +0 -1
  894. package/cjs/chunks/bundle-Q5_I3n-8.js.map +0 -1
  895. package/cjs/chunks/bundle-SIHqK2VF.js.map +0 -1
  896. package/cjs/chunks/bundle-Y_FLyDnc.js.map +0 -1
  897. package/cjs/chunks/bundle-cf3-zuo6.js.map +0 -1
  898. package/cjs/chunks/bundle-dNtU9_eg.js.map +0 -1
  899. package/cjs/chunks/bundle-djPmP6bl.js.map +0 -1
  900. package/cjs/chunks/bundle-e6crA6HI.js.map +0 -1
  901. package/cjs/chunks/bundle-f6dhmXLj.js.map +0 -1
  902. package/cjs/chunks/bundle-jdEKrUGh.js.map +0 -1
  903. package/cjs/chunks/bundle-qgvbJv89.js.map +0 -1
  904. package/cjs/chunks/bundle-tHnRbr7F.js.map +0 -1
  905. package/cjs/chunks/bundle-tOZCSmZj.js.map +0 -1
  906. package/cjs/chunks/bundle-xvNVoWia.js.map +0 -1
  907. package/cjs/ui/Carousel.js +0 -254
  908. package/cjs/ui/Carousel.js.map +0 -1
  909. package/ui/Carousel.js +0 -249
  910. package/ui/Carousel.js.map +0 -1
  911. /package/cjs/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
  912. /package/types/{modules/Channel/components → ui}/MessageFeedbackFailedModal/index.d.ts +0 -0
  913. /package/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
@@ -1,15 +1,20 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
+ require('./bundle-7SR3bIHI.js');
4
5
 
5
- var ComponentType;
6
+ var ComponentType$1;
6
7
  (function (ComponentType) {
7
8
  ComponentType["Box"] = "box";
8
9
  ComponentType["Text"] = "text";
9
10
  ComponentType["Image"] = "image";
10
11
  ComponentType["TextButton"] = "textButton";
11
12
  ComponentType["ImageButton"] = "imageButton";
12
- })(ComponentType || (ComponentType = {}));
13
+ })(ComponentType$1 || (ComponentType$1 = {}));
14
+ exports.CompositeComponentType = void 0;
15
+ (function (CompositeComponentType) {
16
+ CompositeComponentType["Carousel"] = "carouselView";
17
+ })(exports.CompositeComponentType || (exports.CompositeComponentType = {}));
13
18
 
14
19
  // -------- Set property mapper
15
20
  const MAPPER = () => undefined;
@@ -22,25 +27,29 @@ const createParser = (params) => {
22
27
  mapImageProps: (params === null || params === void 0 ? void 0 : params.mapImageProps) || defaultMapper,
23
28
  mapTextButtonProps: (params === null || params === void 0 ? void 0 : params.mapTextButtonProps) || defaultMapper,
24
29
  mapImageButtonProps: (params === null || params === void 0 ? void 0 : params.mapImageButtonProps) || defaultMapper,
30
+ mapCarouselProps: (params === null || params === void 0 ? void 0 : params.mapCarouselProps) || defaultMapper,
25
31
  };
26
32
  return {
27
33
  parse(item, options) {
28
34
  switch (item.type) {
29
- case ComponentType.Box: {
35
+ case ComponentType$1.Box: {
30
36
  return { properties: mapper.mapBoxProps(item, options) };
31
37
  }
32
- case ComponentType.Text: {
38
+ case ComponentType$1.Text: {
33
39
  return { properties: mapper.mapTextProps(item, options) };
34
40
  }
35
- case ComponentType.Image: {
41
+ case ComponentType$1.Image: {
36
42
  return { properties: mapper.mapImageProps(item, options) };
37
43
  }
38
- case ComponentType.TextButton: {
44
+ case ComponentType$1.TextButton: {
39
45
  return { properties: mapper.mapTextButtonProps(item, options) };
40
46
  }
41
- case ComponentType.ImageButton: {
47
+ case ComponentType$1.ImageButton: {
42
48
  return { properties: mapper.mapImageButtonProps(item, options) };
43
49
  }
50
+ case exports.CompositeComponentType.Carousel: {
51
+ return { properties: mapper.mapCarouselProps(item, options) };
52
+ }
44
53
  default:
45
54
  return { properties: undefined };
46
55
  }
@@ -50,16 +59,952 @@ const createParser = (params) => {
50
59
 
51
60
  const FRAGMENT = ({ children }) => React.createElement(React.Fragment, null, children);
52
61
  function createRenderer(params) {
53
- var _a, _b, _c, _d, _e;
62
+ var _a, _b, _c, _d, _e, _f;
54
63
  return {
55
64
  box: ((_a = params === null || params === void 0 ? void 0 : params.views) === null || _a === void 0 ? void 0 : _a.box) || FRAGMENT,
56
65
  text: ((_b = params === null || params === void 0 ? void 0 : params.views) === null || _b === void 0 ? void 0 : _b.text) || FRAGMENT,
57
66
  image: ((_c = params === null || params === void 0 ? void 0 : params.views) === null || _c === void 0 ? void 0 : _c.image) || FRAGMENT,
58
67
  imageButton: ((_d = params === null || params === void 0 ? void 0 : params.views) === null || _d === void 0 ? void 0 : _d.imageButton) || FRAGMENT,
59
68
  textButton: ((_e = params === null || params === void 0 ? void 0 : params.views) === null || _e === void 0 ? void 0 : _e.textButton) || FRAGMENT,
69
+ carouselView: ((_f = params === null || params === void 0 ? void 0 : params.views) === null || _f === void 0 ? void 0 : _f.carouselView) || FRAGMENT,
60
70
  };
61
71
  }
62
72
 
73
+ var ComponentType;
74
+ (function (ComponentType) {
75
+ ComponentType["Box"] = "box";
76
+ ComponentType["Text"] = "text";
77
+ ComponentType["Image"] = "image";
78
+ ComponentType["TextButton"] = "textButton";
79
+ ComponentType["ImageButton"] = "imageButton";
80
+ })(ComponentType || (ComponentType = {}));
81
+ var CompositeComponentType;
82
+ (function (CompositeComponentType) {
83
+ CompositeComponentType["Carousel"] = "carouselView";
84
+ })(CompositeComponentType || (CompositeComponentType = {}));
85
+
86
+ React.createContext({
87
+ sizes: {},
88
+ updateSize: function () { },
89
+ });
90
+
91
+ var Layout$1;
92
+ (function (Layout) {
93
+ Layout["Row"] = "row";
94
+ Layout["Column"] = "column";
95
+ })(Layout$1 || (Layout$1 = {}));
96
+ var AlignValue$1;
97
+ (function (AlignValue) {
98
+ AlignValue["Center"] = "center";
99
+ AlignValue["Left"] = "left";
100
+ AlignValue["Right"] = "right";
101
+ AlignValue["Top"] = "top";
102
+ AlignValue["Bottom"] = "bottom";
103
+ })(AlignValue$1 || (AlignValue$1 = {}));
104
+ /**
105
+ * @description
106
+ * Caution: Numbers are passed as string types in the message template builder.
107
+ * Use `==` comparison instead of `===` comparison when using a regular enum instead of a string enum.
108
+ */
109
+ var FlexSizeSpecValue$1;
110
+ (function (FlexSizeSpecValue) {
111
+ FlexSizeSpecValue[FlexSizeSpecValue["FillParent"] = 0] = "FillParent";
112
+ FlexSizeSpecValue[FlexSizeSpecValue["WrapContent"] = 1] = "WrapContent";
113
+ })(FlexSizeSpecValue$1 || (FlexSizeSpecValue$1 = {}));
114
+ var FontWeight$1;
115
+ (function (FontWeight) {
116
+ FontWeight["Normal"] = "normal";
117
+ FontWeight["Bold"] = "bold";
118
+ })(FontWeight$1 || (FontWeight$1 = {}));
119
+ var MediaContentMode$1;
120
+ (function (MediaContentMode) {
121
+ MediaContentMode["AspectFit"] = "aspectFit";
122
+ MediaContentMode["AspectFill"] = "aspectFill";
123
+ MediaContentMode["ScalesToFill"] = "scalesToFill";
124
+ })(MediaContentMode$1 || (MediaContentMode$1 = {}));
125
+
126
+ ({
127
+ rootLayout: Layout$1.Column,
128
+ view: {
129
+ size: {
130
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
131
+ height: { type: 'flex', value: FlexSizeSpecValue$1.WrapContent },
132
+ },
133
+ },
134
+ box: {
135
+ layout: Layout$1.Row,
136
+ align: { vertical: AlignValue$1.Top, horizontal: AlignValue$1.Left },
137
+ },
138
+ });
139
+
140
+ var ActionType$1;
141
+ (function (ActionType) {
142
+ ActionType["Web"] = "web";
143
+ ActionType["Custom"] = "custom";
144
+ ActionType["UIKit"] = "uikit";
145
+ })(ActionType$1 || (ActionType$1 = {}));
146
+
147
+ var SUPPORTED_TEMPLATE_VERSIONS = [
148
+ 1,
149
+ 2, // Composite templates: Carousel
150
+ ];
151
+ var isTemplateVersionSupported = function (templateVersion) {
152
+ if (!templateVersion)
153
+ return true;
154
+ return SUPPORTED_TEMPLATE_VERSIONS.includes(templateVersion);
155
+ };
156
+
157
+ ({
158
+ version: 1,
159
+ body: {
160
+ items: [
161
+ {
162
+ type: ComponentType.Image,
163
+ action: { type: ActionType$1.Web, data: 'https://docs.sendbird.com' },
164
+ height: { type: 'fixed', value: 236 },
165
+ viewStyle: {
166
+ padding: {
167
+ left: 4,
168
+ right: 4,
169
+ top: 4,
170
+ bottom: 4,
171
+ },
172
+ },
173
+ imageUrl: 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
174
+ imageStyle: { contentMode: MediaContentMode$1.AspectFill },
175
+ },
176
+ {
177
+ type: ComponentType.Box,
178
+ layout: Layout$1.Column,
179
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
180
+ height: { type: 'fixed', value: 200 },
181
+ items: [
182
+ {
183
+ type: ComponentType.Box,
184
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
185
+ height: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
186
+ viewStyle: { backgroundColor: '#fa6464' },
187
+ },
188
+ {
189
+ type: ComponentType.Box,
190
+ layout: Layout$1.Column,
191
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
192
+ height: { type: 'flex', value: FlexSizeSpecValue$1.WrapContent },
193
+ viewStyle: { backgroundColor: '#ffaf5c' },
194
+ items: [
195
+ {
196
+ type: ComponentType.Text,
197
+ text: 'Message',
198
+ align: { horizontal: AlignValue$1.Center, vertical: AlignValue$1.Center },
199
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
200
+ height: { type: 'fixed', value: 50 },
201
+ },
202
+ {
203
+ type: ComponentType.Image,
204
+ action: { type: ActionType$1.Web, data: 'https://docs.sendbird.com' },
205
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
206
+ height: { type: 'fixed', value: 50 },
207
+ imageUrl: 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
208
+ imageStyle: { contentMode: MediaContentMode$1.AspectFill },
209
+ },
210
+ ],
211
+ },
212
+ {
213
+ type: ComponentType.Box,
214
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
215
+ height: { type: 'fixed', value: 20 },
216
+ viewStyle: { backgroundColor: '#ffe450' },
217
+ },
218
+ {
219
+ type: ComponentType.Box,
220
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
221
+ height: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
222
+ viewStyle: { backgroundColor: '#329a1b' },
223
+ },
224
+ ],
225
+ },
226
+ {
227
+ type: ComponentType.Box,
228
+ viewStyle: { padding: { top: 12, bottom: 12, left: 12, right: 12 } },
229
+ layout: Layout$1.Column,
230
+ items: [
231
+ {
232
+ type: ComponentType.Box,
233
+ align: { horizontal: AlignValue$1.Left, vertical: AlignValue$1.Center },
234
+ layout: Layout$1.Row,
235
+ viewStyle: {
236
+ borderWidth: 1,
237
+ borderColor: '#72723f',
238
+ },
239
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
240
+ height: { type: 'fixed', value: 150 },
241
+ items: [
242
+ {
243
+ type: ComponentType.Text,
244
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
245
+ height: { type: 'fixed', value: 50 },
246
+ text: 'Sample1 text',
247
+ maxTextLines: 1,
248
+ align: { vertical: AlignValue$1.Center, horizontal: AlignValue$1.Left },
249
+ viewStyle: {
250
+ backgroundColor: '#cc4400',
251
+ },
252
+ textStyle: {
253
+ size: 16,
254
+ color: '#f8f8f8',
255
+ weight: FontWeight$1.Bold,
256
+ },
257
+ },
258
+ {
259
+ type: ComponentType.ImageButton,
260
+ action: { type: ActionType$1.UIKit, data: 'uikit://delete' },
261
+ width: { type: 'fixed', value: 20 },
262
+ height: { type: 'fixed', value: 20 },
263
+ imageUrl: 'https://file-ap-1.sendbird.com/5b5379aa73fd460da22ffaf9a61d0d7f.png',
264
+ imageStyle: { contentMode: MediaContentMode$1.AspectFit },
265
+ },
266
+ ],
267
+ },
268
+ {
269
+ type: ComponentType.Text,
270
+ viewStyle: { padding: { top: 6, bottom: 12, left: 0, right: 0 } },
271
+ text: 'Esse eu esse duis ipsum et dolor eu ut sit amet consectetur cillum velit officia. Ex adipisicing elit quis ea sit. Occaecat in eu aliqua nulla magna id ut excepteur minim.',
272
+ maxTextLines: 2,
273
+ textStyle: { size: 14, color: '#e10000' },
274
+ width: { type: 'fixed', value: 200 },
275
+ height: { type: 'fixed', value: 50 },
276
+ },
277
+ {
278
+ type: ComponentType.TextButton,
279
+ action: { type: ActionType$1.Web, data: 'https://www.daum.net' },
280
+ text: 'Button 3',
281
+ textStyle: { size: 14, color: '#742ddd', weight: FontWeight$1.Bold },
282
+ },
283
+ ],
284
+ },
285
+ ],
286
+ },
287
+ });
288
+ ({
289
+ 'version': 1,
290
+ 'body': {
291
+ 'items': [
292
+ {
293
+ 'type': ComponentType.Image,
294
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.naver.com/' },
295
+ 'height': { 'type': 'fixed', 'value': 136 },
296
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
297
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
298
+ },
299
+ {
300
+ 'type': ComponentType.Box,
301
+ 'viewStyle': { 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 }, backgroundColor: '#cccccc' },
302
+ 'layout': Layout$1.Column,
303
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
304
+ 'items': [
305
+ {
306
+ 'type': ComponentType.Box,
307
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
308
+ 'layout': Layout$1.Row,
309
+ 'items': [
310
+ {
311
+ 'type': ComponentType.TextButton,
312
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
313
+ width: { type: 'fixed', value: 150 },
314
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 } },
315
+ 'text': 'Button 2',
316
+ 'textStyle': { 'size': 14, 'weight': FontWeight$1.Bold },
317
+ },
318
+ {
319
+ 'type': ComponentType.TextButton,
320
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
321
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
322
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 } },
323
+ 'text': 'Button 3',
324
+ 'textStyle': { 'size': 14, 'weight': FontWeight$1.Bold },
325
+ },
326
+ ],
327
+ },
328
+ {
329
+ 'type': ComponentType.Box,
330
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
331
+ 'layout': Layout$1.Row,
332
+ 'items': [
333
+ {
334
+ 'type': ComponentType.Text,
335
+ 'text': 'Sample2 text',
336
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
337
+ 'maxTextLines': 1,
338
+ 'textStyle': { 'size': 16, 'weight': FontWeight$1.Bold },
339
+ },
340
+ {
341
+ 'type': ComponentType.ImageButton,
342
+ 'action': { 'type': ActionType$1.UIKit, 'data': 'uikit://delete' },
343
+ 'width': { 'type': 'fixed', 'value': 20 },
344
+ 'height': { 'type': 'fixed', 'value': 20 },
345
+ 'imageUrl': 'https://file-ap-1.sendbird.com/5b5379aa73fd460da22ffaf9a61d0d7f.png',
346
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFit },
347
+ },
348
+ ],
349
+ },
350
+ {
351
+ 'type': ComponentType.Text,
352
+ 'viewStyle': { 'padding': { 'top': 6, 'bottom': 12, 'left': 0, 'right': 0 } },
353
+ 'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
354
+ 'textStyle': { 'size': 14 },
355
+ },
356
+ ],
357
+ },
358
+ ],
359
+ },
360
+ });
361
+ ({
362
+ 'version': 1,
363
+ 'body': {
364
+ 'items': [
365
+ {
366
+ 'type': ComponentType.Box,
367
+ 'viewStyle': { 'backgroundColor': '#ffffff', 'borderWidth': 1, 'borderColor': '#eeeeee', 'radius': 16 },
368
+ 'layout': Layout$1.Column,
369
+ 'items': [
370
+ {
371
+ 'type': ComponentType.Image,
372
+ 'height': { 'type': 'fixed', 'value': 200 },
373
+ 'imageUrl': 'https://img.freepik.com/free-vector/cartoon-happy-hours-background_52683-81243.jpg?w=2000&t=st=1666689198~exp=1666689798~hmac=23109d44ba03deee7aee069cbeebfcb48fa27f85e53c1cafc5d5d7345f1a2041',
374
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
375
+ },
376
+ {
377
+ 'type': ComponentType.Box,
378
+ 'viewStyle': { 'padding': { 'top': 15, 'bottom': 15, 'left': 15, 'right': 15 } },
379
+ 'layout': Layout$1.Column,
380
+ 'items': [
381
+ {
382
+ 'type': ComponentType.Text,
383
+ 'text': "Don't miss these deals today",
384
+ 'maxTextLines': 1,
385
+ 'textStyle': { 'size': 20, 'color': '#e10000', 'weight': FontWeight$1.Bold },
386
+ },
387
+ {
388
+ 'type': ComponentType.Text,
389
+ 'viewStyle': { 'margin': { 'top': 5, 'bottom': 0, 'left': 0, 'right': 0 } },
390
+ 'text': 'Pay with Maya and get cashback!',
391
+ 'maxTextLines': 1,
392
+ 'textStyle': { 'size': 14, 'color': '#e10000' },
393
+ },
394
+ {
395
+ 'type': ComponentType.Box,
396
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
397
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
398
+ 'layout': Layout$1.Row,
399
+ 'items': [
400
+ {
401
+ 'type': ComponentType.Image,
402
+ 'width': { 'type': 'fixed', 'value': 50 },
403
+ 'height': { 'type': 'fixed', 'value': 50 },
404
+ 'viewStyle': {
405
+ 'backgroundColor': '#ffffff',
406
+ 'borderWidth': 1,
407
+ 'borderColor': '#eeeeee',
408
+ 'radius': 25,
409
+ },
410
+ 'imageUrl': 'https://yt3.ggpht.com/ytc/AMLnZu8Kg89ymE7qt5bsS9vMqi9h2aHiN6m9ID-IgxR6-Q=s900-c-k-c0x00ffffff-no-rj',
411
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
412
+ },
413
+ {
414
+ 'type': ComponentType.Box,
415
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
416
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
417
+ 'layout': Layout$1.Column,
418
+ 'items': [
419
+ {
420
+ 'type': ComponentType.Text,
421
+ 'text': 'Meralco',
422
+ 'maxTextLines': 1,
423
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
424
+ },
425
+ {
426
+ 'type': ComponentType.Text,
427
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
428
+ 'text': '30% cashback, P300 min spend',
429
+ 'maxTextLines': 1,
430
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
431
+ },
432
+ ],
433
+ },
434
+ ],
435
+ },
436
+ {
437
+ 'type': ComponentType.Box,
438
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
439
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
440
+ 'layout': Layout$1.Row,
441
+ 'items': [
442
+ {
443
+ 'type': ComponentType.Image,
444
+ 'width': { 'type': 'fixed', 'value': 50 },
445
+ 'height': { 'type': 'fixed', 'value': 50 },
446
+ 'viewStyle': {
447
+ 'backgroundColor': '#ffffff',
448
+ 'borderWidth': 1,
449
+ 'borderColor': '#eeeeee',
450
+ 'radius': 25,
451
+ },
452
+ 'imageUrl': 'https://1000logos.net/wp-content/uploads/2021/12/Globe-Telecom-logo.png',
453
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill, tintColor: '#a49a9a' },
454
+ },
455
+ {
456
+ 'type': ComponentType.Box,
457
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
458
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
459
+ 'layout': Layout$1.Column,
460
+ 'items': [
461
+ {
462
+ 'type': ComponentType.Text,
463
+ 'text': 'Globe',
464
+ 'maxTextLines': 1,
465
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
466
+ },
467
+ {
468
+ 'type': ComponentType.Text,
469
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
470
+ 'text': '30% cashback, P300 min spend',
471
+ 'maxTextLines': 1,
472
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
473
+ },
474
+ ],
475
+ },
476
+ ],
477
+ },
478
+ {
479
+ 'type': ComponentType.Box,
480
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
481
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
482
+ 'layout': Layout$1.Row,
483
+ 'items': [
484
+ {
485
+ 'type': ComponentType.Image,
486
+ 'width': { 'type': 'fixed', 'value': 50 },
487
+ 'height': { 'type': 'fixed', 'value': 50 },
488
+ 'viewStyle': {
489
+ 'backgroundColor': '#ffffff',
490
+ 'borderWidth': 1,
491
+ 'borderColor': '#eeeeee',
492
+ 'radius': 25,
493
+ },
494
+ 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Cignal.svg/640px-Cignal.svg.png',
495
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
496
+ },
497
+ {
498
+ 'type': ComponentType.Box,
499
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
500
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
501
+ 'layout': Layout$1.Column,
502
+ 'items': [
503
+ {
504
+ 'type': ComponentType.Text,
505
+ 'text': 'Cignal',
506
+ 'maxTextLines': 1,
507
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
508
+ },
509
+ {
510
+ 'type': ComponentType.Text,
511
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
512
+ 'text': '30% cashback, P300 min spend',
513
+ 'maxTextLines': 1,
514
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
515
+ },
516
+ ],
517
+ },
518
+ ],
519
+ },
520
+ {
521
+ 'type': ComponentType.Box,
522
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
523
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
524
+ 'layout': Layout$1.Row,
525
+ 'items': [
526
+ {
527
+ 'type': ComponentType.TextButton,
528
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
529
+ 'viewStyle': {
530
+ 'backgroundColor': '#e0e0e0',
531
+ 'radius': 16,
532
+ 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 },
533
+ 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 },
534
+ },
535
+ 'text': 'Learn more',
536
+ 'textStyle': { 'size': 15, 'color': '#e10000', 'weight': FontWeight$1.Bold },
537
+ },
538
+ {
539
+ 'type': ComponentType.TextButton,
540
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
541
+ 'viewStyle': {
542
+ 'backgroundColor': '#e10000',
543
+ 'radius': 16,
544
+ 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 },
545
+ 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 },
546
+ },
547
+ 'text': 'Pay now',
548
+ 'textStyle': { 'size': 15, 'color': '#ffffff', 'weight': FontWeight$1.Bold },
549
+ },
550
+ ],
551
+ },
552
+ ],
553
+ },
554
+ ],
555
+ },
556
+ ],
557
+ },
558
+ });
559
+ ({
560
+ 'version': 1,
561
+ 'body': {
562
+ 'items': [
563
+ {
564
+ 'type': ComponentType.Box,
565
+ 'layout': Layout$1.Column,
566
+ 'items': [
567
+ {
568
+ 'type': ComponentType.Image,
569
+ 'imageUrl': 'https://static.sendbird.com/sample/profiles/profile_40_512px.png',
570
+ 'metaData': {
571
+ 'pixelWidth': 512,
572
+ 'pixelHeight': 512,
573
+ },
574
+ 'imageStyle': {
575
+ 'tintColor': '#44ff1188',
576
+ },
577
+ viewStyle: {
578
+ 'padding': {
579
+ 'top': 12,
580
+ 'right': 12,
581
+ 'bottom': 12,
582
+ 'left': 12,
583
+ },
584
+ },
585
+ },
586
+ {
587
+ 'type': ComponentType.Box,
588
+ 'viewStyle': {
589
+ 'padding': {
590
+ 'top': 12,
591
+ 'right': 12,
592
+ 'bottom': 12,
593
+ 'left': 12,
594
+ },
595
+ },
596
+ 'layout': Layout$1.Column,
597
+ 'items': [
598
+ {
599
+ 'type': ComponentType.Box,
600
+ 'layout': Layout$1.Row,
601
+ 'items': [
602
+ {
603
+ 'type': ComponentType.Box,
604
+ 'layout': Layout$1.Column,
605
+ 'items': [
606
+ {
607
+ 'type': ComponentType.Text,
608
+ 'text': 'hi',
609
+ 'maxTextLines': 3,
610
+ 'viewStyle': {
611
+ 'padding': {
612
+ 'top': 0,
613
+ 'bottom': 6,
614
+ 'left': 0,
615
+ 'right': 0,
616
+ },
617
+ },
618
+ 'textStyle': {
619
+ 'size': 16,
620
+ 'weight': FontWeight$1.Bold,
621
+ },
622
+ },
623
+ {
624
+ 'type': ComponentType.Text,
625
+ 'text': 'bye',
626
+ 'maxTextLines': 10,
627
+ 'textStyle': {
628
+ 'size': 14,
629
+ },
630
+ },
631
+ ],
632
+ },
633
+ {
634
+ 'type': ComponentType.ImageButton,
635
+ 'action': {
636
+ 'type': ActionType$1.UIKit,
637
+ 'data': 'sendbirduikit://delete',
638
+ },
639
+ 'width': {
640
+ 'type': 'fixed',
641
+ 'value': 20,
642
+ },
643
+ 'height': {
644
+ 'type': 'fixed',
645
+ 'value': 20,
646
+ },
647
+ 'metaData': {
648
+ 'pixelWidth': 60,
649
+ 'pixelHeight': 60,
650
+ },
651
+ 'imageUrl': 'https://dxstmhyqfqr1o.cloudfront.net/sendbird-message-builder/icon-more.png',
652
+ 'imageStyle': {
653
+ 'tintColor': '#ff8d5a',
654
+ },
655
+ },
656
+ ],
657
+ },
658
+ {
659
+ 'type': ComponentType.Box,
660
+ 'layout': Layout$1.Column,
661
+ 'items': [
662
+ {
663
+ 'type': ComponentType.Box,
664
+ 'viewStyle': {
665
+ 'margin': {
666
+ 'top': 16,
667
+ 'bottom': 0,
668
+ 'left': 0,
669
+ 'right': 0,
670
+ },
671
+ },
672
+ 'align': {
673
+ 'horizontal': AlignValue$1.Left,
674
+ 'vertical': AlignValue$1.Center,
675
+ },
676
+ 'layout': Layout$1.Row,
677
+ 'items': [
678
+ {
679
+ 'type': ComponentType.Image,
680
+ 'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-ULE240VNV-83fd5776e78e-512',
681
+ 'width': {
682
+ 'type': 'fixed',
683
+ 'value': 40,
684
+ },
685
+ 'height': {
686
+ 'type': 'fixed',
687
+ 'value': 40,
688
+ },
689
+ 'metaData': {
690
+ 'pixelWidth': 512,
691
+ 'pixelHeight': 512,
692
+ },
693
+ 'viewStyle': {
694
+ 'backgroundColor': '#BDBDBD',
695
+ 'radius': 20,
696
+ },
697
+ 'imageStyle': {
698
+ 'contentMode': MediaContentMode$1.AspectFill,
699
+ },
700
+ },
701
+ {
702
+ 'type': ComponentType.Box,
703
+ 'viewStyle': {
704
+ 'margin': {
705
+ 'top': 0,
706
+ 'bottom': 0,
707
+ 'left': 12,
708
+ 'right': 0,
709
+ },
710
+ },
711
+ 'layout': Layout$1.Column,
712
+ 'items': [
713
+ {
714
+ 'type': ComponentType.Text,
715
+ 'text': 'Chongbu',
716
+ 'maxTextLines': 1,
717
+ 'textStyle': {
718
+ 'size': 16,
719
+ 'weight': FontWeight$1.Bold,
720
+ },
721
+ },
722
+ {
723
+ 'type': ComponentType.Text,
724
+ 'viewStyle': {
725
+ 'margin': {
726
+ 'top': 4,
727
+ 'bottom': 0,
728
+ 'left': 0,
729
+ 'right': 0,
730
+ },
731
+ },
732
+ 'text': ' ',
733
+ 'maxTextLines': 1,
734
+ 'textStyle': {
735
+ 'size': 14,
736
+ },
737
+ },
738
+ ],
739
+ },
740
+ ],
741
+ },
742
+ {
743
+ 'type': ComponentType.Box,
744
+ 'viewStyle': {
745
+ 'margin': {
746
+ 'top': 16,
747
+ 'bottom': 0,
748
+ 'left': 0,
749
+ 'right': 0,
750
+ },
751
+ },
752
+ 'align': {
753
+ 'horizontal': AlignValue$1.Left,
754
+ 'vertical': AlignValue$1.Center,
755
+ },
756
+ 'layout': Layout$1.Row,
757
+ 'items': [
758
+ {
759
+ 'type': ComponentType.Image,
760
+ 'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-U02LA25KY8J-d41a3e8c7554-512',
761
+ 'width': {
762
+ 'type': 'fixed',
763
+ 'value': 40,
764
+ },
765
+ 'height': {
766
+ 'type': 'fixed',
767
+ 'value': 40,
768
+ },
769
+ 'metaData': {
770
+ 'pixelWidth': 512,
771
+ 'pixelHeight': 512,
772
+ },
773
+ 'viewStyle': {
774
+ 'backgroundColor': '#BDBDBD',
775
+ 'radius': 20,
776
+ },
777
+ 'imageStyle': {
778
+ 'contentMode': MediaContentMode$1.AspectFill,
779
+ },
780
+ },
781
+ {
782
+ 'type': ComponentType.Box,
783
+ 'viewStyle': {
784
+ 'margin': {
785
+ 'top': 0,
786
+ 'bottom': 0,
787
+ 'left': 12,
788
+ 'right': 0,
789
+ },
790
+ },
791
+ 'layout': Layout$1.Column,
792
+ 'items': [
793
+ {
794
+ 'type': ComponentType.Text,
795
+ 'text': 'Amanda',
796
+ 'maxTextLines': 1,
797
+ 'textStyle': {
798
+ 'size': 16,
799
+ 'weight': FontWeight$1.Bold,
800
+ },
801
+ },
802
+ {
803
+ 'type': ComponentType.Text,
804
+ 'viewStyle': {
805
+ 'margin': {
806
+ 'top': 4,
807
+ 'bottom': 0,
808
+ 'left': 0,
809
+ 'right': 0,
810
+ },
811
+ },
812
+ 'text': 'This is title message',
813
+ 'maxTextLines': 1,
814
+ 'textStyle': {
815
+ 'size': 14,
816
+ },
817
+ },
818
+ ],
819
+ },
820
+ ],
821
+ },
822
+ ],
823
+ },
824
+ ],
825
+ },
826
+ ],
827
+ },
828
+ ],
829
+ },
830
+ });
831
+ ({
832
+ 'version': '1',
833
+ 'body': {
834
+ 'items': [
835
+ {
836
+ 'type': 'box',
837
+ 'layout': 'column',
838
+ height: { type: 'fixed', value: 600 },
839
+ 'items': [
840
+ {
841
+ 'type': 'box',
842
+ 'layout': 'column',
843
+ 'viewStyle': { 'radius': '8', 'padding': { 'top': '12', 'bottom': '12', 'left': '12', 'right': '12' } },
844
+ 'items': [
845
+ {
846
+ 'type': 'text',
847
+ 'text': 'Title text',
848
+ 'textStyle': { 'color': '#E0000000', 'size': '16', 'weight': 'bold' },
849
+ 'maxTextLines': '5',
850
+ 'viewStyle': {},
851
+ 'action': { 'data': 'www.naver.com' },
852
+ },
853
+ {
854
+ 'type': 'text',
855
+ 'viewStyle': { 'margin': { 'top': '8', 'right': '0', 'bottom': '0', 'left': '0' } },
856
+ 'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
857
+ 'textStyle': { 'color': '#E0000000', 'size': '14', 'weight': 'normal' },
858
+ 'maxTextLines': '5',
859
+ 'action': { 'data': 'https://www.naver.com' },
860
+ },
861
+ {
862
+ 'type': 'box',
863
+ 'layout': 'row',
864
+ 'viewStyle': { 'margin': { 'top': '12', 'right': '0', 'bottom': '0', 'left': '0' } },
865
+ 'items': [
866
+ {
867
+ 'type': 'textButton',
868
+ 'viewStyle': {
869
+ 'backgroundColor': '#E0E0E0',
870
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
871
+ },
872
+ 'text': 'Button 1',
873
+ 'textStyle': { 'color': '#742DDD', 'size': '14', 'weight': 'bold' },
874
+ 'maxTextLines': '5',
875
+ 'action': { 'data': 'www.naver.com' },
876
+ },
877
+ {
878
+ 'type': 'textButton',
879
+ 'viewStyle': {
880
+ 'backgroundColor': '#E0E0E0',
881
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
882
+ 'margin': { 'left': '8', 'right': '0', 'top': '0', 'bottom': '0' },
883
+ },
884
+ 'text': 'Button 2',
885
+ 'textStyle': { 'color': '#742DDD', 'size': '14', 'weight': 'bold' },
886
+ 'maxTextLines': '5',
887
+ 'action': { 'data': 'https://www.naver.com' },
888
+ },
889
+ ],
890
+ },
891
+ ],
892
+ 'action': { 'data': 'https://www.naver.com' },
893
+ },
894
+ {
895
+ 'type': 'image',
896
+ 'viewStyle': {},
897
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
898
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
899
+ 'imageStyle': { 'contentMode': 'aspectFill' },
900
+ 'imageUrl': 'https://file-preprod.sendbird.com/d03c08bb3f9041a88c1207b6bbf15ab8.png',
901
+ 'metaData': { 'pixelWidth': '1062', 'pixelHeight': '1070' },
902
+ },
903
+ {
904
+ 'type': 'textButton',
905
+ 'viewStyle': {
906
+ 'backgroundColor': '#E0E0E0',
907
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
908
+ },
909
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
910
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
911
+ 'text': 'Button',
912
+ 'textStyle': { 'color': '#742DDD', 'size': '16', 'weight': 'normal' },
913
+ 'maxTextLines': '5',
914
+ 'action': { 'data': 'www.naver.com' },
915
+ },
916
+ {
917
+ 'type': 'imageButton',
918
+ 'viewStyle': {},
919
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
920
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
921
+ 'imageUrl': 'https://file-preprod.sendbird.com/38fdf5c1056f42b89a44b38155cc4b49.jpg',
922
+ 'imageStyle': { 'contentMode': 'aspectFill' },
923
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
924
+ 'action': { 'data': 'www.naver.com' },
925
+ },
926
+ ],
927
+ 'viewStyle': {},
928
+ },
929
+ ],
930
+ },
931
+ });
932
+ ({
933
+ 'version': 1,
934
+ 'body': {
935
+ 'items': [
936
+ {
937
+ 'elementId': 'root',
938
+ 'type': 'box',
939
+ 'layout': 'column',
940
+ 'width': {
941
+ 'type': 'flex',
942
+ 'value': FlexSizeSpecValue$1.FillParent,
943
+ },
944
+ 'height': {
945
+ 'type': 'flex',
946
+ 'value': FlexSizeSpecValue$1.WrapContent,
947
+ },
948
+ 'items': [
949
+ {
950
+ 'type': 'text',
951
+ 'viewStyle': {
952
+ 'backgroundColor': '#a0c0ffff',
953
+ 'margin': {
954
+ 'top': 16,
955
+ 'bottom': 16,
956
+ 'left': 16,
957
+ 'right': 16,
958
+ },
959
+ 'padding': {
960
+ 'top': 16,
961
+ 'bottom': 16,
962
+ 'left': 16,
963
+ 'right': 16,
964
+ },
965
+ },
966
+ 'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
967
+ 'textStyle': {
968
+ 'size': 14,
969
+ 'color': '#222121e0',
970
+ 'weight': 'normal',
971
+ },
972
+ 'maxTextLines': 5,
973
+ 'width': {
974
+ 'type': 'flex',
975
+ 'value': FlexSizeSpecValue$1.FillParent,
976
+ },
977
+ 'height': {
978
+ 'type': 'flex',
979
+ 'value': 1,
980
+ },
981
+ 'align': {
982
+ 'horizontal': 'left',
983
+ 'vertical': 'top',
984
+ },
985
+ 'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
986
+ },
987
+ {
988
+ 'type': 'imageButton',
989
+ 'viewStyle': {
990
+ margin: {
991
+ left: 24,
992
+ right: 12,
993
+ },
994
+ },
995
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
996
+ 'height': { 'type': 'fixed', 'value': 250 },
997
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
998
+ 'imageStyle': { 'contentMode': 'aspectFill' },
999
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
1000
+ 'action': { 'data': 'www.naver.com' },
1001
+ },
1002
+ ],
1003
+ },
1004
+ ],
1005
+ },
1006
+ });
1007
+
63
1008
  var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
64
1009
  var t = {};
65
1010
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -170,10 +1115,8 @@ const createMessageTemplate = (opts) => {
170
1115
  const UnknownMessage = opts.UnknownMessage || (() => null);
171
1116
  const parser = opts.parser || createParser();
172
1117
  const renderer = opts.renderer || createRenderer();
173
- const MessageTemplateBase = (props) => {
174
- var _a;
175
- const renderItems = props.templateItems;
176
- const parentLayout = (_a = props.parentLayout) !== null && _a !== void 0 ? _a : defaultProperties.box.layout;
1118
+ const MessageTemplateBase = ({ templateItems, parentLayout = defaultProperties.box.layout, isRoot = false, }) => {
1119
+ const renderItems = templateItems;
177
1120
  return (React.createElement(React.Fragment, null, renderItems.map((item, index, siblings) => {
178
1121
  const { properties } = parser.parse(item, { parentLayout, elemIdx: index, siblings });
179
1122
  const props = {
@@ -183,20 +1126,30 @@ const createMessageTemplate = (opts) => {
183
1126
  siblings,
184
1127
  };
185
1128
  switch (item.type) {
186
- case ComponentType.Box: {
1129
+ // CompositeComponent should be top level component
1130
+ case exports.CompositeComponentType.Carousel: {
1131
+ if (!isRoot) {
1132
+ throw new Error('Cannot parse template item as Carousel if the template item is not the root.');
1133
+ }
1134
+ if (!item.items || !Array.isArray(item.items) || item.items.length === 0) {
1135
+ throw new Error('Cannot parse template item as Carousel if carousel has no items.');
1136
+ }
1137
+ return (React.createElement(renderer.carouselView, Object.assign({}, item, props), item.items.map((items, index) => (React.createElement(MessageTemplateBase, { key: index, templateItems: items || [], parentLayout: parentLayout })))));
1138
+ }
1139
+ case ComponentType$1.Box: {
187
1140
  return (React.createElement(renderer.box, Object.assign({}, item, props),
188
1141
  React.createElement(MessageTemplateBase, { templateItems: item.items || [], parentLayout: item.layout })));
189
1142
  }
190
- case ComponentType.Text: {
1143
+ case ComponentType$1.Text: {
191
1144
  return React.createElement(renderer.text, Object.assign({}, item, props));
192
1145
  }
193
- case ComponentType.Image: {
1146
+ case ComponentType$1.Image: {
194
1147
  return React.createElement(renderer.image, Object.assign({}, item, props));
195
1148
  }
196
- case ComponentType.TextButton: {
1149
+ case ComponentType$1.TextButton: {
197
1150
  return React.createElement(renderer.textButton, Object.assign({}, item, props));
198
1151
  }
199
- case ComponentType.ImageButton: {
1152
+ case ComponentType$1.ImageButton: {
200
1153
  return React.createElement(renderer.imageButton, Object.assign({}, item, props));
201
1154
  }
202
1155
  default: {
@@ -207,11 +1160,24 @@ const createMessageTemplate = (opts) => {
207
1160
  })));
208
1161
  };
209
1162
  return {
210
- MessageTemplate: ({ parentLayout = defaultProperties.rootLayout, templateItems }) => {
1163
+ MessageTemplate: ({ parentLayout = defaultProperties.rootLayout, templateVersion, templateItems, }) => {
211
1164
  const items = setTemplateItemId(templateItems);
1165
+ if (!isTemplateVersionSupported(templateVersion)) {
1166
+ /**
1167
+ * I choose to throw instead of returning UnknownMessage because UnknownMessage syntax (required prop: item) is not what UIKit wants.
1168
+ */
1169
+ throw new Error(`Cannot parse template item due to unsupported template version: ${templateVersion}, ${SUPPORTED_TEMPLATE_VERSIONS}`);
1170
+ }
1171
+ let isCarousel = false;
1172
+ console.log('## items: ', JSON.stringify(items));
1173
+ isCarousel = items[0].type === exports.CompositeComponentType.Carousel;
1174
+ console.log('## isCarousel: ', isCarousel);
1175
+ // if (Array.isArray(items) && items.length > 0) {
1176
+ // isCarousel = items[0].type === CompositeComponentType.Carousel;
1177
+ // }
212
1178
  return (React.createElement(SizeContextProvider, null,
213
- React.createElement(Container, null,
214
- React.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items }))));
1179
+ React.createElement(Container, { className: isCarousel ? 'sb-message-template__parent_for_carousel' : '' },
1180
+ React.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items, isRoot: true }))));
215
1181
  },
216
1182
  MessageTemplateBase,
217
1183
  };
@@ -243,7 +1209,7 @@ const alignInFlex = (align) => {
243
1209
  body: {
244
1210
  items: [
245
1211
  {
246
- type: ComponentType.Image,
1212
+ type: ComponentType$1.Image,
247
1213
  action: { type: ActionType.Web, data: 'https://docs.sendbird.com' },
248
1214
  height: { type: 'fixed', value: 236 },
249
1215
  viewStyle: {
@@ -258,33 +1224,33 @@ const alignInFlex = (align) => {
258
1224
  imageStyle: { contentMode: MediaContentMode.AspectFill },
259
1225
  },
260
1226
  {
261
- type: ComponentType.Box,
1227
+ type: ComponentType$1.Box,
262
1228
  layout: Layout.Column,
263
1229
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
264
1230
  height: { type: 'fixed', value: 200 },
265
1231
  items: [
266
1232
  {
267
- type: ComponentType.Box,
1233
+ type: ComponentType$1.Box,
268
1234
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
269
1235
  height: { type: 'flex', value: FlexSizeSpecValue.FillParent },
270
1236
  viewStyle: { backgroundColor: '#fa6464' },
271
1237
  },
272
1238
  {
273
- type: ComponentType.Box,
1239
+ type: ComponentType$1.Box,
274
1240
  layout: Layout.Column,
275
1241
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
276
1242
  height: { type: 'flex', value: FlexSizeSpecValue.WrapContent },
277
1243
  viewStyle: { backgroundColor: '#ffaf5c' },
278
1244
  items: [
279
1245
  {
280
- type: ComponentType.Text,
1246
+ type: ComponentType$1.Text,
281
1247
  text: 'Message',
282
1248
  align: { horizontal: AlignValue.Center, vertical: AlignValue.Center },
283
1249
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
284
1250
  height: { type: 'fixed', value: 50 },
285
1251
  },
286
1252
  {
287
- type: ComponentType.Image,
1253
+ type: ComponentType$1.Image,
288
1254
  action: { type: ActionType.Web, data: 'https://docs.sendbird.com' },
289
1255
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
290
1256
  height: { type: 'fixed', value: 50 },
@@ -294,13 +1260,13 @@ const alignInFlex = (align) => {
294
1260
  ],
295
1261
  },
296
1262
  {
297
- type: ComponentType.Box,
1263
+ type: ComponentType$1.Box,
298
1264
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
299
1265
  height: { type: 'fixed', value: 20 },
300
1266
  viewStyle: { backgroundColor: '#ffe450' },
301
1267
  },
302
1268
  {
303
- type: ComponentType.Box,
1269
+ type: ComponentType$1.Box,
304
1270
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
305
1271
  height: { type: 'flex', value: FlexSizeSpecValue.FillParent },
306
1272
  viewStyle: { backgroundColor: '#329a1b' },
@@ -308,12 +1274,12 @@ const alignInFlex = (align) => {
308
1274
  ],
309
1275
  },
310
1276
  {
311
- type: ComponentType.Box,
1277
+ type: ComponentType$1.Box,
312
1278
  viewStyle: { padding: { top: 12, bottom: 12, left: 12, right: 12 } },
313
1279
  layout: Layout.Column,
314
1280
  items: [
315
1281
  {
316
- type: ComponentType.Box,
1282
+ type: ComponentType$1.Box,
317
1283
  align: { horizontal: AlignValue.Left, vertical: AlignValue.Center },
318
1284
  layout: Layout.Row,
319
1285
  viewStyle: {
@@ -324,7 +1290,7 @@ const alignInFlex = (align) => {
324
1290
  height: { type: 'fixed', value: 150 },
325
1291
  items: [
326
1292
  {
327
- type: ComponentType.Text,
1293
+ type: ComponentType$1.Text,
328
1294
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
329
1295
  height: { type: 'fixed', value: 50 },
330
1296
  text: 'Sample1 text',
@@ -340,7 +1306,7 @@ const alignInFlex = (align) => {
340
1306
  },
341
1307
  },
342
1308
  {
343
- type: ComponentType.ImageButton,
1309
+ type: ComponentType$1.ImageButton,
344
1310
  action: { type: ActionType.UIKit, data: 'uikit://delete' },
345
1311
  width: { type: 'fixed', value: 20 },
346
1312
  height: { type: 'fixed', value: 20 },
@@ -350,7 +1316,7 @@ const alignInFlex = (align) => {
350
1316
  ],
351
1317
  },
352
1318
  {
353
- type: ComponentType.Text,
1319
+ type: ComponentType$1.Text,
354
1320
  viewStyle: { padding: { top: 6, bottom: 12, left: 0, right: 0 } },
355
1321
  text: 'Esse eu esse duis ipsum et dolor eu ut sit amet consectetur cillum velit officia. Ex adipisicing elit quis ea sit. Occaecat in eu aliqua nulla magna id ut excepteur minim.',
356
1322
  maxTextLines: 2,
@@ -359,7 +1325,7 @@ const alignInFlex = (align) => {
359
1325
  height: { type: 'fixed', value: 50 },
360
1326
  },
361
1327
  {
362
- type: ComponentType.TextButton,
1328
+ type: ComponentType$1.TextButton,
363
1329
  action: { type: ActionType.Web, data: 'https://www.daum.net' },
364
1330
  text: 'Button 3',
365
1331
  textStyle: { size: 14, color: '#742ddd', weight: FontWeight.Bold },
@@ -374,25 +1340,25 @@ const alignInFlex = (align) => {
374
1340
  'body': {
375
1341
  'items': [
376
1342
  {
377
- 'type': ComponentType.Image,
1343
+ 'type': ComponentType$1.Image,
378
1344
  'action': { 'type': ActionType.Web, 'data': 'https://www.naver.com/' },
379
1345
  'height': { 'type': 'fixed', 'value': 136 },
380
1346
  'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
381
1347
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
382
1348
  },
383
1349
  {
384
- 'type': ComponentType.Box,
1350
+ 'type': ComponentType$1.Box,
385
1351
  'viewStyle': { 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 }, backgroundColor: '#cccccc' },
386
1352
  'layout': Layout.Column,
387
1353
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
388
1354
  'items': [
389
1355
  {
390
- 'type': ComponentType.Box,
1356
+ 'type': ComponentType$1.Box,
391
1357
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
392
1358
  'layout': Layout.Row,
393
1359
  'items': [
394
1360
  {
395
- 'type': ComponentType.TextButton,
1361
+ 'type': ComponentType$1.TextButton,
396
1362
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
397
1363
  width: { type: 'fixed', value: 150 },
398
1364
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 } },
@@ -400,7 +1366,7 @@ const alignInFlex = (align) => {
400
1366
  'textStyle': { 'size': 14, 'weight': FontWeight.Bold },
401
1367
  },
402
1368
  {
403
- 'type': ComponentType.TextButton,
1369
+ 'type': ComponentType$1.TextButton,
404
1370
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
405
1371
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
406
1372
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 } },
@@ -410,19 +1376,19 @@ const alignInFlex = (align) => {
410
1376
  ],
411
1377
  },
412
1378
  {
413
- 'type': ComponentType.Box,
1379
+ 'type': ComponentType$1.Box,
414
1380
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
415
1381
  'layout': Layout.Row,
416
1382
  'items': [
417
1383
  {
418
- 'type': ComponentType.Text,
1384
+ 'type': ComponentType$1.Text,
419
1385
  'text': 'Sample2 text',
420
1386
  'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
421
1387
  'maxTextLines': 1,
422
1388
  'textStyle': { 'size': 16, 'weight': FontWeight.Bold },
423
1389
  },
424
1390
  {
425
- 'type': ComponentType.ImageButton,
1391
+ 'type': ComponentType$1.ImageButton,
426
1392
  'action': { 'type': ActionType.UIKit, 'data': 'uikit://delete' },
427
1393
  'width': { 'type': 'fixed', 'value': 20 },
428
1394
  'height': { 'type': 'fixed', 'value': 20 },
@@ -432,7 +1398,7 @@ const alignInFlex = (align) => {
432
1398
  ],
433
1399
  },
434
1400
  {
435
- 'type': ComponentType.Text,
1401
+ 'type': ComponentType$1.Text,
436
1402
  'viewStyle': { 'padding': { 'top': 6, 'bottom': 12, 'left': 0, 'right': 0 } },
437
1403
  'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
438
1404
  'textStyle': { 'size': 14 },
@@ -447,42 +1413,42 @@ const alignInFlex = (align) => {
447
1413
  'body': {
448
1414
  'items': [
449
1415
  {
450
- 'type': ComponentType.Box,
1416
+ 'type': ComponentType$1.Box,
451
1417
  'viewStyle': { 'backgroundColor': '#ffffff', 'borderWidth': 1, 'borderColor': '#eeeeee', 'radius': 16 },
452
1418
  'layout': Layout.Column,
453
1419
  'items': [
454
1420
  {
455
- 'type': ComponentType.Image,
1421
+ 'type': ComponentType$1.Image,
456
1422
  'height': { 'type': 'fixed', 'value': 200 },
457
1423
  'imageUrl': 'https://img.freepik.com/free-vector/cartoon-happy-hours-background_52683-81243.jpg?w=2000&t=st=1666689198~exp=1666689798~hmac=23109d44ba03deee7aee069cbeebfcb48fa27f85e53c1cafc5d5d7345f1a2041',
458
1424
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
459
1425
  },
460
1426
  {
461
- 'type': ComponentType.Box,
1427
+ 'type': ComponentType$1.Box,
462
1428
  'viewStyle': { 'padding': { 'top': 15, 'bottom': 15, 'left': 15, 'right': 15 } },
463
1429
  'layout': Layout.Column,
464
1430
  'items': [
465
1431
  {
466
- 'type': ComponentType.Text,
1432
+ 'type': ComponentType$1.Text,
467
1433
  'text': "Don't miss these deals today",
468
1434
  'maxTextLines': 1,
469
1435
  'textStyle': { 'size': 20, 'color': '#e10000', 'weight': FontWeight.Bold },
470
1436
  },
471
1437
  {
472
- 'type': ComponentType.Text,
1438
+ 'type': ComponentType$1.Text,
473
1439
  'viewStyle': { 'margin': { 'top': 5, 'bottom': 0, 'left': 0, 'right': 0 } },
474
1440
  'text': 'Pay with Maya and get cashback!',
475
1441
  'maxTextLines': 1,
476
1442
  'textStyle': { 'size': 14, 'color': '#e10000' },
477
1443
  },
478
1444
  {
479
- 'type': ComponentType.Box,
1445
+ 'type': ComponentType$1.Box,
480
1446
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
481
1447
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
482
1448
  'layout': Layout.Row,
483
1449
  'items': [
484
1450
  {
485
- 'type': ComponentType.Image,
1451
+ 'type': ComponentType$1.Image,
486
1452
  'width': { 'type': 'fixed', 'value': 50 },
487
1453
  'height': { 'type': 'fixed', 'value': 50 },
488
1454
  'viewStyle': {
@@ -495,19 +1461,19 @@ const alignInFlex = (align) => {
495
1461
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
496
1462
  },
497
1463
  {
498
- 'type': ComponentType.Box,
1464
+ 'type': ComponentType$1.Box,
499
1465
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
500
1466
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
501
1467
  'layout': Layout.Column,
502
1468
  'items': [
503
1469
  {
504
- 'type': ComponentType.Text,
1470
+ 'type': ComponentType$1.Text,
505
1471
  'text': 'Meralco',
506
1472
  'maxTextLines': 1,
507
1473
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
508
1474
  },
509
1475
  {
510
- 'type': ComponentType.Text,
1476
+ 'type': ComponentType$1.Text,
511
1477
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
512
1478
  'text': '30% cashback, P300 min spend',
513
1479
  'maxTextLines': 1,
@@ -518,13 +1484,13 @@ const alignInFlex = (align) => {
518
1484
  ],
519
1485
  },
520
1486
  {
521
- 'type': ComponentType.Box,
1487
+ 'type': ComponentType$1.Box,
522
1488
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
523
1489
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
524
1490
  'layout': Layout.Row,
525
1491
  'items': [
526
1492
  {
527
- 'type': ComponentType.Image,
1493
+ 'type': ComponentType$1.Image,
528
1494
  'width': { 'type': 'fixed', 'value': 50 },
529
1495
  'height': { 'type': 'fixed', 'value': 50 },
530
1496
  'viewStyle': {
@@ -537,19 +1503,19 @@ const alignInFlex = (align) => {
537
1503
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill, tintColor: '#a49a9a' },
538
1504
  },
539
1505
  {
540
- 'type': ComponentType.Box,
1506
+ 'type': ComponentType$1.Box,
541
1507
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
542
1508
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
543
1509
  'layout': Layout.Column,
544
1510
  'items': [
545
1511
  {
546
- 'type': ComponentType.Text,
1512
+ 'type': ComponentType$1.Text,
547
1513
  'text': 'Globe',
548
1514
  'maxTextLines': 1,
549
1515
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
550
1516
  },
551
1517
  {
552
- 'type': ComponentType.Text,
1518
+ 'type': ComponentType$1.Text,
553
1519
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
554
1520
  'text': '30% cashback, P300 min spend',
555
1521
  'maxTextLines': 1,
@@ -560,13 +1526,13 @@ const alignInFlex = (align) => {
560
1526
  ],
561
1527
  },
562
1528
  {
563
- 'type': ComponentType.Box,
1529
+ 'type': ComponentType$1.Box,
564
1530
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
565
1531
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
566
1532
  'layout': Layout.Row,
567
1533
  'items': [
568
1534
  {
569
- 'type': ComponentType.Image,
1535
+ 'type': ComponentType$1.Image,
570
1536
  'width': { 'type': 'fixed', 'value': 50 },
571
1537
  'height': { 'type': 'fixed', 'value': 50 },
572
1538
  'viewStyle': {
@@ -579,19 +1545,19 @@ const alignInFlex = (align) => {
579
1545
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
580
1546
  },
581
1547
  {
582
- 'type': ComponentType.Box,
1548
+ 'type': ComponentType$1.Box,
583
1549
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
584
1550
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
585
1551
  'layout': Layout.Column,
586
1552
  'items': [
587
1553
  {
588
- 'type': ComponentType.Text,
1554
+ 'type': ComponentType$1.Text,
589
1555
  'text': 'Cignal',
590
1556
  'maxTextLines': 1,
591
1557
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
592
1558
  },
593
1559
  {
594
- 'type': ComponentType.Text,
1560
+ 'type': ComponentType$1.Text,
595
1561
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
596
1562
  'text': '30% cashback, P300 min spend',
597
1563
  'maxTextLines': 1,
@@ -602,13 +1568,13 @@ const alignInFlex = (align) => {
602
1568
  ],
603
1569
  },
604
1570
  {
605
- 'type': ComponentType.Box,
1571
+ 'type': ComponentType$1.Box,
606
1572
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
607
1573
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
608
1574
  'layout': Layout.Row,
609
1575
  'items': [
610
1576
  {
611
- 'type': ComponentType.TextButton,
1577
+ 'type': ComponentType$1.TextButton,
612
1578
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
613
1579
  'viewStyle': {
614
1580
  'backgroundColor': '#e0e0e0',
@@ -620,7 +1586,7 @@ const alignInFlex = (align) => {
620
1586
  'textStyle': { 'size': 15, 'color': '#e10000', 'weight': FontWeight.Bold },
621
1587
  },
622
1588
  {
623
- 'type': ComponentType.TextButton,
1589
+ 'type': ComponentType$1.TextButton,
624
1590
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
625
1591
  'viewStyle': {
626
1592
  'backgroundColor': '#e10000',
@@ -645,11 +1611,11 @@ const alignInFlex = (align) => {
645
1611
  'body': {
646
1612
  'items': [
647
1613
  {
648
- 'type': ComponentType.Box,
1614
+ 'type': ComponentType$1.Box,
649
1615
  'layout': Layout.Column,
650
1616
  'items': [
651
1617
  {
652
- 'type': ComponentType.Image,
1618
+ 'type': ComponentType$1.Image,
653
1619
  'imageUrl': 'https://static.sendbird.com/sample/profiles/profile_40_512px.png',
654
1620
  'metaData': {
655
1621
  'pixelWidth': 512,
@@ -668,7 +1634,7 @@ const alignInFlex = (align) => {
668
1634
  },
669
1635
  },
670
1636
  {
671
- 'type': ComponentType.Box,
1637
+ 'type': ComponentType$1.Box,
672
1638
  'viewStyle': {
673
1639
  'padding': {
674
1640
  'top': 12,
@@ -680,15 +1646,15 @@ const alignInFlex = (align) => {
680
1646
  'layout': Layout.Column,
681
1647
  'items': [
682
1648
  {
683
- 'type': ComponentType.Box,
1649
+ 'type': ComponentType$1.Box,
684
1650
  'layout': Layout.Row,
685
1651
  'items': [
686
1652
  {
687
- 'type': ComponentType.Box,
1653
+ 'type': ComponentType$1.Box,
688
1654
  'layout': Layout.Column,
689
1655
  'items': [
690
1656
  {
691
- 'type': ComponentType.Text,
1657
+ 'type': ComponentType$1.Text,
692
1658
  'text': 'hi',
693
1659
  'maxTextLines': 3,
694
1660
  'viewStyle': {
@@ -705,7 +1671,7 @@ const alignInFlex = (align) => {
705
1671
  },
706
1672
  },
707
1673
  {
708
- 'type': ComponentType.Text,
1674
+ 'type': ComponentType$1.Text,
709
1675
  'text': 'bye',
710
1676
  'maxTextLines': 10,
711
1677
  'textStyle': {
@@ -715,7 +1681,7 @@ const alignInFlex = (align) => {
715
1681
  ],
716
1682
  },
717
1683
  {
718
- 'type': ComponentType.ImageButton,
1684
+ 'type': ComponentType$1.ImageButton,
719
1685
  'action': {
720
1686
  'type': ActionType.UIKit,
721
1687
  'data': 'sendbirduikit://delete',
@@ -740,11 +1706,11 @@ const alignInFlex = (align) => {
740
1706
  ],
741
1707
  },
742
1708
  {
743
- 'type': ComponentType.Box,
1709
+ 'type': ComponentType$1.Box,
744
1710
  'layout': Layout.Column,
745
1711
  'items': [
746
1712
  {
747
- 'type': ComponentType.Box,
1713
+ 'type': ComponentType$1.Box,
748
1714
  'viewStyle': {
749
1715
  'margin': {
750
1716
  'top': 16,
@@ -760,7 +1726,7 @@ const alignInFlex = (align) => {
760
1726
  'layout': Layout.Row,
761
1727
  'items': [
762
1728
  {
763
- 'type': ComponentType.Image,
1729
+ 'type': ComponentType$1.Image,
764
1730
  'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-ULE240VNV-83fd5776e78e-512',
765
1731
  'width': {
766
1732
  'type': 'fixed',
@@ -783,7 +1749,7 @@ const alignInFlex = (align) => {
783
1749
  },
784
1750
  },
785
1751
  {
786
- 'type': ComponentType.Box,
1752
+ 'type': ComponentType$1.Box,
787
1753
  'viewStyle': {
788
1754
  'margin': {
789
1755
  'top': 0,
@@ -795,7 +1761,7 @@ const alignInFlex = (align) => {
795
1761
  'layout': Layout.Column,
796
1762
  'items': [
797
1763
  {
798
- 'type': ComponentType.Text,
1764
+ 'type': ComponentType$1.Text,
799
1765
  'text': 'Chongbu',
800
1766
  'maxTextLines': 1,
801
1767
  'textStyle': {
@@ -804,7 +1770,7 @@ const alignInFlex = (align) => {
804
1770
  },
805
1771
  },
806
1772
  {
807
- 'type': ComponentType.Text,
1773
+ 'type': ComponentType$1.Text,
808
1774
  'viewStyle': {
809
1775
  'margin': {
810
1776
  'top': 4,
@@ -824,7 +1790,7 @@ const alignInFlex = (align) => {
824
1790
  ],
825
1791
  },
826
1792
  {
827
- 'type': ComponentType.Box,
1793
+ 'type': ComponentType$1.Box,
828
1794
  'viewStyle': {
829
1795
  'margin': {
830
1796
  'top': 16,
@@ -840,7 +1806,7 @@ const alignInFlex = (align) => {
840
1806
  'layout': Layout.Row,
841
1807
  'items': [
842
1808
  {
843
- 'type': ComponentType.Image,
1809
+ 'type': ComponentType$1.Image,
844
1810
  'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-U02LA25KY8J-d41a3e8c7554-512',
845
1811
  'width': {
846
1812
  'type': 'fixed',
@@ -863,7 +1829,7 @@ const alignInFlex = (align) => {
863
1829
  },
864
1830
  },
865
1831
  {
866
- 'type': ComponentType.Box,
1832
+ 'type': ComponentType$1.Box,
867
1833
  'viewStyle': {
868
1834
  'margin': {
869
1835
  'top': 0,
@@ -875,7 +1841,7 @@ const alignInFlex = (align) => {
875
1841
  'layout': Layout.Column,
876
1842
  'items': [
877
1843
  {
878
- 'type': ComponentType.Text,
1844
+ 'type': ComponentType$1.Text,
879
1845
  'text': 'Amanda',
880
1846
  'maxTextLines': 1,
881
1847
  'textStyle': {
@@ -884,7 +1850,7 @@ const alignInFlex = (align) => {
884
1850
  },
885
1851
  },
886
1852
  {
887
- 'type': ComponentType.Text,
1853
+ 'type': ComponentType$1.Text,
888
1854
  'viewStyle': {
889
1855
  'margin': {
890
1856
  'top': 4,
@@ -1013,6 +1979,285 @@ const alignInFlex = (align) => {
1013
1979
  ],
1014
1980
  },
1015
1981
  });
1982
+ ({
1983
+ 'version': 1,
1984
+ 'body': {
1985
+ 'items': [
1986
+ {
1987
+ 'elementId': 'root',
1988
+ 'type': 'box',
1989
+ 'layout': 'column',
1990
+ 'width': {
1991
+ 'type': 'flex',
1992
+ 'value': FlexSizeSpecValue.FillParent,
1993
+ },
1994
+ 'height': {
1995
+ 'type': 'flex',
1996
+ 'value': FlexSizeSpecValue.WrapContent,
1997
+ },
1998
+ 'items': [
1999
+ {
2000
+ 'type': 'text',
2001
+ 'viewStyle': {
2002
+ 'backgroundColor': '#a0c0ffff',
2003
+ 'margin': {
2004
+ 'top': 16,
2005
+ 'bottom': 16,
2006
+ 'left': 16,
2007
+ 'right': 16,
2008
+ },
2009
+ 'padding': {
2010
+ 'top': 16,
2011
+ 'bottom': 16,
2012
+ 'left': 16,
2013
+ 'right': 16,
2014
+ },
2015
+ },
2016
+ 'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
2017
+ 'textStyle': {
2018
+ 'size': 14,
2019
+ 'color': '#222121e0',
2020
+ 'weight': 'normal',
2021
+ },
2022
+ 'maxTextLines': 5,
2023
+ 'width': {
2024
+ 'type': 'flex',
2025
+ 'value': FlexSizeSpecValue.FillParent,
2026
+ },
2027
+ 'height': {
2028
+ 'type': 'flex',
2029
+ 'value': 1,
2030
+ },
2031
+ 'align': {
2032
+ 'horizontal': 'left',
2033
+ 'vertical': 'top',
2034
+ },
2035
+ 'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
2036
+ },
2037
+ {
2038
+ 'type': 'imageButton',
2039
+ 'viewStyle': {
2040
+ margin: {
2041
+ left: 24,
2042
+ right: 12,
2043
+ },
2044
+ },
2045
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
2046
+ 'height': { 'type': 'fixed', 'value': 250 },
2047
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
2048
+ 'imageStyle': { 'contentMode': 'aspectFill' },
2049
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
2050
+ 'action': { 'data': 'www.naver.com' },
2051
+ },
2052
+ ],
2053
+ },
2054
+ ],
2055
+ },
2056
+ });
2057
+
2058
+ const PADDING_WIDTH = 24;
2059
+ const CONTENT_LEFT_WIDTH = 40;
2060
+ const SWIPE_THRESHOLD = 15;
2061
+ const GAP_DEFAULT = 8;
2062
+ /**
2063
+ * fixed sized template items should use its child width.
2064
+ * Whereas flex sized template items should use its parent's width.
2065
+ * @param item
2066
+ */
2067
+ function shouldRenderAsFixed(item) {
2068
+ var _a;
2069
+ return ((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.type) === 'fixed';
2070
+ }
2071
+ function CarouselItem({ item, defaultWidth, marginRight }) {
2072
+ const style = shouldRenderAsFixed(item)
2073
+ ? { width: 'fit-content' }
2074
+ : { minWidth: defaultWidth, width: '100%' };
2075
+ if (marginRight) {
2076
+ style['marginRight'] = marginRight;
2077
+ }
2078
+ return React.createElement("div", { style: style }, item);
2079
+ }
2080
+ const Carousel = React.memo(({ children, gap = GAP_DEFAULT }) => {
2081
+ var _a, _b;
2082
+ const carouselRef = React.useRef(null);
2083
+ const screenWidth = window.innerWidth;
2084
+ const defaultItemWidth = (_b = (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
2085
+ const itemWidths = children.map((item) => {
2086
+ var _a;
2087
+ if (shouldRenderAsFixed(item)) {
2088
+ return Number((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.value);
2089
+ }
2090
+ return defaultItemWidth;
2091
+ });
2092
+ const itemPositions = getEachItemPositions();
2093
+ const [draggingInfo, setDraggingInfo] = React.useState({
2094
+ scrolling: false,
2095
+ dragging: false,
2096
+ startPos: null,
2097
+ offset: 0,
2098
+ translateX: 0,
2099
+ currentIndex: 0,
2100
+ });
2101
+ const handleMouseDown = (event) => {
2102
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: false, dragging: true, startPos: {
2103
+ x: event.clientX,
2104
+ y: event.clientY,
2105
+ }, offset: 0 })));
2106
+ };
2107
+ const handleMouseMove = (event) => {
2108
+ if (!draggingInfo.dragging || !draggingInfo.startPos)
2109
+ return;
2110
+ const currentX = event.clientX;
2111
+ const newOffset = currentX - draggingInfo.startPos.x;
2112
+ setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
2113
+ };
2114
+ const handleMouseUp = () => {
2115
+ if (!draggingInfo.dragging)
2116
+ return;
2117
+ handleDragEnd();
2118
+ unblockScroll();
2119
+ };
2120
+ const blockScroll = () => {
2121
+ if (carouselRef.current) {
2122
+ carouselRef.current.style.touchAction = 'pan-x';
2123
+ }
2124
+ };
2125
+ const unblockScroll = () => {
2126
+ if (carouselRef.current) {
2127
+ carouselRef.current.style.touchAction = 'pan-y';
2128
+ }
2129
+ };
2130
+ const handleTouchStart = (event) => {
2131
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: false, dragging: false, startPos: {
2132
+ x: event.touches[0].clientX,
2133
+ y: event.touches[0].clientY,
2134
+ }, offset: 0 })));
2135
+ };
2136
+ const handleTouchMove = (event) => {
2137
+ if (!draggingInfo.startPos || draggingInfo.scrolling)
2138
+ return;
2139
+ const startPos = draggingInfo.startPos;
2140
+ const [touchMoveX, touchMoveY] = [event.touches[0].clientX, event.touches[0].clientY];
2141
+ const [deltaX, deltaY] = [Math.abs(touchMoveX - startPos.x), Math.abs(touchMoveY - startPos.y)];
2142
+ const newOffset = touchMoveX - startPos.x;
2143
+ if (draggingInfo.dragging) {
2144
+ if (newOffset === draggingInfo.offset)
2145
+ return;
2146
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { offset: newOffset })));
2147
+ return;
2148
+ }
2149
+ if (deltaY > deltaX) {
2150
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: true })));
2151
+ }
2152
+ else {
2153
+ blockScroll();
2154
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { dragging: true, offset: newOffset })));
2155
+ }
2156
+ };
2157
+ const handleTouchEnd = () => {
2158
+ if (!draggingInfo.dragging)
2159
+ return;
2160
+ handleDragEnd();
2161
+ unblockScroll();
2162
+ };
2163
+ const getNewDraggingInfo = ({ translateX, currentIndex, newTranslateX, nextIndex, }) => {
2164
+ return {
2165
+ scrolling: false,
2166
+ dragging: false,
2167
+ startPos: null,
2168
+ offset: 0,
2169
+ translateX: newTranslateX !== null && newTranslateX !== void 0 ? newTranslateX : translateX,
2170
+ currentIndex: nextIndex !== null && nextIndex !== void 0 ? nextIndex : currentIndex,
2171
+ };
2172
+ };
2173
+ const handleDragEnd = () => {
2174
+ const { offset, currentIndex } = draggingInfo;
2175
+ const absOffset = Math.abs(offset);
2176
+ if (absOffset < SWIPE_THRESHOLD) {
2177
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2178
+ return;
2179
+ }
2180
+ // If dragged to left, next index should be to the right
2181
+ if (offset < 0 && currentIndex < children.length - 1) {
2182
+ if (isLastItemFitsScreen(currentIndex)) {
2183
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2184
+ return;
2185
+ }
2186
+ const nextIndex = currentIndex + 1;
2187
+ /**
2188
+ * This is special logic for "더 보기" button for Socar use-case.
2189
+ * The button will have a small width (less than 50px).
2190
+ * We want to include this button in the view and snap to right padding wall IFF !isLastTwoItemsFitScreen.
2191
+ */
2192
+ if (nextIndex === children.length - 1 || isLastItemFitsScreen(nextIndex)) {
2193
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[children.length - 1].end - PADDING_WIDTH - CONTENT_LEFT_WIDTH + screenWidth, nextIndex: children.length - 1 })));
2194
+ }
2195
+ else {
2196
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[nextIndex].start, nextIndex })));
2197
+ }
2198
+ // If dragged to right, next index should be to the left
2199
+ }
2200
+ else if (offset > 0 && currentIndex > 0) {
2201
+ let nextIndex = currentIndex - 1;
2202
+ while (draggingInfo.translateX >= itemPositions[nextIndex].start) {
2203
+ nextIndex--;
2204
+ }
2205
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[nextIndex].start, nextIndex })));
2206
+ }
2207
+ else {
2208
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2209
+ }
2210
+ };
2211
+ function getCurrentTranslateX() {
2212
+ return draggingInfo.translateX + draggingInfo.offset;
2213
+ }
2214
+ function isLastItemFitsScreen(nextIndex) {
2215
+ const restItemsWidth = itemWidths.slice(nextIndex).reduce((prev, curr) => prev + gap + curr);
2216
+ const restTotalWidth = PADDING_WIDTH + CONTENT_LEFT_WIDTH + restItemsWidth;
2217
+ return restTotalWidth <= screenWidth;
2218
+ }
2219
+ function getEachItemPositions() {
2220
+ let accumulator = 0;
2221
+ return itemWidths.map((itemWidth, i) => {
2222
+ if (i > 0) {
2223
+ accumulator -= gap;
2224
+ }
2225
+ const itemPosition = {
2226
+ start: accumulator,
2227
+ end: accumulator - itemWidth,
2228
+ };
2229
+ accumulator -= itemWidth;
2230
+ return itemPosition;
2231
+ });
2232
+ }
2233
+ return (React.createElement("div", { ref: carouselRef, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, className: "sb-message-template__carousel", style: {
2234
+ cursor: draggingInfo.dragging ? 'grabbing' : 'grab',
2235
+ transition: draggingInfo.dragging ? 'none' : 'transform 0.5s ease',
2236
+ transform: `translateX(${getCurrentTranslateX()}px)`,
2237
+ } }, children.map((item, index) => (React.createElement(CarouselItem, { key: index + '', item: item, defaultWidth: defaultItemWidth + 'px', marginRight: index < children.length - 1 ? gap : undefined })))));
2238
+ });
2239
+
2240
+ function isWrappedText(view) {
2241
+ var _a;
2242
+ return view.type === ComponentType$1.Text && ((_a = view.width) === null || _a === void 0 ? void 0 : _a.value) == FlexSizeSpecValue.WrapContent;
2243
+ }
2244
+ // Compares the size spec to the option and returns whether they are equal or not.
2245
+ const isSizeCompatibleWithOption = ({ size, option, }) => {
2246
+ if (option === 'wrap') {
2247
+ return size.type === 'flex' && size.value == FlexSizeSpecValue.WrapContent;
2248
+ }
2249
+ if (option === 'fill') {
2250
+ return size.type === 'flex' && size.value == FlexSizeSpecValue.FillParent;
2251
+ }
2252
+ return size.type === 'fixed';
2253
+ };
2254
+ const isGif = (url) => {
2255
+ var _a;
2256
+ if (typeof url !== 'string')
2257
+ return false;
2258
+ const extension = (_a = url.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
2259
+ return extension === 'gif';
2260
+ };
1016
2261
 
1017
2262
  var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
1018
2263
  var t = {};
@@ -1120,7 +2365,7 @@ const ReactMessageTemplateImage = (_a) => {
1120
2365
  if (hasError) {
1121
2366
  return React.createElement(PlaceholderReactMessageTemplateImage, Object.assign({}, props));
1122
2367
  }
1123
- else if (tintColor) {
2368
+ else if (tintColor && !isGif(props.src)) {
1124
2369
  return React.createElement(CanvasReactMessageTemplateImage, Object.assign({}, props, { onError: onError, tintColor: tintColor, metaData: metaData }));
1125
2370
  }
1126
2371
  else {
@@ -1151,21 +2396,6 @@ const MessageProvider = (props) => {
1151
2396
  };
1152
2397
  const useMessageContext = () => React.useContext(MessageContext);
1153
2398
 
1154
- function isWrappedText(view) {
1155
- var _a;
1156
- return view.type === ComponentType.Text && ((_a = view.width) === null || _a === void 0 ? void 0 : _a.value) == FlexSizeSpecValue.WrapContent;
1157
- }
1158
- // Compares the size spec to the option and returns whether they are equal or not.
1159
- const isSizeCompatibleWithOption = ({ size, option, }) => {
1160
- if (option === 'wrap') {
1161
- return size.type === 'flex' && size.value == FlexSizeSpecValue.WrapContent;
1162
- }
1163
- if (option === 'fill') {
1164
- return size.type === 'flex' && size.value == FlexSizeSpecValue.FillParent;
1165
- }
1166
- return size.type === 'fixed';
1167
- };
1168
-
1169
2399
  /**
1170
2400
  * Preserves a reference to the given callback function as an argument while the component is mounted.
1171
2401
  * Wraps the given callback in React's Ref to preserve the reference.
@@ -1378,7 +2608,7 @@ function setBorderStyle(styles, borderWidth, borderColor, radius) {
1378
2608
  }
1379
2609
  }
1380
2610
  function setViewStyle(styles, props) {
1381
- var _a, _b, _c, _d;
2611
+ var _a, _b, _c, _d, _e, _f;
1382
2612
  const { viewStyle } = props;
1383
2613
  if ((_a = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _a === void 0 ? void 0 : _a.top)
1384
2614
  styles['marginTop'] = Number(viewStyle.margin.top);
@@ -1388,6 +2618,9 @@ function setViewStyle(styles, props) {
1388
2618
  styles['marginLeft'] = Number(viewStyle.margin.left);
1389
2619
  if ((_d = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _d === void 0 ? void 0 : _d.right)
1390
2620
  styles['marginRight'] = Number(viewStyle.margin.right);
2621
+ const marginHorizontal = Number((_e = styles.marginLeft) !== null && _e !== void 0 ? _e : '0') + Number((_f = styles.marginRight) !== null && _f !== void 0 ? _f : '0');
2622
+ if (marginHorizontal > 0 && styles.width === '100%')
2623
+ styles.width = `calc(100% - ${marginHorizontal}px)`;
1391
2624
  if (viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.backgroundColor)
1392
2625
  styles['backgroundColor'] = viewStyle.backgroundColor;
1393
2626
  // use JSON.stringify to escape special characters in image URL
@@ -1491,7 +2724,7 @@ function setTextStyle(styles, props, options) {
1491
2724
  if ((width === null || width === void 0 ? void 0 : width.value) == FlexSizeSpecValue.WrapContent) {
1492
2725
  styles['maxWidth'] = '100%';
1493
2726
  }
1494
- if (props.type === ComponentType.Text) {
2727
+ if (props.type === ComponentType$1.Text) {
1495
2728
  const { siblings, elemIdx } = options;
1496
2729
  // To push out any subsequent components from the container,
1497
2730
  // if a prior one is long enough to occupy an entire line
@@ -1535,19 +2768,24 @@ const ActionHandler = ({ className = '', style, children, props }) => {
1535
2768
  const { recalculatedStyle, elemRef } = useRecalculateWidth({ style, props });
1536
2769
  const { message, handleWebAction, handleCustomAction, handlePredefinedAction } = useMessageContext();
1537
2770
  const onClick = (e) => {
1538
- var _a, _b, _c, _d, _e;
2771
+ var _a, _b, _c, _d, _e, _f, _g;
1539
2772
  if (((_a = props === null || props === void 0 ? void 0 : props.action) === null || _a === void 0 ? void 0 : _a.type) === 'web') {
1540
2773
  if (handleWebAction) {
1541
- handleWebAction === null || handleWebAction === void 0 ? void 0 : handleWebAction(e, props.action, message);
2774
+ handleWebAction(e, props.action, message);
1542
2775
  }
1543
2776
  else {
1544
2777
  (_c = window === null || window === void 0 ? void 0 : window.open(returnUrl((_b = props === null || props === void 0 ? void 0 : props.action) === null || _b === void 0 ? void 0 : _b.data), '_blank', 'noopener noreferrer')) === null || _c === void 0 ? void 0 : _c.focus();
1545
2778
  }
1546
2779
  }
1547
2780
  if (((_d = props === null || props === void 0 ? void 0 : props.action) === null || _d === void 0 ? void 0 : _d.type) === 'custom') {
1548
- handleCustomAction === null || handleCustomAction === void 0 ? void 0 : handleCustomAction(e, props.action, message);
2781
+ if (handleCustomAction) {
2782
+ handleCustomAction(e, props.action, message);
2783
+ }
2784
+ else {
2785
+ (_f = window === null || window === void 0 ? void 0 : window.open(returnUrl((_e = props === null || props === void 0 ? void 0 : props.action) === null || _e === void 0 ? void 0 : _e.data), '_blank', 'noopener noreferrer')) === null || _f === void 0 ? void 0 : _f.focus();
2786
+ }
1549
2787
  }
1550
- if (((_e = props === null || props === void 0 ? void 0 : props.action) === null || _e === void 0 ? void 0 : _e.type) === 'uikit') {
2788
+ if (((_g = props === null || props === void 0 ? void 0 : props.action) === null || _g === void 0 ? void 0 : _g.type) === 'uikit') {
1551
2789
  handlePredefinedAction === null || handlePredefinedAction === void 0 ? void 0 : handlePredefinedAction(e, props.action, message);
1552
2790
  }
1553
2791
  };
@@ -1584,15 +2822,21 @@ function isFixedOrFill(view) {
1584
2822
  (widthType === 'flex' && ((_d = view === null || view === void 0 ? void 0 : view.width) === null || _d === void 0 ? void 0 : _d.value) === FlexSizeSpecValue.FillParent);
1585
2823
  return isFixedDiamension || isFill;
1586
2824
  }
2825
+ function convertNewlinesToBr(text) {
2826
+ return text.split('\n').map((line, index) => (React.createElement(React.Fragment, { key: index },
2827
+ line,
2828
+ React.createElement("br", null))));
2829
+ }
1587
2830
  function renderText(view) {
1588
2831
  const { text, maxTextLines } = view;
1589
2832
  const isToBeWrapped = isFixedOrFill(view);
1590
2833
  const isMultiLine = maxTextLines != null && maxTextLines > 0;
2834
+ const convertedText = convertNewlinesToBr(text);
1591
2835
  if (isMultiLine || isToBeWrapped) {
1592
2836
  const wrapperStyling = Object.assign(Object.assign({}, ((isMultiLine || isToBeWrapped) && { maxWidth: '100%' })), (isToBeWrapped && { maxHeight: '100%', overflow: 'hidden' }));
1593
- return (React.createElement("div", { style: wrapperStyling }, isMultiLine ? React.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, text) : text));
2837
+ return (React.createElement("div", { style: wrapperStyling }, isMultiLine ? React.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, convertedText) : convertedText));
1594
2838
  }
1595
- return text;
2839
+ return isMultiLine ? React.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, convertedText) : convertedText;
1596
2840
  }
1597
2841
  const renderer = createRenderer({
1598
2842
  views: {
@@ -1609,13 +2853,16 @@ const renderer = createRenderer({
1609
2853
  React.createElement(ReactMessageTemplateImage, { className: "sb-message-template__image", alt: "image", src: props.imageUrl, style: { width: '100%', height: '100%', aspectRatio: 'inherit', objectFit: 'inherit' }, tintColor: (_a = props.imageStyle) === null || _a === void 0 ? void 0 : _a.tintColor, metaData: props.metaData })));
1610
2854
  },
1611
2855
  textButton(props) {
1612
- return (React.createElement(ActionHandler, { className: "sb-message-template__text-button", elementId: props.elementId, style: props.parsedProperties, props: props }, renderText(props)));
2856
+ return (React.createElement(ActionHandler, { className: "sb-message-template__text-button", elementId: props.elementId, style: props.parsedProperties, props: props }, renderText(Object.assign({ maxTextLines: 1 }, props))));
1613
2857
  },
1614
2858
  imageButton(props) {
1615
2859
  var _a;
1616
2860
  return (React.createElement(ActionHandler, { className: "sb-message-template__image-container sb-message-template__image-button", elementId: props.elementId, style: props.parsedProperties, props: props },
1617
2861
  React.createElement(ReactMessageTemplateImage, { className: "sb-message-template__image", alt: "image-button", src: props.imageUrl, style: { width: '100%', height: '100%', aspectRatio: 'inherit', objectFit: 'inherit' }, tintColor: (_a = props.imageStyle) === null || _a === void 0 ? void 0 : _a.tintColor, metaData: props.metaData })));
1618
2862
  },
2863
+ carouselView(props) {
2864
+ return React.createElement(Carousel, { gap: props.spacing }, props.children);
2865
+ },
1619
2866
  },
1620
2867
  });
1621
2868
  const parser = createParser({
@@ -1655,18 +2902,21 @@ const parser = createParser({
1655
2902
  setImageAspectRatio(styles, props);
1656
2903
  return styles;
1657
2904
  },
2905
+ mapCarouselProps(props, options) {
2906
+ const styles = getDefaultStyles();
2907
+ setViewProps(styles, props, options);
2908
+ return styles;
2909
+ },
1658
2910
  });
1659
2911
  createMessageTemplate({
1660
2912
  renderer,
1661
2913
  parser,
1662
- Container: ({ children }) => {
1663
- return (React.createElement("div", { className: "sb-message-template__parent", style: {
2914
+ Container: ({ children, className }) => {
2915
+ return (React.createElement("div", { className: `sb-message-template__parent ${className}`, style: {
1664
2916
  display: 'flex',
1665
2917
  flexDirection: 'column',
1666
2918
  maxWidth: 400,
1667
- backgroundColor: '#cecece',
1668
2919
  marginBottom: 24,
1669
- borderRadius: '8px',
1670
2920
  } }, children));
1671
2921
  },
1672
2922
  });
@@ -1675,18 +2925,18 @@ var CustomTemplate = createMessageTemplate({
1675
2925
  parser: parser,
1676
2926
  renderer: renderer,
1677
2927
  Container: function (_a) {
1678
- var children = _a.children;
2928
+ var children = _a.children, className = _a.className;
1679
2929
  return (React.createElement("div", { className: [
1680
- 'sb-message-template__parent',
2930
+ "sb-message-template__parent ".concat(className),
1681
2931
  'sendbird-message-template__root',
1682
2932
  ].join(' ') }, children));
1683
2933
  },
1684
2934
  }).MessageTemplate;
1685
2935
  function MessageTemplate(_a) {
1686
- var templateItems = _a.templateItems;
1687
- return React.createElement(CustomTemplate, { templateItems: templateItems });
2936
+ var templateItems = _a.templateItems, templateVersion = _a.templateVersion;
2937
+ return React.createElement(CustomTemplate, { templateItems: templateItems, templateVersion: templateVersion });
1688
2938
  }
1689
2939
 
1690
2940
  exports.MessageProvider = MessageProvider;
1691
2941
  exports.MessageTemplate = MessageTemplate;
1692
- //# sourceMappingURL=bundle-CS644BJp.js.map
2942
+ //# sourceMappingURL=bundle-CpgiyizX.js.map