@jmruthers/pace-core 0.5.103 → 0.5.105

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-SZWCMVTQ.js → chunk-AZFPGDCJ.js} +15 -7
  6. package/dist/chunk-AZFPGDCJ.js.map +1 -0
  7. package/dist/{chunk-5SGBVBRU.js → chunk-DWYMGSGU.js} +14 -7
  8. package/dist/chunk-DWYMGSGU.js.map +1 -0
  9. package/dist/{chunk-G7UUVEAP.js → chunk-GVRSXXAA.js} +3 -3
  10. package/dist/{chunk-X33A4WWI.js → chunk-HBGPLSA5.js} +38 -8
  11. package/dist/chunk-HBGPLSA5.js.map +1 -0
  12. package/dist/{chunk-ORACUZ7H.js → chunk-KBG34SVL.js} +2 -2
  13. package/dist/{chunk-ZGCVJ7WW.js → chunk-LT6RKRA7.js} +2 -2
  14. package/dist/{chunk-7TQDRDSM.js → chunk-MOMYOQMC.js} +5 -5
  15. package/dist/{chunk-2KLAOD4M.js → chunk-QDDUU625.js} +3 -3
  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 +27 -1
  132. package/src/hooks/useEventTheme.ts +14 -1
  133. package/src/hooks/useFileDisplay.ts +10 -2
  134. package/src/services/EventService.ts +10 -3
  135. package/src/utils/file-reference.ts +15 -6
  136. package/dist/chunk-5SGBVBRU.js.map +0 -1
  137. package/dist/chunk-SZWCMVTQ.js.map +0 -1
  138. package/dist/chunk-X33A4WWI.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
@@ -2,7 +2,7 @@ import {
2
2
  UnifiedAuthProvider,
3
3
  init_UnifiedAuthProvider,
4
4
  useUnifiedAuth
5
- } from "./chunk-5RYPBJYL.js";
5
+ } from "./chunk-X4FRXJV6.js";
6
6
  import {
7
7
  __esm,
8
8
  __export
@@ -24,4 +24,4 @@ export {
24
24
  UnifiedAuthProvider_exports,
25
25
  init_UnifiedAuthProvider2 as init_UnifiedAuthProvider
26
26
  };
27
- //# sourceMappingURL=chunk-ORACUZ7H.js.map
27
+ //# sourceMappingURL=chunk-KBG34SVL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  init_InactivityServiceProvider,
5
5
  init_OrganisationServiceProvider,
6
6
  init_UnifiedAuthProvider
7
- } from "./chunk-5RYPBJYL.js";
7
+ } from "./chunk-X4FRXJV6.js";
8
8
 
9
9
  // src/providers/index.ts
10
10
  init_UnifiedAuthProvider();
@@ -12,4 +12,4 @@ init_EventServiceProvider();
12
12
  init_OrganisationServiceProvider();
13
13
  init_InactivityServiceProvider();
14
14
  init_AuthServiceProvider();
15
- //# sourceMappingURL=chunk-ZGCVJ7WW.js.map
15
+ //# sourceMappingURL=chunk-LT6RKRA7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createScopeFromEvent,
3
3
  useAccessLevel,
4
4
  useCan
5
- } from "./chunk-2KLAOD4M.js";
5
+ } from "./chunk-QDDUU625.js";
6
6
  import {
7
7
  OrganisationContextRequiredError,
8
8
  RBACCache,
@@ -11,13 +11,13 @@ import {
11
11
  } from "./chunk-S63MFSY6.js";
12
12
  import {
13
13
  useSecureDataAccess
14
- } from "./chunk-G7UUVEAP.js";
14
+ } from "./chunk-GVRSXXAA.js";
15
15
  import {
16
16
  init_UnifiedAuthProvider
17
- } from "./chunk-ORACUZ7H.js";
17
+ } from "./chunk-KBG34SVL.js";
18
18
  import {
19
19
  useUnifiedAuth
20
- } from "./chunk-5RYPBJYL.js";
20
+ } from "./chunk-X4FRXJV6.js";
21
21
  import {
22
22
  getCurrentAppName
23
23
  } from "./chunk-JCQZ6LA7.js";
@@ -1860,4 +1860,4 @@ export {
1860
1860
  getPermissionsForRole,
1861
1861
  ALL_PERMISSIONS
1862
1862
  };
1863
- //# sourceMappingURL=chunk-7TQDRDSM.js.map
1863
+ //# sourceMappingURL=chunk-MOMYOQMC.js.map
@@ -11,11 +11,11 @@ import {
11
11
  init_useOrganisations,
12
12
  useEvents,
13
13
  useOrganisations
14
- } from "./chunk-MVNOAHOP.js";
14
+ } from "./chunk-ZXY5NTJB.js";
15
15
  import {
16
16
  init_UnifiedAuthProvider,
17
17
  useUnifiedAuth
18
- } from "./chunk-5RYPBJYL.js";
18
+ } from "./chunk-X4FRXJV6.js";
19
19
  import {
20
20
  getCurrentAppName
21
21
  } from "./chunk-JCQZ6LA7.js";
@@ -729,4 +729,4 @@ export {
729
729
  useHasAllPermissions,
730
730
  useCachedPermissions
731
731
  };
732
- //# sourceMappingURL=chunk-2KLAOD4M.js.map
732
+ //# sourceMappingURL=chunk-QDDUU625.js.map
@@ -1193,7 +1193,7 @@ var init_EventService = __esm({
1193
1193
  if (persistedEvent) {
1194
1194
  this.selectedEvent = persistedEvent;
1195
1195
  this.setSelectedEventId?.(persistedEventId);
1196
- this.updateThemeForSelectedEvent();
1196
+ this.updateThemeForSelectedEvent(true);
1197
1197
  return true;
1198
1198
  } else {
1199
1199
  sessionStorage.removeItem("pace-core-selected-event");
@@ -1361,8 +1361,12 @@ var init_EventService = __esm({
1361
1361
  }
1362
1362
  /**
1363
1363
  * Apply or clear runtime theme variables based on the current selected event's colours
1364
+ * @param skipTheming - If true, skip theme application (useful during session restoration/login)
1364
1365
  */
1365
- updateThemeForSelectedEvent() {
1366
+ updateThemeForSelectedEvent(skipTheming = false) {
1367
+ if (skipTheming) {
1368
+ return;
1369
+ }
1366
1370
  try {
1367
1371
  const normalized = this.parseAndNormalizeEventColours(this.selectedEvent?.event_colours);
1368
1372
  if (normalized) {
@@ -2351,4 +2355,4 @@ export {
2351
2355
  UnifiedAuthProvider,
2352
2356
  init_UnifiedAuthProvider
2353
2357
  };
2354
- //# sourceMappingURL=chunk-5RYPBJYL.js.map
2358
+ //# sourceMappingURL=chunk-X4FRXJV6.js.map