@jmruthers/pace-core 0.5.112 → 0.5.113
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-3D3BUZDV.js → DataTable-YNEB5WDK.js} +4 -4
- package/dist/{api-QPMBZZUZ.js → api-PKU4PUBO.js} +2 -2
- package/dist/{chunk-MNSGWRPB.js → chunk-HKWQN44G.js} +10 -10
- package/dist/{chunk-WMPZY26G.js → chunk-KISJX3XZ.js} +2 -2
- package/dist/{chunk-C5RN4TE5.js → chunk-KTHLNIMA.js} +3 -3
- package/dist/{chunk-TAJRS6YB.js → chunk-QKIVSZ2O.js} +4 -3
- package/dist/{chunk-TAJRS6YB.js.map → chunk-QKIVSZ2O.js.map} +1 -1
- package/dist/{chunk-EKVVTPIF.js → chunk-YUKG6PXE.js} +7 -7
- package/dist/{chunk-I7JC7PTJ.js → chunk-ZPXWJA4H.js} +2 -2
- package/dist/components.js +4 -4
- package/dist/hooks.js +1 -1
- package/dist/index.js +6 -6
- package/dist/rbac/index.js +3 -3
- package/dist/utils.js +1 -1
- 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 +3 -3
- 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 +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/DataRecord.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/FileDisplayProps.md +1 -1
- 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/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/ProtectedRouteProps.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/RBACLogger.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/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeReturn.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 +3 -3
- package/package.json +1 -1
- package/src/rbac/engine.ts +4 -2
- /package/dist/{DataTable-3D3BUZDV.js.map → DataTable-YNEB5WDK.js.map} +0 -0
- /package/dist/{api-QPMBZZUZ.js.map → api-PKU4PUBO.js.map} +0 -0
- /package/dist/{chunk-MNSGWRPB.js.map → chunk-HKWQN44G.js.map} +0 -0
- /package/dist/{chunk-WMPZY26G.js.map → chunk-KISJX3XZ.js.map} +0 -0
- /package/dist/{chunk-C5RN4TE5.js.map → chunk-KTHLNIMA.js.map} +0 -0
- /package/dist/{chunk-EKVVTPIF.js.map → chunk-YUKG6PXE.js.map} +0 -0
- /package/dist/{chunk-I7JC7PTJ.js.map → chunk-ZPXWJA4H.js.map} +0 -0
package/docs/api/modules.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.113](README.md) / Exports
|
|
2
2
|
|
|
3
|
-
# @jmruthers/pace-core - v0.5.
|
|
3
|
+
# @jmruthers/pace-core - v0.5.113
|
|
4
4
|
|
|
5
5
|
**`File`**
|
|
6
6
|
|
|
@@ -5743,7 +5743,7 @@ RBACEngine instance
|
|
|
5743
5743
|
|
|
5744
5744
|
#### Defined in
|
|
5745
5745
|
|
|
5746
|
-
[packages/core/src/rbac/engine.ts:
|
|
5746
|
+
[packages/core/src/rbac/engine.ts:613](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L613)
|
|
5747
5747
|
|
|
5748
5748
|
___
|
|
5749
5749
|
|
package/package.json
CHANGED
package/src/rbac/engine.ts
CHANGED
|
@@ -427,18 +427,20 @@ export class RBACEngine {
|
|
|
427
427
|
|
|
428
428
|
for (const page of pages) {
|
|
429
429
|
// Check each CRUD operation
|
|
430
|
+
// Permission format: {operation}:page.{pageName} (e.g., read:page.meals)
|
|
430
431
|
for (const operation of ['read', 'create', 'update', 'delete'] as Operation[]) {
|
|
432
|
+
const permissionString = `${operation}:page.${page.page_name}`;
|
|
431
433
|
const hasPermission = await this.isPermitted(
|
|
432
434
|
{
|
|
433
435
|
userId,
|
|
434
436
|
scope,
|
|
435
|
-
permission:
|
|
437
|
+
permission: permissionString as Permission,
|
|
436
438
|
pageId: page.id,
|
|
437
439
|
},
|
|
438
440
|
securityContext
|
|
439
441
|
);
|
|
440
442
|
|
|
441
|
-
const permissionKey =
|
|
443
|
+
const permissionKey = permissionString as Permission;
|
|
442
444
|
permissionMap[permissionKey] = hasPermission;
|
|
443
445
|
}
|
|
444
446
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|