@amityco/react-native-social-uikit 4.0.1-fd53cf63.0 → 4.0.2-232eeace.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/lib/commonjs/core/hooks/useUpload.js +6 -7
  2. package/lib/commonjs/core/hooks/useUpload.js.map +1 -1
  3. package/lib/commonjs/core/legacy/file.js +4 -19
  4. package/lib/commonjs/core/legacy/file.js.map +1 -1
  5. package/lib/commonjs/core/providers/AmityUIKitProvider.js +10 -3
  6. package/lib/commonjs/core/providers/AmityUIKitProvider.js.map +1 -1
  7. package/lib/commonjs/core/providers/AuthProvider.js +6 -2
  8. package/lib/commonjs/core/providers/AuthProvider.js.map +1 -1
  9. package/lib/commonjs/core/utils/fileUpload.js +59 -0
  10. package/lib/commonjs/core/utils/fileUpload.js.map +1 -0
  11. package/lib/commonjs/social/components/PollContent/PollOption.js +12 -12
  12. package/lib/commonjs/social/components/PollContent/PollOption.js.map +1 -1
  13. package/lib/commonjs/social/components/PostMenu/index.js +9 -2
  14. package/lib/commonjs/social/components/PostMenu/index.js.map +1 -1
  15. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js +20 -13
  16. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  17. package/lib/commonjs/social/components/Social/CommentListItem/styles.js +3 -2
  18. package/lib/commonjs/social/components/Social/CommentListItem/styles.js.map +1 -1
  19. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js +8 -4
  20. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  21. package/lib/commonjs/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +3 -1
  22. package/lib/commonjs/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
  23. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +8 -4
  24. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  25. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js +11 -5
  26. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  27. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
  28. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
  29. package/lib/commonjs/social/features/livestream/Player/Player.js +9 -6
  30. package/lib/commonjs/social/features/livestream/Player/Player.js.map +1 -1
  31. package/lib/commonjs/social/features/post/components/Content/Content.js +1 -5
  32. package/lib/commonjs/social/features/post/components/Content/Content.js.map +1 -1
  33. package/lib/commonjs/social/features/story/Draft/Draft.js +2 -5
  34. package/lib/commonjs/social/features/story/Draft/Draft.js.map +1 -1
  35. package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js +1 -1
  36. package/lib/commonjs/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
  37. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js +22 -18
  38. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  39. package/lib/commonjs/social/features/user/Profile/components/Header/styles.js +2 -0
  40. package/lib/commonjs/social/features/user/Profile/components/Header/styles.js.map +1 -1
  41. package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js +15 -4
  42. package/lib/commonjs/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
  43. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js +9 -2
  44. package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  45. package/lib/commonjs/social/screens/SocialHomePage/index.js +13 -3
  46. package/lib/commonjs/social/screens/SocialHomePage/index.js.map +1 -1
  47. package/lib/module/core/hooks/useUpload.js +7 -8
  48. package/lib/module/core/hooks/useUpload.js.map +1 -1
  49. package/lib/module/core/legacy/file.js +4 -19
  50. package/lib/module/core/legacy/file.js.map +1 -1
  51. package/lib/module/core/providers/AmityUIKitProvider.js +10 -3
  52. package/lib/module/core/providers/AmityUIKitProvider.js.map +1 -1
  53. package/lib/module/core/providers/AuthProvider.js +6 -2
  54. package/lib/module/core/providers/AuthProvider.js.map +1 -1
  55. package/lib/module/core/utils/fileUpload.js +54 -0
  56. package/lib/module/core/utils/fileUpload.js.map +1 -0
  57. package/lib/module/social/components/PollContent/PollOption.js +12 -12
  58. package/lib/module/social/components/PollContent/PollOption.js.map +1 -1
  59. package/lib/module/social/components/PostMenu/index.js +10 -3
  60. package/lib/module/social/components/PostMenu/index.js.map +1 -1
  61. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js +20 -13
  62. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  63. package/lib/module/social/components/Social/CommentListItem/styles.js +3 -2
  64. package/lib/module/social/components/Social/CommentListItem/styles.js.map +1 -1
  65. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js +8 -4
  66. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  67. package/lib/module/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.js +3 -1
  68. package/lib/module/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.js.map +1 -1
  69. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +8 -4
  70. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  71. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js +11 -5
  72. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  73. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js +8 -0
  74. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/styles.js.map +1 -1
  75. package/lib/module/social/features/livestream/Player/Player.js +9 -6
  76. package/lib/module/social/features/livestream/Player/Player.js.map +1 -1
  77. package/lib/module/social/features/post/components/Content/Content.js +1 -5
  78. package/lib/module/social/features/post/components/Content/Content.js.map +1 -1
  79. package/lib/module/social/features/story/Draft/Draft.js +2 -5
  80. package/lib/module/social/features/story/Draft/Draft.js.map +1 -1
  81. package/lib/module/social/features/story/View/components/AmityViewStoryItem.js +1 -1
  82. package/lib/module/social/features/story/View/components/AmityViewStoryItem.js.map +1 -1
  83. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js +22 -18
  84. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  85. package/lib/module/social/features/user/Profile/components/Header/styles.js +2 -0
  86. package/lib/module/social/features/user/Profile/components/Header/styles.js.map +1 -1
  87. package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js +16 -4
  88. package/lib/module/social/features/user/Profile/elements/Menu/hooks/useMenu.js.map +1 -1
  89. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js +10 -3
  90. package/lib/module/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
  91. package/lib/module/social/screens/SocialHomePage/index.js +14 -4
  92. package/lib/module/social/screens/SocialHomePage/index.js.map +1 -1
  93. package/lib/typescript/core/hooks/useUpload.d.ts.map +1 -1
  94. package/lib/typescript/core/legacy/file.d.ts.map +1 -1
  95. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts +5 -1
  96. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts.map +1 -1
  97. package/lib/typescript/core/providers/AuthProvider.d.ts.map +1 -1
  98. package/lib/typescript/core/utils/fileUpload.d.ts +39 -0
  99. package/lib/typescript/core/utils/fileUpload.d.ts.map +1 -0
  100. package/lib/typescript/social/components/PollContent/PollOption.d.ts.map +1 -1
  101. package/lib/typescript/social/components/PostMenu/index.d.ts.map +1 -1
  102. package/lib/typescript/social/components/Social/CommentListItem/CommentListItem.d.ts.map +1 -1
  103. package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts +2 -1
  104. package/lib/typescript/social/components/Social/CommentListItem/styles.d.ts.map +1 -1
  105. package/lib/typescript/social/components/legacy/Social/ReplyCommentList/index.d.ts.map +1 -1
  106. package/lib/typescript/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.d.ts.map +1 -1
  107. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/index.d.ts.map +1 -1
  108. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts +8 -0
  109. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/styles.d.ts.map +1 -1
  110. package/lib/typescript/social/features/livestream/Player/Player.d.ts.map +1 -1
  111. package/lib/typescript/social/features/post/components/Content/Content.d.ts.map +1 -1
  112. package/lib/typescript/social/features/story/Draft/Draft.d.ts.map +1 -1
  113. package/lib/typescript/social/features/story/View/components/AmityViewStoryItem.d.ts.map +1 -1
  114. package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts +2 -0
  115. package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map +1 -1
  116. package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts +2 -0
  117. package/lib/typescript/social/features/user/Profile/components/Header/styles.d.ts.map +1 -1
  118. package/lib/typescript/social/features/user/Profile/elements/Menu/hooks/useMenu.d.ts.map +1 -1
  119. package/lib/typescript/social/screens/CommunityProfile/components/Header/Header.d.ts.map +1 -1
  120. package/lib/typescript/social/screens/SocialHomePage/index.d.ts.map +1 -1
  121. package/package.json +1 -1
  122. package/src/core/hooks/useUpload.ts +6 -8
  123. package/src/core/legacy/file.tsx +16 -22
  124. package/src/core/providers/AmityUIKitProvider.tsx +26 -2
  125. package/src/core/providers/AuthProvider.tsx +3 -4
  126. package/src/core/utils/fileUpload.ts +60 -0
  127. package/src/social/components/PollContent/PollOption.tsx +13 -19
  128. package/src/social/components/PostMenu/index.tsx +6 -3
  129. package/src/social/components/Social/CommentListItem/CommentListItem.tsx +63 -57
  130. package/src/social/components/Social/CommentListItem/styles.ts +2 -1
  131. package/src/social/components/legacy/Social/ReplyCommentList/index.tsx +14 -11
  132. package/src/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.tsx +7 -1
  133. package/src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx +14 -14
  134. package/src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx +15 -11
  135. package/src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts +8 -0
  136. package/src/social/features/livestream/Player/Player.tsx +10 -7
  137. package/src/social/features/post/components/Content/Content.tsx +4 -7
  138. package/src/social/features/story/Draft/Draft.tsx +9 -5
  139. package/src/social/features/story/View/components/AmityViewStoryItem.tsx +1 -0
  140. package/src/social/features/user/Profile/components/Header/hooks/useHeader.ts +22 -18
  141. package/src/social/features/user/Profile/components/Header/styles.ts +2 -0
  142. package/src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts +16 -4
  143. package/src/social/screens/CommunityProfile/components/Header/Header.tsx +8 -2
  144. package/src/social/screens/SocialHomePage/index.tsx +26 -11
@@ -1 +1 @@
1
- {"version":3,"file":"PollOption.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PollContent/PollOption.tsx"],"names":[],"mappings":"AAYA,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC;IACjC,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,GACtB,EAAE,gBAAgB,2CA4HlB"}
1
+ {"version":3,"file":"PollOption.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PollContent/PollOption.tsx"],"names":[],"mappings":"AAaA,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC;IACjC,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,UAAU,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,GACtB,EAAE,gBAAgB,2CAqHlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PostMenu/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAYlD,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;CACvB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,aAAa,2CA2MpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PostMenu/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAYlD,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;CACvB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,aAAa,2CA8MpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommentListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/Social/CommentListItem/CommentListItem.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA8B9E,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,GAAI,wGAQtB,YAAY,4CAucd,CAAC;AACF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"CommentListItem.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/Social/CommentListItem/CommentListItem.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA8B9E,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,GAAI,wGAQtB,YAAY,4CA6cd,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -63,12 +63,13 @@ export declare const useStyles: () => {
63
63
  paddingHorizontal: number;
64
64
  marginTop: number;
65
65
  flexDirection: "row";
66
- justifyContent: "center";
67
66
  alignItems: "center";
68
67
  alignSelf: "flex-start";
69
68
  };
70
69
  viewMoreText: {
70
+ fontWeight: "600";
71
71
  color: string;
72
+ paddingHorizontal: number;
72
73
  };
73
74
  commentText: {
74
75
  fontSize: number;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/Social/CommentListItem/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKrB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/Social/CommentListItem/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/components/legacy/Social/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAiBpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAY7D,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,aAAa,EACb,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,iBAAiB,2CAyUnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/components/legacy/Social/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAiBpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAY7D,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,aAAa,EACb,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,iBAAiB,2CA4UnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommunityCreatePostButton.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,WAAW,EAAa,MAAM,EAAE,MAAM,aAAa,CAAC;AAG7D,KAAK,8BAA8B,GAAG,qBAAqB,GAAG;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,iBAAS,yBAAyB,CAAC,EACjC,MAA4B,EAC5B,WAA2C,EAC3C,GAAG,KAAK,EACT,EAAE,8BAA8B,2CAoBhC;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"CommunityCreatePostButton.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/CommunityCreatePostButton/CommunityCreatePostButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,WAAW,EAAa,MAAM,EAAE,MAAM,aAAa,CAAC;AAG7D,KAAK,8BAA8B,GAAG,qBAAqB,GAAG;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,iBAAS,yBAAyB,CAAC,EACjC,MAA4B,EAC5B,WAA2C,EAC3C,GAAG,KAAK,EACT,EAAE,8BAA8B,2CA0BhC;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAiBlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAYhE,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;sGAME,iBAAiB;AA4UpB,wBAAsC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAiBlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAYhE,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,aAAa,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;sGAME,iBAAiB;AAgVpB,wBAAsC"}
@@ -1,4 +1,12 @@
1
1
  export declare const useStyles: () => {
2
+ handleBar: {
3
+ alignSelf: "center";
4
+ width: number;
5
+ backgroundColor: string;
6
+ height: number;
7
+ marginVertical: number;
8
+ borderRadius: number;
9
+ };
2
10
  commentWrap: {
3
11
  backgroundColor: string;
4
12
  paddingHorizontal: number;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKrB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/comment/components/PostComment/ReplyCommentList/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6KrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Player.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/livestream/Player/Player.tsx"],"names":[],"mappings":"AAgCA,iBAAS,yBAAyB,4CAqRjC;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"Player.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/livestream/Player/Player.tsx"],"names":[],"mappings":"AAgCA,iBAAS,yBAAyB,4CAwRjC;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/post/components/Content/Content.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAA0B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAQnE,OAAO,EACL,iBAAiB,EACjB,kCAAkC,EACnC,MAAM,kDAAkD,CAAC;AAU1D,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B,CAAC,EAAE,kCAAkC,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AACF,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;;AAiRD,wBAA+C"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/post/components/Content/Content.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAA0B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAQnE,OAAO,EACL,iBAAiB,EACjB,kCAAkC,EACnC,MAAM,kDAAkD,CAAC;AAS1D,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B,CAAC,EAAE,kCAAkC,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AACF,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;;AA+QD,wBAA+C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Draft.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/story/Draft/Draft.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;;AA2PtD,wBAAyC"}
1
+ {"version":3,"file":"Draft.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/story/Draft/Draft.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;;AA+PtD,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AmityViewStoryItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/story/View/components/AmityViewStoryItem.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAgBjE,UAAU,mBAAmB;IAC3B,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,4BAA4B,EAAE,OAAO,CAAC;IACtC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,UAAU,UAAW,SAAQ,KAAK,CAAC,KAAK;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;;AA+lBD,wBAAwC"}
1
+ {"version":3,"file":"AmityViewStoryItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/story/View/components/AmityViewStoryItem.tsx"],"names":[],"mappings":"AAuCA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAgBjE,UAAU,mBAAmB;IAC3B,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,4BAA4B,EAAE,OAAO,CAAC;IACtC,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,UAAU,UAAW,SAAQ,KAAK,CAAC,KAAK;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;;AAgmBD,wBAAwC"}
@@ -35,6 +35,8 @@ export declare function useHeader(user?: Amity.User): {
35
35
  };
36
36
  hiddenText: {
37
37
  position: "absolute";
38
+ left: number;
39
+ right: number;
38
40
  opacity: number;
39
41
  };
40
42
  seeMore: {
@@ -1 +1 @@
1
- {"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/components/Header/hooks/useHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0EhB,eAAe;;aAVjC,MAAM;cACL,MAAM;;;kCA4BuB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDzD"}
1
+ {"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/components/Header/hooks/useHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0EhB,eAAe;;aAVjC,MAAM;cACL,MAAM;;;kCA4BuB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDzD"}
@@ -39,6 +39,8 @@ export declare const useStyles: (params?: StyleParams) => {
39
39
  };
40
40
  hiddenText: {
41
41
  position: "absolute";
42
+ left: number;
43
+ right: number;
42
44
  opacity: number;
43
45
  };
44
46
  seeMore: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/user/Profile/components/Header/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AAEjF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,SAAQ,WAIP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEF,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/user/Profile/components/Header/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AAEjF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,SAAQ,WAIP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts"],"names":[],"mappings":"AAoBA,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAwH7D"}
1
+ {"version":3,"file":"useMenu.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/social/features/user/Profile/elements/Menu/hooks/useMenu.ts"],"names":[],"mappings":"AAqBA,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAmI7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA0BxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,kCAAkC,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;AAiKF,wBAAmD"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA2BxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,kCAAkC,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;AAsKF,wBAAmD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/SocialHomePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAkI/B,wBAA+C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/screens/SocialHomePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAiJ/B,wBAA+C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/react-native-social-uikit",
3
- "version": "4.0.1-fd53cf63.0",
3
+ "version": "4.0.2-232eeace.0",
4
4
  "description": "Social UIKit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,7 +1,8 @@
1
1
  import { FileRepository } from '@amityco/ts-sdk-react-native';
2
- import { Alert, Platform } from 'react-native';
2
+ import { Alert } from 'react-native';
3
3
  import { useMutation } from '@tanstack/react-query';
4
4
  import { ERROR_CODE } from '../constants';
5
+ import { appendFileToFormData } from '../utils/fileUpload';
5
6
 
6
7
  type UploadImageResponse = Awaited<
7
8
  ReturnType<typeof FileRepository.uploadImage>
@@ -39,14 +40,11 @@ export function useUpload() {
39
40
  const formData = new FormData();
40
41
  const parts = file.split('/');
41
42
  const fileName = parts[parts.length - 1];
42
- const fileType = Platform.OS === 'ios' ? 'image/jpeg' : 'image/jpg';
43
- const uri = Platform.OS === 'android' ? file : file.replace('file://', '');
44
43
 
45
- formData.append('files', {
46
- name: fileName,
47
- type: fileType,
48
- uri: uri,
49
- });
44
+ // Attach the file as a React-Native { uri, name, type } multipart part.
45
+ // This works on both the Old and New (Bridgeless) Architecture and is what
46
+ // the SDK's uploadImage expects (it reads files[0].name for preferredFilename).
47
+ appendFileToFormData(formData, 'files', file, fileName, 'image/jpeg');
50
48
 
51
49
  return await mutateAsync(
52
50
  {
@@ -1,6 +1,7 @@
1
1
  import { FileRepository, ContentFeedType } from '@amityco/ts-sdk-react-native';
2
2
 
3
3
  import { Platform } from 'react-native';
4
+ import { appendFileToFormData } from '../utils/fileUpload';
4
5
 
5
6
  export async function uploadFile(
6
7
  filePath: string,
@@ -11,14 +12,8 @@ export async function uploadFile(
11
12
  const parts = filePath.split('/');
12
13
  const fileName = parts[parts.length - 1];
13
14
  const fileType = Platform.OS === 'ios' ? 'image/jpeg' : 'image/jpg';
14
- const uri =
15
- Platform.OS === 'android' ? filePath : filePath.replace('file://', '');
16
15
 
17
- formData.append('files', {
18
- name: fileName,
19
- type: fileType,
20
- uri: uri,
21
- });
16
+ await appendFileToFormData(formData, 'files', filePath, fileName, fileType);
22
17
 
23
18
  const { data: file } = await FileRepository.uploadFile(
24
19
  formData,
@@ -43,14 +38,14 @@ export async function uploadImageFile(
43
38
  const parts = filePath.split('/');
44
39
  const fileName = parts[parts.length - 1];
45
40
  const fileType = Platform.OS === 'ios' ? 'image/jpeg' : 'image/jpg';
46
- const uri =
47
- Platform.OS === 'android' ? filePath : filePath.replace('file://', '');
48
41
 
49
- formData.append('files', {
50
- name: fileName,
51
- type: fileType,
52
- uri: uri,
53
- });
42
+ await appendFileToFormData(
43
+ formData,
44
+ 'files',
45
+ filePath,
46
+ fileName,
47
+ fileType
48
+ );
54
49
 
55
50
  const { data: file } = await FileRepository.uploadImage(
56
51
  formData,
@@ -94,15 +89,14 @@ export async function uploadVideoFile(
94
89
  const formData = new FormData();
95
90
  const parts = filePath.split('/');
96
91
  const fileName = parts[parts.length - 1];
97
- // const fileType = Platform.OS === 'ios' ? 'image/jpeg' : 'image/jpg';
98
- const uri =
99
- Platform.OS === 'android' ? filePath : filePath.replace('file://', '');
100
92
 
101
- formData.append('files', {
102
- name: fileName,
103
- type: 'video/*',
104
- uri: uri,
105
- });
93
+ await appendFileToFormData(
94
+ formData,
95
+ 'files',
96
+ filePath,
97
+ fileName,
98
+ 'video/mp4'
99
+ );
106
100
 
107
101
  const { data: file } = await FileRepository.uploadVideo(
108
102
  formData,
@@ -32,6 +32,10 @@ export interface IAmityUIkitProvider {
32
32
  configs?: IConfigRaw;
33
33
  behaviour?: IBehaviour;
34
34
  fcmToken?: string;
35
+ /** When false, hides the community create-post FAB and create-community buttons. Default: true */
36
+ socialCommunityCreationButtonVisible?: boolean;
37
+ /** When true, hides the Explore tab on the Social Home page. Default: false */
38
+ hideExplore?: boolean;
35
39
  }
36
40
 
37
41
  export interface CustomColors {
@@ -76,6 +80,8 @@ export default function AmityUiKitProvider({
76
80
  configs,
77
81
  behaviour,
78
82
  fcmToken,
83
+ socialCommunityCreationButtonVisible = true,
84
+ hideExplore = false,
79
85
  }: IAmityUIkitProvider) {
80
86
  const colorScheme = useColorScheme();
81
87
  const SHADE_PERCENTAGES = [0.25, 0.4, 0.45, 0.6];
@@ -102,7 +108,25 @@ export default function AmityUiKitProvider({
102
108
  return shades;
103
109
  };
104
110
  const isValidConfig = useValidateConfig(configs);
105
- const configData = isValidConfig ? configs : (fallBackConfig as IConfigRaw);
111
+ const baseConfigData = isValidConfig
112
+ ? configs
113
+ : (fallBackConfig as IConfigRaw);
114
+ const extraExcludes: string[] = [
115
+ ...(!socialCommunityCreationButtonVisible
116
+ ? [
117
+ 'community_profile_page/*/community_create_post_button',
118
+ 'social_home_page/empty_newsfeed/create_community_button',
119
+ ]
120
+ : []),
121
+ ...(hideExplore ? ['social_home_page/*/explore_button'] : []),
122
+ ];
123
+ const configData: IConfigRaw =
124
+ extraExcludes.length === 0
125
+ ? baseConfigData
126
+ : {
127
+ ...baseConfigData,
128
+ excludes: [...(baseConfigData.excludes ?? []), ...extraExcludes],
129
+ };
106
130
 
107
131
  const isDarkTheme =
108
132
  configData?.preferred_theme === 'dark' ||
@@ -157,7 +181,7 @@ export default function AmityUiKitProvider({
157
181
  <Provider store={store} context={AmityUIKitReduxContext}>
158
182
  <AuthContextProvider
159
183
  userId={userId}
160
- displayName={displayName || userId}
184
+ displayName={displayName || undefined}
161
185
  apiKey={apiKey}
162
186
  apiRegion={apiRegion}
163
187
  apiEndpoint={apiEndpoint}
@@ -86,10 +86,9 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({
86
86
  const handleConnect = useCallback(async () => {
87
87
  try {
88
88
  if (userId) {
89
- let loginParam: Amity.ConnectClientParams = {
90
- userId: userId,
91
- displayName: displayName,
92
- };
89
+ // Spec: omit displayName entirely when blank — do not substitute userId
90
+ let loginParam: Amity.ConnectClientParams = { userId: userId };
91
+ if (displayName) loginParam = { ...loginParam, displayName };
93
92
  if (authToken?.length > 0) {
94
93
  loginParam = { ...loginParam, authToken: authToken };
95
94
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * fileUpload.ts
3
+ *
4
+ * Helper for attaching a local file to a FormData for upload to the Amity SDK.
5
+ *
6
+ * Why the `{ uri, name, type }` object (and NOT a Blob)
7
+ * -----------------------------------------------------
8
+ * React Native's `FormData.getParts()` only turns a value into a multipart
9
+ * *file* part when that value is an object carrying a `uri`:
10
+ *
11
+ * • `name` → the `filename` in the `Content-Disposition` header
12
+ * • `type` → the part's `Content-Type`
13
+ * • `uri` → the local path the native networking layer streams bytes from
14
+ *
15
+ * This is the canonical React Native upload pattern and works on BOTH the Old
16
+ * and the New (Bridgeless / JSI) Architecture — RN 0.83 did not change this JS
17
+ * API. The Amity SDK's `uploadImage` is built around it too: it calls
18
+ * `formData.getAll('files')` and reads `files[0].name` to set
19
+ * `preferredFilename`.
20
+ *
21
+ * Do NOT append a Blob here. A Blob produced by `fetch(uri).blob()` has:
22
+ * • no `uri` → RN attaches no file body, so the request carries no
23
+ * bytes and the server responds `400 "No files
24
+ * uploaded."`
25
+ * • no top-level `name` → `files[0].name` is `null`, so `preferredFilename`
26
+ * is sent as `null`.
27
+ * That combination is exactly the failure seen in PDT-3461.
28
+ */
29
+
30
+ import { Platform } from 'react-native';
31
+
32
+ /**
33
+ * Append a local file to `formData` as a React-Native multipart file part.
34
+ *
35
+ * @param formData The FormData instance to mutate.
36
+ * @param fieldName The multipart field name (e.g. `'files'`).
37
+ * @param fileUri Local file URI (`file://…` or `content://…`).
38
+ * @param fileName The filename sent in the Content-Disposition header.
39
+ * @param mimeType MIME type for the part (e.g. `'image/jpeg'`).
40
+ */
41
+ export function appendFileToFormData(
42
+ formData: FormData,
43
+ fieldName: string,
44
+ fileUri: string,
45
+ fileName: string,
46
+ mimeType: string
47
+ ): void {
48
+ // Android keeps the URI as-is (`content://` / `file://` are both streamable);
49
+ // iOS expects the `file://` scheme stripped to a bare path.
50
+ const uri =
51
+ Platform.OS === 'android' ? fileUri : fileUri.replace('file://', '');
52
+
53
+ // RN's FormData.append is typed for the legacy `{ uri, name, type }` object
54
+ // but its TS types don't expose that overload, so we cast to `any`.
55
+ formData.append(fieldName, {
56
+ uri,
57
+ name: fileName,
58
+ type: mimeType,
59
+ } as any);
60
+ }
@@ -9,6 +9,7 @@ import Button, { BUTTON_SIZE } from '../Button/Button';
9
9
  import { useNavigation } from '@react-navigation/native';
10
10
  import { NativeStackNavigationProp } from '@react-navigation/native-stack';
11
11
  import { RootStackParamList } from '../../../core/routes/RouteParamList';
12
+ import { useInteractionBehavior } from '../../hooks/useInteractionBehavior';
12
13
 
13
14
  type PollOptionsProps = {
14
15
  post?: Amity.Post<any>;
@@ -42,10 +43,10 @@ export function PollOptions({
42
43
  useNavigation<NativeStackNavigationProp<RootStackParamList>>();
43
44
 
44
45
  const { styles } = useStyles();
46
+ const { handleInteraction } = useInteractionBehavior();
45
47
  const [selectedOption, setSelectedOption] = useState<Amity.PollAnswer[]>([]);
46
48
 
47
49
  const btnDisabled = selectedOption.length === 0;
48
- const optionDisabled = !!disabledPoll;
49
50
 
50
51
  return (
51
52
  <View>
@@ -60,7 +61,6 @@ export function PollOptions({
60
61
  <Radio.Group<Amity.PollAnswer>
61
62
  value={selectedOption[0]}
62
63
  style={styles.optionGroup}
63
- disabled={optionDisabled}
64
64
  onChange={(value) => setSelectedOption([value])}
65
65
  select={(value, option) => value.id === option.id}
66
66
  >
@@ -79,11 +79,7 @@ export function PollOptions({
79
79
  ]}
80
80
  >
81
81
  <Radio.Label style={styles.optionLabel}>
82
- <Typography.BodyBold
83
- style={[optionDisabled && styles.optionLabelDisabled]}
84
- >
85
- {option.data}
86
- </Typography.BodyBold>
82
+ <Typography.BodyBold>{option.data}</Typography.BodyBold>
87
83
  </Radio.Label>
88
84
  <Radio.Icon />
89
85
  </Radio.Option>
@@ -93,7 +89,6 @@ export function PollOptions({
93
89
  <CheckBox.Group<Amity.PollAnswer>
94
90
  value={selectedOption}
95
91
  style={styles.optionGroup}
96
- disabled={optionDisabled}
97
92
  onChange={(value) => setSelectedOption(value)}
98
93
  select={(value, option) =>
99
94
  !!value.find((item) => item.id === option.id)
@@ -115,11 +110,7 @@ export function PollOptions({
115
110
  ]}
116
111
  >
117
112
  <CheckBox.Label style={styles.optionLabel}>
118
- <Typography.BodyBold
119
- style={[optionDisabled && styles.optionLabelDisabled]}
120
- >
121
- {option.data}
122
- </Typography.BodyBold>
113
+ <Typography.BodyBold>{option.data}</Typography.BodyBold>
123
114
  </CheckBox.Label>
124
115
  <CheckBox.Icon />
125
116
  </CheckBox.Option>
@@ -144,12 +135,15 @@ export function PollOptions({
144
135
  )}
145
136
  {!isPollClosed && !isAlreadyVoted && (
146
137
  <TouchableOpacity
147
- disabled={btnDisabled || optionDisabled}
148
- style={[
149
- styles.voteBtn,
150
- (btnDisabled || optionDisabled) && styles.voteBtnDisabled,
151
- ]}
152
- onPress={() => votePoll(selectedOption.map((option) => option.id))}
138
+ disabled={btnDisabled}
139
+ style={[styles.voteBtn, btnDisabled && styles.voteBtnDisabled]}
140
+ onPress={() =>
141
+ handleInteraction({
142
+ defaultBehavior: () =>
143
+ votePoll(selectedOption.map((option) => option.id)),
144
+ isJoined: !disabledPoll,
145
+ })
146
+ }
153
147
  >
154
148
  <Typography.BodyBold style={styles.voteBtnLabel}>
155
149
  Vote
@@ -3,7 +3,7 @@ import { Alert, View } from 'react-native';
3
3
  import { getCommunityById } from '../../../core/legacy/community';
4
4
  import { useNavigation } from '@react-navigation/native';
5
5
  import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
6
- import { useFlagPost, isModerator } from '../../hooks';
6
+ import { useFlagPost, isModerator, useGlobalBehavior } from '../../hooks';
7
7
  import { deletePostById } from '../../../core/legacy/feed';
8
8
  import useAuth from '../../../core/hooks/useAuth';
9
9
  import globalFeedSlice from '../../../core/stores/slices/globalfeedSlice';
@@ -30,6 +30,7 @@ type PostMenuProps = {
30
30
 
31
31
  export function PostMenu({ pageId, componentId, post }: PostMenuProps) {
32
32
  const { showToast } = useToast();
33
+ const { handleGlobalBehavior } = useGlobalBehavior();
33
34
  const { closePoll } = useClosePoll();
34
35
  const { client } = useAuth();
35
36
  const [communityData, setCommunityData] = useState<Amity.Community>(null);
@@ -121,7 +122,7 @@ export function PostMenu({ pageId, componentId, post }: PostMenuProps) {
121
122
  iconProps={{ xml: report() }}
122
123
  onPress={() => {
123
124
  closeBottomSheet();
124
- reportPost(postId);
125
+ handleGlobalBehavior({ defaultBehavior: () => reportPost(postId) });
125
126
  }}
126
127
  />
127
128
  ),
@@ -136,7 +137,9 @@ export function PostMenu({ pageId, componentId, post }: PostMenuProps) {
136
137
  label={'Unreport post'}
137
138
  onPress={() => {
138
139
  closeBottomSheet();
139
- unreportPost(postId);
140
+ handleGlobalBehavior({
141
+ defaultBehavior: () => unreportPost(postId),
142
+ });
140
143
  }}
141
144
  />
142
145
  ),