@jmruthers/pace-core 0.5.13 → 0.5.15
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-NNCMQSDG.js → DataTable-RICY7YDA.js} +3 -3
- package/dist/{chunk-AMOT5ZSZ.js → chunk-F6IHN3DC.js} +57 -17
- package/dist/chunk-F6IHN3DC.js.map +1 -0
- package/dist/{chunk-BUWLPWDA.js → chunk-JPXJGMOO.js} +2 -2
- package/dist/{chunk-PILT65PA.js → chunk-JZCNOXSG.js} +2 -2
- package/dist/{chunk-5E3YF7HA.js → chunk-MQGGT7FF.js} +35 -31
- package/dist/{chunk-5E3YF7HA.js.map → chunk-MQGGT7FF.js.map} +1 -1
- package/dist/components.js +3 -3
- package/dist/index.js +4 -4
- package/dist/rbac/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 +8 -8
- package/package.json +1 -1
- package/src/rbac/components/PagePermissionGuard.tsx +21 -13
- package/src/rbac/components/__tests__/PagePermissionGuard.race-condition.test.tsx +478 -0
- package/src/rbac/components/__tests__/PagePermissionGuard.verification.test.tsx +157 -0
- package/src/rbac/hooks/useCan.test.ts +1 -1
- package/src/rbac/hooks/usePermissions.test.ts +5 -8
- package/src/rbac/hooks/usePermissions.ts +74 -22
- package/dist/chunk-AMOT5ZSZ.js.map +0 -1
- /package/dist/{DataTable-NNCMQSDG.js.map → DataTable-RICY7YDA.js.map} +0 -0
- /package/dist/{chunk-BUWLPWDA.js.map → chunk-JPXJGMOO.js.map} +0 -0
- /package/dist/{chunk-PILT65PA.js.map → chunk-JZCNOXSG.js.map} +0 -0
package/dist/components.js
CHANGED
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
usePublicPageContext as usePublicPageContext2,
|
|
50
50
|
useStorage,
|
|
51
51
|
useToast
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-JZCNOXSG.js";
|
|
53
53
|
import {
|
|
54
54
|
Alert,
|
|
55
55
|
AlertDescription,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
SelectSeparator,
|
|
73
73
|
SelectTrigger,
|
|
74
74
|
SelectValue
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-JPXJGMOO.js";
|
|
76
76
|
import {
|
|
77
77
|
useRBAC
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-F6IHN3DC.js";
|
|
79
79
|
import "./chunk-GWSBHC4J.js";
|
|
80
80
|
import "./chunk-7BNPOCLL.js";
|
|
81
81
|
import "./chunk-DV2Z3RBQ.js";
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
withAccessLevelGuard,
|
|
32
32
|
withPermissionGuard,
|
|
33
33
|
withRoleGuard
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MQGGT7FF.js";
|
|
35
35
|
import {
|
|
36
36
|
APP_PATH_MAPPING,
|
|
37
37
|
Avatar,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
useStorage,
|
|
101
101
|
useToast,
|
|
102
102
|
validateFileSize
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-JZCNOXSG.js";
|
|
104
104
|
import {
|
|
105
105
|
Alert,
|
|
106
106
|
AlertDescription,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
SelectSeparator,
|
|
124
124
|
SelectTrigger,
|
|
125
125
|
SelectValue
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-JPXJGMOO.js";
|
|
127
127
|
import {
|
|
128
128
|
useAccessLevel,
|
|
129
129
|
useCachedPermissions,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
useMultiplePermissions,
|
|
134
134
|
usePermissions,
|
|
135
135
|
useRBAC as useRBAC2
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-F6IHN3DC.js";
|
|
137
137
|
import {
|
|
138
138
|
CACHE_PATTERNS,
|
|
139
139
|
RBACCache,
|
package/dist/rbac/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
withAccessLevelGuard,
|
|
32
32
|
withPermissionGuard,
|
|
33
33
|
withRoleGuard
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-MQGGT7FF.js";
|
|
35
35
|
import {
|
|
36
36
|
useAccessLevel,
|
|
37
37
|
useCachedPermissions,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
useMultiplePermissions,
|
|
42
42
|
usePermissions,
|
|
43
43
|
useRBAC as useRBAC2
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-F6IHN3DC.js";
|
|
45
45
|
import {
|
|
46
46
|
CACHE_PATTERNS,
|
|
47
47
|
RBACCache,
|
package/dist/utils.js
CHANGED
|
@@ -545,7 +545,7 @@ function createLazyComponent(importFn, componentName, options = {}) {
|
|
|
545
545
|
return WrappedComponent;
|
|
546
546
|
}
|
|
547
547
|
var LazyDataTable = createLazyComponent(
|
|
548
|
-
() => import("./DataTable-
|
|
548
|
+
() => import("./DataTable-RICY7YDA.js").then((module) => ({ default: module.DataTable })),
|
|
549
549
|
"DataTable"
|
|
550
550
|
);
|
|
551
551
|
|