@nocios/crudify-components 2.0.81 → 2.0.88
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/README.md +21 -0
- package/dist/api-jcCTCqPD.d.mts +61 -0
- package/dist/api-jcCTCqPD.d.ts +61 -0
- package/dist/chunk-4I767MRM.mjs +142 -0
- package/dist/chunk-5V5ILPP3.js +1 -0
- package/dist/chunk-BJEDX2HU.js +142 -0
- package/dist/chunk-GZOB4JDB.js +1 -0
- package/dist/chunk-ODKXUEH5.js +1 -0
- package/dist/chunk-U335FNUD.mjs +1 -0
- package/dist/chunk-YRU7AXYV.mjs +1 -0
- package/dist/chunk-Z75DRSTN.mjs +1 -0
- package/dist/{errorTranslation-BEWwDbCH.d.ts → errorTranslation-BdqG-dXD.d.ts} +97 -26
- package/dist/{errorTranslation-DsGZon0M.d.mts → errorTranslation-BxJmBGx0.d.mts} +97 -26
- package/dist/hooks.d.mts +3 -4
- package/dist/hooks.d.ts +3 -4
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/{index-ZcF6nJt4.d.mts → index-Cx9P3ZCG.d.mts} +96 -27
- package/dist/{index-Dnmttf62.d.ts → index-rHtWMls-.d.ts} +96 -27
- package/dist/index.d.mts +366 -118
- package/dist/index.d.ts +366 -118
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/public-policies.d.mts +7 -0
- package/dist/public-policies.d.ts +7 -0
- package/dist/public-policies.js +1 -0
- package/dist/public-policies.mjs +1 -0
- package/dist/utils.d.mts +71 -3
- package/dist/utils.d.ts +71 -3
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +44 -42
- package/.github/workflows/ci.yml +0 -70
- package/.husky/pre-commit +0 -26
- package/.husky/pre-push +0 -30
- package/.nvmrc +0 -1
- package/.prettierignore +0 -18
- package/.prettierrc +0 -9
- package/.scannerwork/.sonar_lock +0 -0
- package/.scannerwork/report-task.txt +0 -6
- package/README_DEPTH.md +0 -1237
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/components/CrudiaAutoGenerate.tsx.html +0 -616
- package/coverage/components/CrudiaFileField/CrudiaFileField.tsx.html +0 -1312
- package/coverage/components/CrudiaFileField/components/DeleteConfirmationDialog.tsx.html +0 -355
- package/coverage/components/CrudiaFileField/components/DropZone.tsx.html +0 -523
- package/coverage/components/CrudiaFileField/components/FileItemRow.tsx.html +0 -835
- package/coverage/components/CrudiaFileField/components/FileThumbnail.tsx.html +0 -1585
- package/coverage/components/CrudiaFileField/components/index.html +0 -176
- package/coverage/components/CrudiaFileField/components/index.ts.html +0 -115
- package/coverage/components/CrudiaFileField/hooks/index.html +0 -146
- package/coverage/components/CrudiaFileField/hooks/index.ts.html +0 -112
- package/coverage/components/CrudiaFileField/hooks/useDeleteConfirmation.ts.html +0 -433
- package/coverage/components/CrudiaFileField/hooks/useDragDrop.ts.html +0 -409
- package/coverage/components/CrudiaFileField/index.html +0 -131
- package/coverage/components/CrudiaFileField/index.ts.html +0 -112
- package/coverage/components/CrudiaFileField/utils/formatters.ts.html +0 -169
- package/coverage/components/CrudiaFileField/utils/icons.tsx.html +0 -253
- package/coverage/components/CrudiaFileField/utils/index.html +0 -146
- package/coverage/components/CrudiaFileField/utils/index.ts.html +0 -103
- package/coverage/components/CrudiaMarkdownField.tsx.html +0 -676
- package/coverage/components/CrudifyInitializer.tsx.html +0 -712
- package/coverage/components/CrudifyLogin/Forms/CheckCodeForm.tsx.html +0 -640
- package/coverage/components/CrudifyLogin/Forms/ForgotPasswordForm.tsx.html +0 -730
- package/coverage/components/CrudifyLogin/Forms/LoginForm.tsx.html +0 -892
- package/coverage/components/CrudifyLogin/Forms/ResetPasswordForm.tsx.html +0 -1219
- package/coverage/components/CrudifyLogin/Forms/components/CodeInput.tsx.html +0 -289
- package/coverage/components/CrudifyLogin/Forms/components/FormAlert.tsx.html +0 -202
- package/coverage/components/CrudifyLogin/Forms/components/PasswordInput.tsx.html +0 -346
- package/coverage/components/CrudifyLogin/Forms/components/index.html +0 -161
- package/coverage/components/CrudifyLogin/Forms/components/index.ts.html +0 -106
- package/coverage/components/CrudifyLogin/Forms/index.html +0 -176
- package/coverage/components/CrudifyLogin/Forms/index.ts.html +0 -145
- package/coverage/components/CrudifyLogin/Forms/utils/errorTranslation.ts.html +0 -268
- package/coverage/components/CrudifyLogin/Forms/utils/index.html +0 -161
- package/coverage/components/CrudifyLogin/Forms/utils/index.ts.html +0 -121
- package/coverage/components/CrudifyLogin/Forms/utils/paramUtils.ts.html +0 -496
- package/coverage/components/CrudifyLogin/Forms/utils/validation.ts.html +0 -307
- package/coverage/components/CrudifyLogin/components/CrudifyInitializer.tsx.html +0 -268
- package/coverage/components/CrudifyLogin/components/index.html +0 -116
- package/coverage/components/CrudifyLogin/context/CrudifyProvider.tsx.html +0 -409
- package/coverage/components/CrudifyLogin/context/I18nProvider.tsx.html +0 -430
- package/coverage/components/CrudifyLogin/context/LoginStateProvider.tsx.html +0 -1261
- package/coverage/components/CrudifyLogin/context/index.html +0 -161
- package/coverage/components/CrudifyLogin/context/index.ts.html +0 -91
- package/coverage/components/CrudifyLogin/hooks/index.html +0 -131
- package/coverage/components/CrudifyLogin/hooks/useCrudifyLogin.ts.html +0 -463
- package/coverage/components/CrudifyLogin/hooks/useTranslationsFromUrl.ts.html +0 -391
- package/coverage/components/CrudifyLogin/index.html +0 -116
- package/coverage/components/CrudifyLogin/index.tsx.html +0 -466
- package/coverage/components/CrudifyLogin/utils/index.html +0 -116
- package/coverage/components/CrudifyLogin/utils/secureStorage.ts.html +0 -859
- package/coverage/components/GlobalNotificationProvider.tsx.html +0 -844
- package/coverage/components/LoginComponent.tsx.html +0 -676
- package/coverage/components/PasswordRequirements/index.html +0 -116
- package/coverage/components/PasswordRequirements/index.tsx.html +0 -232
- package/coverage/components/PublicPolicies/FieldSelector/FieldSelector.tsx.html +0 -1078
- package/coverage/components/PublicPolicies/FieldSelector/index.html +0 -131
- package/coverage/components/PublicPolicies/FieldSelector/index.ts.html +0 -88
- package/coverage/components/PublicPolicies/Policies.tsx.html +0 -625
- package/coverage/components/PublicPolicies/PolicyItem/PolicyItem.tsx.html +0 -886
- package/coverage/components/PublicPolicies/PolicyItem/index.html +0 -131
- package/coverage/components/PublicPolicies/PolicyItem/index.ts.html +0 -88
- package/coverage/components/PublicPolicies/constants.ts.html +0 -106
- package/coverage/components/PublicPolicies/index.html +0 -146
- package/coverage/components/PublicPolicies/index.ts.html +0 -88
- package/coverage/components/Routing/AuthRoute.tsx.html +0 -382
- package/coverage/components/Routing/GuestRoute.tsx.html +0 -352
- package/coverage/components/Routing/ProtectedRoute.tsx.html +0 -316
- package/coverage/components/Routing/index.html +0 -161
- package/coverage/components/Routing/index.ts.html +0 -109
- package/coverage/components/SessionLoadingScreen/index.html +0 -116
- package/coverage/components/SessionLoadingScreen/index.tsx.html +0 -379
- package/coverage/components/SessionTimeIndicator/index.html +0 -116
- package/coverage/components/SessionTimeIndicator/index.tsx.html +0 -523
- package/coverage/components/UserProfile/UserProfileDisplay.tsx.html +0 -931
- package/coverage/components/UserProfile/index.html +0 -131
- package/coverage/components/UserProfile/index.ts.html +0 -88
- package/coverage/components/index.html +0 -191
- package/coverage/components/index.ts.html +0 -178
- package/coverage/core/CrossTabSyncManager.ts.html +0 -853
- package/coverage/core/CrudifyInitializationManager.ts.html +0 -1279
- package/coverage/core/SessionManager.ts.html +0 -3064
- package/coverage/core/index.html +0 -146
- package/coverage/coverage-final.json +0 -117
- package/coverage/favicon.png +0 -0
- package/coverage/hooks/index.html +0 -191
- package/coverage/hooks/index.ts.html +0 -136
- package/coverage/hooks/useAuth.ts.html +0 -529
- package/coverage/hooks/useAutoGenerate.ts.html +0 -571
- package/coverage/hooks/useCrudifyWithNotifications/constants.ts.html +0 -247
- package/coverage/hooks/useCrudifyWithNotifications/hooks/index.html +0 -116
- package/coverage/hooks/useCrudifyWithNotifications/hooks/useCrudOperations.ts.html +0 -820
- package/coverage/hooks/useCrudifyWithNotifications/index.html +0 -146
- package/coverage/hooks/useCrudifyWithNotifications/index.ts.html +0 -118
- package/coverage/hooks/useCrudifyWithNotifications/useCrudifyWithNotifications.ts.html +0 -565
- package/coverage/hooks/useCrudifyWithNotifications/utils/errorMessageResolver.ts.html +0 -847
- package/coverage/hooks/useCrudifyWithNotifications/utils/index.html +0 -146
- package/coverage/hooks/useCrudifyWithNotifications/utils/notificationFilters.ts.html +0 -313
- package/coverage/hooks/useCrudifyWithNotifications/utils/successMessageResolver.ts.html +0 -265
- package/coverage/hooks/useData.ts.html +0 -829
- package/coverage/hooks/useFileUpload/index.html +0 -131
- package/coverage/hooks/useFileUpload/index.ts.html +0 -112
- package/coverage/hooks/useFileUpload/services/index.html +0 -131
- package/coverage/hooks/useFileUpload/services/index.ts.html +0 -106
- package/coverage/hooks/useFileUpload/services/uploadService.ts.html +0 -610
- package/coverage/hooks/useFileUpload/useFileUpload.ts.html +0 -2092
- package/coverage/hooks/useFileUpload/utils/fileUtils.ts.html +0 -271
- package/coverage/hooks/useFileUpload/utils/index.html +0 -161
- package/coverage/hooks/useFileUpload/utils/index.ts.html +0 -109
- package/coverage/hooks/useFileUpload/utils/mimeTypes.ts.html +0 -235
- package/coverage/hooks/useFileUpload/utils/validation.ts.html +0 -403
- package/coverage/hooks/useSession/constants.ts.html +0 -217
- package/coverage/hooks/useSession/hooks/index.html +0 -176
- package/coverage/hooks/useSession/hooks/useAuthEventSubscriber.ts.html +0 -331
- package/coverage/hooks/useSession/hooks/useCrossTabSync.ts.html +0 -535
- package/coverage/hooks/useSession/hooks/useSessionActions.ts.html +0 -664
- package/coverage/hooks/useSession/hooks/useSessionState.ts.html +0 -295
- package/coverage/hooks/useSession/hooks/useTokenRefreshScheduler.ts.html +0 -535
- package/coverage/hooks/useSession/index.html +0 -161
- package/coverage/hooks/useSession/index.ts.html +0 -127
- package/coverage/hooks/useSession/types.ts.html +0 -427
- package/coverage/hooks/useSession/useSession.ts.html +0 -526
- package/coverage/hooks/useSession/utils/index.html +0 -131
- package/coverage/hooks/useSession/utils/initializeSession.ts.html +0 -424
- package/coverage/hooks/useSession/utils/tokenUtils.ts.html +0 -298
- package/coverage/hooks/useUserData.ts.html +0 -1210
- package/coverage/hooks/useUserProfile.ts.html +0 -820
- package/coverage/index.html +0 -656
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/components/CrudiaAutoGenerate.tsx.html +0 -616
- package/coverage/lcov-report/components/CrudiaFileField/CrudiaFileField.tsx.html +0 -1312
- package/coverage/lcov-report/components/CrudiaFileField/components/DeleteConfirmationDialog.tsx.html +0 -355
- package/coverage/lcov-report/components/CrudiaFileField/components/DropZone.tsx.html +0 -523
- package/coverage/lcov-report/components/CrudiaFileField/components/FileItemRow.tsx.html +0 -835
- package/coverage/lcov-report/components/CrudiaFileField/components/FileThumbnail.tsx.html +0 -1585
- package/coverage/lcov-report/components/CrudiaFileField/components/index.html +0 -176
- package/coverage/lcov-report/components/CrudiaFileField/components/index.ts.html +0 -115
- package/coverage/lcov-report/components/CrudiaFileField/hooks/index.html +0 -146
- package/coverage/lcov-report/components/CrudiaFileField/hooks/index.ts.html +0 -112
- package/coverage/lcov-report/components/CrudiaFileField/hooks/useDeleteConfirmation.ts.html +0 -433
- package/coverage/lcov-report/components/CrudiaFileField/hooks/useDragDrop.ts.html +0 -409
- package/coverage/lcov-report/components/CrudiaFileField/index.html +0 -131
- package/coverage/lcov-report/components/CrudiaFileField/index.ts.html +0 -112
- package/coverage/lcov-report/components/CrudiaFileField/utils/formatters.ts.html +0 -169
- package/coverage/lcov-report/components/CrudiaFileField/utils/icons.tsx.html +0 -253
- package/coverage/lcov-report/components/CrudiaFileField/utils/index.html +0 -146
- package/coverage/lcov-report/components/CrudiaFileField/utils/index.ts.html +0 -103
- package/coverage/lcov-report/components/CrudiaMarkdownField.tsx.html +0 -676
- package/coverage/lcov-report/components/CrudifyInitializer.tsx.html +0 -712
- package/coverage/lcov-report/components/CrudifyLogin/Forms/CheckCodeForm.tsx.html +0 -640
- package/coverage/lcov-report/components/CrudifyLogin/Forms/ForgotPasswordForm.tsx.html +0 -730
- package/coverage/lcov-report/components/CrudifyLogin/Forms/LoginForm.tsx.html +0 -892
- package/coverage/lcov-report/components/CrudifyLogin/Forms/ResetPasswordForm.tsx.html +0 -1219
- package/coverage/lcov-report/components/CrudifyLogin/Forms/components/CodeInput.tsx.html +0 -289
- package/coverage/lcov-report/components/CrudifyLogin/Forms/components/FormAlert.tsx.html +0 -202
- package/coverage/lcov-report/components/CrudifyLogin/Forms/components/PasswordInput.tsx.html +0 -346
- package/coverage/lcov-report/components/CrudifyLogin/Forms/components/index.html +0 -161
- package/coverage/lcov-report/components/CrudifyLogin/Forms/components/index.ts.html +0 -106
- package/coverage/lcov-report/components/CrudifyLogin/Forms/index.html +0 -176
- package/coverage/lcov-report/components/CrudifyLogin/Forms/index.ts.html +0 -145
- package/coverage/lcov-report/components/CrudifyLogin/Forms/utils/errorTranslation.ts.html +0 -268
- package/coverage/lcov-report/components/CrudifyLogin/Forms/utils/index.html +0 -161
- package/coverage/lcov-report/components/CrudifyLogin/Forms/utils/index.ts.html +0 -121
- package/coverage/lcov-report/components/CrudifyLogin/Forms/utils/paramUtils.ts.html +0 -496
- package/coverage/lcov-report/components/CrudifyLogin/Forms/utils/validation.ts.html +0 -307
- package/coverage/lcov-report/components/CrudifyLogin/components/CrudifyInitializer.tsx.html +0 -268
- package/coverage/lcov-report/components/CrudifyLogin/components/index.html +0 -116
- package/coverage/lcov-report/components/CrudifyLogin/context/CrudifyProvider.tsx.html +0 -409
- package/coverage/lcov-report/components/CrudifyLogin/context/I18nProvider.tsx.html +0 -430
- package/coverage/lcov-report/components/CrudifyLogin/context/LoginStateProvider.tsx.html +0 -1261
- package/coverage/lcov-report/components/CrudifyLogin/context/index.html +0 -161
- package/coverage/lcov-report/components/CrudifyLogin/context/index.ts.html +0 -91
- package/coverage/lcov-report/components/CrudifyLogin/hooks/index.html +0 -131
- package/coverage/lcov-report/components/CrudifyLogin/hooks/useCrudifyLogin.ts.html +0 -463
- package/coverage/lcov-report/components/CrudifyLogin/hooks/useTranslationsFromUrl.ts.html +0 -391
- package/coverage/lcov-report/components/CrudifyLogin/index.html +0 -116
- package/coverage/lcov-report/components/CrudifyLogin/index.tsx.html +0 -466
- package/coverage/lcov-report/components/CrudifyLogin/utils/index.html +0 -116
- package/coverage/lcov-report/components/CrudifyLogin/utils/secureStorage.ts.html +0 -859
- package/coverage/lcov-report/components/GlobalNotificationProvider.tsx.html +0 -844
- package/coverage/lcov-report/components/LoginComponent.tsx.html +0 -676
- package/coverage/lcov-report/components/PasswordRequirements/index.html +0 -116
- package/coverage/lcov-report/components/PasswordRequirements/index.tsx.html +0 -232
- package/coverage/lcov-report/components/PublicPolicies/FieldSelector/FieldSelector.tsx.html +0 -1078
- package/coverage/lcov-report/components/PublicPolicies/FieldSelector/index.html +0 -131
- package/coverage/lcov-report/components/PublicPolicies/FieldSelector/index.ts.html +0 -88
- package/coverage/lcov-report/components/PublicPolicies/Policies.tsx.html +0 -625
- package/coverage/lcov-report/components/PublicPolicies/PolicyItem/PolicyItem.tsx.html +0 -886
- package/coverage/lcov-report/components/PublicPolicies/PolicyItem/index.html +0 -131
- package/coverage/lcov-report/components/PublicPolicies/PolicyItem/index.ts.html +0 -88
- package/coverage/lcov-report/components/PublicPolicies/constants.ts.html +0 -106
- package/coverage/lcov-report/components/PublicPolicies/index.html +0 -146
- package/coverage/lcov-report/components/PublicPolicies/index.ts.html +0 -88
- package/coverage/lcov-report/components/Routing/AuthRoute.tsx.html +0 -382
- package/coverage/lcov-report/components/Routing/GuestRoute.tsx.html +0 -352
- package/coverage/lcov-report/components/Routing/ProtectedRoute.tsx.html +0 -316
- package/coverage/lcov-report/components/Routing/index.html +0 -161
- package/coverage/lcov-report/components/Routing/index.ts.html +0 -109
- package/coverage/lcov-report/components/SessionLoadingScreen/index.html +0 -116
- package/coverage/lcov-report/components/SessionLoadingScreen/index.tsx.html +0 -379
- package/coverage/lcov-report/components/SessionTimeIndicator/index.html +0 -116
- package/coverage/lcov-report/components/SessionTimeIndicator/index.tsx.html +0 -523
- package/coverage/lcov-report/components/UserProfile/UserProfileDisplay.tsx.html +0 -931
- package/coverage/lcov-report/components/UserProfile/index.html +0 -131
- package/coverage/lcov-report/components/UserProfile/index.ts.html +0 -88
- package/coverage/lcov-report/components/index.html +0 -191
- package/coverage/lcov-report/components/index.ts.html +0 -178
- package/coverage/lcov-report/core/CrossTabSyncManager.ts.html +0 -853
- package/coverage/lcov-report/core/CrudifyInitializationManager.ts.html +0 -1279
- package/coverage/lcov-report/core/SessionManager.ts.html +0 -3064
- package/coverage/lcov-report/core/index.html +0 -146
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/hooks/index.html +0 -191
- package/coverage/lcov-report/hooks/index.ts.html +0 -136
- package/coverage/lcov-report/hooks/useAuth.ts.html +0 -529
- package/coverage/lcov-report/hooks/useAutoGenerate.ts.html +0 -571
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/constants.ts.html +0 -247
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/hooks/index.html +0 -116
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/hooks/useCrudOperations.ts.html +0 -820
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/index.html +0 -146
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/index.ts.html +0 -118
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/useCrudifyWithNotifications.ts.html +0 -565
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/utils/errorMessageResolver.ts.html +0 -847
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/utils/index.html +0 -146
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/utils/notificationFilters.ts.html +0 -313
- package/coverage/lcov-report/hooks/useCrudifyWithNotifications/utils/successMessageResolver.ts.html +0 -265
- package/coverage/lcov-report/hooks/useData.ts.html +0 -829
- package/coverage/lcov-report/hooks/useFileUpload/index.html +0 -131
- package/coverage/lcov-report/hooks/useFileUpload/index.ts.html +0 -112
- package/coverage/lcov-report/hooks/useFileUpload/services/index.html +0 -131
- package/coverage/lcov-report/hooks/useFileUpload/services/index.ts.html +0 -106
- package/coverage/lcov-report/hooks/useFileUpload/services/uploadService.ts.html +0 -610
- package/coverage/lcov-report/hooks/useFileUpload/useFileUpload.ts.html +0 -2092
- package/coverage/lcov-report/hooks/useFileUpload/utils/fileUtils.ts.html +0 -271
- package/coverage/lcov-report/hooks/useFileUpload/utils/index.html +0 -161
- package/coverage/lcov-report/hooks/useFileUpload/utils/index.ts.html +0 -109
- package/coverage/lcov-report/hooks/useFileUpload/utils/mimeTypes.ts.html +0 -235
- package/coverage/lcov-report/hooks/useFileUpload/utils/validation.ts.html +0 -403
- package/coverage/lcov-report/hooks/useSession/constants.ts.html +0 -217
- package/coverage/lcov-report/hooks/useSession/hooks/index.html +0 -176
- package/coverage/lcov-report/hooks/useSession/hooks/useAuthEventSubscriber.ts.html +0 -331
- package/coverage/lcov-report/hooks/useSession/hooks/useCrossTabSync.ts.html +0 -535
- package/coverage/lcov-report/hooks/useSession/hooks/useSessionActions.ts.html +0 -664
- package/coverage/lcov-report/hooks/useSession/hooks/useSessionState.ts.html +0 -295
- package/coverage/lcov-report/hooks/useSession/hooks/useTokenRefreshScheduler.ts.html +0 -535
- package/coverage/lcov-report/hooks/useSession/index.html +0 -161
- package/coverage/lcov-report/hooks/useSession/index.ts.html +0 -127
- package/coverage/lcov-report/hooks/useSession/types.ts.html +0 -427
- package/coverage/lcov-report/hooks/useSession/useSession.ts.html +0 -526
- package/coverage/lcov-report/hooks/useSession/utils/index.html +0 -131
- package/coverage/lcov-report/hooks/useSession/utils/initializeSession.ts.html +0 -424
- package/coverage/lcov-report/hooks/useSession/utils/tokenUtils.ts.html +0 -298
- package/coverage/lcov-report/hooks/useUserData.ts.html +0 -1210
- package/coverage/lcov-report/hooks/useUserProfile.ts.html +0 -820
- package/coverage/lcov-report/index.html +0 -656
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/providers/CrudifyThemeProvider.tsx.html +0 -316
- package/coverage/lcov-report/providers/SessionProvider.tsx.html +0 -1120
- package/coverage/lcov-report/providers/TranslationsProvider.tsx.html +0 -1756
- package/coverage/lcov-report/providers/index.html +0 -146
- package/coverage/lcov-report/services/credentialsEventBus.ts.html +0 -319
- package/coverage/lcov-report/services/crudifyAdminWrapper.ts.html +0 -754
- package/coverage/lcov-report/services/index.html +0 -146
- package/coverage/lcov-report/services/translationService.ts.html +0 -1558
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/translations/critical.ts.html +0 -1216
- package/coverage/lcov-report/translations/index.html +0 -116
- package/coverage/lcov-report/types/index.html +0 -116
- package/coverage/lcov-report/types/password.ts.html +0 -178
- package/coverage/lcov-report/utils/authErrorDetector.ts.html +0 -793
- package/coverage/lcov-report/utils/authEventBus.ts.html +0 -454
- package/coverage/lcov-report/utils/configResolver.ts.html +0 -460
- package/coverage/lcov-report/utils/cookieSync.ts.html +0 -595
- package/coverage/lcov-report/utils/errorHandler.ts.html +0 -1480
- package/coverage/lcov-report/utils/errorTranslation.ts.html +0 -868
- package/coverage/lcov-report/utils/index.html +0 -341
- package/coverage/lcov-report/utils/index.ts.html +0 -193
- package/coverage/lcov-report/utils/jwtUtils.ts.html +0 -325
- package/coverage/lcov-report/utils/logger.ts.html +0 -952
- package/coverage/lcov-report/utils/navigationTracker.ts.html +0 -562
- package/coverage/lcov-report/utils/passwordValidation.ts.html +0 -259
- package/coverage/lcov-report/utils/preAuthCheck.ts.html +0 -442
- package/coverage/lcov-report/utils/redirectSecurity.ts.html +0 -733
- package/coverage/lcov-report/utils/tenantConfig.ts.html +0 -712
- package/coverage/lcov-report/utils/tokenStorage.ts.html +0 -1825
- package/coverage/lcov-report/utils/webCrypto.ts.html +0 -490
- package/coverage/lcov.info +0 -23367
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/providers/CrudifyThemeProvider.tsx.html +0 -316
- package/coverage/providers/SessionProvider.tsx.html +0 -1120
- package/coverage/providers/TranslationsProvider.tsx.html +0 -1756
- package/coverage/providers/index.html +0 -146
- package/coverage/services/credentialsEventBus.ts.html +0 -319
- package/coverage/services/crudifyAdminWrapper.ts.html +0 -754
- package/coverage/services/index.html +0 -146
- package/coverage/services/translationService.ts.html +0 -1558
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/translations/critical.ts.html +0 -1216
- package/coverage/translations/index.html +0 -116
- package/coverage/types/index.html +0 -116
- package/coverage/types/password.ts.html +0 -178
- package/coverage/utils/authErrorDetector.ts.html +0 -793
- package/coverage/utils/authEventBus.ts.html +0 -454
- package/coverage/utils/configResolver.ts.html +0 -460
- package/coverage/utils/cookieSync.ts.html +0 -595
- package/coverage/utils/errorHandler.ts.html +0 -1480
- package/coverage/utils/errorTranslation.ts.html +0 -868
- package/coverage/utils/index.html +0 -341
- package/coverage/utils/index.ts.html +0 -193
- package/coverage/utils/jwtUtils.ts.html +0 -325
- package/coverage/utils/logger.ts.html +0 -952
- package/coverage/utils/navigationTracker.ts.html +0 -562
- package/coverage/utils/passwordValidation.ts.html +0 -259
- package/coverage/utils/preAuthCheck.ts.html +0 -442
- package/coverage/utils/redirectSecurity.ts.html +0 -733
- package/coverage/utils/tenantConfig.ts.html +0 -712
- package/coverage/utils/tokenStorage.ts.html +0 -1825
- package/coverage/utils/webCrypto.ts.html +0 -490
- package/dist/CrudiaMarkdownField-DM6NR8zw.d.mts +0 -343
- package/dist/CrudiaMarkdownField-UJaiSq9_.d.ts +0 -343
- package/dist/GlobalNotificationProvider-Cx540WKg.d.mts +0 -96
- package/dist/GlobalNotificationProvider-Cx540WKg.d.ts +0 -96
- package/dist/chunk-2DXLCBOT.mjs +0 -1
- package/dist/chunk-DYRZIARH.js +0 -1
- package/dist/chunk-GCSJXEGT.mjs +0 -1
- package/dist/chunk-GJUZD5ZN.js +0 -1
- package/dist/chunk-K47I475N.js +0 -1
- package/dist/chunk-OCYZGEM5.mjs +0 -1
- package/dist/chunk-PI7HPRDB.js +0 -1
- package/dist/chunk-QVEUGJBY.mjs +0 -1
- package/dist/chunk-UROR7G7N.mjs +0 -1
- package/dist/chunk-XFT47DEL.js +0 -1
- package/dist/components.d.mts +0 -24
- package/dist/components.d.ts +0 -24
- package/dist/components.js +0 -1
- package/dist/components.mjs +0 -1
- package/dist/tenantConfig-DxpfrAof.d.mts +0 -318
- package/dist/tenantConfig-DxpfrAof.d.ts +0 -318
- package/eslint.config.mjs +0 -140
- package/scripts/bump-version.cjs +0 -23
- package/sonar-project.properties +0 -23
- package/tests/helpers/mockFactories.ts +0 -218
- package/tests/helpers/testUtils.tsx +0 -154
- package/tests/hooks/useSession/testUtils.tsx +0 -212
- package/tests/setup.ts +0 -139
- package/tests/vitest.d.ts +0 -1
- package/vitest.config.ts +0 -40
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _nocios_frontend_types from '@nocios/frontend-types';
|
|
2
|
+
import { CrudifyResponse, FrontendEnvironment, CrudifyRequestOptions, TransactionInput, ActionDefinition } from '@nocios/frontend-types';
|
|
3
|
+
import { U as UserProfile } from './api-jcCTCqPD.js';
|
|
2
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { CrudifyResponse } from '@nocios/crudify-sdk';
|
|
5
|
-
import { b as NotificationSeverity } from './GlobalNotificationProvider-Cx540WKg.js';
|
|
5
|
+
import React, { ReactNode } from 'react';
|
|
6
6
|
|
|
7
7
|
type TokenData = {
|
|
8
8
|
accessToken: string;
|
|
@@ -170,7 +170,7 @@ type SessionConfig = {
|
|
|
170
170
|
apiEndpointAdmin?: string;
|
|
171
171
|
apiKeyEndpointAdmin?: string;
|
|
172
172
|
publicApiKey?: string;
|
|
173
|
-
env?:
|
|
173
|
+
env?: FrontendEnvironment;
|
|
174
174
|
};
|
|
175
175
|
/**
|
|
176
176
|
* Response data from a successful login
|
|
@@ -187,7 +187,7 @@ type LoginResult = {
|
|
|
187
187
|
tokens?: TokenData;
|
|
188
188
|
data?: LoginResponseData;
|
|
189
189
|
error?: string;
|
|
190
|
-
rawResponse?:
|
|
190
|
+
rawResponse?: CrudifyResponse;
|
|
191
191
|
};
|
|
192
192
|
declare class SessionManager {
|
|
193
193
|
private static instance;
|
|
@@ -372,7 +372,7 @@ type UseSessionOptions = {
|
|
|
372
372
|
apiEndpointAdmin?: string;
|
|
373
373
|
apiKeyEndpointAdmin?: string;
|
|
374
374
|
publicApiKey?: string;
|
|
375
|
-
env?:
|
|
375
|
+
env?: FrontendEnvironment;
|
|
376
376
|
};
|
|
377
377
|
/**
|
|
378
378
|
* Full return type of the useSession hook
|
|
@@ -425,7 +425,7 @@ type SessionData = {
|
|
|
425
425
|
} | null;
|
|
426
426
|
type CrudifyConfig = {
|
|
427
427
|
publicApiKey?: string;
|
|
428
|
-
env?:
|
|
428
|
+
env?: FrontendEnvironment;
|
|
429
429
|
appName?: string;
|
|
430
430
|
loginActions?: string[];
|
|
431
431
|
logo?: string;
|
|
@@ -479,6 +479,25 @@ declare function useSessionContext(): SessionContextType;
|
|
|
479
479
|
*/
|
|
480
480
|
declare function SessionDebugInfo(): react_jsx_runtime.JSX.Element;
|
|
481
481
|
|
|
482
|
+
interface AutoGenerateConfig {
|
|
483
|
+
prefix: string;
|
|
484
|
+
padding?: number;
|
|
485
|
+
separator?: string;
|
|
486
|
+
}
|
|
487
|
+
interface UseAutoGenerateReturn {
|
|
488
|
+
value: string;
|
|
489
|
+
loading: boolean;
|
|
490
|
+
error: string | null;
|
|
491
|
+
regenerate: () => Promise<void>;
|
|
492
|
+
clearError: () => void;
|
|
493
|
+
}
|
|
494
|
+
interface UseAutoGenerateOptions {
|
|
495
|
+
autoFetch?: boolean;
|
|
496
|
+
onSuccess?: (value: string) => void;
|
|
497
|
+
onError?: (error: string) => void;
|
|
498
|
+
}
|
|
499
|
+
declare const useAutoGenerate: (config: AutoGenerateConfig, options?: UseAutoGenerateOptions) => UseAutoGenerateReturn;
|
|
500
|
+
|
|
482
501
|
/**
|
|
483
502
|
* Individual file status
|
|
484
503
|
*/
|
|
@@ -775,13 +794,13 @@ declare const useAuth: () => UseAuthReturn;
|
|
|
775
794
|
* Return type compatible with legacy useCrudifyData
|
|
776
795
|
*/
|
|
777
796
|
interface UseDataReturn {
|
|
778
|
-
readItems: (moduleKey: string, filter?: object, options?: CrudifyRequestOptions) => Promise<
|
|
779
|
-
readItem: (moduleKey: string, filter: object, options?: CrudifyRequestOptions) => Promise<
|
|
780
|
-
createItem: (moduleKey: string, data: object, options?: CrudifyRequestOptions) => Promise<
|
|
781
|
-
updateItem: (moduleKey: string, data: object, options?: CrudifyRequestOptions) => Promise<
|
|
782
|
-
deleteItem: (moduleKey: string, id: string, options?: CrudifyRequestOptions) => Promise<
|
|
783
|
-
transaction: (operations: TransactionInput, options?: CrudifyRequestOptions) => Promise<
|
|
784
|
-
login: (email: string, password: string) => Promise<
|
|
797
|
+
readItems: (moduleKey: string, filter?: object, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
798
|
+
readItem: (moduleKey: string, filter: object, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
799
|
+
createItem: (moduleKey: string, data: object, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
800
|
+
updateItem: (moduleKey: string, data: object, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
801
|
+
deleteItem: (moduleKey: string, id: string, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
802
|
+
transaction: (operations: TransactionInput, options?: CrudifyRequestOptions) => Promise<CrudifyResponse>;
|
|
803
|
+
login: (email: string, password: string) => Promise<CrudifyResponse>;
|
|
785
804
|
isInitialized: boolean;
|
|
786
805
|
isInitializing: boolean;
|
|
787
806
|
initializationError: string | null;
|
|
@@ -850,16 +869,68 @@ interface UseUserProfileOptions {
|
|
|
850
869
|
retryOnError?: boolean;
|
|
851
870
|
maxRetries?: number;
|
|
852
871
|
}
|
|
872
|
+
type UserProfileDisplayData = Record<string, unknown> & {
|
|
873
|
+
id?: string | number;
|
|
874
|
+
email?: string;
|
|
875
|
+
username?: string;
|
|
876
|
+
firstName?: string;
|
|
877
|
+
lastName?: string;
|
|
878
|
+
fullName?: string;
|
|
879
|
+
role?: string;
|
|
880
|
+
permissions?: string[];
|
|
881
|
+
isActive?: boolean;
|
|
882
|
+
lastLogin?: string;
|
|
883
|
+
createdAt?: string;
|
|
884
|
+
updatedAt?: string;
|
|
885
|
+
avatar?: string;
|
|
886
|
+
};
|
|
887
|
+
type ExtendedUserData = {
|
|
888
|
+
fullProfile?: UserProfile | null;
|
|
889
|
+
totalFields?: number;
|
|
890
|
+
displayData?: UserProfileDisplayData;
|
|
891
|
+
};
|
|
853
892
|
interface UseUserProfileReturn {
|
|
854
893
|
userProfile: UserProfile | null;
|
|
855
894
|
loading: boolean;
|
|
856
895
|
error: string | null;
|
|
857
|
-
extendedData:
|
|
896
|
+
extendedData: ExtendedUserData;
|
|
858
897
|
refreshProfile: () => Promise<void>;
|
|
859
898
|
clearProfile: () => void;
|
|
860
899
|
}
|
|
861
900
|
declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
862
901
|
|
|
902
|
+
type NotificationSeverity = 'error' | 'info' | 'success' | 'warning';
|
|
903
|
+
interface Notification {
|
|
904
|
+
id: string;
|
|
905
|
+
message: string;
|
|
906
|
+
severity: NotificationSeverity;
|
|
907
|
+
autoHideDuration?: number;
|
|
908
|
+
persistent?: boolean;
|
|
909
|
+
allowHtml?: boolean;
|
|
910
|
+
}
|
|
911
|
+
interface GlobalNotificationContextValue {
|
|
912
|
+
showNotification: (message: string, severity?: NotificationSeverity, options?: {
|
|
913
|
+
autoHideDuration?: number;
|
|
914
|
+
persistent?: boolean;
|
|
915
|
+
allowHtml?: boolean;
|
|
916
|
+
}) => string;
|
|
917
|
+
hideNotification: (id: string) => void;
|
|
918
|
+
clearAllNotifications: () => void;
|
|
919
|
+
}
|
|
920
|
+
interface GlobalNotificationProviderProps {
|
|
921
|
+
children: React.ReactNode;
|
|
922
|
+
maxNotifications?: number;
|
|
923
|
+
defaultAutoHideDuration?: number;
|
|
924
|
+
position?: {
|
|
925
|
+
vertical: 'top' | 'bottom';
|
|
926
|
+
horizontal: 'left' | 'center' | 'right';
|
|
927
|
+
};
|
|
928
|
+
enabled?: boolean;
|
|
929
|
+
allowHtml?: boolean;
|
|
930
|
+
}
|
|
931
|
+
declare const GlobalNotificationProvider: React.FC<GlobalNotificationProviderProps>;
|
|
932
|
+
declare const useGlobalNotification: () => GlobalNotificationContextValue;
|
|
933
|
+
|
|
863
934
|
/**
|
|
864
935
|
* Types and interfaces for useCrudifyWithNotifications
|
|
865
936
|
*/
|
|
@@ -867,11 +938,9 @@ declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfil
|
|
|
867
938
|
/**
|
|
868
939
|
* App structure action configuration
|
|
869
940
|
*/
|
|
870
|
-
|
|
871
|
-
key: string;
|
|
941
|
+
type AppStructureAction = Pick<ActionDefinition, 'key'> & {
|
|
872
942
|
moduleKey?: string;
|
|
873
|
-
|
|
874
|
-
}
|
|
943
|
+
} & Record<string, unknown>;
|
|
875
944
|
/**
|
|
876
945
|
* Options for the useCrudifyWithNotifications hook
|
|
877
946
|
*/
|
|
@@ -908,16 +977,16 @@ declare function shouldShowNotification(response: CrudifyResponse): boolean;
|
|
|
908
977
|
* @returns Object with wrapped CRUD operations and utility functions
|
|
909
978
|
*/
|
|
910
979
|
declare const useCrudifyWithNotifications: (options?: CrudifyWithNotificationsOptions) => {
|
|
911
|
-
createItem: (moduleKey: string, data: object, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
912
|
-
updateItem: (moduleKey: string, data: object, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
913
|
-
deleteItem: (moduleKey: string, id: string, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
914
|
-
readItem: (moduleKey: string, filter: object, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
915
|
-
readItems: (moduleKey: string, filter: object, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
916
|
-
transaction: (data: TransactionInput, options?: CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
980
|
+
createItem: (moduleKey: string, data: object, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
981
|
+
updateItem: (moduleKey: string, data: object, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
982
|
+
deleteItem: (moduleKey: string, id: string, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
983
|
+
readItem: (moduleKey: string, filter: object, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
984
|
+
readItems: (moduleKey: string, filter: object, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
985
|
+
transaction: (data: _nocios_frontend_types.TransactionInput, options?: _nocios_frontend_types.CrudifyOperationOptions) => Promise<CrudifyResponse>;
|
|
917
986
|
handleResponse: (response: CrudifyResponse, successMessage?: string) => CrudifyResponse;
|
|
918
987
|
getErrorMessage: (response: CrudifyResponse) => string;
|
|
919
988
|
getErrorSeverity: (response: CrudifyResponse) => NotificationSeverity;
|
|
920
989
|
shouldShowNotification: typeof shouldShowNotification;
|
|
921
990
|
};
|
|
922
991
|
|
|
923
|
-
export { type FileItem as F, type LoginResult as L, type
|
|
992
|
+
export { type AutoGenerateConfig as A, useSession as B, useSessionContext as C, useUserData as D, useUserProfile as E, type FileItem as F, GlobalNotificationProvider as G, type LoginResult as L, type Notification as N, type SessionConfig as S, type TokenData as T, type UseAuthReturn as U, type FileStatus as a, type GlobalNotificationProviderProps as b, type NotificationOptions as c, type NotificationSeverity as d, SessionDebugInfo as e, SessionManager as f, SessionProvider as g, type SessionProviderProps as h, type SessionState as i, type StorageType as j, TokenStorage as k, type UseAutoGenerateOptions as l, type UseAutoGenerateReturn as m, type UseDataReturn as n, type UseFileUploadOptions as o, type UseFileUploadReturn as p, type UseSessionOptions as q, type UseUserDataOptions as r, type UseUserDataReturn as s, type UserData as t, useAuth as u, useAutoGenerate as v, useCrudifyWithNotifications as w, useData as x, useFileUpload as y, useGlobalNotification as z };
|