@sendbird/uikit-react 3.14.0-beta.2 → 3.14.1

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 (931) hide show
  1. package/App.js +78 -79
  2. package/App.js.map +1 -1
  3. package/CHANGELOG.md +106 -8
  4. package/Channel/components/ChannelHeader.js +29 -29
  5. package/Channel/components/ChannelUI.js +66 -66
  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 +64 -63
  12. package/Channel/components/MessageList.js.map +1 -1
  13. package/Channel/components/RemoveMessageModal.js +27 -27
  14. package/Channel/components/SuggestedMentionList.js +27 -27
  15. package/Channel/components/TypingIndicator.js +6 -6
  16. package/Channel/components/UnreadCount.js +7 -7
  17. package/Channel/context.js +23 -25
  18. package/Channel/context.js.map +1 -1
  19. package/Channel/hooks/useHandleUploadFiles.js +13 -13
  20. package/Channel/hooks/useInitialMessagesFetch.js +6 -6
  21. package/Channel/utils/compareMessagesForGrouping.js +5 -5
  22. package/Channel/utils/getMessagePartsInfo.js +6 -6
  23. package/Channel.js +65 -65
  24. package/ChannelList/components/AddChannel.js +20 -20
  25. package/ChannelList/components/ChannelListHeader.js +8 -8
  26. package/ChannelList/components/ChannelListUI.js +34 -34
  27. package/ChannelList/components/ChannelPreview.js +27 -27
  28. package/ChannelList/components/ChannelPreviewAction.js +11 -11
  29. package/ChannelList/context.js +10 -10
  30. package/ChannelList.js +34 -34
  31. package/ChannelSettings/components/ChannelProfile.js +14 -14
  32. package/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
  33. package/ChannelSettings/components/ChannelSettingsUI.js +28 -29
  34. package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  35. package/ChannelSettings/components/EditDetailsModal.js +14 -14
  36. package/ChannelSettings/components/LeaveChannel.js +11 -11
  37. package/ChannelSettings/components/ModerationPanel.js +22 -23
  38. package/ChannelSettings/components/ModerationPanel.js.map +1 -1
  39. package/ChannelSettings/components/UserListItem.js +13 -13
  40. package/ChannelSettings/components/UserPanel.js +20 -20
  41. package/ChannelSettings/context.js +3 -3
  42. package/ChannelSettings.js +22 -23
  43. package/ChannelSettings.js.map +1 -1
  44. package/CreateChannel/components/CreateChannelUI.js +16 -16
  45. package/CreateChannel/components/InviteUsers.js +16 -16
  46. package/CreateChannel/components/SelectChannelType.js +10 -10
  47. package/CreateChannel/context.js +4 -4
  48. package/CreateChannel.js +16 -16
  49. package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
  50. package/CreateOpenChannel/context.js +1 -1
  51. package/CreateOpenChannel.js +11 -11
  52. package/EditUserProfile/components/EditUserProfileUI.js +12 -12
  53. package/EditUserProfile.js +12 -12
  54. package/GroupChannel/components/FileViewer.js +57 -27
  55. package/GroupChannel/components/FileViewer.js.map +1 -1
  56. package/GroupChannel/components/FrozenNotification.js +5 -5
  57. package/GroupChannel/components/GroupChannelHeader.js +23 -22
  58. package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
  59. package/GroupChannel/components/GroupChannelUI.js +61 -60
  60. package/GroupChannel/components/GroupChannelUI.js.map +1 -1
  61. package/GroupChannel/components/Message.js +55 -54
  62. package/GroupChannel/components/Message.js.map +1 -1
  63. package/GroupChannel/components/MessageInputWrapper.js +39 -38
  64. package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
  65. package/GroupChannel/components/MessageList.js +59 -57
  66. package/GroupChannel/components/MessageList.js.map +1 -1
  67. package/GroupChannel/components/RemoveMessageModal.js +23 -22
  68. package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
  69. package/GroupChannel/components/SuggestedMentionList.js +12 -12
  70. package/GroupChannel/components/TypingIndicator.js +6 -6
  71. package/GroupChannel/components/UnreadCount.js +7 -7
  72. package/GroupChannel/context.js +29 -26
  73. package/GroupChannel/context.js.map +1 -1
  74. package/GroupChannel.js +60 -59
  75. package/GroupChannel.js.map +1 -1
  76. package/GroupChannelList/components/AddGroupChannel.js +18 -18
  77. package/GroupChannelList/components/GroupChannelListHeader.js +8 -8
  78. package/GroupChannelList/components/GroupChannelListItem.js +24 -24
  79. package/GroupChannelList/components/GroupChannelListUI.js +33 -33
  80. package/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
  81. package/GroupChannelList/context.js +5 -5
  82. package/GroupChannelList.js +33 -33
  83. package/MessageSearch/components/MessageSearchUI.js +14 -14
  84. package/MessageSearch/context.js +1 -1
  85. package/MessageSearch.js +14 -14
  86. package/OpenChannel/components/FrozenChannelNotification.js +5 -5
  87. package/OpenChannel/components/OpenChannelHeader.js +18 -18
  88. package/OpenChannel/components/OpenChannelInput.js +25 -25
  89. package/OpenChannel/components/OpenChannelMessage.js +40 -44
  90. package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
  91. package/OpenChannel/components/OpenChannelMessageList.js +44 -44
  92. package/OpenChannel/components/OpenChannelUI.js +44 -43
  93. package/OpenChannel/components/OpenChannelUI.js.map +1 -1
  94. package/OpenChannel/context.js +17 -17
  95. package/OpenChannel.js +40 -40
  96. package/OpenChannelList/components/OpenChannelListUI.js +14 -14
  97. package/OpenChannelList/components/OpenChannelPreview.js +6 -6
  98. package/OpenChannelList/context.js +3 -3
  99. package/OpenChannelList.js +14 -14
  100. package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  101. package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  102. package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -19
  103. package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
  104. package/OpenChannelSettings/components/OperatorUI.js +19 -20
  105. package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
  106. package/OpenChannelSettings/components/ParticipantUI.js +17 -17
  107. package/OpenChannelSettings/context.js +3 -3
  108. package/OpenChannelSettings.js +19 -20
  109. package/OpenChannelSettings.js.map +1 -1
  110. package/SendbirdProvider.js +26 -48
  111. package/SendbirdProvider.js.map +1 -1
  112. package/Thread/components/ParentMessageInfo.js +78 -49
  113. package/Thread/components/ParentMessageInfo.js.map +1 -1
  114. package/Thread/components/ParentMessageInfoItem.js +74 -36
  115. package/Thread/components/ParentMessageInfoItem.js.map +1 -1
  116. package/Thread/components/ThreadHeader.js +7 -7
  117. package/Thread/components/ThreadList.js +46 -46
  118. package/Thread/components/ThreadListItem.js +112 -55
  119. package/Thread/components/ThreadListItem.js.map +1 -1
  120. package/Thread/components/ThreadMessageInput.js +43 -42
  121. package/Thread/components/ThreadMessageInput.js.map +1 -1
  122. package/Thread/components/ThreadUI.js +56 -56
  123. package/Thread/context.js +15 -12
  124. package/Thread/context.js.map +1 -1
  125. package/Thread.js +56 -56
  126. package/VoicePlayer/context.js +3 -3
  127. package/VoicePlayer/useVoicePlayer.js +10 -10
  128. package/VoiceRecorder/context.js +10 -10
  129. package/VoiceRecorder/useVoiceRecorder.js +9 -9
  130. package/chunks/{bundle-BdZAuvN7.js → bundle--6zoMlSy.js} +7 -7
  131. package/chunks/{bundle-BdZAuvN7.js.map → bundle--6zoMlSy.js.map} +1 -1
  132. package/chunks/{bundle-rSEP1XoB.js → bundle--KTlVDyw.js} +40 -9
  133. package/{cjs/chunks/bundle-B8jj7upa.js.map → chunks/bundle--KTlVDyw.js.map} +1 -1
  134. package/chunks/bundle-B-rlaXWu.js +20 -0
  135. package/chunks/bundle-B-rlaXWu.js.map +1 -0
  136. package/chunks/{bundle-CfKGkWtT.js → bundle-B1531-Xt.js} +1 -1
  137. package/chunks/bundle-B1531-Xt.js.map +1 -0
  138. package/chunks/{bundle-By4sE23W.js → bundle-B4gJwLnb.js} +8 -8
  139. package/chunks/{bundle-By4sE23W.js.map → bundle-B4gJwLnb.js.map} +1 -1
  140. package/chunks/{bundle-dw1OtCIz.js → bundle-BCNLSTzO.js} +2 -2
  141. package/chunks/{bundle-dw1OtCIz.js.map → bundle-BCNLSTzO.js.map} +1 -1
  142. package/chunks/{bundle-CTyr18ZN.js → bundle-BGCeRCjz.js} +3 -3
  143. package/chunks/{bundle-CTyr18ZN.js.map → bundle-BGCeRCjz.js.map} +1 -1
  144. package/chunks/{bundle-CcVFQEGF.js → bundle-BGjW7OlD.js} +3 -3
  145. package/chunks/{bundle-CcVFQEGF.js.map → bundle-BGjW7OlD.js.map} +1 -1
  146. package/chunks/{bundle-C_n2Emjx.js → bundle-BJ8L9q1S.js} +1 -1
  147. package/chunks/bundle-BJ8L9q1S.js.map +1 -0
  148. package/chunks/{bundle-DUTTSKO5.js → bundle-BL67-UYY.js} +3 -3
  149. package/chunks/bundle-BL67-UYY.js.map +1 -0
  150. package/chunks/{bundle-BJs_5v6q.js → bundle-BR7FU00z.js} +2 -2
  151. package/chunks/{bundle-BJs_5v6q.js.map → bundle-BR7FU00z.js.map} +1 -1
  152. package/chunks/{bundle-aH4n4ipp.js → bundle-BSOtUr3s.js} +1 -1
  153. package/chunks/{bundle-aH4n4ipp.js.map → bundle-BSOtUr3s.js.map} +1 -1
  154. package/chunks/{bundle-CPszRkFg.js → bundle-BWCUNJoA.js} +1 -1
  155. package/chunks/bundle-BWCUNJoA.js.map +1 -0
  156. package/chunks/{bundle-zf2ni0YJ.js → bundle-BYJO_VIh.js} +16 -16
  157. package/chunks/bundle-BYJO_VIh.js.map +1 -0
  158. package/chunks/{bundle-gSQF3Ob-.js → bundle-BlbJo9zV.js} +1 -1
  159. package/chunks/bundle-BlbJo9zV.js.map +1 -0
  160. package/chunks/{bundle-DgJrJ2xn.js → bundle-BmJp9ELx.js} +4 -4
  161. package/chunks/bundle-BmJp9ELx.js.map +1 -0
  162. package/chunks/{bundle-Bf5VthYV.js → bundle-BmJsj1DE.js} +1 -1
  163. package/chunks/bundle-BmJsj1DE.js.map +1 -0
  164. package/chunks/{bundle-cjTAVQxr.js → bundle-BqZ85d_h.js} +7 -7
  165. package/chunks/{bundle-cjTAVQxr.js.map → bundle-BqZ85d_h.js.map} +1 -1
  166. package/chunks/{bundle-DcOT2xg0.js → bundle-BqpRc1fc.js} +1 -1
  167. package/chunks/bundle-BqpRc1fc.js.map +1 -0
  168. package/chunks/{bundle-WwYLGAen.js → bundle-Buy5OFoZ.js} +2 -2
  169. package/chunks/bundle-Buy5OFoZ.js.map +1 -0
  170. package/chunks/{bundle-CF6PMu9B.js → bundle-Bxhw3nyo.js} +1 -1
  171. package/chunks/bundle-Bxhw3nyo.js.map +1 -0
  172. package/chunks/{bundle-CJIPD7gN.js → bundle-ByOL8d1Y.js} +3 -3
  173. package/chunks/bundle-ByOL8d1Y.js.map +1 -0
  174. package/chunks/{bundle-ynxAt7xC.js → bundle-C0hxFMpo.js} +1 -1
  175. package/chunks/bundle-C0hxFMpo.js.map +1 -0
  176. package/chunks/{bundle-87W4GPnC.js → bundle-C4E6x1yH.js} +1 -1
  177. package/chunks/bundle-C4E6x1yH.js.map +1 -0
  178. package/chunks/{bundle-CbBN2HTx.js → bundle-C5gv8BUg.js} +10 -10
  179. package/chunks/bundle-C5gv8BUg.js.map +1 -0
  180. package/chunks/{bundle-CRLJsnLv.js → bundle-C5yKwJa5.js} +10 -10
  181. package/chunks/{bundle-CRLJsnLv.js.map → bundle-C5yKwJa5.js.map} +1 -1
  182. package/chunks/{bundle-DCjOFMcr.js → bundle-C8JSMAy5.js} +4 -4
  183. package/chunks/bundle-C8JSMAy5.js.map +1 -0
  184. package/chunks/{bundle-C-_RpFyM.js → bundle-C9k4XREr.js} +3 -3
  185. package/chunks/bundle-C9k4XREr.js.map +1 -0
  186. package/chunks/bundle-CEBnyfFY.js +16 -0
  187. package/chunks/bundle-CEBnyfFY.js.map +1 -0
  188. package/chunks/{bundle-Cvk0UZLW.js → bundle-CKUGA2Du.js} +4 -4
  189. package/chunks/{bundle-Cvk0UZLW.js.map → bundle-CKUGA2Du.js.map} +1 -1
  190. package/chunks/{bundle-BNydv1KA.js → bundle-CLEZvXSa.js} +6 -6
  191. package/chunks/bundle-CLEZvXSa.js.map +1 -0
  192. package/chunks/{bundle-DvI4QhV3.js → bundle-CMdrfQU4.js} +3 -3
  193. package/chunks/{bundle-DvI4QhV3.js.map → bundle-CMdrfQU4.js.map} +1 -1
  194. package/chunks/{bundle-5okwu0-4.js → bundle-CRJQQ2Pt.js} +45 -37
  195. package/{cjs/chunks/bundle-B1Nml3ap.js.map → chunks/bundle-CRJQQ2Pt.js.map} +1 -1
  196. package/chunks/{bundle-CS7t26su.js → bundle-CSD1Y0Up.js} +1 -1
  197. package/chunks/bundle-CSD1Y0Up.js.map +1 -0
  198. package/chunks/{bundle-D56MXYqF.js → bundle-CVBV25Ez.js} +4 -4
  199. package/chunks/bundle-CVBV25Ez.js.map +1 -0
  200. package/chunks/{bundle-DRL21d0s.js → bundle-CXPL_q7g.js} +1 -1
  201. package/chunks/bundle-CXPL_q7g.js.map +1 -0
  202. package/chunks/{bundle-CcTHgZqq.js → bundle-Ca-c848e.js} +1 -1
  203. package/chunks/{bundle-CcTHgZqq.js.map → bundle-Ca-c848e.js.map} +1 -1
  204. package/chunks/{bundle-BKG2cvZ9.js → bundle-CcCCSO3j.js} +3 -3
  205. package/chunks/bundle-CcCCSO3j.js.map +1 -0
  206. package/chunks/{bundle-DkRogqRS.js → bundle-CemSwFjs.js} +3 -3
  207. package/chunks/bundle-CemSwFjs.js.map +1 -0
  208. package/chunks/{bundle-BuIxT5aZ.js → bundle-CfCfA_eS.js} +1 -1
  209. package/chunks/bundle-CfCfA_eS.js.map +1 -0
  210. package/chunks/{bundle-DXhynnjn.js → bundle-CqjZHu2X.js} +1 -1
  211. package/chunks/{bundle-DXhynnjn.js.map → bundle-CqjZHu2X.js.map} +1 -1
  212. package/chunks/{bundle-DnFiUPoR.js → bundle-Cr5JfXnd.js} +1 -1
  213. package/chunks/bundle-Cr5JfXnd.js.map +1 -0
  214. package/chunks/{bundle-C8TvjQ68.js → bundle-CsWx1pIH.js} +10 -10
  215. package/chunks/{bundle-C8TvjQ68.js.map → bundle-CsWx1pIH.js.map} +1 -1
  216. package/chunks/{bundle-C0LxowmB.js → bundle-Cv74ntvD.js} +3 -3
  217. package/chunks/{bundle-C0LxowmB.js.map → bundle-Cv74ntvD.js.map} +1 -1
  218. package/chunks/{bundle-COGPgRK-.js → bundle-CwodDxvD.js} +1 -1
  219. package/chunks/bundle-CwodDxvD.js.map +1 -0
  220. package/chunks/{bundle-PsMmoXV_.js → bundle-Cxxoo-8r.js} +4 -4
  221. package/chunks/{bundle-PsMmoXV_.js.map → bundle-Cxxoo-8r.js.map} +1 -1
  222. package/chunks/{bundle-BJ9OAqWz.js → bundle-CypLTOy5.js} +1 -1
  223. package/chunks/bundle-CypLTOy5.js.map +1 -0
  224. package/chunks/{bundle-RpPfSzD9.js → bundle-CzECC0WY.js} +1 -1
  225. package/chunks/{bundle-RpPfSzD9.js.map → bundle-CzECC0WY.js.map} +1 -1
  226. package/chunks/{bundle-B1s46xJT.js → bundle-CzznhOkf.js} +6 -4
  227. package/chunks/bundle-CzznhOkf.js.map +1 -0
  228. package/chunks/{bundle-l_8hg8H3.js → bundle-D-62maU6.js} +2 -2
  229. package/chunks/bundle-D-62maU6.js.map +1 -0
  230. package/chunks/{bundle-DzuAq6CR.js → bundle-D2nMevA-.js} +2 -2
  231. package/chunks/bundle-D2nMevA-.js.map +1 -0
  232. package/chunks/{bundle-BUy5u56K.js → bundle-D3BcbbU5.js} +1 -1
  233. package/chunks/bundle-D3BcbbU5.js.map +1 -0
  234. package/chunks/{bundle-B0azZJiA.js → bundle-D3hUaRgQ.js} +14 -14
  235. package/chunks/{bundle-B0azZJiA.js.map → bundle-D3hUaRgQ.js.map} +1 -1
  236. package/chunks/{bundle-XGYpSNOg.js → bundle-D7hy2K0F.js} +5 -5
  237. package/chunks/{bundle-XGYpSNOg.js.map → bundle-D7hy2K0F.js.map} +1 -1
  238. package/chunks/{bundle-BoezGGkX.js → bundle-DAf6h8hw.js} +13 -12
  239. package/chunks/{bundle-BoezGGkX.js.map → bundle-DAf6h8hw.js.map} +1 -1
  240. package/chunks/{bundle-rfEyWmAm.js → bundle-DChW5Z3e.js} +1 -1
  241. package/chunks/bundle-DChW5Z3e.js.map +1 -0
  242. package/chunks/{bundle-BNeRxCQA.js → bundle-DIQmyyii.js} +1 -1
  243. package/chunks/bundle-DIQmyyii.js.map +1 -0
  244. package/chunks/{bundle-DoLed6JB.js → bundle-DKTKyX5B.js} +1 -1
  245. package/chunks/bundle-DKTKyX5B.js.map +1 -0
  246. package/chunks/{bundle-BJgNc4do.js → bundle-DLC9d0SK.js} +2 -2
  247. package/chunks/{bundle-BJgNc4do.js.map → bundle-DLC9d0SK.js.map} +1 -1
  248. package/chunks/{bundle-D-cpJ5MP.js → bundle-DOE8EVWg.js} +1 -1
  249. package/chunks/bundle-DOE8EVWg.js.map +1 -0
  250. package/chunks/{bundle-BvQAepkJ.js → bundle-DR0N9Re_.js} +1 -1
  251. package/chunks/bundle-DR0N9Re_.js.map +1 -0
  252. package/chunks/{bundle-D_KO6Orc.js → bundle-DRWNB6So.js} +1 -1
  253. package/chunks/{bundle-D_KO6Orc.js.map → bundle-DRWNB6So.js.map} +1 -1
  254. package/chunks/{bundle-BSPBjwR6.js → bundle-DURANzV-.js} +6 -6
  255. package/chunks/bundle-DURANzV-.js.map +1 -0
  256. package/chunks/{bundle-C1RngQCJ.js → bundle-DYRfOZJn.js} +9 -9
  257. package/chunks/bundle-DYRfOZJn.js.map +1 -0
  258. package/chunks/{bundle-DRIvYDIu.js → bundle-Dan3OYIf.js} +29 -26
  259. package/chunks/{bundle-DRIvYDIu.js.map → bundle-Dan3OYIf.js.map} +1 -1
  260. package/chunks/{bundle-GQqssfTX.js → bundle-DdrjZDoC.js} +1 -1
  261. package/chunks/bundle-DdrjZDoC.js.map +1 -0
  262. package/chunks/{bundle-C4sUzPGS.js → bundle-DiKCx9T0.js} +3 -3
  263. package/chunks/bundle-DiKCx9T0.js.map +1 -0
  264. package/chunks/{bundle-BPclYGwz.js → bundle-DluCUNJH.js} +1 -1
  265. package/chunks/bundle-DluCUNJH.js.map +1 -0
  266. package/chunks/{bundle-B2pNgmzq.js → bundle-DmHVnPIK.js} +3 -3
  267. package/chunks/bundle-DmHVnPIK.js.map +1 -0
  268. package/chunks/{bundle-Dicb9Y5f.js → bundle-Dp8Uc0CR.js} +6 -6
  269. package/chunks/bundle-Dp8Uc0CR.js.map +1 -0
  270. package/chunks/{bundle-N_XkA5JB.js → bundle-DpQTyp78.js} +57 -63
  271. package/chunks/bundle-DpQTyp78.js.map +1 -0
  272. package/chunks/{bundle-GKCJ2hC_.js → bundle-DqYLLkVp.js} +3 -3
  273. package/chunks/{bundle-GKCJ2hC_.js.map → bundle-DqYLLkVp.js.map} +1 -1
  274. package/chunks/{bundle-BmPxXQ_C.js → bundle-DraDQPaG.js} +5 -5
  275. package/chunks/bundle-DraDQPaG.js.map +1 -0
  276. package/chunks/{bundle-DTDkmegk.js → bundle-Dzzjbgaw.js} +1 -1
  277. package/chunks/bundle-Dzzjbgaw.js.map +1 -0
  278. package/chunks/{bundle-Bys5RwQj.js → bundle-Ryg4dN5c.js} +2 -2
  279. package/chunks/bundle-Ryg4dN5c.js.map +1 -0
  280. package/chunks/{bundle-azFrmmyK.js → bundle-cbuWRyNb.js} +10 -10
  281. package/chunks/{bundle-azFrmmyK.js.map → bundle-cbuWRyNb.js.map} +1 -1
  282. package/chunks/{bundle-BhjXV0mk.js → bundle-h_OgbXNz.js} +1 -1
  283. package/chunks/bundle-h_OgbXNz.js.map +1 -0
  284. package/chunks/{bundle-BFDyBk4r.js → bundle-oKdCuyHB.js} +1 -1
  285. package/chunks/bundle-oKdCuyHB.js.map +1 -0
  286. package/chunks/{bundle-D_X2Bqh-.js → bundle-tVxHr2lN.js} +2 -2
  287. package/chunks/bundle-tVxHr2lN.js.map +1 -0
  288. package/chunks/{bundle-BH5rbsxO.js → bundle-vcCWiyPL.js} +1367 -120
  289. package/chunks/bundle-vcCWiyPL.js.map +1 -0
  290. package/cjs/App.js +78 -79
  291. package/cjs/App.js.map +1 -1
  292. package/cjs/Channel/components/ChannelHeader.js +29 -29
  293. package/cjs/Channel/components/ChannelUI.js +66 -66
  294. package/cjs/Channel/components/FileViewer.js +28 -28
  295. package/cjs/Channel/components/FrozenNotification.js +5 -5
  296. package/cjs/Channel/components/Message.js +55 -55
  297. package/cjs/Channel/components/MessageInput.js +41 -41
  298. package/cjs/Channel/components/MessageInputWrapper.js +41 -41
  299. package/cjs/Channel/components/MessageList.js +67 -66
  300. package/cjs/Channel/components/MessageList.js.map +1 -1
  301. package/cjs/Channel/components/RemoveMessageModal.js +27 -27
  302. package/cjs/Channel/components/SuggestedMentionList.js +27 -27
  303. package/cjs/Channel/components/TypingIndicator.js +6 -6
  304. package/cjs/Channel/components/UnreadCount.js +7 -7
  305. package/cjs/Channel/context.js +23 -25
  306. package/cjs/Channel/context.js.map +1 -1
  307. package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
  308. package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
  309. package/cjs/Channel/utils/compareMessagesForGrouping.js +5 -5
  310. package/cjs/Channel/utils/getMessagePartsInfo.js +6 -6
  311. package/cjs/Channel.js +65 -65
  312. package/cjs/ChannelList/components/AddChannel.js +20 -20
  313. package/cjs/ChannelList/components/ChannelListHeader.js +8 -8
  314. package/cjs/ChannelList/components/ChannelListUI.js +34 -34
  315. package/cjs/ChannelList/components/ChannelPreview.js +27 -27
  316. package/cjs/ChannelList/components/ChannelPreviewAction.js +11 -11
  317. package/cjs/ChannelList/context.js +10 -10
  318. package/cjs/ChannelList.js +34 -34
  319. package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
  320. package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +6 -6
  321. package/cjs/ChannelSettings/components/ChannelSettingsUI.js +26 -27
  322. package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
  323. package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
  324. package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
  325. package/cjs/ChannelSettings/components/ModerationPanel.js +22 -23
  326. package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
  327. package/cjs/ChannelSettings/components/UserListItem.js +13 -13
  328. package/cjs/ChannelSettings/components/UserPanel.js +20 -20
  329. package/cjs/ChannelSettings/context.js +3 -3
  330. package/cjs/ChannelSettings.js +22 -23
  331. package/cjs/ChannelSettings.js.map +1 -1
  332. package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
  333. package/cjs/CreateChannel/components/InviteUsers.js +16 -16
  334. package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
  335. package/cjs/CreateChannel/context.js +4 -4
  336. package/cjs/CreateChannel.js +16 -16
  337. package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
  338. package/cjs/CreateOpenChannel/context.js +1 -1
  339. package/cjs/CreateOpenChannel.js +11 -11
  340. package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
  341. package/cjs/EditUserProfile.js +12 -12
  342. package/cjs/GroupChannel/components/FileViewer.js +57 -27
  343. package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
  344. package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
  345. package/cjs/GroupChannel/components/GroupChannelHeader.js +23 -22
  346. package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
  347. package/cjs/GroupChannel/components/GroupChannelUI.js +61 -60
  348. package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
  349. package/cjs/GroupChannel/components/Message.js +55 -54
  350. package/cjs/GroupChannel/components/Message.js.map +1 -1
  351. package/cjs/GroupChannel/components/MessageInputWrapper.js +38 -37
  352. package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
  353. package/cjs/GroupChannel/components/MessageList.js +60 -58
  354. package/cjs/GroupChannel/components/MessageList.js.map +1 -1
  355. package/cjs/GroupChannel/components/RemoveMessageModal.js +23 -22
  356. package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
  357. package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
  358. package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
  359. package/cjs/GroupChannel/components/UnreadCount.js +7 -7
  360. package/cjs/GroupChannel/context.js +29 -26
  361. package/cjs/GroupChannel/context.js.map +1 -1
  362. package/cjs/GroupChannel.js +60 -59
  363. package/cjs/GroupChannel.js.map +1 -1
  364. package/cjs/GroupChannelList/components/AddGroupChannel.js +18 -18
  365. package/cjs/GroupChannelList/components/GroupChannelListHeader.js +8 -8
  366. package/cjs/GroupChannelList/components/GroupChannelListItem.js +24 -24
  367. package/cjs/GroupChannelList/components/GroupChannelListUI.js +33 -33
  368. package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
  369. package/cjs/GroupChannelList/context.js +5 -5
  370. package/cjs/GroupChannelList.js +33 -33
  371. package/cjs/MessageSearch/components/MessageSearchUI.js +14 -14
  372. package/cjs/MessageSearch/context.js +1 -1
  373. package/cjs/MessageSearch.js +14 -14
  374. package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
  375. package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -18
  376. package/cjs/OpenChannel/components/OpenChannelInput.js +25 -25
  377. package/cjs/OpenChannel/components/OpenChannelMessage.js +39 -43
  378. package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
  379. package/cjs/OpenChannel/components/OpenChannelMessageList.js +42 -42
  380. package/cjs/OpenChannel/components/OpenChannelUI.js +44 -43
  381. package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
  382. package/cjs/OpenChannel/context.js +17 -17
  383. package/cjs/OpenChannel.js +40 -40
  384. package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
  385. package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
  386. package/cjs/OpenChannelList/context.js +3 -3
  387. package/cjs/OpenChannelList.js +14 -14
  388. package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
  389. package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
  390. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -19
  391. package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
  392. package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -20
  393. package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
  394. package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
  395. package/cjs/OpenChannelSettings/context.js +3 -3
  396. package/cjs/OpenChannelSettings.js +19 -20
  397. package/cjs/OpenChannelSettings.js.map +1 -1
  398. package/cjs/SendbirdProvider.js +26 -48
  399. package/cjs/SendbirdProvider.js.map +1 -1
  400. package/cjs/Thread/components/ParentMessageInfo.js +78 -49
  401. package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
  402. package/cjs/Thread/components/ParentMessageInfoItem.js +74 -36
  403. package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
  404. package/cjs/Thread/components/ThreadHeader.js +7 -7
  405. package/cjs/Thread/components/ThreadList.js +46 -46
  406. package/cjs/Thread/components/ThreadListItem.js +112 -55
  407. package/cjs/Thread/components/ThreadListItem.js.map +1 -1
  408. package/cjs/Thread/components/ThreadMessageInput.js +43 -42
  409. package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
  410. package/cjs/Thread/components/ThreadUI.js +56 -56
  411. package/cjs/Thread/context.js +15 -12
  412. package/cjs/Thread/context.js.map +1 -1
  413. package/cjs/Thread.js +56 -56
  414. package/cjs/VoicePlayer/context.js +3 -3
  415. package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
  416. package/cjs/VoiceRecorder/context.js +10 -10
  417. package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
  418. package/cjs/chunks/{bundle-BdHrSYl1.js → bundle-6kvEuXvi.js} +4 -4
  419. package/cjs/chunks/bundle-6kvEuXvi.js.map +1 -0
  420. package/cjs/chunks/{bundle--ToWZ9cj.js → bundle-B-3hDIdO.js} +1 -1
  421. package/cjs/chunks/bundle-B-3hDIdO.js.map +1 -0
  422. package/cjs/chunks/{bundle-DjB9bkvD.js → bundle-B6ZFoMH6.js} +1 -1
  423. package/cjs/chunks/bundle-B6ZFoMH6.js.map +1 -0
  424. package/cjs/chunks/{bundle-1hCsXfVb.js → bundle-BBn6e1TE.js} +1 -1
  425. package/cjs/chunks/{bundle-1hCsXfVb.js.map → bundle-BBn6e1TE.js.map} +1 -1
  426. package/cjs/chunks/{bundle-INETVVGE.js → bundle-BD49w5la.js} +1 -1
  427. package/cjs/chunks/bundle-BD49w5la.js.map +1 -0
  428. package/cjs/chunks/{bundle-Bm5ysFU-.js → bundle-BFekEiOq.js} +10 -10
  429. package/cjs/chunks/bundle-BFekEiOq.js.map +1 -0
  430. package/cjs/chunks/bundle-BN-LMdIM.js +24 -0
  431. package/cjs/chunks/bundle-BN-LMdIM.js.map +1 -0
  432. package/cjs/chunks/{bundle-C88DsCNB.js → bundle-BOcTTiW2.js} +3 -3
  433. package/cjs/chunks/bundle-BOcTTiW2.js.map +1 -0
  434. package/cjs/chunks/{bundle-CS644BJp.js → bundle-BQRvcMvv.js} +1366 -119
  435. package/cjs/chunks/bundle-BQRvcMvv.js.map +1 -0
  436. package/cjs/chunks/{bundle-BpOxHgfP.js → bundle-BVr30Pv7.js} +3 -3
  437. package/cjs/chunks/bundle-BVr30Pv7.js.map +1 -0
  438. package/cjs/chunks/{bundle-SIHqK2VF.js → bundle-BX7oj4JP.js} +1 -1
  439. package/cjs/chunks/bundle-BX7oj4JP.js.map +1 -0
  440. package/cjs/chunks/{bundle-FD0n8tOs.js → bundle-BYIW_h3Y.js} +4 -4
  441. package/cjs/chunks/bundle-BYIW_h3Y.js.map +1 -0
  442. package/cjs/chunks/{bundle-CW9QUnWM.js → bundle-BYMwGMsS.js} +1 -1
  443. package/cjs/chunks/bundle-BYMwGMsS.js.map +1 -0
  444. package/cjs/chunks/{bundle-tHnRbr7F.js → bundle-B_DDVUVa.js} +1 -1
  445. package/cjs/chunks/bundle-B_DDVUVa.js.map +1 -0
  446. package/cjs/chunks/{bundle-C9jXxNI1.js → bundle-BhUkL36h.js} +7 -7
  447. package/cjs/chunks/bundle-BhUkL36h.js.map +1 -0
  448. package/cjs/chunks/{bundle-DNP731Dg.js → bundle-BjidTEAi.js} +16 -16
  449. package/cjs/chunks/bundle-BjidTEAi.js.map +1 -0
  450. package/cjs/chunks/{bundle-DRFWOXrL.js → bundle-BjuS3ItZ.js} +1 -1
  451. package/cjs/chunks/bundle-BjuS3ItZ.js.map +1 -0
  452. package/cjs/chunks/{bundle-CD9H6RqJ.js → bundle-Bp8Rx6es.js} +57 -63
  453. package/cjs/chunks/bundle-Bp8Rx6es.js.map +1 -0
  454. package/cjs/chunks/{bundle-Y_FLyDnc.js → bundle-BrqtKvF1.js} +40 -9
  455. package/cjs/chunks/bundle-BrqtKvF1.js.map +1 -0
  456. package/cjs/chunks/{bundle-MFvyy6ar.js → bundle-BuxwIob-.js} +10 -10
  457. package/cjs/chunks/{bundle-MFvyy6ar.js.map → bundle-BuxwIob-.js.map} +1 -1
  458. package/cjs/chunks/{bundle-Q5_I3n-8.js → bundle-By-3k_MB.js} +1 -1
  459. package/cjs/chunks/bundle-By-3k_MB.js.map +1 -0
  460. package/cjs/chunks/{bundle-BxaGZqGJ.js → bundle-ByAfkvZh.js} +3 -3
  461. package/cjs/chunks/bundle-ByAfkvZh.js.map +1 -0
  462. package/cjs/chunks/{bundle-BVgN7Stu.js → bundle-BzKUDWhn.js} +2 -2
  463. package/cjs/chunks/{bundle-BVgN7Stu.js.map → bundle-BzKUDWhn.js.map} +1 -1
  464. package/cjs/chunks/{bundle-Dy6Gn-sd.js → bundle-C-TcZdkJ.js} +7 -7
  465. package/cjs/chunks/bundle-C-TcZdkJ.js.map +1 -0
  466. package/cjs/chunks/{bundle-B2cSnWcr.js → bundle-C3SJz4Ji.js} +1 -1
  467. package/cjs/chunks/bundle-C3SJz4Ji.js.map +1 -0
  468. package/cjs/chunks/{bundle-DJxxPTK5.js → bundle-C5UvuA7p.js} +3 -3
  469. package/cjs/chunks/{bundle-DJxxPTK5.js.map → bundle-C5UvuA7p.js.map} +1 -1
  470. package/cjs/chunks/{bundle-CmFB08Wf.js → bundle-C5nXYn9D.js} +3 -3
  471. package/cjs/chunks/bundle-C5nXYn9D.js.map +1 -0
  472. package/cjs/chunks/{bundle-jdEKrUGh.js → bundle-CB5yFlZx.js} +1 -1
  473. package/cjs/chunks/bundle-CB5yFlZx.js.map +1 -0
  474. package/cjs/chunks/{bundle-Cmmi9pdk.js → bundle-CCI24NOf.js} +1 -1
  475. package/cjs/chunks/{bundle-Cmmi9pdk.js.map → bundle-CCI24NOf.js.map} +1 -1
  476. package/cjs/chunks/{bundle-DxdzDF19.js → bundle-CFD0Fa-A.js} +2 -2
  477. package/cjs/chunks/bundle-CFD0Fa-A.js.map +1 -0
  478. package/cjs/chunks/{bundle-CIswYN43.js → bundle-CIwnFnv9.js} +3 -3
  479. package/cjs/chunks/bundle-CIwnFnv9.js.map +1 -0
  480. package/cjs/chunks/{bundle-cf3-zuo6.js → bundle-CKV7u9Pa.js} +1 -1
  481. package/cjs/chunks/bundle-CKV7u9Pa.js.map +1 -0
  482. package/cjs/chunks/{bundle-BsGXZt6G.js → bundle-CKVCRcX8.js} +3 -3
  483. package/cjs/chunks/bundle-CKVCRcX8.js.map +1 -0
  484. package/cjs/chunks/{bundle-B-dy_WYW.js → bundle-CRggj9kM.js} +8 -8
  485. package/cjs/chunks/{bundle-B-dy_WYW.js.map → bundle-CRggj9kM.js.map} +1 -1
  486. package/cjs/chunks/{bundle-DUP4cxoZ.js → bundle-CSlhgdb3.js} +1 -1
  487. package/cjs/chunks/bundle-CSlhgdb3.js.map +1 -0
  488. package/cjs/chunks/{bundle-JNAedgrE.js → bundle-CZ7evH27.js} +1 -1
  489. package/cjs/chunks/bundle-CZ7evH27.js.map +1 -0
  490. package/cjs/chunks/{bundle-Cyr1aQpR.js → bundle-CZwvHnpm.js} +1 -1
  491. package/cjs/chunks/bundle-CZwvHnpm.js.map +1 -0
  492. package/cjs/chunks/{bundle-CqF06THu.js → bundle-CbrvdaBm.js} +1 -1
  493. package/cjs/chunks/{bundle-CqF06THu.js.map → bundle-CbrvdaBm.js.map} +1 -1
  494. package/cjs/chunks/{bundle-BVuqbZx2.js → bundle-Cj7wXzYB.js} +13 -12
  495. package/cjs/chunks/{bundle-BVuqbZx2.js.map → bundle-Cj7wXzYB.js.map} +1 -1
  496. package/cjs/chunks/{bundle-D1duSVks.js → bundle-Cm8jkxa4.js} +14 -14
  497. package/cjs/chunks/{bundle-D1duSVks.js.map → bundle-Cm8jkxa4.js.map} +1 -1
  498. package/cjs/chunks/{bundle-C2v2lxLx.js → bundle-Cqim199-.js} +3 -3
  499. package/cjs/chunks/bundle-Cqim199-.js.map +1 -0
  500. package/cjs/chunks/{bundle-DREyIwSt.js → bundle-CsvF4G63.js} +10 -10
  501. package/cjs/chunks/{bundle-DREyIwSt.js.map → bundle-CsvF4G63.js.map} +1 -1
  502. package/cjs/chunks/{bundle-7GCXhi1c.js → bundle-CuCEO0gF.js} +3 -3
  503. package/cjs/chunks/bundle-CuCEO0gF.js.map +1 -0
  504. package/cjs/chunks/{bundle-CsvKRjaK.js → bundle-Cv9f4q9i.js} +1 -1
  505. package/cjs/chunks/bundle-Cv9f4q9i.js.map +1 -0
  506. package/cjs/chunks/{bundle-8oxVWV_9.js → bundle-Cxk9TBzk.js} +1 -1
  507. package/cjs/chunks/bundle-Cxk9TBzk.js.map +1 -0
  508. package/cjs/chunks/{bundle-e6crA6HI.js → bundle-D55IafBS.js} +1 -1
  509. package/cjs/chunks/bundle-D55IafBS.js.map +1 -0
  510. package/cjs/chunks/{bundle-xvNVoWia.js → bundle-DA-C0L_U.js} +6 -6
  511. package/cjs/chunks/bundle-DA-C0L_U.js.map +1 -0
  512. package/cjs/chunks/{bundle-Dpu1gg5r.js → bundle-DGw6pGp5.js} +1 -1
  513. package/cjs/chunks/bundle-DGw6pGp5.js.map +1 -0
  514. package/cjs/chunks/{bundle-tOZCSmZj.js → bundle-DMKeCwT_.js} +2 -2
  515. package/cjs/chunks/bundle-DMKeCwT_.js.map +1 -0
  516. package/cjs/chunks/{bundle-BMsGwLym.js → bundle-DMqilxSQ.js} +1 -1
  517. package/cjs/chunks/bundle-DMqilxSQ.js.map +1 -0
  518. package/cjs/chunks/{bundle-BUOuk2jo.js → bundle-DQT7OMs9.js} +2 -2
  519. package/cjs/chunks/bundle-DQT7OMs9.js.map +1 -0
  520. package/cjs/chunks/{bundle-DgY0qwTL.js → bundle-DRA4Fpff.js} +5 -5
  521. package/cjs/chunks/bundle-DRA4Fpff.js.map +1 -0
  522. package/cjs/chunks/{bundle-B1Nml3ap.js → bundle-DRrLQVHb.js} +45 -36
  523. package/{chunks/bundle-5okwu0-4.js.map → cjs/chunks/bundle-DRrLQVHb.js.map} +1 -1
  524. package/cjs/chunks/{bundle-B8jj7upa.js → bundle-D_m86gwb.js} +4 -4
  525. package/cjs/chunks/bundle-D_m86gwb.js.map +1 -0
  526. package/cjs/chunks/{bundle-9K7l85xj.js → bundle-DkUAiVSQ.js} +4 -4
  527. package/cjs/chunks/bundle-DkUAiVSQ.js.map +1 -0
  528. package/cjs/chunks/{bundle-NU2voiKZ.js → bundle-DmEJQudU.js} +6 -4
  529. package/cjs/chunks/bundle-DmEJQudU.js.map +1 -0
  530. package/cjs/chunks/{bundle-f6dhmXLj.js → bundle-DvYvJ4DA.js} +2 -2
  531. package/cjs/chunks/bundle-DvYvJ4DA.js.map +1 -0
  532. package/cjs/chunks/{bundle-dNtU9_eg.js → bundle-DwFtclQP.js} +6 -6
  533. package/cjs/chunks/bundle-DwFtclQP.js.map +1 -0
  534. package/cjs/chunks/{bundle-DAVdWPDx.js → bundle-GXGfsR0s.js} +10 -10
  535. package/cjs/chunks/bundle-GXGfsR0s.js.map +1 -0
  536. package/cjs/chunks/{bundle-DX2BaZv_.js → bundle-K9SAn_UP.js} +2 -2
  537. package/cjs/chunks/bundle-K9SAn_UP.js.map +1 -0
  538. package/cjs/chunks/{bundle-BgLtZgZ_.js → bundle-KIzH0CXn.js} +1 -1
  539. package/cjs/chunks/bundle-KIzH0CXn.js.map +1 -0
  540. package/cjs/chunks/{bundle-6eXm5bOG.js → bundle-QlySzqVl.js} +1 -1
  541. package/cjs/chunks/bundle-QlySzqVl.js.map +1 -0
  542. package/cjs/chunks/{bundle-BF04PgMH.js → bundle-U2gOXD87.js} +1 -1
  543. package/cjs/chunks/bundle-U2gOXD87.js.map +1 -0
  544. package/cjs/chunks/{bundle-DcPTVUQJ.js → bundle-U9tfceaP.js} +3 -3
  545. package/cjs/chunks/bundle-U9tfceaP.js.map +1 -0
  546. package/cjs/chunks/{bundle-03LrACV2.js → bundle-Vo5M_T27.js} +6 -6
  547. package/cjs/chunks/bundle-Vo5M_T27.js.map +1 -0
  548. package/cjs/chunks/{bundle-BlvFC-Rm.js → bundle-_3SK8xoH.js} +1 -1
  549. package/cjs/chunks/bundle-_3SK8xoH.js.map +1 -0
  550. package/cjs/chunks/{bundle-BwO19Jro.js → bundle-_ouF-COo.js} +3 -3
  551. package/cjs/chunks/bundle-_ouF-COo.js.map +1 -0
  552. package/cjs/chunks/{bundle-BVLguSfh.js → bundle-b2Ui6hpE.js} +4 -4
  553. package/cjs/chunks/{bundle-BVLguSfh.js.map → bundle-b2Ui6hpE.js.map} +1 -1
  554. package/cjs/chunks/{bundle-qgvbJv89.js → bundle-gBFimzbK.js} +2 -2
  555. package/cjs/chunks/bundle-gBFimzbK.js.map +1 -0
  556. package/cjs/chunks/{bundle-DfYperTC.js → bundle-gGCaMzPZ.js} +1 -1
  557. package/cjs/chunks/bundle-gGCaMzPZ.js.map +1 -0
  558. package/cjs/chunks/{bundle-BR1tsZpK.js → bundle-h_3DR6aU.js} +1 -1
  559. package/cjs/chunks/bundle-h_3DR6aU.js.map +1 -0
  560. package/cjs/chunks/{bundle-BR23SbdZ.js → bundle-kJy0a2Vi.js} +3 -3
  561. package/cjs/chunks/{bundle-BR23SbdZ.js.map → bundle-kJy0a2Vi.js.map} +1 -1
  562. package/cjs/chunks/{bundle-DTjdtS4A.js → bundle-kLARBimu.js} +30 -27
  563. package/cjs/chunks/bundle-kLARBimu.js.map +1 -0
  564. package/cjs/chunks/{bundle-C8cnT2au.js → bundle-lP7Zc4ok.js} +9 -9
  565. package/cjs/chunks/bundle-lP7Zc4ok.js.map +1 -0
  566. package/cjs/chunks/{bundle-djPmP6bl.js → bundle-oHlDXetd.js} +5 -5
  567. package/cjs/chunks/bundle-oHlDXetd.js.map +1 -0
  568. package/cjs/chunks/bundle-pFmJjfem.js +18 -0
  569. package/cjs/chunks/bundle-pFmJjfem.js.map +1 -0
  570. package/cjs/chunks/{bundle-BH87xcnc.js → bundle-tFZbRjso.js} +1 -1
  571. package/cjs/chunks/bundle-tFZbRjso.js.map +1 -0
  572. package/cjs/chunks/{bundle-ORLbcTP_.js → bundle-uzuKeMjI.js} +1 -1
  573. package/cjs/chunks/bundle-uzuKeMjI.js.map +1 -0
  574. package/cjs/chunks/{bundle-C9YHSQ4e.js → bundle-vjAaeYFb.js} +1 -1
  575. package/cjs/chunks/bundle-vjAaeYFb.js.map +1 -0
  576. package/cjs/chunks/{bundle-7FLBAmYO.js → bundle-wczCFG7x.js} +2 -2
  577. package/cjs/chunks/{bundle-7FLBAmYO.js.map → bundle-wczCFG7x.js.map} +1 -1
  578. package/cjs/hooks/useModal.js +9 -9
  579. package/cjs/index.js +82 -83
  580. package/cjs/index.js.map +1 -1
  581. package/cjs/pubSub/topics.js +1 -1
  582. package/cjs/sendbirdSelectors.js +2 -2
  583. package/cjs/ui/Accordion.js +28 -36
  584. package/cjs/ui/Accordion.js.map +1 -1
  585. package/cjs/ui/AccordionGroup.js +47 -11
  586. package/cjs/ui/AccordionGroup.js.map +1 -1
  587. package/cjs/ui/AdminMessage.js +3 -3
  588. package/cjs/ui/Avatar.js +4 -4
  589. package/cjs/ui/Badge.js +5 -5
  590. package/cjs/ui/BottomSheet.js +9 -9
  591. package/cjs/ui/Button.js +3 -3
  592. package/cjs/ui/ChannelAvatar.js +5 -5
  593. package/cjs/ui/ConnectionStatus.js +6 -6
  594. package/cjs/ui/ContextMenu.js +6 -6
  595. package/cjs/ui/DateSeparator.js +4 -4
  596. package/cjs/ui/EmojiReactions.js +29 -17
  597. package/cjs/ui/EmojiReactions.js.map +1 -1
  598. package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
  599. package/cjs/ui/FileMessageItemBody.js +50 -12
  600. package/cjs/ui/FileMessageItemBody.js.map +1 -1
  601. package/cjs/ui/FileViewer.js +15 -15
  602. package/cjs/ui/Icon.js +2 -2
  603. package/cjs/ui/IconButton.js +1 -1
  604. package/cjs/ui/ImageRenderer.js +3 -3
  605. package/cjs/ui/Input.js +3 -3
  606. package/cjs/ui/Label.js +3 -3
  607. package/cjs/ui/LinkLabel.js +3 -3
  608. package/cjs/ui/Loader.js +2 -2
  609. package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
  610. package/cjs/ui/MentionLabel.js +13 -13
  611. package/cjs/ui/MentionUserLabel.js +1 -1
  612. package/cjs/ui/MessageContent.js +155 -133
  613. package/cjs/ui/MessageContent.js.map +1 -1
  614. package/cjs/ui/MessageFeedbackFailedModal.js +35 -0
  615. package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -0
  616. package/cjs/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
  617. package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
  618. package/cjs/ui/MessageInput.js +15 -15
  619. package/cjs/ui/MessageItemMenu.js +67 -29
  620. package/cjs/ui/MessageItemMenu.js.map +1 -1
  621. package/cjs/ui/MessageItemReactionMenu.js +9 -9
  622. package/cjs/ui/MessageSearchFileItem.js +14 -14
  623. package/cjs/ui/MessageSearchItem.js +11 -11
  624. package/cjs/ui/MessageStatus.js +12 -12
  625. package/cjs/ui/MessageTemplate.js +2 -1
  626. package/cjs/ui/MessageTemplate.js.map +1 -1
  627. package/cjs/ui/MobileFeedbackMenu.js +9 -9
  628. package/cjs/ui/Modal.js +8 -8
  629. package/cjs/ui/MutedAvatarOverlay.js +2 -2
  630. package/cjs/ui/OGMessageItemBody.js +19 -17
  631. package/cjs/ui/OGMessageItemBody.js.map +1 -1
  632. package/cjs/ui/OpenChannelAdminMessage.js +3 -3
  633. package/cjs/ui/OpenChannelAvatar.js +8 -8
  634. package/cjs/ui/OpenchannelConversationHeader.js +8 -8
  635. package/cjs/ui/OpenchannelFileMessage.js +18 -18
  636. package/cjs/ui/OpenchannelOGMessage.js +20 -20
  637. package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
  638. package/cjs/ui/OpenchannelUserMessage.js +18 -18
  639. package/cjs/ui/PlaceHolder.js +6 -6
  640. package/cjs/ui/PlaybackTime.js +3 -3
  641. package/cjs/ui/QuoteMessage.js +9 -9
  642. package/cjs/ui/QuoteMessageInput.js +12 -16
  643. package/cjs/ui/QuoteMessageInput.js.map +1 -1
  644. package/cjs/ui/ReactionBadge.js +3 -3
  645. package/cjs/ui/ReactionButton.js +4 -4
  646. package/cjs/ui/SortByRow.js +2 -2
  647. package/cjs/ui/TemplateMessageItemBody.js +143 -72
  648. package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
  649. package/cjs/ui/TextButton.js +2 -2
  650. package/cjs/ui/TextMessageItemBody.js +16 -16
  651. package/cjs/ui/ThreadReplies.js +8 -8
  652. package/cjs/ui/ThumbnailMessageItemBody.js +7 -7
  653. package/cjs/ui/Toggle.js +1 -1
  654. package/cjs/ui/Tooltip.js +3 -3
  655. package/cjs/ui/TooltipWrapper.js +1 -1
  656. package/cjs/ui/TypingIndicatorBubble.js +4 -4
  657. package/cjs/ui/UnknownMessageItemBody.js +7 -7
  658. package/cjs/ui/UserListItem.js +17 -16
  659. package/cjs/ui/UserListItem.js.map +1 -1
  660. package/cjs/ui/UserProfile.js +10 -10
  661. package/cjs/ui/VoiceMessageInput.js +9 -9
  662. package/cjs/ui/VoiceMessageItemBody.js +10 -10
  663. package/cjs/ui/Word.js +13 -13
  664. package/cjs/useSendbirdStateContext.js +1 -1
  665. package/cjs/utils/message/isVoiceMessage.js +3 -3
  666. package/cjs/withSendbird.js +1 -1
  667. package/dist/index.css +142 -155
  668. package/dist/index.css.map +1 -1
  669. package/hooks/useModal.js +10 -10
  670. package/index.js +82 -83
  671. package/index.js.map +1 -1
  672. package/package.json +20 -20
  673. package/pubSub/topics.js +1 -1
  674. package/sendbirdSelectors.js +2 -2
  675. package/types/lib/dux/appInfo/initialState.d.ts +1 -0
  676. package/types/lib/types.d.ts +1 -0
  677. package/types/modules/Channel/components/MessageList/index.d.ts +1 -1
  678. package/types/modules/ChannelSettings/components/ChannelSettingsUI/index.d.ts +2 -2
  679. package/types/modules/ChannelSettings/components/ModerationPanel/index.d.ts +1 -1
  680. package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +5 -3
  681. package/types/modules/GroupChannel/components/Message/MessageView.d.ts +6 -0
  682. package/types/modules/GroupChannel/components/MessageList/index.d.ts +1 -1
  683. package/types/modules/GroupChannel/components/MessageTemplateWrapper/index.d.ts +1 -1
  684. package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +6 -1
  685. package/types/modules/OpenChannel/components/OpenChannelMessage/index.d.ts +2 -2
  686. package/types/modules/OpenChannel/components/OpenChannelMessageList/index.d.ts +5 -3
  687. package/types/modules/OpenChannel/components/OpenChannelUI/index.d.ts +4 -2
  688. package/types/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.d.ts +3 -1
  689. package/types/modules/Thread/context/ThreadProvider.d.ts +2 -0
  690. package/types/types.d.ts +1 -2
  691. package/types/ui/Accordion/Accordion.d.ts +10 -0
  692. package/types/ui/Accordion/AccordionGroup.d.ts +15 -5
  693. package/types/ui/Accordion/index.d.ts +6 -12
  694. package/types/ui/Carousel/index.d.ts +2 -3
  695. package/types/ui/EmojiReactions/index.d.ts +1 -2
  696. package/types/ui/FileMessageItemBody/index.d.ts +3 -1
  697. package/types/ui/FileViewer/index.d.ts +2 -1
  698. package/types/ui/FileViewer/types.d.ts +4 -2
  699. package/types/ui/MessageContent/MessageBody/index.d.ts +5 -1
  700. package/types/ui/MessageContent/index.d.ts +3 -1
  701. package/types/{modules/Channel/components → ui}/MessageFeedbackModal/index.d.ts +1 -1
  702. package/types/ui/MessageItemMenu/index.d.ts +10 -2
  703. package/types/ui/MessageTemplate/index.d.ts +4 -3
  704. package/types/ui/MessageTemplate/messageTemplateErrorBoundary.d.ts +3 -0
  705. package/types/ui/MobileMenu/types.d.ts +2 -1
  706. package/types/ui/MultipleFilesMessageItemBody/index.d.ts +3 -1
  707. package/types/ui/TemplateMessageItemBody/index.d.ts +3 -2
  708. package/types/ui/TemplateMessageItemBody/types.d.ts +11 -12
  709. package/types/ui/UserListItem/index.d.ts +2 -1
  710. package/types/utils/getIsReactionEnabled.d.ts +5 -4
  711. package/types/utils/index.d.ts +12 -14
  712. package/types/utils/isVoiceMessage.d.ts +1 -1
  713. package/types/utils/utils.d.ts +1 -0
  714. package/ui/Accordion.js +28 -39
  715. package/ui/Accordion.js.map +1 -1
  716. package/ui/AccordionGroup.js +43 -12
  717. package/ui/AccordionGroup.js.map +1 -1
  718. package/ui/AdminMessage.js +3 -3
  719. package/ui/Avatar.js +4 -4
  720. package/ui/Badge.js +5 -5
  721. package/ui/BottomSheet.js +9 -9
  722. package/ui/Button.js +3 -3
  723. package/ui/ChannelAvatar.js +5 -5
  724. package/ui/ConnectionStatus.js +6 -6
  725. package/ui/ContextMenu.js +6 -6
  726. package/ui/DateSeparator.js +4 -4
  727. package/ui/EmojiReactions.js +29 -17
  728. package/ui/EmojiReactions.js.map +1 -1
  729. package/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
  730. package/ui/FileMessageItemBody.js +50 -12
  731. package/ui/FileMessageItemBody.js.map +1 -1
  732. package/ui/FileViewer.js +15 -15
  733. package/ui/Icon.js +2 -2
  734. package/ui/IconButton.js +1 -1
  735. package/ui/ImageRenderer.js +3 -3
  736. package/ui/Input.js +3 -3
  737. package/ui/Label.js +3 -3
  738. package/ui/LinkLabel.js +3 -3
  739. package/ui/Loader.js +2 -2
  740. package/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
  741. package/ui/MentionLabel.js +13 -13
  742. package/ui/MentionUserLabel.js +1 -1
  743. package/ui/MessageContent.js +155 -133
  744. package/ui/MessageContent.js.map +1 -1
  745. package/ui/MessageFeedbackFailedModal.js +33 -0
  746. package/ui/MessageFeedbackFailedModal.js.map +1 -0
  747. package/{Channel/components → ui}/MessageFeedbackModal.js +13 -13
  748. package/ui/MessageInput/hooks/usePaste.js +7 -7
  749. package/ui/MessageInput.js +15 -15
  750. package/ui/MessageItemMenu.js +67 -29
  751. package/ui/MessageItemMenu.js.map +1 -1
  752. package/ui/MessageItemReactionMenu.js +9 -9
  753. package/ui/MessageSearchFileItem.js +14 -14
  754. package/ui/MessageSearchItem.js +11 -11
  755. package/ui/MessageStatus.js +12 -12
  756. package/ui/MessageTemplate.js +2 -1
  757. package/ui/MessageTemplate.js.map +1 -1
  758. package/ui/MobileFeedbackMenu.js +9 -9
  759. package/ui/Modal.js +8 -8
  760. package/ui/MutedAvatarOverlay.js +2 -2
  761. package/ui/OGMessageItemBody.js +19 -17
  762. package/ui/OGMessageItemBody.js.map +1 -1
  763. package/ui/OpenChannelAdminMessage.js +3 -3
  764. package/ui/OpenChannelAvatar.js +8 -8
  765. package/ui/OpenchannelConversationHeader.js +8 -8
  766. package/ui/OpenchannelFileMessage.js +18 -18
  767. package/ui/OpenchannelOGMessage.js +20 -20
  768. package/ui/OpenchannelThumbnailMessage.js +17 -17
  769. package/ui/OpenchannelUserMessage.js +18 -18
  770. package/ui/PlaceHolder.js +6 -6
  771. package/ui/PlaybackTime.js +3 -3
  772. package/ui/QuoteMessage.js +9 -9
  773. package/ui/QuoteMessageInput.js +12 -16
  774. package/ui/QuoteMessageInput.js.map +1 -1
  775. package/ui/ReactionBadge.js +3 -3
  776. package/ui/ReactionButton.js +4 -4
  777. package/ui/SortByRow.js +2 -2
  778. package/ui/TemplateMessageItemBody.js +143 -72
  779. package/ui/TemplateMessageItemBody.js.map +1 -1
  780. package/ui/TextButton.js +2 -2
  781. package/ui/TextMessageItemBody.js +16 -16
  782. package/ui/ThreadReplies.js +8 -8
  783. package/ui/ThumbnailMessageItemBody.js +7 -7
  784. package/ui/Toggle.js +1 -1
  785. package/ui/Tooltip.js +3 -3
  786. package/ui/TooltipWrapper.js +1 -1
  787. package/ui/TypingIndicatorBubble.js +4 -4
  788. package/ui/UnknownMessageItemBody.js +7 -7
  789. package/ui/UserListItem.js +17 -16
  790. package/ui/UserListItem.js.map +1 -1
  791. package/ui/UserProfile.js +10 -10
  792. package/ui/VoiceMessageInput.js +9 -9
  793. package/ui/VoiceMessageItemBody.js +10 -10
  794. package/ui/Word.js +13 -13
  795. package/useSendbirdStateContext.js +1 -1
  796. package/utils/message/isVoiceMessage.js +3 -3
  797. package/withSendbird.js +1 -1
  798. package/chunks/bundle-87W4GPnC.js.map +0 -1
  799. package/chunks/bundle-B1s46xJT.js.map +0 -1
  800. package/chunks/bundle-B2pNgmzq.js.map +0 -1
  801. package/chunks/bundle-B5kwbUC5.js +0 -11
  802. package/chunks/bundle-B5kwbUC5.js.map +0 -1
  803. package/chunks/bundle-BFDyBk4r.js.map +0 -1
  804. package/chunks/bundle-BH5rbsxO.js.map +0 -1
  805. package/chunks/bundle-BJ9OAqWz.js.map +0 -1
  806. package/chunks/bundle-BKG2cvZ9.js.map +0 -1
  807. package/chunks/bundle-BNeRxCQA.js.map +0 -1
  808. package/chunks/bundle-BNydv1KA.js.map +0 -1
  809. package/chunks/bundle-BPclYGwz.js.map +0 -1
  810. package/chunks/bundle-BSPBjwR6.js.map +0 -1
  811. package/chunks/bundle-BUy5u56K.js.map +0 -1
  812. package/chunks/bundle-Bf5VthYV.js.map +0 -1
  813. package/chunks/bundle-BhjXV0mk.js.map +0 -1
  814. package/chunks/bundle-BmPxXQ_C.js.map +0 -1
  815. package/chunks/bundle-BuIxT5aZ.js.map +0 -1
  816. package/chunks/bundle-BvQAepkJ.js.map +0 -1
  817. package/chunks/bundle-Bys5RwQj.js.map +0 -1
  818. package/chunks/bundle-C-_RpFyM.js.map +0 -1
  819. package/chunks/bundle-C1RngQCJ.js.map +0 -1
  820. package/chunks/bundle-C4sUzPGS.js.map +0 -1
  821. package/chunks/bundle-CF6PMu9B.js.map +0 -1
  822. package/chunks/bundle-CJIPD7gN.js.map +0 -1
  823. package/chunks/bundle-COGPgRK-.js.map +0 -1
  824. package/chunks/bundle-CPszRkFg.js.map +0 -1
  825. package/chunks/bundle-CS7t26su.js.map +0 -1
  826. package/chunks/bundle-C_n2Emjx.js.map +0 -1
  827. package/chunks/bundle-CbBN2HTx.js.map +0 -1
  828. package/chunks/bundle-CfKGkWtT.js.map +0 -1
  829. package/chunks/bundle-CwofYH9U.js +0 -10
  830. package/chunks/bundle-CwofYH9U.js.map +0 -1
  831. package/chunks/bundle-D-cpJ5MP.js.map +0 -1
  832. package/chunks/bundle-D56MXYqF.js.map +0 -1
  833. package/chunks/bundle-DCjOFMcr.js.map +0 -1
  834. package/chunks/bundle-DRL21d0s.js.map +0 -1
  835. package/chunks/bundle-DTDkmegk.js.map +0 -1
  836. package/chunks/bundle-DUTTSKO5.js.map +0 -1
  837. package/chunks/bundle-D_X2Bqh-.js.map +0 -1
  838. package/chunks/bundle-DcOT2xg0.js.map +0 -1
  839. package/chunks/bundle-DgJrJ2xn.js.map +0 -1
  840. package/chunks/bundle-Dicb9Y5f.js.map +0 -1
  841. package/chunks/bundle-DkRogqRS.js.map +0 -1
  842. package/chunks/bundle-DnFiUPoR.js.map +0 -1
  843. package/chunks/bundle-DoLed6JB.js.map +0 -1
  844. package/chunks/bundle-DrfdRrEf.js +0 -12
  845. package/chunks/bundle-DrfdRrEf.js.map +0 -1
  846. package/chunks/bundle-DzuAq6CR.js.map +0 -1
  847. package/chunks/bundle-GQqssfTX.js.map +0 -1
  848. package/chunks/bundle-N_XkA5JB.js.map +0 -1
  849. package/chunks/bundle-WwYLGAen.js.map +0 -1
  850. package/chunks/bundle-gSQF3Ob-.js.map +0 -1
  851. package/chunks/bundle-l_8hg8H3.js.map +0 -1
  852. package/chunks/bundle-rSEP1XoB.js.map +0 -1
  853. package/chunks/bundle-rfEyWmAm.js.map +0 -1
  854. package/chunks/bundle-ynxAt7xC.js.map +0 -1
  855. package/chunks/bundle-zf2ni0YJ.js.map +0 -1
  856. package/cjs/chunks/bundle--ToWZ9cj.js.map +0 -1
  857. package/cjs/chunks/bundle-03LrACV2.js.map +0 -1
  858. package/cjs/chunks/bundle-6eXm5bOG.js.map +0 -1
  859. package/cjs/chunks/bundle-7GCXhi1c.js.map +0 -1
  860. package/cjs/chunks/bundle-8oxVWV_9.js.map +0 -1
  861. package/cjs/chunks/bundle-9K7l85xj.js.map +0 -1
  862. package/cjs/chunks/bundle-B2cSnWcr.js.map +0 -1
  863. package/cjs/chunks/bundle-BF04PgMH.js.map +0 -1
  864. package/cjs/chunks/bundle-BH87xcnc.js.map +0 -1
  865. package/cjs/chunks/bundle-BLh1DOSs.js +0 -15
  866. package/cjs/chunks/bundle-BLh1DOSs.js.map +0 -1
  867. package/cjs/chunks/bundle-BMsGwLym.js.map +0 -1
  868. package/cjs/chunks/bundle-BR1tsZpK.js.map +0 -1
  869. package/cjs/chunks/bundle-BUOuk2jo.js.map +0 -1
  870. package/cjs/chunks/bundle-BdHrSYl1.js.map +0 -1
  871. package/cjs/chunks/bundle-BgLtZgZ_.js.map +0 -1
  872. package/cjs/chunks/bundle-BlvFC-Rm.js.map +0 -1
  873. package/cjs/chunks/bundle-Bm5ysFU-.js.map +0 -1
  874. package/cjs/chunks/bundle-BpOxHgfP.js.map +0 -1
  875. package/cjs/chunks/bundle-BsGXZt6G.js.map +0 -1
  876. package/cjs/chunks/bundle-BwO19Jro.js.map +0 -1
  877. package/cjs/chunks/bundle-BxaGZqGJ.js.map +0 -1
  878. package/cjs/chunks/bundle-C2v2lxLx.js.map +0 -1
  879. package/cjs/chunks/bundle-C88DsCNB.js.map +0 -1
  880. package/cjs/chunks/bundle-C8cnT2au.js.map +0 -1
  881. package/cjs/chunks/bundle-C9YHSQ4e.js.map +0 -1
  882. package/cjs/chunks/bundle-C9jXxNI1.js.map +0 -1
  883. package/cjs/chunks/bundle-CCVRe_w3.js +0 -13
  884. package/cjs/chunks/bundle-CCVRe_w3.js.map +0 -1
  885. package/cjs/chunks/bundle-CD9H6RqJ.js.map +0 -1
  886. package/cjs/chunks/bundle-CDBTt08y.js +0 -13
  887. package/cjs/chunks/bundle-CDBTt08y.js.map +0 -1
  888. package/cjs/chunks/bundle-CIswYN43.js.map +0 -1
  889. package/cjs/chunks/bundle-CS644BJp.js.map +0 -1
  890. package/cjs/chunks/bundle-CW9QUnWM.js.map +0 -1
  891. package/cjs/chunks/bundle-CmFB08Wf.js.map +0 -1
  892. package/cjs/chunks/bundle-CsvKRjaK.js.map +0 -1
  893. package/cjs/chunks/bundle-Cyr1aQpR.js.map +0 -1
  894. package/cjs/chunks/bundle-DAVdWPDx.js.map +0 -1
  895. package/cjs/chunks/bundle-DNP731Dg.js.map +0 -1
  896. package/cjs/chunks/bundle-DRFWOXrL.js.map +0 -1
  897. package/cjs/chunks/bundle-DTjdtS4A.js.map +0 -1
  898. package/cjs/chunks/bundle-DUP4cxoZ.js.map +0 -1
  899. package/cjs/chunks/bundle-DX2BaZv_.js.map +0 -1
  900. package/cjs/chunks/bundle-DcPTVUQJ.js.map +0 -1
  901. package/cjs/chunks/bundle-DfYperTC.js.map +0 -1
  902. package/cjs/chunks/bundle-DgY0qwTL.js.map +0 -1
  903. package/cjs/chunks/bundle-DjB9bkvD.js.map +0 -1
  904. package/cjs/chunks/bundle-Dpu1gg5r.js.map +0 -1
  905. package/cjs/chunks/bundle-DxdzDF19.js.map +0 -1
  906. package/cjs/chunks/bundle-Dy6Gn-sd.js.map +0 -1
  907. package/cjs/chunks/bundle-FD0n8tOs.js.map +0 -1
  908. package/cjs/chunks/bundle-INETVVGE.js.map +0 -1
  909. package/cjs/chunks/bundle-JNAedgrE.js.map +0 -1
  910. package/cjs/chunks/bundle-NU2voiKZ.js.map +0 -1
  911. package/cjs/chunks/bundle-ORLbcTP_.js.map +0 -1
  912. package/cjs/chunks/bundle-Q5_I3n-8.js.map +0 -1
  913. package/cjs/chunks/bundle-SIHqK2VF.js.map +0 -1
  914. package/cjs/chunks/bundle-Y_FLyDnc.js.map +0 -1
  915. package/cjs/chunks/bundle-cf3-zuo6.js.map +0 -1
  916. package/cjs/chunks/bundle-dNtU9_eg.js.map +0 -1
  917. package/cjs/chunks/bundle-djPmP6bl.js.map +0 -1
  918. package/cjs/chunks/bundle-e6crA6HI.js.map +0 -1
  919. package/cjs/chunks/bundle-f6dhmXLj.js.map +0 -1
  920. package/cjs/chunks/bundle-jdEKrUGh.js.map +0 -1
  921. package/cjs/chunks/bundle-qgvbJv89.js.map +0 -1
  922. package/cjs/chunks/bundle-tHnRbr7F.js.map +0 -1
  923. package/cjs/chunks/bundle-tOZCSmZj.js.map +0 -1
  924. package/cjs/chunks/bundle-xvNVoWia.js.map +0 -1
  925. package/cjs/ui/Carousel.js +0 -254
  926. package/cjs/ui/Carousel.js.map +0 -1
  927. package/ui/Carousel.js +0 -249
  928. package/ui/Carousel.js.map +0 -1
  929. /package/cjs/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
  930. /package/types/{modules/Channel/components → ui}/MessageFeedbackFailedModal/index.d.ts +0 -0
  931. /package/{Channel/components → ui}/MessageFeedbackModal.js.map +0 -0
@@ -1,13 +1,18 @@
1
1
  import React__default, { createContext, useState, useCallback, useContext, useRef, useMemo, useEffect } from 'react';
2
+ import './bundle-DRWNB6So.js';
2
3
 
3
- var ComponentType;
4
+ var ComponentType$1;
4
5
  (function (ComponentType) {
5
6
  ComponentType["Box"] = "box";
6
7
  ComponentType["Text"] = "text";
7
8
  ComponentType["Image"] = "image";
8
9
  ComponentType["TextButton"] = "textButton";
9
10
  ComponentType["ImageButton"] = "imageButton";
10
- })(ComponentType || (ComponentType = {}));
11
+ })(ComponentType$1 || (ComponentType$1 = {}));
12
+ var CompositeComponentType$1;
13
+ (function (CompositeComponentType) {
14
+ CompositeComponentType["Carousel"] = "carouselView";
15
+ })(CompositeComponentType$1 || (CompositeComponentType$1 = {}));
11
16
 
12
17
  // -------- Set property mapper
13
18
  const MAPPER = () => undefined;
@@ -20,25 +25,29 @@ const createParser = (params) => {
20
25
  mapImageProps: (params === null || params === void 0 ? void 0 : params.mapImageProps) || defaultMapper,
21
26
  mapTextButtonProps: (params === null || params === void 0 ? void 0 : params.mapTextButtonProps) || defaultMapper,
22
27
  mapImageButtonProps: (params === null || params === void 0 ? void 0 : params.mapImageButtonProps) || defaultMapper,
28
+ mapCarouselProps: (params === null || params === void 0 ? void 0 : params.mapCarouselProps) || defaultMapper,
23
29
  };
24
30
  return {
25
31
  parse(item, options) {
26
32
  switch (item.type) {
27
- case ComponentType.Box: {
33
+ case ComponentType$1.Box: {
28
34
  return { properties: mapper.mapBoxProps(item, options) };
29
35
  }
30
- case ComponentType.Text: {
36
+ case ComponentType$1.Text: {
31
37
  return { properties: mapper.mapTextProps(item, options) };
32
38
  }
33
- case ComponentType.Image: {
39
+ case ComponentType$1.Image: {
34
40
  return { properties: mapper.mapImageProps(item, options) };
35
41
  }
36
- case ComponentType.TextButton: {
42
+ case ComponentType$1.TextButton: {
37
43
  return { properties: mapper.mapTextButtonProps(item, options) };
38
44
  }
39
- case ComponentType.ImageButton: {
45
+ case ComponentType$1.ImageButton: {
40
46
  return { properties: mapper.mapImageButtonProps(item, options) };
41
47
  }
48
+ case CompositeComponentType$1.Carousel: {
49
+ return { properties: mapper.mapCarouselProps(item, options) };
50
+ }
42
51
  default:
43
52
  return { properties: undefined };
44
53
  }
@@ -48,16 +57,952 @@ const createParser = (params) => {
48
57
 
49
58
  const FRAGMENT = ({ children }) => React__default.createElement(React__default.Fragment, null, children);
50
59
  function createRenderer(params) {
51
- var _a, _b, _c, _d, _e;
60
+ var _a, _b, _c, _d, _e, _f;
52
61
  return {
53
62
  box: ((_a = params === null || params === void 0 ? void 0 : params.views) === null || _a === void 0 ? void 0 : _a.box) || FRAGMENT,
54
63
  text: ((_b = params === null || params === void 0 ? void 0 : params.views) === null || _b === void 0 ? void 0 : _b.text) || FRAGMENT,
55
64
  image: ((_c = params === null || params === void 0 ? void 0 : params.views) === null || _c === void 0 ? void 0 : _c.image) || FRAGMENT,
56
65
  imageButton: ((_d = params === null || params === void 0 ? void 0 : params.views) === null || _d === void 0 ? void 0 : _d.imageButton) || FRAGMENT,
57
66
  textButton: ((_e = params === null || params === void 0 ? void 0 : params.views) === null || _e === void 0 ? void 0 : _e.textButton) || FRAGMENT,
67
+ carouselView: ((_f = params === null || params === void 0 ? void 0 : params.views) === null || _f === void 0 ? void 0 : _f.carouselView) || FRAGMENT,
58
68
  };
59
69
  }
60
70
 
71
+ var ComponentType;
72
+ (function (ComponentType) {
73
+ ComponentType["Box"] = "box";
74
+ ComponentType["Text"] = "text";
75
+ ComponentType["Image"] = "image";
76
+ ComponentType["TextButton"] = "textButton";
77
+ ComponentType["ImageButton"] = "imageButton";
78
+ })(ComponentType || (ComponentType = {}));
79
+ var CompositeComponentType;
80
+ (function (CompositeComponentType) {
81
+ CompositeComponentType["Carousel"] = "carouselView";
82
+ })(CompositeComponentType || (CompositeComponentType = {}));
83
+
84
+ createContext({
85
+ sizes: {},
86
+ updateSize: function () { },
87
+ });
88
+
89
+ var Layout$1;
90
+ (function (Layout) {
91
+ Layout["Row"] = "row";
92
+ Layout["Column"] = "column";
93
+ })(Layout$1 || (Layout$1 = {}));
94
+ var AlignValue$1;
95
+ (function (AlignValue) {
96
+ AlignValue["Center"] = "center";
97
+ AlignValue["Left"] = "left";
98
+ AlignValue["Right"] = "right";
99
+ AlignValue["Top"] = "top";
100
+ AlignValue["Bottom"] = "bottom";
101
+ })(AlignValue$1 || (AlignValue$1 = {}));
102
+ /**
103
+ * @description
104
+ * Caution: Numbers are passed as string types in the message template builder.
105
+ * Use `==` comparison instead of `===` comparison when using a regular enum instead of a string enum.
106
+ */
107
+ var FlexSizeSpecValue$1;
108
+ (function (FlexSizeSpecValue) {
109
+ FlexSizeSpecValue[FlexSizeSpecValue["FillParent"] = 0] = "FillParent";
110
+ FlexSizeSpecValue[FlexSizeSpecValue["WrapContent"] = 1] = "WrapContent";
111
+ })(FlexSizeSpecValue$1 || (FlexSizeSpecValue$1 = {}));
112
+ var FontWeight$1;
113
+ (function (FontWeight) {
114
+ FontWeight["Normal"] = "normal";
115
+ FontWeight["Bold"] = "bold";
116
+ })(FontWeight$1 || (FontWeight$1 = {}));
117
+ var MediaContentMode$1;
118
+ (function (MediaContentMode) {
119
+ MediaContentMode["AspectFit"] = "aspectFit";
120
+ MediaContentMode["AspectFill"] = "aspectFill";
121
+ MediaContentMode["ScalesToFill"] = "scalesToFill";
122
+ })(MediaContentMode$1 || (MediaContentMode$1 = {}));
123
+
124
+ ({
125
+ rootLayout: Layout$1.Column,
126
+ view: {
127
+ size: {
128
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
129
+ height: { type: 'flex', value: FlexSizeSpecValue$1.WrapContent },
130
+ },
131
+ },
132
+ box: {
133
+ layout: Layout$1.Row,
134
+ align: { vertical: AlignValue$1.Top, horizontal: AlignValue$1.Left },
135
+ },
136
+ });
137
+
138
+ var ActionType$1;
139
+ (function (ActionType) {
140
+ ActionType["Web"] = "web";
141
+ ActionType["Custom"] = "custom";
142
+ ActionType["UIKit"] = "uikit";
143
+ })(ActionType$1 || (ActionType$1 = {}));
144
+
145
+ var SUPPORTED_TEMPLATE_VERSIONS = [
146
+ 1,
147
+ 2, // Composite templates: Carousel
148
+ ];
149
+ var isTemplateVersionSupported = function (templateVersion) {
150
+ if (!templateVersion)
151
+ return true;
152
+ return SUPPORTED_TEMPLATE_VERSIONS.includes(templateVersion);
153
+ };
154
+
155
+ ({
156
+ version: 1,
157
+ body: {
158
+ items: [
159
+ {
160
+ type: ComponentType.Image,
161
+ action: { type: ActionType$1.Web, data: 'https://docs.sendbird.com' },
162
+ height: { type: 'fixed', value: 236 },
163
+ viewStyle: {
164
+ padding: {
165
+ left: 4,
166
+ right: 4,
167
+ top: 4,
168
+ bottom: 4,
169
+ },
170
+ },
171
+ imageUrl: 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
172
+ imageStyle: { contentMode: MediaContentMode$1.AspectFill },
173
+ },
174
+ {
175
+ type: ComponentType.Box,
176
+ layout: Layout$1.Column,
177
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
178
+ height: { type: 'fixed', value: 200 },
179
+ items: [
180
+ {
181
+ type: ComponentType.Box,
182
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
183
+ height: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
184
+ viewStyle: { backgroundColor: '#fa6464' },
185
+ },
186
+ {
187
+ type: ComponentType.Box,
188
+ layout: Layout$1.Column,
189
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
190
+ height: { type: 'flex', value: FlexSizeSpecValue$1.WrapContent },
191
+ viewStyle: { backgroundColor: '#ffaf5c' },
192
+ items: [
193
+ {
194
+ type: ComponentType.Text,
195
+ text: 'Message',
196
+ align: { horizontal: AlignValue$1.Center, vertical: AlignValue$1.Center },
197
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
198
+ height: { type: 'fixed', value: 50 },
199
+ },
200
+ {
201
+ type: ComponentType.Image,
202
+ action: { type: ActionType$1.Web, data: 'https://docs.sendbird.com' },
203
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
204
+ height: { type: 'fixed', value: 50 },
205
+ imageUrl: 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
206
+ imageStyle: { contentMode: MediaContentMode$1.AspectFill },
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ type: ComponentType.Box,
212
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
213
+ height: { type: 'fixed', value: 20 },
214
+ viewStyle: { backgroundColor: '#ffe450' },
215
+ },
216
+ {
217
+ type: ComponentType.Box,
218
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
219
+ height: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
220
+ viewStyle: { backgroundColor: '#329a1b' },
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ type: ComponentType.Box,
226
+ viewStyle: { padding: { top: 12, bottom: 12, left: 12, right: 12 } },
227
+ layout: Layout$1.Column,
228
+ items: [
229
+ {
230
+ type: ComponentType.Box,
231
+ align: { horizontal: AlignValue$1.Left, vertical: AlignValue$1.Center },
232
+ layout: Layout$1.Row,
233
+ viewStyle: {
234
+ borderWidth: 1,
235
+ borderColor: '#72723f',
236
+ },
237
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
238
+ height: { type: 'fixed', value: 150 },
239
+ items: [
240
+ {
241
+ type: ComponentType.Text,
242
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
243
+ height: { type: 'fixed', value: 50 },
244
+ text: 'Sample1 text',
245
+ maxTextLines: 1,
246
+ align: { vertical: AlignValue$1.Center, horizontal: AlignValue$1.Left },
247
+ viewStyle: {
248
+ backgroundColor: '#cc4400',
249
+ },
250
+ textStyle: {
251
+ size: 16,
252
+ color: '#f8f8f8',
253
+ weight: FontWeight$1.Bold,
254
+ },
255
+ },
256
+ {
257
+ type: ComponentType.ImageButton,
258
+ action: { type: ActionType$1.UIKit, data: 'uikit://delete' },
259
+ width: { type: 'fixed', value: 20 },
260
+ height: { type: 'fixed', value: 20 },
261
+ imageUrl: 'https://file-ap-1.sendbird.com/5b5379aa73fd460da22ffaf9a61d0d7f.png',
262
+ imageStyle: { contentMode: MediaContentMode$1.AspectFit },
263
+ },
264
+ ],
265
+ },
266
+ {
267
+ type: ComponentType.Text,
268
+ viewStyle: { padding: { top: 6, bottom: 12, left: 0, right: 0 } },
269
+ 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.',
270
+ maxTextLines: 2,
271
+ textStyle: { size: 14, color: '#e10000' },
272
+ width: { type: 'fixed', value: 200 },
273
+ height: { type: 'fixed', value: 50 },
274
+ },
275
+ {
276
+ type: ComponentType.TextButton,
277
+ action: { type: ActionType$1.Web, data: 'https://www.daum.net' },
278
+ text: 'Button 3',
279
+ textStyle: { size: 14, color: '#742ddd', weight: FontWeight$1.Bold },
280
+ },
281
+ ],
282
+ },
283
+ ],
284
+ },
285
+ });
286
+ ({
287
+ 'version': 1,
288
+ 'body': {
289
+ 'items': [
290
+ {
291
+ 'type': ComponentType.Image,
292
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.naver.com/' },
293
+ 'height': { 'type': 'fixed', 'value': 136 },
294
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
295
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
296
+ },
297
+ {
298
+ 'type': ComponentType.Box,
299
+ 'viewStyle': { 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 }, backgroundColor: '#cccccc' },
300
+ 'layout': Layout$1.Column,
301
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
302
+ 'items': [
303
+ {
304
+ 'type': ComponentType.Box,
305
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
306
+ 'layout': Layout$1.Row,
307
+ 'items': [
308
+ {
309
+ 'type': ComponentType.TextButton,
310
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
311
+ width: { type: 'fixed', value: 150 },
312
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 } },
313
+ 'text': 'Button 2',
314
+ 'textStyle': { 'size': 14, 'weight': FontWeight$1.Bold },
315
+ },
316
+ {
317
+ 'type': ComponentType.TextButton,
318
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
319
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
320
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 } },
321
+ 'text': 'Button 3',
322
+ 'textStyle': { 'size': 14, 'weight': FontWeight$1.Bold },
323
+ },
324
+ ],
325
+ },
326
+ {
327
+ 'type': ComponentType.Box,
328
+ width: { type: 'flex', value: FlexSizeSpecValue$1.FillParent },
329
+ 'layout': Layout$1.Row,
330
+ 'items': [
331
+ {
332
+ 'type': ComponentType.Text,
333
+ 'text': 'Sample2 text',
334
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
335
+ 'maxTextLines': 1,
336
+ 'textStyle': { 'size': 16, 'weight': FontWeight$1.Bold },
337
+ },
338
+ {
339
+ 'type': ComponentType.ImageButton,
340
+ 'action': { 'type': ActionType$1.UIKit, 'data': 'uikit://delete' },
341
+ 'width': { 'type': 'fixed', 'value': 20 },
342
+ 'height': { 'type': 'fixed', 'value': 20 },
343
+ 'imageUrl': 'https://file-ap-1.sendbird.com/5b5379aa73fd460da22ffaf9a61d0d7f.png',
344
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFit },
345
+ },
346
+ ],
347
+ },
348
+ {
349
+ 'type': ComponentType.Text,
350
+ 'viewStyle': { 'padding': { 'top': 6, 'bottom': 12, 'left': 0, 'right': 0 } },
351
+ 'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
352
+ 'textStyle': { 'size': 14 },
353
+ },
354
+ ],
355
+ },
356
+ ],
357
+ },
358
+ });
359
+ ({
360
+ 'version': 1,
361
+ 'body': {
362
+ 'items': [
363
+ {
364
+ 'type': ComponentType.Box,
365
+ 'viewStyle': { 'backgroundColor': '#ffffff', 'borderWidth': 1, 'borderColor': '#eeeeee', 'radius': 16 },
366
+ 'layout': Layout$1.Column,
367
+ 'items': [
368
+ {
369
+ 'type': ComponentType.Image,
370
+ 'height': { 'type': 'fixed', 'value': 200 },
371
+ 'imageUrl': 'https://img.freepik.com/free-vector/cartoon-happy-hours-background_52683-81243.jpg?w=2000&t=st=1666689198~exp=1666689798~hmac=23109d44ba03deee7aee069cbeebfcb48fa27f85e53c1cafc5d5d7345f1a2041',
372
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
373
+ },
374
+ {
375
+ 'type': ComponentType.Box,
376
+ 'viewStyle': { 'padding': { 'top': 15, 'bottom': 15, 'left': 15, 'right': 15 } },
377
+ 'layout': Layout$1.Column,
378
+ 'items': [
379
+ {
380
+ 'type': ComponentType.Text,
381
+ 'text': "Don't miss these deals today",
382
+ 'maxTextLines': 1,
383
+ 'textStyle': { 'size': 20, 'color': '#e10000', 'weight': FontWeight$1.Bold },
384
+ },
385
+ {
386
+ 'type': ComponentType.Text,
387
+ 'viewStyle': { 'margin': { 'top': 5, 'bottom': 0, 'left': 0, 'right': 0 } },
388
+ 'text': 'Pay with Maya and get cashback!',
389
+ 'maxTextLines': 1,
390
+ 'textStyle': { 'size': 14, 'color': '#e10000' },
391
+ },
392
+ {
393
+ 'type': ComponentType.Box,
394
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
395
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
396
+ 'layout': Layout$1.Row,
397
+ 'items': [
398
+ {
399
+ 'type': ComponentType.Image,
400
+ 'width': { 'type': 'fixed', 'value': 50 },
401
+ 'height': { 'type': 'fixed', 'value': 50 },
402
+ 'viewStyle': {
403
+ 'backgroundColor': '#ffffff',
404
+ 'borderWidth': 1,
405
+ 'borderColor': '#eeeeee',
406
+ 'radius': 25,
407
+ },
408
+ 'imageUrl': 'https://yt3.ggpht.com/ytc/AMLnZu8Kg89ymE7qt5bsS9vMqi9h2aHiN6m9ID-IgxR6-Q=s900-c-k-c0x00ffffff-no-rj',
409
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
410
+ },
411
+ {
412
+ 'type': ComponentType.Box,
413
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
414
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
415
+ 'layout': Layout$1.Column,
416
+ 'items': [
417
+ {
418
+ 'type': ComponentType.Text,
419
+ 'text': 'Meralco',
420
+ 'maxTextLines': 1,
421
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
422
+ },
423
+ {
424
+ 'type': ComponentType.Text,
425
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
426
+ 'text': '30% cashback, P300 min spend',
427
+ 'maxTextLines': 1,
428
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
429
+ },
430
+ ],
431
+ },
432
+ ],
433
+ },
434
+ {
435
+ 'type': ComponentType.Box,
436
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
437
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
438
+ 'layout': Layout$1.Row,
439
+ 'items': [
440
+ {
441
+ 'type': ComponentType.Image,
442
+ 'width': { 'type': 'fixed', 'value': 50 },
443
+ 'height': { 'type': 'fixed', 'value': 50 },
444
+ 'viewStyle': {
445
+ 'backgroundColor': '#ffffff',
446
+ 'borderWidth': 1,
447
+ 'borderColor': '#eeeeee',
448
+ 'radius': 25,
449
+ },
450
+ 'imageUrl': 'https://1000logos.net/wp-content/uploads/2021/12/Globe-Telecom-logo.png',
451
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill, tintColor: '#a49a9a' },
452
+ },
453
+ {
454
+ 'type': ComponentType.Box,
455
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
456
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
457
+ 'layout': Layout$1.Column,
458
+ 'items': [
459
+ {
460
+ 'type': ComponentType.Text,
461
+ 'text': 'Globe',
462
+ 'maxTextLines': 1,
463
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
464
+ },
465
+ {
466
+ 'type': ComponentType.Text,
467
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
468
+ 'text': '30% cashback, P300 min spend',
469
+ 'maxTextLines': 1,
470
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
471
+ },
472
+ ],
473
+ },
474
+ ],
475
+ },
476
+ {
477
+ 'type': ComponentType.Box,
478
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
479
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
480
+ 'layout': Layout$1.Row,
481
+ 'items': [
482
+ {
483
+ 'type': ComponentType.Image,
484
+ 'width': { 'type': 'fixed', 'value': 50 },
485
+ 'height': { 'type': 'fixed', 'value': 50 },
486
+ 'viewStyle': {
487
+ 'backgroundColor': '#ffffff',
488
+ 'borderWidth': 1,
489
+ 'borderColor': '#eeeeee',
490
+ 'radius': 25,
491
+ },
492
+ 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Cignal.svg/640px-Cignal.svg.png',
493
+ 'imageStyle': { 'contentMode': MediaContentMode$1.AspectFill },
494
+ },
495
+ {
496
+ 'type': ComponentType.Box,
497
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
498
+ 'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
499
+ 'layout': Layout$1.Column,
500
+ 'items': [
501
+ {
502
+ 'type': ComponentType.Text,
503
+ 'text': 'Cignal',
504
+ 'maxTextLines': 1,
505
+ 'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight$1.Bold },
506
+ },
507
+ {
508
+ 'type': ComponentType.Text,
509
+ 'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
510
+ 'text': '30% cashback, P300 min spend',
511
+ 'maxTextLines': 1,
512
+ 'textStyle': { 'size': 12, 'color': '#610000', 'weight': FontWeight$1.Bold },
513
+ },
514
+ ],
515
+ },
516
+ ],
517
+ },
518
+ {
519
+ 'type': ComponentType.Box,
520
+ 'align': { 'horizontal': AlignValue$1.Left, 'vertical': AlignValue$1.Center },
521
+ 'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
522
+ 'layout': Layout$1.Row,
523
+ 'items': [
524
+ {
525
+ 'type': ComponentType.TextButton,
526
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
527
+ 'viewStyle': {
528
+ 'backgroundColor': '#e0e0e0',
529
+ 'radius': 16,
530
+ 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 },
531
+ 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 },
532
+ },
533
+ 'text': 'Learn more',
534
+ 'textStyle': { 'size': 15, 'color': '#e10000', 'weight': FontWeight$1.Bold },
535
+ },
536
+ {
537
+ 'type': ComponentType.TextButton,
538
+ 'action': { 'type': ActionType$1.Web, 'data': 'https://www.daum.net' },
539
+ 'viewStyle': {
540
+ 'backgroundColor': '#e10000',
541
+ 'radius': 16,
542
+ 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 },
543
+ 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 },
544
+ },
545
+ 'text': 'Pay now',
546
+ 'textStyle': { 'size': 15, 'color': '#ffffff', 'weight': FontWeight$1.Bold },
547
+ },
548
+ ],
549
+ },
550
+ ],
551
+ },
552
+ ],
553
+ },
554
+ ],
555
+ },
556
+ });
557
+ ({
558
+ 'version': 1,
559
+ 'body': {
560
+ 'items': [
561
+ {
562
+ 'type': ComponentType.Box,
563
+ 'layout': Layout$1.Column,
564
+ 'items': [
565
+ {
566
+ 'type': ComponentType.Image,
567
+ 'imageUrl': 'https://static.sendbird.com/sample/profiles/profile_40_512px.png',
568
+ 'metaData': {
569
+ 'pixelWidth': 512,
570
+ 'pixelHeight': 512,
571
+ },
572
+ 'imageStyle': {
573
+ 'tintColor': '#44ff1188',
574
+ },
575
+ viewStyle: {
576
+ 'padding': {
577
+ 'top': 12,
578
+ 'right': 12,
579
+ 'bottom': 12,
580
+ 'left': 12,
581
+ },
582
+ },
583
+ },
584
+ {
585
+ 'type': ComponentType.Box,
586
+ 'viewStyle': {
587
+ 'padding': {
588
+ 'top': 12,
589
+ 'right': 12,
590
+ 'bottom': 12,
591
+ 'left': 12,
592
+ },
593
+ },
594
+ 'layout': Layout$1.Column,
595
+ 'items': [
596
+ {
597
+ 'type': ComponentType.Box,
598
+ 'layout': Layout$1.Row,
599
+ 'items': [
600
+ {
601
+ 'type': ComponentType.Box,
602
+ 'layout': Layout$1.Column,
603
+ 'items': [
604
+ {
605
+ 'type': ComponentType.Text,
606
+ 'text': 'hi',
607
+ 'maxTextLines': 3,
608
+ 'viewStyle': {
609
+ 'padding': {
610
+ 'top': 0,
611
+ 'bottom': 6,
612
+ 'left': 0,
613
+ 'right': 0,
614
+ },
615
+ },
616
+ 'textStyle': {
617
+ 'size': 16,
618
+ 'weight': FontWeight$1.Bold,
619
+ },
620
+ },
621
+ {
622
+ 'type': ComponentType.Text,
623
+ 'text': 'bye',
624
+ 'maxTextLines': 10,
625
+ 'textStyle': {
626
+ 'size': 14,
627
+ },
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ 'type': ComponentType.ImageButton,
633
+ 'action': {
634
+ 'type': ActionType$1.UIKit,
635
+ 'data': 'sendbirduikit://delete',
636
+ },
637
+ 'width': {
638
+ 'type': 'fixed',
639
+ 'value': 20,
640
+ },
641
+ 'height': {
642
+ 'type': 'fixed',
643
+ 'value': 20,
644
+ },
645
+ 'metaData': {
646
+ 'pixelWidth': 60,
647
+ 'pixelHeight': 60,
648
+ },
649
+ 'imageUrl': 'https://dxstmhyqfqr1o.cloudfront.net/sendbird-message-builder/icon-more.png',
650
+ 'imageStyle': {
651
+ 'tintColor': '#ff8d5a',
652
+ },
653
+ },
654
+ ],
655
+ },
656
+ {
657
+ 'type': ComponentType.Box,
658
+ 'layout': Layout$1.Column,
659
+ 'items': [
660
+ {
661
+ 'type': ComponentType.Box,
662
+ 'viewStyle': {
663
+ 'margin': {
664
+ 'top': 16,
665
+ 'bottom': 0,
666
+ 'left': 0,
667
+ 'right': 0,
668
+ },
669
+ },
670
+ 'align': {
671
+ 'horizontal': AlignValue$1.Left,
672
+ 'vertical': AlignValue$1.Center,
673
+ },
674
+ 'layout': Layout$1.Row,
675
+ 'items': [
676
+ {
677
+ 'type': ComponentType.Image,
678
+ 'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-ULE240VNV-83fd5776e78e-512',
679
+ 'width': {
680
+ 'type': 'fixed',
681
+ 'value': 40,
682
+ },
683
+ 'height': {
684
+ 'type': 'fixed',
685
+ 'value': 40,
686
+ },
687
+ 'metaData': {
688
+ 'pixelWidth': 512,
689
+ 'pixelHeight': 512,
690
+ },
691
+ 'viewStyle': {
692
+ 'backgroundColor': '#BDBDBD',
693
+ 'radius': 20,
694
+ },
695
+ 'imageStyle': {
696
+ 'contentMode': MediaContentMode$1.AspectFill,
697
+ },
698
+ },
699
+ {
700
+ 'type': ComponentType.Box,
701
+ 'viewStyle': {
702
+ 'margin': {
703
+ 'top': 0,
704
+ 'bottom': 0,
705
+ 'left': 12,
706
+ 'right': 0,
707
+ },
708
+ },
709
+ 'layout': Layout$1.Column,
710
+ 'items': [
711
+ {
712
+ 'type': ComponentType.Text,
713
+ 'text': 'Chongbu',
714
+ 'maxTextLines': 1,
715
+ 'textStyle': {
716
+ 'size': 16,
717
+ 'weight': FontWeight$1.Bold,
718
+ },
719
+ },
720
+ {
721
+ 'type': ComponentType.Text,
722
+ 'viewStyle': {
723
+ 'margin': {
724
+ 'top': 4,
725
+ 'bottom': 0,
726
+ 'left': 0,
727
+ 'right': 0,
728
+ },
729
+ },
730
+ 'text': ' ',
731
+ 'maxTextLines': 1,
732
+ 'textStyle': {
733
+ 'size': 14,
734
+ },
735
+ },
736
+ ],
737
+ },
738
+ ],
739
+ },
740
+ {
741
+ 'type': ComponentType.Box,
742
+ 'viewStyle': {
743
+ 'margin': {
744
+ 'top': 16,
745
+ 'bottom': 0,
746
+ 'left': 0,
747
+ 'right': 0,
748
+ },
749
+ },
750
+ 'align': {
751
+ 'horizontal': AlignValue$1.Left,
752
+ 'vertical': AlignValue$1.Center,
753
+ },
754
+ 'layout': Layout$1.Row,
755
+ 'items': [
756
+ {
757
+ 'type': ComponentType.Image,
758
+ 'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-U02LA25KY8J-d41a3e8c7554-512',
759
+ 'width': {
760
+ 'type': 'fixed',
761
+ 'value': 40,
762
+ },
763
+ 'height': {
764
+ 'type': 'fixed',
765
+ 'value': 40,
766
+ },
767
+ 'metaData': {
768
+ 'pixelWidth': 512,
769
+ 'pixelHeight': 512,
770
+ },
771
+ 'viewStyle': {
772
+ 'backgroundColor': '#BDBDBD',
773
+ 'radius': 20,
774
+ },
775
+ 'imageStyle': {
776
+ 'contentMode': MediaContentMode$1.AspectFill,
777
+ },
778
+ },
779
+ {
780
+ 'type': ComponentType.Box,
781
+ 'viewStyle': {
782
+ 'margin': {
783
+ 'top': 0,
784
+ 'bottom': 0,
785
+ 'left': 12,
786
+ 'right': 0,
787
+ },
788
+ },
789
+ 'layout': Layout$1.Column,
790
+ 'items': [
791
+ {
792
+ 'type': ComponentType.Text,
793
+ 'text': 'Amanda',
794
+ 'maxTextLines': 1,
795
+ 'textStyle': {
796
+ 'size': 16,
797
+ 'weight': FontWeight$1.Bold,
798
+ },
799
+ },
800
+ {
801
+ 'type': ComponentType.Text,
802
+ 'viewStyle': {
803
+ 'margin': {
804
+ 'top': 4,
805
+ 'bottom': 0,
806
+ 'left': 0,
807
+ 'right': 0,
808
+ },
809
+ },
810
+ 'text': 'This is title message',
811
+ 'maxTextLines': 1,
812
+ 'textStyle': {
813
+ 'size': 14,
814
+ },
815
+ },
816
+ ],
817
+ },
818
+ ],
819
+ },
820
+ ],
821
+ },
822
+ ],
823
+ },
824
+ ],
825
+ },
826
+ ],
827
+ },
828
+ });
829
+ ({
830
+ 'version': '1',
831
+ 'body': {
832
+ 'items': [
833
+ {
834
+ 'type': 'box',
835
+ 'layout': 'column',
836
+ height: { type: 'fixed', value: 600 },
837
+ 'items': [
838
+ {
839
+ 'type': 'box',
840
+ 'layout': 'column',
841
+ 'viewStyle': { 'radius': '8', 'padding': { 'top': '12', 'bottom': '12', 'left': '12', 'right': '12' } },
842
+ 'items': [
843
+ {
844
+ 'type': 'text',
845
+ 'text': 'Title text',
846
+ 'textStyle': { 'color': '#E0000000', 'size': '16', 'weight': 'bold' },
847
+ 'maxTextLines': '5',
848
+ 'viewStyle': {},
849
+ 'action': { 'data': 'www.naver.com' },
850
+ },
851
+ {
852
+ 'type': 'text',
853
+ 'viewStyle': { 'margin': { 'top': '8', 'right': '0', 'bottom': '0', 'left': '0' } },
854
+ 'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
855
+ 'textStyle': { 'color': '#E0000000', 'size': '14', 'weight': 'normal' },
856
+ 'maxTextLines': '5',
857
+ 'action': { 'data': 'https://www.naver.com' },
858
+ },
859
+ {
860
+ 'type': 'box',
861
+ 'layout': 'row',
862
+ 'viewStyle': { 'margin': { 'top': '12', 'right': '0', 'bottom': '0', 'left': '0' } },
863
+ 'items': [
864
+ {
865
+ 'type': 'textButton',
866
+ 'viewStyle': {
867
+ 'backgroundColor': '#E0E0E0',
868
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
869
+ },
870
+ 'text': 'Button 1',
871
+ 'textStyle': { 'color': '#742DDD', 'size': '14', 'weight': 'bold' },
872
+ 'maxTextLines': '5',
873
+ 'action': { 'data': 'www.naver.com' },
874
+ },
875
+ {
876
+ 'type': 'textButton',
877
+ 'viewStyle': {
878
+ 'backgroundColor': '#E0E0E0',
879
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
880
+ 'margin': { 'left': '8', 'right': '0', 'top': '0', 'bottom': '0' },
881
+ },
882
+ 'text': 'Button 2',
883
+ 'textStyle': { 'color': '#742DDD', 'size': '14', 'weight': 'bold' },
884
+ 'maxTextLines': '5',
885
+ 'action': { 'data': 'https://www.naver.com' },
886
+ },
887
+ ],
888
+ },
889
+ ],
890
+ 'action': { 'data': 'https://www.naver.com' },
891
+ },
892
+ {
893
+ 'type': 'image',
894
+ 'viewStyle': {},
895
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
896
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
897
+ 'imageStyle': { 'contentMode': 'aspectFill' },
898
+ 'imageUrl': 'https://file-preprod.sendbird.com/d03c08bb3f9041a88c1207b6bbf15ab8.png',
899
+ 'metaData': { 'pixelWidth': '1062', 'pixelHeight': '1070' },
900
+ },
901
+ {
902
+ 'type': 'textButton',
903
+ 'viewStyle': {
904
+ 'backgroundColor': '#E0E0E0',
905
+ 'padding': { 'top': '10', 'bottom': '10', 'left': '20', 'right': '20' },
906
+ },
907
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
908
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
909
+ 'text': 'Button',
910
+ 'textStyle': { 'color': '#742DDD', 'size': '16', 'weight': 'normal' },
911
+ 'maxTextLines': '5',
912
+ 'action': { 'data': 'www.naver.com' },
913
+ },
914
+ {
915
+ 'type': 'imageButton',
916
+ 'viewStyle': {},
917
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
918
+ 'height': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
919
+ 'imageUrl': 'https://file-preprod.sendbird.com/38fdf5c1056f42b89a44b38155cc4b49.jpg',
920
+ 'imageStyle': { 'contentMode': 'aspectFill' },
921
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
922
+ 'action': { 'data': 'www.naver.com' },
923
+ },
924
+ ],
925
+ 'viewStyle': {},
926
+ },
927
+ ],
928
+ },
929
+ });
930
+ ({
931
+ 'version': 1,
932
+ 'body': {
933
+ 'items': [
934
+ {
935
+ 'elementId': 'root',
936
+ 'type': 'box',
937
+ 'layout': 'column',
938
+ 'width': {
939
+ 'type': 'flex',
940
+ 'value': FlexSizeSpecValue$1.FillParent,
941
+ },
942
+ 'height': {
943
+ 'type': 'flex',
944
+ 'value': FlexSizeSpecValue$1.WrapContent,
945
+ },
946
+ 'items': [
947
+ {
948
+ 'type': 'text',
949
+ 'viewStyle': {
950
+ 'backgroundColor': '#a0c0ffff',
951
+ 'margin': {
952
+ 'top': 16,
953
+ 'bottom': 16,
954
+ 'left': 16,
955
+ 'right': 16,
956
+ },
957
+ 'padding': {
958
+ 'top': 16,
959
+ 'bottom': 16,
960
+ 'left': 16,
961
+ 'right': 16,
962
+ },
963
+ },
964
+ 'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
965
+ 'textStyle': {
966
+ 'size': 14,
967
+ 'color': '#222121e0',
968
+ 'weight': 'normal',
969
+ },
970
+ 'maxTextLines': 5,
971
+ 'width': {
972
+ 'type': 'flex',
973
+ 'value': FlexSizeSpecValue$1.FillParent,
974
+ },
975
+ 'height': {
976
+ 'type': 'flex',
977
+ 'value': 1,
978
+ },
979
+ 'align': {
980
+ 'horizontal': 'left',
981
+ 'vertical': 'top',
982
+ },
983
+ 'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
984
+ },
985
+ {
986
+ 'type': 'imageButton',
987
+ 'viewStyle': {
988
+ margin: {
989
+ left: 24,
990
+ right: 12,
991
+ },
992
+ },
993
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue$1.FillParent },
994
+ 'height': { 'type': 'fixed', 'value': 250 },
995
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
996
+ 'imageStyle': { 'contentMode': 'aspectFill' },
997
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
998
+ 'action': { 'data': 'www.naver.com' },
999
+ },
1000
+ ],
1001
+ },
1002
+ ],
1003
+ },
1004
+ });
1005
+
61
1006
  var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
62
1007
  var t = {};
63
1008
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -168,10 +1113,8 @@ const createMessageTemplate = (opts) => {
168
1113
  const UnknownMessage = opts.UnknownMessage || (() => null);
169
1114
  const parser = opts.parser || createParser();
170
1115
  const renderer = opts.renderer || createRenderer();
171
- const MessageTemplateBase = (props) => {
172
- var _a;
173
- const renderItems = props.templateItems;
174
- const parentLayout = (_a = props.parentLayout) !== null && _a !== void 0 ? _a : defaultProperties.box.layout;
1116
+ const MessageTemplateBase = ({ templateItems, parentLayout = defaultProperties.box.layout, isRoot = false, }) => {
1117
+ const renderItems = templateItems;
175
1118
  return (React__default.createElement(React__default.Fragment, null, renderItems.map((item, index, siblings) => {
176
1119
  const { properties } = parser.parse(item, { parentLayout, elemIdx: index, siblings });
177
1120
  const props = {
@@ -181,20 +1124,30 @@ const createMessageTemplate = (opts) => {
181
1124
  siblings,
182
1125
  };
183
1126
  switch (item.type) {
184
- case ComponentType.Box: {
1127
+ // CompositeComponent should be top level component
1128
+ case CompositeComponentType$1.Carousel: {
1129
+ if (!isRoot) {
1130
+ throw new Error('Cannot parse template item as Carousel if the template item is not the root.');
1131
+ }
1132
+ if (!item.items || !Array.isArray(item.items) || item.items.length === 0) {
1133
+ throw new Error('Cannot parse template item as Carousel if carousel has no items.');
1134
+ }
1135
+ return (React__default.createElement(renderer.carouselView, Object.assign({}, item, props), item.items.map((items, index) => (React__default.createElement(MessageTemplateBase, { key: index, templateItems: items || [], parentLayout: parentLayout })))));
1136
+ }
1137
+ case ComponentType$1.Box: {
185
1138
  return (React__default.createElement(renderer.box, Object.assign({}, item, props),
186
1139
  React__default.createElement(MessageTemplateBase, { templateItems: item.items || [], parentLayout: item.layout })));
187
1140
  }
188
- case ComponentType.Text: {
1141
+ case ComponentType$1.Text: {
189
1142
  return React__default.createElement(renderer.text, Object.assign({}, item, props));
190
1143
  }
191
- case ComponentType.Image: {
1144
+ case ComponentType$1.Image: {
192
1145
  return React__default.createElement(renderer.image, Object.assign({}, item, props));
193
1146
  }
194
- case ComponentType.TextButton: {
1147
+ case ComponentType$1.TextButton: {
195
1148
  return React__default.createElement(renderer.textButton, Object.assign({}, item, props));
196
1149
  }
197
- case ComponentType.ImageButton: {
1150
+ case ComponentType$1.ImageButton: {
198
1151
  return React__default.createElement(renderer.imageButton, Object.assign({}, item, props));
199
1152
  }
200
1153
  default: {
@@ -205,11 +1158,21 @@ const createMessageTemplate = (opts) => {
205
1158
  })));
206
1159
  };
207
1160
  return {
208
- MessageTemplate: ({ parentLayout = defaultProperties.rootLayout, templateItems }) => {
1161
+ MessageTemplate: ({ parentLayout = defaultProperties.rootLayout, templateVersion, templateItems, }) => {
209
1162
  const items = setTemplateItemId(templateItems);
1163
+ if (!isTemplateVersionSupported(templateVersion)) {
1164
+ /**
1165
+ * I choose to throw instead of returning UnknownMessage because UnknownMessage syntax (required prop: item) is not what UIKit wants.
1166
+ */
1167
+ throw new Error(`Cannot parse template item due to unsupported template version: ${templateVersion}, ${SUPPORTED_TEMPLATE_VERSIONS}`);
1168
+ }
1169
+ let isCarousel = false;
1170
+ if (Array.isArray(items) && items.length > 0) {
1171
+ isCarousel = items[0].type === CompositeComponentType$1.Carousel;
1172
+ }
210
1173
  return (React__default.createElement(SizeContextProvider, null,
211
- React__default.createElement(Container, null,
212
- React__default.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items }))));
1174
+ React__default.createElement(Container, { className: isCarousel ? 'sb-message-template__parent_for_carousel' : '' },
1175
+ React__default.createElement(MessageTemplateBase, { parentLayout: parentLayout, templateItems: items, isRoot: true }))));
213
1176
  },
214
1177
  MessageTemplateBase,
215
1178
  };
@@ -241,7 +1204,7 @@ const alignInFlex = (align) => {
241
1204
  body: {
242
1205
  items: [
243
1206
  {
244
- type: ComponentType.Image,
1207
+ type: ComponentType$1.Image,
245
1208
  action: { type: ActionType.Web, data: 'https://docs.sendbird.com' },
246
1209
  height: { type: 'fixed', value: 236 },
247
1210
  viewStyle: {
@@ -256,33 +1219,33 @@ const alignInFlex = (align) => {
256
1219
  imageStyle: { contentMode: MediaContentMode.AspectFill },
257
1220
  },
258
1221
  {
259
- type: ComponentType.Box,
1222
+ type: ComponentType$1.Box,
260
1223
  layout: Layout.Column,
261
1224
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
262
1225
  height: { type: 'fixed', value: 200 },
263
1226
  items: [
264
1227
  {
265
- type: ComponentType.Box,
1228
+ type: ComponentType$1.Box,
266
1229
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
267
1230
  height: { type: 'flex', value: FlexSizeSpecValue.FillParent },
268
1231
  viewStyle: { backgroundColor: '#fa6464' },
269
1232
  },
270
1233
  {
271
- type: ComponentType.Box,
1234
+ type: ComponentType$1.Box,
272
1235
  layout: Layout.Column,
273
1236
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
274
1237
  height: { type: 'flex', value: FlexSizeSpecValue.WrapContent },
275
1238
  viewStyle: { backgroundColor: '#ffaf5c' },
276
1239
  items: [
277
1240
  {
278
- type: ComponentType.Text,
1241
+ type: ComponentType$1.Text,
279
1242
  text: 'Message',
280
1243
  align: { horizontal: AlignValue.Center, vertical: AlignValue.Center },
281
1244
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
282
1245
  height: { type: 'fixed', value: 50 },
283
1246
  },
284
1247
  {
285
- type: ComponentType.Image,
1248
+ type: ComponentType$1.Image,
286
1249
  action: { type: ActionType.Web, data: 'https://docs.sendbird.com' },
287
1250
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
288
1251
  height: { type: 'fixed', value: 50 },
@@ -292,13 +1255,13 @@ const alignInFlex = (align) => {
292
1255
  ],
293
1256
  },
294
1257
  {
295
- type: ComponentType.Box,
1258
+ type: ComponentType$1.Box,
296
1259
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
297
1260
  height: { type: 'fixed', value: 20 },
298
1261
  viewStyle: { backgroundColor: '#ffe450' },
299
1262
  },
300
1263
  {
301
- type: ComponentType.Box,
1264
+ type: ComponentType$1.Box,
302
1265
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
303
1266
  height: { type: 'flex', value: FlexSizeSpecValue.FillParent },
304
1267
  viewStyle: { backgroundColor: '#329a1b' },
@@ -306,12 +1269,12 @@ const alignInFlex = (align) => {
306
1269
  ],
307
1270
  },
308
1271
  {
309
- type: ComponentType.Box,
1272
+ type: ComponentType$1.Box,
310
1273
  viewStyle: { padding: { top: 12, bottom: 12, left: 12, right: 12 } },
311
1274
  layout: Layout.Column,
312
1275
  items: [
313
1276
  {
314
- type: ComponentType.Box,
1277
+ type: ComponentType$1.Box,
315
1278
  align: { horizontal: AlignValue.Left, vertical: AlignValue.Center },
316
1279
  layout: Layout.Row,
317
1280
  viewStyle: {
@@ -322,7 +1285,7 @@ const alignInFlex = (align) => {
322
1285
  height: { type: 'fixed', value: 150 },
323
1286
  items: [
324
1287
  {
325
- type: ComponentType.Text,
1288
+ type: ComponentType$1.Text,
326
1289
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
327
1290
  height: { type: 'fixed', value: 50 },
328
1291
  text: 'Sample1 text',
@@ -338,7 +1301,7 @@ const alignInFlex = (align) => {
338
1301
  },
339
1302
  },
340
1303
  {
341
- type: ComponentType.ImageButton,
1304
+ type: ComponentType$1.ImageButton,
342
1305
  action: { type: ActionType.UIKit, data: 'uikit://delete' },
343
1306
  width: { type: 'fixed', value: 20 },
344
1307
  height: { type: 'fixed', value: 20 },
@@ -348,7 +1311,7 @@ const alignInFlex = (align) => {
348
1311
  ],
349
1312
  },
350
1313
  {
351
- type: ComponentType.Text,
1314
+ type: ComponentType$1.Text,
352
1315
  viewStyle: { padding: { top: 6, bottom: 12, left: 0, right: 0 } },
353
1316
  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.',
354
1317
  maxTextLines: 2,
@@ -357,7 +1320,7 @@ const alignInFlex = (align) => {
357
1320
  height: { type: 'fixed', value: 50 },
358
1321
  },
359
1322
  {
360
- type: ComponentType.TextButton,
1323
+ type: ComponentType$1.TextButton,
361
1324
  action: { type: ActionType.Web, data: 'https://www.daum.net' },
362
1325
  text: 'Button 3',
363
1326
  textStyle: { size: 14, color: '#742ddd', weight: FontWeight.Bold },
@@ -372,25 +1335,25 @@ const alignInFlex = (align) => {
372
1335
  'body': {
373
1336
  'items': [
374
1337
  {
375
- 'type': ComponentType.Image,
1338
+ 'type': ComponentType$1.Image,
376
1339
  'action': { 'type': ActionType.Web, 'data': 'https://www.naver.com/' },
377
1340
  'height': { 'type': 'fixed', 'value': 136 },
378
1341
  'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
379
1342
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
380
1343
  },
381
1344
  {
382
- 'type': ComponentType.Box,
1345
+ 'type': ComponentType$1.Box,
383
1346
  'viewStyle': { 'padding': { 'top': 12, 'bottom': 12, 'left': 12, 'right': 12 }, backgroundColor: '#cccccc' },
384
1347
  'layout': Layout.Column,
385
1348
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
386
1349
  'items': [
387
1350
  {
388
- 'type': ComponentType.Box,
1351
+ 'type': ComponentType$1.Box,
389
1352
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
390
1353
  'layout': Layout.Row,
391
1354
  'items': [
392
1355
  {
393
- 'type': ComponentType.TextButton,
1356
+ 'type': ComponentType$1.TextButton,
394
1357
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
395
1358
  width: { type: 'fixed', value: 150 },
396
1359
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 0, 'right': 4 } },
@@ -398,7 +1361,7 @@ const alignInFlex = (align) => {
398
1361
  'textStyle': { 'size': 14, 'weight': FontWeight.Bold },
399
1362
  },
400
1363
  {
401
- 'type': ComponentType.TextButton,
1364
+ 'type': ComponentType$1.TextButton,
402
1365
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
403
1366
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
404
1367
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 4, 'right': 0 } },
@@ -408,19 +1371,19 @@ const alignInFlex = (align) => {
408
1371
  ],
409
1372
  },
410
1373
  {
411
- 'type': ComponentType.Box,
1374
+ 'type': ComponentType$1.Box,
412
1375
  width: { type: 'flex', value: FlexSizeSpecValue.FillParent },
413
1376
  'layout': Layout.Row,
414
1377
  'items': [
415
1378
  {
416
- 'type': ComponentType.Text,
1379
+ 'type': ComponentType$1.Text,
417
1380
  'text': 'Sample2 text',
418
1381
  'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
419
1382
  'maxTextLines': 1,
420
1383
  'textStyle': { 'size': 16, 'weight': FontWeight.Bold },
421
1384
  },
422
1385
  {
423
- 'type': ComponentType.ImageButton,
1386
+ 'type': ComponentType$1.ImageButton,
424
1387
  'action': { 'type': ActionType.UIKit, 'data': 'uikit://delete' },
425
1388
  'width': { 'type': 'fixed', 'value': 20 },
426
1389
  'height': { 'type': 'fixed', 'value': 20 },
@@ -430,7 +1393,7 @@ const alignInFlex = (align) => {
430
1393
  ],
431
1394
  },
432
1395
  {
433
- 'type': ComponentType.Text,
1396
+ 'type': ComponentType$1.Text,
434
1397
  'viewStyle': { 'padding': { 'top': 6, 'bottom': 12, 'left': 0, 'right': 0 } },
435
1398
  'text': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aui',
436
1399
  'textStyle': { 'size': 14 },
@@ -445,42 +1408,42 @@ const alignInFlex = (align) => {
445
1408
  'body': {
446
1409
  'items': [
447
1410
  {
448
- 'type': ComponentType.Box,
1411
+ 'type': ComponentType$1.Box,
449
1412
  'viewStyle': { 'backgroundColor': '#ffffff', 'borderWidth': 1, 'borderColor': '#eeeeee', 'radius': 16 },
450
1413
  'layout': Layout.Column,
451
1414
  'items': [
452
1415
  {
453
- 'type': ComponentType.Image,
1416
+ 'type': ComponentType$1.Image,
454
1417
  'height': { 'type': 'fixed', 'value': 200 },
455
1418
  'imageUrl': 'https://img.freepik.com/free-vector/cartoon-happy-hours-background_52683-81243.jpg?w=2000&t=st=1666689198~exp=1666689798~hmac=23109d44ba03deee7aee069cbeebfcb48fa27f85e53c1cafc5d5d7345f1a2041',
456
1419
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
457
1420
  },
458
1421
  {
459
- 'type': ComponentType.Box,
1422
+ 'type': ComponentType$1.Box,
460
1423
  'viewStyle': { 'padding': { 'top': 15, 'bottom': 15, 'left': 15, 'right': 15 } },
461
1424
  'layout': Layout.Column,
462
1425
  'items': [
463
1426
  {
464
- 'type': ComponentType.Text,
1427
+ 'type': ComponentType$1.Text,
465
1428
  'text': "Don't miss these deals today",
466
1429
  'maxTextLines': 1,
467
1430
  'textStyle': { 'size': 20, 'color': '#e10000', 'weight': FontWeight.Bold },
468
1431
  },
469
1432
  {
470
- 'type': ComponentType.Text,
1433
+ 'type': ComponentType$1.Text,
471
1434
  'viewStyle': { 'margin': { 'top': 5, 'bottom': 0, 'left': 0, 'right': 0 } },
472
1435
  'text': 'Pay with Maya and get cashback!',
473
1436
  'maxTextLines': 1,
474
1437
  'textStyle': { 'size': 14, 'color': '#e10000' },
475
1438
  },
476
1439
  {
477
- 'type': ComponentType.Box,
1440
+ 'type': ComponentType$1.Box,
478
1441
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
479
1442
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
480
1443
  'layout': Layout.Row,
481
1444
  'items': [
482
1445
  {
483
- 'type': ComponentType.Image,
1446
+ 'type': ComponentType$1.Image,
484
1447
  'width': { 'type': 'fixed', 'value': 50 },
485
1448
  'height': { 'type': 'fixed', 'value': 50 },
486
1449
  'viewStyle': {
@@ -493,19 +1456,19 @@ const alignInFlex = (align) => {
493
1456
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
494
1457
  },
495
1458
  {
496
- 'type': ComponentType.Box,
1459
+ 'type': ComponentType$1.Box,
497
1460
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
498
1461
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
499
1462
  'layout': Layout.Column,
500
1463
  'items': [
501
1464
  {
502
- 'type': ComponentType.Text,
1465
+ 'type': ComponentType$1.Text,
503
1466
  'text': 'Meralco',
504
1467
  'maxTextLines': 1,
505
1468
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
506
1469
  },
507
1470
  {
508
- 'type': ComponentType.Text,
1471
+ 'type': ComponentType$1.Text,
509
1472
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
510
1473
  'text': '30% cashback, P300 min spend',
511
1474
  'maxTextLines': 1,
@@ -516,13 +1479,13 @@ const alignInFlex = (align) => {
516
1479
  ],
517
1480
  },
518
1481
  {
519
- 'type': ComponentType.Box,
1482
+ 'type': ComponentType$1.Box,
520
1483
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
521
1484
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
522
1485
  'layout': Layout.Row,
523
1486
  'items': [
524
1487
  {
525
- 'type': ComponentType.Image,
1488
+ 'type': ComponentType$1.Image,
526
1489
  'width': { 'type': 'fixed', 'value': 50 },
527
1490
  'height': { 'type': 'fixed', 'value': 50 },
528
1491
  'viewStyle': {
@@ -535,19 +1498,19 @@ const alignInFlex = (align) => {
535
1498
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill, tintColor: '#a49a9a' },
536
1499
  },
537
1500
  {
538
- 'type': ComponentType.Box,
1501
+ 'type': ComponentType$1.Box,
539
1502
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
540
1503
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
541
1504
  'layout': Layout.Column,
542
1505
  'items': [
543
1506
  {
544
- 'type': ComponentType.Text,
1507
+ 'type': ComponentType$1.Text,
545
1508
  'text': 'Globe',
546
1509
  'maxTextLines': 1,
547
1510
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
548
1511
  },
549
1512
  {
550
- 'type': ComponentType.Text,
1513
+ 'type': ComponentType$1.Text,
551
1514
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
552
1515
  'text': '30% cashback, P300 min spend',
553
1516
  'maxTextLines': 1,
@@ -558,13 +1521,13 @@ const alignInFlex = (align) => {
558
1521
  ],
559
1522
  },
560
1523
  {
561
- 'type': ComponentType.Box,
1524
+ 'type': ComponentType$1.Box,
562
1525
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
563
1526
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
564
1527
  'layout': Layout.Row,
565
1528
  'items': [
566
1529
  {
567
- 'type': ComponentType.Image,
1530
+ 'type': ComponentType$1.Image,
568
1531
  'width': { 'type': 'fixed', 'value': 50 },
569
1532
  'height': { 'type': 'fixed', 'value': 50 },
570
1533
  'viewStyle': {
@@ -577,19 +1540,19 @@ const alignInFlex = (align) => {
577
1540
  'imageStyle': { 'contentMode': MediaContentMode.AspectFill },
578
1541
  },
579
1542
  {
580
- 'type': ComponentType.Box,
1543
+ 'type': ComponentType$1.Box,
581
1544
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
582
1545
  'viewStyle': { 'margin': { 'top': 0, 'bottom': 0, 'left': 15, 'right': 0 } },
583
1546
  'layout': Layout.Column,
584
1547
  'items': [
585
1548
  {
586
- 'type': ComponentType.Text,
1549
+ 'type': ComponentType$1.Text,
587
1550
  'text': 'Cignal',
588
1551
  'maxTextLines': 1,
589
1552
  'textStyle': { 'size': 16, 'color': '#e10000', 'weight': FontWeight.Bold },
590
1553
  },
591
1554
  {
592
- 'type': ComponentType.Text,
1555
+ 'type': ComponentType$1.Text,
593
1556
  'viewStyle': { 'margin': { 'top': 3, 'bottom': 0, 'left': 0, 'right': 0 } },
594
1557
  'text': '30% cashback, P300 min spend',
595
1558
  'maxTextLines': 1,
@@ -600,13 +1563,13 @@ const alignInFlex = (align) => {
600
1563
  ],
601
1564
  },
602
1565
  {
603
- 'type': ComponentType.Box,
1566
+ 'type': ComponentType$1.Box,
604
1567
  'align': { 'horizontal': AlignValue.Left, 'vertical': AlignValue.Center },
605
1568
  'viewStyle': { 'margin': { 'top': 10, 'bottom': 0, 'left': 0, 'right': 0 } },
606
1569
  'layout': Layout.Row,
607
1570
  'items': [
608
1571
  {
609
- 'type': ComponentType.TextButton,
1572
+ 'type': ComponentType$1.TextButton,
610
1573
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
611
1574
  'viewStyle': {
612
1575
  'backgroundColor': '#e0e0e0',
@@ -618,7 +1581,7 @@ const alignInFlex = (align) => {
618
1581
  'textStyle': { 'size': 15, 'color': '#e10000', 'weight': FontWeight.Bold },
619
1582
  },
620
1583
  {
621
- 'type': ComponentType.TextButton,
1584
+ 'type': ComponentType$1.TextButton,
622
1585
  'action': { 'type': ActionType.Web, 'data': 'https://www.daum.net' },
623
1586
  'viewStyle': {
624
1587
  'backgroundColor': '#e10000',
@@ -643,11 +1606,11 @@ const alignInFlex = (align) => {
643
1606
  'body': {
644
1607
  'items': [
645
1608
  {
646
- 'type': ComponentType.Box,
1609
+ 'type': ComponentType$1.Box,
647
1610
  'layout': Layout.Column,
648
1611
  'items': [
649
1612
  {
650
- 'type': ComponentType.Image,
1613
+ 'type': ComponentType$1.Image,
651
1614
  'imageUrl': 'https://static.sendbird.com/sample/profiles/profile_40_512px.png',
652
1615
  'metaData': {
653
1616
  'pixelWidth': 512,
@@ -666,7 +1629,7 @@ const alignInFlex = (align) => {
666
1629
  },
667
1630
  },
668
1631
  {
669
- 'type': ComponentType.Box,
1632
+ 'type': ComponentType$1.Box,
670
1633
  'viewStyle': {
671
1634
  'padding': {
672
1635
  'top': 12,
@@ -678,15 +1641,15 @@ const alignInFlex = (align) => {
678
1641
  'layout': Layout.Column,
679
1642
  'items': [
680
1643
  {
681
- 'type': ComponentType.Box,
1644
+ 'type': ComponentType$1.Box,
682
1645
  'layout': Layout.Row,
683
1646
  'items': [
684
1647
  {
685
- 'type': ComponentType.Box,
1648
+ 'type': ComponentType$1.Box,
686
1649
  'layout': Layout.Column,
687
1650
  'items': [
688
1651
  {
689
- 'type': ComponentType.Text,
1652
+ 'type': ComponentType$1.Text,
690
1653
  'text': 'hi',
691
1654
  'maxTextLines': 3,
692
1655
  'viewStyle': {
@@ -703,7 +1666,7 @@ const alignInFlex = (align) => {
703
1666
  },
704
1667
  },
705
1668
  {
706
- 'type': ComponentType.Text,
1669
+ 'type': ComponentType$1.Text,
707
1670
  'text': 'bye',
708
1671
  'maxTextLines': 10,
709
1672
  'textStyle': {
@@ -713,7 +1676,7 @@ const alignInFlex = (align) => {
713
1676
  ],
714
1677
  },
715
1678
  {
716
- 'type': ComponentType.ImageButton,
1679
+ 'type': ComponentType$1.ImageButton,
717
1680
  'action': {
718
1681
  'type': ActionType.UIKit,
719
1682
  'data': 'sendbirduikit://delete',
@@ -738,11 +1701,11 @@ const alignInFlex = (align) => {
738
1701
  ],
739
1702
  },
740
1703
  {
741
- 'type': ComponentType.Box,
1704
+ 'type': ComponentType$1.Box,
742
1705
  'layout': Layout.Column,
743
1706
  'items': [
744
1707
  {
745
- 'type': ComponentType.Box,
1708
+ 'type': ComponentType$1.Box,
746
1709
  'viewStyle': {
747
1710
  'margin': {
748
1711
  'top': 16,
@@ -758,7 +1721,7 @@ const alignInFlex = (align) => {
758
1721
  'layout': Layout.Row,
759
1722
  'items': [
760
1723
  {
761
- 'type': ComponentType.Image,
1724
+ 'type': ComponentType$1.Image,
762
1725
  'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-ULE240VNV-83fd5776e78e-512',
763
1726
  'width': {
764
1727
  'type': 'fixed',
@@ -781,7 +1744,7 @@ const alignInFlex = (align) => {
781
1744
  },
782
1745
  },
783
1746
  {
784
- 'type': ComponentType.Box,
1747
+ 'type': ComponentType$1.Box,
785
1748
  'viewStyle': {
786
1749
  'margin': {
787
1750
  'top': 0,
@@ -793,7 +1756,7 @@ const alignInFlex = (align) => {
793
1756
  'layout': Layout.Column,
794
1757
  'items': [
795
1758
  {
796
- 'type': ComponentType.Text,
1759
+ 'type': ComponentType$1.Text,
797
1760
  'text': 'Chongbu',
798
1761
  'maxTextLines': 1,
799
1762
  'textStyle': {
@@ -802,7 +1765,7 @@ const alignInFlex = (align) => {
802
1765
  },
803
1766
  },
804
1767
  {
805
- 'type': ComponentType.Text,
1768
+ 'type': ComponentType$1.Text,
806
1769
  'viewStyle': {
807
1770
  'margin': {
808
1771
  'top': 4,
@@ -822,7 +1785,7 @@ const alignInFlex = (align) => {
822
1785
  ],
823
1786
  },
824
1787
  {
825
- 'type': ComponentType.Box,
1788
+ 'type': ComponentType$1.Box,
826
1789
  'viewStyle': {
827
1790
  'margin': {
828
1791
  'top': 16,
@@ -838,7 +1801,7 @@ const alignInFlex = (align) => {
838
1801
  'layout': Layout.Row,
839
1802
  'items': [
840
1803
  {
841
- 'type': ComponentType.Image,
1804
+ 'type': ComponentType$1.Image,
842
1805
  'imageUrl': 'https://ca.slack-edge.com/T0ADCTNEL-U02LA25KY8J-d41a3e8c7554-512',
843
1806
  'width': {
844
1807
  'type': 'fixed',
@@ -861,7 +1824,7 @@ const alignInFlex = (align) => {
861
1824
  },
862
1825
  },
863
1826
  {
864
- 'type': ComponentType.Box,
1827
+ 'type': ComponentType$1.Box,
865
1828
  'viewStyle': {
866
1829
  'margin': {
867
1830
  'top': 0,
@@ -873,7 +1836,7 @@ const alignInFlex = (align) => {
873
1836
  'layout': Layout.Column,
874
1837
  'items': [
875
1838
  {
876
- 'type': ComponentType.Text,
1839
+ 'type': ComponentType$1.Text,
877
1840
  'text': 'Amanda',
878
1841
  'maxTextLines': 1,
879
1842
  'textStyle': {
@@ -882,7 +1845,7 @@ const alignInFlex = (align) => {
882
1845
  },
883
1846
  },
884
1847
  {
885
- 'type': ComponentType.Text,
1848
+ 'type': ComponentType$1.Text,
886
1849
  'viewStyle': {
887
1850
  'margin': {
888
1851
  'top': 4,
@@ -1011,6 +1974,285 @@ const alignInFlex = (align) => {
1011
1974
  ],
1012
1975
  },
1013
1976
  });
1977
+ ({
1978
+ 'version': 1,
1979
+ 'body': {
1980
+ 'items': [
1981
+ {
1982
+ 'elementId': 'root',
1983
+ 'type': 'box',
1984
+ 'layout': 'column',
1985
+ 'width': {
1986
+ 'type': 'flex',
1987
+ 'value': FlexSizeSpecValue.FillParent,
1988
+ },
1989
+ 'height': {
1990
+ 'type': 'flex',
1991
+ 'value': FlexSizeSpecValue.WrapContent,
1992
+ },
1993
+ 'items': [
1994
+ {
1995
+ 'type': 'text',
1996
+ 'viewStyle': {
1997
+ 'backgroundColor': '#a0c0ffff',
1998
+ 'margin': {
1999
+ 'top': 16,
2000
+ 'bottom': 16,
2001
+ 'left': 16,
2002
+ 'right': 16,
2003
+ },
2004
+ 'padding': {
2005
+ 'top': 16,
2006
+ 'bottom': 16,
2007
+ 'left': 16,
2008
+ 'right': 16,
2009
+ },
2010
+ },
2011
+ 'text': 'Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap Wrap ',
2012
+ 'textStyle': {
2013
+ 'size': 14,
2014
+ 'color': '#222121e0',
2015
+ 'weight': 'normal',
2016
+ },
2017
+ 'maxTextLines': 5,
2018
+ 'width': {
2019
+ 'type': 'flex',
2020
+ 'value': FlexSizeSpecValue.FillParent,
2021
+ },
2022
+ 'height': {
2023
+ 'type': 'flex',
2024
+ 'value': 1,
2025
+ },
2026
+ 'align': {
2027
+ 'horizontal': 'left',
2028
+ 'vertical': 'top',
2029
+ },
2030
+ 'elementId': 'c0e15878-4984-408d-abaa-4b495c2e3872',
2031
+ },
2032
+ {
2033
+ 'type': 'imageButton',
2034
+ 'viewStyle': {
2035
+ margin: {
2036
+ left: 24,
2037
+ right: 12,
2038
+ },
2039
+ },
2040
+ 'width': { 'type': 'flex', 'value': FlexSizeSpecValue.FillParent },
2041
+ 'height': { 'type': 'fixed', 'value': 250 },
2042
+ 'imageUrl': 'https://cdn.pixabay.com/photo/2022/10/12/10/45/bird-7516219_1280.jpg',
2043
+ 'imageStyle': { 'contentMode': 'aspectFill' },
2044
+ 'metaData': { 'pixelWidth': '1080', 'pixelHeight': '2640' },
2045
+ 'action': { 'data': 'www.naver.com' },
2046
+ },
2047
+ ],
2048
+ },
2049
+ ],
2050
+ },
2051
+ });
2052
+
2053
+ const PADDING_WIDTH = 24;
2054
+ const CONTENT_LEFT_WIDTH = 40;
2055
+ const SWIPE_THRESHOLD = 15;
2056
+ const GAP_DEFAULT = 8;
2057
+ /**
2058
+ * fixed sized template items should use its child width.
2059
+ * Whereas flex sized template items should use its parent's width.
2060
+ * @param item
2061
+ */
2062
+ function shouldRenderAsFixed(item) {
2063
+ var _a;
2064
+ return ((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.type) === 'fixed';
2065
+ }
2066
+ function CarouselItem({ item, defaultWidth, marginRight }) {
2067
+ const style = shouldRenderAsFixed(item)
2068
+ ? { width: 'fit-content' }
2069
+ : { minWidth: defaultWidth, width: '100%' };
2070
+ if (marginRight) {
2071
+ style['marginRight'] = marginRight;
2072
+ }
2073
+ return React__default.createElement("div", { style: style }, item);
2074
+ }
2075
+ const Carousel = React__default.memo(({ children, gap = GAP_DEFAULT }) => {
2076
+ var _a, _b;
2077
+ const carouselRef = useRef(null);
2078
+ const screenWidth = window.innerWidth;
2079
+ const defaultItemWidth = (_b = (_a = carouselRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
2080
+ const itemWidths = children.map((item) => {
2081
+ var _a;
2082
+ if (shouldRenderAsFixed(item)) {
2083
+ return Number((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.value);
2084
+ }
2085
+ return defaultItemWidth;
2086
+ });
2087
+ const itemPositions = getEachItemPositions();
2088
+ const [draggingInfo, setDraggingInfo] = useState({
2089
+ scrolling: false,
2090
+ dragging: false,
2091
+ startPos: null,
2092
+ offset: 0,
2093
+ translateX: 0,
2094
+ currentIndex: 0,
2095
+ });
2096
+ const handleMouseDown = (event) => {
2097
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: false, dragging: true, startPos: {
2098
+ x: event.clientX,
2099
+ y: event.clientY,
2100
+ }, offset: 0 })));
2101
+ };
2102
+ const handleMouseMove = (event) => {
2103
+ if (!draggingInfo.dragging || !draggingInfo.startPos)
2104
+ return;
2105
+ const currentX = event.clientX;
2106
+ const newOffset = currentX - draggingInfo.startPos.x;
2107
+ setDraggingInfo(Object.assign(Object.assign({}, draggingInfo), { offset: newOffset }));
2108
+ };
2109
+ const handleMouseUp = () => {
2110
+ if (!draggingInfo.dragging)
2111
+ return;
2112
+ handleDragEnd();
2113
+ unblockScroll();
2114
+ };
2115
+ const blockScroll = () => {
2116
+ if (carouselRef.current) {
2117
+ carouselRef.current.style.touchAction = 'pan-x';
2118
+ }
2119
+ };
2120
+ const unblockScroll = () => {
2121
+ if (carouselRef.current) {
2122
+ carouselRef.current.style.touchAction = 'pan-y';
2123
+ }
2124
+ };
2125
+ const handleTouchStart = (event) => {
2126
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: false, dragging: false, startPos: {
2127
+ x: event.touches[0].clientX,
2128
+ y: event.touches[0].clientY,
2129
+ }, offset: 0 })));
2130
+ };
2131
+ const handleTouchMove = (event) => {
2132
+ if (!draggingInfo.startPos || draggingInfo.scrolling)
2133
+ return;
2134
+ const startPos = draggingInfo.startPos;
2135
+ const [touchMoveX, touchMoveY] = [event.touches[0].clientX, event.touches[0].clientY];
2136
+ const [deltaX, deltaY] = [Math.abs(touchMoveX - startPos.x), Math.abs(touchMoveY - startPos.y)];
2137
+ const newOffset = touchMoveX - startPos.x;
2138
+ if (draggingInfo.dragging) {
2139
+ if (newOffset === draggingInfo.offset)
2140
+ return;
2141
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { offset: newOffset })));
2142
+ return;
2143
+ }
2144
+ if (deltaY > deltaX) {
2145
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { scrolling: true })));
2146
+ }
2147
+ else {
2148
+ blockScroll();
2149
+ setDraggingInfo((props) => (Object.assign(Object.assign({}, props), { dragging: true, offset: newOffset })));
2150
+ }
2151
+ };
2152
+ const handleTouchEnd = () => {
2153
+ if (!draggingInfo.dragging)
2154
+ return;
2155
+ handleDragEnd();
2156
+ unblockScroll();
2157
+ };
2158
+ const getNewDraggingInfo = ({ translateX, currentIndex, newTranslateX, nextIndex, }) => {
2159
+ return {
2160
+ scrolling: false,
2161
+ dragging: false,
2162
+ startPos: null,
2163
+ offset: 0,
2164
+ translateX: newTranslateX !== null && newTranslateX !== void 0 ? newTranslateX : translateX,
2165
+ currentIndex: nextIndex !== null && nextIndex !== void 0 ? nextIndex : currentIndex,
2166
+ };
2167
+ };
2168
+ const handleDragEnd = () => {
2169
+ const { offset, currentIndex } = draggingInfo;
2170
+ const absOffset = Math.abs(offset);
2171
+ if (absOffset < SWIPE_THRESHOLD) {
2172
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2173
+ return;
2174
+ }
2175
+ // If dragged to left, next index should be to the right
2176
+ if (offset < 0 && currentIndex < children.length - 1) {
2177
+ if (isLastItemFitsScreen(currentIndex)) {
2178
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2179
+ return;
2180
+ }
2181
+ const nextIndex = currentIndex + 1;
2182
+ /**
2183
+ * This is special logic for "더 보기" button for Socar use-case.
2184
+ * The button will have a small width (less than 50px).
2185
+ * We want to include this button in the view and snap to right padding wall IFF !isLastTwoItemsFitScreen.
2186
+ */
2187
+ if (nextIndex === children.length - 1 || isLastItemFitsScreen(nextIndex)) {
2188
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[children.length - 1].end - PADDING_WIDTH - CONTENT_LEFT_WIDTH + screenWidth, nextIndex: children.length - 1 })));
2189
+ }
2190
+ else {
2191
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[nextIndex].start, nextIndex })));
2192
+ }
2193
+ // If dragged to right, next index should be to the left
2194
+ }
2195
+ else if (offset > 0 && currentIndex > 0) {
2196
+ let nextIndex = currentIndex - 1;
2197
+ while (draggingInfo.translateX >= itemPositions[nextIndex].start) {
2198
+ nextIndex--;
2199
+ }
2200
+ setDraggingInfo((props) => getNewDraggingInfo(Object.assign(Object.assign({}, props), { newTranslateX: itemPositions[nextIndex].start, nextIndex })));
2201
+ }
2202
+ else {
2203
+ setDraggingInfo((props) => getNewDraggingInfo(props));
2204
+ }
2205
+ };
2206
+ function getCurrentTranslateX() {
2207
+ return draggingInfo.translateX + draggingInfo.offset;
2208
+ }
2209
+ function isLastItemFitsScreen(nextIndex) {
2210
+ const restItemsWidth = itemWidths.slice(nextIndex).reduce((prev, curr) => prev + gap + curr);
2211
+ const restTotalWidth = PADDING_WIDTH + CONTENT_LEFT_WIDTH + restItemsWidth;
2212
+ return restTotalWidth <= screenWidth;
2213
+ }
2214
+ function getEachItemPositions() {
2215
+ let accumulator = 0;
2216
+ return itemWidths.map((itemWidth, i) => {
2217
+ if (i > 0) {
2218
+ accumulator -= gap;
2219
+ }
2220
+ const itemPosition = {
2221
+ start: accumulator,
2222
+ end: accumulator - itemWidth,
2223
+ };
2224
+ accumulator -= itemWidth;
2225
+ return itemPosition;
2226
+ });
2227
+ }
2228
+ return (React__default.createElement("div", { ref: carouselRef, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, className: "sb-message-template__carousel", style: {
2229
+ cursor: draggingInfo.dragging ? 'grabbing' : 'grab',
2230
+ transition: draggingInfo.dragging ? 'none' : 'transform 0.5s ease',
2231
+ transform: `translateX(${getCurrentTranslateX()}px)`,
2232
+ } }, children.map((item, index) => (React__default.createElement(CarouselItem, { key: index + '', item: item, defaultWidth: defaultItemWidth + 'px', marginRight: index < children.length - 1 ? gap : undefined })))));
2233
+ });
2234
+
2235
+ function isWrappedText(view) {
2236
+ var _a;
2237
+ return view.type === ComponentType$1.Text && ((_a = view.width) === null || _a === void 0 ? void 0 : _a.value) == FlexSizeSpecValue.WrapContent;
2238
+ }
2239
+ // Compares the size spec to the option and returns whether they are equal or not.
2240
+ const isSizeCompatibleWithOption = ({ size, option, }) => {
2241
+ if (option === 'wrap') {
2242
+ return size.type === 'flex' && size.value == FlexSizeSpecValue.WrapContent;
2243
+ }
2244
+ if (option === 'fill') {
2245
+ return size.type === 'flex' && size.value == FlexSizeSpecValue.FillParent;
2246
+ }
2247
+ return size.type === 'fixed';
2248
+ };
2249
+ const isGif = (url) => {
2250
+ var _a;
2251
+ if (typeof url !== 'string')
2252
+ return false;
2253
+ const extension = (_a = url.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
2254
+ return extension === 'gif';
2255
+ };
1014
2256
 
1015
2257
  var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
1016
2258
  var t = {};
@@ -1118,7 +2360,7 @@ const ReactMessageTemplateImage = (_a) => {
1118
2360
  if (hasError) {
1119
2361
  return React__default.createElement(PlaceholderReactMessageTemplateImage, Object.assign({}, props));
1120
2362
  }
1121
- else if (tintColor) {
2363
+ else if (tintColor && !isGif(props.src)) {
1122
2364
  return React__default.createElement(CanvasReactMessageTemplateImage, Object.assign({}, props, { onError: onError, tintColor: tintColor, metaData: metaData }));
1123
2365
  }
1124
2366
  else {
@@ -1149,21 +2391,6 @@ const MessageProvider = (props) => {
1149
2391
  };
1150
2392
  const useMessageContext = () => React__default.useContext(MessageContext);
1151
2393
 
1152
- function isWrappedText(view) {
1153
- var _a;
1154
- return view.type === ComponentType.Text && ((_a = view.width) === null || _a === void 0 ? void 0 : _a.value) == FlexSizeSpecValue.WrapContent;
1155
- }
1156
- // Compares the size spec to the option and returns whether they are equal or not.
1157
- const isSizeCompatibleWithOption = ({ size, option, }) => {
1158
- if (option === 'wrap') {
1159
- return size.type === 'flex' && size.value == FlexSizeSpecValue.WrapContent;
1160
- }
1161
- if (option === 'fill') {
1162
- return size.type === 'flex' && size.value == FlexSizeSpecValue.FillParent;
1163
- }
1164
- return size.type === 'fixed';
1165
- };
1166
-
1167
2394
  /**
1168
2395
  * Preserves a reference to the given callback function as an argument while the component is mounted.
1169
2396
  * Wraps the given callback in React's Ref to preserve the reference.
@@ -1376,7 +2603,7 @@ function setBorderStyle(styles, borderWidth, borderColor, radius) {
1376
2603
  }
1377
2604
  }
1378
2605
  function setViewStyle(styles, props) {
1379
- var _a, _b, _c, _d;
2606
+ var _a, _b, _c, _d, _e, _f;
1380
2607
  const { viewStyle } = props;
1381
2608
  if ((_a = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _a === void 0 ? void 0 : _a.top)
1382
2609
  styles['marginTop'] = Number(viewStyle.margin.top);
@@ -1386,6 +2613,9 @@ function setViewStyle(styles, props) {
1386
2613
  styles['marginLeft'] = Number(viewStyle.margin.left);
1387
2614
  if ((_d = viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.margin) === null || _d === void 0 ? void 0 : _d.right)
1388
2615
  styles['marginRight'] = Number(viewStyle.margin.right);
2616
+ const marginHorizontal = Number((_e = styles.marginLeft) !== null && _e !== void 0 ? _e : '0') + Number((_f = styles.marginRight) !== null && _f !== void 0 ? _f : '0');
2617
+ if (marginHorizontal > 0 && styles.width === '100%')
2618
+ styles.width = `calc(100% - ${marginHorizontal}px)`;
1389
2619
  if (viewStyle === null || viewStyle === void 0 ? void 0 : viewStyle.backgroundColor)
1390
2620
  styles['backgroundColor'] = viewStyle.backgroundColor;
1391
2621
  // use JSON.stringify to escape special characters in image URL
@@ -1489,7 +2719,7 @@ function setTextStyle(styles, props, options) {
1489
2719
  if ((width === null || width === void 0 ? void 0 : width.value) == FlexSizeSpecValue.WrapContent) {
1490
2720
  styles['maxWidth'] = '100%';
1491
2721
  }
1492
- if (props.type === ComponentType.Text) {
2722
+ if (props.type === ComponentType$1.Text) {
1493
2723
  const { siblings, elemIdx } = options;
1494
2724
  // To push out any subsequent components from the container,
1495
2725
  // if a prior one is long enough to occupy an entire line
@@ -1533,19 +2763,24 @@ const ActionHandler = ({ className = '', style, children, props }) => {
1533
2763
  const { recalculatedStyle, elemRef } = useRecalculateWidth({ style, props });
1534
2764
  const { message, handleWebAction, handleCustomAction, handlePredefinedAction } = useMessageContext();
1535
2765
  const onClick = (e) => {
1536
- var _a, _b, _c, _d, _e;
2766
+ var _a, _b, _c, _d, _e, _f, _g;
1537
2767
  if (((_a = props === null || props === void 0 ? void 0 : props.action) === null || _a === void 0 ? void 0 : _a.type) === 'web') {
1538
2768
  if (handleWebAction) {
1539
- handleWebAction === null || handleWebAction === void 0 ? void 0 : handleWebAction(e, props.action, message);
2769
+ handleWebAction(e, props.action, message);
1540
2770
  }
1541
2771
  else {
1542
2772
  (_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();
1543
2773
  }
1544
2774
  }
1545
2775
  if (((_d = props === null || props === void 0 ? void 0 : props.action) === null || _d === void 0 ? void 0 : _d.type) === 'custom') {
1546
- handleCustomAction === null || handleCustomAction === void 0 ? void 0 : handleCustomAction(e, props.action, message);
2776
+ if (handleCustomAction) {
2777
+ handleCustomAction(e, props.action, message);
2778
+ }
2779
+ else {
2780
+ (_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();
2781
+ }
1547
2782
  }
1548
- if (((_e = props === null || props === void 0 ? void 0 : props.action) === null || _e === void 0 ? void 0 : _e.type) === 'uikit') {
2783
+ if (((_g = props === null || props === void 0 ? void 0 : props.action) === null || _g === void 0 ? void 0 : _g.type) === 'uikit') {
1549
2784
  handlePredefinedAction === null || handlePredefinedAction === void 0 ? void 0 : handlePredefinedAction(e, props.action, message);
1550
2785
  }
1551
2786
  };
@@ -1582,15 +2817,21 @@ function isFixedOrFill(view) {
1582
2817
  (widthType === 'flex' && ((_d = view === null || view === void 0 ? void 0 : view.width) === null || _d === void 0 ? void 0 : _d.value) === FlexSizeSpecValue.FillParent);
1583
2818
  return isFixedDiamension || isFill;
1584
2819
  }
2820
+ function convertNewlinesToBr(text) {
2821
+ return text.split('\n').map((line, index) => (React__default.createElement(React__default.Fragment, { key: index },
2822
+ line,
2823
+ React__default.createElement("br", null))));
2824
+ }
1585
2825
  function renderText(view) {
1586
2826
  const { text, maxTextLines } = view;
1587
2827
  const isToBeWrapped = isFixedOrFill(view);
1588
2828
  const isMultiLine = maxTextLines != null && maxTextLines > 0;
2829
+ const convertedText = convertNewlinesToBr(text);
1589
2830
  if (isMultiLine || isToBeWrapped) {
1590
2831
  const wrapperStyling = Object.assign(Object.assign({}, ((isMultiLine || isToBeWrapped) && { maxWidth: '100%' })), (isToBeWrapped && { maxHeight: '100%', overflow: 'hidden' }));
1591
- return (React__default.createElement("div", { style: wrapperStyling }, isMultiLine ? React__default.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, text) : text));
2832
+ return (React__default.createElement("div", { style: wrapperStyling }, isMultiLine ? React__default.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, convertedText) : convertedText));
1592
2833
  }
1593
- return text;
2834
+ return isMultiLine ? React__default.createElement("div", { style: webkitLineClampStyles(maxTextLines) }, convertedText) : convertedText;
1594
2835
  }
1595
2836
  const renderer = createRenderer({
1596
2837
  views: {
@@ -1607,13 +2848,16 @@ const renderer = createRenderer({
1607
2848
  React__default.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 })));
1608
2849
  },
1609
2850
  textButton(props) {
1610
- return (React__default.createElement(ActionHandler, { className: "sb-message-template__text-button", elementId: props.elementId, style: props.parsedProperties, props: props }, renderText(props)));
2851
+ return (React__default.createElement(ActionHandler, { className: "sb-message-template__text-button", elementId: props.elementId, style: props.parsedProperties, props: props }, renderText(Object.assign({ maxTextLines: 1 }, props))));
1611
2852
  },
1612
2853
  imageButton(props) {
1613
2854
  var _a;
1614
2855
  return (React__default.createElement(ActionHandler, { className: "sb-message-template__image-container sb-message-template__image-button", elementId: props.elementId, style: props.parsedProperties, props: props },
1615
2856
  React__default.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 })));
1616
2857
  },
2858
+ carouselView(props) {
2859
+ return React__default.createElement(Carousel, { gap: props.spacing }, props.children);
2860
+ },
1617
2861
  },
1618
2862
  });
1619
2863
  const parser = createParser({
@@ -1653,18 +2897,21 @@ const parser = createParser({
1653
2897
  setImageAspectRatio(styles, props);
1654
2898
  return styles;
1655
2899
  },
2900
+ mapCarouselProps(props, options) {
2901
+ const styles = getDefaultStyles();
2902
+ setViewProps(styles, props, options);
2903
+ return styles;
2904
+ },
1656
2905
  });
1657
2906
  createMessageTemplate({
1658
2907
  renderer,
1659
2908
  parser,
1660
- Container: ({ children }) => {
1661
- return (React__default.createElement("div", { className: "sb-message-template__parent", style: {
2909
+ Container: ({ children, className }) => {
2910
+ return (React__default.createElement("div", { className: `sb-message-template__parent ${className}`, style: {
1662
2911
  display: 'flex',
1663
2912
  flexDirection: 'column',
1664
2913
  maxWidth: 400,
1665
- backgroundColor: '#cecece',
1666
2914
  marginBottom: 24,
1667
- borderRadius: '8px',
1668
2915
  } }, children));
1669
2916
  },
1670
2917
  });
@@ -1673,17 +2920,17 @@ var CustomTemplate = createMessageTemplate({
1673
2920
  parser: parser,
1674
2921
  renderer: renderer,
1675
2922
  Container: function (_a) {
1676
- var children = _a.children;
2923
+ var children = _a.children, className = _a.className;
1677
2924
  return (React__default.createElement("div", { className: [
1678
- 'sb-message-template__parent',
2925
+ "sb-message-template__parent ".concat(className),
1679
2926
  'sendbird-message-template__root',
1680
2927
  ].join(' ') }, children));
1681
2928
  },
1682
2929
  }).MessageTemplate;
1683
2930
  function MessageTemplate(_a) {
1684
- var templateItems = _a.templateItems;
1685
- return React__default.createElement(CustomTemplate, { templateItems: templateItems });
2931
+ var templateItems = _a.templateItems, templateVersion = _a.templateVersion;
2932
+ return React__default.createElement(CustomTemplate, { templateItems: templateItems, templateVersion: templateVersion });
1686
2933
  }
1687
2934
 
1688
- export { MessageProvider as M, MessageTemplate as a };
1689
- //# sourceMappingURL=bundle-BH5rbsxO.js.map
2935
+ export { CompositeComponentType$1 as C, MessageProvider as M, MessageTemplate as a };
2936
+ //# sourceMappingURL=bundle-vcCWiyPL.js.map