@amityco/react-native-social-uikit 4.3.1-53502fc9.0 → 4.3.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 (192) hide show
  1. package/README.md +89 -0
  2. package/lib/commonjs/chat/hooks/index.js +11 -0
  3. package/lib/commonjs/chat/hooks/index.js.map +1 -1
  4. package/lib/commonjs/chat/hooks/usePageParams.js +21 -0
  5. package/lib/commonjs/chat/hooks/usePageParams.js.map +1 -0
  6. package/lib/commonjs/chat/pages/AmityAddGroupMemberPage/index.js +4 -4
  7. package/lib/commonjs/chat/pages/AmityAddGroupMemberPage/index.js.map +1 -1
  8. package/lib/commonjs/chat/pages/AmityArchivedChatPage/index.js +1 -0
  9. package/lib/commonjs/chat/pages/AmityArchivedChatPage/index.js.map +1 -1
  10. package/lib/commonjs/chat/pages/AmityBannedGroupMemberListPage/index.js +4 -4
  11. package/lib/commonjs/chat/pages/AmityBannedGroupMemberListPage/index.js.map +1 -1
  12. package/lib/commonjs/chat/pages/AmityChannelCreateConversationPage/index.js +1 -0
  13. package/lib/commonjs/chat/pages/AmityChannelCreateConversationPage/index.js.map +1 -1
  14. package/lib/commonjs/chat/pages/AmityChatHomePage/index.js +1 -0
  15. package/lib/commonjs/chat/pages/AmityChatHomePage/index.js.map +1 -1
  16. package/lib/commonjs/chat/pages/AmityChatPage/index.js +5 -4
  17. package/lib/commonjs/chat/pages/AmityChatPage/index.js.map +1 -1
  18. package/lib/commonjs/chat/pages/AmityCreateGroupChatPage/index.js +4 -5
  19. package/lib/commonjs/chat/pages/AmityCreateGroupChatPage/index.js.map +1 -1
  20. package/lib/commonjs/chat/pages/AmityEditGroupMemberPermissionsPage/index.js +4 -5
  21. package/lib/commonjs/chat/pages/AmityEditGroupMemberPermissionsPage/index.js.map +1 -1
  22. package/lib/commonjs/chat/pages/AmityEditGroupNotificationPage/index.js +4 -9
  23. package/lib/commonjs/chat/pages/AmityEditGroupNotificationPage/index.js.map +1 -1
  24. package/lib/commonjs/chat/pages/AmityEditGroupProfilePage/index.js +4 -5
  25. package/lib/commonjs/chat/pages/AmityEditGroupProfilePage/index.js.map +1 -1
  26. package/lib/commonjs/chat/pages/AmityGroupChatPage/index.js +4 -4
  27. package/lib/commonjs/chat/pages/AmityGroupChatPage/index.js.map +1 -1
  28. package/lib/commonjs/chat/pages/AmityGroupMemberListPage/index.js +4 -4
  29. package/lib/commonjs/chat/pages/AmityGroupMemberListPage/index.js.map +1 -1
  30. package/lib/commonjs/chat/pages/AmityGroupNotificationPreferencePage/index.js +4 -9
  31. package/lib/commonjs/chat/pages/AmityGroupNotificationPreferencePage/index.js.map +1 -1
  32. package/lib/commonjs/chat/pages/AmityGroupSettingPage/index.js +4 -5
  33. package/lib/commonjs/chat/pages/AmityGroupSettingPage/index.js.map +1 -1
  34. package/lib/commonjs/chat/pages/AmitySearchChannelPage/index.js +1 -0
  35. package/lib/commonjs/chat/pages/AmitySearchChannelPage/index.js.map +1 -1
  36. package/lib/commonjs/chat/pages/AmitySelectGroupMemberPage/index.js +4 -5
  37. package/lib/commonjs/chat/pages/AmitySelectGroupMemberPage/index.js.map +1 -1
  38. package/lib/commonjs/chat/pages/index.js +119 -0
  39. package/lib/commonjs/chat/pages/index.js.map +1 -0
  40. package/lib/commonjs/core/hooks/useUpload.js +3 -4
  41. package/lib/commonjs/core/hooks/useUpload.js.map +1 -1
  42. package/lib/commonjs/core/localization/LocaleProvider.js +17 -3
  43. package/lib/commonjs/core/localization/LocaleProvider.js.map +1 -1
  44. package/lib/commonjs/core/localization/defaultLocaleMap.js +2 -11
  45. package/lib/commonjs/core/localization/defaultLocaleMap.js.map +1 -1
  46. package/lib/commonjs/core/localization/index.js +0 -7
  47. package/lib/commonjs/core/localization/index.js.map +1 -1
  48. package/lib/commonjs/core/providers/AmityUIKitProvider.js +7 -2
  49. package/lib/commonjs/core/providers/AmityUIKitProvider.js.map +1 -1
  50. package/lib/commonjs/core/routes/AmityPageRenderer.js +36 -1
  51. package/lib/commonjs/core/routes/AmityPageRenderer.js.map +1 -1
  52. package/lib/commonjs/index.js +116 -0
  53. package/lib/commonjs/index.js.map +1 -1
  54. package/lib/module/chat/hooks/index.js +1 -0
  55. package/lib/module/chat/hooks/index.js.map +1 -1
  56. package/lib/module/chat/hooks/usePageParams.js +15 -0
  57. package/lib/module/chat/hooks/usePageParams.js.map +1 -0
  58. package/lib/module/chat/pages/AmityAddGroupMemberPage/index.js +5 -5
  59. package/lib/module/chat/pages/AmityAddGroupMemberPage/index.js.map +1 -1
  60. package/lib/module/chat/pages/AmityArchivedChatPage/index.js +1 -0
  61. package/lib/module/chat/pages/AmityArchivedChatPage/index.js.map +1 -1
  62. package/lib/module/chat/pages/AmityBannedGroupMemberListPage/index.js +5 -5
  63. package/lib/module/chat/pages/AmityBannedGroupMemberListPage/index.js.map +1 -1
  64. package/lib/module/chat/pages/AmityChannelCreateConversationPage/index.js +1 -0
  65. package/lib/module/chat/pages/AmityChannelCreateConversationPage/index.js.map +1 -1
  66. package/lib/module/chat/pages/AmityChatHomePage/index.js +1 -0
  67. package/lib/module/chat/pages/AmityChatHomePage/index.js.map +1 -1
  68. package/lib/module/chat/pages/AmityChatPage/index.js +6 -5
  69. package/lib/module/chat/pages/AmityChatPage/index.js.map +1 -1
  70. package/lib/module/chat/pages/AmityCreateGroupChatPage/index.js +4 -5
  71. package/lib/module/chat/pages/AmityCreateGroupChatPage/index.js.map +1 -1
  72. package/lib/module/chat/pages/AmityEditGroupMemberPermissionsPage/index.js +4 -5
  73. package/lib/module/chat/pages/AmityEditGroupMemberPermissionsPage/index.js.map +1 -1
  74. package/lib/module/chat/pages/AmityEditGroupNotificationPage/index.js +4 -9
  75. package/lib/module/chat/pages/AmityEditGroupNotificationPage/index.js.map +1 -1
  76. package/lib/module/chat/pages/AmityEditGroupProfilePage/index.js +4 -5
  77. package/lib/module/chat/pages/AmityEditGroupProfilePage/index.js.map +1 -1
  78. package/lib/module/chat/pages/AmityGroupChatPage/index.js +5 -5
  79. package/lib/module/chat/pages/AmityGroupChatPage/index.js.map +1 -1
  80. package/lib/module/chat/pages/AmityGroupMemberListPage/index.js +5 -5
  81. package/lib/module/chat/pages/AmityGroupMemberListPage/index.js.map +1 -1
  82. package/lib/module/chat/pages/AmityGroupNotificationPreferencePage/index.js +4 -9
  83. package/lib/module/chat/pages/AmityGroupNotificationPreferencePage/index.js.map +1 -1
  84. package/lib/module/chat/pages/AmityGroupSettingPage/index.js +4 -5
  85. package/lib/module/chat/pages/AmityGroupSettingPage/index.js.map +1 -1
  86. package/lib/module/chat/pages/AmitySearchChannelPage/index.js +1 -0
  87. package/lib/module/chat/pages/AmitySearchChannelPage/index.js.map +1 -1
  88. package/lib/module/chat/pages/AmitySelectGroupMemberPage/index.js +4 -5
  89. package/lib/module/chat/pages/AmitySelectGroupMemberPage/index.js.map +1 -1
  90. package/lib/module/chat/pages/index.js +17 -0
  91. package/lib/module/chat/pages/index.js.map +1 -0
  92. package/lib/module/core/hooks/useUpload.js +3 -4
  93. package/lib/module/core/hooks/useUpload.js.map +1 -1
  94. package/lib/module/core/localization/LocaleProvider.js +17 -3
  95. package/lib/module/core/localization/LocaleProvider.js.map +1 -1
  96. package/lib/module/core/localization/defaultLocaleMap.js +2 -10
  97. package/lib/module/core/localization/defaultLocaleMap.js.map +1 -1
  98. package/lib/module/core/localization/index.js +2 -3
  99. package/lib/module/core/localization/index.js.map +1 -1
  100. package/lib/module/core/providers/AmityUIKitProvider.js +7 -2
  101. package/lib/module/core/providers/AmityUIKitProvider.js.map +1 -1
  102. package/lib/module/core/routes/AmityPageRenderer.js +37 -1
  103. package/lib/module/core/routes/AmityPageRenderer.js.map +1 -1
  104. package/lib/module/index.js +3 -1
  105. package/lib/module/index.js.map +1 -1
  106. package/lib/typescript/chat/hooks/index.d.ts +1 -0
  107. package/lib/typescript/chat/hooks/index.d.ts.map +1 -1
  108. package/lib/typescript/chat/hooks/usePageParams.d.ts +10 -0
  109. package/lib/typescript/chat/hooks/usePageParams.d.ts.map +1 -0
  110. package/lib/typescript/chat/pages/AmityAddGroupMemberPage/index.d.ts +7 -1
  111. package/lib/typescript/chat/pages/AmityAddGroupMemberPage/index.d.ts.map +1 -1
  112. package/lib/typescript/chat/pages/AmityArchivedChatPage/index.d.ts +5 -1
  113. package/lib/typescript/chat/pages/AmityArchivedChatPage/index.d.ts.map +1 -1
  114. package/lib/typescript/chat/pages/AmityBannedGroupMemberListPage/index.d.ts +7 -1
  115. package/lib/typescript/chat/pages/AmityBannedGroupMemberListPage/index.d.ts.map +1 -1
  116. package/lib/typescript/chat/pages/AmityChannelCreateConversationPage/index.d.ts +5 -1
  117. package/lib/typescript/chat/pages/AmityChannelCreateConversationPage/index.d.ts.map +1 -1
  118. package/lib/typescript/chat/pages/AmityChatHomePage/index.d.ts +5 -1
  119. package/lib/typescript/chat/pages/AmityChatHomePage/index.d.ts.map +1 -1
  120. package/lib/typescript/chat/pages/AmityChatPage/index.d.ts +7 -1
  121. package/lib/typescript/chat/pages/AmityChatPage/index.d.ts.map +1 -1
  122. package/lib/typescript/chat/pages/AmityCreateGroupChatPage/index.d.ts +7 -1
  123. package/lib/typescript/chat/pages/AmityCreateGroupChatPage/index.d.ts.map +1 -1
  124. package/lib/typescript/chat/pages/AmityEditGroupMemberPermissionsPage/index.d.ts +7 -1
  125. package/lib/typescript/chat/pages/AmityEditGroupMemberPermissionsPage/index.d.ts.map +1 -1
  126. package/lib/typescript/chat/pages/AmityEditGroupNotificationPage/index.d.ts +7 -1
  127. package/lib/typescript/chat/pages/AmityEditGroupNotificationPage/index.d.ts.map +1 -1
  128. package/lib/typescript/chat/pages/AmityEditGroupProfilePage/index.d.ts +7 -1
  129. package/lib/typescript/chat/pages/AmityEditGroupProfilePage/index.d.ts.map +1 -1
  130. package/lib/typescript/chat/pages/AmityGroupChatPage/index.d.ts +7 -1
  131. package/lib/typescript/chat/pages/AmityGroupChatPage/index.d.ts.map +1 -1
  132. package/lib/typescript/chat/pages/AmityGroupMemberListPage/index.d.ts +7 -1
  133. package/lib/typescript/chat/pages/AmityGroupMemberListPage/index.d.ts.map +1 -1
  134. package/lib/typescript/chat/pages/AmityGroupNotificationPreferencePage/index.d.ts +7 -1
  135. package/lib/typescript/chat/pages/AmityGroupNotificationPreferencePage/index.d.ts.map +1 -1
  136. package/lib/typescript/chat/pages/AmityGroupSettingPage/index.d.ts +7 -1
  137. package/lib/typescript/chat/pages/AmityGroupSettingPage/index.d.ts.map +1 -1
  138. package/lib/typescript/chat/pages/AmitySearchChannelPage/index.d.ts +5 -1
  139. package/lib/typescript/chat/pages/AmitySearchChannelPage/index.d.ts.map +1 -1
  140. package/lib/typescript/chat/pages/AmitySelectGroupMemberPage/index.d.ts +7 -1
  141. package/lib/typescript/chat/pages/AmitySelectGroupMemberPage/index.d.ts.map +1 -1
  142. package/lib/typescript/chat/pages/index.d.ts +29 -0
  143. package/lib/typescript/chat/pages/index.d.ts.map +1 -0
  144. package/lib/typescript/core/hooks/useUpload.d.ts.map +1 -1
  145. package/lib/typescript/core/localization/LocaleProvider.d.ts +1 -1
  146. package/lib/typescript/core/localization/LocaleProvider.d.ts.map +1 -1
  147. package/lib/typescript/core/localization/defaultLocaleMap.d.ts +1 -6
  148. package/lib/typescript/core/localization/defaultLocaleMap.d.ts.map +1 -1
  149. package/lib/typescript/core/localization/index.d.ts +1 -2
  150. package/lib/typescript/core/localization/index.d.ts.map +1 -1
  151. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts +22 -1
  152. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts.map +1 -1
  153. package/lib/typescript/core/routes/AmityPageRenderer.d.ts.map +1 -1
  154. package/lib/typescript/index.d.ts +5 -1
  155. package/lib/typescript/index.d.ts.map +1 -1
  156. package/package.json +1 -1
  157. package/src/chat/hooks/index.ts +1 -0
  158. package/src/chat/hooks/usePageParams.ts +17 -0
  159. package/src/chat/pages/AmityAddGroupMemberPage/index.tsx +11 -8
  160. package/src/chat/pages/AmityArchivedChatPage/index.tsx +2 -0
  161. package/src/chat/pages/AmityBannedGroupMemberListPage/index.tsx +11 -8
  162. package/src/chat/pages/AmityChannelCreateConversationPage/index.tsx +3 -0
  163. package/src/chat/pages/AmityChatHomePage/index.tsx +2 -0
  164. package/src/chat/pages/AmityChatPage/index.tsx +8 -7
  165. package/src/chat/pages/AmityCreateGroupChatPage/index.tsx +10 -4
  166. package/src/chat/pages/AmityEditGroupMemberPermissionsPage/index.tsx +11 -6
  167. package/src/chat/pages/AmityEditGroupNotificationPage/index.tsx +10 -11
  168. package/src/chat/pages/AmityEditGroupProfilePage/index.tsx +10 -4
  169. package/src/chat/pages/AmityGroupChatPage/index.tsx +10 -8
  170. package/src/chat/pages/AmityGroupMemberListPage/index.tsx +11 -8
  171. package/src/chat/pages/AmityGroupNotificationPreferencePage/index.tsx +11 -11
  172. package/src/chat/pages/AmityGroupSettingPage/index.tsx +10 -4
  173. package/src/chat/pages/AmitySearchChannelPage/index.tsx +2 -0
  174. package/src/chat/pages/AmitySelectGroupMemberPage/index.tsx +11 -4
  175. package/src/chat/pages/index.ts +28 -0
  176. package/src/core/hooks/useUpload.ts +3 -4
  177. package/src/core/localization/LocaleProvider.tsx +18 -4
  178. package/src/core/localization/defaultLocaleMap.ts +2 -10
  179. package/src/core/localization/index.ts +2 -3
  180. package/src/core/providers/AmityUIKitProvider.tsx +27 -2
  181. package/src/core/routes/AmityPageRenderer.tsx +60 -4
  182. package/src/index.tsx +55 -0
  183. package/lib/commonjs/core/localization/defaults/th.js +0 -29
  184. package/lib/commonjs/core/localization/defaults/th.js.map +0 -1
  185. package/lib/commonjs/core/localization/defaults/th.json +0 -1179
  186. package/lib/module/core/localization/defaults/th.js +0 -22
  187. package/lib/module/core/localization/defaults/th.js.map +0 -1
  188. package/lib/module/core/localization/defaults/th.json +0 -1179
  189. package/lib/typescript/core/localization/defaults/th.d.ts +0 -18
  190. package/lib/typescript/core/localization/defaults/th.d.ts.map +0 -1
  191. package/src/core/localization/defaults/th.json +0 -1179
  192. package/src/core/localization/defaults/th.ts +0 -22
@@ -1,2 +1,6 @@
1
- export default function AmityChannelCreateConversationPage(): import("react/jsx-runtime").JSX.Element;
1
+ declare function AmityChannelCreateConversationPage(): import("react/jsx-runtime").JSX.Element;
2
+ declare namespace AmityChannelCreateConversationPage {
3
+ var displayName: string;
4
+ }
5
+ export default AmityChannelCreateConversationPage;
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChannelCreateConversationPage/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kCAAkC,4CAUzD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChannelCreateConversationPage/index.tsx"],"names":[],"mappings":"AAaA,iBAAwB,kCAAkC,4CAUzD;kBAVuB,kCAAkC;;;eAAlC,kCAAkC"}
@@ -1,2 +1,6 @@
1
- export default function AmityChatHomePage(): import("react/jsx-runtime").JSX.Element;
1
+ declare function AmityChatHomePage(): import("react/jsx-runtime").JSX.Element;
2
+ declare namespace AmityChatHomePage {
3
+ var displayName: string;
4
+ }
5
+ export default AmityChatHomePage;
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChatHomePage/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,iBAAiB,4CAuBxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChatHomePage/index.tsx"],"names":[],"mappings":"AAkBA,iBAAwB,iBAAiB,4CAuBxC;kBAvBuB,iBAAiB;;;eAAjB,iBAAiB"}
@@ -1,2 +1,8 @@
1
- export default function AmityChatPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityChatPageProps = RootStackParamList['AmityChatPage'];
3
+ declare function AmityChatPage(props: Partial<AmityChatPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityChatPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityChatPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChatPage/index.tsx"],"names":[],"mappings":"AAuBA,MAAM,CAAC,OAAO,UAAU,aAAa,4CA0BpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityChatPage/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAO9E,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC;AAErE,iBAAwB,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,2CA0BvE;kBA1BuB,aAAa;;;eAAb,aAAa"}
@@ -1,2 +1,8 @@
1
- export default function AmityCreateGroupChatPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityCreateGroupChatPageProps = RootStackParamList['AmityCreateGroupChatPage'];
3
+ declare function AmityCreateGroupChatPage(props: Partial<AmityCreateGroupChatPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityCreateGroupChatPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityCreateGroupChatPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityCreateGroupChatPage/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,wBAAwB,4CAW/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityCreateGroupChatPage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,6BAA6B,GACvC,kBAAkB,CAAC,0BAA0B,CAAC,CAAC;AAEjD,iBAAwB,wBAAwB,CAC9C,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,2CAW9C;kBAZuB,wBAAwB;;;eAAxB,wBAAwB"}
@@ -1,2 +1,8 @@
1
- export default function AmityEditGroupMemberPermissionsPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityEditGroupMemberPermissionsPageProps = RootStackParamList['AmityEditGroupMemberPermissionsPage'];
3
+ declare function AmityEditGroupMemberPermissionsPage(props: Partial<AmityEditGroupMemberPermissionsPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityEditGroupMemberPermissionsPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityEditGroupMemberPermissionsPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupMemberPermissionsPage/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,mCAAmC,4CAa1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupMemberPermissionsPage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,wCAAwC,GAClD,kBAAkB,CAAC,qCAAqC,CAAC,CAAC;AAE5D,iBAAwB,mCAAmC,CACzD,KAAK,EAAE,OAAO,CAAC,wCAAwC,CAAC,2CAWzD;kBAZuB,mCAAmC;;;eAAnC,mCAAmC"}
@@ -1,2 +1,8 @@
1
- export default function AmityEditGroupNotificationPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityEditGroupNotificationPageProps = RootStackParamList['AmityEditGroupNotificationPage'];
3
+ declare function AmityEditGroupNotificationPage(props: Partial<AmityEditGroupNotificationPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityEditGroupNotificationPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityEditGroupNotificationPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupNotificationPage/index.tsx"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,UAAU,8BAA8B,4CAWrD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupNotificationPage/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,MAAM,MAAM,mCAAmC,GAC7C,kBAAkB,CAAC,gCAAgC,CAAC,CAAC;AAEvD,iBAAwB,8BAA8B,CACpD,KAAK,EAAE,OAAO,CAAC,mCAAmC,CAAC,2CAWpD;kBAZuB,8BAA8B;;;eAA9B,8BAA8B"}
@@ -1,2 +1,8 @@
1
- export default function AmityEditGroupProfilePage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityEditGroupProfilePageProps = RootStackParamList['AmityEditGroupProfilePage'];
3
+ declare function AmityEditGroupProfilePage(props: Partial<AmityEditGroupProfilePageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityEditGroupProfilePage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityEditGroupProfilePage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupProfilePage/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,yBAAyB,4CAWhD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityEditGroupProfilePage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,8BAA8B,GACxC,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;AAElD,iBAAwB,yBAAyB,CAC/C,KAAK,EAAE,OAAO,CAAC,8BAA8B,CAAC,2CAW/C;kBAZuB,yBAAyB;;;eAAzB,yBAAyB"}
@@ -1,2 +1,8 @@
1
- export default function AmityGroupChatPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityGroupChatPageProps = RootStackParamList['AmityGroupChatPage'];
3
+ declare function AmityGroupChatPage(props: Partial<AmityGroupChatPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityGroupChatPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityGroupChatPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupChatPage/index.tsx"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAuBzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupChatPage/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAE/E,iBAAwB,kBAAkB,CACxC,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,2CAuBxC;kBAxBuB,kBAAkB;;;eAAlB,kBAAkB"}
@@ -1,2 +1,8 @@
1
- export default function AmityGroupMemberListPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityGroupMemberListPageProps = RootStackParamList['AmityGroupMemberListPage'];
3
+ declare function AmityGroupMemberListPage(props: Partial<AmityGroupMemberListPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityGroupMemberListPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityGroupMemberListPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupMemberListPage/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,wBAAwB,4CAqB/C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupMemberListPage/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,6BAA6B,GACvC,kBAAkB,CAAC,0BAA0B,CAAC,CAAC;AAEjD,iBAAwB,wBAAwB,CAC9C,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,2CAqB9C;kBAtBuB,wBAAwB;;;eAAxB,wBAAwB"}
@@ -1,2 +1,8 @@
1
- export default function AmityGroupNotificationPreferencePage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityGroupNotificationPreferencePageProps = RootStackParamList['AmityGroupNotificationPreferencePage'];
3
+ declare function AmityGroupNotificationPreferencePage(props: Partial<AmityGroupNotificationPreferencePageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityGroupNotificationPreferencePage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityGroupNotificationPreferencePage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupNotificationPreferencePage/index.tsx"],"names":[],"mappings":"AAgBA,MAAM,CAAC,OAAO,UAAU,oCAAoC,4CAW3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupNotificationPreferencePage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAK9E,MAAM,MAAM,yCAAyC,GACnD,kBAAkB,CAAC,sCAAsC,CAAC,CAAC;AAE7D,iBAAwB,oCAAoC,CAC1D,KAAK,EAAE,OAAO,CAAC,yCAAyC,CAAC,2CAW1D;kBAZuB,oCAAoC;;;eAApC,oCAAoC"}
@@ -1,2 +1,8 @@
1
- export default function AmityGroupSettingPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmityGroupSettingPageProps = RootStackParamList['AmityGroupSettingPage'];
3
+ declare function AmityGroupSettingPage(props: Partial<AmityGroupSettingPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmityGroupSettingPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmityGroupSettingPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupSettingPage/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,qBAAqB,4CAW5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmityGroupSettingPage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,0BAA0B,GACpC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;AAE9C,iBAAwB,qBAAqB,CAC3C,KAAK,EAAE,OAAO,CAAC,0BAA0B,CAAC,2CAW3C;kBAZuB,qBAAqB;;;eAArB,qBAAqB"}
@@ -1,2 +1,6 @@
1
- export default function AmitySearchChannelPage(): import("react/jsx-runtime").JSX.Element;
1
+ declare function AmitySearchChannelPage(): import("react/jsx-runtime").JSX.Element;
2
+ declare namespace AmitySearchChannelPage {
3
+ var displayName: string;
4
+ }
5
+ export default AmitySearchChannelPage;
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmitySearchChannelPage/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,sBAAsB,4CAQ7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmitySearchChannelPage/index.tsx"],"names":[],"mappings":"AAaA,iBAAwB,sBAAsB,4CAQ7C;kBARuB,sBAAsB;;;eAAtB,sBAAsB"}
@@ -1,2 +1,8 @@
1
- export default function AmitySelectGroupMemberPage(): import("react/jsx-runtime").JSX.Element;
1
+ import type { RootStackParamList } from '../../../core/routes/RouteParamList';
2
+ export type AmitySelectGroupMemberPageProps = NonNullable<RootStackParamList['AmitySelectGroupMemberPage']>;
3
+ declare function AmitySelectGroupMemberPage(props: Partial<AmitySelectGroupMemberPageProps>): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace AmitySelectGroupMemberPage {
5
+ var displayName: string;
6
+ }
7
+ export default AmitySelectGroupMemberPage;
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmitySelectGroupMemberPage/index.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,0BAA0B,4CAiBjD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/chat/pages/AmitySelectGroupMemberPage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,MAAM,MAAM,+BAA+B,GAAG,WAAW,CACvD,kBAAkB,CAAC,4BAA4B,CAAC,CACjD,CAAC;AAEF,iBAAwB,0BAA0B,CAChD,KAAK,EAAE,OAAO,CAAC,+BAA+B,CAAC,2CAiBhD;kBAlBuB,0BAA0B;;;eAA1B,0BAA0B"}
@@ -0,0 +1,29 @@
1
+ export { default as AmityChatHomePage } from './AmityChatHomePage';
2
+ export { default as AmityChannelCreateConversationPage } from './AmityChannelCreateConversationPage';
3
+ export { default as AmitySelectGroupMemberPage } from './AmitySelectGroupMemberPage';
4
+ export type { AmitySelectGroupMemberPageProps } from './AmitySelectGroupMemberPage';
5
+ export { default as AmityCreateGroupChatPage } from './AmityCreateGroupChatPage';
6
+ export type { AmityCreateGroupChatPageProps } from './AmityCreateGroupChatPage';
7
+ export { default as AmityChatPage } from './AmityChatPage';
8
+ export type { AmityChatPageProps } from './AmityChatPage';
9
+ export { default as AmityGroupChatPage } from './AmityGroupChatPage';
10
+ export type { AmityGroupChatPageProps } from './AmityGroupChatPage';
11
+ export { default as AmityGroupSettingPage } from './AmityGroupSettingPage';
12
+ export type { AmityGroupSettingPageProps } from './AmityGroupSettingPage';
13
+ export { default as AmityEditGroupProfilePage } from './AmityEditGroupProfilePage';
14
+ export type { AmityEditGroupProfilePageProps } from './AmityEditGroupProfilePage';
15
+ export { default as AmityEditGroupNotificationPage } from './AmityEditGroupNotificationPage';
16
+ export type { AmityEditGroupNotificationPageProps } from './AmityEditGroupNotificationPage';
17
+ export { default as AmityEditGroupMemberPermissionsPage } from './AmityEditGroupMemberPermissionsPage';
18
+ export type { AmityEditGroupMemberPermissionsPageProps } from './AmityEditGroupMemberPermissionsPage';
19
+ export { default as AmityGroupNotificationPreferencePage } from './AmityGroupNotificationPreferencePage';
20
+ export type { AmityGroupNotificationPreferencePageProps } from './AmityGroupNotificationPreferencePage';
21
+ export { default as AmityGroupMemberListPage } from './AmityGroupMemberListPage';
22
+ export type { AmityGroupMemberListPageProps } from './AmityGroupMemberListPage';
23
+ export { default as AmityAddGroupMemberPage } from './AmityAddGroupMemberPage';
24
+ export type { AmityAddGroupMemberPageProps } from './AmityAddGroupMemberPage';
25
+ export { default as AmityBannedGroupMemberListPage } from './AmityBannedGroupMemberListPage';
26
+ export type { AmityBannedGroupMemberListPageProps } from './AmityBannedGroupMemberListPage';
27
+ export { default as AmityArchivedChatPage } from './AmityArchivedChatPage';
28
+ export { default as AmitySearchChannelPage } from './AmitySearchChannelPage';
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/chat/pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACrF,YAAY,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,YAAY,EAAE,8BAA8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AC;IAClC,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,SAAS;kDAcpB,uBAAuB;;;;;;EAgD3B"}
1
+ {"version":3,"file":"useUpload.d.ts","sourceRoot":"","sources":["../../../../src/core/hooks/useUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAW9D,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC;AAEvE,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,SAAS;kDAcpB,uBAAuB;;;;;;EA+C3B"}
@@ -56,7 +56,7 @@ export interface LocaleProviderProps {
56
56
  * Falls back to English library defaults when no match is found.
57
57
  *
58
58
  * @example
59
- * localeMap={{ ja: jaLocale, th: thLocale }}
59
+ * localeMap={{ ja: jaLocale, ko: koLocale }}
60
60
  */
61
61
  localeMap?: Record<string, LocaleBundle>;
62
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LocaleProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/LocaleProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAoE,MAAM,OAAO,CAAC;AACzF,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,mDAAmD;IACnD,kBAAkB,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,IAAI,CAAC;IACtD,iDAAiD;IACjD,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAUD,eAAO,MAAM,aAAa,mCAAqD,CAAC;AAOhF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC1C;AAMD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GACtC,YAAY,GAAG,SAAS,CAU1B;AAMD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,GACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CAkD1C;AAMD;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,kBAAkB,CAE9C"}
1
+ {"version":3,"file":"LocaleProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/LocaleProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAoE,MAAM,OAAO,CAAC;AACzF,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,mDAAmD;IACnD,kBAAkB,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,IAAI,CAAC;IACtD,iDAAiD;IACjD,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAUD,eAAO,MAAM,aAAa,mCAAqD,CAAC;AAOhF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC1C;AAqBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GACtC,YAAY,GAAG,SAAS,CAS1B;AAMD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,GACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CAkD1C;AAMD;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,kBAAkB,CAE9C"}
@@ -7,12 +7,7 @@
7
7
  * import { defaultLocaleMap } from '~/v4/core/localization';
8
8
  * <AmityUIKitProvider localization={{ localeMap: defaultLocaleMap }} ... />
9
9
  *
10
- * Resolution order:
11
- * 1. Exact match: navigator.language === "th" → Thai bundle
12
- * 2. Prefix match: navigator.language === "th-TH" → Thai bundle
13
- * 3. No match: falls through to English library defaults
14
- *
15
- * Add more bundles here as additional locale files are created.
10
+ * Add locale bundles here to enable automatic device-language detection.
16
11
  */
17
12
  import type { LocaleBundle } from './resolveString';
18
13
  export declare const defaultLocaleMap: Record<string, LocaleBundle>;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultLocaleMap.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/defaultLocaleMap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAEzD,CAAC"}
1
+ {"version":3,"file":"defaultLocaleMap.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/defaultLocaleMap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAM,CAAC"}
@@ -15,7 +15,7 @@
15
15
  * import type { LocaleBundle, FormatArg } from '~/v4/core/localization';
16
16
  *
17
17
  * Default bundles / locale map (device-language detection):
18
- * import { defaultLocaleBundle, thLocaleBundle, defaultLocaleMap } from '~/v4/core/localization';
18
+ * import { defaultLocaleBundle, defaultLocaleMap } from '~/v4/core/localization';
19
19
  */
20
20
  export { resolveString, setStringOverrides, clearStringOverrides, setLocaleBundle, clearLocaleBundle, applyFormat, _resetLocalizationState, _getLocalizationState, } from './resolveString';
21
21
  export type { LocaleBundle, FormatArg } from './resolveString';
@@ -23,6 +23,5 @@ export { LocaleProvider, LocaleContext, useLocale } from './LocaleProvider';
23
23
  export type { LocaleContextValue, LocaleProviderProps } from './LocaleProvider';
24
24
  export { useString } from './useString';
25
25
  export { default as defaultLocaleBundle } from './defaults/en';
26
- export { default as thLocaleBundle } from './defaults/th';
27
26
  export { defaultLocaleMap } from './defaultLocaleMap';
28
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/localization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { DefaultTheme, type MD3Theme } from 'react-native-paper';
2
2
  import { IConfigRaw } from '../types/config';
3
3
  import { IBehaviour } from '../types/behaviour';
4
+ import { type LocaleBundle } from '../localization';
4
5
  export type CusTomTheme = typeof DefaultTheme;
5
6
  export interface IAmityUIkitProvider {
6
7
  /** Omit to connect as a visitor (read-only session). */
@@ -18,6 +19,26 @@ export interface IAmityUIkitProvider {
18
19
  socialCommunityCreationButtonVisible?: boolean;
19
20
  /** When true, hides the Explore tab on the Social Home page. Default: false */
20
21
  hideExplore?: boolean;
22
+ /**
23
+ * Localization configuration for the UIKit (same shape as the web UIKit).
24
+ * - `localeBundle`: locale bundle to use (key → translated string)
25
+ * - `overrides`: individual keys that take precedence over the locale bundle
26
+ * - `localeMap`: map of locale code → bundle for automatic device-language
27
+ * detection. When `localeBundle` is not set, the device language is matched
28
+ * against this map (exact match, then language prefix). Falls back to
29
+ * English when nothing matches. Unset by default, so the UIKit renders in
30
+ * English unless the host passes its own bundles.
31
+ *
32
+ * @example
33
+ * localization={{ localeBundle: jaLocale }}
34
+ * @example
35
+ * localization={{ localeMap: { ja: jaLocale, ko: koLocale } }}
36
+ */
37
+ localization?: {
38
+ localeBundle?: LocaleBundle;
39
+ overrides?: LocaleBundle;
40
+ localeMap?: Record<string, LocaleBundle>;
41
+ };
21
42
  }
22
43
  export interface CustomColors {
23
44
  primary?: string;
@@ -47,5 +68,5 @@ export interface MyMD3Theme extends MD3Theme {
47
68
  isDarkTheme: boolean;
48
69
  colors: MD3Theme['colors'] & CustomColors;
49
70
  }
50
- export default function AmityUiKitProvider({ userId, displayName, apiKey, apiRegion, apiEndpoint, children, authToken, configs, behaviour, fcmToken, socialCommunityCreationButtonVisible, hideExplore, }: IAmityUIkitProvider): import("react/jsx-runtime").JSX.Element;
71
+ export default function AmityUiKitProvider({ userId, displayName, apiKey, apiRegion, apiEndpoint, children, authToken, configs, behaviour, fcmToken, socialCommunityCreationButtonVisible, hideExplore, localization, }: IAmityUIkitProvider): import("react/jsx-runtime").JSX.Element;
51
72
  //# sourceMappingURL=AmityUIKitProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AmityUIKitProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/providers/AmityUIKitProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAiB,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAYhD,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC;AAC9C,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kGAAkG;IAClG,oCAAoC,CAAC,EAAE,OAAO,CAAC;IAC/C,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC;CAC3C;AAID,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,MAAM,EACN,WAAW,EACX,MAAM,EACN,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,EACR,oCAA2C,EAC3C,WAAmB,GACpB,EAAE,mBAAmB,2CAqIrB"}
1
+ {"version":3,"file":"AmityUIKitProvider.d.ts","sourceRoot":"","sources":["../../../../src/core/providers/AmityUIKitProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAiB,KAAK,QAAQ,E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AC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC1C,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC;CAC3C;AAID,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,MAAM,EACN,WAAW,EACX,MAAM,EACN,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,EACR,oCAA2C,EAC3C,WAAmB,EACnB,YAAY,GACb,EAAE,mBAAmB,2CAyIrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"AmityPageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/core/routes/AmityPageRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiD/B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;CAC7B;AACD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAwMnE"}
1
+ {"version":3,"file":"AmityPageRenderer.d.ts","sourceRoot":"","sources":["../../../../src/core/routes/AmityPageRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwF/B,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;CAC7B;AACD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAyNnE"}
@@ -1,4 +1,8 @@
1
1
  import { AmityPageRenderer, AmityUiKitProvider, AmityUiKitSocial, AmityUiKitChat, ErrorBoundary, navigate } from './core';
2
+ import { useLocale, useString, defaultLocaleMap } from './core/localization';
2
3
  import { AmityStoryTabComponent, AmityCreateStoryPage, AmityDraftStoryPage, AmityViewStoryPage, AmitySocialHomePage, AmitySocialHomeTopNavigationComponent, AmityCommunitySearchResultComponent, AmitySocialGlobalSearchPage, AmityTopSearchBarComponent, AmityEmptyNewsFeedComponent, AmityGlobalFeedComponent, AmityMyCommunitiesComponent, AmityNewsFeedComponent, AmityPostContentComponent, AmityPostDetailPage, AmityPostTargetSelectionPageType, AmityCreatePostMenuComponent, AmityDetailedMediaAttachmentComponent, AmityMediaAttachmentComponent, AmityPostCommentComponent, AmityPostComposerPage, AmityPostEngagementActionsComponent, AmityPostTargetSelectionPage, AmityReactionListComponent, AmityStoryTargetSelectionPage, AmityUserSearchResultComponent, AmityMyCommunitiesSearchPage, AmityExploreComponent, AmityAllCategoriesPage, AmityCommunitiesByCategoryPage, AmityCommunityProfilePage as CommunityProfilePage, AmityCreateLivestreamPage, AmityLivestreamPostTargetSelectionPage, AmityLivestreamTerminatedPage, AmityLivestreamPlayerPage, AmityPollTargetSelectionPage, AmityPollPostComposerPage, AmityCommunityFeedComponent, AmityCommunityHeaderComponent, AmityCommunityImageFeedComponent, AmityCommunityVideoFeedComponent, AmityThumbnailActionComponent, AmityPostEngagementContentComponent, AmityPostTargetType, AmityCommunitySetupPage, AmityCommunityAddCategoryPage, AmityCommunityAddMemberPage, AmityCommunityPendingRequestPage, AmityCommunitySettingPage, AmityCommunityMembershipPage, AmityCommunityPostPermissionPage, AmityCommunityStorySettingPage, AmityCommunityNotificationSettingPage, AmityCommunityPostsNotificationSettingPage, AmityCommunityCommentsNotificationSettingPage, AmityCommunityStoriesNotificationSettingPage, AmityCommunityLivestreamsNotificationSettingPage, AmityCommunityPinnedPostComponent, AmityPendingPostListComponent, AmityGlobalStoryTabWrapper, AmityPostComposerMode, AmityStoryTabComponentEnum, mediaAttachment, PostDetail, AmityUserProfilePage, AmityEditUserProfilePage, AmityUserRelationshipPage, AmityBlockedUsersPage } from './social';
3
- export { AmityUiKitProvider, ErrorBoundary, AmityUiKitSocial, AmityUiKitChat, AmityStoryTabComponent, AmityStoryTabComponentEnum, AmityCreateStoryPage, AmityDraftStoryPage, AmityViewStoryPage, AmitySocialHomePage, AmitySocialHomeTopNavigationComponent, AmityCommunitySearchResultComponent, AmitySocialGlobalSearchPage, AmityTopSearchBarComponent, AmityEmptyNewsFeedComponent, AmityGlobalFeedComponent, AmityMyCommunitiesComponent, AmityNewsFeedComponent, AmityPostContentComponent, AmityPostDetailPage, AmityPostTargetSelectionPageType, AmityCreatePostMenuComponent, AmityDetailedMediaAttachmentComponent, AmityMediaAttachmentComponent, AmityPostCommentComponent, AmityPostComposerPage, AmityPostEngagementActionsComponent, AmityPostTargetSelectionPage, AmityReactionListComponent, AmityStoryTargetSelectionPage, AmityUserSearchResultComponent, AmityMyCommunitiesSearchPage, AmityPostComposerMode, mediaAttachment, AmityExploreComponent, AmityPageRenderer, PostDetail, AmityUserProfilePage, AmityEditUserProfilePage, AmityUserRelationshipPage, AmityBlockedUsersPage, AmityAllCategoriesPage, AmityCommunitiesByCategoryPage, CommunityProfilePage, AmityCreateLivestreamPage, AmityLivestreamPostTargetSelectionPage, AmityLivestreamTerminatedPage, AmityLivestreamPlayerPage, AmityPollTargetSelectionPage, AmityPollPostComposerPage, AmityCommunityFeedComponent, AmityCommunityHeaderComponent, AmityCommunityImageFeedComponent, AmityCommunityVideoFeedComponent, AmityThumbnailActionComponent, AmityPostEngagementContentComponent, AmityPostTargetType, AmityCommunitySetupPage, AmityCommunityAddCategoryPage, AmityCommunityAddMemberPage, AmityCommunityPendingRequestPage, AmityCommunitySettingPage, AmityCommunityMembershipPage, AmityCommunityPostPermissionPage, AmityCommunityStorySettingPage, AmityCommunityNotificationSettingPage, AmityCommunityPostsNotificationSettingPage, AmityCommunityCommentsNotificationSettingPage, AmityCommunityStoriesNotificationSettingPage, AmityCommunityLivestreamsNotificationSettingPage, AmityCommunityPinnedPostComponent, AmityPendingPostListComponent, AmityGlobalStoryTabWrapper, navigate, };
4
+ import { AmityChatHomePage, AmityChannelCreateConversationPage, AmitySelectGroupMemberPage, AmityCreateGroupChatPage, AmityChatPage, AmityGroupChatPage, AmityGroupSettingPage, AmityEditGroupProfilePage, AmityEditGroupNotificationPage, AmityEditGroupMemberPermissionsPage, AmityGroupNotificationPreferencePage, AmityGroupMemberListPage, AmityAddGroupMemberPage, AmityBannedGroupMemberListPage, AmityArchivedChatPage, AmitySearchChannelPage } from './chat/pages';
5
+ export { AmityUiKitProvider, ErrorBoundary, AmityUiKitSocial, AmityUiKitChat, AmityStoryTabComponent, AmityStoryTabComponentEnum, AmityCreateStoryPage, AmityDraftStoryPage, AmityViewStoryPage, AmitySocialHomePage, AmitySocialHomeTopNavigationComponent, AmityCommunitySearchResultComponent, AmitySocialGlobalSearchPage, AmityTopSearchBarComponent, AmityEmptyNewsFeedComponent, AmityGlobalFeedComponent, AmityMyCommunitiesComponent, AmityNewsFeedComponent, AmityPostContentComponent, AmityPostDetailPage, AmityPostTargetSelectionPageType, AmityCreatePostMenuComponent, AmityDetailedMediaAttachmentComponent, AmityMediaAttachmentComponent, AmityPostCommentComponent, AmityPostComposerPage, AmityPostEngagementActionsComponent, AmityPostTargetSelectionPage, AmityReactionListComponent, AmityStoryTargetSelectionPage, AmityUserSearchResultComponent, AmityMyCommunitiesSearchPage, AmityPostComposerMode, mediaAttachment, AmityExploreComponent, AmityPageRenderer, PostDetail, AmityUserProfilePage, AmityEditUserProfilePage, AmityUserRelationshipPage, AmityBlockedUsersPage, AmityAllCategoriesPage, AmityCommunitiesByCategoryPage, CommunityProfilePage, AmityCreateLivestreamPage, AmityLivestreamPostTargetSelectionPage, AmityLivestreamTerminatedPage, AmityLivestreamPlayerPage, AmityPollTargetSelectionPage, AmityPollPostComposerPage, AmityCommunityFeedComponent, AmityCommunityHeaderComponent, AmityCommunityImageFeedComponent, AmityCommunityVideoFeedComponent, AmityThumbnailActionComponent, AmityPostEngagementContentComponent, AmityPostTargetType, AmityCommunitySetupPage, AmityCommunityAddCategoryPage, AmityCommunityAddMemberPage, AmityCommunityPendingRequestPage, AmityCommunitySettingPage, AmityCommunityMembershipPage, AmityCommunityPostPermissionPage, AmityCommunityStorySettingPage, AmityCommunityNotificationSettingPage, AmityCommunityPostsNotificationSettingPage, AmityCommunityCommentsNotificationSettingPage, AmityCommunityStoriesNotificationSettingPage, AmityCommunityLivestreamsNotificationSettingPage, AmityCommunityPinnedPostComponent, AmityPendingPostListComponent, AmityGlobalStoryTabWrapper, navigate, AmityChatHomePage, AmityChannelCreateConversationPage, AmitySelectGroupMemberPage, AmityCreateGroupChatPage, AmityChatPage, AmityGroupChatPage, AmityGroupSettingPage, AmityEditGroupProfilePage, AmityEditGroupNotificationPage, AmityEditGroupMemberPermissionsPage, AmityGroupNotificationPreferencePage, AmityGroupMemberListPage, AmityAddGroupMemberPage, AmityBannedGroupMemberListPage, AmityArchivedChatPage, AmitySearchChannelPage, useLocale, useString, defaultLocaleMap, };
6
+ export type { AmitySelectGroupMemberPageProps, AmityCreateGroupChatPageProps, AmityChatPageProps, AmityGroupChatPageProps, AmityGroupSettingPageProps, AmityEditGroupProfilePageProps, AmityEditGroupNotificationPageProps, AmityEditGroupMemberPermissionsPageProps, AmityGroupNotificationPreferencePageProps, AmityGroupMemberListPageProps, AmityAddGroupMemberPageProps, AmityBannedGroupMemberListPageProps, } from './chat/pages';
7
+ export type { LocaleBundle, LocaleContextValue } from './core/localization';
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,qCAAqC,EACrC,mCAAmC,EACnC,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,gCAAgC,EAChC,4BAA4B,EAC5B,qCAAqC,EACrC,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,EACnC,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,IAAI,oBAAoB,EACjD,yBAAyB,EACzB,sCAAsC,EACtC,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,mCAAmC,EACnC,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,8BAA8B,EAC9B,qCAAqC,EACrC,0CAA0C,EAC1C,6CAA6C,EAC7C,4CAA4C,EAC5C,gDAAgD,EAChD,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,E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,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,8BAA8B,EAC9B,qCAAqC,EACrC,0CAA0C,EAC1C,6CAA6C,EAC7C,4CAA4C,EAC5C,gDAAgD,EAChD,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACR,iBAAiB,EACjB,kCAAkC,EAClC,0BAA0B,EAC1B,wBAAwB,EACxB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,EAC9B,mCAAmC,EACnC,oCAAoC,EACpC,wBAAwB,EACxB,uBAAuB,EACvB,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,CAAC;AAEF,YAAY,EACV,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,mCAAmC,EACnC,wCAAwC,EACxC,yCAAyC,EACzC,6BAA6B,EAC7B,4BAA4B,EAC5B,mCAAmC,GACpC,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/react-native-social-uikit",
3
- "version": "4.3.1-53502fc9.0",
3
+ "version": "4.3.1",
4
4
  "description": "Social UIKit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -5,6 +5,7 @@ export * from './useEditMessage';
5
5
  export * from './useDeleteMessage';
6
6
  export * from './useChatNotifications';
7
7
  export * from './useChatNavigation';
8
+ export * from './usePageParams';
8
9
  export * from './useNetworkOnline';
9
10
  export * from './useCurrentUserId';
10
11
  export * from './useChannelMyMembership';
@@ -0,0 +1,17 @@
1
+ import { useRoute, type RouteProp } from '@react-navigation/native';
2
+
3
+ import type { RootStackParamList } from '../../core/routes/RouteParamList';
4
+
5
+ /**
6
+ * A chat page's input, from wherever the page was opened.
7
+ *
8
+ * Reached through the chat navigator, a page reads its route params. Rendered
9
+ * standalone inside `AmityPageRenderer`, it is the stack's first screen and has
10
+ * no params, so its input arrives as props instead.
11
+ */
12
+ export function usePageParams<RouteName extends keyof RootStackParamList>(
13
+ props: Partial<RootStackParamList[RouteName]>
14
+ ): RootStackParamList[RouteName] {
15
+ const { params } = useRoute<RouteProp<RootStackParamList, RouteName>>();
16
+ return (params ?? props) as RootStackParamList[RouteName];
17
+ }
@@ -1,21 +1,22 @@
1
1
  // AmityAddGroupMemberPage — add members to an existing group.
2
2
  import { SafeAreaView } from 'react-native-safe-area-context';
3
- import {
4
- useNavigation,
5
- useRoute,
6
- type RouteProp,
7
- } from '@react-navigation/native';
3
+ import { useNavigation } from '@react-navigation/native';
8
4
  import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
9
5
 
10
6
  import { ChatKeyboardAvoidingView } from '../../elements/ChatKeyboardAvoidingView';
11
7
  import type { RootStackParamList } from '../../../core/routes/RouteParamList';
8
+ import { usePageParams } from '../../hooks/usePageParams';
12
9
  import { AddGroupMember } from '../../features/group/add-member';
13
10
 
14
- export default function AmityAddGroupMemberPage() {
11
+ export type AmityAddGroupMemberPageProps =
12
+ RootStackParamList['AmityAddGroupMemberPage'];
13
+
14
+ export default function AmityAddGroupMemberPage(
15
+ props: Partial<AmityAddGroupMemberPageProps>
16
+ ) {
15
17
  const navigation =
16
18
  useNavigation<NativeStackNavigationProp<RootStackParamList>>();
17
- const { params } =
18
- useRoute<RouteProp<RootStackParamList, 'AmityAddGroupMemberPage'>>();
19
+ const params = usePageParams<'AmityAddGroupMemberPage'>(props);
19
20
 
20
21
  return (
21
22
  <SafeAreaView edges={['top', 'left', 'right']} style={{ flex: 1 }}>
@@ -28,3 +29,5 @@ export default function AmityAddGroupMemberPage() {
28
29
  </SafeAreaView>
29
30
  );
30
31
  }
32
+
33
+ AmityAddGroupMemberPage.displayName = 'AmityAddGroupMemberPage';
@@ -27,3 +27,5 @@ export default function AmityArchivedChatPage() {
27
27
  </SafeAreaView>
28
28
  );
29
29
  }
30
+
31
+ AmityArchivedChatPage.displayName = 'AmityArchivedChatPage';
@@ -1,21 +1,22 @@
1
1
  // AmityBannedGroupMemberListPage — banned members list (unban).
2
2
  import { SafeAreaView } from 'react-native-safe-area-context';
3
- import {
4
- useNavigation,
5
- useRoute,
6
- type RouteProp,
7
- } from '@react-navigation/native';
3
+ import { useNavigation } from '@react-navigation/native';
8
4
  import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
9
5
 
10
6
  import { ChatKeyboardAvoidingView } from '../../elements/ChatKeyboardAvoidingView';
11
7
  import type { RootStackParamList } from '../../../core/routes/RouteParamList';
8
+ import { usePageParams } from '../../hooks/usePageParams';
12
9
  import { BannedGroupMembers } from '../../features/group/banned-members';
13
10
 
14
- export default function AmityBannedGroupMemberListPage() {
11
+ export type AmityBannedGroupMemberListPageProps =
12
+ RootStackParamList['AmityBannedGroupMemberListPage'];
13
+
14
+ export default function AmityBannedGroupMemberListPage(
15
+ props: Partial<AmityBannedGroupMemberListPageProps>
16
+ ) {
15
17
  const navigation =
16
18
  useNavigation<NativeStackNavigationProp<RootStackParamList>>();
17
- const { params } =
18
- useRoute<RouteProp<RootStackParamList, 'AmityBannedGroupMemberListPage'>>();
19
+ const params = usePageParams<'AmityBannedGroupMemberListPage'>(props);
19
20
 
20
21
  return (
21
22
  <SafeAreaView edges={['top', 'left', 'right']} style={{ flex: 1 }}>
@@ -28,3 +29,5 @@ export default function AmityBannedGroupMemberListPage() {
28
29
  </SafeAreaView>
29
30
  );
30
31
  }
32
+
33
+ AmityBannedGroupMemberListPage.displayName = 'AmityBannedGroupMemberListPage';
@@ -22,3 +22,6 @@ export default function AmityChannelCreateConversationPage() {
22
22
  </SafeAreaView>
23
23
  );
24
24
  }
25
+
26
+ AmityChannelCreateConversationPage.displayName =
27
+ 'AmityChannelCreateConversationPage';
@@ -40,3 +40,5 @@ export default function AmityChatHomePage() {
40
40
  </SafeAreaView>
41
41
  );
42
42
  }
43
+
44
+ AmityChatHomePage.displayName = 'AmityChatHomePage';
@@ -6,26 +6,25 @@
6
6
  import { SafeAreaView } from 'react-native-safe-area-context';
7
7
 
8
8
  // 2. Third-party imports
9
- import {
10
- useNavigation,
11
- useRoute,
12
- type RouteProp,
13
- } from '@react-navigation/native';
9
+ import { useNavigation } from '@react-navigation/native';
14
10
  import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
15
11
 
16
12
  // 3. Internal imports (relative)
17
13
  import { ChatKeyboardAvoidingView } from '../../elements/ChatKeyboardAvoidingView';
18
14
  import type { RootStackParamList } from '../../../core/routes/RouteParamList';
15
+ import { usePageParams } from '../../hooks/usePageParams';
19
16
  import { ChatSurface } from '../../hooks/useChatSurfaceHeight';
20
17
  import { Chat } from '../../features/conversation';
21
18
  import { useStyles } from './styles';
22
19
 
23
20
  // 4. Named function component
24
- export default function AmityChatPage() {
21
+ export type AmityChatPageProps = RootStackParamList['AmityChatPage'];
22
+
23
+ export default function AmityChatPage(props: Partial<AmityChatPageProps>) {
25
24
  const { styles } = useStyles();
26
25
  const navigation =
27
26
  useNavigation<NativeStackNavigationProp<RootStackParamList>>();
28
- const { params } = useRoute<RouteProp<RootStackParamList, 'AmityChatPage'>>();
27
+ const params = usePageParams<'AmityChatPage'>(props);
29
28
 
30
29
  return (
31
30
  <SafeAreaView edges={['top', 'left', 'right']} style={styles.container}>
@@ -48,3 +47,5 @@ export default function AmityChatPage() {
48
47
  </SafeAreaView>
49
48
  );
50
49
  }
50
+
51
+ AmityChatPage.displayName = 'AmityChatPage';