@solidxai/core-ui 0.1.7-beta.3 → 0.1.7-beta.5

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 (234) hide show
  1. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  2. package/dist/components/auth/AuthLayout.js +1 -1
  3. package/dist/components/auth/AuthLayout.js.map +1 -1
  4. package/dist/components/auth/AuthLayout.tsx +5 -3
  5. package/dist/components/auth/SolidLogin.js +3 -3
  6. package/dist/components/auth/SolidLogin.js.map +1 -1
  7. package/dist/components/auth/SolidLogin.tsx +2 -2
  8. package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
  9. package/dist/components/common/DropzonePlaceholder.js +1 -1
  10. package/dist/components/common/DropzonePlaceholder.js.map +1 -1
  11. package/dist/components/common/DropzonePlaceholder.tsx +8 -6
  12. package/dist/components/core/chatter/SolidChatter.d.ts +2 -1
  13. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  14. package/dist/components/core/chatter/SolidChatter.js +2 -4
  15. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  16. package/dist/components/core/chatter/SolidChatter.tsx +3 -4
  17. package/dist/components/core/chatter/SolidChatterHeader.d.ts +1 -0
  18. package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
  19. package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
  20. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  21. package/dist/components/core/chatter/SolidChatterHeader.tsx +4 -3
  22. package/dist/components/core/chatter/chatter.module.css +42 -32
  23. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js +1 -1
  24. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js.map +1 -1
  25. package/dist/components/core/common/SolidGenericImport/SolidGenericImport.tsx +2 -2
  26. package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +153 -30
  27. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
  28. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +7 -7
  29. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
  30. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +9 -10
  31. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts.map +1 -1
  32. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js +1 -1
  33. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js.map +1 -1
  34. package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.tsx +6 -4
  35. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts.map +1 -1
  36. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js +1 -1
  37. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js.map +1 -1
  38. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.tsx +3 -1
  39. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  40. package/dist/components/core/form/SolidFormActionHeader.js +13 -13
  41. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  42. package/dist/components/core/form/SolidFormActionHeader.tsx +21 -24
  43. package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
  44. package/dist/components/core/form/SolidFormFooter.js +1 -1
  45. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  46. package/dist/components/core/form/SolidFormFooter.tsx +0 -1
  47. package/dist/components/core/form/SolidFormUserViewLayout.js +1 -1
  48. package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
  49. package/dist/components/core/form/SolidFormUserViewLayout.tsx +1 -1
  50. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  51. package/dist/components/core/form/SolidFormView.js +22 -33
  52. package/dist/components/core/form/SolidFormView.js.map +1 -1
  53. package/dist/components/core/form/SolidFormView.tsx +38 -59
  54. package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
  55. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +12 -1
  56. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
  57. package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +1 -0
  58. package/dist/components/core/form/fields/SolidLongTextField.js +4 -4
  59. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  60. package/dist/components/core/form/fields/SolidLongTextField.tsx +4 -4
  61. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  62. package/dist/components/core/form/fields/SolidMediaMultipleField.js +14 -14
  63. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  64. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +35 -21
  65. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  66. package/dist/components/core/form/fields/SolidMediaSingleField.js +2 -2
  67. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  68. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +48 -34
  69. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  70. package/dist/components/core/form/fields/SolidPasswordField.js +2 -2
  71. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  72. package/dist/components/core/form/fields/SolidPasswordField.tsx +46 -42
  73. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  74. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +23 -27
  75. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  76. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +64 -66
  77. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  78. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +2 -6
  79. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  80. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +4 -7
  81. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  82. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +12 -15
  83. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  84. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +30 -16
  85. package/dist/components/core/form/fields/solidFields.module.css +86 -15
  86. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
  87. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
  88. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
  89. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
  90. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
  91. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.d.ts.map +1 -1
  92. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +18 -28
  93. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
  94. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +52 -48
  95. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
  96. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
  97. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
  98. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
  99. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
  100. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -1
  101. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +1 -1
  102. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
  103. package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +5 -4
  104. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  105. package/dist/components/core/kanban/KanbanBoard.js +11 -5
  106. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  107. package/dist/components/core/kanban/KanbanBoard.tsx +8 -0
  108. package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
  109. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  110. package/dist/components/core/kanban/KanbanCard.js +4 -4
  111. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  112. package/dist/components/core/kanban/KanbanCard.tsx +5 -4
  113. package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
  114. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  115. package/dist/components/core/kanban/KanbanColumn.js +3 -3
  116. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  117. package/dist/components/core/kanban/KanbanColumn.tsx +4 -3
  118. package/dist/components/core/list/SolidDataTable.d.ts +1 -0
  119. package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
  120. package/dist/components/core/list/SolidDataTable.js +19 -2
  121. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  122. package/dist/components/core/list/SolidDataTable.tsx +30 -2
  123. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  124. package/dist/components/core/list/SolidListView.js +1 -1
  125. package/dist/components/core/list/SolidListView.js.map +1 -1
  126. package/dist/components/core/list/SolidListView.tsx +1 -0
  127. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  128. package/dist/components/core/list/SolidListViewConfigure.tsx +1 -1
  129. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
  130. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
  131. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
  132. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
  133. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
  134. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
  135. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
  136. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
  137. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
  138. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
  139. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
  140. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
  141. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
  142. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
  143. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
  144. package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
  145. package/dist/components/core/locales/SolidChatterLocaleTabView.js +7 -4
  146. package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
  147. package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +28 -11
  148. package/dist/components/core/locales/SolidLocale.js +4 -4
  149. package/dist/components/core/locales/SolidLocale.js.map +1 -1
  150. package/dist/components/core/locales/SolidLocale.tsx +18 -18
  151. package/dist/components/core/locales/solid-locale.css +105 -7
  152. package/dist/components/core/model/CreateModel.js +2 -2
  153. package/dist/components/core/model/CreateModel.js.map +1 -1
  154. package/dist/components/core/model/CreateModel.tsx +2 -2
  155. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  156. package/dist/components/core/model/FieldMetaData.js +3 -3
  157. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  158. package/dist/components/core/model/FieldMetaData.tsx +45 -22
  159. package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts +7 -0
  160. package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts.map +1 -0
  161. package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js +138 -0
  162. package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js.map +1 -0
  163. package/dist/components/core/users/ApiKeysTab/ApiKeysTab.tsx +246 -0
  164. package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts +8 -0
  165. package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts.map +1 -0
  166. package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js +156 -0
  167. package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js.map +1 -0
  168. package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.tsx +184 -0
  169. package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts +9 -0
  170. package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts.map +1 -0
  171. package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js +37 -0
  172. package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js.map +1 -0
  173. package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.tsx +111 -0
  174. package/dist/components/core/users/ApiKeysTab/index.d.ts +4 -0
  175. package/dist/components/core/users/ApiKeysTab/index.d.ts.map +1 -0
  176. package/dist/components/core/users/ApiKeysTab/index.js +4 -0
  177. package/dist/components/core/users/ApiKeysTab/index.js.map +1 -0
  178. package/dist/components/core/users/ApiKeysTab/index.ts +3 -0
  179. package/dist/components/layout/AppSidebar.d.ts.map +1 -1
  180. package/dist/components/layout/AppSidebar.js +75 -7
  181. package/dist/components/layout/AppSidebar.js.map +1 -1
  182. package/dist/components/layout/AppSidebar.tsx +84 -7
  183. package/dist/components/layout/FilterMenu.js +2 -3
  184. package/dist/components/layout/FilterMenu.js.map +1 -1
  185. package/dist/components/layout/FilterMenu.tsx +3 -3
  186. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
  187. package/dist/components/shad-cn-ui/SolidCodeEditor.js +13 -7
  188. package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
  189. package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +22 -12
  190. package/dist/components/shad-cn-ui/SolidDatePicker.js +2 -1
  191. package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -1
  192. package/dist/components/shad-cn-ui/SolidDatePicker.tsx +1 -1
  193. package/dist/components/shad-cn-ui/SolidDialog.d.ts +2 -1
  194. package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
  195. package/dist/components/shad-cn-ui/SolidDialog.js +2 -2
  196. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  197. package/dist/components/shad-cn-ui/SolidDialog.tsx +6 -3
  198. package/dist/components/shad-cn-ui/SolidIcon.d.ts +2 -2
  199. package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -1
  200. package/dist/components/shad-cn-ui/SolidIcon.js +4 -3
  201. package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -1
  202. package/dist/components/shad-cn-ui/SolidIcon.tsx +15 -12
  203. package/dist/components/shad-cn-ui/SolidSelect.d.ts +2 -1
  204. package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
  205. package/dist/components/shad-cn-ui/SolidSelect.js +2 -2
  206. package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
  207. package/dist/components/shad-cn-ui/SolidSelect.tsx +3 -0
  208. package/dist/components/shad-cn-ui/SolidTextarea.d.ts +1 -1
  209. package/dist/components/shad-cn-ui/SolidTextarea.d.ts.map +1 -1
  210. package/dist/components/shad-cn-ui/SolidTextarea.js +3 -2
  211. package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -1
  212. package/dist/components/shad-cn-ui/SolidTextarea.tsx +17 -2
  213. package/dist/helpers/# no such endpoints exist, need to calle +3 -0
  214. package/dist/helpers/registry.d.ts.map +1 -1
  215. package/dist/helpers/registry.js +10 -0
  216. package/dist/helpers/registry.js.map +1 -1
  217. package/dist/helpers/registry.ts +16 -0
  218. package/dist/index.d.ts +3 -2
  219. package/dist/index.d.ts.map +1 -1
  220. package/dist/index.js +3 -2
  221. package/dist/index.js.map +1 -1
  222. package/dist/index.ts +71 -2
  223. package/dist/redux/api/apiKeyApi.d.ts +40 -0
  224. package/dist/redux/api/apiKeyApi.d.ts.map +1 -0
  225. package/dist/redux/api/apiKeyApi.js +36 -0
  226. package/dist/redux/api/apiKeyApi.js.map +1 -0
  227. package/dist/redux/api/apiKeyApi.ts +60 -0
  228. package/dist/resources/globals.css +628 -67
  229. package/dist/resources/shadcn-base.css +333 -7
  230. package/dist/resources/solid-responsive.css +6 -6
  231. package/dist/resources/themes/solid-dark-purple/theme.css +1 -1
  232. package/dist/routes/pages/studio/StudioLandingPage.js.map +1 -1
  233. package/dist/routes/pages/studio/StudioLandingPage.tsx +1 -1
  234. package/package.json +2 -1
package/dist/index.ts CHANGED
@@ -104,6 +104,12 @@ export { permissionExpression } from './helpers/permissions';
104
104
  export { revalidateTag } from './helpers/revalidate';
105
105
  export { hasAnyRole } from './helpers/rolesHelper';
106
106
  export { registerExtensionComponent, registerExtensionFunction } from './helpers/registry';
107
+ export {
108
+ ExtensionComponentTypes,
109
+ ExtensionFunctionTypes,
110
+ type ExtensionComponentType,
111
+ type ExtensionFunctionType,
112
+ } from "./types/extension-registry";
107
113
  export { env } from './adapters/env';
108
114
  export { logger } from './helpers/logger';
109
115
 
@@ -399,7 +405,70 @@ export { default as SolidInitialLoginOtp } from './components/auth/SolidInitialL
399
405
  export { default as SolidInitiateRegisterOtp } from './components/auth/SolidInitiateRegisterOtp';
400
406
  export { GoogleAuthChecking } from './components/auth/GoogleAuthChecking';
401
407
  export { ForgotPasswordThankYou } from './components/auth/ForgotPasswordThankYou';
402
- export { SolidButton, SolidTab, SolidTabGroup, SolidToast } from './components/shad-cn-ui';
408
+ export {
409
+ SolidButton,
410
+ SolidAccordion,
411
+ SolidAccordionItem,
412
+ SolidAccordionContent,
413
+ SolidAccordionTrigger,
414
+ SolidDropdownMenu,
415
+ SolidDropdownMenuCheckboxItem,
416
+ SolidDropdownMenuContent,
417
+ SolidDropdownMenuItem,
418
+ SolidDropdownMenuLabel,
419
+ SolidDropdownMenuRadioGroup,
420
+ SolidDropdownMenuRadioItem,
421
+ SolidDropdownMenuSeparator,
422
+ SolidDropdownMenuSub,
423
+ SolidDropdownMenuSubContent,
424
+ SolidDropdownMenuSubTrigger,
425
+ SolidDropdownMenuTrigger,
426
+ SolidInput,
427
+ SolidNumberInput,
428
+ SolidAutocomplete,
429
+ SolidPopover,
430
+ SolidPopoverContent,
431
+ SolidPopoverTrigger,
432
+ SolidSelect,
433
+ SolidTab,
434
+ SolidTabGroup,
435
+ SolidDialog,
436
+ SolidDialogBody,
437
+ SolidDialogClose,
438
+ SolidDialogDescription,
439
+ SolidDialogFooter,
440
+ SolidDialogHeader,
441
+ SolidDialogSeparator,
442
+ SolidDialogTitle,
443
+ SolidTextarea,
444
+ SolidPasswordInput,
445
+ SolidCheckbox,
446
+ SolidSwitch,
447
+ SolidSegmentedControl,
448
+ SolidRadioGroup,
449
+ SolidDatePicker,
450
+ SolidPanel,
451
+ SolidConfirmDialog,
452
+ SolidProgressBar,
453
+ SolidSpinner,
454
+ SolidToast,
455
+ SolidSlider,
456
+ SolidTag,
457
+ SolidMessage,
458
+ SolidDivider,
459
+ SolidOtpInput,
460
+ SolidTooltip,
461
+ SolidTooltipContent,
462
+ SolidTooltipTrigger,
463
+ SolidCodeEditor as SolidShadCodeEditor,
464
+ SolidRichTextEditor,
465
+ SolidLightbox,
466
+ SolidIcon,
467
+ type SolidIconName,
468
+ type SolidIconMeta,
469
+ parseSolidIconMeta,
470
+ normalizeSolidIconName
471
+ } from './components/shad-cn-ui';
403
472
 
404
473
  // redux
405
474
  export { default as authenticationReducer } from './redux/features/authSlice';
@@ -408,7 +477,7 @@ export { default as navbarReducer } from './redux/features/navbarSlice';
408
477
  export { default as popupReducer } from './redux/features/popupSlice';
409
478
  export { closePopup, openPopup } from './redux/features/popupSlice';
410
479
  export { default as toastReducer } from './redux/features/toastSlice';
411
- export { showToast as showGlobalToast, clearToast } from './redux/features/toastSlice';
480
+ export { showToast, clearToast } from './redux/features/toastSlice';
412
481
  export type { ToastMessage, ToastSeverity } from './redux/features/toastSlice';
413
482
  export { default as themeReducer } from './redux/features/themeSlice';
414
483
  export { default as userReducer } from './redux/features/userSlice';
@@ -0,0 +1,40 @@
1
+ export interface ApiKeyRecord {
2
+ id: string;
3
+ name: string;
4
+ maskedKey: string;
5
+ isActive: boolean;
6
+ expiresAt: string | null;
7
+ lastUsedAt: string | null;
8
+ createdAt: string;
9
+ }
10
+ export interface CreateApiKeyBody {
11
+ name: string;
12
+ expiresAt?: string;
13
+ }
14
+ export interface CreateApiKeyResponse {
15
+ data: {
16
+ apiKey: string;
17
+ record: ApiKeyRecord;
18
+ };
19
+ }
20
+ export declare const apiKeyApi: import("@reduxjs/toolkit/query/react").Api<import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, {
21
+ getUserApiKeys: import("@reduxjs/toolkit/query/react").QueryDefinition<string, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", {
22
+ data: {
23
+ apiKeys: ApiKeyRecord[];
24
+ };
25
+ }, "apiKeyApi">;
26
+ createApiKey: import("@reduxjs/toolkit/query/react").MutationDefinition<CreateApiKeyBody, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", CreateApiKeyResponse, "apiKeyApi">;
27
+ updateApiKey: import("@reduxjs/toolkit/query/react").MutationDefinition<{
28
+ id: string;
29
+ isActive: boolean;
30
+ }, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", void, "apiKeyApi">;
31
+ }, "apiKeyApi", "ApiKey", typeof import("@reduxjs/toolkit/query/react").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
32
+ export declare const useGetUserApiKeysQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query/react").QueryDefinition<string, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", {
33
+ data: {
34
+ apiKeys: ApiKeyRecord[];
35
+ };
36
+ }, "apiKeyApi">>, useCreateApiKeyMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<CreateApiKeyBody, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", CreateApiKeyResponse, "apiKeyApi">>, useUpdateApiKeyMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query/react").MutationDefinition<{
37
+ id: string;
38
+ isActive: boolean;
39
+ }, import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("@reduxjs/toolkit/query/react").FetchArgs, unknown, import("@reduxjs/toolkit/query/react").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query/react").FetchBaseQueryMeta>, "ApiKey", void, "apiKeyApi">>;
40
+ //# sourceMappingURL=apiKeyApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiKeyApi.d.ts","sourceRoot":"","sources":["../../../src/redux/api/apiKeyApi.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,YAAY,CAAC;KACtB,CAAC;CACH;AAED,eAAO,MAAM,SAAS;;cAOoB;YAAE,OAAO,EAAE,YAAY,EAAE,CAAA;SAAE;;;;YAYtB,MAAM;kBAAY,OAAO;;4JAStE,CAAC;AAEH,eAAO,MACL,sBAAsB;UAxBkB;QAAE,OAAO,EAAE,YAAY,EAAE,CAAA;KAAE;kBAyBnE,uBAAuB,mbACvB,uBAAuB;QAdsB,MAAM;cAAY,OAAO;mRAe3D,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { createApi } from "@reduxjs/toolkit/query/react";
2
+ import { baseQueryWithAuth } from "./fetchBaseQuery";
3
+ export var apiKeyApi = createApi({
4
+ reducerPath: "apiKeyApi",
5
+ baseQuery: baseQueryWithAuth,
6
+ tagTypes: ["ApiKey"],
7
+ endpoints: function (builder) { return ({
8
+ // Fetch user record with apiKeys populated.
9
+ // Always called with a userId — the backend enforces access rules.
10
+ getUserApiKeys: builder.query({
11
+ query: function (userId) { return "/user/".concat(userId, "?populate[0]=apiKeys"); },
12
+ providesTags: ["ApiKey"],
13
+ }),
14
+ createApiKey: builder.mutation({
15
+ query: function (body) { return ({
16
+ url: "/iam/api-keys",
17
+ method: "POST",
18
+ body: body,
19
+ }); },
20
+ invalidatesTags: ["ApiKey"],
21
+ }),
22
+ updateApiKey: builder.mutation({
23
+ query: function (_a) {
24
+ var id = _a.id, isActive = _a.isActive;
25
+ return ({
26
+ url: "/iam/api-keys/".concat(id),
27
+ method: "PATCH",
28
+ body: { isActive: isActive },
29
+ });
30
+ },
31
+ invalidatesTags: ["ApiKey"],
32
+ }),
33
+ }); },
34
+ });
35
+ export var useGetUserApiKeysQuery = apiKeyApi.useGetUserApiKeysQuery, useCreateApiKeyMutation = apiKeyApi.useCreateApiKeyMutation, useUpdateApiKeyMutation = apiKeyApi.useUpdateApiKeyMutation;
36
+ //# sourceMappingURL=apiKeyApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiKeyApi.js","sourceRoot":"","sources":["../../../src/redux/api/apiKeyApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAwBrD,MAAM,CAAC,IAAM,SAAS,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,WAAW;IACxB,SAAS,EAAE,iBAAiB;IAC5B,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,SAAS,EAAE,UAAC,OAAO,IAAK,OAAA,CAAC;QACvB,4CAA4C;QAC5C,mEAAmE;QACnE,cAAc,EAAE,OAAO,CAAC,KAAK,CAAgD;YAC3E,KAAK,EAAE,UAAC,MAAM,IAAK,OAAA,gBAAS,MAAM,yBAAsB,EAArC,CAAqC;YACxD,YAAY,EAAE,CAAC,QAAQ,CAAC;SACzB,CAAC;QACF,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAyC;YACrE,KAAK,EAAE,UAAC,IAAI,IAAK,OAAA,CAAC;gBAChB,GAAG,EAAE,eAAe;gBACpB,MAAM,EAAE,MAAM;gBACd,IAAI,MAAA;aACL,CAAC,EAJe,CAIf;YACF,eAAe,EAAE,CAAC,QAAQ,CAAC;SAC5B,CAAC;QACF,YAAY,EAAE,OAAO,CAAC,QAAQ,CAA0C;YACtE,KAAK,EAAE,UAAC,EAAgB;oBAAd,EAAE,QAAA,EAAE,QAAQ,cAAA;gBAAO,OAAA,CAAC;oBAC5B,GAAG,EAAE,wBAAiB,EAAE,CAAE;oBAC1B,MAAM,EAAE,OAAO;oBACf,IAAI,EAAE,EAAE,QAAQ,UAAA,EAAE;iBACnB,CAAC;YAJ2B,CAI3B;YACF,eAAe,EAAE,CAAC,QAAQ,CAAC;SAC5B,CAAC;KACH,CAAC,EAvBsB,CAuBtB;CACH,CAAC,CAAC;AAEH,MAAM,CACJ,IAAA,sBAAsB,GAGpB,SAAS,uBAHW,EACtB,uBAAuB,GAErB,SAAS,wBAFY,EACvB,uBAAuB,GACrB,SAAS,wBADY,CACX","sourcesContent":["import { createApi } from \"@reduxjs/toolkit/query/react\";\nimport { baseQueryWithAuth } from \"./fetchBaseQuery\";\n\nexport interface ApiKeyRecord {\n id: string;\n name: string;\n maskedKey: string;\n isActive: boolean;\n expiresAt: string | null;\n lastUsedAt: string | null;\n createdAt: string;\n}\n\nexport interface CreateApiKeyBody {\n name: string;\n expiresAt?: string;\n}\n\nexport interface CreateApiKeyResponse {\n data: {\n apiKey: string;\n record: ApiKeyRecord;\n };\n}\n\nexport const apiKeyApi = createApi({\n reducerPath: \"apiKeyApi\",\n baseQuery: baseQueryWithAuth,\n tagTypes: [\"ApiKey\"],\n endpoints: (builder) => ({\n // Fetch user record with apiKeys populated.\n // Always called with a userId — the backend enforces access rules.\n getUserApiKeys: builder.query<{ data: { apiKeys: ApiKeyRecord[] } }, string>({\n query: (userId) => `/user/${userId}?populate[0]=apiKeys`,\n providesTags: [\"ApiKey\"],\n }),\n createApiKey: builder.mutation<CreateApiKeyResponse, CreateApiKeyBody>({\n query: (body) => ({\n url: \"/iam/api-keys\",\n method: \"POST\",\n body,\n }),\n invalidatesTags: [\"ApiKey\"],\n }),\n updateApiKey: builder.mutation<void, { id: string; isActive: boolean }>({\n query: ({ id, isActive }) => ({\n url: `/iam/api-keys/${id}`,\n method: \"PATCH\",\n body: { isActive },\n }),\n invalidatesTags: [\"ApiKey\"],\n }),\n }),\n});\n\nexport const {\n useGetUserApiKeysQuery,\n useCreateApiKeyMutation,\n useUpdateApiKeyMutation,\n} = apiKeyApi;\n"]}
@@ -0,0 +1,60 @@
1
+ import { createApi } from "@reduxjs/toolkit/query/react";
2
+ import { baseQueryWithAuth } from "./fetchBaseQuery";
3
+
4
+ export interface ApiKeyRecord {
5
+ id: string;
6
+ name: string;
7
+ maskedKey: string;
8
+ isActive: boolean;
9
+ expiresAt: string | null;
10
+ lastUsedAt: string | null;
11
+ createdAt: string;
12
+ }
13
+
14
+ export interface CreateApiKeyBody {
15
+ name: string;
16
+ expiresAt?: string;
17
+ }
18
+
19
+ export interface CreateApiKeyResponse {
20
+ data: {
21
+ apiKey: string;
22
+ record: ApiKeyRecord;
23
+ };
24
+ }
25
+
26
+ export const apiKeyApi = createApi({
27
+ reducerPath: "apiKeyApi",
28
+ baseQuery: baseQueryWithAuth,
29
+ tagTypes: ["ApiKey"],
30
+ endpoints: (builder) => ({
31
+ // Fetch user record with apiKeys populated.
32
+ // Always called with a userId — the backend enforces access rules.
33
+ getUserApiKeys: builder.query<{ data: { apiKeys: ApiKeyRecord[] } }, string>({
34
+ query: (userId) => `/user/${userId}?populate[0]=apiKeys`,
35
+ providesTags: ["ApiKey"],
36
+ }),
37
+ createApiKey: builder.mutation<CreateApiKeyResponse, CreateApiKeyBody>({
38
+ query: (body) => ({
39
+ url: "/iam/api-keys",
40
+ method: "POST",
41
+ body,
42
+ }),
43
+ invalidatesTags: ["ApiKey"],
44
+ }),
45
+ updateApiKey: builder.mutation<void, { id: string; isActive: boolean }>({
46
+ query: ({ id, isActive }) => ({
47
+ url: `/iam/api-keys/${id}`,
48
+ method: "PATCH",
49
+ body: { isActive },
50
+ }),
51
+ invalidatesTags: ["ApiKey"],
52
+ }),
53
+ }),
54
+ });
55
+
56
+ export const {
57
+ useGetUserApiKeysQuery,
58
+ useCreateApiKeyMutation,
59
+ useUpdateApiKeyMutation,
60
+ } = apiKeyApi;