@jmruthers/pace-core 0.5.24 → 0.5.25
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-KCFFCOJU.js → DataTable-6J4HB5O3.js} +2 -2
- package/dist/{chunk-F6LQTYP2.js → chunk-7GIFTTH3.js} +20 -5
- package/dist/chunk-7GIFTTH3.js.map +1 -0
- package/dist/{chunk-QLPFUQGG.js → chunk-A3NJHR2H.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 +19 -4
- package/dist/chunk-F6LQTYP2.js.map +0 -1
- /package/dist/{DataTable-KCFFCOJU.js.map → DataTable-6J4HB5O3.js.map} +0 -0
- /package/dist/{chunk-QLPFUQGG.js.map → chunk-A3NJHR2H.js.map} +0 -0
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useDataTableContext,
|
|
33
33
|
usePluginRegistry,
|
|
34
34
|
useStateManager
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7GIFTTH3.js";
|
|
36
36
|
import "./chunk-YA77BOZM.js";
|
|
37
37
|
import "./chunk-GWSBHC4J.js";
|
|
38
38
|
import "./chunk-7BNPOCLL.js";
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
usePluginRegistry,
|
|
97
97
|
useStateManager
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=DataTable-
|
|
99
|
+
//# sourceMappingURL=DataTable-6J4HB5O3.js.map
|
|
@@ -3703,7 +3703,12 @@ function DataTableInternal({
|
|
|
3703
3703
|
effectivePageId,
|
|
3704
3704
|
pageId,
|
|
3705
3705
|
pageName,
|
|
3706
|
-
canRead:
|
|
3706
|
+
canRead: {
|
|
3707
|
+
can: permissions.canRead.can,
|
|
3708
|
+
isLoading: permissions.canRead.isLoading,
|
|
3709
|
+
error: permissions.canRead.error,
|
|
3710
|
+
refetch: typeof permissions.canRead.refetch
|
|
3711
|
+
},
|
|
3707
3712
|
userId: user?.id,
|
|
3708
3713
|
scope: {
|
|
3709
3714
|
organisationId: user?.user_metadata?.organisationId || user?.app_metadata?.organisationId,
|
|
@@ -3715,14 +3720,24 @@ function DataTableInternal({
|
|
|
3715
3720
|
if (!permissions.canRead.can) {
|
|
3716
3721
|
console.error("[DataTable] ACCESS DENIED - DataTable RBAC failing:", {
|
|
3717
3722
|
effectivePageId,
|
|
3718
|
-
canRead:
|
|
3719
|
-
|
|
3723
|
+
canRead: {
|
|
3724
|
+
can: permissions.canRead.can,
|
|
3725
|
+
isLoading: permissions.canRead.isLoading,
|
|
3726
|
+
error: permissions.canRead.error,
|
|
3727
|
+
refetch: typeof permissions.canRead.refetch
|
|
3728
|
+
},
|
|
3729
|
+
permission: `read:page.${effectivePageId}`,
|
|
3730
|
+
fullCanReadObject: permissions.canRead
|
|
3720
3731
|
});
|
|
3721
3732
|
return /* @__PURE__ */ jsx20(AccessDeniedPage, { resource: effectivePageId || "unknown-page", operation: "read" });
|
|
3722
3733
|
}
|
|
3723
3734
|
console.log("[DataTable] ACCESS GRANTED - DataTable RBAC working:", {
|
|
3724
3735
|
effectivePageId,
|
|
3725
|
-
canRead:
|
|
3736
|
+
canRead: {
|
|
3737
|
+
can: permissions.canRead.can,
|
|
3738
|
+
isLoading: permissions.canRead.isLoading,
|
|
3739
|
+
error: permissions.canRead.error
|
|
3740
|
+
}
|
|
3726
3741
|
});
|
|
3727
3742
|
if (isLoading) {
|
|
3728
3743
|
return /* @__PURE__ */ jsx20(LoadingComponent, {});
|
|
@@ -5487,4 +5502,4 @@ export {
|
|
|
5487
5502
|
GroupHeader,
|
|
5488
5503
|
EditableRow
|
|
5489
5504
|
};
|
|
5490
|
-
//# sourceMappingURL=chunk-
|
|
5505
|
+
//# sourceMappingURL=chunk-7GIFTTH3.js.map
|