@jmruthers/pace-core 0.5.68 → 0.5.69
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-4IUY7BXB.js → DataTable-MPBSXUC6.js} +5 -6
- package/dist/{PublicLoadingSpinner-DdKXTkCZ.d.ts → PublicLoadingSpinner-BOdyU3u-.d.ts} +1 -1
- package/dist/{chunk-PXWEDX7Y.js → chunk-2ARQW6VX.js} +3 -3
- package/dist/{chunk-MOJXHWDE.js → chunk-6JILXFEA.js} +335 -5
- package/dist/chunk-6JILXFEA.js.map +1 -0
- package/dist/{chunk-D7ARGIA3.js → chunk-6RBH67W7.js} +23 -6
- package/dist/chunk-6RBH67W7.js.map +1 -0
- package/dist/{chunk-ZMS23NS5.js → chunk-FJTAWPAQ.js} +3 -5
- package/dist/{chunk-ZMS23NS5.js.map → chunk-FJTAWPAQ.js.map} +1 -1
- package/dist/{chunk-OPCWH3A4.js → chunk-NO5QHMDX.js} +7 -6
- package/dist/chunk-NO5QHMDX.js.map +1 -0
- package/dist/{chunk-ZPK5656W.js → chunk-O3NWNXDY.js} +4 -5
- package/dist/chunk-O3NWNXDY.js.map +1 -0
- package/dist/{chunk-UYA6U6H7.js → chunk-Q2UP3ZWQ.js} +4 -4
- package/dist/{chunk-KRCRNXPD.js → chunk-RVYGJPOD.js} +79 -18
- package/dist/chunk-RVYGJPOD.js.map +1 -0
- package/dist/{chunk-NN45OBIS.js → chunk-UCMHBF7Y.js} +3 -5
- package/dist/{chunk-NN45OBIS.js.map → chunk-UCMHBF7Y.js.map} +1 -1
- package/dist/{chunk-ZPG4XPV5.js → chunk-V3QO3LL7.js} +5 -7
- package/dist/chunk-V3QO3LL7.js.map +1 -0
- package/dist/{chunk-U6GPOF6J.js → chunk-ZXJGZLLO.js} +17 -17
- package/dist/{chunk-U6GPOF6J.js.map → chunk-ZXJGZLLO.js.map} +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +8 -9
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +9 -6
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/providers.js +5 -7
- package/dist/rbac/index.js +5 -6
- package/dist/{usePublicRouteParams-CdoFxnJK.d.ts → usePublicRouteParams-Ua1Vz-HG.d.ts} +35 -1
- package/dist/utils.d.ts +4 -1
- package/dist/utils.js +3 -3
- package/docs/DOCUMENTATION_CHECKLIST.md +281 -0
- package/docs/README.md +22 -10
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- 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 +1 -1
- package/docs/api/classes/RBACCache.md +1 -1
- package/docs/api/classes/RBACEngine.md +1 -1
- 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/interfaces/AggregateConfig.md +1 -1
- 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 +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/EventContextType.md +1 -1
- package/docs/api/interfaces/EventLogoProps.md +1 -1
- package/docs/api/interfaces/EventProviderProps.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.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 +1 -1
- package/docs/api/interfaces/NavigationContextType.md +1 -1
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +1 -1
- 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 +1 -1
- package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
- package/docs/api/interfaces/PageAccessRecord.md +1 -1
- package/docs/api/interfaces/PagePermissionContextType.md +1 -1
- package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
- package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
- 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 +2 -2
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +1 -1
- package/docs/api/interfaces/RBACContextType.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RBACProviderProps.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
- package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
- package/docs/api/interfaces/RouteAccessRecord.md +1 -1
- package/docs/api/interfaces/RouteConfig.md +1 -1
- package/docs/api/interfaces/SecureDataContextType.md +1 -1
- package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
- 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 +1 -1
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +39 -14
- package/docs/architecture/services.md +374 -0
- package/docs/best-practices/README.md +1 -1
- package/docs/best-practices/testing.md +1 -1
- package/docs/breaking-changes.md +182 -0
- package/docs/common-patterns.md +445 -0
- package/docs/core-concepts/authentication.md +26 -11
- package/docs/core-concepts/events.md +2 -0
- package/docs/core-concepts/organisations.md +2 -0
- package/docs/core-concepts/permissions.md +2 -0
- package/docs/{INDEX.md → documentation-index.md} +26 -38
- package/docs/faq.md +286 -0
- package/docs/{FILE_REFERENCE_SYSTEM.md → file-reference-system.md} +1 -1
- package/docs/getting-started/installation-guide.md +284 -0
- package/docs/getting-started/quick-start.md +8 -1
- package/docs/implementation-guides/app-layout.md +3 -1
- package/docs/implementation-guides/data-tables.md +2 -0
- package/docs/implementation-guides/dynamic-colors.md +47 -2
- package/docs/implementation-guides/event-theming-summary.md +220 -0
- package/docs/implementation-guides/forms.md +9 -7
- package/docs/implementation-guides/navigation.md +2 -0
- package/docs/migration/service-architecture.md +351 -0
- package/docs/rbac/README-rbac-rls-integration.md +2 -2
- package/docs/rbac/README.md +1 -1
- package/docs/rbac/examples/rbac-rls-integration-example.md +3 -3
- package/docs/rbac/quick-start.md +2 -0
- package/docs/rbac/rbac-rls-integration.md +2 -2
- package/docs/style-guide.md +136 -1
- package/docs/testing/README.md +1 -1
- package/docs/troubleshooting/authentication-issues.md +334 -0
- package/docs/troubleshooting/common-issues.md +2 -0
- package/docs/troubleshooting/styling-issues.md +199 -144
- package/docs/usage.md +23 -2
- package/package.json +1 -1
- package/src/__tests__/{TESTING_GUIDELINES.md → TEST_GUIDE_CURSOR.md} +20 -0
- package/src/__tests__/TEST_GUIDE_HUMAN.md +103 -0
- package/src/__tests__/fixtures/test-data.ts +90 -0
- package/src/__tests__/helpers/__tests__/component-test-utils.test.tsx +260 -0
- package/src/__tests__/helpers/__tests__/optimized-test-setup.test.ts +224 -0
- package/src/__tests__/helpers/__tests__/supabaseMock.test.ts +273 -0
- package/src/__tests__/helpers/__tests__/test-providers.test.tsx +98 -0
- package/src/__tests__/helpers/__tests__/test-utils.test.tsx +436 -0
- package/src/__tests__/helpers/__tests__/timer-utils.test.ts +371 -0
- package/src/__tests__/helpers/component-test-utils.tsx +14 -4
- package/src/__tests__/helpers/optimized-test-setup.ts +68 -0
- package/src/__tests__/helpers/test-providers.tsx +329 -0
- package/src/__tests__/helpers/test-utils.tsx +91 -45
- package/src/__tests__/helpers/timer-utils.ts +71 -0
- package/src/__tests__/hooks/usePermissions.test.ts +1 -5
- package/src/__tests__/integration/UserProfile.test.tsx +1 -5
- package/src/__tests__/rbac/PagePermissionGuard.test.tsx +42 -12
- package/src/__tests__/setup.ts +34 -28
- package/src/components/Alert/Alert.test.tsx +1 -5
- package/src/components/Avatar/Avatar.test.tsx +1 -5
- package/src/components/Button/Button.test.tsx +4 -20
- package/src/components/Card/Card.test.tsx +1 -5
- package/src/components/Checkbox/Checkbox.test.tsx +1 -5
- package/src/components/DataTable/__tests__/DataTable.comprehensive.test.tsx +1 -5
- package/src/components/DataTable/__tests__/DataTable.test.tsx +45 -49
- package/src/components/DataTable/__tests__/DataTableCore.test.tsx +1 -5
- package/src/components/DataTable/__tests__/styles.test.ts +382 -0
- package/src/components/DataTable/context/__tests__/DataTableContext.test.tsx +409 -0
- package/src/components/DataTable/core/__tests__/ActionManager.test.ts +634 -0
- package/src/components/DataTable/core/__tests__/DataManager.test.ts +519 -0
- package/src/components/DataTable/core/__tests__/StateManager.test.ts +714 -0
- package/src/components/DataTable/hooks/__tests__/useDataTableState.test.ts +592 -0
- package/src/components/DataTable/utils/__tests__/exportUtils.test.ts +354 -0
- package/src/components/DataTable/utils/__tests__/hierarchicalUtils.test.ts +539 -0
- package/src/components/Dialog/examples/__tests__/SmartDialogExample.unit.test.tsx +1 -5
- package/src/components/Dialog/utils/__tests__/safeHtml.unit.test.ts +1 -8
- package/src/components/ErrorBoundary/ErrorBoundary.test.tsx +34 -38
- package/src/components/Footer/Footer.test.tsx +1 -5
- package/src/components/Form/Form.test.tsx +22 -35
- package/src/components/Header/Header.test.tsx +1 -9
- package/src/components/InactivityWarningModal/InactivityWarningModal.test.tsx +1 -5
- package/src/components/Input/Input.test.tsx +2 -10
- package/src/components/LoginForm/LoginForm.test.tsx +1 -5
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +24 -24
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.accessibility.test.tsx +1 -6
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.integration.test.tsx +6 -16
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.performance.test.tsx +1 -5
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.rbac.test.tsx +1 -5
- package/src/components/PaceLoginPage/PaceLoginPage.test.tsx +1 -7
- package/src/components/PasswordReset/PasswordChangeForm.test.tsx +1 -9
- package/src/components/PasswordReset/PasswordResetForm.test.tsx +1 -9
- package/src/components/PublicLayout/PublicErrorBoundary.tsx +4 -5
- package/src/components/PublicLayout/PublicPageHeader.tsx +13 -9
- package/src/components/PublicLayout/__tests__/EventLogo.test.tsx +666 -0
- package/src/components/PublicLayout/__tests__/PublicErrorBoundary.test.tsx +457 -0
- package/src/components/PublicLayout/__tests__/PublicLoadingSpinner.test.tsx +393 -0
- package/src/components/PublicLayout/__tests__/PublicPageFooter.test.tsx +351 -0
- package/src/components/PublicLayout/__tests__/PublicPageHeader.test.tsx +374 -0
- package/src/components/PublicLayout/__tests__/PublicPageLayout.test.tsx +388 -0
- package/src/components/Select/Select.bug-test.tsx +69 -0
- package/src/components/Select/Select.refactored.tsx +497 -0
- package/src/components/Select/Select.test.tsx +42 -49
- package/src/components/Select/Select.tsx +5 -2
- package/src/components/Select/hooks.ts +254 -0
- package/src/components/Switch/Switch.test.tsx +1 -5
- package/src/components/Table/__tests__/Table.test.tsx +775 -0
- package/src/components/Toast/Toast.test.tsx +15 -8
- package/src/components/Tooltip/Tooltip.test.tsx +1 -5
- package/src/components/UserMenu/UserMenu.test.tsx +3 -15
- package/src/components/__tests__/FileDisplay.test.tsx +575 -0
- package/src/components/__tests__/FileUpload.test.tsx +446 -0
- package/src/components/__tests__/SuperAdminGuard.test.tsx +422 -354
- package/src/hooks/__tests__/ServiceHooks.test.tsx +613 -0
- package/src/hooks/__tests__/hooks.integration.test.tsx +1 -10
- package/src/hooks/__tests__/useApiFetch.unit.test.ts +10 -14
- package/src/hooks/__tests__/useAppConfig.unit.test.ts +307 -0
- package/src/hooks/__tests__/useComponentPerformance.unit.test.tsx +1 -6
- package/src/hooks/__tests__/useFocusTrap.unit.test.tsx +1 -5
- package/src/hooks/__tests__/useOrganisationPermissions.unit.test.tsx +6 -9
- package/src/hooks/__tests__/usePublicEvent.simple.test.ts +321 -0
- package/src/hooks/__tests__/usePublicEvent.unit.test.ts +583 -0
- package/src/hooks/__tests__/usePublicEventLogo.unit.test.ts +640 -0
- package/src/hooks/__tests__/usePublicRouteParams.unit.test.ts +435 -0
- package/src/hooks/__tests__/useRBAC.unit.test.ts +10 -10
- package/src/hooks/__tests__/useStorage.unit.test.ts +751 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/public/usePublicEvent.ts +30 -9
- package/src/hooks/public/usePublicRouteParams.ts +13 -3
- package/src/hooks/services/useAuth.ts +50 -0
- package/src/hooks/services/useAuthService.ts +30 -0
- package/src/hooks/services/useCurrentEvent.ts +36 -0
- package/src/hooks/services/useCurrentOrganisation.ts +52 -0
- package/src/hooks/services/useEventService.ts +30 -0
- package/src/hooks/services/useInactivityService.ts +30 -0
- package/src/hooks/services/useOrganisationService.ts +30 -0
- package/src/hooks/services/usePermissions.ts +70 -0
- package/src/hooks/services/useRBACService.ts +30 -0
- package/src/hooks/useCounter.test.ts +1 -5
- package/src/hooks/useEventTheme.ts +86 -0
- package/src/hooks/useOrganisationPermissions.test.ts +2 -5
- package/src/hooks/useOrganisationSecurity.test.ts +1 -5
- package/src/hooks/usePermissionCache.test.ts +1 -5
- package/src/hooks/usePermissionCheck.ts +150 -0
- package/src/hooks/useSecureDataAccess.test.ts +1 -5
- package/src/index.ts +1 -0
- package/src/providers/OrganisationProvider.test.tsx +1 -5
- package/src/providers/OrganisationProvider.tsx +56 -4
- package/src/providers/UnifiedAuthProvider.test.tsx +1 -5
- package/src/providers/__tests__/AuthProvider.test.tsx +105 -439
- package/src/providers/__tests__/AuthProvider.test.tsx.backup +771 -0
- package/src/providers/__tests__/EventProvider.test.tsx +211 -110
- package/src/providers/__tests__/EventProvider.test.tsx.backup +824 -0
- package/src/providers/__tests__/InactivityProvider.test.tsx +1 -5
- package/src/providers/__tests__/OrganisationProvider.test.tsx +97 -261
- package/src/providers/__tests__/OrganisationProvider.test.tsx.backup +820 -0
- package/src/providers/__tests__/ServiceProviders.test.tsx +477 -0
- package/src/providers/__tests__/UnifiedAuthProvider.test.tsx +72 -504
- package/src/providers/__tests__/UnifiedAuthProvider.test.tsx.backup +911 -0
- package/src/providers/__tests__/UnifiedAuthProvider.test.tsx.backup2 +166 -0
- package/src/providers/services/AuthServiceProvider.tsx +65 -0
- package/src/providers/services/EventServiceProvider.tsx +83 -0
- package/src/providers/services/InactivityServiceProvider.tsx +83 -0
- package/src/providers/services/OrganisationServiceProvider.tsx +77 -0
- package/src/providers/services/RBACServiceProvider.tsx +79 -0
- package/src/providers/services/UnifiedAuthProvider.tsx +368 -0
- package/src/providers/services/__tests__/AuthServiceProvider.integration.test.tsx +210 -0
- package/src/providers/services/__tests__/UnifiedAuthProvider.integration.test.tsx +269 -0
- package/src/rbac/__tests__/adapters.comprehensive.test.tsx +892 -0
- package/src/rbac/__tests__/engine.comprehensive.test.ts +954 -0
- package/src/rbac/__tests__/integration.authflow.test.tsx +1 -5
- package/src/rbac/__tests__/integration.navigation.test.tsx +1 -4
- package/src/rbac/__tests__/rbac-core.test.tsx +2 -7
- package/src/rbac/__tests__/rbac-functions.test.ts +1 -9
- package/src/rbac/__tests__/rbac-integration.test.ts +1 -9
- package/src/rbac/api.test.ts +1 -9
- package/src/rbac/cache.test.ts +10 -8
- package/src/rbac/cli/__tests__/policy-manager.test.ts +339 -0
- package/src/rbac/components/EnhancedNavigationMenu.test.tsx +1 -5
- package/src/rbac/components/NavigationProvider.test.tsx +1 -5
- package/src/rbac/components/PagePermissionProvider.test.tsx +1 -5
- package/src/rbac/components/SecureDataProvider.test.tsx +1 -5
- package/src/rbac/components/__tests__/NavigationGuard.test.tsx +25 -29
- package/src/rbac/components/__tests__/PagePermissionGuard.test.tsx +27 -30
- package/src/rbac/components/__tests__/PermissionEnforcer.test.tsx +23 -27
- package/src/rbac/components/__tests__/RoleBasedRouter.test.tsx +18 -22
- package/src/rbac/config.test.ts +1 -5
- package/src/rbac/hooks/useCan.test.ts +262 -9
- package/src/rbac/hooks/usePermissions.test.ts +246 -6
- package/src/rbac/hooks/useRBAC.simple.test.ts +1 -5
- package/src/rbac/hooks/useRBAC.test.ts +472 -198
- package/src/rbac/providers/__tests__/RBACProvider.test.tsx +1 -9
- package/src/services/AuthService.ts +416 -0
- package/src/services/EventService.ts +366 -0
- package/src/services/InactivityService.ts +388 -0
- package/src/services/OrganisationService.ts +592 -0
- package/src/services/RBACService.ts +522 -0
- package/src/services/__tests__/AuthService.test.ts +356 -0
- package/src/services/__tests__/BaseService.test.ts +314 -0
- package/src/services/__tests__/EventService.test.ts +489 -0
- package/src/services/__tests__/InactivityService.test.ts +403 -0
- package/src/services/__tests__/OrganisationService.test.ts +660 -0
- package/src/services/__tests__/RBACService.test.ts +492 -0
- package/src/services/base/BaseService.ts +87 -0
- package/src/services/interfaces/IAuthService.ts +39 -0
- package/src/services/interfaces/IEventService.ts +30 -0
- package/src/services/interfaces/IInactivityService.ts +31 -0
- package/src/services/interfaces/IOrganisationService.ts +41 -0
- package/src/services/interfaces/IRBACService.ts +62 -0
- package/src/theming/__tests__/runtime.test.ts +540 -0
- package/src/types/__tests__/file-reference.test.ts +447 -0
- package/src/types/__tests__/organisation.test.ts +1133 -0
- package/src/types/__tests__/theme.test.ts +830 -0
- package/src/types/__tests__/type-validation.test.ts +527 -0
- package/src/utils/__tests__/bundleAnalysis.unit.test.ts +1 -5
- package/src/utils/__tests__/debugLogger.test.ts +417 -0
- package/src/utils/__tests__/deviceFingerprint.unit.test.ts +1 -6
- package/src/utils/__tests__/dynamicUtils.unit.test.ts +1 -5
- package/src/utils/__tests__/lazyLoad.unit.test.tsx +35 -35
- package/src/utils/__tests__/organisationContext.unit.test.ts +1 -5
- package/src/utils/__tests__/performanceBudgets.unit.test.ts +5 -11
- package/src/utils/__tests__/secureErrors.unit.test.ts +1 -6
- package/src/utils/__tests__/secureStorage.unit.test.ts +1 -5
- package/src/utils/__tests__/securityMonitor.unit.test.ts +1 -5
- package/src/utils/__tests__/sessionTracking.unit.test.ts +1 -5
- package/src/utils/appIdResolver.test.ts +6 -10
- package/src/utils/appNameResolver.simple.test.ts +142 -0
- package/src/utils/appNameResolver.test.ts +31 -458
- package/src/utils/appNameResolver.test.ts.backup +494 -0
- package/src/utils/debugLogger.ts +26 -5
- package/src/utils/formatDate.test.ts +1 -5
- package/src/utils/organisationContext.test.ts +1 -5
- package/src/utils/performanceBudgets.ts +3 -4
- package/src/utils/secureDataAccess.test.ts +1 -5
- package/src/utils/storage/__tests__/helpers.unit.test.ts +1 -5
- package/src/validation/__tests__/sqlInjectionProtection.unit.test.ts +1 -5
- package/dist/chunk-D7ARGIA3.js.map +0 -1
- package/dist/chunk-IPCH4YPT.js +0 -315
- package/dist/chunk-IPCH4YPT.js.map +0 -1
- package/dist/chunk-KRCRNXPD.js.map +0 -1
- package/dist/chunk-MOJXHWDE.js.map +0 -1
- package/dist/chunk-OPCWH3A4.js.map +0 -1
- package/dist/chunk-ZPG4XPV5.js.map +0 -1
- package/dist/chunk-ZPK5656W.js.map +0 -1
- package/docs/getting-started/installation.md +0 -269
- package/src/__tests__/REBUILD_PLAN.md +0 -223
- /package/dist/{DataTable-4IUY7BXB.js.map → DataTable-MPBSXUC6.js.map} +0 -0
- /package/dist/{chunk-PXWEDX7Y.js.map → chunk-2ARQW6VX.js.map} +0 -0
- /package/dist/{chunk-UYA6U6H7.js.map → chunk-Q2UP3ZWQ.js.map} +0 -0
package/dist/utils.d.ts
CHANGED
|
@@ -21,7 +21,10 @@ import '@tanstack/react-table';
|
|
|
21
21
|
* Only logs in development mode to prevent production console spam
|
|
22
22
|
*/
|
|
23
23
|
declare class DebugLogger {
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Check if we're in development mode
|
|
26
|
+
*/
|
|
27
|
+
private static get isDevelopment();
|
|
25
28
|
/**
|
|
26
29
|
* Log debug information only in development mode
|
|
27
30
|
*/
|
package/dist/utils.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
PERFORMANCE_BUDGETS,
|
|
33
33
|
performanceBudgetMonitor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-O3NWNXDY.js";
|
|
35
35
|
import {
|
|
36
36
|
DebugLogger,
|
|
37
37
|
clearOrganisationContext,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
init_organisationContext,
|
|
43
43
|
isOrganisationContextAvailable,
|
|
44
44
|
setOrganisationContext
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6RBH67W7.js";
|
|
46
46
|
import "./chunk-PLDDJCW6.js";
|
|
47
47
|
|
|
48
48
|
// src/utils/index.ts
|
|
@@ -551,7 +551,7 @@ function createLazyComponent(importFn, componentName, options = {}) {
|
|
|
551
551
|
return WrappedComponent;
|
|
552
552
|
}
|
|
553
553
|
var LazyDataTable = createLazyComponent(
|
|
554
|
-
() => import("./DataTable-
|
|
554
|
+
() => import("./DataTable-MPBSXUC6.js").then((module) => ({ default: module.DataTable })),
|
|
555
555
|
"DataTable"
|
|
556
556
|
);
|
|
557
557
|
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# PACE Core Documentation Quality Checklist
|
|
2
|
+
|
|
3
|
+
> **📚 For Contributors** | [← Documentation Home](./README.md) | [Style Guide](./style-guide.md)] | [Review Report](../DOCUMENTATION_REVIEW_REPORT.md)
|
|
4
|
+
|
|
5
|
+
Use this checklist when creating or updating PACE Core documentation to ensure quality and consistency.
|
|
6
|
+
|
|
7
|
+
## ✅ Pre-Writing Checklist
|
|
8
|
+
|
|
9
|
+
### Determine Documentation Type
|
|
10
|
+
|
|
11
|
+
- [ ] Is this a **new feature**? → Create/update relevant guides
|
|
12
|
+
- [ ] Is this a **breaking change**? → Update breaking-changes.md
|
|
13
|
+
- [ ] Is this a **bug fix**? → Update troubleshooting if relevant
|
|
14
|
+
- [ ] Is this an **API change**? → Update api-reference/
|
|
15
|
+
- [ ] Is this a **configuration change**? → Update installation/configuration docs
|
|
16
|
+
|
|
17
|
+
### Identify Target Audience
|
|
18
|
+
|
|
19
|
+
- [ ] **New users** → Getting started/quick-start
|
|
20
|
+
- [ ] **Experienced users** → Implementation guides/API reference
|
|
21
|
+
- [ ] **Advanced users** → Best practices/advanced patterns
|
|
22
|
+
- [ ] **Troubleshooting** → Specific error/issue resolution
|
|
23
|
+
|
|
24
|
+
## ✅ Content Quality Checklist
|
|
25
|
+
|
|
26
|
+
### Structure
|
|
27
|
+
|
|
28
|
+
- [ ] Has clear, descriptive title
|
|
29
|
+
- [ ] Includes navigation breadcrumbs
|
|
30
|
+
- [ ] Has table of contents (for long documents)
|
|
31
|
+
- [ ] Uses consistent heading hierarchy (H1 → H2 → H3)
|
|
32
|
+
- [ ] Ends with "Related" or "Next Steps" section
|
|
33
|
+
- [ ] Includes version metadata (last updated, version)
|
|
34
|
+
|
|
35
|
+
### Writing Quality
|
|
36
|
+
|
|
37
|
+
- [ ] Uses active voice ("Create" not "should be created")
|
|
38
|
+
- [ ] Explains "why" not just "what"
|
|
39
|
+
- [ ] Uses simple, clear language
|
|
40
|
+
- [ ] Avoids jargon without explanation
|
|
41
|
+
- [ ] Provides context and background
|
|
42
|
+
- [ ] Includes realistic, working examples
|
|
43
|
+
|
|
44
|
+
### Code Examples
|
|
45
|
+
|
|
46
|
+
- [ ] **Always includes imports** - Full import statements
|
|
47
|
+
- [ ] **Always includes context** - Not just snippets
|
|
48
|
+
- [ ] **Always explains purpose** - What it does and why
|
|
49
|
+
- [ ] **Always handles errors** - Shows error handling
|
|
50
|
+
- [ ] **Uses realistic data** - Meaningful variable names
|
|
51
|
+
- [ ] **Tested and working** - Code actually runs
|
|
52
|
+
- [ ] **Properly formatted** - Correct indentation and syntax
|
|
53
|
+
|
|
54
|
+
### Accuracy
|
|
55
|
+
|
|
56
|
+
- [ ] Matches current implementation
|
|
57
|
+
- [ ] Uses correct API signatures
|
|
58
|
+
- [ ] References correct version numbers
|
|
59
|
+
- [ ] Links to existing files only
|
|
60
|
+
- [ ] No broken references
|
|
61
|
+
- [ ] Deprecated content is marked
|
|
62
|
+
|
|
63
|
+
## ✅ Technical Checklist
|
|
64
|
+
|
|
65
|
+
### Links and References
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Check for broken links
|
|
69
|
+
grep -r "\[.*\](\./.*\.md)" your-file.md | while read line; do
|
|
70
|
+
# Extract the link
|
|
71
|
+
# Verify file exists
|
|
72
|
+
# Report broken links
|
|
73
|
+
done
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- [ ] All internal links work (relative paths)
|
|
77
|
+
- [ ] All external links accessible
|
|
78
|
+
- [ ] No orphan references (linking to non-existent files)
|
|
79
|
+
- [ ] Link text is descriptive ("Installation Guide" not "here")
|
|
80
|
+
- [ ] Uses correct markdown link syntax
|
|
81
|
+
|
|
82
|
+
### Terminology
|
|
83
|
+
|
|
84
|
+
- [ ] Uses "organisation" (British spelling) consistently
|
|
85
|
+
- [ ] Uses consistent RBAC terminology
|
|
86
|
+
- [ ] Consistent capitalization (e.g., "PACE Core" not "pace-core")
|
|
87
|
+
- [ ] Consistent naming for components/hooks
|
|
88
|
+
- [ ] Abbreviations defined on first use
|
|
89
|
+
|
|
90
|
+
### Code Formatting
|
|
91
|
+
|
|
92
|
+
- [ ] Proper syntax highlighting (```tsx, ```bash, etc.)
|
|
93
|
+
- [ ] No trailing whitespace
|
|
94
|
+
- [ ] Consistent indentation (2 spaces for TS/TSX)
|
|
95
|
+
- [ ] Code is runnable/tested
|
|
96
|
+
- [ ] Uses appropriate type annotations
|
|
97
|
+
|
|
98
|
+
## ✅ Specific Section Checklists
|
|
99
|
+
|
|
100
|
+
### Installation/Setup Documentation
|
|
101
|
+
|
|
102
|
+
- [ ] Lists all requirements upfront
|
|
103
|
+
- [ ] Provides command examples
|
|
104
|
+
- [ ] Shows expected output
|
|
105
|
+
- [ ] Includes troubleshooting section
|
|
106
|
+
- [ ] Links to related configuration
|
|
107
|
+
|
|
108
|
+
### API Documentation
|
|
109
|
+
|
|
110
|
+
- [ ] Complete parameter descriptions
|
|
111
|
+
- [ ] Return type specifications
|
|
112
|
+
- [ ] Usage examples
|
|
113
|
+
- [ ] Error handling examples
|
|
114
|
+
- [ ] Related hooks/providers listed
|
|
115
|
+
|
|
116
|
+
### Troubleshooting
|
|
117
|
+
|
|
118
|
+
- [ ] Clear problem statement
|
|
119
|
+
- [ ] Specific error messages
|
|
120
|
+
- [ ] Step-by-step solution
|
|
121
|
+
- [ ] Expected vs actual behavior
|
|
122
|
+
- [ ] Links to related issues
|
|
123
|
+
|
|
124
|
+
### Breaking Changes
|
|
125
|
+
|
|
126
|
+
- [ ] **Required** - Must update breaking-changes.md
|
|
127
|
+
- [ ] Clear before/after comparison
|
|
128
|
+
- [ ] Migration steps provided
|
|
129
|
+
- [ ] Impact assessment included
|
|
130
|
+
- [ ] Version information included
|
|
131
|
+
|
|
132
|
+
## ✅ Post-Writing Verification
|
|
133
|
+
|
|
134
|
+
### Automated Checks
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Run these commands before committing
|
|
138
|
+
|
|
139
|
+
# 1. Check for broken links
|
|
140
|
+
npx markdown-link-check docs/**/*.md
|
|
141
|
+
|
|
142
|
+
# 2. Lint markdown
|
|
143
|
+
npx markdownlint docs/**/*.md
|
|
144
|
+
|
|
145
|
+
# 3. Spell check
|
|
146
|
+
npx cspell "docs/**/*.md"
|
|
147
|
+
|
|
148
|
+
# 4. Verify all links resolve
|
|
149
|
+
node scripts/verify-docs.js
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
- [ ] No broken links (verify after changes)
|
|
153
|
+
- [ ] All code examples formatted correctly
|
|
154
|
+
- [ ] No typos or spelling errors
|
|
155
|
+
- [ ] Proper grammar throughout
|
|
156
|
+
- [ ] Consistent formatting
|
|
157
|
+
|
|
158
|
+
### Manual Review
|
|
159
|
+
|
|
160
|
+
- [ ] Read through entire document
|
|
161
|
+
- [ ] Verify all examples still work
|
|
162
|
+
- [ ] Check that instructions are complete
|
|
163
|
+
- [ ] Ensure navigation makes sense
|
|
164
|
+
- [ ] Verify all referenced files exist
|
|
165
|
+
- [ ] Add to appropriate index/nav
|
|
166
|
+
|
|
167
|
+
## ✅ File-Specific Requirements
|
|
168
|
+
|
|
169
|
+
### README Files
|
|
170
|
+
|
|
171
|
+
- [ ] Single H1 heading (title)
|
|
172
|
+
- [ ] Navigation links at top
|
|
173
|
+
- [ ] Quick start section
|
|
174
|
+
- [ ] Table of contents for long files
|
|
175
|
+
- [ ] Links to related documentation
|
|
176
|
+
- [ ] Version and date information
|
|
177
|
+
|
|
178
|
+
### API Reference
|
|
179
|
+
|
|
180
|
+
- [ ] Component/hook name in H1
|
|
181
|
+
- [ ] Import statement example
|
|
182
|
+
- [ ] Props/parameters table
|
|
183
|
+
- [ ] Usage examples
|
|
184
|
+
- [ ] Related components listed
|
|
185
|
+
- [ ] Type definitions included
|
|
186
|
+
|
|
187
|
+
### Implementation Guides
|
|
188
|
+
|
|
189
|
+
- [ ] Step-by-step instructions
|
|
190
|
+
- [ ] Code examples for each step
|
|
191
|
+
- [ ] Common pitfalls noted
|
|
192
|
+
- [ ] Best practices included
|
|
193
|
+
- [ ] Related concepts linked
|
|
194
|
+
- [ ] Troubleshooting section
|
|
195
|
+
|
|
196
|
+
### Core Concepts
|
|
197
|
+
|
|
198
|
+
- [ ] Clear explanation of concept
|
|
199
|
+
- [ ] Visual aids (diagrams, if applicable)
|
|
200
|
+
- [ ] Real-world use cases
|
|
201
|
+
- [ ] How it fits with other concepts
|
|
202
|
+
- [ ] Related implementation guides
|
|
203
|
+
|
|
204
|
+
## ✅ Documentation Maintenance
|
|
205
|
+
|
|
206
|
+
### Weekly
|
|
207
|
+
|
|
208
|
+
- [ ] Check for new GitHub issues that need docs
|
|
209
|
+
- [ ] Review recent PRs for doc updates needed
|
|
210
|
+
- [ ] Update outdated information
|
|
211
|
+
|
|
212
|
+
### Monthly
|
|
213
|
+
|
|
214
|
+
- [ ] Audit all internal links
|
|
215
|
+
- [ ] Review API reference accuracy
|
|
216
|
+
- [ ] Update examples to match latest patterns
|
|
217
|
+
- [ ] Check version numbers
|
|
218
|
+
|
|
219
|
+
### Quarterly
|
|
220
|
+
|
|
221
|
+
- [ ] Full documentation review
|
|
222
|
+
- [ ] Update style guide based on lessons learned
|
|
223
|
+
- [ ] Review and improve navigation
|
|
224
|
+
- [ ] Assess documentation gaps
|
|
225
|
+
|
|
226
|
+
## ❌ Common Mistakes to Avoid
|
|
227
|
+
|
|
228
|
+
### Don't Do This
|
|
229
|
+
|
|
230
|
+
```markdown
|
|
231
|
+
<!-- ❌ BAD -->
|
|
232
|
+
You can read the docs [here](./docs.md).
|
|
233
|
+
The component accepts props and returns data.
|
|
234
|
+
Just use this: <Button /> and it works.
|
|
235
|
+
|
|
236
|
+
<!-- ✅ GOOD -->
|
|
237
|
+
See the [Installation Guide](./installation-guide.md) for setup instructions.
|
|
238
|
+
The Button component accepts onClick (function) and returns a button element.
|
|
239
|
+
Use the Button component like this:
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
- ❌ Don't use "here" or "this" for link text
|
|
243
|
+
- ❌ Don't assume context - provide it
|
|
244
|
+
- ❌ Don't skip imports in code examples
|
|
245
|
+
- ❌ Don't link to files that don't exist
|
|
246
|
+
- ❌ Don't use vague examples (foo, bar, baz)
|
|
247
|
+
- ❌ Don't forget error handling in examples
|
|
248
|
+
- ❌ Don't write in passive voice when possible
|
|
249
|
+
- ❌ Don't omit the "why" behind recommendations
|
|
250
|
+
|
|
251
|
+
## ✅ Final Checklist Before Publishing
|
|
252
|
+
|
|
253
|
+
- [ ] Content is accurate and up-to-date
|
|
254
|
+
- [ ] All code examples tested
|
|
255
|
+
- [ ] No broken links or references
|
|
256
|
+
- [ ] Consistent with style guide
|
|
257
|
+
- [ ] Added to appropriate navigation
|
|
258
|
+
- [ ] Version metadata included
|
|
259
|
+
- [ ] Reviewed by another contributor (if possible)
|
|
260
|
+
- [ ] Related documentation updated
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## 📚 Resources
|
|
265
|
+
|
|
266
|
+
- [Style Guide](./style-guide.md) - Complete style and formatting guide
|
|
267
|
+
- [Documentation Index](./documentation-index.md) - All documentation organized by topic
|
|
268
|
+
- [Review Report](../DOCUMENTATION_REVIEW_REPORT.md) - Latest documentation review findings
|
|
269
|
+
- [Breaking Changes](./breaking-changes.md) - Track all breaking changes
|
|
270
|
+
- [Quick Reference](./quick-reference.md) - Common tasks at a glance
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
**Need Help?**
|
|
275
|
+
|
|
276
|
+
- Questions about documentation? Check the [Style Guide](./style-guide.md)
|
|
277
|
+
- Found a bug in documentation? File an issue or submit a PR
|
|
278
|
+
- Want to contribute? Follow this checklist and the style guide
|
|
279
|
+
|
|
280
|
+
**Last Updated:** 2025-01-XX | **Version:** v0.5.65+
|
|
281
|
+
|
package/docs/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @jmruthers/pace-core
|
|
2
2
|
|
|
3
|
-
> **⚡ Get Started in 5 Minutes** | [📚 Complete Index](./
|
|
3
|
+
> **⚡ Get Started in 5 Minutes** | [📚 Complete Index](./documentation-index.md) | [Quick Reference](./quick-reference.md) | [Examples](./getting-started/examples/)
|
|
4
4
|
|
|
5
5
|
A comprehensive React component library with built-in authentication, RBAC, and event management.
|
|
6
6
|
|
|
7
|
-
> **📚 New to PACE Core?** Start with the [Complete Documentation Index](./
|
|
7
|
+
> **📚 New to PACE Core?** Start with the [Complete Documentation Index](./documentation-index.md) for a comprehensive overview of all available documentation.
|
|
8
|
+
|
|
9
|
+
> **🚨 Breaking Changes**: Check [breaking-changes.md](./breaking-changes.md) before upgrading to new versions.
|
|
8
10
|
|
|
9
11
|
## ⚡ Quick Start
|
|
10
12
|
|
|
@@ -28,19 +30,29 @@ function App() {
|
|
|
28
30
|
```
|
|
29
31
|
|
|
30
32
|
### 🎯 **Start Here**
|
|
31
|
-
- **[
|
|
32
|
-
- **[Installation](./getting-started/installation.md)** - 5 min setup
|
|
33
|
+
- **[Installation Guide](./getting-started/installation-guide.md)** - Complete setup (10 min)
|
|
33
34
|
- **[Quick Start](./getting-started/quick-start.md)** - Build your first app
|
|
35
|
+
- **[Quick Reference](./quick-reference.md)** - Single-page reference for common tasks
|
|
36
|
+
- **[FAQ](./faq.md)** - Common questions and answers
|
|
34
37
|
- **[Examples](./getting-started/examples/)** - Complete working examples
|
|
38
|
+
- **[Breaking Changes](./breaking-changes.md)** - Check before upgrading
|
|
39
|
+
|
|
40
|
+
## 🚨 **BREAKING CHANGES - Read First**
|
|
41
|
+
|
|
42
|
+
**Current Version**: v0.5.65+
|
|
43
|
+
**Important**: Mandatory inactivity timeouts in `UnifiedAuthProvider`
|
|
35
44
|
|
|
36
|
-
|
|
45
|
+
- **[Breaking Changes Guide](./breaking-changes.md)** - **CRITICAL** All breaking changes listed
|
|
46
|
+
- **[Installation Guide](./getting-started/installation-guide.md)** - Single source of truth for setup
|
|
47
|
+
- **[Unified Migration Guide](./migration/MIGRATION_GUIDE.md)** - Complete migration reference
|
|
48
|
+
- **[Service Architecture](./migration/service-architecture.md)** - Architecture changes and migration
|
|
37
49
|
|
|
38
|
-
|
|
50
|
+
## 📋 Recent Updates
|
|
39
51
|
|
|
40
|
-
|
|
41
|
-
- **[
|
|
42
|
-
- **[
|
|
43
|
-
- **[Tailwind Content Scanning](./troubleshooting/tailwind-content-scanning.md)**
|
|
52
|
+
**v0.4.17+**: Tailwind v4 source path fixes
|
|
53
|
+
- **[Source Path Fix Guide](./migration/v0.4.17-source-path-fix.md)**
|
|
54
|
+
- **[CSS-First Migration Guide](./migration/v0.4.16-css-first-approach.md)**
|
|
55
|
+
- **[Tailwind Content Scanning](./troubleshooting/tailwind-content-scanning.md)**
|
|
44
56
|
|
|
45
57
|
## 📚 Documentation
|
|
46
58
|
|