@jmruthers/pace-core 0.5.25 → 0.5.26
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-6J4HB5O3.js → DataTable-N4TZRVS5.js} +2 -2
- package/dist/{chunk-7GIFTTH3.js → chunk-UIWMLDDB.js} +23 -32
- package/dist/chunk-UIWMLDDB.js.map +1 -0
- package/dist/{chunk-A3NJHR2H.js → chunk-VFOYA7MG.js} +2 -2
- package/dist/components.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils.js +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/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 +1 -1
- 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/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 +2 -2
- package/package.json +1 -1
- package/src/components/DataTable/components/DataTableCore.tsx +24 -31
- package/dist/chunk-7GIFTTH3.js.map +0 -1
- /package/dist/{DataTable-6J4HB5O3.js.map → DataTable-N4TZRVS5.js.map} +0 -0
- /package/dist/{chunk-A3NJHR2H.js.map → chunk-VFOYA7MG.js.map} +0 -0
package/docs/api/modules.md
CHANGED
package/package.json
CHANGED
|
@@ -799,48 +799,41 @@ function DataTableInternal<TData extends DataRecord>({
|
|
|
799
799
|
};
|
|
800
800
|
|
|
801
801
|
// MANDATORY: No data access without read permission
|
|
802
|
-
console.log('[DataTable] RBAC DEBUG:', {
|
|
802
|
+
console.log('[DataTable] RBAC DEBUG - Basic Info:', {
|
|
803
803
|
effectivePageId,
|
|
804
804
|
pageId,
|
|
805
805
|
pageName,
|
|
806
|
-
canRead: {
|
|
807
|
-
can: permissions.canRead.can,
|
|
808
|
-
isLoading: permissions.canRead.isLoading,
|
|
809
|
-
error: permissions.canRead.error,
|
|
810
|
-
refetch: typeof permissions.canRead.refetch
|
|
811
|
-
},
|
|
812
806
|
userId: user?.id,
|
|
813
|
-
scope: {
|
|
814
|
-
organisationId: user?.user_metadata?.organisationId || user?.app_metadata?.organisationId,
|
|
815
|
-
eventId: user?.user_metadata?.eventId || user?.app_metadata?.eventId,
|
|
816
|
-
appId: user?.user_metadata?.appId || user?.app_metadata?.appId,
|
|
817
|
-
},
|
|
818
807
|
permission: `read:page.${effectivePageId}`
|
|
819
808
|
});
|
|
820
809
|
|
|
810
|
+
console.log('[DataTable] RBAC DEBUG - CanRead Details:');
|
|
811
|
+
console.log(' can:', permissions.canRead.can);
|
|
812
|
+
console.log(' isLoading:', permissions.canRead.isLoading);
|
|
813
|
+
console.log(' error:', permissions.canRead.error);
|
|
814
|
+
console.log(' refetch type:', typeof permissions.canRead.refetch);
|
|
815
|
+
|
|
816
|
+
console.log('[DataTable] RBAC DEBUG - Scope:');
|
|
817
|
+
console.log(' organisationId:', user?.user_metadata?.organisationId || user?.app_metadata?.organisationId);
|
|
818
|
+
console.log(' eventId:', user?.user_metadata?.eventId || user?.app_metadata?.eventId);
|
|
819
|
+
console.log(' appId:', user?.user_metadata?.appId || user?.app_metadata?.appId);
|
|
820
|
+
|
|
821
821
|
if (!permissions.canRead.can) {
|
|
822
|
-
console.error('[DataTable] ACCESS DENIED - DataTable RBAC failing
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
permission: `read:page.${effectivePageId}`,
|
|
831
|
-
fullCanReadObject: permissions.canRead
|
|
832
|
-
});
|
|
822
|
+
console.error('[DataTable] ACCESS DENIED - DataTable RBAC failing!');
|
|
823
|
+
console.error(' effectivePageId:', effectivePageId);
|
|
824
|
+
console.error(' canRead.can:', permissions.canRead.can);
|
|
825
|
+
console.error(' canRead.isLoading:', permissions.canRead.isLoading);
|
|
826
|
+
console.error(' canRead.error:', permissions.canRead.error);
|
|
827
|
+
console.error(' permission:', `read:page.${effectivePageId}`);
|
|
828
|
+
console.error(' Full canRead object:', permissions.canRead);
|
|
833
829
|
return <AccessDeniedPage resource={effectivePageId || 'unknown-page'} operation="read" />;
|
|
834
830
|
}
|
|
835
831
|
|
|
836
|
-
console.log('[DataTable] ACCESS GRANTED - DataTable RBAC working
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
error: permissions.canRead.error
|
|
842
|
-
}
|
|
843
|
-
});
|
|
832
|
+
console.log('[DataTable] ACCESS GRANTED - DataTable RBAC working!');
|
|
833
|
+
console.log(' effectivePageId:', effectivePageId);
|
|
834
|
+
console.log(' canRead.can:', permissions.canRead.can);
|
|
835
|
+
console.log(' canRead.isLoading:', permissions.canRead.isLoading);
|
|
836
|
+
console.log(' canRead.error:', permissions.canRead.error);
|
|
844
837
|
|
|
845
838
|
// ============================================================================
|
|
846
839
|
// RENDER
|