@jmruthers/pace-core 0.5.104 → 0.5.106
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/{AuthService-DX15wM6y.d.ts → AuthService-1D2ifNfa.d.ts} +1 -0
- package/dist/{DataTable-EEDFYMJP.js → DataTable-LWHFLTEW.js} +6 -6
- package/dist/{UnifiedAuthProvider-H7RI4KYD.js → UnifiedAuthProvider-XU4BHFXZ.js} +3 -3
- package/dist/{chunk-62AVH7CM.js → chunk-75G3NZWN.js} +4 -4
- package/dist/{chunk-B6LDHZGA.js → chunk-DMNMZKWS.js} +97 -30
- package/dist/chunk-DMNMZKWS.js.map +1 -0
- package/dist/{chunk-G7UUVEAP.js → chunk-GVRSXXAA.js} +3 -3
- package/dist/{chunk-SF6VFEWO.js → chunk-IBZBNBTE.js} +15 -7
- package/dist/chunk-IBZBNBTE.js.map +1 -0
- package/dist/{chunk-ORACUZ7H.js → chunk-KBG34SVL.js} +2 -2
- package/dist/{chunk-ZGCVJ7WW.js → chunk-LT6RKRA7.js} +2 -2
- package/dist/{chunk-7TQDRDSM.js → chunk-MOMYOQMC.js} +5 -5
- package/dist/{chunk-2KLAOD4M.js → chunk-QDDUU625.js} +3 -3
- package/dist/{chunk-S7TZKHG3.js → chunk-VJ7MPS2K.js} +14 -7
- package/dist/chunk-VJ7MPS2K.js.map +1 -0
- package/dist/{chunk-5RYPBJYL.js → chunk-X4FRXJV6.js} +7 -3
- package/dist/{chunk-5RYPBJYL.js.map → chunk-X4FRXJV6.js.map} +1 -1
- package/dist/{chunk-MVNOAHOP.js → chunk-ZXY5NTJB.js} +2 -2
- package/dist/components.js +8 -8
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +7 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -11
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +2 -2
- package/dist/rbac/index.js +7 -7
- package/dist/{usePublicRouteParams-BiXgKiYa.d.ts → usePublicRouteParams-CnM-IK2I.d.ts} +1 -0
- 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 +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/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 +4 -4
- 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 +7 -6
- package/package.json +1 -1
- package/src/components/PaceLoginPage/PaceLoginPage.tsx +7 -0
- package/src/hooks/public/usePublicFileDisplay.ts +33 -15
- package/src/hooks/useEventTheme.ts +14 -1
- package/src/hooks/useFileDisplay.ts +21 -2
- package/src/services/EventService.ts +10 -3
- package/src/utils/file-reference.ts +64 -32
- package/dist/chunk-B6LDHZGA.js.map +0 -1
- package/dist/chunk-S7TZKHG3.js.map +0 -1
- package/dist/chunk-SF6VFEWO.js.map +0 -1
- /package/dist/{DataTable-EEDFYMJP.js.map → DataTable-LWHFLTEW.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-H7RI4KYD.js.map → UnifiedAuthProvider-XU4BHFXZ.js.map} +0 -0
- /package/dist/{chunk-62AVH7CM.js.map → chunk-75G3NZWN.js.map} +0 -0
- /package/dist/{chunk-G7UUVEAP.js.map → chunk-GVRSXXAA.js.map} +0 -0
- /package/dist/{chunk-ORACUZ7H.js.map → chunk-KBG34SVL.js.map} +0 -0
- /package/dist/{chunk-ZGCVJ7WW.js.map → chunk-LT6RKRA7.js.map} +0 -0
- /package/dist/{chunk-7TQDRDSM.js.map → chunk-MOMYOQMC.js.map} +0 -0
- /package/dist/{chunk-2KLAOD4M.js.map → chunk-QDDUU625.js.map} +0 -0
- /package/dist/{chunk-MVNOAHOP.js.map → chunk-ZXY5NTJB.js.map} +0 -0
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
SelectSeparator,
|
|
26
26
|
SelectTrigger,
|
|
27
27
|
SelectValue
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-75G3NZWN.js";
|
|
29
29
|
import {
|
|
30
30
|
isPermitted,
|
|
31
31
|
isSuperAdmin
|
|
@@ -44,18 +44,18 @@ import {
|
|
|
44
44
|
useIsPublicPage,
|
|
45
45
|
usePublicFileDisplay,
|
|
46
46
|
usePublicPageContext
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DMNMZKWS.js";
|
|
48
48
|
import {
|
|
49
49
|
useToast
|
|
50
50
|
} from "./chunk-QPCAGLUS.js";
|
|
51
51
|
import {
|
|
52
52
|
useEvents,
|
|
53
53
|
useOrganisations
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZXY5NTJB.js";
|
|
55
55
|
import {
|
|
56
56
|
UnifiedAuthProvider_exports,
|
|
57
57
|
init_UnifiedAuthProvider as init_UnifiedAuthProvider2
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KBG34SVL.js";
|
|
59
59
|
import {
|
|
60
60
|
EventServiceContext,
|
|
61
61
|
EventServiceProvider,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
useEventService,
|
|
66
66
|
useSessionRestoration,
|
|
67
67
|
useUnifiedAuth
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-X4FRXJV6.js";
|
|
69
69
|
import {
|
|
70
70
|
LoadingSpinner
|
|
71
71
|
} from "./chunk-CDQ3PX7L.js";
|
|
@@ -78,6 +78,10 @@ import {
|
|
|
78
78
|
import {
|
|
79
79
|
performanceBudgetMonitor
|
|
80
80
|
} from "./chunk-O3NWNXDY.js";
|
|
81
|
+
import {
|
|
82
|
+
clearPalette,
|
|
83
|
+
init_runtime
|
|
84
|
+
} from "./chunk-SMJZMKYN.js";
|
|
81
85
|
import {
|
|
82
86
|
__esm,
|
|
83
87
|
__export,
|
|
@@ -1445,7 +1449,7 @@ function PaceAppLayout({
|
|
|
1445
1449
|
}
|
|
1446
1450
|
}
|
|
1447
1451
|
if (hasAccess && currentRoute.roles && currentRoute.roles.length > 0 && user?.id) {
|
|
1448
|
-
const { useUnifiedAuth: useUnifiedAuth2 } = await import("./UnifiedAuthProvider-
|
|
1452
|
+
const { useUnifiedAuth: useUnifiedAuth2 } = await import("./UnifiedAuthProvider-XU4BHFXZ.js");
|
|
1449
1453
|
hasAccess = true;
|
|
1450
1454
|
}
|
|
1451
1455
|
if (!isMounted) return;
|
|
@@ -1555,6 +1559,7 @@ function PaceAppLayout({
|
|
|
1555
1559
|
// src/components/PaceLoginPage/PaceLoginPage.tsx
|
|
1556
1560
|
import { useEffect as useEffect4, useState as useState6 } from "react";
|
|
1557
1561
|
import { useNavigate as useNavigate2 } from "react-router-dom";
|
|
1562
|
+
init_runtime();
|
|
1558
1563
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1559
1564
|
var PaceLoginPage = ({
|
|
1560
1565
|
appName = "Pace",
|
|
@@ -1566,6 +1571,9 @@ var PaceLoginPage = ({
|
|
|
1566
1571
|
const [isSigningIn, setIsSigningIn] = useState6(false);
|
|
1567
1572
|
const [accessError, setAccessError] = useState6(null);
|
|
1568
1573
|
const [isCheckingAccess, setIsCheckingAccess] = useState6(false);
|
|
1574
|
+
useEffect4(() => {
|
|
1575
|
+
clearPalette();
|
|
1576
|
+
}, []);
|
|
1569
1577
|
useEffect4(() => {
|
|
1570
1578
|
if (!requireAppAccess || !isAuthenticated || isLoading || !user || !supabase) {
|
|
1571
1579
|
return;
|
|
@@ -4265,4 +4273,4 @@ export {
|
|
|
4265
4273
|
PublicPageDiagnostic,
|
|
4266
4274
|
PublicPageContextChecker
|
|
4267
4275
|
};
|
|
4268
|
-
//# sourceMappingURL=chunk-
|
|
4276
|
+
//# sourceMappingURL=chunk-IBZBNBTE.js.map
|