@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.
Files changed (147) hide show
  1. package/dist/{AuthService-DX15wM6y.d.ts → AuthService-1D2ifNfa.d.ts} +1 -0
  2. package/dist/{DataTable-EEDFYMJP.js → DataTable-LWHFLTEW.js} +6 -6
  3. package/dist/{UnifiedAuthProvider-H7RI4KYD.js → UnifiedAuthProvider-XU4BHFXZ.js} +3 -3
  4. package/dist/{chunk-62AVH7CM.js → chunk-75G3NZWN.js} +4 -4
  5. package/dist/{chunk-B6LDHZGA.js → chunk-DMNMZKWS.js} +97 -30
  6. package/dist/chunk-DMNMZKWS.js.map +1 -0
  7. package/dist/{chunk-G7UUVEAP.js → chunk-GVRSXXAA.js} +3 -3
  8. package/dist/{chunk-SF6VFEWO.js → chunk-IBZBNBTE.js} +15 -7
  9. package/dist/chunk-IBZBNBTE.js.map +1 -0
  10. package/dist/{chunk-ORACUZ7H.js → chunk-KBG34SVL.js} +2 -2
  11. package/dist/{chunk-ZGCVJ7WW.js → chunk-LT6RKRA7.js} +2 -2
  12. package/dist/{chunk-7TQDRDSM.js → chunk-MOMYOQMC.js} +5 -5
  13. package/dist/{chunk-2KLAOD4M.js → chunk-QDDUU625.js} +3 -3
  14. package/dist/{chunk-S7TZKHG3.js → chunk-VJ7MPS2K.js} +14 -7
  15. package/dist/chunk-VJ7MPS2K.js.map +1 -0
  16. package/dist/{chunk-5RYPBJYL.js → chunk-X4FRXJV6.js} +7 -3
  17. package/dist/{chunk-5RYPBJYL.js.map → chunk-X4FRXJV6.js.map} +1 -1
  18. package/dist/{chunk-MVNOAHOP.js → chunk-ZXY5NTJB.js} +2 -2
  19. package/dist/components.js +8 -8
  20. package/dist/hooks.d.ts +1 -1
  21. package/dist/hooks.js +7 -7
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +11 -11
  24. package/dist/providers.d.ts +2 -2
  25. package/dist/providers.js +2 -2
  26. package/dist/rbac/index.js +7 -7
  27. package/dist/{usePublicRouteParams-BiXgKiYa.d.ts → usePublicRouteParams-CnM-IK2I.d.ts} +1 -0
  28. package/dist/utils.js +1 -1
  29. package/docs/api/classes/ColumnFactory.md +1 -1
  30. package/docs/api/classes/ErrorBoundary.md +1 -1
  31. package/docs/api/classes/InvalidScopeError.md +1 -1
  32. package/docs/api/classes/MissingUserContextError.md +1 -1
  33. package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
  34. package/docs/api/classes/PermissionDeniedError.md +1 -1
  35. package/docs/api/classes/PublicErrorBoundary.md +1 -1
  36. package/docs/api/classes/RBACAuditManager.md +1 -1
  37. package/docs/api/classes/RBACCache.md +1 -1
  38. package/docs/api/classes/RBACEngine.md +1 -1
  39. package/docs/api/classes/RBACError.md +1 -1
  40. package/docs/api/classes/RBACNotInitializedError.md +1 -1
  41. package/docs/api/classes/SecureSupabaseClient.md +1 -1
  42. package/docs/api/classes/StorageUtils.md +1 -1
  43. package/docs/api/enums/FileCategory.md +1 -1
  44. package/docs/api/interfaces/AggregateConfig.md +1 -1
  45. package/docs/api/interfaces/ButtonProps.md +1 -1
  46. package/docs/api/interfaces/CardProps.md +1 -1
  47. package/docs/api/interfaces/ColorPalette.md +1 -1
  48. package/docs/api/interfaces/ColorShade.md +1 -1
  49. package/docs/api/interfaces/DataAccessRecord.md +1 -1
  50. package/docs/api/interfaces/DataRecord.md +1 -1
  51. package/docs/api/interfaces/DataTableAction.md +1 -1
  52. package/docs/api/interfaces/DataTableColumn.md +1 -1
  53. package/docs/api/interfaces/DataTableProps.md +1 -1
  54. package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
  55. package/docs/api/interfaces/EmptyStateConfig.md +1 -1
  56. package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
  57. package/docs/api/interfaces/FileDisplayProps.md +1 -1
  58. package/docs/api/interfaces/FileMetadata.md +1 -1
  59. package/docs/api/interfaces/FileReference.md +1 -1
  60. package/docs/api/interfaces/FileSizeLimits.md +1 -1
  61. package/docs/api/interfaces/FileUploadOptions.md +1 -1
  62. package/docs/api/interfaces/FileUploadProps.md +1 -1
  63. package/docs/api/interfaces/FooterProps.md +1 -1
  64. package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
  65. package/docs/api/interfaces/InputProps.md +1 -1
  66. package/docs/api/interfaces/LabelProps.md +1 -1
  67. package/docs/api/interfaces/LoginFormProps.md +1 -1
  68. package/docs/api/interfaces/NavigationAccessRecord.md +1 -1
  69. package/docs/api/interfaces/NavigationContextType.md +1 -1
  70. package/docs/api/interfaces/NavigationGuardProps.md +1 -1
  71. package/docs/api/interfaces/NavigationItem.md +1 -1
  72. package/docs/api/interfaces/NavigationMenuProps.md +1 -1
  73. package/docs/api/interfaces/NavigationProviderProps.md +1 -1
  74. package/docs/api/interfaces/Organisation.md +1 -1
  75. package/docs/api/interfaces/OrganisationContextType.md +1 -1
  76. package/docs/api/interfaces/OrganisationMembership.md +1 -1
  77. package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
  78. package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
  79. package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
  80. package/docs/api/interfaces/PaceLoginPageProps.md +4 -4
  81. package/docs/api/interfaces/PageAccessRecord.md +1 -1
  82. package/docs/api/interfaces/PagePermissionContextType.md +1 -1
  83. package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
  84. package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
  85. package/docs/api/interfaces/PaletteData.md +1 -1
  86. package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
  87. package/docs/api/interfaces/ProtectedRouteProps.md +1 -1
  88. package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
  89. package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
  90. package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
  91. package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
  92. package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
  93. package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
  94. package/docs/api/interfaces/RBACConfig.md +1 -1
  95. package/docs/api/interfaces/RBACLogger.md +1 -1
  96. package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
  97. package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
  98. package/docs/api/interfaces/RouteAccessRecord.md +1 -1
  99. package/docs/api/interfaces/RouteConfig.md +1 -1
  100. package/docs/api/interfaces/SecureDataContextType.md +1 -1
  101. package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
  102. package/docs/api/interfaces/StorageConfig.md +1 -1
  103. package/docs/api/interfaces/StorageFileInfo.md +1 -1
  104. package/docs/api/interfaces/StorageFileMetadata.md +1 -1
  105. package/docs/api/interfaces/StorageListOptions.md +1 -1
  106. package/docs/api/interfaces/StorageListResult.md +1 -1
  107. package/docs/api/interfaces/StorageUploadOptions.md +1 -1
  108. package/docs/api/interfaces/StorageUploadResult.md +1 -1
  109. package/docs/api/interfaces/StorageUrlOptions.md +1 -1
  110. package/docs/api/interfaces/StyleImport.md +1 -1
  111. package/docs/api/interfaces/SwitchProps.md +1 -1
  112. package/docs/api/interfaces/ToastActionElement.md +1 -1
  113. package/docs/api/interfaces/ToastProps.md +1 -1
  114. package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
  115. package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
  116. package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
  117. package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
  118. package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
  119. package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
  120. package/docs/api/interfaces/UsePublicFileDisplayOptions.md +1 -1
  121. package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
  122. package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
  123. package/docs/api/interfaces/UseResolvedScopeOptions.md +1 -1
  124. package/docs/api/interfaces/UseResolvedScopeReturn.md +1 -1
  125. package/docs/api/interfaces/UserEventAccess.md +1 -1
  126. package/docs/api/interfaces/UserMenuProps.md +1 -1
  127. package/docs/api/interfaces/UserProfile.md +1 -1
  128. package/docs/api/modules.md +7 -6
  129. package/package.json +1 -1
  130. package/src/components/PaceLoginPage/PaceLoginPage.tsx +7 -0
  131. package/src/hooks/public/usePublicFileDisplay.ts +33 -15
  132. package/src/hooks/useEventTheme.ts +14 -1
  133. package/src/hooks/useFileDisplay.ts +21 -2
  134. package/src/services/EventService.ts +10 -3
  135. package/src/utils/file-reference.ts +64 -32
  136. package/dist/chunk-B6LDHZGA.js.map +0 -1
  137. package/dist/chunk-S7TZKHG3.js.map +0 -1
  138. package/dist/chunk-SF6VFEWO.js.map +0 -1
  139. /package/dist/{DataTable-EEDFYMJP.js.map → DataTable-LWHFLTEW.js.map} +0 -0
  140. /package/dist/{UnifiedAuthProvider-H7RI4KYD.js.map → UnifiedAuthProvider-XU4BHFXZ.js.map} +0 -0
  141. /package/dist/{chunk-62AVH7CM.js.map → chunk-75G3NZWN.js.map} +0 -0
  142. /package/dist/{chunk-G7UUVEAP.js.map → chunk-GVRSXXAA.js.map} +0 -0
  143. /package/dist/{chunk-ORACUZ7H.js.map → chunk-KBG34SVL.js.map} +0 -0
  144. /package/dist/{chunk-ZGCVJ7WW.js.map → chunk-LT6RKRA7.js.map} +0 -0
  145. /package/dist/{chunk-7TQDRDSM.js.map → chunk-MOMYOQMC.js.map} +0 -0
  146. /package/dist/{chunk-2KLAOD4M.js.map → chunk-QDDUU625.js.map} +0 -0
  147. /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-62AVH7CM.js";
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-B6LDHZGA.js";
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-MVNOAHOP.js";
54
+ } from "./chunk-ZXY5NTJB.js";
55
55
  import {
56
56
  UnifiedAuthProvider_exports,
57
57
  init_UnifiedAuthProvider as init_UnifiedAuthProvider2
58
- } from "./chunk-ORACUZ7H.js";
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-5RYPBJYL.js";
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-H7RI4KYD.js");
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-SF6VFEWO.js.map
4276
+ //# sourceMappingURL=chunk-IBZBNBTE.js.map