@jmruthers/pace-core 0.5.135 → 0.5.136
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/{DataTable-C7GaRZye.d.ts → DataTable-CWAZZcXC.d.ts} +1 -1
- package/dist/{DataTable-A36PJG6N.js → DataTable-CYOHOX3O.js} +25 -13
- package/dist/{PublicLoadingSpinner-CUAnTvcg.d.ts → EventLogo-801uofbR.d.ts} +51 -135
- package/dist/UnifiedAuthProvider-5E5TUNMS.js +17 -0
- package/dist/{UnifiedAuthProvider-BVKmQd9u.d.ts → UnifiedAuthProvider-DJxGTftH.d.ts} +1 -1
- package/dist/{api-TNIBJWLM.js → api-45XYYO2A.js} +4 -3
- package/dist/{audit-T36HM7IM.js → audit-64X3VJXB.js} +3 -2
- package/dist/{chunk-CTJRBUX2.js → chunk-2TWNJ46Y.js} +2 -2
- package/dist/{chunk-UJI6WSMD.js → chunk-444EZN6N.js} +3 -3
- package/dist/chunk-444EZN6N.js.map +1 -0
- package/dist/{chunk-3CG5L6RN.js → chunk-4MT5BGGL.js} +90 -73
- package/dist/chunk-4MT5BGGL.js.map +1 -0
- package/dist/{chunk-PYUXFQJ3.js → chunk-56XJ3TU6.js} +2 -2
- package/dist/chunk-56XJ3TU6.js.map +1 -0
- package/dist/chunk-5DPZ5EAT.js +60 -0
- package/dist/chunk-5DPZ5EAT.js.map +1 -0
- package/dist/{chunk-66C4BSAY.js → chunk-ANBQRTPX.js} +9 -2
- package/dist/chunk-ANBQRTPX.js.map +1 -0
- package/dist/chunk-APIBCTL2.js +670 -0
- package/dist/chunk-APIBCTL2.js.map +1 -0
- package/dist/{chunk-GKHF54DI.js → chunk-BESYRHQM.js} +10 -4
- package/dist/chunk-BESYRHQM.js.map +1 -0
- package/dist/{chunk-WP5I5GLN.js → chunk-BVYWGZVV.js} +112 -97
- package/dist/chunk-BVYWGZVV.js.map +1 -0
- package/dist/{chunk-GEVIB2UB.js → chunk-ERISIBYU.js} +14 -5
- package/dist/chunk-ERISIBYU.js.map +1 -0
- package/dist/{chunk-CQZU6TFE.js → chunk-FHWWBIHA.js} +100 -62
- package/dist/chunk-FHWWBIHA.js.map +1 -0
- package/dist/{chunk-O3NWNXDY.js → chunk-FMUCXFII.js} +2 -2
- package/dist/chunk-FMUCXFII.js.map +1 -0
- package/dist/{chunk-GVDR7WNV.js → chunk-HJGGOMQ6.js} +194 -518
- package/dist/chunk-HJGGOMQ6.js.map +1 -0
- package/dist/{chunk-BDZUMRBD.js → chunk-K2WWTH7O.js} +13 -6
- package/dist/chunk-K2WWTH7O.js.map +1 -0
- package/dist/{chunk-BYXRHAIF.js → chunk-L6PGMCMD.js} +23 -14
- package/dist/chunk-L6PGMCMD.js.map +1 -0
- package/dist/chunk-LMC26NLJ.js +84 -0
- package/dist/chunk-LMC26NLJ.js.map +1 -0
- package/dist/{chunk-M6DDYFUD.js → chunk-LS353YLY.js} +19 -16
- package/dist/chunk-LS353YLY.js.map +1 -0
- package/dist/{chunk-ZYZCRSBD.js → chunk-LTV3XIJJ.js} +16 -11
- package/dist/chunk-LTV3XIJJ.js.map +1 -0
- package/dist/{chunk-HMNOSGVA.js → chunk-NOHEVYVX.js} +377 -666
- package/dist/chunk-NOHEVYVX.js.map +1 -0
- package/dist/{chunk-JCQZ6LA7.js → chunk-Q5QRDWKI.js} +9 -3
- package/dist/chunk-Q5QRDWKI.js.map +1 -0
- package/dist/chunk-S5OFRT4M.js +94 -0
- package/dist/chunk-S5OFRT4M.js.map +1 -0
- package/dist/{chunk-3DBFLLLU.js → chunk-SBVILCCA.js} +14 -9
- package/dist/chunk-SBVILCCA.js.map +1 -0
- package/dist/{chunk-TGIY2AR2.js → chunk-SL2YQDR6.js} +4 -3
- package/dist/{chunk-TGIY2AR2.js.map → chunk-SL2YQDR6.js.map} +1 -1
- package/dist/{chunk-VZ5OR6HD.js → chunk-TVYPTYOY.js} +55 -179
- package/dist/chunk-TVYPTYOY.js.map +1 -0
- package/dist/{chunk-ZV77RZMU.js → chunk-XARJS7CD.js} +2 -2
- package/dist/chunk-XDNLUEXI.js +138 -0
- package/dist/chunk-XDNLUEXI.js.map +1 -0
- package/dist/{chunk-F64FFPOZ.js → chunk-YLKIDTUK.js} +26 -20
- package/dist/chunk-YLKIDTUK.js.map +1 -0
- package/dist/{chunk-5F3NDPJV.js → chunk-ZZ2SS7NI.js} +10 -5
- package/dist/chunk-ZZ2SS7NI.js.map +1 -0
- package/dist/components.d.ts +7 -287
- package/dist/components.js +26 -157
- package/dist/components.js.map +1 -1
- package/dist/{file-reference-C9isKNPn.d.ts → file-reference-C6Gkn77H.d.ts} +1 -1
- package/dist/{formatting-DFcCxUEk.d.ts → formatting-CvUXy2mF.d.ts} +1 -1
- package/dist/hooks.d.ts +3 -3
- package/dist/hooks.js +22 -16
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +101 -9
- package/dist/index.js +43 -31
- package/dist/index.js.map +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +5 -4
- package/dist/rbac/index.js +13 -12
- package/dist/styles/index.js +2 -1
- package/dist/theming/runtime.d.ts +2 -19
- package/dist/theming/runtime.js +2 -1
- package/dist/{types-D5rqZQXk.d.ts → types-Dfz9dmVH.d.ts} +12 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +1 -1
- package/dist/{useInactivityTracker-MRUU55XI.js → useInactivityTracker-TO6ZOF35.js} +3 -2
- package/dist/{usePublicRouteParams-Dyt1tzI9.d.ts → usePublicRouteParams-B7PabvuH.d.ts} +1 -1
- package/dist/utils.d.ts +195 -232
- package/dist/utils.js +173 -331
- package/dist/utils.js.map +1 -1
- package/dist/{validation-DnhrNMju.d.ts → validation-8npbysjg.d.ts} +26 -8
- package/dist/validation.d.ts +261 -10
- package/dist/validation.js +82 -440
- package/dist/validation.js.map +1 -1
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +6 -6
- package/docs/api/classes/InvalidScopeError.md +1 -1
- package/docs/api/classes/MissingUserContextError.md +1 -1
- package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
- package/docs/api/classes/PermissionDeniedError.md +1 -1
- package/docs/api/classes/PublicErrorBoundary.md +1 -1
- package/docs/api/classes/RBACAuditManager.md +6 -6
- package/docs/api/classes/RBACCache.md +1 -1
- package/docs/api/classes/RBACEngine.md +7 -7
- package/docs/api/classes/RBACError.md +1 -1
- package/docs/api/classes/RBACNotInitializedError.md +1 -1
- package/docs/api/classes/SecureSupabaseClient.md +1 -1
- package/docs/api/classes/StorageUtils.md +1 -1
- package/docs/api/enums/FileCategory.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +4 -4
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +29 -4
- package/docs/api/interfaces/DataAccessRecord.md +9 -9
- package/docs/api/interfaces/DataRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +18 -18
- package/docs/api/interfaces/DataTableColumn.md +61 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +7 -7
- package/docs/api/interfaces/EmptyStateConfig.md +5 -5
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +14 -14
- package/docs/api/interfaces/EventAppRoleData.md +1 -1
- package/docs/api/interfaces/EventLogoProps.md +152 -0
- package/docs/api/interfaces/ExportColumn.md +1 -1
- package/docs/api/interfaces/ExportOptions.md +8 -8
- package/docs/api/interfaces/FileDisplayProps.md +15 -15
- package/docs/api/interfaces/FileMetadata.md +1 -1
- package/docs/api/interfaces/FileReference.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/GrantEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +10 -10
- package/docs/api/interfaces/NavigationContextType.md +9 -9
- package/docs/api/interfaces/NavigationGuardProps.md +10 -10
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +7 -7
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +27 -27
- package/docs/api/interfaces/PaceLoginPageProps.md +4 -4
- package/docs/api/interfaces/PageAccessRecord.md +8 -8
- package/docs/api/interfaces/PagePermissionContextType.md +8 -8
- package/docs/api/interfaces/PagePermissionGuardProps.md +11 -11
- package/docs/api/interfaces/PagePermissionProviderProps.md +7 -7
- package/docs/api/interfaces/PaletteData.md +4 -4
- package/docs/api/interfaces/PermissionEnforcerProps.md +11 -11
- package/docs/api/interfaces/ProtectedRouteProps.md +6 -6
- package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
- package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RevokeEventAppRoleParams.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +8 -8
- package/docs/api/interfaces/RoleBasedRouterProps.md +10 -10
- package/docs/api/interfaces/RoleManagementResult.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +10 -10
- package/docs/api/interfaces/RouteConfig.md +10 -10
- package/docs/api/interfaces/SecureDataContextType.md +9 -9
- package/docs/api/interfaces/SecureDataProviderProps.md +8 -8
- package/docs/api/interfaces/SessionRestorationLoaderProps.md +21 -0
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/SwitchProps.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +53 -53
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +13 -13
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +9 -9
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +8 -8
- package/docs/api/interfaces/UsePublicEventOptions.md +3 -3
- package/docs/api/interfaces/UsePublicEventReturn.md +5 -5
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +4 -4
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +9 -9
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +4 -4
- package/docs/api/interfaces/UseResolvedScopeReturn.md +4 -4
- package/docs/api/interfaces/UserEventAccess.md +11 -11
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +514 -212
- package/docs/api-reference/components.md +106 -26
- package/docs/architecture/README.md +0 -2
- package/docs/implementation-guides/data-tables.md +277 -13
- package/docs/implementation-guides/forms.md +1 -16
- package/docs/implementation-guides/permission-enforcement.md +8 -2
- package/examples/README.md +30 -14
- package/examples/STRUCTURE.md +125 -0
- package/examples/components/DataTable/HierarchicalActionsExample.tsx +421 -0
- package/examples/components/DataTable/HierarchicalExample.tsx +475 -0
- package/examples/components/DataTable/InitialPageSizeExample.tsx +177 -0
- package/examples/components/DataTable/PerformanceExample.tsx +506 -0
- package/examples/components/DataTable/index.ts +13 -0
- package/examples/components/Dialog/BasicHtmlTest.tsx +55 -0
- package/examples/components/Dialog/DebugHtmlExample.tsx +68 -0
- package/examples/components/Dialog/HtmlDialogExample.tsx +202 -0
- package/examples/components/Dialog/ScrollableDialogExample.tsx +290 -0
- package/examples/components/Dialog/SimpleHtmlTest.tsx +61 -0
- package/examples/components/Dialog/SmartDialogExample.tsx +322 -0
- package/examples/components/Dialog/index.ts +15 -0
- package/examples/components/index.ts +11 -0
- package/examples/features/index.ts +12 -0
- package/examples/{public-pages → features/public-pages}/CorrectPublicPageImplementation.tsx +1 -1
- package/examples/{public-pages → features/public-pages}/PublicEventPage.tsx +1 -1
- package/examples/{public-pages → features/public-pages}/PublicPageApp.tsx +1 -1
- package/examples/{public-pages → features/public-pages}/PublicPageUsageExample.tsx +1 -1
- package/examples/index.ts +11 -3
- package/package.json +30 -10
- package/src/components/Alert/Alert.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/DataTable/DataTable.test.tsx +1 -1
- package/src/components/DataTable/DataTable.tsx +1 -30
- package/src/components/DataTable/__tests__/DataTable.grouping-aggregation.test.tsx +562 -0
- package/src/components/DataTable/__tests__/styles.test.ts +2 -2
- package/src/components/DataTable/components/ActionButtons.tsx +0 -15
- package/src/components/DataTable/components/DataTableCore.tsx +4 -185
- package/src/components/DataTable/components/DataTableErrorBoundary.tsx +1 -1
- package/src/components/DataTable/components/DataTableModals.tsx +1 -27
- package/src/components/DataTable/components/EditableRow.tsx +1 -1
- package/src/components/DataTable/components/ImportModal.tsx +2 -14
- package/src/components/DataTable/components/PaginationControls.tsx +1 -1
- package/src/components/DataTable/components/UnifiedTableBody.tsx +109 -82
- package/src/components/DataTable/components/__tests__/ActionButtons.test.tsx +1 -1
- package/src/components/DataTable/components/__tests__/DataTableErrorBoundary.test.tsx +1 -1
- package/src/components/DataTable/components/__tests__/DataTableModals.test.tsx +1 -1
- package/src/components/DataTable/components/__tests__/ImportModal.test.tsx +1 -1
- package/src/components/DataTable/examples/GroupingAggregationExample.tsx +273 -0
- package/src/components/DataTable/examples/HierarchicalActionsExample.tsx +1 -1
- package/src/components/DataTable/examples/__tests__/HierarchicalActionsExample.test.tsx +1 -1
- package/src/components/DataTable/hooks/useColumnOrderPersistence.ts +1 -1
- package/src/components/DataTable/hooks/useColumnVisibilityPersistence.ts +1 -1
- package/src/components/DataTable/hooks/useDataTablePermissions.ts +2 -23
- package/src/components/DataTable/index.ts +4 -0
- package/src/components/DataTable/styles.ts +1 -1
- package/src/components/DataTable/types.ts +13 -0
- package/src/components/DataTable/utils/__tests__/exportUtils.test.ts +1 -1
- package/src/components/DataTable/utils/aggregationUtils.ts +161 -0
- package/src/components/DataTable/utils/exportUtils.ts +1 -1
- package/src/components/DataTable/utils/flexibleImport.ts +1 -11
- package/src/components/DataTable/utils/index.ts +1 -0
- package/src/components/DataTable/utils/paginationUtils.ts +1 -1
- package/src/components/Dialog/Dialog.tsx +2 -2
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +35 -7
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +5 -4
- package/src/components/EventSelector/EventSelector.tsx +3 -2
- package/src/components/FileDisplay/FileDisplay.tsx +2 -36
- package/src/components/FileUpload/FileUpload.test.tsx +2 -2
- package/src/components/FileUpload/FileUpload.tsx +2 -2
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Form/Form.test.tsx +4 -509
- package/src/components/Form/Form.tsx +1 -1
- package/src/components/Form/FormField.tsx +1 -1
- package/src/components/Form/index.ts +0 -12
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Input/Input.tsx +1 -1
- package/src/components/Label/Label.tsx +1 -1
- package/src/components/LoginForm/LoginForm.tsx +1 -1
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +19 -3
- package/src/components/NavigationMenu/NavigationMenu.tsx +9 -8
- package/src/components/OrganisationSelector/OrganisationSelector.tsx +4 -3
- package/src/components/PaceAppLayout/PaceAppLayout.tsx +14 -12
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.integration.test.tsx +0 -16
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.security.test.tsx +0 -1
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.unit.test.tsx +0 -9
- package/src/components/PaceLoginPage/PaceLoginPage.test.tsx +35 -3
- package/src/components/PaceLoginPage/PaceLoginPage.tsx +13 -12
- package/src/components/PasswordReset/PasswordChangeForm.tsx +1 -1
- package/src/components/PasswordReset/index.ts +0 -2
- package/src/components/Progress/Progress.tsx +1 -1
- package/src/components/ProtectedRoute/ProtectedRoute.test.tsx +35 -8
- package/src/components/ProtectedRoute/ProtectedRoute.tsx +3 -2
- package/src/components/PublicLayout/PublicErrorBoundary.tsx +1 -1
- package/src/components/PublicLayout/PublicLoadingSpinner.tsx +1 -1
- package/src/components/PublicLayout/PublicPageContextChecker.tsx +44 -43
- package/src/components/PublicLayout/PublicPageFooter.tsx +1 -1
- package/src/components/PublicLayout/PublicPageHeader.tsx +1 -15
- package/src/components/PublicLayout/PublicPageProvider.tsx +3 -2
- package/src/components/PublicLayout/__tests__/PublicPageContextChecker.test.tsx +2 -0
- package/src/components/PublicLayout/index.ts +4 -2
- package/src/components/Select/Select.tsx +1 -1
- package/src/components/{SessionRestorationLoader.tsx → SessionRestorationLoader/SessionRestorationLoader.tsx} +3 -2
- package/src/components/SessionRestorationLoader/index.ts +3 -0
- package/src/components/Switch/Switch.tsx +1 -1
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +1 -1
- package/src/components/index.ts +4 -10
- package/src/hooks/__tests__/hooks.integration.test.tsx +37 -22
- package/src/hooks/__tests__/useComponentPerformance.unit.test.tsx +33 -17
- package/src/hooks/__tests__/useDataTablePerformance.unit.test.ts +28 -3
- package/src/hooks/__tests__/useFileDisplay.unit.test.ts +36 -9
- package/src/hooks/__tests__/useInactivityTracker.unit.test.ts +26 -2
- package/src/hooks/__tests__/usePerformanceMonitor.unit.test.ts +19 -6
- package/src/hooks/__tests__/usePermissionCache.simple.test.ts +17 -4
- package/src/hooks/__tests__/usePermissionCache.unit.test.ts +17 -4
- package/src/hooks/__tests__/usePublicEvent.simple.test.ts +26 -6
- package/src/hooks/__tests__/usePublicFileDisplay.test.ts +16 -6
- package/src/hooks/__tests__/useSecureDataAccess.unit.test.tsx +3 -3
- package/src/hooks/__tests__/useSessionRestoration.unit.test.tsx +17 -3
- package/src/hooks/public/usePublicEvent.ts +7 -6
- package/src/hooks/public/usePublicEventLogo.ts +7 -4
- package/src/hooks/public/usePublicFileDisplay.ts +6 -150
- package/src/hooks/useComponentPerformance.ts +4 -1
- package/src/hooks/useDataTablePerformance.ts +4 -3
- package/src/hooks/useEventTheme.test.ts +18 -5
- package/src/hooks/useEventTheme.ts +4 -1
- package/src/hooks/useEvents.ts +2 -0
- package/src/hooks/useFileDisplay.ts +9 -8
- package/src/hooks/useFileReference.ts +4 -1
- package/src/hooks/useFileUrl.ts +4 -1
- package/src/hooks/useInactivityTracker.ts +5 -4
- package/src/hooks/useOrganisationSecurity.test.ts +33 -12
- package/src/hooks/useOrganisationSecurity.ts +8 -7
- package/src/hooks/usePerformanceMonitor.ts +6 -3
- package/src/hooks/usePermissionCache.ts +13 -6
- package/src/hooks/useSecureDataAccess.test.ts +2 -2
- package/src/hooks/useSecureDataAccess.ts +9 -8
- package/src/hooks/useSessionRestoration.ts +4 -1
- package/src/hooks/useStorage.ts +4 -1
- package/src/index.ts +16 -7
- package/src/providers/services/AuthServiceProvider.tsx +3 -2
- package/src/providers/services/EventServiceProvider.tsx +2 -1
- package/src/providers/services/InactivityServiceProvider.tsx +2 -1
- package/src/providers/services/OrganisationServiceProvider.tsx +2 -1
- package/src/providers/services/UnifiedAuthProvider.tsx +4 -3
- package/src/providers/services/__tests__/AuthServiceProvider.integration.test.tsx +22 -2
- package/src/providers/services/__tests__/UnifiedAuthProvider.integration.test.tsx +24 -2
- package/src/rbac/__tests__/cache-invalidation.test.ts +20 -6
- package/src/rbac/api.ts +5 -2
- package/src/rbac/audit-enhanced.ts +6 -6
- package/src/rbac/audit.test.ts +60 -38
- package/src/rbac/audit.ts +8 -8
- package/src/rbac/cache-invalidation.ts +7 -4
- package/src/rbac/components/EnhancedNavigationMenu.tsx +11 -5
- package/src/rbac/components/NavigationGuard.tsx +7 -3
- package/src/rbac/components/NavigationProvider.tsx +6 -3
- package/src/rbac/components/PagePermissionGuard.tsx +28 -16
- package/src/rbac/components/PagePermissionProvider.tsx +4 -1
- package/src/rbac/components/PermissionEnforcer.tsx +9 -3
- package/src/rbac/components/RoleBasedRouter.tsx +3 -1
- package/src/rbac/components/SecureDataProvider.tsx +7 -3
- package/src/rbac/components/__tests__/EnhancedNavigationMenu.test.tsx +87 -61
- package/src/rbac/components/__tests__/NavigationGuard.test.tsx +83 -33
- package/src/rbac/components/__tests__/NavigationProvider.test.tsx +36 -13
- package/src/rbac/components/__tests__/PagePermissionGuard.test.tsx +2 -2
- package/src/rbac/components/__tests__/PagePermissionProvider.test.tsx +22 -8
- package/src/rbac/components/__tests__/PermissionEnforcer.test.tsx +19 -6
- package/src/rbac/components/__tests__/SecureDataProvider.fixed.test.tsx +43 -17
- package/src/rbac/components/__tests__/SecureDataProvider.test.tsx +42 -17
- package/src/rbac/engine.ts +15 -7
- package/src/rbac/hooks/usePermissions.ts +7 -3
- package/src/rbac/hooks/useResolvedScope.test.ts +2 -2
- package/src/rbac/hooks/useResolvedScope.ts +10 -7
- package/src/rbac/permissions.ts +5 -2
- package/src/rbac/security.test.ts +27 -16
- package/src/rbac/security.ts +5 -4
- package/src/services/AuthService.ts +22 -21
- package/src/services/EventService.ts +12 -12
- package/src/services/InactivityService.ts +5 -4
- package/src/services/OrganisationService.ts +26 -25
- package/src/services/__tests__/AuthService.test.ts +51 -19
- package/src/services/__tests__/EventService.test.ts +37 -5
- package/src/services/__tests__/InactivityService.test.ts +38 -4
- package/src/services/__tests__/OrganisationService.test.ts +3 -8
- package/src/services/base/BaseService.ts +3 -1
- package/src/theming/__tests__/runtime.test.ts +21 -12
- package/src/theming/parseEventColours.ts +5 -19
- package/src/theming/runtime.ts +8 -4
- package/src/types/validation.ts +2 -29
- package/src/utils/__tests__/appConfig.unit.test.ts +1 -1
- package/src/utils/__tests__/audit.unit.test.ts +1 -1
- package/src/utils/__tests__/auth-utils.unit.test.ts +1 -1
- package/src/utils/__tests__/bundleAnalysis.unit.test.ts +19 -19
- package/src/utils/__tests__/cn.unit.test.ts +1 -1
- package/src/utils/__tests__/debugLogger.test.ts +1 -1
- package/src/utils/__tests__/deviceFingerprint.unit.test.ts +1 -1
- package/src/utils/__tests__/dynamicUtils.unit.test.ts +1 -1
- package/src/utils/__tests__/formatting.unit.test.ts +1 -1
- package/src/utils/__tests__/lazyLoad.unit.test.tsx +1 -1
- package/src/utils/__tests__/logger.unit.test.ts +1 -1
- package/src/utils/__tests__/organisationContext.unit.test.ts +1 -1
- package/src/utils/__tests__/performanceBenchmark.test.ts +1 -1
- package/src/utils/__tests__/performanceBudgets.unit.test.ts +1 -1
- package/src/utils/__tests__/permissionTypes.unit.test.ts +1 -1
- package/src/utils/__tests__/permissionUtils.unit.test.ts +1 -1
- package/src/utils/__tests__/sanitization.unit.test.ts +1 -1
- package/src/utils/__tests__/schemaUtils.unit.test.ts +1 -1
- package/src/utils/__tests__/secureDataAccess.unit.test.ts +1 -1
- package/src/utils/__tests__/secureErrors.unit.test.ts +33 -15
- package/src/utils/__tests__/secureStorage.unit.test.ts +1 -1
- package/src/utils/__tests__/security.unit.test.ts +40 -18
- package/src/utils/__tests__/securityMonitor.unit.test.ts +1 -1
- package/src/utils/__tests__/sessionTracking.unit.test.ts +40 -29
- package/src/utils/__tests__/validationUtils.unit.test.ts +19 -6
- package/src/utils/{appIdResolver.test.ts → app/appIdResolver.test.ts} +28 -30
- package/src/utils/{appIdResolver.ts → app/appIdResolver.ts} +8 -5
- package/src/utils/{appNameResolver.test.ts → app/appNameResolver.test.ts} +1 -1
- package/src/utils/{appNameResolver.ts → app/appNameResolver.ts} +5 -1
- package/src/utils/{organisationContext.ts → context/organisationContext.ts} +6 -3
- package/src/utils/{sessionTracking.ts → context/sessionTracking.ts} +11 -12
- package/src/utils/{logger.ts → core/logger.ts} +4 -2
- package/src/utils/{deviceFingerprint.ts → device/deviceFingerprint.ts} +1 -1
- package/src/utils/{lazyLoad.tsx → dynamic/lazyLoad.tsx} +2 -2
- package/src/utils/{file-reference.test.ts → file-reference/__tests__/file-reference.test.ts} +5 -5
- package/src/utils/{file-reference.ts → file-reference/index.ts} +20 -38
- package/src/utils/index.ts +32 -54
- package/src/utils/{secureErrors.ts → security/secureErrors.ts} +6 -3
- package/src/utils/{security.ts → security/security.ts} +5 -2
- package/src/utils/storage/__tests__/helpers.unit.test.ts +1 -4
- package/src/utils/storage/helpers.ts +15 -8
- package/src/{components/Dialog/utils/__tests__/safeHtml.unit.test.ts → utils/validation/__tests__/htmlSanitization.unit.test.ts} +9 -15
- package/src/{validation → utils/validation}/csrf.ts +1 -1
- package/src/{components/Dialog/utils/safeHtml.ts → utils/validation/htmlSanitization.ts} +9 -10
- package/src/utils/validation/index.ts +79 -0
- package/src/utils/{sanitization.ts → validation/sanitization.ts} +71 -2
- package/src/{validation/schemaUtils.ts → utils/validation/schema.ts} +11 -6
- package/src/{validation → utils/validation}/sqlInjectionProtection.ts +2 -0
- package/src/utils/{validationUtils.ts → validation/validationUtils.ts} +4 -1
- package/src/validation/index.ts +3 -34
- package/dist/UnifiedAuthProvider-CQDZRJIS.js +0 -16
- package/dist/chunk-24MKLB7U.js +0 -81
- package/dist/chunk-24MKLB7U.js.map +0 -1
- package/dist/chunk-3CG5L6RN.js.map +0 -1
- package/dist/chunk-3DBFLLLU.js.map +0 -1
- package/dist/chunk-5F3NDPJV.js.map +0 -1
- package/dist/chunk-66C4BSAY.js.map +0 -1
- package/dist/chunk-BDZUMRBD.js.map +0 -1
- package/dist/chunk-BYXRHAIF.js.map +0 -1
- package/dist/chunk-CDQ3PX7L.js +0 -18
- package/dist/chunk-CDQ3PX7L.js.map +0 -1
- package/dist/chunk-CQZU6TFE.js.map +0 -1
- package/dist/chunk-F64FFPOZ.js.map +0 -1
- package/dist/chunk-GEVIB2UB.js.map +0 -1
- package/dist/chunk-GKHF54DI.js.map +0 -1
- package/dist/chunk-GVDR7WNV.js.map +0 -1
- package/dist/chunk-HMNOSGVA.js.map +0 -1
- package/dist/chunk-JCQZ6LA7.js.map +0 -1
- package/dist/chunk-M6DDYFUD.js.map +0 -1
- package/dist/chunk-O3NWNXDY.js.map +0 -1
- package/dist/chunk-PYUXFQJ3.js.map +0 -1
- package/dist/chunk-UJI6WSMD.js.map +0 -1
- package/dist/chunk-VZ5OR6HD.js.map +0 -1
- package/dist/chunk-WP5I5GLN.js.map +0 -1
- package/dist/chunk-ZYZCRSBD.js.map +0 -1
- package/src/components/Dialog/README.md +0 -804
- package/src/components/Form/FormErrorSummary.tsx +0 -113
- package/src/components/Form/FormFieldset.tsx +0 -127
- package/src/components/Form/FormLiveRegion.tsx +0 -198
- package/src/components/PasswordReset/PasswordResetForm.test.tsx +0 -597
- package/src/components/PasswordReset/PasswordResetForm.tsx +0 -201
- package/src/components/PublicLayout/PublicPageDebugger.tsx +0 -104
- package/src/components/PublicLayout/PublicPageDiagnostic.tsx +0 -162
- package/src/components/PublicLayout/__tests__/PublicPageDebugger.test.tsx +0 -185
- package/src/examples/CorrectPublicPageImplementation.tsx +0 -304
- package/src/examples/PublicEventPage.tsx +0 -287
- package/src/examples/PublicPageApp.tsx +0 -321
- package/src/examples/PublicPageUsageExample.tsx +0 -218
- package/src/utils/schemaUtils.ts +0 -37
- package/src/validation/__tests__/common.unit.test.ts +0 -101
- package/src/validation/__tests__/csrf.unit.test.ts +0 -365
- package/src/validation/__tests__/passwordSchema.unit.test.ts +0 -203
- package/src/validation/__tests__/sanitization.unit.test.ts +0 -250
- package/src/validation/__tests__/schemaUtils.unit.test.ts +0 -451
- package/src/validation/__tests__/sqlInjectionProtection.unit.test.ts +0 -462
- package/src/validation/__tests__/user.unit.test.ts +0 -440
- package/src/validation/sanitization.ts +0 -96
- /package/dist/{DataTable-A36PJG6N.js.map → DataTable-CYOHOX3O.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-CQDZRJIS.js.map → UnifiedAuthProvider-5E5TUNMS.js.map} +0 -0
- /package/dist/{api-TNIBJWLM.js.map → api-45XYYO2A.js.map} +0 -0
- /package/dist/{audit-T36HM7IM.js.map → audit-64X3VJXB.js.map} +0 -0
- /package/dist/{chunk-CTJRBUX2.js.map → chunk-2TWNJ46Y.js.map} +0 -0
- /package/dist/{chunk-ZV77RZMU.js.map → chunk-XARJS7CD.js.map} +0 -0
- /package/dist/{useInactivityTracker-MRUU55XI.js.map → useInactivityTracker-TO6ZOF35.js.map} +0 -0
- /package/examples/{public-pages → features/public-pages}/index.ts +0 -0
- /package/examples/{RBAC → features/rbac}/CompleteRBACExample.tsx +0 -0
- /package/examples/{RBAC → features/rbac}/EventBasedApp.tsx +0 -0
- /package/examples/{RBAC → features/rbac}/PermissionExample.tsx +0 -0
- /package/examples/{RBAC → features/rbac}/index.ts +0 -0
- /package/src/utils/{appConfig.ts → app/appConfig.ts} +0 -0
- /package/src/utils/{appNameResolver.simple.test.ts → app/appNameResolver.simple.test.ts} +0 -0
- /package/src/utils/{audit.ts → audit/audit.ts} +0 -0
- /package/src/utils/{organisationContext.test.ts → context/organisationContext.test.ts} +0 -0
- /package/src/utils/{cn.ts → core/cn.ts} +0 -0
- /package/src/utils/{debugLogger.ts → core/debugLogger.ts} +0 -0
- /package/src/utils/{dynamicUtils.ts → dynamic/dynamicUtils.ts} +0 -0
- /package/src/utils/{formatDate.test.ts → formatting/formatDate.test.ts} +0 -0
- /package/src/utils/{formatting.ts → formatting/formatting.ts} +0 -0
- /package/src/utils/{bundleAnalysis.ts → performance/bundleAnalysis.ts} +0 -0
- /package/src/utils/{performanceBenchmark.ts → performance/performanceBenchmark.ts} +0 -0
- /package/src/utils/{performanceBudgets.ts → performance/performanceBudgets.ts} +0 -0
- /package/src/utils/{permissionTypes.ts → permissions/permissionTypes.ts} +0 -0
- /package/src/utils/{permissionUtils.test.ts → permissions/permissionUtils.test.ts} +0 -0
- /package/src/utils/{permissionUtils.ts → permissions/permissionUtils.ts} +0 -0
- /package/src/utils/{auth-utils.ts → security/auth-utils.ts} +0 -0
- /package/src/utils/{secureDataAccess.test.ts → security/secureDataAccess.test.ts} +0 -0
- /package/src/utils/{secureDataAccess.ts → security/secureDataAccess.ts} +0 -0
- /package/src/utils/{secureStorage.ts → security/secureStorage.ts} +0 -0
- /package/src/utils/{securityMonitor.ts → security/securityMonitor.ts} +0 -0
- /package/src/{validation → utils/validation}/common.ts +0 -0
- /package/src/{validation → utils/validation}/passwordSchema.ts +0 -0
- /package/src/{validation → utils/validation}/user.ts +0 -0
- /package/src/utils/{validation.ts → validation/validation.ts} +0 -0
package/docs/api/modules.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.136](README.md) / Exports
|
|
2
2
|
|
|
3
|
-
# @jmruthers/pace-core - v0.5.
|
|
3
|
+
# @jmruthers/pace-core - v0.5.136
|
|
4
4
|
|
|
5
5
|
**`File`**
|
|
6
6
|
|
|
@@ -75,12 +75,14 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
75
75
|
- [PaceAppLayoutProps](interfaces/PaceAppLayoutProps.md)
|
|
76
76
|
- [PaceLoginPageProps](interfaces/PaceLoginPageProps.md)
|
|
77
77
|
- [ProtectedRouteProps](interfaces/ProtectedRouteProps.md)
|
|
78
|
+
- [EventLogoProps](interfaces/EventLogoProps.md)
|
|
78
79
|
- [PublicErrorBoundaryProps](interfaces/PublicErrorBoundaryProps.md)
|
|
79
80
|
- [PublicErrorBoundaryState](interfaces/PublicErrorBoundaryState.md)
|
|
80
81
|
- [PublicLoadingSpinnerProps](interfaces/PublicLoadingSpinnerProps.md)
|
|
81
82
|
- [PublicPageFooterProps](interfaces/PublicPageFooterProps.md)
|
|
82
83
|
- [PublicPageHeaderProps](interfaces/PublicPageHeaderProps.md)
|
|
83
84
|
- [PublicPageLayoutProps](interfaces/PublicPageLayoutProps.md)
|
|
85
|
+
- [SessionRestorationLoaderProps](interfaces/SessionRestorationLoaderProps.md)
|
|
84
86
|
- [SwitchProps](interfaces/SwitchProps.md)
|
|
85
87
|
- [ToastProps](interfaces/ToastProps.md)
|
|
86
88
|
- [ToastActionElement](interfaces/ToastActionElement.md)
|
|
@@ -195,6 +197,11 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
195
197
|
- [CardActions](modules.md#cardactions)
|
|
196
198
|
- [Checkbox](modules.md#checkbox)
|
|
197
199
|
- [DataTable](modules.md#datatable)
|
|
200
|
+
- [sum](modules.md#sum)
|
|
201
|
+
- [average](modules.md#average)
|
|
202
|
+
- [count](modules.md#count)
|
|
203
|
+
- [min](modules.md#min)
|
|
204
|
+
- [max](modules.md#max)
|
|
198
205
|
- [generateCSVContent](modules.md#generatecsvcontent)
|
|
199
206
|
- [exportToCSVWithTableRows](modules.md#exporttocsvwithtablerows)
|
|
200
207
|
- [exportToCSV](modules.md#exporttocsv)
|
|
@@ -225,17 +232,17 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
225
232
|
- [PaceAppLayout](modules.md#paceapplayout)
|
|
226
233
|
- [PaceLoginPage](modules.md#paceloginpage)
|
|
227
234
|
- [PasswordChangeForm](modules.md#passwordchangeform)
|
|
228
|
-
- [PasswordResetForm](modules.md#passwordresetform)
|
|
229
235
|
- [Progress](modules.md#progress)
|
|
230
236
|
- [ProtectedRoute](modules.md#protectedroute)
|
|
237
|
+
- [EventLogo](modules.md#eventlogo)
|
|
238
|
+
- [EventLogoCompact](modules.md#eventlogocompact)
|
|
239
|
+
- [EventLogoLarge](modules.md#eventlogolarge)
|
|
231
240
|
- [useErrorBoundary](modules.md#useerrorboundary)
|
|
232
241
|
- [DefaultPublicErrorFallback](modules.md#defaultpublicerrorfallback)
|
|
233
242
|
- [PublicLoadingSpinner](modules.md#publicloadingspinner)
|
|
234
243
|
- [PublicLoadingSpinnerFullPage](modules.md#publicloadingspinnerfullpage)
|
|
235
244
|
- [PublicLoadingSkeleton](modules.md#publicloadingskeleton)
|
|
236
245
|
- [PublicPageContextChecker](modules.md#publicpagecontextchecker)
|
|
237
|
-
- [PublicPageDebugger](modules.md#publicpagedebugger)
|
|
238
|
-
- [PublicPageDiagnostic](modules.md#publicpagediagnostic)
|
|
239
246
|
- [PublicPageFooter](modules.md#publicpagefooter)
|
|
240
247
|
- [PublicPageHeader](modules.md#publicpageheader)
|
|
241
248
|
- [PublicPageLayout](modules.md#publicpagelayout)
|
|
@@ -374,6 +381,7 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
374
381
|
- [getAppConfig](modules.md#getappconfig)
|
|
375
382
|
- [getCurrentAppName](modules.md#getcurrentappname)
|
|
376
383
|
- [getCurrentAppId](modules.md#getcurrentappid)
|
|
384
|
+
- [useSessionTracking](modules.md#usesessiontracking)
|
|
377
385
|
- [cn](modules.md#cn)
|
|
378
386
|
- [formatDate](modules.md#formatdate)
|
|
379
387
|
- [formatCurrency](modules.md#formatcurrency)
|
|
@@ -382,7 +390,6 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
382
390
|
- [formatCompactNumber](modules.md#formatcompactnumber)
|
|
383
391
|
- [formatFileSize](modules.md#formatfilesize)
|
|
384
392
|
- [createSecureDataAccess](modules.md#createsecuredataaccess)
|
|
385
|
-
- [useSessionTracking](modules.md#usesessiontracking)
|
|
386
393
|
- [getFileSizeLimit](modules.md#getfilesizelimit)
|
|
387
394
|
- [getBucketName](modules.md#getbucketname)
|
|
388
395
|
- [validateFileSize](modules.md#validatefilesize)
|
|
@@ -446,7 +453,7 @@ ___
|
|
|
446
453
|
|
|
447
454
|
#### Defined in
|
|
448
455
|
|
|
449
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
456
|
+
[packages/core/src/hooks/useFileReference.ts:451](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L451)
|
|
450
457
|
|
|
451
458
|
___
|
|
452
459
|
|
|
@@ -472,7 +479,7 @@ ___
|
|
|
472
479
|
|
|
473
480
|
#### Defined in
|
|
474
481
|
|
|
475
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
482
|
+
[packages/core/src/hooks/useFileReference.ts:457](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L457)
|
|
476
483
|
|
|
477
484
|
___
|
|
478
485
|
|
|
@@ -500,7 +507,7 @@ ___
|
|
|
500
507
|
|
|
501
508
|
#### Defined in
|
|
502
509
|
|
|
503
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
510
|
+
[packages/core/src/hooks/useFileReference.ts:471](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L471)
|
|
504
511
|
|
|
505
512
|
___
|
|
506
513
|
|
|
@@ -520,7 +527,7 @@ ___
|
|
|
520
527
|
|
|
521
528
|
#### Defined in
|
|
522
529
|
|
|
523
|
-
[packages/core/src/rbac/permissions.ts:
|
|
530
|
+
[packages/core/src/rbac/permissions.ts:211](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L211)
|
|
524
531
|
|
|
525
532
|
___
|
|
526
533
|
|
|
@@ -693,7 +700,7 @@ ___
|
|
|
693
700
|
|
|
694
701
|
#### Defined in
|
|
695
702
|
|
|
696
|
-
[packages/core/src/rbac/permissions.ts:
|
|
703
|
+
[packages/core/src/rbac/permissions.ts:20](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L20)
|
|
697
704
|
|
|
698
705
|
___
|
|
699
706
|
|
|
@@ -727,7 +734,7 @@ ___
|
|
|
727
734
|
|
|
728
735
|
#### Defined in
|
|
729
736
|
|
|
730
|
-
[packages/core/src/rbac/permissions.ts:
|
|
737
|
+
[packages/core/src/rbac/permissions.ts:31](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L31)
|
|
731
738
|
|
|
732
739
|
___
|
|
733
740
|
|
|
@@ -766,7 +773,7 @@ ___
|
|
|
766
773
|
|
|
767
774
|
#### Defined in
|
|
768
775
|
|
|
769
|
-
[packages/core/src/rbac/permissions.ts:
|
|
776
|
+
[packages/core/src/rbac/permissions.ts:66](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L66)
|
|
770
777
|
|
|
771
778
|
___
|
|
772
779
|
|
|
@@ -801,7 +808,7 @@ ___
|
|
|
801
808
|
|
|
802
809
|
#### Defined in
|
|
803
810
|
|
|
804
|
-
[packages/core/src/rbac/permissions.ts:
|
|
811
|
+
[packages/core/src/rbac/permissions.ts:108](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L108)
|
|
805
812
|
|
|
806
813
|
___
|
|
807
814
|
|
|
@@ -883,7 +890,7 @@ ___
|
|
|
883
890
|
|
|
884
891
|
#### Defined in
|
|
885
892
|
|
|
886
|
-
[packages/core/src/rbac/permissions.ts:
|
|
893
|
+
[packages/core/src/rbac/permissions.ts:204](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L204)
|
|
887
894
|
|
|
888
895
|
___
|
|
889
896
|
|
|
@@ -1310,6 +1317,296 @@ Features are configured through the unified `features` prop for maximum flexibil
|
|
|
1310
1317
|
|
|
1311
1318
|
___
|
|
1312
1319
|
|
|
1320
|
+
### sum
|
|
1321
|
+
|
|
1322
|
+
▸ **sum**\<`TData`\>(`accessorKey`): \<TRow\>(`rows`: `TRow`[], `column`: [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\>) => `number`
|
|
1323
|
+
|
|
1324
|
+
Creates a sum aggregation function for a specific field.
|
|
1325
|
+
|
|
1326
|
+
#### Type parameters
|
|
1327
|
+
|
|
1328
|
+
| Name | Type |
|
|
1329
|
+
| :------ | :------ |
|
|
1330
|
+
| `TData` | extends [`DataRecord`](interfaces/DataRecord.md) = [`DataRecord`](interfaces/DataRecord.md) |
|
|
1331
|
+
|
|
1332
|
+
#### Parameters
|
|
1333
|
+
|
|
1334
|
+
| Name | Type | Description |
|
|
1335
|
+
| :------ | :------ | :------ |
|
|
1336
|
+
| `accessorKey` | `string` \| keyof `TData` | The field key to sum (e.g., 'cost', 'quantity') |
|
|
1337
|
+
|
|
1338
|
+
#### Returns
|
|
1339
|
+
|
|
1340
|
+
`fn`
|
|
1341
|
+
|
|
1342
|
+
An aggregation function that sums the specified field across all rows
|
|
1343
|
+
|
|
1344
|
+
▸ \<`TRow`\>(`rows`, `column`): `number`
|
|
1345
|
+
|
|
1346
|
+
##### Type parameters
|
|
1347
|
+
|
|
1348
|
+
| Name | Type |
|
|
1349
|
+
| :------ | :------ |
|
|
1350
|
+
| `TRow` | extends [`DataRecord`](interfaces/DataRecord.md) = `TData` |
|
|
1351
|
+
|
|
1352
|
+
##### Parameters
|
|
1353
|
+
|
|
1354
|
+
| Name | Type |
|
|
1355
|
+
| :------ | :------ |
|
|
1356
|
+
| `rows` | `TRow`[] |
|
|
1357
|
+
| `column` | [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\> |
|
|
1358
|
+
|
|
1359
|
+
##### Returns
|
|
1360
|
+
|
|
1361
|
+
`number`
|
|
1362
|
+
|
|
1363
|
+
**`Example`**
|
|
1364
|
+
|
|
1365
|
+
```tsx
|
|
1366
|
+
{
|
|
1367
|
+
accessorKey: 'cost',
|
|
1368
|
+
header: 'Total Cost',
|
|
1369
|
+
aggregateFn: sum('cost'),
|
|
1370
|
+
}
|
|
1371
|
+
```
|
|
1372
|
+
|
|
1373
|
+
#### Defined in
|
|
1374
|
+
|
|
1375
|
+
[packages/core/src/components/DataTable/utils/aggregationUtils.ts:28](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/utils/aggregationUtils.ts#L28)
|
|
1376
|
+
|
|
1377
|
+
___
|
|
1378
|
+
|
|
1379
|
+
### average
|
|
1380
|
+
|
|
1381
|
+
▸ **average**\<`TData`\>(`accessorKey`): \<TRow\>(`rows`: `TRow`[], `column`: [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\>) => `number`
|
|
1382
|
+
|
|
1383
|
+
Creates an average aggregation function for a specific field.
|
|
1384
|
+
|
|
1385
|
+
#### Type parameters
|
|
1386
|
+
|
|
1387
|
+
| Name | Type |
|
|
1388
|
+
| :------ | :------ |
|
|
1389
|
+
| `TData` | extends [`DataRecord`](interfaces/DataRecord.md) = [`DataRecord`](interfaces/DataRecord.md) |
|
|
1390
|
+
|
|
1391
|
+
#### Parameters
|
|
1392
|
+
|
|
1393
|
+
| Name | Type | Description |
|
|
1394
|
+
| :------ | :------ | :------ |
|
|
1395
|
+
| `accessorKey` | `string` \| keyof `TData` | The field key to average (e.g., 'price', 'rating') |
|
|
1396
|
+
|
|
1397
|
+
#### Returns
|
|
1398
|
+
|
|
1399
|
+
`fn`
|
|
1400
|
+
|
|
1401
|
+
An aggregation function that calculates the average of the specified field across all rows
|
|
1402
|
+
|
|
1403
|
+
▸ \<`TRow`\>(`rows`, `column`): `number`
|
|
1404
|
+
|
|
1405
|
+
##### Type parameters
|
|
1406
|
+
|
|
1407
|
+
| Name | Type |
|
|
1408
|
+
| :------ | :------ |
|
|
1409
|
+
| `TRow` | extends [`DataRecord`](interfaces/DataRecord.md) = `TData` |
|
|
1410
|
+
|
|
1411
|
+
##### Parameters
|
|
1412
|
+
|
|
1413
|
+
| Name | Type |
|
|
1414
|
+
| :------ | :------ |
|
|
1415
|
+
| `rows` | `TRow`[] |
|
|
1416
|
+
| `column` | [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\> |
|
|
1417
|
+
|
|
1418
|
+
##### Returns
|
|
1419
|
+
|
|
1420
|
+
`number`
|
|
1421
|
+
|
|
1422
|
+
**`Example`**
|
|
1423
|
+
|
|
1424
|
+
```tsx
|
|
1425
|
+
{
|
|
1426
|
+
accessorKey: 'price',
|
|
1427
|
+
header: 'Avg Price',
|
|
1428
|
+
aggregateFn: average('price'),
|
|
1429
|
+
}
|
|
1430
|
+
```
|
|
1431
|
+
|
|
1432
|
+
#### Defined in
|
|
1433
|
+
|
|
1434
|
+
[packages/core/src/components/DataTable/utils/aggregationUtils.ts:53](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/utils/aggregationUtils.ts#L53)
|
|
1435
|
+
|
|
1436
|
+
___
|
|
1437
|
+
|
|
1438
|
+
### count
|
|
1439
|
+
|
|
1440
|
+
▸ **count**\<`TData`\>(): \<TRow\>(`rows`: `TRow`[], `column`: [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\>) => `number`
|
|
1441
|
+
|
|
1442
|
+
Creates a count aggregation function.
|
|
1443
|
+
Returns the number of rows in the group.
|
|
1444
|
+
|
|
1445
|
+
#### Type parameters
|
|
1446
|
+
|
|
1447
|
+
| Name | Type |
|
|
1448
|
+
| :------ | :------ |
|
|
1449
|
+
| `TData` | extends [`DataRecord`](interfaces/DataRecord.md) = [`DataRecord`](interfaces/DataRecord.md) |
|
|
1450
|
+
|
|
1451
|
+
#### Returns
|
|
1452
|
+
|
|
1453
|
+
`fn`
|
|
1454
|
+
|
|
1455
|
+
An aggregation function that counts the number of rows
|
|
1456
|
+
|
|
1457
|
+
▸ \<`TRow`\>(`rows`, `column`): `number`
|
|
1458
|
+
|
|
1459
|
+
##### Type parameters
|
|
1460
|
+
|
|
1461
|
+
| Name | Type |
|
|
1462
|
+
| :------ | :------ |
|
|
1463
|
+
| `TRow` | extends [`DataRecord`](interfaces/DataRecord.md) = `TData` |
|
|
1464
|
+
|
|
1465
|
+
##### Parameters
|
|
1466
|
+
|
|
1467
|
+
| Name | Type |
|
|
1468
|
+
| :------ | :------ |
|
|
1469
|
+
| `rows` | `TRow`[] |
|
|
1470
|
+
| `column` | [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\> |
|
|
1471
|
+
|
|
1472
|
+
##### Returns
|
|
1473
|
+
|
|
1474
|
+
`number`
|
|
1475
|
+
|
|
1476
|
+
**`Example`**
|
|
1477
|
+
|
|
1478
|
+
```tsx
|
|
1479
|
+
{
|
|
1480
|
+
accessorKey: 'id',
|
|
1481
|
+
header: 'Count',
|
|
1482
|
+
aggregateFn: count(),
|
|
1483
|
+
}
|
|
1484
|
+
```
|
|
1485
|
+
|
|
1486
|
+
#### Defined in
|
|
1487
|
+
|
|
1488
|
+
[packages/core/src/components/DataTable/utils/aggregationUtils.ts:88](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/utils/aggregationUtils.ts#L88)
|
|
1489
|
+
|
|
1490
|
+
___
|
|
1491
|
+
|
|
1492
|
+
### min
|
|
1493
|
+
|
|
1494
|
+
▸ **min**\<`TData`\>(`accessorKey`): \<TRow\>(`rows`: `TRow`[], `column`: [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\>) => ``null`` \| `number`
|
|
1495
|
+
|
|
1496
|
+
Creates a minimum aggregation function for a specific field.
|
|
1497
|
+
|
|
1498
|
+
#### Type parameters
|
|
1499
|
+
|
|
1500
|
+
| Name | Type |
|
|
1501
|
+
| :------ | :------ |
|
|
1502
|
+
| `TData` | extends [`DataRecord`](interfaces/DataRecord.md) = [`DataRecord`](interfaces/DataRecord.md) |
|
|
1503
|
+
|
|
1504
|
+
#### Parameters
|
|
1505
|
+
|
|
1506
|
+
| Name | Type | Description |
|
|
1507
|
+
| :------ | :------ | :------ |
|
|
1508
|
+
| `accessorKey` | `string` \| keyof `TData` | The field key to find the minimum of (e.g., 'price', 'date') |
|
|
1509
|
+
|
|
1510
|
+
#### Returns
|
|
1511
|
+
|
|
1512
|
+
`fn`
|
|
1513
|
+
|
|
1514
|
+
An aggregation function that returns the minimum value of the specified field
|
|
1515
|
+
|
|
1516
|
+
▸ \<`TRow`\>(`rows`, `column`): ``null`` \| `number`
|
|
1517
|
+
|
|
1518
|
+
##### Type parameters
|
|
1519
|
+
|
|
1520
|
+
| Name | Type |
|
|
1521
|
+
| :------ | :------ |
|
|
1522
|
+
| `TRow` | extends [`DataRecord`](interfaces/DataRecord.md) = `TData` |
|
|
1523
|
+
|
|
1524
|
+
##### Parameters
|
|
1525
|
+
|
|
1526
|
+
| Name | Type |
|
|
1527
|
+
| :------ | :------ |
|
|
1528
|
+
| `rows` | `TRow`[] |
|
|
1529
|
+
| `column` | [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\> |
|
|
1530
|
+
|
|
1531
|
+
##### Returns
|
|
1532
|
+
|
|
1533
|
+
``null`` \| `number`
|
|
1534
|
+
|
|
1535
|
+
**`Example`**
|
|
1536
|
+
|
|
1537
|
+
```tsx
|
|
1538
|
+
{
|
|
1539
|
+
accessorKey: 'price',
|
|
1540
|
+
header: 'Min Price',
|
|
1541
|
+
aggregateFn: min('price'),
|
|
1542
|
+
}
|
|
1543
|
+
```
|
|
1544
|
+
|
|
1545
|
+
#### Defined in
|
|
1546
|
+
|
|
1547
|
+
[packages/core/src/components/DataTable/utils/aggregationUtils.ts:109](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/utils/aggregationUtils.ts#L109)
|
|
1548
|
+
|
|
1549
|
+
___
|
|
1550
|
+
|
|
1551
|
+
### max
|
|
1552
|
+
|
|
1553
|
+
▸ **max**\<`TData`\>(`accessorKey`): \<TRow\>(`rows`: `TRow`[], `column`: [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\>) => ``null`` \| `number`
|
|
1554
|
+
|
|
1555
|
+
Creates a maximum aggregation function for a specific field.
|
|
1556
|
+
|
|
1557
|
+
#### Type parameters
|
|
1558
|
+
|
|
1559
|
+
| Name | Type |
|
|
1560
|
+
| :------ | :------ |
|
|
1561
|
+
| `TData` | extends [`DataRecord`](interfaces/DataRecord.md) = [`DataRecord`](interfaces/DataRecord.md) |
|
|
1562
|
+
|
|
1563
|
+
#### Parameters
|
|
1564
|
+
|
|
1565
|
+
| Name | Type | Description |
|
|
1566
|
+
| :------ | :------ | :------ |
|
|
1567
|
+
| `accessorKey` | `string` \| keyof `TData` | The field key to find the maximum of (e.g., 'price', 'date') |
|
|
1568
|
+
|
|
1569
|
+
#### Returns
|
|
1570
|
+
|
|
1571
|
+
`fn`
|
|
1572
|
+
|
|
1573
|
+
An aggregation function that returns the maximum value of the specified field
|
|
1574
|
+
|
|
1575
|
+
▸ \<`TRow`\>(`rows`, `column`): ``null`` \| `number`
|
|
1576
|
+
|
|
1577
|
+
##### Type parameters
|
|
1578
|
+
|
|
1579
|
+
| Name | Type |
|
|
1580
|
+
| :------ | :------ |
|
|
1581
|
+
| `TRow` | extends [`DataRecord`](interfaces/DataRecord.md) = `TData` |
|
|
1582
|
+
|
|
1583
|
+
##### Parameters
|
|
1584
|
+
|
|
1585
|
+
| Name | Type |
|
|
1586
|
+
| :------ | :------ |
|
|
1587
|
+
| `rows` | `TRow`[] |
|
|
1588
|
+
| `column` | [`DataTableColumn`](interfaces/DataTableColumn.md)\<`TRow`\> |
|
|
1589
|
+
|
|
1590
|
+
##### Returns
|
|
1591
|
+
|
|
1592
|
+
``null`` \| `number`
|
|
1593
|
+
|
|
1594
|
+
**`Example`**
|
|
1595
|
+
|
|
1596
|
+
```tsx
|
|
1597
|
+
{
|
|
1598
|
+
accessorKey: 'price',
|
|
1599
|
+
header: 'Max Price',
|
|
1600
|
+
aggregateFn: max('price'),
|
|
1601
|
+
}
|
|
1602
|
+
```
|
|
1603
|
+
|
|
1604
|
+
#### Defined in
|
|
1605
|
+
|
|
1606
|
+
[packages/core/src/components/DataTable/utils/aggregationUtils.ts:143](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/DataTable/utils/aggregationUtils.ts#L143)
|
|
1607
|
+
|
|
1608
|
+
___
|
|
1609
|
+
|
|
1313
1610
|
### generateCSVContent
|
|
1314
1611
|
|
|
1315
1612
|
▸ **generateCSVContent**\<`TData`\>(`data`, `columns`, `options?`): `string`
|
|
@@ -1771,7 +2068,7 @@ This component provides secure event selection with:
|
|
|
1771
2068
|
|
|
1772
2069
|
#### Defined in
|
|
1773
2070
|
|
|
1774
|
-
[packages/core/src/components/EventSelector/EventSelector.tsx:
|
|
2071
|
+
[packages/core/src/components/EventSelector/EventSelector.tsx:131](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/EventSelector/EventSelector.tsx#L131)
|
|
1775
2072
|
|
|
1776
2073
|
___
|
|
1777
2074
|
|
|
@@ -1802,7 +2099,7 @@ React element with file display
|
|
|
1802
2099
|
|
|
1803
2100
|
#### Defined in
|
|
1804
2101
|
|
|
1805
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
2102
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:769](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L769)
|
|
1806
2103
|
|
|
1807
2104
|
___
|
|
1808
2105
|
|
|
@@ -2394,7 +2691,7 @@ function CustomNavigation() {
|
|
|
2394
2691
|
|
|
2395
2692
|
#### Defined in
|
|
2396
2693
|
|
|
2397
|
-
[packages/core/src/components/NavigationMenu/NavigationMenu.tsx:
|
|
2694
|
+
[packages/core/src/components/NavigationMenu/NavigationMenu.tsx:398](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/NavigationMenu/NavigationMenu.tsx#L398)
|
|
2398
2695
|
|
|
2399
2696
|
___
|
|
2400
2697
|
|
|
@@ -2425,7 +2722,7 @@ Security: Only shows organisations the user has valid access to
|
|
|
2425
2722
|
|
|
2426
2723
|
#### Defined in
|
|
2427
2724
|
|
|
2428
|
-
[packages/core/src/components/OrganisationSelector/OrganisationSelector.tsx:
|
|
2725
|
+
[packages/core/src/components/OrganisationSelector/OrganisationSelector.tsx:97](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/OrganisationSelector/OrganisationSelector.tsx#L97)
|
|
2429
2726
|
|
|
2430
2727
|
___
|
|
2431
2728
|
|
|
@@ -2596,7 +2893,7 @@ function AdminApp() {
|
|
|
2596
2893
|
|
|
2597
2894
|
#### Defined in
|
|
2598
2895
|
|
|
2599
|
-
[packages/core/src/components/PaceAppLayout/PaceAppLayout.tsx:
|
|
2896
|
+
[packages/core/src/components/PaceAppLayout/PaceAppLayout.tsx:345](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PaceAppLayout/PaceAppLayout.tsx#L345)
|
|
2600
2897
|
|
|
2601
2898
|
___
|
|
2602
2899
|
|
|
@@ -2640,7 +2937,7 @@ JSX.Element - The rendered login page with enhanced functionality
|
|
|
2640
2937
|
|
|
2641
2938
|
#### Defined in
|
|
2642
2939
|
|
|
2643
|
-
[packages/core/src/components/PaceLoginPage/PaceLoginPage.tsx:
|
|
2940
|
+
[packages/core/src/components/PaceLoginPage/PaceLoginPage.tsx:167](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PaceLoginPage/PaceLoginPage.tsx#L167)
|
|
2644
2941
|
|
|
2645
2942
|
___
|
|
2646
2943
|
|
|
@@ -2664,26 +2961,6 @@ ___
|
|
|
2664
2961
|
|
|
2665
2962
|
___
|
|
2666
2963
|
|
|
2667
|
-
### PasswordResetForm
|
|
2668
|
-
|
|
2669
|
-
▸ **PasswordResetForm**(`«destructured»`): `Element`
|
|
2670
|
-
|
|
2671
|
-
#### Parameters
|
|
2672
|
-
|
|
2673
|
-
| Name | Type |
|
|
2674
|
-
| :------ | :------ |
|
|
2675
|
-
| `«destructured»` | `PasswordResetFormProps` |
|
|
2676
|
-
|
|
2677
|
-
#### Returns
|
|
2678
|
-
|
|
2679
|
-
`Element`
|
|
2680
|
-
|
|
2681
|
-
#### Defined in
|
|
2682
|
-
|
|
2683
|
-
[packages/core/src/components/PasswordReset/PasswordResetForm.tsx:94](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PasswordReset/PasswordResetForm.tsx#L94)
|
|
2684
|
-
|
|
2685
|
-
___
|
|
2686
|
-
|
|
2687
2964
|
### Progress
|
|
2688
2965
|
|
|
2689
2966
|
▸ **Progress**(`props`): `ReactNode`
|
|
@@ -2745,7 +3022,80 @@ React element with route protection logic
|
|
|
2745
3022
|
|
|
2746
3023
|
#### Defined in
|
|
2747
3024
|
|
|
2748
|
-
[packages/core/src/components/ProtectedRoute/ProtectedRoute.tsx:
|
|
3025
|
+
[packages/core/src/components/ProtectedRoute/ProtectedRoute.tsx:133](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/ProtectedRoute/ProtectedRoute.tsx#L133)
|
|
3026
|
+
|
|
3027
|
+
___
|
|
3028
|
+
|
|
3029
|
+
### EventLogo
|
|
3030
|
+
|
|
3031
|
+
▸ **EventLogo**(`props`): `Element`
|
|
3032
|
+
|
|
3033
|
+
Component for displaying event logos with fallback to initials
|
|
3034
|
+
|
|
3035
|
+
This component is context-aware and automatically detects whether it's being used
|
|
3036
|
+
in a public or authenticated context. It uses FileDisplay internally to fetch and
|
|
3037
|
+
display event logos from storage, with automatic fallback to event initials if no
|
|
3038
|
+
logo is available.
|
|
3039
|
+
|
|
3040
|
+
#### Parameters
|
|
3041
|
+
|
|
3042
|
+
| Name | Type | Description |
|
|
3043
|
+
| :------ | :------ | :------ |
|
|
3044
|
+
| `props` | [`EventLogoProps`](interfaces/EventLogoProps.md) | Logo configuration and styling |
|
|
3045
|
+
|
|
3046
|
+
#### Returns
|
|
3047
|
+
|
|
3048
|
+
`Element`
|
|
3049
|
+
|
|
3050
|
+
React element with event logo or fallback
|
|
3051
|
+
|
|
3052
|
+
#### Defined in
|
|
3053
|
+
|
|
3054
|
+
[packages/core/src/components/PublicLayout/EventLogo.tsx:100](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/EventLogo.tsx#L100)
|
|
3055
|
+
|
|
3056
|
+
___
|
|
3057
|
+
|
|
3058
|
+
### EventLogoCompact
|
|
3059
|
+
|
|
3060
|
+
▸ **EventLogoCompact**(`props`): `Element`
|
|
3061
|
+
|
|
3062
|
+
Compact event logo for small spaces
|
|
3063
|
+
|
|
3064
|
+
#### Parameters
|
|
3065
|
+
|
|
3066
|
+
| Name | Type |
|
|
3067
|
+
| :------ | :------ |
|
|
3068
|
+
| `props` | [`EventLogoProps`](interfaces/EventLogoProps.md) |
|
|
3069
|
+
|
|
3070
|
+
#### Returns
|
|
3071
|
+
|
|
3072
|
+
`Element`
|
|
3073
|
+
|
|
3074
|
+
#### Defined in
|
|
3075
|
+
|
|
3076
|
+
[packages/core/src/components/PublicLayout/EventLogo.tsx:154](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/EventLogo.tsx#L154)
|
|
3077
|
+
|
|
3078
|
+
___
|
|
3079
|
+
|
|
3080
|
+
### EventLogoLarge
|
|
3081
|
+
|
|
3082
|
+
▸ **EventLogoLarge**(`props`): `Element`
|
|
3083
|
+
|
|
3084
|
+
Large event logo for prominent display
|
|
3085
|
+
|
|
3086
|
+
#### Parameters
|
|
3087
|
+
|
|
3088
|
+
| Name | Type |
|
|
3089
|
+
| :------ | :------ |
|
|
3090
|
+
| `props` | [`EventLogoProps`](interfaces/EventLogoProps.md) |
|
|
3091
|
+
|
|
3092
|
+
#### Returns
|
|
3093
|
+
|
|
3094
|
+
`Element`
|
|
3095
|
+
|
|
3096
|
+
#### Defined in
|
|
3097
|
+
|
|
3098
|
+
[packages/core/src/components/PublicLayout/EventLogo.tsx:167](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/EventLogo.tsx#L167)
|
|
2749
3099
|
|
|
2750
3100
|
___
|
|
2751
3101
|
|
|
@@ -2875,61 +3225,13 @@ Context checker component that immediately identifies authentication context iss
|
|
|
2875
3225
|
This component will immediately log to console if authentication context
|
|
2876
3226
|
is being triggered in a public page.
|
|
2877
3227
|
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
| Name | Type |
|
|
2881
|
-
| :------ | :------ |
|
|
2882
|
-
| `«destructured»` | `PublicPageContextCheckerProps` |
|
|
2883
|
-
|
|
2884
|
-
#### Returns
|
|
2885
|
-
|
|
2886
|
-
``null`` \| `Element`
|
|
2887
|
-
|
|
2888
|
-
#### Defined in
|
|
2889
|
-
|
|
2890
|
-
[packages/core/src/components/PublicLayout/PublicPageContextChecker.tsx:27](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageContextChecker.tsx#L27)
|
|
2891
|
-
|
|
2892
|
-
___
|
|
2893
|
-
|
|
2894
|
-
### PublicPageDebugger
|
|
2895
|
-
|
|
2896
|
-
▸ **PublicPageDebugger**(`«destructured»`): ``null`` \| `Element`
|
|
2897
|
-
|
|
2898
|
-
Debugger component that logs context information
|
|
2899
|
-
|
|
2900
|
-
This component helps identify why authentication context
|
|
2901
|
-
is being triggered in public pages.
|
|
2902
|
-
|
|
2903
|
-
#### Parameters
|
|
2904
|
-
|
|
2905
|
-
| Name | Type |
|
|
2906
|
-
| :------ | :------ |
|
|
2907
|
-
| `«destructured»` | `PublicPageDebuggerProps` |
|
|
2908
|
-
|
|
2909
|
-
#### Returns
|
|
2910
|
-
|
|
2911
|
-
``null`` \| `Element`
|
|
2912
|
-
|
|
2913
|
-
#### Defined in
|
|
2914
|
-
|
|
2915
|
-
[packages/core/src/components/PublicLayout/PublicPageDebugger.tsx:27](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageDebugger.tsx#L27)
|
|
2916
|
-
|
|
2917
|
-
___
|
|
2918
|
-
|
|
2919
|
-
### PublicPageDiagnostic
|
|
2920
|
-
|
|
2921
|
-
▸ **PublicPageDiagnostic**(`«destructured»`): ``null`` \| `Element`
|
|
2922
|
-
|
|
2923
|
-
Diagnostic component that identifies authentication context issues
|
|
2924
|
-
|
|
2925
|
-
This component will help you identify exactly where the problem is
|
|
2926
|
-
in your public page implementation.
|
|
3228
|
+
Only enabled in development mode when VITE_ENABLE_DEBUG_LOGS is 'true'
|
|
2927
3229
|
|
|
2928
3230
|
#### Parameters
|
|
2929
3231
|
|
|
2930
3232
|
| Name | Type |
|
|
2931
3233
|
| :------ | :------ |
|
|
2932
|
-
| `«destructured»` | `
|
|
3234
|
+
| `«destructured»` | `PublicPageContextCheckerProps` |
|
|
2933
3235
|
|
|
2934
3236
|
#### Returns
|
|
2935
3237
|
|
|
@@ -2937,7 +3239,7 @@ in your public page implementation.
|
|
|
2937
3239
|
|
|
2938
3240
|
#### Defined in
|
|
2939
3241
|
|
|
2940
|
-
[packages/core/src/components/PublicLayout/
|
|
3242
|
+
[packages/core/src/components/PublicLayout/PublicPageContextChecker.tsx:30](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageContextChecker.tsx#L30)
|
|
2941
3243
|
|
|
2942
3244
|
___
|
|
2943
3245
|
|
|
@@ -3094,7 +3396,7 @@ This provider:
|
|
|
3094
3396
|
|
|
3095
3397
|
#### Defined in
|
|
3096
3398
|
|
|
3097
|
-
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:
|
|
3399
|
+
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:71](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageProvider.tsx#L71)
|
|
3098
3400
|
|
|
3099
3401
|
___
|
|
3100
3402
|
|
|
@@ -3112,7 +3414,7 @@ Public page context with environment variables
|
|
|
3112
3414
|
|
|
3113
3415
|
#### Defined in
|
|
3114
3416
|
|
|
3115
|
-
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:
|
|
3417
|
+
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:129](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageProvider.tsx#L129)
|
|
3116
3418
|
|
|
3117
3419
|
___
|
|
3118
3420
|
|
|
@@ -3130,7 +3432,7 @@ True if we're in a public page context
|
|
|
3130
3432
|
|
|
3131
3433
|
#### Defined in
|
|
3132
3434
|
|
|
3133
|
-
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:
|
|
3435
|
+
[packages/core/src/components/PublicLayout/PublicPageProvider.tsx:144](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/PublicLayout/PublicPageProvider.tsx#L144)
|
|
3134
3436
|
|
|
3135
3437
|
___
|
|
3136
3438
|
|
|
@@ -3302,7 +3604,7 @@ ___
|
|
|
3302
3604
|
|
|
3303
3605
|
| Name | Type | Description |
|
|
3304
3606
|
| :------ | :------ | :------ |
|
|
3305
|
-
| `props` | `SessionRestorationLoaderProps` | - |
|
|
3607
|
+
| `props` | [`SessionRestorationLoaderProps`](interfaces/SessionRestorationLoaderProps.md) | - |
|
|
3306
3608
|
| `deprecatedLegacyContext?` | `any` | **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
3307
3609
|
|
|
3308
3610
|
#### Returns
|
|
@@ -3311,7 +3613,7 @@ ___
|
|
|
3311
3613
|
|
|
3312
3614
|
#### Defined in
|
|
3313
3615
|
|
|
3314
|
-
[packages/core/src/components/SessionRestorationLoader.tsx:19](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/SessionRestorationLoader.tsx#L19)
|
|
3616
|
+
[packages/core/src/components/SessionRestorationLoader/SessionRestorationLoader.tsx:19](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/SessionRestorationLoader/SessionRestorationLoader.tsx#L19)
|
|
3315
3617
|
|
|
3316
3618
|
___
|
|
3317
3619
|
|
|
@@ -3931,7 +4233,7 @@ Object containing event data, loading state, error, and refetch function
|
|
|
3931
4233
|
|
|
3932
4234
|
#### Defined in
|
|
3933
4235
|
|
|
3934
|
-
[packages/core/src/hooks/public/usePublicEvent.ts:
|
|
4236
|
+
[packages/core/src/hooks/public/usePublicEvent.ts:100](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicEvent.ts#L100)
|
|
3935
4237
|
|
|
3936
4238
|
___
|
|
3937
4239
|
|
|
@@ -3948,7 +4250,7 @@ Useful for testing or when you need to force refresh all data
|
|
|
3948
4250
|
|
|
3949
4251
|
#### Defined in
|
|
3950
4252
|
|
|
3951
|
-
[packages/core/src/hooks/public/usePublicEvent.ts:
|
|
4253
|
+
[packages/core/src/hooks/public/usePublicEvent.ts:411](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicEvent.ts#L411)
|
|
3952
4254
|
|
|
3953
4255
|
___
|
|
3954
4256
|
|
|
@@ -3969,7 +4271,7 @@ Get cache statistics for debugging
|
|
|
3969
4271
|
|
|
3970
4272
|
#### Defined in
|
|
3971
4273
|
|
|
3972
|
-
[packages/core/src/hooks/public/usePublicEvent.ts:
|
|
4274
|
+
[packages/core/src/hooks/public/usePublicEvent.ts:422](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicEvent.ts#L422)
|
|
3973
4275
|
|
|
3974
4276
|
___
|
|
3975
4277
|
|
|
@@ -4000,7 +4302,7 @@ Object containing file data, loading state, error, and refetch function
|
|
|
4000
4302
|
|
|
4001
4303
|
#### Defined in
|
|
4002
4304
|
|
|
4003
|
-
[packages/core/src/hooks/public/usePublicFileDisplay.ts:
|
|
4305
|
+
[packages/core/src/hooks/public/usePublicFileDisplay.ts:90](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicFileDisplay.ts#L90)
|
|
4004
4306
|
|
|
4005
4307
|
___
|
|
4006
4308
|
|
|
@@ -4017,7 +4319,7 @@ Useful for testing or when you need to force refresh all data
|
|
|
4017
4319
|
|
|
4018
4320
|
#### Defined in
|
|
4019
4321
|
|
|
4020
|
-
[packages/core/src/hooks/public/usePublicFileDisplay.ts:
|
|
4322
|
+
[packages/core/src/hooks/public/usePublicFileDisplay.ts:398](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicFileDisplay.ts#L398)
|
|
4021
4323
|
|
|
4022
4324
|
___
|
|
4023
4325
|
|
|
@@ -4038,7 +4340,7 @@ Get cache statistics for debugging
|
|
|
4038
4340
|
|
|
4039
4341
|
#### Defined in
|
|
4040
4342
|
|
|
4041
|
-
[packages/core/src/hooks/public/usePublicFileDisplay.ts:
|
|
4343
|
+
[packages/core/src/hooks/public/usePublicFileDisplay.ts:409](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/public/usePublicFileDisplay.ts#L409)
|
|
4042
4344
|
|
|
4043
4345
|
___
|
|
4044
4346
|
|
|
@@ -4277,7 +4579,7 @@ function PublicPageLayout({ event }) {
|
|
|
4277
4579
|
|
|
4278
4580
|
#### Defined in
|
|
4279
4581
|
|
|
4280
|
-
[packages/core/src/hooks/useEventTheme.ts:
|
|
4582
|
+
[packages/core/src/hooks/useEventTheme.ts:95](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useEventTheme.ts#L95)
|
|
4281
4583
|
|
|
4282
4584
|
___
|
|
4283
4585
|
|
|
@@ -4317,7 +4619,7 @@ function MyComponent() {
|
|
|
4317
4619
|
|
|
4318
4620
|
#### Defined in
|
|
4319
4621
|
|
|
4320
|
-
[packages/core/src/hooks/useEvents.ts:
|
|
4622
|
+
[packages/core/src/hooks/useEvents.ts:50](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useEvents.ts#L50)
|
|
4321
4623
|
|
|
4322
4624
|
___
|
|
4323
4625
|
|
|
@@ -4353,7 +4655,7 @@ ___
|
|
|
4353
4655
|
|
|
4354
4656
|
#### Defined in
|
|
4355
4657
|
|
|
4356
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
4658
|
+
[packages/core/src/hooks/useFileReference.ts:19](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L19)
|
|
4357
4659
|
|
|
4358
4660
|
___
|
|
4359
4661
|
|
|
@@ -4392,7 +4694,7 @@ ___
|
|
|
4392
4694
|
|
|
4393
4695
|
#### Defined in
|
|
4394
4696
|
|
|
4395
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
4697
|
+
[packages/core/src/hooks/useFileReference.ts:202](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L202)
|
|
4396
4698
|
|
|
4397
4699
|
___
|
|
4398
4700
|
|
|
@@ -4425,7 +4727,7 @@ Hook for getting a file reference by ID
|
|
|
4425
4727
|
|
|
4426
4728
|
#### Defined in
|
|
4427
4729
|
|
|
4428
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
4730
|
+
[packages/core/src/hooks/useFileReference.ts:304](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L304)
|
|
4429
4731
|
|
|
4430
4732
|
___
|
|
4431
4733
|
|
|
@@ -4469,7 +4771,7 @@ For more control, use useFileReference() directly and manage URLs yourself.
|
|
|
4469
4771
|
|
|
4470
4772
|
#### Defined in
|
|
4471
4773
|
|
|
4472
|
-
[packages/core/src/hooks/useFileReference.ts:
|
|
4774
|
+
[packages/core/src/hooks/useFileReference.ts:377](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useFileReference.ts#L377)
|
|
4473
4775
|
|
|
4474
4776
|
___
|
|
4475
4777
|
|
|
@@ -4489,7 +4791,7 @@ ___
|
|
|
4489
4791
|
|
|
4490
4792
|
#### Defined in
|
|
4491
4793
|
|
|
4492
|
-
[packages/core/src/hooks/useInactivityTracker.ts:
|
|
4794
|
+
[packages/core/src/hooks/useInactivityTracker.ts:128](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useInactivityTracker.ts#L128)
|
|
4493
4795
|
|
|
4494
4796
|
___
|
|
4495
4797
|
|
|
@@ -4527,7 +4829,7 @@ ___
|
|
|
4527
4829
|
|
|
4528
4830
|
#### Defined in
|
|
4529
4831
|
|
|
4530
|
-
[packages/core/src/hooks/useOrganisationSecurity.ts:
|
|
4832
|
+
[packages/core/src/hooks/useOrganisationSecurity.ts:40](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useOrganisationSecurity.ts#L40)
|
|
4531
4833
|
|
|
4532
4834
|
___
|
|
4533
4835
|
|
|
@@ -4582,7 +4884,7 @@ ___
|
|
|
4582
4884
|
|
|
4583
4885
|
#### Defined in
|
|
4584
4886
|
|
|
4585
|
-
[packages/core/src/hooks/useSessionRestoration.ts:
|
|
4887
|
+
[packages/core/src/hooks/useSessionRestoration.ts:28](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useSessionRestoration.ts#L28)
|
|
4586
4888
|
|
|
4587
4889
|
___
|
|
4588
4890
|
|
|
@@ -4626,7 +4928,7 @@ ___
|
|
|
4626
4928
|
|
|
4627
4929
|
#### Defined in
|
|
4628
4930
|
|
|
4629
|
-
[packages/core/src/providers/services/EventServiceProvider.tsx:
|
|
4931
|
+
[packages/core/src/providers/services/EventServiceProvider.tsx:36](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/providers/services/EventServiceProvider.tsx#L36)
|
|
4630
4932
|
|
|
4631
4933
|
___
|
|
4632
4934
|
|
|
@@ -4646,7 +4948,7 @@ ___
|
|
|
4646
4948
|
|
|
4647
4949
|
#### Defined in
|
|
4648
4950
|
|
|
4649
|
-
[packages/core/src/providers/services/InactivityServiceProvider.tsx:
|
|
4951
|
+
[packages/core/src/providers/services/InactivityServiceProvider.tsx:33](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/providers/services/InactivityServiceProvider.tsx#L33)
|
|
4650
4952
|
|
|
4651
4953
|
___
|
|
4652
4954
|
|
|
@@ -4666,7 +4968,7 @@ ___
|
|
|
4666
4968
|
|
|
4667
4969
|
#### Defined in
|
|
4668
4970
|
|
|
4669
|
-
[packages/core/src/providers/services/OrganisationServiceProvider.tsx:
|
|
4971
|
+
[packages/core/src/providers/services/OrganisationServiceProvider.tsx:30](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/providers/services/OrganisationServiceProvider.tsx#L30)
|
|
4670
4972
|
|
|
4671
4973
|
___
|
|
4672
4974
|
|
|
@@ -4680,7 +4982,7 @@ ___
|
|
|
4680
4982
|
|
|
4681
4983
|
#### Defined in
|
|
4682
4984
|
|
|
4683
|
-
[packages/core/src/providers/services/UnifiedAuthProvider.tsx:
|
|
4985
|
+
[packages/core/src/providers/services/UnifiedAuthProvider.tsx:117](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/providers/services/UnifiedAuthProvider.tsx#L117)
|
|
4684
4986
|
|
|
4685
4987
|
___
|
|
4686
4988
|
|
|
@@ -4700,7 +5002,7 @@ ___
|
|
|
4700
5002
|
|
|
4701
5003
|
#### Defined in
|
|
4702
5004
|
|
|
4703
|
-
[packages/core/src/providers/services/UnifiedAuthProvider.tsx:
|
|
5005
|
+
[packages/core/src/providers/services/UnifiedAuthProvider.tsx:515](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/providers/services/UnifiedAuthProvider.tsx#L515)
|
|
4704
5006
|
|
|
4705
5007
|
___
|
|
4706
5008
|
|
|
@@ -5207,7 +5509,7 @@ Setup RBAC system
|
|
|
5207
5509
|
|
|
5208
5510
|
#### Defined in
|
|
5209
5511
|
|
|
5210
|
-
[packages/core/src/rbac/api.ts:
|
|
5512
|
+
[packages/core/src/rbac/api.ts:42](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L42)
|
|
5211
5513
|
|
|
5212
5514
|
___
|
|
5213
5515
|
|
|
@@ -5242,7 +5544,7 @@ const accessLevel = await getAccessLevel({
|
|
|
5242
5544
|
|
|
5243
5545
|
#### Defined in
|
|
5244
5546
|
|
|
5245
|
-
[packages/core/src/rbac/api.ts:
|
|
5547
|
+
[packages/core/src/rbac/api.ts:93](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L93)
|
|
5246
5548
|
|
|
5247
5549
|
___
|
|
5248
5550
|
|
|
@@ -5281,7 +5583,7 @@ const permissions = await getPermissionMap({
|
|
|
5281
5583
|
|
|
5282
5584
|
#### Defined in
|
|
5283
5585
|
|
|
5284
|
-
[packages/core/src/rbac/api.ts:
|
|
5586
|
+
[packages/core/src/rbac/api.ts:119](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L119)
|
|
5285
5587
|
|
|
5286
5588
|
___
|
|
5287
5589
|
|
|
@@ -5303,7 +5605,7 @@ ___
|
|
|
5303
5605
|
|
|
5304
5606
|
#### Defined in
|
|
5305
5607
|
|
|
5306
|
-
[packages/core/src/rbac/api.ts:
|
|
5608
|
+
[packages/core/src/rbac/api.ts:127](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L127)
|
|
5307
5609
|
|
|
5308
5610
|
___
|
|
5309
5611
|
|
|
@@ -5325,7 +5627,7 @@ ___
|
|
|
5325
5627
|
|
|
5326
5628
|
#### Defined in
|
|
5327
5629
|
|
|
5328
|
-
[packages/core/src/rbac/api.ts:
|
|
5630
|
+
[packages/core/src/rbac/api.ts:135](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L135)
|
|
5329
5631
|
|
|
5330
5632
|
___
|
|
5331
5633
|
|
|
@@ -5360,7 +5662,7 @@ const canManage = await isPermitted({
|
|
|
5360
5662
|
|
|
5361
5663
|
#### Defined in
|
|
5362
5664
|
|
|
5363
|
-
[packages/core/src/rbac/api.ts:
|
|
5665
|
+
[packages/core/src/rbac/api.ts:159](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L159)
|
|
5364
5666
|
|
|
5365
5667
|
___
|
|
5366
5668
|
|
|
@@ -5384,7 +5686,7 @@ Promise resolving to permission result
|
|
|
5384
5686
|
|
|
5385
5687
|
#### Defined in
|
|
5386
5688
|
|
|
5387
|
-
[packages/core/src/rbac/api.ts:
|
|
5689
|
+
[packages/core/src/rbac/api.ts:185](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L185)
|
|
5388
5690
|
|
|
5389
5691
|
___
|
|
5390
5692
|
|
|
@@ -5408,7 +5710,7 @@ Promise<boolean> - True if user has permission
|
|
|
5408
5710
|
|
|
5409
5711
|
#### Defined in
|
|
5410
5712
|
|
|
5411
|
-
[packages/core/src/rbac/api.ts:
|
|
5713
|
+
[packages/core/src/rbac/api.ts:218](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L218)
|
|
5412
5714
|
|
|
5413
5715
|
___
|
|
5414
5716
|
|
|
@@ -5436,7 +5738,7 @@ Promise resolving to true if user has any permission
|
|
|
5436
5738
|
|
|
5437
5739
|
#### Defined in
|
|
5438
5740
|
|
|
5439
|
-
[packages/core/src/rbac/api.ts:
|
|
5741
|
+
[packages/core/src/rbac/api.ts:228](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L228)
|
|
5440
5742
|
|
|
5441
5743
|
___
|
|
5442
5744
|
|
|
@@ -5464,7 +5766,7 @@ Promise resolving to true if user has all permissions
|
|
|
5464
5766
|
|
|
5465
5767
|
#### Defined in
|
|
5466
5768
|
|
|
5467
|
-
[packages/core/src/rbac/api.ts:
|
|
5769
|
+
[packages/core/src/rbac/api.ts:256](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/api.ts#L256)
|
|
5468
5770
|
|
|
5469
5771
|
___
|
|
5470
5772
|
|
|
@@ -5577,7 +5879,7 @@ React element with enhanced navigation menu
|
|
|
5577
5879
|
|
|
5578
5880
|
#### Defined in
|
|
5579
5881
|
|
|
5580
|
-
[packages/core/src/rbac/components/EnhancedNavigationMenu.tsx:
|
|
5882
|
+
[packages/core/src/rbac/components/EnhancedNavigationMenu.tsx:113](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/EnhancedNavigationMenu.tsx#L113)
|
|
5581
5883
|
|
|
5582
5884
|
___
|
|
5583
5885
|
|
|
@@ -5605,7 +5907,7 @@ React element with navigation permission enforcement
|
|
|
5605
5907
|
|
|
5606
5908
|
#### Defined in
|
|
5607
5909
|
|
|
5608
|
-
[packages/core/src/rbac/components/NavigationGuard.tsx:
|
|
5910
|
+
[packages/core/src/rbac/components/NavigationGuard.tsx:114](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/NavigationGuard.tsx#L114)
|
|
5609
5911
|
|
|
5610
5912
|
___
|
|
5611
5913
|
|
|
@@ -5632,7 +5934,7 @@ React element with navigation permission context
|
|
|
5632
5934
|
|
|
5633
5935
|
#### Defined in
|
|
5634
5936
|
|
|
5635
|
-
[packages/core/src/rbac/components/NavigationProvider.tsx:
|
|
5937
|
+
[packages/core/src/rbac/components/NavigationProvider.tsx:167](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/NavigationProvider.tsx#L167)
|
|
5636
5938
|
|
|
5637
5939
|
___
|
|
5638
5940
|
|
|
@@ -5654,7 +5956,7 @@ Error if used outside of NavigationProvider
|
|
|
5654
5956
|
|
|
5655
5957
|
#### Defined in
|
|
5656
5958
|
|
|
5657
|
-
[packages/core/src/rbac/components/NavigationProvider.tsx:
|
|
5959
|
+
[packages/core/src/rbac/components/NavigationProvider.tsx:331](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/NavigationProvider.tsx#L331)
|
|
5658
5960
|
|
|
5659
5961
|
___
|
|
5660
5962
|
|
|
@@ -5682,7 +5984,7 @@ React element with permission enforcement
|
|
|
5682
5984
|
|
|
5683
5985
|
#### Defined in
|
|
5684
5986
|
|
|
5685
|
-
[packages/core/src/rbac/components/PagePermissionGuard.tsx:
|
|
5987
|
+
[packages/core/src/rbac/components/PagePermissionGuard.tsx:546](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/PagePermissionGuard.tsx#L546)
|
|
5686
5988
|
|
|
5687
5989
|
___
|
|
5688
5990
|
|
|
@@ -5709,7 +6011,7 @@ React element with page permission context
|
|
|
5709
6011
|
|
|
5710
6012
|
#### Defined in
|
|
5711
6013
|
|
|
5712
|
-
[packages/core/src/rbac/components/PagePermissionProvider.tsx:
|
|
6014
|
+
[packages/core/src/rbac/components/PagePermissionProvider.tsx:128](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/PagePermissionProvider.tsx#L128)
|
|
5713
6015
|
|
|
5714
6016
|
___
|
|
5715
6017
|
|
|
@@ -5731,7 +6033,7 @@ Error if used outside of PagePermissionProvider
|
|
|
5731
6033
|
|
|
5732
6034
|
#### Defined in
|
|
5733
6035
|
|
|
5734
|
-
[packages/core/src/rbac/components/PagePermissionProvider.tsx:
|
|
6036
|
+
[packages/core/src/rbac/components/PagePermissionProvider.tsx:267](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/PagePermissionProvider.tsx#L267)
|
|
5735
6037
|
|
|
5736
6038
|
___
|
|
5737
6039
|
|
|
@@ -5759,7 +6061,7 @@ React element with permission enforcement
|
|
|
5759
6061
|
|
|
5760
6062
|
#### Defined in
|
|
5761
6063
|
|
|
5762
|
-
[packages/core/src/rbac/components/PermissionEnforcer.tsx:
|
|
6064
|
+
[packages/core/src/rbac/components/PermissionEnforcer.tsx:121](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/PermissionEnforcer.tsx#L121)
|
|
5763
6065
|
|
|
5764
6066
|
___
|
|
5765
6067
|
|
|
@@ -5786,7 +6088,7 @@ React element with role-based routing
|
|
|
5786
6088
|
|
|
5787
6089
|
#### Defined in
|
|
5788
6090
|
|
|
5789
|
-
[packages/core/src/rbac/components/RoleBasedRouter.tsx:
|
|
6091
|
+
[packages/core/src/rbac/components/RoleBasedRouter.tsx:182](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/RoleBasedRouter.tsx#L182)
|
|
5790
6092
|
|
|
5791
6093
|
___
|
|
5792
6094
|
|
|
@@ -5808,7 +6110,7 @@ Error if used outside of RoleBasedRouter
|
|
|
5808
6110
|
|
|
5809
6111
|
#### Defined in
|
|
5810
6112
|
|
|
5811
|
-
[packages/core/src/rbac/components/RoleBasedRouter.tsx:
|
|
6113
|
+
[packages/core/src/rbac/components/RoleBasedRouter.tsx:397](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/RoleBasedRouter.tsx#L397)
|
|
5812
6114
|
|
|
5813
6115
|
___
|
|
5814
6116
|
|
|
@@ -5835,7 +6137,7 @@ React element with secure data context
|
|
|
5835
6137
|
|
|
5836
6138
|
#### Defined in
|
|
5837
6139
|
|
|
5838
|
-
[packages/core/src/rbac/components/SecureDataProvider.tsx:
|
|
6140
|
+
[packages/core/src/rbac/components/SecureDataProvider.tsx:136](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/SecureDataProvider.tsx#L136)
|
|
5839
6141
|
|
|
5840
6142
|
___
|
|
5841
6143
|
|
|
@@ -5857,7 +6159,7 @@ Error if used outside of SecureDataProvider
|
|
|
5857
6159
|
|
|
5858
6160
|
#### Defined in
|
|
5859
6161
|
|
|
5860
|
-
[packages/core/src/rbac/components/SecureDataProvider.tsx:
|
|
6162
|
+
[packages/core/src/rbac/components/SecureDataProvider.tsx:313](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/components/SecureDataProvider.tsx#L313)
|
|
5861
6163
|
|
|
5862
6164
|
___
|
|
5863
6165
|
|
|
@@ -5958,7 +6260,7 @@ RBACEngine instance
|
|
|
5958
6260
|
|
|
5959
6261
|
#### Defined in
|
|
5960
6262
|
|
|
5961
|
-
[packages/core/src/rbac/engine.ts:
|
|
6263
|
+
[packages/core/src/rbac/engine.ts:621](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L621)
|
|
5962
6264
|
|
|
5963
6265
|
___
|
|
5964
6266
|
|
|
@@ -6011,7 +6313,7 @@ function MyComponent() {
|
|
|
6011
6313
|
|
|
6012
6314
|
#### Defined in
|
|
6013
6315
|
|
|
6014
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6316
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:50](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L50)
|
|
6015
6317
|
|
|
6016
6318
|
___
|
|
6017
6319
|
|
|
@@ -6059,7 +6361,7 @@ function MyComponent() {
|
|
|
6059
6361
|
|
|
6060
6362
|
#### Defined in
|
|
6061
6363
|
|
|
6062
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6364
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:220](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L220)
|
|
6063
6365
|
|
|
6064
6366
|
___
|
|
6065
6367
|
|
|
@@ -6109,7 +6411,7 @@ function MyComponent() {
|
|
|
6109
6411
|
|
|
6110
6412
|
#### Defined in
|
|
6111
6413
|
|
|
6112
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6414
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:379](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L379)
|
|
6113
6415
|
|
|
6114
6416
|
___
|
|
6115
6417
|
|
|
@@ -6166,7 +6468,7 @@ function MyComponent() {
|
|
|
6166
6468
|
|
|
6167
6469
|
#### Defined in
|
|
6168
6470
|
|
|
6169
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6471
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:454](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L454)
|
|
6170
6472
|
|
|
6171
6473
|
___
|
|
6172
6474
|
|
|
@@ -6217,7 +6519,7 @@ function MyComponent() {
|
|
|
6217
6519
|
|
|
6218
6520
|
#### Defined in
|
|
6219
6521
|
|
|
6220
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6522
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:537](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L537)
|
|
6221
6523
|
|
|
6222
6524
|
___
|
|
6223
6525
|
|
|
@@ -6268,7 +6570,7 @@ function MyComponent() {
|
|
|
6268
6570
|
|
|
6269
6571
|
#### Defined in
|
|
6270
6572
|
|
|
6271
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6573
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:623](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L623)
|
|
6272
6574
|
|
|
6273
6575
|
___
|
|
6274
6576
|
|
|
@@ -6319,7 +6621,7 @@ function MyComponent() {
|
|
|
6319
6621
|
|
|
6320
6622
|
#### Defined in
|
|
6321
6623
|
|
|
6322
|
-
[packages/core/src/rbac/hooks/usePermissions.ts:
|
|
6624
|
+
[packages/core/src/rbac/hooks/usePermissions.ts:708](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/usePermissions.ts#L708)
|
|
6323
6625
|
|
|
6324
6626
|
___
|
|
6325
6627
|
|
|
@@ -6382,7 +6684,7 @@ const permission = useCan(userId, resolvedScope, permission);
|
|
|
6382
6684
|
|
|
6383
6685
|
#### Defined in
|
|
6384
6686
|
|
|
6385
|
-
[packages/core/src/rbac/hooks/useResolvedScope.ts:
|
|
6687
|
+
[packages/core/src/rbac/hooks/useResolvedScope.ts:64](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/hooks/useResolvedScope.ts#L64)
|
|
6386
6688
|
|
|
6387
6689
|
___
|
|
6388
6690
|
|
|
@@ -6428,7 +6730,7 @@ True if valid, false otherwise
|
|
|
6428
6730
|
|
|
6429
6731
|
#### Defined in
|
|
6430
6732
|
|
|
6431
|
-
[packages/core/src/rbac/permissions.ts:
|
|
6733
|
+
[packages/core/src/rbac/permissions.ts:159](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L159)
|
|
6432
6734
|
|
|
6433
6735
|
___
|
|
6434
6736
|
|
|
@@ -6467,7 +6769,7 @@ Empty array (function deprecated)
|
|
|
6467
6769
|
|
|
6468
6770
|
#### Defined in
|
|
6469
6771
|
|
|
6470
|
-
[packages/core/src/rbac/permissions.ts:
|
|
6772
|
+
[packages/core/src/rbac/permissions.ts:191](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/permissions.ts#L191)
|
|
6471
6773
|
|
|
6472
6774
|
___
|
|
6473
6775
|
|
|
@@ -6627,7 +6929,7 @@ const palette = parseAndNormalizeEventColours(colours);
|
|
|
6627
6929
|
|
|
6628
6930
|
#### Defined in
|
|
6629
6931
|
|
|
6630
|
-
[packages/core/src/theming/parseEventColours.ts:
|
|
6932
|
+
[packages/core/src/theming/parseEventColours.ts:54](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/parseEventColours.ts#L54)
|
|
6631
6933
|
|
|
6632
6934
|
___
|
|
6633
6935
|
|
|
@@ -6650,7 +6952,7 @@ Uses document.documentElement.style.setProperty() for runtime updates.
|
|
|
6650
6952
|
|
|
6651
6953
|
#### Defined in
|
|
6652
6954
|
|
|
6653
|
-
[packages/core/src/theming/runtime.ts:
|
|
6955
|
+
[packages/core/src/theming/runtime.ts:70](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/runtime.ts#L70)
|
|
6654
6956
|
|
|
6655
6957
|
___
|
|
6656
6958
|
|
|
@@ -6667,7 +6969,7 @@ This allows the browser to fall back to static CSS values.
|
|
|
6667
6969
|
|
|
6668
6970
|
#### Defined in
|
|
6669
6971
|
|
|
6670
|
-
[packages/core/src/theming/runtime.ts:
|
|
6972
|
+
[packages/core/src/theming/runtime.ts:120](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/runtime.ts#L120)
|
|
6671
6973
|
|
|
6672
6974
|
___
|
|
6673
6975
|
|
|
@@ -6690,7 +6992,7 @@ Use this in your SSR setup to avoid FOUC
|
|
|
6690
6992
|
|
|
6691
6993
|
#### Defined in
|
|
6692
6994
|
|
|
6693
|
-
[packages/core/src/theming/runtime.ts:
|
|
6995
|
+
[packages/core/src/theming/runtime.ts:198](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/runtime.ts#L198)
|
|
6694
6996
|
|
|
6695
6997
|
___
|
|
6696
6998
|
|
|
@@ -6706,7 +7008,7 @@ Checks if dynamic theming is currently active
|
|
|
6706
7008
|
|
|
6707
7009
|
#### Defined in
|
|
6708
7010
|
|
|
6709
|
-
[packages/core/src/theming/runtime.ts:
|
|
7011
|
+
[packages/core/src/theming/runtime.ts:205](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/runtime.ts#L205)
|
|
6710
7012
|
|
|
6711
7013
|
___
|
|
6712
7014
|
|
|
@@ -6723,7 +7025,7 @@ Useful for debugging or persistence
|
|
|
6723
7025
|
|
|
6724
7026
|
#### Defined in
|
|
6725
7027
|
|
|
6726
|
-
[packages/core/src/theming/runtime.ts:
|
|
7028
|
+
[packages/core/src/theming/runtime.ts:219](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/theming/runtime.ts#L219)
|
|
6727
7029
|
|
|
6728
7030
|
___
|
|
6729
7031
|
|
|
@@ -6745,7 +7047,7 @@ Set the current application configuration
|
|
|
6745
7047
|
|
|
6746
7048
|
#### Defined in
|
|
6747
7049
|
|
|
6748
|
-
[packages/core/src/utils/appConfig.ts:16](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/appConfig.ts#L16)
|
|
7050
|
+
[packages/core/src/utils/app/appConfig.ts:16](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/app/appConfig.ts#L16)
|
|
6749
7051
|
|
|
6750
7052
|
___
|
|
6751
7053
|
|
|
@@ -6761,7 +7063,7 @@ Get the current application configuration
|
|
|
6761
7063
|
|
|
6762
7064
|
#### Defined in
|
|
6763
7065
|
|
|
6764
|
-
[packages/core/src/utils/appConfig.ts:23](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/appConfig.ts#L23)
|
|
7066
|
+
[packages/core/src/utils/app/appConfig.ts:23](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/app/appConfig.ts#L23)
|
|
6765
7067
|
|
|
6766
7068
|
___
|
|
6767
7069
|
|
|
@@ -6777,7 +7079,7 @@ Get the current app name
|
|
|
6777
7079
|
|
|
6778
7080
|
#### Defined in
|
|
6779
7081
|
|
|
6780
|
-
[packages/core/src/utils/appConfig.ts:38](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/appConfig.ts#L38)
|
|
7082
|
+
[packages/core/src/utils/app/appConfig.ts:38](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/app/appConfig.ts#L38)
|
|
6781
7083
|
|
|
6782
7084
|
___
|
|
6783
7085
|
|
|
@@ -6793,7 +7095,40 @@ Get the current app ID
|
|
|
6793
7095
|
|
|
6794
7096
|
#### Defined in
|
|
6795
7097
|
|
|
6796
|
-
[packages/core/src/utils/appConfig.ts:45](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/appConfig.ts#L45)
|
|
7098
|
+
[packages/core/src/utils/app/appConfig.ts:45](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/app/appConfig.ts#L45)
|
|
7099
|
+
|
|
7100
|
+
___
|
|
7101
|
+
|
|
7102
|
+
### useSessionTracking
|
|
7103
|
+
|
|
7104
|
+
▸ **useSessionTracking**(`supabaseClient`, `appName?`): `Object`
|
|
7105
|
+
|
|
7106
|
+
Hook for manual session tracking (event switches and session expiration).
|
|
7107
|
+
|
|
7108
|
+
Note: Login and logout tracking is automatically handled by UnifiedAuthProvider.
|
|
7109
|
+
You should only use this hook for tracking event switches or session expirations.
|
|
7110
|
+
|
|
7111
|
+
#### Parameters
|
|
7112
|
+
|
|
7113
|
+
| Name | Type | Description |
|
|
7114
|
+
| :------ | :------ | :------ |
|
|
7115
|
+
| `supabaseClient` | `default`\<`any`, ``"public"``, ``"public"``, `any`, `any`\> | Supabase client instance |
|
|
7116
|
+
| `appName?` | `string` | Optional application name for tracking |
|
|
7117
|
+
|
|
7118
|
+
#### Returns
|
|
7119
|
+
|
|
7120
|
+
`Object`
|
|
7121
|
+
|
|
7122
|
+
Object containing tracking functions for event switches and session expiration
|
|
7123
|
+
|
|
7124
|
+
| Name | Type |
|
|
7125
|
+
| :------ | :------ |
|
|
7126
|
+
| `trackEventSwitch` | (`eventId`: `string`) => `Promise`\<`void`\> |
|
|
7127
|
+
| `trackSessionExpired` | () => `Promise`\<`void`\> |
|
|
7128
|
+
|
|
7129
|
+
#### Defined in
|
|
7130
|
+
|
|
7131
|
+
[packages/core/src/utils/context/sessionTracking.ts:25](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/context/sessionTracking.ts#L25)
|
|
6797
7132
|
|
|
6798
7133
|
___
|
|
6799
7134
|
|
|
@@ -6813,7 +7148,7 @@ ___
|
|
|
6813
7148
|
|
|
6814
7149
|
#### Defined in
|
|
6815
7150
|
|
|
6816
|
-
[packages/core/src/utils/cn.ts:5](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/cn.ts#L5)
|
|
7151
|
+
[packages/core/src/utils/core/cn.ts:5](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/core/cn.ts#L5)
|
|
6817
7152
|
|
|
6818
7153
|
___
|
|
6819
7154
|
|
|
@@ -6835,7 +7170,7 @@ Format a date as a readable string in "dd mmm yyyy" format (e.g., "15 Jun 2024")
|
|
|
6835
7170
|
|
|
6836
7171
|
#### Defined in
|
|
6837
7172
|
|
|
6838
|
-
[packages/core/src/utils/formatting.ts:8](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L8)
|
|
7173
|
+
[packages/core/src/utils/formatting/formatting.ts:8](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L8)
|
|
6839
7174
|
|
|
6840
7175
|
___
|
|
6841
7176
|
|
|
@@ -6859,7 +7194,7 @@ Format a number as a currency
|
|
|
6859
7194
|
|
|
6860
7195
|
#### Defined in
|
|
6861
7196
|
|
|
6862
|
-
[packages/core/src/utils/formatting.ts:24](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L24)
|
|
7197
|
+
[packages/core/src/utils/formatting/formatting.ts:24](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L24)
|
|
6863
7198
|
|
|
6864
7199
|
___
|
|
6865
7200
|
|
|
@@ -6883,7 +7218,7 @@ Format a number with custom options
|
|
|
6883
7218
|
|
|
6884
7219
|
#### Defined in
|
|
6885
7220
|
|
|
6886
|
-
[packages/core/src/utils/formatting.ts:34](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L34)
|
|
7221
|
+
[packages/core/src/utils/formatting/formatting.ts:34](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L34)
|
|
6887
7222
|
|
|
6888
7223
|
___
|
|
6889
7224
|
|
|
@@ -6928,7 +7263,7 @@ formatPercent(0.8123, 'en-US', { preserveDecimals: true, maxDecimals: 2 }) // '0
|
|
|
6928
7263
|
|
|
6929
7264
|
#### Defined in
|
|
6930
7265
|
|
|
6931
|
-
[packages/core/src/utils/formatting.ts:71](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L71)
|
|
7266
|
+
[packages/core/src/utils/formatting/formatting.ts:71](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L71)
|
|
6932
7267
|
|
|
6933
7268
|
___
|
|
6934
7269
|
|
|
@@ -6951,7 +7286,7 @@ Format a large number with abbreviations (K, M, B)
|
|
|
6951
7286
|
|
|
6952
7287
|
#### Defined in
|
|
6953
7288
|
|
|
6954
|
-
[packages/core/src/utils/formatting.ts:115](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L115)
|
|
7289
|
+
[packages/core/src/utils/formatting/formatting.ts:115](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L115)
|
|
6955
7290
|
|
|
6956
7291
|
___
|
|
6957
7292
|
|
|
@@ -6973,7 +7308,7 @@ Format a file size in bytes to a human-readable string
|
|
|
6973
7308
|
|
|
6974
7309
|
#### Defined in
|
|
6975
7310
|
|
|
6976
|
-
[packages/core/src/utils/formatting.ts:125](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting.ts#L125)
|
|
7311
|
+
[packages/core/src/utils/formatting/formatting.ts:125](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/formatting/formatting.ts#L125)
|
|
6977
7312
|
|
|
6978
7313
|
___
|
|
6979
7314
|
|
|
@@ -6999,40 +7334,7 @@ Secure data access utilities
|
|
|
6999
7334
|
|
|
7000
7335
|
#### Defined in
|
|
7001
7336
|
|
|
7002
|
-
[packages/core/src/utils/secureDataAccess.ts:76](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/secureDataAccess.ts#L76)
|
|
7003
|
-
|
|
7004
|
-
___
|
|
7005
|
-
|
|
7006
|
-
### useSessionTracking
|
|
7007
|
-
|
|
7008
|
-
▸ **useSessionTracking**(`supabaseClient`, `appName?`): `Object`
|
|
7009
|
-
|
|
7010
|
-
Hook for manual session tracking (event switches and session expiration).
|
|
7011
|
-
|
|
7012
|
-
Note: Login and logout tracking is automatically handled by UnifiedAuthProvider.
|
|
7013
|
-
You should only use this hook for tracking event switches or session expirations.
|
|
7014
|
-
|
|
7015
|
-
#### Parameters
|
|
7016
|
-
|
|
7017
|
-
| Name | Type | Description |
|
|
7018
|
-
| :------ | :------ | :------ |
|
|
7019
|
-
| `supabaseClient` | `default`\<`any`, ``"public"``, ``"public"``, `any`, `any`\> | Supabase client instance |
|
|
7020
|
-
| `appName?` | `string` | Optional application name for tracking |
|
|
7021
|
-
|
|
7022
|
-
#### Returns
|
|
7023
|
-
|
|
7024
|
-
`Object`
|
|
7025
|
-
|
|
7026
|
-
Object containing tracking functions for event switches and session expiration
|
|
7027
|
-
|
|
7028
|
-
| Name | Type |
|
|
7029
|
-
| :------ | :------ |
|
|
7030
|
-
| `trackEventSwitch` | (`eventId`: `string`) => `Promise`\<`void`\> |
|
|
7031
|
-
| `trackSessionExpired` | () => `Promise`\<`void`\> |
|
|
7032
|
-
|
|
7033
|
-
#### Defined in
|
|
7034
|
-
|
|
7035
|
-
[packages/core/src/utils/sessionTracking.ts:22](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/sessionTracking.ts#L22)
|
|
7337
|
+
[packages/core/src/utils/security/secureDataAccess.ts:76](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/security/secureDataAccess.ts#L76)
|
|
7036
7338
|
|
|
7037
7339
|
___
|
|
7038
7340
|
|
|
@@ -7128,7 +7430,7 @@ Generate a file path based on organization-first structure
|
|
|
7128
7430
|
|
|
7129
7431
|
#### Defined in
|
|
7130
7432
|
|
|
7131
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7433
|
+
[packages/core/src/utils/storage/helpers.ts:23](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L23)
|
|
7132
7434
|
|
|
7133
7435
|
___
|
|
7134
7436
|
|
|
@@ -7151,7 +7453,7 @@ Sanitizes the original filename to remove spaces and invalid characters for stor
|
|
|
7151
7453
|
|
|
7152
7454
|
#### Defined in
|
|
7153
7455
|
|
|
7154
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7456
|
+
[packages/core/src/utils/storage/helpers.ts:54](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L54)
|
|
7155
7457
|
|
|
7156
7458
|
___
|
|
7157
7459
|
|
|
@@ -7175,7 +7477,7 @@ Extract file metadata from a File object
|
|
|
7175
7477
|
|
|
7176
7478
|
#### Defined in
|
|
7177
7479
|
|
|
7178
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7480
|
+
[packages/core/src/utils/storage/helpers.ts:81](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L81)
|
|
7179
7481
|
|
|
7180
7482
|
___
|
|
7181
7483
|
|
|
@@ -7199,7 +7501,7 @@ Upload a file to Supabase storage with app segregation
|
|
|
7199
7501
|
|
|
7200
7502
|
#### Defined in
|
|
7201
7503
|
|
|
7202
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7504
|
+
[packages/core/src/utils/storage/helpers.ts:159](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L159)
|
|
7203
7505
|
|
|
7204
7506
|
___
|
|
7205
7507
|
|
|
@@ -7225,7 +7527,7 @@ Public URL for the file
|
|
|
7225
7527
|
|
|
7226
7528
|
#### Defined in
|
|
7227
7529
|
|
|
7228
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7530
|
+
[packages/core/src/utils/storage/helpers.ts:231](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L231)
|
|
7229
7531
|
|
|
7230
7532
|
___
|
|
7231
7533
|
|
|
@@ -7252,7 +7554,7 @@ Signed URL with expiration timestamp, or null if failed
|
|
|
7252
7554
|
|
|
7253
7555
|
#### Defined in
|
|
7254
7556
|
|
|
7255
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7557
|
+
[packages/core/src/utils/storage/helpers.ts:327](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L327)
|
|
7256
7558
|
|
|
7257
7559
|
___
|
|
7258
7560
|
|
|
@@ -7278,7 +7580,7 @@ Success status and optional error message
|
|
|
7278
7580
|
|
|
7279
7581
|
#### Defined in
|
|
7280
7582
|
|
|
7281
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7583
|
+
[packages/core/src/utils/storage/helpers.ts:362](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L362)
|
|
7282
7584
|
|
|
7283
7585
|
___
|
|
7284
7586
|
|
|
@@ -7303,7 +7605,7 @@ List of files with metadata
|
|
|
7303
7605
|
|
|
7304
7606
|
#### Defined in
|
|
7305
7607
|
|
|
7306
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7608
|
+
[packages/core/src/utils/storage/helpers.ts:396](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L396)
|
|
7307
7609
|
|
|
7308
7610
|
___
|
|
7309
7611
|
|
|
@@ -7329,7 +7631,7 @@ File blob with metadata, or null if failed
|
|
|
7329
7631
|
|
|
7330
7632
|
#### Defined in
|
|
7331
7633
|
|
|
7332
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7634
|
+
[packages/core/src/utils/storage/helpers.ts:456](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L456)
|
|
7333
7635
|
|
|
7334
7636
|
___
|
|
7335
7637
|
|
|
@@ -7356,4 +7658,4 @@ Move a file to archived location (soft delete)
|
|
|
7356
7658
|
|
|
7357
7659
|
#### Defined in
|
|
7358
7660
|
|
|
7359
|
-
[packages/core/src/utils/storage/helpers.ts:
|
|
7661
|
+
[packages/core/src/utils/storage/helpers.ts:509](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/utils/storage/helpers.ts#L509)
|