@jmruthers/pace-core 0.5.70 → 0.5.72
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-OSELOGMA.js → DataTable-RCFGXSPQ.js} +5 -5
- package/dist/{api-A4SUYPPV.js → api-DDMUKIUD.js} +2 -2
- package/dist/{chunk-5NV76BYF.js → chunk-2PDTIGS4.js} +6 -6
- package/dist/{chunk-GCUIIBLB.js → chunk-4CET7YQI.js} +4 -3
- package/dist/chunk-4CET7YQI.js.map +1 -0
- package/dist/{chunk-FOT3WUV6.js → chunk-67FGPOHX.js} +3 -3
- package/dist/{chunk-V2TE7LOF.js → chunk-BUM2ZPYC.js} +12 -12
- package/dist/{chunk-BHBMXMLT.js → chunk-C353TCFY.js} +2 -2
- package/dist/{chunk-NHR52QAQ.js → chunk-FGMFQSHX.js} +8 -7
- package/dist/chunk-FGMFQSHX.js.map +1 -0
- package/dist/{chunk-KWQH4VO3.js → chunk-GDIBOLKV.js} +2 -2
- package/dist/{chunk-OTJUAYBG.js → chunk-MTI7X73I.js} +5 -5
- package/dist/{chunk-4YMVZ76F.js → chunk-WMYLD5WP.js} +71 -66
- package/dist/chunk-WMYLD5WP.js.map +1 -0
- package/dist/{chunk-5G7JA3L5.js → chunk-XC4ZCSO4.js} +2 -2
- package/dist/components.js +7 -7
- package/dist/hooks.js +4 -4
- package/dist/index.js +10 -10
- package/dist/providers.js +2 -2
- package/dist/rbac/index.d.ts +4 -0
- package/dist/rbac/index.js +5 -5
- 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 +2 -2
- 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/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/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/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/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/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 +3 -3
- package/docs/implementation-guides/data-tables.md +191 -0
- package/package.json +1 -1
- package/src/components/DataTable/components/DataTableBody.tsx +38 -27
- package/src/components/DataTable/components/UnifiedTableBody.tsx +72 -64
- package/src/rbac/__tests__/engine.comprehensive.test.ts +150 -78
- package/src/rbac/__tests__/rbac-engine-core-logic.test.ts +52 -50
- package/src/rbac/__tests__/rbac-engine-simplified.test.ts +39 -19
- package/src/rbac/engine.test.ts +4 -0
- package/src/rbac/engine.ts +16 -7
- package/src/rbac/providers/RBACProvider.tsx +15 -4
- package/dist/chunk-4YMVZ76F.js.map +0 -1
- package/dist/chunk-GCUIIBLB.js.map +0 -1
- package/dist/chunk-NHR52QAQ.js.map +0 -1
- /package/dist/{DataTable-OSELOGMA.js.map → DataTable-RCFGXSPQ.js.map} +0 -0
- /package/dist/{api-A4SUYPPV.js.map → api-DDMUKIUD.js.map} +0 -0
- /package/dist/{chunk-5NV76BYF.js.map → chunk-2PDTIGS4.js.map} +0 -0
- /package/dist/{chunk-FOT3WUV6.js.map → chunk-67FGPOHX.js.map} +0 -0
- /package/dist/{chunk-V2TE7LOF.js.map → chunk-BUM2ZPYC.js.map} +0 -0
- /package/dist/{chunk-BHBMXMLT.js.map → chunk-C353TCFY.js.map} +0 -0
- /package/dist/{chunk-KWQH4VO3.js.map → chunk-GDIBOLKV.js.map} +0 -0
- /package/dist/{chunk-OTJUAYBG.js.map → chunk-MTI7X73I.js.map} +0 -0
- /package/dist/{chunk-5G7JA3L5.js.map → chunk-XC4ZCSO4.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_InactivityProvider,
|
|
5
5
|
init_OrganisationProvider,
|
|
6
6
|
init_UnifiedAuthProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4CET7YQI.js";
|
|
8
8
|
|
|
9
9
|
// src/providers/index.ts
|
|
10
10
|
init_EventProvider();
|
|
@@ -12,4 +12,4 @@ init_OrganisationProvider();
|
|
|
12
12
|
init_UnifiedAuthProvider();
|
|
13
13
|
init_AuthProvider();
|
|
14
14
|
init_InactivityProvider();
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-XC4ZCSO4.js.map
|
package/dist/components.js
CHANGED
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
useFileUpload,
|
|
52
52
|
usePublicPageContext as usePublicPageContext2,
|
|
53
53
|
useStorage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2PDTIGS4.js";
|
|
55
55
|
import {
|
|
56
56
|
Alert,
|
|
57
57
|
AlertDescription,
|
|
@@ -74,13 +74,13 @@ import {
|
|
|
74
74
|
SelectSeparator,
|
|
75
75
|
SelectTrigger,
|
|
76
76
|
SelectValue
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WMYLD5WP.js";
|
|
78
78
|
import {
|
|
79
79
|
useRBAC
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-67FGPOHX.js";
|
|
81
|
+
import "./chunk-FGMFQSHX.js";
|
|
82
82
|
import "./chunk-B2WTCLCV.js";
|
|
83
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-XC4ZCSO4.js";
|
|
84
84
|
import {
|
|
85
85
|
DefaultPublicErrorFallback,
|
|
86
86
|
PublicErrorBoundary,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
useIsPublicPage,
|
|
90
90
|
usePublicPageContext,
|
|
91
91
|
useToast
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-C353TCFY.js";
|
|
93
93
|
import "./chunk-YNUBMSMV.js";
|
|
94
94
|
import {
|
|
95
95
|
Button,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
init_Tooltip2 as init_Tooltip,
|
|
115
115
|
init_UnifiedAuthProvider,
|
|
116
116
|
useUnifiedAuth
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-4CET7YQI.js";
|
|
118
118
|
import {
|
|
119
119
|
FileCategory,
|
|
120
120
|
init_file_reference
|
package/dist/hooks.js
CHANGED
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
usePublicEvent,
|
|
10
10
|
usePublicEventCode,
|
|
11
11
|
usePublicRouteParams
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MTI7X73I.js";
|
|
13
13
|
import {
|
|
14
14
|
useSecureDataAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GDIBOLKV.js";
|
|
16
16
|
import {
|
|
17
17
|
clearPublicLogoCache,
|
|
18
18
|
getPublicLogoCacheStats,
|
|
19
19
|
useAppConfig,
|
|
20
20
|
usePublicEventLogo,
|
|
21
21
|
useToast
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-C353TCFY.js";
|
|
23
23
|
import {
|
|
24
24
|
useDataTablePerformance
|
|
25
25
|
} from "./chunk-YNUBMSMV.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4CET7YQI.js";
|
|
27
27
|
import "./chunk-ULBI5JGB.js";
|
|
28
28
|
import {
|
|
29
29
|
useComponentPerformance
|
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-BUM2ZPYC.js";
|
|
34
34
|
import "./chunk-TYHR5X4W.js";
|
|
35
35
|
import {
|
|
36
36
|
APP_PATH_MAPPING,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
usePublicPageContext as usePublicPageContext2,
|
|
104
104
|
useStorage,
|
|
105
105
|
validateFileSize
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-2PDTIGS4.js";
|
|
107
107
|
import {
|
|
108
108
|
Alert,
|
|
109
109
|
AlertDescription,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
SelectSeparator,
|
|
128
128
|
SelectTrigger,
|
|
129
129
|
SelectValue
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-WMYLD5WP.js";
|
|
131
131
|
import {
|
|
132
132
|
useAccessLevel,
|
|
133
133
|
useCachedPermissions,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
useMultiplePermissions,
|
|
138
138
|
usePermissions,
|
|
139
139
|
useRBAC as useRBAC2
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-67FGPOHX.js";
|
|
141
141
|
import {
|
|
142
142
|
CACHE_PATTERNS,
|
|
143
143
|
RBACCache,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
isPermittedCached,
|
|
158
158
|
rbacCache,
|
|
159
159
|
setupRBAC
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-FGMFQSHX.js";
|
|
161
161
|
import {
|
|
162
162
|
RBACAuditManager,
|
|
163
163
|
createAuditManager,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
getGlobalAuditManager,
|
|
166
166
|
setGlobalAuditManager
|
|
167
167
|
} from "./chunk-B2WTCLCV.js";
|
|
168
|
-
import "./chunk-
|
|
168
|
+
import "./chunk-XC4ZCSO4.js";
|
|
169
169
|
import {
|
|
170
170
|
clearPublicEventCache,
|
|
171
171
|
extractEventCodeFromPath,
|
|
@@ -177,8 +177,8 @@ import {
|
|
|
177
177
|
usePublicEvent,
|
|
178
178
|
usePublicEventCode,
|
|
179
179
|
usePublicRouteParams
|
|
180
|
-
} from "./chunk-
|
|
181
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-MTI7X73I.js";
|
|
181
|
+
import "./chunk-GDIBOLKV.js";
|
|
182
182
|
import {
|
|
183
183
|
DefaultPublicErrorFallback,
|
|
184
184
|
PublicErrorBoundary,
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
usePublicEventLogo,
|
|
192
192
|
usePublicPageContext,
|
|
193
193
|
useToast
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-C353TCFY.js";
|
|
195
195
|
import "./chunk-YNUBMSMV.js";
|
|
196
196
|
import {
|
|
197
197
|
Button,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
useOrganisations,
|
|
230
230
|
useRBAC,
|
|
231
231
|
useUnifiedAuth
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-4CET7YQI.js";
|
|
233
233
|
import {
|
|
234
234
|
FileCategory,
|
|
235
235
|
init_file_reference
|
package/dist/providers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-XC4ZCSO4.js";
|
|
2
2
|
import {
|
|
3
3
|
AuthProvider,
|
|
4
4
|
EventProvider,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useInactivity,
|
|
11
11
|
useOrganisations,
|
|
12
12
|
useUnifiedAuth
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4CET7YQI.js";
|
|
14
14
|
import "./chunk-ULBI5JGB.js";
|
|
15
15
|
import "./chunk-6RBH67W7.js";
|
|
16
16
|
import "./chunk-SMJZMKYN.js";
|
package/dist/rbac/index.d.ts
CHANGED
|
@@ -594,6 +594,10 @@ declare class RBACEngine {
|
|
|
594
594
|
/**
|
|
595
595
|
* Check if user is super admin
|
|
596
596
|
*
|
|
597
|
+
* Directly queries the rbac_global_roles table to check for super_admin role.
|
|
598
|
+
* This is consistent with how other RPC functions (rbac_permissions_get, etc.) check
|
|
599
|
+
* for super admin status - they all use direct queries to the rbac_global_roles table.
|
|
600
|
+
*
|
|
597
601
|
* @param userId - User ID
|
|
598
602
|
* @returns Promise resolving to super admin status
|
|
599
603
|
*/
|
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-BUM2ZPYC.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-67FGPOHX.js";
|
|
45
45
|
import {
|
|
46
46
|
CACHE_PATTERNS,
|
|
47
47
|
RBACCache,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isPermittedCached,
|
|
62
62
|
rbacCache,
|
|
63
63
|
setupRBAC
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-FGMFQSHX.js";
|
|
65
65
|
import {
|
|
66
66
|
RBACAuditManager,
|
|
67
67
|
createAuditManager,
|
|
@@ -69,11 +69,11 @@ import {
|
|
|
69
69
|
getGlobalAuditManager,
|
|
70
70
|
setGlobalAuditManager
|
|
71
71
|
} from "../chunk-B2WTCLCV.js";
|
|
72
|
-
import "../chunk-
|
|
72
|
+
import "../chunk-GDIBOLKV.js";
|
|
73
73
|
import {
|
|
74
74
|
RBACProvider,
|
|
75
75
|
useRBAC
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-4CET7YQI.js";
|
|
77
77
|
import "../chunk-ULBI5JGB.js";
|
|
78
78
|
import "../chunk-5BSLGBYI.js";
|
|
79
79
|
import "../chunk-6RBH67W7.js";
|
package/dist/utils.js
CHANGED
|
@@ -551,7 +551,7 @@ function createLazyComponent(importFn, componentName, options = {}) {
|
|
|
551
551
|
return WrappedComponent;
|
|
552
552
|
}
|
|
553
553
|
var LazyDataTable = createLazyComponent(
|
|
554
|
-
() => import("./DataTable-
|
|
554
|
+
() => import("./DataTable-RCFGXSPQ.js").then((module) => ({ default: module.DataTable })),
|
|
555
555
|
"DataTable"
|
|
556
556
|
);
|
|
557
557
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.72](../README.md) / [Exports](../modules.md) / RBACEngine
|
|
2
2
|
|
|
3
3
|
# Class: RBACEngine
|
|
4
4
|
|
|
@@ -138,4 +138,4 @@ Promise resolving to app configuration
|
|
|
138
138
|
|
|
139
139
|
#### Defined in
|
|
140
140
|
|
|
141
|
-
[packages/core/src/rbac/engine.ts:
|
|
141
|
+
[packages/core/src/rbac/engine.ts:479](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L479)
|