@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.
- package/dist/components/auth/AuthLayout.d.ts.map +1 -1
- package/dist/components/auth/AuthLayout.js +1 -1
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +5 -3
- package/dist/components/auth/SolidLogin.js +3 -3
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +2 -2
- package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
- package/dist/components/common/DropzonePlaceholder.js +1 -1
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.tsx +8 -6
- package/dist/components/core/chatter/SolidChatter.d.ts +2 -1
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +2 -4
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +3 -4
- package/dist/components/core/chatter/SolidChatterHeader.d.ts +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.tsx +4 -3
- package/dist/components/core/chatter/chatter.module.css +42 -32
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.tsx +2 -2
- package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +153 -30
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +7 -7
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +9 -10
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js +1 -1
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.tsx +6 -4
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js +1 -1
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.tsx +3 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +13 -13
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +21 -24
- package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormFooter.js +1 -1
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +0 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.tsx +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +22 -33
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +38 -59
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +12 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +1 -0
- package/dist/components/core/form/fields/SolidLongTextField.js +4 -4
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +4 -4
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +14 -14
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +35 -21
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +2 -2
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +48 -34
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +2 -2
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +46 -42
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +23 -27
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +64 -66
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +2 -6
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +4 -7
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +12 -15
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +30 -16
- package/dist/components/core/form/fields/solidFields.module.css +86 -15
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +18 -28
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +52 -48
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +5 -4
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +11 -5
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +8 -0
- package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +4 -4
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +5 -4
- package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +3 -3
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +4 -3
- package/dist/components/core/list/SolidDataTable.d.ts +1 -0
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +19 -2
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +30 -2
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +1 -1
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +1 -0
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +1 -1
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +7 -4
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +28 -11
- package/dist/components/core/locales/SolidLocale.js +4 -4
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.tsx +18 -18
- package/dist/components/core/locales/solid-locale.css +105 -7
- package/dist/components/core/model/CreateModel.js +2 -2
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/CreateModel.tsx +2 -2
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +3 -3
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.tsx +45 -22
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts +7 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js +138 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.tsx +246 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts +8 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js +156 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.tsx +184 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts +9 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js +37 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.tsx +111 -0
- package/dist/components/core/users/ApiKeysTab/index.d.ts +4 -0
- package/dist/components/core/users/ApiKeysTab/index.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/index.js +4 -0
- package/dist/components/core/users/ApiKeysTab/index.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/index.ts +3 -0
- package/dist/components/layout/AppSidebar.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.js +75 -7
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/AppSidebar.tsx +84 -7
- package/dist/components/layout/FilterMenu.js +2 -3
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/FilterMenu.tsx +3 -3
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.js +13 -7
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +22 -12
- package/dist/components/shad-cn-ui/SolidDatePicker.js +2 -1
- package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidDatePicker.tsx +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.js +2 -2
- package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.tsx +6 -3
- package/dist/components/shad-cn-ui/SolidIcon.d.ts +2 -2
- package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidIcon.js +4 -3
- package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidIcon.tsx +15 -12
- package/dist/components/shad-cn-ui/SolidSelect.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.js +2 -2
- package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.tsx +3 -0
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts +1 -1
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidTextarea.js +3 -2
- package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidTextarea.tsx +17 -2
- package/dist/helpers/# no such endpoints exist, need to calle +3 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +10 -0
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +16 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.ts +71 -2
- package/dist/redux/api/apiKeyApi.d.ts +40 -0
- package/dist/redux/api/apiKeyApi.d.ts.map +1 -0
- package/dist/redux/api/apiKeyApi.js +36 -0
- package/dist/redux/api/apiKeyApi.js.map +1 -0
- package/dist/redux/api/apiKeyApi.ts +60 -0
- package/dist/resources/globals.css +628 -67
- package/dist/resources/shadcn-base.css +333 -7
- package/dist/resources/solid-responsive.css +6 -6
- package/dist/resources/themes/solid-dark-purple/theme.css +1 -1
- package/dist/routes/pages/studio/StudioLandingPage.js.map +1 -1
- package/dist/routes/pages/studio/StudioLandingPage.tsx +1 -1
- 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 {
|
|
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
|
|
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;
|