@instincthub/react-ui 0.1.50 → 0.1.51

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 (237) hide show
  1. package/dist/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx.mjs.js +2 -2
  2. package/dist/node_modules/.pnpm/xlsx@https___cdn.sheetjs.com_xlsx-0.20.3_xlsx-0.20.3.tgz/node_modules/xlsx/xlsx.mjs.js.map +1 -1
  3. package/dist/src/assets/css/forms/input-fields.css +163 -11
  4. package/dist/src/components/auth/LoginForm.js +1 -1
  5. package/dist/src/components/auth/ReactClientProviders.js +1 -1
  6. package/dist/src/components/forms/ChipsInput.js +1 -1
  7. package/dist/src/components/forms/PhoneNumberInput.js +1 -1
  8. package/dist/src/components/forms/SearchFieldDB.js +1 -1
  9. package/dist/src/components/forms/SearchObjectsFromDB.js +1 -1
  10. package/dist/src/components/forms/SearchableDropdown.js +1 -1
  11. package/dist/src/components/forms/uploads/S3MultiUploader.js +1 -1
  12. package/dist/src/components/lib/index.js +1 -1
  13. package/dist/src/components/lib/index.js.map +1 -1
  14. package/dist/src/components/lib/phoneUtils.js +2 -0
  15. package/dist/src/components/lib/phoneUtils.js.map +1 -0
  16. package/dist/src/components/navbar/ChannelListAvatar.js +1 -1
  17. package/dist/src/components/navbar/SideNavbar.js +1 -1
  18. package/dist/src/components/status/ModalExamples.js +1 -1
  19. package/dist/src/components/ui/ComponentLists.js +1 -1
  20. package/dist/src/components/ui/pagination/Pagination.js +1 -1
  21. package/dist/src/components/ui/pagination/PaginationDemo.js +1 -1
  22. package/dist/src/components/ui/tables/IHubTable.js +1 -1
  23. package/dist/src/components/ui/tables/IHubTableServer.js +1 -1
  24. package/dist/src/components/ui/tables/utils/exportValues.js +2 -0
  25. package/dist/src/components/ui/tables/utils/exportValues.js.map +1 -0
  26. package/dist/src/components/ui/tables/utils/exportWriters.js +2 -0
  27. package/dist/src/components/ui/tables/utils/exportWriters.js.map +1 -0
  28. package/dist/src/components/ui/tables/utils/tableExport.js +2 -0
  29. package/dist/src/components/ui/tables/utils/tableExport.js.map +1 -0
  30. package/dist/src/types/__examples__/.next/types/app/components/forms/layout.d.ts +13 -0
  31. package/dist/src/types/__examples__/.next/types/app/components/forms/phone-number-input/page.d.ts +13 -0
  32. package/dist/src/types/__examples__/.next/types/app/components/layout.d.ts +13 -0
  33. package/dist/src/types/__examples__/.next/types/app/components/page.d.ts +13 -0
  34. package/dist/src/types/__examples__/.next/types/app/components/ui/s3-multi-uploader/page.d.ts +13 -0
  35. package/dist/src/types/__examples__/.next/types/app/layout.d.ts +13 -0
  36. package/dist/src/types/__examples__/.next/types/app/page.d.ts +13 -0
  37. package/dist/src/types/__examples__/.next/types/validator.d.ts +1 -0
  38. package/dist/src/types/__examples__/next.config.d.ts +3 -0
  39. package/dist/src/types/__examples__/src/app/api/auth/[...nextauth]/route.d.ts +1 -0
  40. package/dist/src/types/__examples__/src/app/api/auth/login/route.d.ts +2 -0
  41. package/dist/src/types/__examples__/src/app/api/components/docs/route.d.ts +14 -0
  42. package/dist/src/types/__examples__/src/app/api/components/recommend/route.d.ts +14 -0
  43. package/dist/src/types/__examples__/src/app/api/components/search/route.d.ts +50 -0
  44. package/dist/src/types/__examples__/src/app/api/fallback/route.d.ts +34 -0
  45. package/dist/src/types/__examples__/src/app/api/generate/route.d.ts +14 -0
  46. package/dist/src/types/__examples__/src/app/api/help/route.d.ts +14 -0
  47. package/dist/src/types/__examples__/src/app/api/mcp/route.d.ts +10 -0
  48. package/dist/src/types/__examples__/src/app/auth/layout.d.ts +4 -0
  49. package/dist/src/types/__examples__/src/app/auth/login/page.d.ts +2 -0
  50. package/dist/src/types/__examples__/src/app/auth/password-match/page.d.ts +1 -0
  51. package/dist/src/types/__examples__/src/app/code-display/layout.d.ts +4 -0
  52. package/dist/src/types/__examples__/src/app/code-display/page.d.ts +3 -0
  53. package/dist/src/types/__examples__/src/app/components/auth/client-detector/page.d.ts +1 -0
  54. package/dist/src/types/__examples__/src/app/components/auth/login-form/page.d.ts +2 -0
  55. package/dist/src/types/__examples__/src/app/components/auth/signup-form/page.d.ts +1 -0
  56. package/dist/src/types/__examples__/src/app/components/auth/username-email-checker/page.d.ts +1 -0
  57. package/dist/src/types/__examples__/src/app/components/charts/page.d.ts +1 -0
  58. package/dist/src/types/__examples__/src/app/components/forms/action-dropdown/page.d.ts +1 -0
  59. package/dist/src/types/__examples__/src/app/components/forms/animated-box/page.d.ts +1 -0
  60. package/dist/src/types/__examples__/src/app/components/forms/checkboxes/page.d.ts +1 -0
  61. package/dist/src/types/__examples__/src/app/components/forms/chips-input/page.d.ts +1 -0
  62. package/dist/src/types/__examples__/src/app/components/forms/date-input/page.d.ts +1 -0
  63. package/dist/src/types/__examples__/src/app/components/forms/date-input-picker/page.d.ts +1 -0
  64. package/dist/src/types/__examples__/src/app/components/forms/date-range-picker/page.d.ts +1 -0
  65. package/dist/src/types/__examples__/src/app/components/forms/drop-file/page.d.ts +1 -0
  66. package/dist/src/types/__examples__/src/app/components/forms/email-list/page.d.ts +1 -0
  67. package/dist/src/types/__examples__/src/app/components/forms/file-uploader/page.d.ts +1 -0
  68. package/dist/src/types/__examples__/src/app/components/forms/filter-array/page.d.ts +1 -0
  69. package/dist/src/types/__examples__/src/app/components/forms/filter-objects/page.d.ts +1 -0
  70. package/dist/src/types/__examples__/src/app/components/forms/form-error/page.d.ts +1 -0
  71. package/dist/src/types/__examples__/src/app/components/forms/input-amount/page.d.ts +1 -0
  72. package/dist/src/types/__examples__/src/app/components/forms/input-number/page.d.ts +1 -0
  73. package/dist/src/types/__examples__/src/app/components/forms/input-text/page.d.ts +1 -0
  74. package/dist/src/types/__examples__/src/app/components/forms/input-textarea/page.d.ts +1 -0
  75. package/dist/src/types/__examples__/src/app/components/forms/layout.d.ts +4 -0
  76. package/dist/src/types/__examples__/src/app/components/forms/message-display/page.d.ts +1 -0
  77. package/dist/src/types/__examples__/src/app/components/forms/multiple-email/page.d.ts +1 -0
  78. package/dist/src/types/__examples__/src/app/components/forms/password-field/page.d.ts +1 -0
  79. package/dist/src/types/__examples__/src/app/components/forms/phone-number-input/page.d.ts +1 -0
  80. package/dist/src/types/__examples__/src/app/components/forms/radio-button/page.d.ts +1 -0
  81. package/dist/src/types/__examples__/src/app/components/forms/search-field/page.d.ts +1 -0
  82. package/dist/src/types/__examples__/src/app/components/forms/search-objects-from-db/page.d.ts +1 -0
  83. package/dist/src/types/__examples__/src/app/components/forms/searchable-dropdown/page.d.ts +1 -0
  84. package/dist/src/types/__examples__/src/app/components/forms/time-picker/page.d.ts +1 -0
  85. package/dist/src/types/__examples__/src/app/components/forms/toggle-button/page.d.ts +1 -0
  86. package/dist/src/types/__examples__/src/app/components/forms/uploads/ihub-file-uploader/page.d.ts +1 -0
  87. package/dist/src/types/__examples__/src/app/components/layout.d.ts +4 -0
  88. package/dist/src/types/__examples__/src/app/components/navbars/breadcrumb/page.d.ts +1 -0
  89. package/dist/src/types/__examples__/src/app/components/navbars/responsive-navbar/page.d.ts +2 -0
  90. package/dist/src/types/__examples__/src/app/components/navbars/sidenav/page.d.ts +2 -0
  91. package/dist/src/types/__examples__/src/app/components/navbars/tabs/page.d.ts +1 -0
  92. package/dist/src/types/__examples__/src/app/components/page.d.ts +1 -0
  93. package/dist/src/types/__examples__/src/app/components/ui/actions/page.d.ts +1 -0
  94. package/dist/src/types/__examples__/src/app/components/ui/badges/page.d.ts +1 -0
  95. package/dist/src/types/__examples__/src/app/components/ui/card-grid/page.d.ts +1 -0
  96. package/dist/src/types/__examples__/src/app/components/ui/card-list/page.d.ts +1 -0
  97. package/dist/src/types/__examples__/src/app/components/ui/cards/page.d.ts +1 -0
  98. package/dist/src/types/__examples__/src/app/components/ui/color-picker/page.d.ts +1 -0
  99. package/dist/src/types/__examples__/src/app/components/ui/content-view-or-edit/page.d.ts +1 -0
  100. package/dist/src/types/__examples__/src/app/components/ui/content-viewer/page.d.ts +1 -0
  101. package/dist/src/types/__examples__/src/app/components/ui/create-button/page.d.ts +1 -0
  102. package/dist/src/types/__examples__/src/app/components/ui/dangerous-renderer/page.d.ts +1 -0
  103. package/dist/src/types/__examples__/src/app/components/ui/dialogs/page.d.ts +1 -0
  104. package/dist/src/types/__examples__/src/app/components/ui/dropdowns/page.d.ts +1 -0
  105. package/dist/src/types/__examples__/src/app/components/ui/ihub-text-editor/page.d.ts +1 -0
  106. package/dist/src/types/__examples__/src/app/components/ui/modals/page.d.ts +1 -0
  107. package/dist/src/types/__examples__/src/app/components/ui/or-divider/page.d.ts +1 -0
  108. package/dist/src/types/__examples__/src/app/components/ui/pagination/page.d.ts +1 -0
  109. package/dist/src/types/__examples__/src/app/components/ui/random-gradient-image/page.d.ts +1 -0
  110. package/dist/src/types/__examples__/src/app/components/ui/s3-multi-uploader/page.d.ts +1 -0
  111. package/dist/src/types/__examples__/src/app/components/ui/table-examples/page.d.ts +1 -0
  112. package/dist/src/types/__examples__/src/app/components/ui/table-server-examples/page.d.ts +1 -0
  113. package/dist/src/types/__examples__/src/app/components/ui/text-editor/page.d.ts +1 -0
  114. package/dist/src/types/__examples__/src/app/cursors/page.d.ts +2 -0
  115. package/dist/src/types/__examples__/src/app/examples/page.d.ts +1 -0
  116. package/dist/src/types/__examples__/src/app/layout.d.ts +11 -0
  117. package/dist/src/types/__examples__/src/app/libs/examples/loadscript/page.d.ts +8 -0
  118. package/dist/src/types/__examples__/src/app/libs/examples/modals/page.d.ts +1 -0
  119. package/dist/src/types/__examples__/src/app/libs/examples/paystacks/page.d.ts +1 -0
  120. package/dist/src/types/__examples__/src/app/libs/page.d.ts +1 -0
  121. package/dist/src/types/__examples__/src/app/page.d.ts +1 -0
  122. package/dist/src/types/__examples__/src/components/ComponentListing.d.ts +1 -0
  123. package/dist/src/types/__examples__/src/components/Forms.d.ts +2 -0
  124. package/dist/src/types/__examples__/src/components/Modals.d.ts +1 -0
  125. package/dist/src/types/__examples__/src/components/TestComponent.d.ts +1 -0
  126. package/dist/src/types/__examples__/src/components/TestPage.d.ts +2 -0
  127. package/dist/src/types/__examples__/src/components/auth/ClientDetectorExample.d.ts +3 -0
  128. package/dist/src/types/__examples__/src/components/auth/IsUsernameEmailTakenExample.d.ts +3 -0
  129. package/dist/src/types/__examples__/src/components/auth/LoginFormExample.d.ts +4 -0
  130. package/dist/src/types/__examples__/src/components/auth/SignUpFormExample.d.ts +3 -0
  131. package/dist/src/types/__examples__/src/components/auths/LoginExample.d.ts +4 -0
  132. package/dist/src/types/__examples__/src/components/auths/PasswordsMatchExample.d.ts +2 -0
  133. package/dist/src/types/__examples__/src/components/forms/ActionDropdownExample.d.ts +3 -0
  134. package/dist/src/types/__examples__/src/components/forms/AnimatedBoxExample.d.ts +3 -0
  135. package/dist/src/types/__examples__/src/components/forms/CheckboxesFieldExamples.d.ts +3 -0
  136. package/dist/src/types/__examples__/src/components/forms/ChipsInputExample.d.ts +6 -0
  137. package/dist/src/types/__examples__/src/components/forms/DateInputExample.d.ts +3 -0
  138. package/dist/src/types/__examples__/src/components/forms/DateInputPickerExample.d.ts +3 -0
  139. package/dist/src/types/__examples__/src/components/forms/DateInputPickerTimeExample.d.ts +10 -0
  140. package/dist/src/types/__examples__/src/components/forms/DateRangePickerExample.d.ts +3 -0
  141. package/dist/src/types/__examples__/src/components/forms/DateTimePickerExample.d.ts +3 -0
  142. package/dist/src/types/__examples__/src/components/forms/DropFileExample.d.ts +3 -0
  143. package/dist/src/types/__examples__/src/components/forms/EmailListExample.d.ts +3 -0
  144. package/dist/src/types/__examples__/src/components/forms/FileUploaderExample.d.ts +3 -0
  145. package/dist/src/types/__examples__/src/components/forms/FilterArrayExample.d.ts +3 -0
  146. package/dist/src/types/__examples__/src/components/forms/FilterObjectsExample.d.ts +3 -0
  147. package/dist/src/types/__examples__/src/components/forms/FormErrorExample.d.ts +3 -0
  148. package/dist/src/types/__examples__/src/components/forms/InputAmountExample.d.ts +3 -0
  149. package/dist/src/types/__examples__/src/components/forms/InputNumberExample.d.ts +3 -0
  150. package/dist/src/types/__examples__/src/components/forms/InputTextExample.d.ts +3 -0
  151. package/dist/src/types/__examples__/src/components/forms/InputTextareaExample.d.ts +3 -0
  152. package/dist/src/types/__examples__/src/components/forms/MessageDisplayExample.d.ts +3 -0
  153. package/dist/src/types/__examples__/src/components/forms/MultipleEmailExample.d.ts +3 -0
  154. package/dist/src/types/__examples__/src/components/forms/PasswordFieldExample.d.ts +3 -0
  155. package/dist/src/types/__examples__/src/components/forms/PhoneNumberInputExample.d.ts +3 -0
  156. package/dist/src/types/__examples__/src/components/forms/RadioButtonExample.d.ts +6 -0
  157. package/dist/src/types/__examples__/src/components/forms/SearchFieldExample.d.ts +3 -0
  158. package/dist/src/types/__examples__/src/components/forms/SearchObjectsFromDBExample.d.ts +1 -0
  159. package/dist/src/types/__examples__/src/components/forms/SearchableDropdownExample.d.ts +3 -0
  160. package/dist/src/types/__examples__/src/components/forms/SignUpFormExample.d.ts +6 -0
  161. package/dist/src/types/__examples__/src/components/forms/SubmitBtnExample.d.ts +3 -0
  162. package/dist/src/types/__examples__/src/components/forms/TextFieldExample.d.ts +3 -0
  163. package/dist/src/types/__examples__/src/components/forms/TimePickerExample.d.ts +3 -0
  164. package/dist/src/types/__examples__/src/components/forms/ToggleButtonExample.d.ts +1 -0
  165. package/dist/src/types/__examples__/src/components/forms/uploads/IhubFileUploaderDocs.d.ts +3 -0
  166. package/dist/src/types/__examples__/src/components/forms/uploads/IhubFileUploaderSample.d.ts +6 -0
  167. package/dist/src/types/__examples__/src/components/navbars/BreadcrumbExample.d.ts +1 -0
  168. package/dist/src/types/__examples__/src/components/navbars/CursorProviders.d.ts +1 -0
  169. package/dist/src/types/__examples__/src/components/navbars/MainFooter.d.ts +2 -0
  170. package/dist/src/types/__examples__/src/components/navbars/MainNavigation.d.ts +2 -0
  171. package/dist/src/types/__examples__/src/components/navbars/PageNavigation.d.ts +2 -0
  172. package/dist/src/types/__examples__/src/components/navbars/ResponsiveNavbarControlledExample.d.ts +1 -0
  173. package/dist/src/types/__examples__/src/components/navbars/ResponsiveNavbarExample.d.ts +2 -0
  174. package/dist/src/types/__examples__/src/components/navbars/SideNavbarExample.d.ts +3 -0
  175. package/dist/src/types/__examples__/src/components/navbars/TabsExample.d.ts +1 -0
  176. package/dist/src/types/__examples__/src/components/tabs/TabsDemo.d.ts +2 -0
  177. package/dist/src/types/__examples__/src/components/tabs/TabsExample.d.ts +3 -0
  178. package/dist/src/types/__examples__/src/components/tabs/VerticalTabsExample.d.ts +3 -0
  179. package/dist/src/types/__examples__/src/components/ui/ActionExamples.d.ts +2 -0
  180. package/dist/src/types/__examples__/src/components/ui/BadgeExamples.d.ts +3 -0
  181. package/dist/src/types/__examples__/src/components/ui/CardExamples.d.ts +1 -0
  182. package/dist/src/types/__examples__/src/components/ui/CardGridExample.d.ts +3 -0
  183. package/dist/src/types/__examples__/src/components/ui/CardListExample.d.ts +3 -0
  184. package/dist/src/types/__examples__/src/components/ui/ChartExamples.d.ts +3 -0
  185. package/dist/src/types/__examples__/src/components/ui/CodebaseLink.d.ts +4 -0
  186. package/dist/src/types/__examples__/src/components/ui/ColorPickerExample.d.ts +3 -0
  187. package/dist/src/types/__examples__/src/components/ui/ContentFormTextEditor.d.ts +1 -0
  188. package/dist/src/types/__examples__/src/components/ui/ContentViewOrEditExample.d.ts +3 -0
  189. package/dist/src/types/__examples__/src/components/ui/ContentViewOrEditSample.d.ts +1 -0
  190. package/dist/src/types/__examples__/src/components/ui/ContentViewerExample.d.ts +3 -0
  191. package/dist/src/types/__examples__/src/components/ui/CreateButtonExample.d.ts +3 -0
  192. package/dist/src/types/__examples__/src/components/ui/CustomTextEditorExample.d.ts +3 -0
  193. package/dist/src/types/__examples__/src/components/ui/DangerousRendererExample.d.ts +1 -0
  194. package/dist/src/types/__examples__/src/components/ui/DialogExample.d.ts +3 -0
  195. package/dist/src/types/__examples__/src/components/ui/DropdownExamples.d.ts +2 -0
  196. package/dist/src/types/__examples__/src/components/ui/IHubTextEditorExample.d.ts +3 -0
  197. package/dist/src/types/__examples__/src/components/ui/ListStylesDemo.d.ts +1 -0
  198. package/dist/src/types/__examples__/src/components/ui/ListStylesDemoTwo.d.ts +1 -0
  199. package/dist/src/types/__examples__/src/components/ui/OrDividerExample.d.ts +3 -0
  200. package/dist/src/types/__examples__/src/components/ui/PaginationExample.d.ts +3 -0
  201. package/dist/src/types/__examples__/src/components/ui/RandomGradientImageExample.d.ts +3 -0
  202. package/dist/src/types/__examples__/src/components/ui/S3MultiUploaderExample.d.ts +3 -0
  203. package/dist/src/types/__examples__/src/components/ui/StatusIconExample.d.ts +3 -0
  204. package/dist/src/types/__examples__/src/components/ui/TableExamples.d.ts +3 -0
  205. package/dist/src/types/__examples__/src/components/ui/TableServerExamples.d.ts +1 -0
  206. package/dist/src/types/__examples__/src/lib/api.d.ts +29 -0
  207. package/dist/src/types/__examples__/src/lib/hooks.d.ts +76 -0
  208. package/dist/src/types/__examples__/src/types/components.d.ts +144 -0
  209. package/dist/src/types/assets/svgs/SVGs.d.ts +36 -0
  210. package/dist/src/types/components/forms/PhoneNumberInput.d.ts +56 -13
  211. package/dist/src/types/components/forms/uploads/S3MultiUploader.d.ts +12 -6
  212. package/dist/src/types/components/lib/index.d.ts +1 -0
  213. package/dist/src/types/components/lib/phoneUtils.d.ts +99 -0
  214. package/dist/src/types/components/lib/redux/slices/channelSlice/channelDetails.d.ts +1 -1
  215. package/dist/src/types/components/lib/redux/slices/channelSlice/instructorChannelList.d.ts +1 -1
  216. package/dist/src/types/components/lib/redux/slices/courseSlice/courseDetails.d.ts +1 -1
  217. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterDuration.d.ts +2 -2
  218. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterLevel.d.ts +2 -2
  219. package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterSubject.d.ts +2 -2
  220. package/dist/src/types/components/lib/redux/slices/courseSlice/courseModules.d.ts +3 -3
  221. package/dist/src/types/components/lib/redux/slices/courseSlice/courseOverview.d.ts +1 -1
  222. package/dist/src/types/components/lib/redux/slices/courseSlice/courseSearch.d.ts +1 -1
  223. package/dist/src/types/components/lib/redux/slices/courseSlice/stepContent.d.ts +1 -1
  224. package/dist/src/types/components/lib/redux/slices/courseSlice/stepQuestions.d.ts +6 -6
  225. package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestamp.d.ts +1 -1
  226. package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestampObject.d.ts +1 -1
  227. package/dist/src/types/components/lib/redux/slices/navigationSlice/IPAdress.d.ts +1 -1
  228. package/dist/src/types/components/ui/tables/IHubTable.d.ts +5 -8
  229. package/dist/src/types/components/ui/tables/IHubTableServer.d.ts +5 -8
  230. package/dist/src/types/components/ui/tables/utils/exportValues.d.ts +32 -0
  231. package/dist/src/types/components/ui/tables/utils/exportWriters.d.ts +17 -0
  232. package/dist/src/types/components/ui/tables/utils/tableExport.d.ts +42 -0
  233. package/dist/src/types/index.d.ts +3 -1
  234. package/dist/src/types/types/index.d.ts +80 -15
  235. package/dist/tsconfig.build.tsbuildinfo +1 -1
  236. package/dist/tsconfig.tsbuildinfo +1 -0
  237. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { channelDetailsSliceState } from "@/types/redux";
3
3
  export declare const channelDetails: import("@reduxjs/toolkit").Slice<channelDetailsSliceState, {
4
4
  set: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  id: string;
8
8
  }, action: PayloadAction<object>) => void;
9
9
  }, "channelDetails", "channelDetails", import("@reduxjs/toolkit").SliceSelectors<channelDetailsSliceState>>;
@@ -3,7 +3,7 @@ import { instructorChannelListSliceState } from "@/types/redux";
3
3
  export declare const instructorChannelList: import("@reduxjs/toolkit").Slice<instructorChannelListSliceState, {
4
4
  set: (state: {
5
5
  value: string[];
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  id: string;
8
8
  }, action: PayloadAction<[]>) => void;
9
9
  }, "instructorChannelList", "instructorChannelList", import("@reduxjs/toolkit").SliceSelectors<instructorChannelListSliceState>>;
@@ -3,7 +3,7 @@ import { courseDetailsSliceState } from "@/types/redux";
3
3
  export declare const courseDetails: import("@reduxjs/toolkit").Slice<courseDetailsSliceState, {
4
4
  set: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  id: string;
8
8
  }, action: PayloadAction<object>) => void;
9
9
  }, "courseDetails", "courseDetails", import("@reduxjs/toolkit").SliceSelectors<courseDetailsSliceState>>;
@@ -3,10 +3,10 @@ import { courseFilterDurationSliceState } from "@/types/redux";
3
3
  export declare const courseFilterDuration: import("@reduxjs/toolkit").Slice<courseFilterDurationSliceState, {
4
4
  increment: (state: {
5
5
  value: string[];
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<string>) => void;
8
8
  decrement: (state: {
9
9
  value: string[];
10
- status: "failed" | "loading" | "idle";
10
+ status: "loading" | "failed" | "idle";
11
11
  }, action: PayloadAction<string>) => void;
12
12
  }, "filterDuration", "filterDuration", import("@reduxjs/toolkit").SliceSelectors<courseFilterDurationSliceState>>;
@@ -3,10 +3,10 @@ import { courseFilterLevelSliceState } from "@/types/redux";
3
3
  export declare const courseFilterLevel: import("@reduxjs/toolkit").Slice<courseFilterLevelSliceState, {
4
4
  increment: (state: {
5
5
  value: string[];
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<string>) => void;
8
8
  decrement: (state: {
9
9
  value: string[];
10
- status: "failed" | "loading" | "idle";
10
+ status: "loading" | "failed" | "idle";
11
11
  }, action: PayloadAction<string>) => void;
12
12
  }, "filterLevel", "filterLevel", import("@reduxjs/toolkit").SliceSelectors<courseFilterLevelSliceState>>;
@@ -3,10 +3,10 @@ import { courseFilterSubjectSliceState } from "@/types/redux";
3
3
  export declare const courseFilterSubject: import("@reduxjs/toolkit").Slice<courseFilterSubjectSliceState, {
4
4
  increment: (state: {
5
5
  value: number[];
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<number>) => void;
8
8
  decrement: (state: {
9
9
  value: number[];
10
- status: "failed" | "loading" | "idle";
10
+ status: "loading" | "failed" | "idle";
11
11
  }, action: PayloadAction<number>) => void;
12
12
  }, "filterSubject", "filterSubject", import("@reduxjs/toolkit").SliceSelectors<courseFilterSubjectSliceState>>;
@@ -6,20 +6,20 @@ export declare const courseModules: import("@reduxjs/toolkit").Slice<CourseModul
6
6
  id: string;
7
7
  title: string;
8
8
  }[];
9
- status: "failed" | "loading" | "idle";
9
+ status: "loading" | "failed" | "idle";
10
10
  }, action: PayloadAction<CourseModule[]>) => void;
11
11
  addModule: (state: {
12
12
  value: {
13
13
  id: string;
14
14
  title: string;
15
15
  }[];
16
- status: "failed" | "loading" | "idle";
16
+ status: "loading" | "failed" | "idle";
17
17
  }, action: PayloadAction<CourseModule>) => void;
18
18
  decrement: (state: {
19
19
  value: {
20
20
  id: string;
21
21
  title: string;
22
22
  }[];
23
- status: "failed" | "loading" | "idle";
23
+ status: "loading" | "failed" | "idle";
24
24
  }, action: PayloadAction<string>) => void;
25
25
  }, "courseModules", "courseModules", import("@reduxjs/toolkit").SliceSelectors<CourseModulesSliceState>>;
@@ -3,7 +3,7 @@ import { courseOverviewSliceState } from "@/types/redux";
3
3
  export declare const courseOverview: import("@reduxjs/toolkit").Slice<courseOverviewSliceState, {
4
4
  set: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  id: string;
8
8
  }, action: PayloadAction<object>) => void;
9
9
  }, "courseOverview", "courseOverview", import("@reduxjs/toolkit").SliceSelectors<courseOverviewSliceState>>;
@@ -3,6 +3,6 @@ import { courseSearchSliceState } from "@/types/redux";
3
3
  export declare const courseSearch: import("@reduxjs/toolkit").Slice<courseSearchSliceState, {
4
4
  input: (state: {
5
5
  value: string;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<string>) => void;
8
8
  }, "courseSearch", "courseSearch", import("@reduxjs/toolkit").SliceSelectors<courseSearchSliceState>>;
@@ -3,7 +3,7 @@ import { stepContentSliceState } from "@/types/redux";
3
3
  export declare const stepContent: import("@reduxjs/toolkit").Slice<stepContentSliceState, {
4
4
  set: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  id: string;
8
8
  }, action: PayloadAction<object>) => void;
9
9
  }, "stepContent", "stepContent", import("@reduxjs/toolkit").SliceSelectors<stepContentSliceState>>;
@@ -13,7 +13,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
13
13
  likes: number;
14
14
  types: string;
15
15
  }[];
16
- status: "failed" | "loading" | "idle";
16
+ status: "loading" | "failed" | "idle";
17
17
  id: string;
18
18
  }, action: PayloadAction<Question[]>) => void;
19
19
  increment: (state: {
@@ -28,7 +28,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
28
28
  likes: number;
29
29
  types: string;
30
30
  }[];
31
- status: "failed" | "loading" | "idle";
31
+ status: "loading" | "failed" | "idle";
32
32
  id: string;
33
33
  }, action: PayloadAction<Question>) => void;
34
34
  decrement: (state: {
@@ -43,7 +43,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
43
43
  likes: number;
44
44
  types: string;
45
45
  }[];
46
- status: "failed" | "loading" | "idle";
46
+ status: "loading" | "failed" | "idle";
47
47
  id: string;
48
48
  }, action: PayloadAction<string>) => void;
49
49
  answer: (state: {
@@ -58,7 +58,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
58
58
  likes: number;
59
59
  types: string;
60
60
  }[];
61
- status: "failed" | "loading" | "idle";
61
+ status: "loading" | "failed" | "idle";
62
62
  id: string;
63
63
  }, action: PayloadAction<{
64
64
  question: string;
@@ -76,7 +76,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
76
76
  likes: number;
77
77
  types: string;
78
78
  }[];
79
- status: "failed" | "loading" | "idle";
79
+ status: "loading" | "failed" | "idle";
80
80
  id: string;
81
81
  }, action: PayloadAction<{
82
82
  question: string;
@@ -96,7 +96,7 @@ export declare const stepQuestions: import("@reduxjs/toolkit").Slice<CourseFilte
96
96
  likes: number;
97
97
  types: string;
98
98
  }[];
99
- status: "failed" | "loading" | "idle";
99
+ status: "loading" | "failed" | "idle";
100
100
  id: string;
101
101
  }, action: PayloadAction<{
102
102
  answer_question_id: string;
@@ -3,6 +3,6 @@ import { videoTimestampSliceState } from "@/types/redux";
3
3
  export declare const videoTimestamp: import("@reduxjs/toolkit").Slice<videoTimestampSliceState, {
4
4
  seconds: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<object>) => void;
8
8
  }, "videoTimestamp", "videoTimestamp", import("@reduxjs/toolkit").SliceSelectors<videoTimestampSliceState>>;
@@ -3,6 +3,6 @@ import { videoTimestampObjectSliceState } from "@/types/redux";
3
3
  export declare const videoTimestampObject: import("@reduxjs/toolkit").Slice<videoTimestampObjectSliceState, {
4
4
  add: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<object>) => void;
8
8
  }, "videoTimestampObject", "videoTimestampObject", import("@reduxjs/toolkit").SliceSelectors<videoTimestampObjectSliceState>>;
@@ -3,6 +3,6 @@ import { IPAdressSliceState } from "@/types/redux";
3
3
  export declare const IPAdress: import("@reduxjs/toolkit").Slice<IPAdressSliceState, {
4
4
  set: (state: {
5
5
  value: object;
6
- status: "failed" | "loading" | "idle";
6
+ status: "loading" | "failed" | "idle";
7
7
  }, action: PayloadAction<object>) => void;
8
8
  }, "IPAdress", "IPAdress", import("@reduxjs/toolkit").SliceSelectors<IPAdressSliceState>>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TableColumnType } from "@/types";
2
+ import { TableColumnType, TableExportOptionsType } from "@/types";
3
3
  export interface FilterState {
4
4
  [key: string]: string | string[] | null;
5
5
  }
@@ -33,12 +33,7 @@ export interface TableProps<T> {
33
33
  onSelectionChange?: (selectedRows: T[]) => void;
34
34
  expandable?: boolean;
35
35
  renderExpandedRow?: (row: T) => React.ReactNode;
36
- exportOptions?: {
37
- csv?: boolean;
38
- excel?: boolean;
39
- pdf?: boolean;
40
- fileName?: string;
41
- };
36
+ exportOptions?: TableExportOptionsType;
42
37
  refreshable?: boolean;
43
38
  onRefresh?: () => Promise<void>;
44
39
  /** Error message to display (e.g. from API response `detail` or `error` key) */
@@ -109,7 +104,9 @@ export interface TableProps<T> {
109
104
  * @prop {function} onSelectionChange - The function to call when selection changes
110
105
  * @prop {boolean} expandable - Whether to allow row expansion
111
106
  * @prop {function} renderExpandedRow - The function to call to render the expanded row
112
- * @prop {object} exportOptions - The options for exporting the table
107
+ * @prop {TableExportOptionsType} exportOptions - Export settings: which buttons to
108
+ * show (csv/excel/pdf), fileName, allFields (export the whole record) and maxRows.
109
+ * Exports cover the filtered + sorted data, not just the current page.
113
110
  * @prop {boolean} refreshable - Whether to allow refreshing the table
114
111
  * @prop {function} onRefresh - The function to call when the table is refreshed
115
112
  * @prop {string} error - Error message to display (e.g. from API response detail or error key)
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ApiResponseType, SearchParamsType, TableColumnType } from "@/types";
2
+ import { ApiResponseType, SearchParamsType, TableColumnType, TableExportOptionsType } from "@/types";
3
3
  import { FetchParamsType } from "@/types";
4
4
  export interface IHubTableServerRef {
5
5
  refresh: () => void;
@@ -24,12 +24,7 @@ interface IHubTableServerPropsType<T> {
24
24
  searchDebounceMs?: number;
25
25
  enableSorting?: boolean;
26
26
  enableExport?: boolean;
27
- exportOptions?: {
28
- csv?: boolean;
29
- excel?: boolean;
30
- pdf?: boolean;
31
- fileName?: string;
32
- };
27
+ exportOptions?: TableExportOptionsType;
33
28
  rowsPerPageOptions?: number[];
34
29
  defaultRowsPerPage?: number;
35
30
  onRowClick?: (row: T) => void;
@@ -98,7 +93,9 @@ interface IHubTableServerPropsType<T> {
98
93
  * @prop {boolean} showSearch - Whether to show the search input
99
94
  * @prop {boolean} enableSorting - Whether to enable sorting
100
95
  * @prop {boolean} enableExport - Whether to enable export
101
- * @prop {Object} exportOptions - The options for the export
96
+ * @prop {TableExportOptionsType} exportOptions - Export settings: which buttons to
97
+ * show (csv/excel/pdf), fileName, allFields (export the whole record), batchSize
98
+ * and maxRows. Exports cover every page matching the current filters.
102
99
  * @prop {number[]} rowsPerPageOptions - The options for the rows per page
103
100
  * @prop {number} defaultRowsPerPage - The default rows per page
104
101
  * @prop {Function} onRowClick - The callback for the row click
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { TableColumnType } from "../../../../types";
3
+ /** Pull readable text out of a React node so `cell`/function accessors can be exported. */
4
+ export declare const extractTextFromNode: (node: React.ReactNode) => string;
5
+ /**
6
+ * Flatten any cell value into a single export-safe string.
7
+ * Arrays become "a | b | c", objects fall back to a label key then JSON.
8
+ */
9
+ export declare const stringifyExportValue: (value: unknown) => string;
10
+ /**
11
+ * Resolve the export value for a single column/row pair.
12
+ *
13
+ * Resolution order:
14
+ * 1. `column.exportValue` — explicit, always wins.
15
+ * 2. String accessor — nested lookup (`user.email` works), falling back to
16
+ * `cell` when the raw value is empty.
17
+ * 3. Function accessor — invoked, then flattened (React nodes become text).
18
+ * 4. `cell` — invoked, then flattened.
19
+ */
20
+ export declare const resolveColumnExportValue: <T>(row: T, column: TableColumnType<T>, index: number) => string;
21
+ /** Columns that should appear in an export (anything not opted out via `exportable: false`). */
22
+ export declare const getExportableColumns: <T>(columns: TableColumnType<T>[]) => TableColumnType<T>[];
23
+ /**
24
+ * Flatten a raw record into `{ header: value }` pairs covering every leaf field,
25
+ * used when `exportOptions.allFields` is enabled so nothing in the API payload is lost.
26
+ */
27
+ export declare const flattenRecord: (record: Record<string, any>, parentKey?: string, accumulator?: Record<string, string>) => Record<string, string>;
28
+ /** Build headers + rows from every leaf field across the dataset (union of keys, stable order). */
29
+ export declare const buildAllFieldsMatrix: <T>(data: T[]) => {
30
+ headers: string[];
31
+ rows: string[][];
32
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Browser file writers for table exports.
3
+ * CSV is dependency-free; Excel uses `xlsx` and PDF uses `jspdf`, both loaded
4
+ * lazily so tables that never export don't pay the bundle cost.
5
+ */
6
+ /**
7
+ * Escape a single CSV cell: quote when needed, double inner quotes, and
8
+ * neutralise spreadsheet formula injection (`=`, `+`, `-`, `@` prefixes).
9
+ */
10
+ export declare const escapeCsvValue: (value: string) => string;
11
+ /** Build the CSV text (with UTF-8 BOM so Excel renders accents correctly). */
12
+ export declare const buildCsv: (headers: string[], rows: string[][]) => string;
13
+ export declare const downloadCsv: (headers: string[], rows: string[][], fileName: string) => void;
14
+ /** Write a real .xlsx workbook via SheetJS. Throws if `xlsx` cannot be loaded. */
15
+ export declare const downloadExcel: (headers: string[], rows: string[][], fileName: string, sheetName?: string) => Promise<void>;
16
+ /** Render a paginated landscape table to PDF via jsPDF. Throws if `jspdf` is missing. */
17
+ export declare const downloadPdf: (headers: string[], rows: string[][], fileName: string, title?: string) => Promise<void>;
@@ -0,0 +1,42 @@
1
+ import { TableColumnType, TableExportOptionsType } from "../../../../types";
2
+ export type TableExportFormatType = "csv" | "excel" | "pdf";
3
+ interface BuildMatrixParamsType<T> {
4
+ data: T[];
5
+ columns: TableColumnType<T>[];
6
+ showRowNumbers?: boolean;
7
+ rowNumberStartFrom?: number;
8
+ /** Export every leaf field of the raw record instead of the visible columns. */
9
+ allFields?: boolean;
10
+ }
11
+ /**
12
+ * Turn table data into a headers/rows matrix.
13
+ * Unlike the previous implementation this keeps columns with function accessors,
14
+ * resolves dotted accessors, and falls back to `cell` output — so no column is
15
+ * silently dropped from the file.
16
+ */
17
+ export declare const buildExportMatrix: <T>({ data, columns, showRowNumbers, rowNumberStartFrom, allFields, }: BuildMatrixParamsType<T>) => {
18
+ headers: string[];
19
+ rows: string[][];
20
+ };
21
+ interface ExportTableDataParamsType<T> extends BuildMatrixParamsType<T> {
22
+ format: TableExportFormatType;
23
+ fileName?: string;
24
+ /** Used as the PDF heading and the Excel sheet name. */
25
+ title?: string;
26
+ }
27
+ /**
28
+ * Build the matrix for `data` and download it in the requested format.
29
+ * Rejects on failure (missing optional dependency, write error) so callers can
30
+ * surface the problem instead of the button doing nothing.
31
+ */
32
+ export declare const exportTableData: <T>({ format, fileName, title, ...matrixParams }: ExportTableDataParamsType<T>) => Promise<void>;
33
+ /**
34
+ * Fill in file-generation defaults. Button visibility flags (csv/excel/pdf) are
35
+ * left untouched so the caller keeps control of which buttons render.
36
+ */
37
+ export declare const resolveExportOptions: (exportOptions?: TableExportOptionsType) => TableExportOptionsType & {
38
+ fileName: string;
39
+ batchSize: number;
40
+ maxRows: number;
41
+ };
42
+ export {};
@@ -21,6 +21,8 @@ export { default as FromInstinctHub } from "./components/auth/FromInstinctHub";
21
21
  export { default as LoginForm } from "./components/auth/LoginForm";
22
22
  export { default as ReactClientProviders } from "./components/auth/ReactClientProviders";
23
23
  export { default as PhoneNumberInput } from "./components/forms/PhoneNumberInput";
24
+ export type { PhoneNumberInputPropsType } from "./components/forms/PhoneNumberInput";
25
+ export type { PhoneNumberValueType, PhoneCountryType, ParsedPhoneNumberType, } from "./components/lib/phoneUtils";
24
26
  export { default as RadioField } from "./components/forms/RadioField";
25
27
  export { default as RadioSimple } from "./components/forms/RadioSimple";
26
28
  export { default as ReactTimeAgo } from "./components/forms/ReactTimeAgo";
@@ -68,7 +70,7 @@ export { default as SideNavbar } from "./components/navbar/SideNavbar";
68
70
  export { default as FileUploader } from "./components/forms/uploads/FileUploader";
69
71
  export { default as IhubFileUploader } from "./components/forms/uploads/IhubFileUploader";
70
72
  export { default as S3MultiUploader } from "./components/forms/uploads/S3MultiUploader";
71
- export type { S3UploadResponseType, S3MultiUploaderProps } from "./types";
73
+ export type { S3UploadResponseType, S3MultiUploaderProps, PresignedUploadResult } from "./types";
72
74
  export { default as CustomTextEditor } from "./components/ui/editor/CustomTextEditor";
73
75
  export { default as IHubTextEditor } from "./components/ui/editor/ihub-editor";
74
76
  export type { IHubTextEditorProps, IHubEditorFeatures } from "./components/ui/editor/ihub-editor";
@@ -31,11 +31,18 @@ export interface DateInputProps {
31
31
  required?: boolean;
32
32
  disabled?: boolean;
33
33
  }
34
+ export type { PhoneCountryType, PhoneNumberValueType, ParsedPhoneNumberType, } from "../components/lib/phoneUtils";
35
+ export type { PhoneNumberInputPropsType } from "../components/forms/PhoneNumberInput";
36
+ /** @deprecated Use `PhoneNumberInputPropsType`. */
34
37
  export interface PhoneNumberInputProps {
35
- label: string;
36
- name: string;
37
- value: string;
38
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
38
+ label?: string;
39
+ names?: string;
40
+ phoneCode?: string;
41
+ defaultValues?: {
42
+ mobile?: string;
43
+ phone_code?: string;
44
+ [key: string]: any;
45
+ };
39
46
  required?: boolean;
40
47
  disabled?: boolean;
41
48
  }
@@ -104,11 +111,28 @@ export interface SearchParamsPageProps {
104
111
  params: Promise<SearchParamsType>;
105
112
  searchParams: Promise<SearchParamsType>;
106
113
  }
114
+ /**
115
+ * Returned by the consumer's `getPresignedUrl` function.
116
+ * The server generates this — never expose AWS credentials to the browser.
117
+ */
118
+ export interface PresignedUploadResult {
119
+ /** Short-lived presigned PUT URL (S3 or compatible). Expires in ≤ 60 s. */
120
+ url: string;
121
+ /** S3 object key assigned by the server (used for DB records). */
122
+ key: string;
123
+ /** Full public/CDN URL for the uploaded file. */
124
+ cdnUrl: string;
125
+ /**
126
+ * Server-validated Content-Type to use for the PUT request.
127
+ * The server must derive this from an allowlist — never use the raw
128
+ * browser File.type value here.
129
+ */
130
+ contentType: string;
131
+ }
107
132
  /**
108
133
  * Response interface for S3 uploads
109
134
  */
110
135
  export interface S3UploadResponseType {
111
- bucket: string;
112
136
  title: string;
113
137
  key: string;
114
138
  content_type: string;
@@ -163,12 +187,17 @@ export interface FileUploaderType {
163
187
  }
164
188
  /**
165
189
  * Props for the S3MultiUploader component — multi-file queue uploader
166
- * that uploads directly to S3 with per-file progress tracking.
190
+ * with per-file progress tracking via server-issued presigned URLs.
191
+ *
192
+ * Security model: this component never touches AWS credentials.
193
+ * Supply a `getPresignedUrl` function that calls your server endpoint.
194
+ * The server validates auth, MIME type, size, and storage path, then
195
+ * returns a short-lived presigned PUT URL.
167
196
  */
168
197
  export interface S3MultiUploaderProps {
169
- /** Accepted MIME types / extensions (e.g. "image/*", "video/*", ".pdf,.docx") */
198
+ /** Accepted MIME types / extensions (e.g. "image/*", "video/*", ".pdf,.docx"). Client-side hint only — enforce server-side too. */
170
199
  accepts: string;
171
- /** Maximum file size per file in bytes (default: 524 288 000 = 500 MB) */
200
+ /** Maximum file size per file in bytes (default: 524 288 000 = 500 MB). Client-side hint only — enforce via presigned URL policy. */
172
201
  maxFileSizeBytes?: number;
173
202
  /**
174
203
  * Maximum number of files that can be enqueued per batch.
@@ -181,17 +210,29 @@ export interface S3MultiUploaderProps {
181
210
  * Clamped to 1–4.
182
211
  */
183
212
  concurrency?: number;
184
- /** S3 username prefix used in the generated object key */
185
- username: string;
186
- /** S3 folder prefix (e.g. process.env.NEXT_PUBLIC_AWS_LOCATION) */
187
- location: string;
188
- /** CDN base URL prepended to the key in the response (e.g. process.env.NEXT_PUBLIC_VIDEO_URL) */
189
- cdnBase: string;
213
+ /**
214
+ * Called before each file upload. Must call a server endpoint that
215
+ * authenticates the user, validates the file metadata, and returns a
216
+ * short-lived presigned PUT URL together with the resolved storage key
217
+ * and CDN URL. Never derive or cache presigned URLs on the client.
218
+ *
219
+ * @example
220
+ * getPresignedUrl={async (file) => {
221
+ * const res = await fetch("/api/upload/presign", {
222
+ * method: "POST",
223
+ * headers: { "Content-Type": "application/json" },
224
+ * body: JSON.stringify({ name: file.name, type: file.type, size: file.size }),
225
+ * });
226
+ * if (!res.ok) throw new Error("Failed to get upload URL");
227
+ * return res.json(); // { url, key, cdnUrl, contentType }
228
+ * }}
229
+ */
230
+ getPresignedUrl: (file: File) => Promise<PresignedUploadResult>;
190
231
  /** Dropzone label text */
191
232
  label?: string;
192
233
  /** Dropzone hint text (shown below the label) */
193
234
  hint?: string;
194
- /** Called after each file is successfully uploaded to S3 */
235
+ /** Called after each file is successfully uploaded */
195
236
  onFileComplete: (response: S3UploadResponseType) => void;
196
237
  /** Called when every item in the current batch reaches a terminal state (complete or error) */
197
238
  onQueueComplete?: () => void;
@@ -240,6 +281,30 @@ export interface TableColumnType<T> {
240
281
  width?: string;
241
282
  cell?: (row: T) => React.ReactNode;
242
283
  tooltip?: boolean;
284
+ /**
285
+ * Exact value to write when exporting this column (CSV/Excel/PDF).
286
+ * Use it when the rendered cell can't be flattened to useful text.
287
+ */
288
+ exportValue?: (row: T, index?: number) => unknown;
289
+ /** Set to `false` to leave the column out of exports (e.g. an actions column). */
290
+ exportable?: boolean;
291
+ }
292
+ /** Options controlling the export buttons and generated files. */
293
+ export interface TableExportOptionsType {
294
+ csv?: boolean;
295
+ excel?: boolean;
296
+ pdf?: boolean;
297
+ /** File name without extension. Defaults to "table-export". */
298
+ fileName?: string;
299
+ /**
300
+ * Export every leaf field of each raw record instead of only the visible
301
+ * columns — nested objects are flattened to `parent.child` headers.
302
+ */
303
+ allFields?: boolean;
304
+ /** Rows fetched per request while collecting the full dataset. Default 100. */
305
+ batchSize?: number;
306
+ /** Hard cap on exported rows. Default 5000. */
307
+ maxRows?: number;
243
308
  }
244
309
  export interface ServerPaginationInfoType {
245
310
  totalCount: number;