@jmruthers/pace-core 0.5.57 → 0.5.58
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-GABLO6H5.js → DataTable-PEAEZ7DL.js} +5 -5
- package/dist/{chunk-77TYN5B4.js → chunk-73T26Z27.js} +3 -3
- package/dist/{chunk-CACNKQ3B.js → chunk-E4FPK232.js} +3 -3
- package/dist/{chunk-CACNKQ3B.js.map → chunk-E4FPK232.js.map} +1 -1
- package/dist/{chunk-JO3Y2BOW.js → chunk-HLMLK5RD.js} +5 -5
- package/dist/{chunk-DH7VDOQQ.js → chunk-HSK6AJKC.js} +3 -3
- package/dist/{chunk-D3X2CGAG.js → chunk-ITPVFKDH.js} +2 -2
- package/dist/{chunk-VY3DOGPU.js → chunk-N53OLPMT.js} +4 -4
- package/dist/{chunk-S3MPG3BA.js → chunk-NT3NC4Y4.js} +5 -5
- package/dist/{chunk-S3MPG3BA.js.map → chunk-NT3NC4Y4.js.map} +1 -1
- package/dist/{chunk-E3ITLZBM.js → chunk-RYRGIDBD.js} +3 -3
- package/dist/{chunk-TCX7STCC.js → chunk-W7PPXKTZ.js} +2 -2
- package/dist/{chunk-YI25YXER.js → chunk-ZIC232OO.js} +28 -13
- package/dist/chunk-ZIC232OO.js.map +1 -0
- package/dist/components.js +7 -7
- package/dist/hooks.js +4 -4
- package/dist/index.js +10 -10
- package/dist/providers.js +3 -3
- package/dist/rbac/index.js +5 -5
- package/dist/types.d.ts +7 -1
- 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/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 +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/docs/getting-started/quick-start.md +21 -3
- package/docs/rbac/getting-started.md +43 -0
- package/docs/troubleshooting/common-issues.md +116 -1516
- package/package.json +1 -1
- package/src/__tests__/TESTING_GUIDELINES.md +1 -1
- package/src/hooks/__tests__/useRBAC.unit.test.ts +8 -8
- package/src/providers/EventProvider.tsx +31 -17
- package/src/providers/OrganisationProvider.tsx +2 -2
- package/src/rbac/hooks/useRBAC.ts +2 -2
- package/src/types/supabase.ts +17 -0
- package/dist/chunk-YI25YXER.js.map +0 -1
- /package/dist/{DataTable-GABLO6H5.js.map → DataTable-PEAEZ7DL.js.map} +0 -0
- /package/dist/{chunk-77TYN5B4.js.map → chunk-73T26Z27.js.map} +0 -0
- /package/dist/{chunk-JO3Y2BOW.js.map → chunk-HLMLK5RD.js.map} +0 -0
- /package/dist/{chunk-DH7VDOQQ.js.map → chunk-HSK6AJKC.js.map} +0 -0
- /package/dist/{chunk-D3X2CGAG.js.map → chunk-ITPVFKDH.js.map} +0 -0
- /package/dist/{chunk-VY3DOGPU.js.map → chunk-N53OLPMT.js.map} +0 -0
- /package/dist/{chunk-E3ITLZBM.js.map → chunk-RYRGIDBD.js.map} +0 -0
- /package/dist/{chunk-TCX7STCC.js.map → chunk-W7PPXKTZ.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
withAccessLevelGuard,
|
|
31
31
|
withPermissionGuard,
|
|
32
32
|
withRoleGuard
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-N53OLPMT.js";
|
|
34
34
|
import "./chunk-TYHR5X4W.js";
|
|
35
35
|
import {
|
|
36
36
|
APP_PATH_MAPPING,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
useStorage,
|
|
101
101
|
useToast,
|
|
102
102
|
validateFileSize
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-HLMLK5RD.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-RYRGIDBD.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-NT3NC4Y4.js";
|
|
137
137
|
import {
|
|
138
138
|
CACHE_PATTERNS,
|
|
139
139
|
RBACCache,
|
|
@@ -161,12 +161,12 @@ import {
|
|
|
161
161
|
getGlobalAuditManager,
|
|
162
162
|
setGlobalAuditManager
|
|
163
163
|
} from "./chunk-B2WTCLCV.js";
|
|
164
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-73T26Z27.js";
|
|
165
165
|
import {
|
|
166
166
|
EventProvider,
|
|
167
167
|
init_EventProvider,
|
|
168
168
|
useEvents
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-ZIC232OO.js";
|
|
170
170
|
import {
|
|
171
171
|
clearPublicEventCache,
|
|
172
172
|
extractEventCodeFromPath,
|
|
@@ -177,8 +177,8 @@ import {
|
|
|
177
177
|
usePublicEvent,
|
|
178
178
|
usePublicEventCode,
|
|
179
179
|
usePublicRouteParams
|
|
180
|
-
} from "./chunk-
|
|
181
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-HSK6AJKC.js";
|
|
181
|
+
import "./chunk-W7PPXKTZ.js";
|
|
182
182
|
import {
|
|
183
183
|
DefaultPublicErrorFallback,
|
|
184
184
|
PublicErrorBoundary,
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
useIsPublicPage,
|
|
191
191
|
usePublicEventLogo,
|
|
192
192
|
usePublicPageContext
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-ITPVFKDH.js";
|
|
194
194
|
import "./chunk-YNUBMSMV.js";
|
|
195
195
|
import {
|
|
196
196
|
Button,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
useOrganisations,
|
|
226
226
|
useRBAC,
|
|
227
227
|
useUnifiedAuth
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-E4FPK232.js";
|
|
229
229
|
import "./chunk-STT7INZR.js";
|
|
230
230
|
import {
|
|
231
231
|
getAppConfig,
|
package/dist/providers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-73T26Z27.js";
|
|
2
2
|
import {
|
|
3
3
|
EventProvider,
|
|
4
4
|
useEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZIC232OO.js";
|
|
6
6
|
import {
|
|
7
7
|
AuthProvider,
|
|
8
8
|
InactivityProvider,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useInactivity,
|
|
13
13
|
useOrganisations,
|
|
14
14
|
useUnifiedAuth
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E4FPK232.js";
|
|
16
16
|
import "./chunk-STT7INZR.js";
|
|
17
17
|
import "./chunk-D7ARGIA3.js";
|
|
18
18
|
import "./chunk-PLDDJCW6.js";
|
package/dist/rbac/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
withAccessLevelGuard,
|
|
31
31
|
withPermissionGuard,
|
|
32
32
|
withRoleGuard
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-N53OLPMT.js";
|
|
34
34
|
import "../chunk-TYHR5X4W.js";
|
|
35
35
|
import {
|
|
36
36
|
useAccessLevel,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
useMultiplePermissions,
|
|
42
42
|
usePermissions,
|
|
43
43
|
useRBAC as useRBAC2
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-NT3NC4Y4.js";
|
|
45
45
|
import {
|
|
46
46
|
CACHE_PATTERNS,
|
|
47
47
|
RBACCache,
|
|
@@ -69,12 +69,12 @@ import {
|
|
|
69
69
|
getGlobalAuditManager,
|
|
70
70
|
setGlobalAuditManager
|
|
71
71
|
} from "../chunk-B2WTCLCV.js";
|
|
72
|
-
import "../chunk-
|
|
73
|
-
import "../chunk-
|
|
72
|
+
import "../chunk-ZIC232OO.js";
|
|
73
|
+
import "../chunk-W7PPXKTZ.js";
|
|
74
74
|
import {
|
|
75
75
|
RBACProvider,
|
|
76
76
|
useRBAC
|
|
77
|
-
} from "../chunk-
|
|
77
|
+
} from "../chunk-E4FPK232.js";
|
|
78
78
|
import "../chunk-STT7INZR.js";
|
|
79
79
|
import "../chunk-5BSLGBYI.js";
|
|
80
80
|
import "../chunk-D7ARGIA3.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -102,8 +102,14 @@ interface PermissionOperations {
|
|
|
102
102
|
type TableName = 'users' | 'rbac_global_roles' | 'rbac_organisation_roles' | 'rbac_event_app_roles' | 'rbac_page_permissions' | 'rbac_user_sessions' | 'rbac_user_profiles' | 'rbac_user_login_history' | 'event' | 'organisations' | 'rbac_apps';
|
|
103
103
|
/**
|
|
104
104
|
* Supabase RPC function names
|
|
105
|
+
*
|
|
106
|
+
* Categories:
|
|
107
|
+
* - Core RBAC (10): Permission checking, role management, session & audit
|
|
108
|
+
* - Data Access (5): Secure data access functions with RBAC checks
|
|
109
|
+
* - Utility (3): Helper functions supporting RBAC operations
|
|
110
|
+
* - Legacy (2): Deprecated functions to be removed
|
|
105
111
|
*/
|
|
106
|
-
type RPCFunction = 'rbac_permission_check' | 'rbac_permissions_get' | 'rbac_access_validate' | 'rbac_page_access_check' | 'rbac_role_grant' | 'rbac_role_revoke' | 'rbac_roles_list' | 'rbac_role_validate' | 'rbac_session_track' | 'rbac_audit_log' | 'get_pace_user_events';
|
|
112
|
+
type RPCFunction = 'rbac_permission_check' | 'rbac_permissions_get' | 'rbac_access_validate' | 'rbac_page_access_check' | 'rbac_role_grant' | 'rbac_role_revoke' | 'rbac_roles_list' | 'rbac_role_validate' | 'rbac_session_track' | 'rbac_audit_log' | 'data_user_events_get' | 'data_user_organisation_roles_get' | 'data_user_organisations_get' | 'data_cake_meals_get' | 'util_app_resolve' | 'debug_auth_context' | 'handle_new_user' | 'get_pace_user_events';
|
|
107
113
|
/**
|
|
108
114
|
* Helper type for Supabase filter operations
|
|
109
115
|
*/
|
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-PEAEZ7DL.js").then((module) => ({ default: module.DataTable })),
|
|
549
549
|
"DataTable"
|
|
550
550
|
);
|
|
551
551
|
|