@jmruthers/pace-core 0.5.85 → 0.5.87

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 (128) hide show
  1. package/dist/{DataTable-4W5UPIJT.js → DataTable-FA6EUX5M.js} +3 -3
  2. package/dist/{PublicLoadingSpinner-CnUaz0vG.d.ts → PublicLoadingSpinner-DecuJBX0.d.ts} +1 -1
  3. package/dist/{chunk-V5SWX6KL.js → chunk-2FQEQUJT.js} +2 -2
  4. package/dist/{chunk-YEQDKCPW.js → chunk-I7O3RSMN.js} +155 -37
  5. package/dist/{chunk-YEQDKCPW.js.map → chunk-I7O3RSMN.js.map} +1 -1
  6. package/dist/{chunk-X7R6NVYQ.js → chunk-KAY3K5TP.js} +27 -7
  7. package/dist/{chunk-X7R6NVYQ.js.map → chunk-KAY3K5TP.js.map} +1 -1
  8. package/dist/{chunk-YCKPEMJA.js → chunk-QPCAGLUS.js} +2 -3
  9. package/dist/chunk-QPCAGLUS.js.map +1 -0
  10. package/dist/{chunk-KUYWZVR2.js → chunk-ZFLOV3OM.js} +10 -2
  11. package/dist/chunk-ZFLOV3OM.js.map +1 -0
  12. package/dist/components.d.ts +1 -1
  13. package/dist/components.js +4 -4
  14. package/dist/hooks.js +3 -3
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +5 -5
  17. package/dist/utils.js +1 -1
  18. package/docs/api/classes/ColumnFactory.md +1 -1
  19. package/docs/api/classes/ErrorBoundary.md +1 -1
  20. package/docs/api/classes/InvalidScopeError.md +1 -1
  21. package/docs/api/classes/MissingUserContextError.md +1 -1
  22. package/docs/api/classes/OrganisationContextRequiredError.md +1 -1
  23. package/docs/api/classes/PermissionDeniedError.md +1 -1
  24. package/docs/api/classes/PublicErrorBoundary.md +1 -1
  25. package/docs/api/classes/RBACAuditManager.md +1 -1
  26. package/docs/api/classes/RBACCache.md +1 -1
  27. package/docs/api/classes/RBACEngine.md +1 -1
  28. package/docs/api/classes/RBACError.md +1 -1
  29. package/docs/api/classes/RBACNotInitializedError.md +1 -1
  30. package/docs/api/classes/SecureSupabaseClient.md +1 -1
  31. package/docs/api/classes/StorageUtils.md +1 -1
  32. package/docs/api/enums/FileCategory.md +1 -1
  33. package/docs/api/interfaces/AggregateConfig.md +1 -1
  34. package/docs/api/interfaces/ButtonProps.md +1 -1
  35. package/docs/api/interfaces/CardProps.md +1 -1
  36. package/docs/api/interfaces/ColorPalette.md +1 -1
  37. package/docs/api/interfaces/ColorShade.md +1 -1
  38. package/docs/api/interfaces/DataAccessRecord.md +1 -1
  39. package/docs/api/interfaces/DataRecord.md +1 -1
  40. package/docs/api/interfaces/DataTableAction.md +1 -1
  41. package/docs/api/interfaces/DataTableColumn.md +1 -1
  42. package/docs/api/interfaces/DataTableProps.md +1 -1
  43. package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
  44. package/docs/api/interfaces/EmptyStateConfig.md +1 -1
  45. package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
  46. package/docs/api/interfaces/EventLogoProps.md +11 -11
  47. package/docs/api/interfaces/FileDisplayProps.md +1 -1
  48. package/docs/api/interfaces/FileMetadata.md +1 -1
  49. package/docs/api/interfaces/FileReference.md +1 -1
  50. package/docs/api/interfaces/FileSizeLimits.md +1 -1
  51. package/docs/api/interfaces/FileUploadOptions.md +1 -1
  52. package/docs/api/interfaces/FileUploadProps.md +1 -1
  53. package/docs/api/interfaces/FooterProps.md +1 -1
  54. package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
  55. package/docs/api/interfaces/InputProps.md +1 -1
  56. package/docs/api/interfaces/LabelProps.md +1 -1
  57. package/docs/api/interfaces/LoginFormProps.md +1 -1
  58. package/docs/api/interfaces/NavigationAccessRecord.md +1 -1
  59. package/docs/api/interfaces/NavigationContextType.md +1 -1
  60. package/docs/api/interfaces/NavigationGuardProps.md +1 -1
  61. package/docs/api/interfaces/NavigationItem.md +1 -1
  62. package/docs/api/interfaces/NavigationMenuProps.md +1 -1
  63. package/docs/api/interfaces/NavigationProviderProps.md +1 -1
  64. package/docs/api/interfaces/Organisation.md +1 -1
  65. package/docs/api/interfaces/OrganisationContextType.md +1 -1
  66. package/docs/api/interfaces/OrganisationMembership.md +1 -1
  67. package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
  68. package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
  69. package/docs/api/interfaces/PaceAppLayoutProps.md +1 -1
  70. package/docs/api/interfaces/PaceLoginPageProps.md +1 -1
  71. package/docs/api/interfaces/PageAccessRecord.md +1 -1
  72. package/docs/api/interfaces/PagePermissionContextType.md +1 -1
  73. package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
  74. package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
  75. package/docs/api/interfaces/PaletteData.md +1 -1
  76. package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
  77. package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
  78. package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
  79. package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
  80. package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
  81. package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
  82. package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
  83. package/docs/api/interfaces/RBACConfig.md +1 -1
  84. package/docs/api/interfaces/RBACLogger.md +1 -1
  85. package/docs/api/interfaces/RoleBasedRouterContextType.md +1 -1
  86. package/docs/api/interfaces/RoleBasedRouterProps.md +1 -1
  87. package/docs/api/interfaces/RouteAccessRecord.md +1 -1
  88. package/docs/api/interfaces/RouteConfig.md +1 -1
  89. package/docs/api/interfaces/SecureDataContextType.md +1 -1
  90. package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
  91. package/docs/api/interfaces/StorageConfig.md +1 -1
  92. package/docs/api/interfaces/StorageFileInfo.md +1 -1
  93. package/docs/api/interfaces/StorageFileMetadata.md +1 -1
  94. package/docs/api/interfaces/StorageListOptions.md +1 -1
  95. package/docs/api/interfaces/StorageListResult.md +1 -1
  96. package/docs/api/interfaces/StorageUploadOptions.md +1 -1
  97. package/docs/api/interfaces/StorageUploadResult.md +1 -1
  98. package/docs/api/interfaces/StorageUrlOptions.md +1 -1
  99. package/docs/api/interfaces/StyleImport.md +1 -1
  100. package/docs/api/interfaces/SwitchProps.md +1 -1
  101. package/docs/api/interfaces/ToastActionElement.md +1 -1
  102. package/docs/api/interfaces/ToastProps.md +1 -1
  103. package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
  104. package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
  105. package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
  106. package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
  107. package/docs/api/interfaces/UsePublicEventLogoOptions.md +1 -1
  108. package/docs/api/interfaces/UsePublicEventLogoReturn.md +1 -1
  109. package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
  110. package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
  111. package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
  112. package/docs/api/interfaces/UseResolvedScopeOptions.md +1 -1
  113. package/docs/api/interfaces/UseResolvedScopeReturn.md +1 -1
  114. package/docs/api/interfaces/UserEventAccess.md +1 -1
  115. package/docs/api/interfaces/UserMenuProps.md +1 -1
  116. package/docs/api/interfaces/UserProfile.md +1 -1
  117. package/docs/api/modules.md +9 -9
  118. package/package.json +1 -1
  119. package/src/components/DataTable/components/UnifiedTableBody.tsx +34 -6
  120. package/src/components/DataTable/utils/performanceUtils.ts +12 -3
  121. package/src/components/PublicLayout/EventLogo.tsx +215 -36
  122. package/src/components/PublicLayout/PublicPageProvider.tsx +1 -1
  123. package/src/hooks/public/usePublicEventLogo.ts +15 -1
  124. package/src/hooks/useDataTablePerformance.ts +4 -0
  125. package/dist/chunk-KUYWZVR2.js.map +0 -1
  126. package/dist/chunk-YCKPEMJA.js.map +0 -1
  127. /package/dist/{DataTable-4W5UPIJT.js.map → DataTable-FA6EUX5M.js.map} +0 -0
  128. /package/dist/{chunk-V5SWX6KL.js.map → chunk-2FQEQUJT.js.map} +0 -0
@@ -53,7 +53,7 @@ import {
53
53
  sortHierarchicalDataWithSorting,
54
54
  validateHierarchicalData,
55
55
  validatePaginationConfig
56
- } from "./chunk-X7R6NVYQ.js";
56
+ } from "./chunk-KAY3K5TP.js";
57
57
  import "./chunk-YVUZWLQG.js";
58
58
  import "./chunk-S63MFSY6.js";
59
59
  import "./chunk-Q7APDV6H.js";
@@ -74,7 +74,7 @@ import {
74
74
  safeExecute,
75
75
  throttle,
76
76
  useDataTablePerformance
77
- } from "./chunk-YCKPEMJA.js";
77
+ } from "./chunk-QPCAGLUS.js";
78
78
  import "./chunk-CBSD3BZ3.js";
79
79
  import "./chunk-RIXPZJUB.js";
80
80
  import "./chunk-5BN3YGNK.js";
@@ -154,4 +154,4 @@ export {
154
154
  validateHierarchicalData,
155
155
  validatePaginationConfig
156
156
  };
157
- //# sourceMappingURL=DataTable-4W5UPIJT.js.map
157
+ //# sourceMappingURL=DataTable-FA6EUX5M.js.map
@@ -3429,7 +3429,7 @@ interface EventLogoProps {
3429
3429
  * @param props - Logo configuration and styling
3430
3430
  * @returns React element with event logo or fallback
3431
3431
  */
3432
- declare function EventLogo({ eventId, eventName, organisationId, size, className, showFallback, generateFallbackText, validateImage, loadingComponent: LoadingComponent, errorComponent: ErrorComponent }: EventLogoProps): react_jsx_runtime.JSX.Element | null;
3432
+ declare function EventLogo({ eventId, eventName, organisationId, size, className, showFallback, generateFallbackText, validateImage, loadingComponent: LoadingComponent, errorComponent: ErrorComponent }: EventLogoProps): react_jsx_runtime.JSX.Element;
3433
3433
  /**
3434
3434
  * Compact event logo for small spaces
3435
3435
  */
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_OrganisationProvider,
3
3
  usePublicPageContext
4
- } from "./chunk-KUYWZVR2.js";
4
+ } from "./chunk-ZFLOV3OM.js";
5
5
  import {
6
6
  init_useOrganisations,
7
7
  useEvents,
@@ -699,4 +699,4 @@ export {
699
699
  generatePublicRoutePath,
700
700
  extractEventCodeFromPath
701
701
  };
702
- //# sourceMappingURL=chunk-V5SWX6KL.js.map
702
+ //# sourceMappingURL=chunk-2FQEQUJT.js.map
@@ -22,7 +22,7 @@ import {
22
22
  SelectSeparator,
23
23
  SelectTrigger,
24
24
  SelectValue
25
- } from "./chunk-X7R6NVYQ.js";
25
+ } from "./chunk-KAY3K5TP.js";
26
26
  import {
27
27
  isPermitted,
28
28
  isSuperAdmin
@@ -30,26 +30,29 @@ import {
30
30
  import {
31
31
  OrganisationProvider_exports,
32
32
  PublicErrorBoundary,
33
+ PublicPageContext,
33
34
  init_OrganisationProvider,
34
35
  useAppConfig,
36
+ useIsPublicPage,
35
37
  usePublicEventLogo,
36
38
  usePublicPageContext
37
- } from "./chunk-KUYWZVR2.js";
39
+ } from "./chunk-ZFLOV3OM.js";
38
40
  import {
39
41
  useToast
40
- } from "./chunk-YCKPEMJA.js";
42
+ } from "./chunk-QPCAGLUS.js";
41
43
  import {
42
44
  useEvents,
43
45
  useOrganisations
44
46
  } from "./chunk-CBSD3BZ3.js";
45
47
  import {
46
48
  UnifiedAuthProvider_exports,
47
- init_UnifiedAuthProvider
49
+ init_UnifiedAuthProvider as init_UnifiedAuthProvider2
48
50
  } from "./chunk-RIXPZJUB.js";
49
51
  import {
50
52
  EventServiceContext,
51
53
  EventServiceProvider,
52
54
  init_EventServiceProvider,
55
+ init_UnifiedAuthProvider,
53
56
  useEventService,
54
57
  useUnifiedAuth
55
58
  } from "./chunk-5BN3YGNK.js";
@@ -838,7 +841,7 @@ UserMenu.Loading = UserMenuLoading;
838
841
  // src/components/NavigationMenu/NavigationMenu.tsx
839
842
  import * as React9 from "react";
840
843
  import { ChevronDown as ChevronDown2 } from "lucide-react";
841
- init_UnifiedAuthProvider();
844
+ init_UnifiedAuthProvider2();
842
845
  import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
843
846
  var NavigationMenu = React9.forwardRef(({
844
847
  items,
@@ -1197,7 +1200,7 @@ var Footer = React10.memo(FooterComponent);
1197
1200
  Footer.displayName = "Footer";
1198
1201
 
1199
1202
  // src/components/PaceAppLayout/PaceAppLayout.tsx
1200
- init_UnifiedAuthProvider();
1203
+ init_UnifiedAuthProvider2();
1201
1204
  import { useState as useState5, useEffect as useEffect3, useMemo as useMemo5, useCallback as useCallback3 } from "react";
1202
1205
  import { Outlet, useNavigate, useLocation } from "react-router-dom";
1203
1206
  import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
@@ -1956,7 +1959,7 @@ function OrganisationSelector({
1956
1959
 
1957
1960
  // src/components/PasswordReset/PasswordResetForm.tsx
1958
1961
  import { useState as useState8 } from "react";
1959
- init_UnifiedAuthProvider();
1962
+ init_UnifiedAuthProvider2();
1960
1963
  import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
1961
1964
  function PasswordResetForm({
1962
1965
  onSuccess,
@@ -3159,7 +3162,8 @@ var TableCaption = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
3159
3162
  TableCaption.displayName = "TableCaption";
3160
3163
 
3161
3164
  // src/components/PublicLayout/EventLogo.tsx
3162
- import { useMemo as useMemo6 } from "react";
3165
+ import { useMemo as useMemo6, useContext } from "react";
3166
+ init_UnifiedAuthProvider();
3163
3167
  import { jsx as jsx21 } from "react/jsx-runtime";
3164
3168
  var sizeClasses = {
3165
3169
  xs: "h-4 w-4 text-xs",
@@ -3173,39 +3177,107 @@ function defaultGenerateFallbackText(eventName) {
3173
3177
  if (!eventName) return "EV";
3174
3178
  return eventName.split(" ").map((word) => word.charAt(0).toUpperCase()).join("").substring(0, 3);
3175
3179
  }
3176
- function EventLogo({
3180
+ function EventLogoPublic({
3177
3181
  eventId,
3178
3182
  eventName,
3179
3183
  organisationId,
3180
- size = "md",
3181
- className = "",
3182
- showFallback = true,
3183
- generateFallbackText = defaultGenerateFallbackText,
3184
- validateImage = true,
3185
- loadingComponent: LoadingComponent,
3186
- errorComponent: ErrorComponent
3184
+ size,
3185
+ className,
3186
+ showFallback,
3187
+ generateFallbackText,
3188
+ validateImage,
3189
+ LoadingComponent,
3190
+ ErrorComponent
3187
3191
  }) {
3188
- let isPublicPage = false;
3189
- try {
3190
- const { isPublicPage: publicContext } = usePublicPageContext();
3191
- isPublicPage = publicContext === true;
3192
- } catch {
3193
- isPublicPage = false;
3192
+ const publicPageContext = useContext(PublicPageContext);
3193
+ const supabase = publicPageContext?.supabase ?? null;
3194
+ const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
3195
+ const hasValidOrganisationId = organisationId && uuidRegex.test(organisationId);
3196
+ if (!supabase) {
3197
+ const effectiveSize = size || "md";
3198
+ return /* @__PURE__ */ jsx21("div", { className: `${sizeClasses[effectiveSize]} ${className}`.trim(), title: `${eventName} logo (Supabase not configured)`, children: eventName ? defaultGenerateFallbackText(eventName) : "EV" });
3194
3199
  }
3195
- const shouldAvoidAuthContext = useMemo6(() => {
3196
- if (isPublicPage) return true;
3197
- try {
3198
- (init_UnifiedAuthProvider(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3199
- return false;
3200
- } catch {
3201
- return true;
3200
+ const {
3201
+ logoUrl,
3202
+ fallbackText,
3203
+ isLoading,
3204
+ error
3205
+ } = usePublicEventLogo(
3206
+ eventId,
3207
+ eventName,
3208
+ organisationId,
3209
+ // Always pass organisationId, let the hook handle validation
3210
+ {
3211
+ validateImage,
3212
+ generateFallbackText,
3213
+ supabase
3214
+ }
3215
+ );
3216
+ const sizeClass = useMemo6(() => sizeClasses[size || "md"], [size]);
3217
+ const combinedClasses = useMemo6(() => {
3218
+ const baseClasses = "flex items-center justify-center bg-gray-100 text-gray-600 font-semibold rounded";
3219
+ return `${baseClasses} ${sizeClass} ${className}`.trim();
3220
+ }, [sizeClass, className]);
3221
+ if (!hasValidOrganisationId && !isLoading && !logoUrl && showFallback) {
3222
+ return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} logo (invalid organisation ID)`, children: fallbackText });
3223
+ }
3224
+ if (isLoading) {
3225
+ if (LoadingComponent) {
3226
+ return /* @__PURE__ */ jsx21(LoadingComponent, {});
3227
+ }
3228
+ return /* @__PURE__ */ jsx21("div", { className: `${combinedClasses} animate-pulse`, children: /* @__PURE__ */ jsx21("div", { className: "w-3/4 h-3/4 bg-gray-300 rounded" }) });
3229
+ }
3230
+ if (error) {
3231
+ if (ErrorComponent) {
3232
+ return /* @__PURE__ */ jsx21(ErrorComponent, { error });
3202
3233
  }
3203
- }, [isPublicPage]);
3234
+ if (showFallback) {
3235
+ return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} (logo unavailable)`, children: fallbackText });
3236
+ }
3237
+ return null;
3238
+ }
3239
+ if (!logoUrl) {
3240
+ if (showFallback) {
3241
+ return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} logo`, children: fallbackText });
3242
+ }
3243
+ return null;
3244
+ }
3245
+ return /* @__PURE__ */ jsx21(
3246
+ "img",
3247
+ {
3248
+ src: logoUrl,
3249
+ alt: `${eventName} logo`,
3250
+ className: `${sizeClass} ${className}`.trim(),
3251
+ onError: (e) => {
3252
+ const target = e.target;
3253
+ target.style.display = "none";
3254
+ const fallback = document.createElement("div");
3255
+ fallback.className = combinedClasses;
3256
+ fallback.textContent = fallbackText;
3257
+ fallback.title = `${eventName} logo`;
3258
+ target.parentNode?.insertBefore(fallback, target.nextSibling);
3259
+ }
3260
+ }
3261
+ );
3262
+ }
3263
+ function EventLogoAuthenticated({
3264
+ eventId,
3265
+ eventName,
3266
+ organisationId,
3267
+ size,
3268
+ className,
3269
+ showFallback,
3270
+ generateFallbackText,
3271
+ validateImage,
3272
+ LoadingComponent,
3273
+ ErrorComponent
3274
+ }) {
3275
+ const { supabase } = useUnifiedAuth();
3204
3276
  const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
3205
3277
  const hasValidOrganisationId = organisationId && uuidRegex.test(organisationId);
3206
- const { supabase } = usePublicPageContext();
3207
3278
  if (!supabase) {
3208
- return /* @__PURE__ */ jsx21("div", { className: `${sizeClasses[size]} ${className}`.trim(), title: `${eventName} logo (Supabase not configured)`, children: eventName ? defaultGenerateFallbackText(eventName) : "EV" });
3279
+ const effectiveSize = size || "md";
3280
+ return /* @__PURE__ */ jsx21("div", { className: `${sizeClasses[effectiveSize]} ${className}`.trim(), title: `${eventName} logo (Supabase not configured)`, children: eventName ? defaultGenerateFallbackText(eventName) : "EV" });
3209
3281
  }
3210
3282
  const {
3211
3283
  logoUrl,
@@ -3223,7 +3295,7 @@ function EventLogo({
3223
3295
  supabase
3224
3296
  }
3225
3297
  );
3226
- const sizeClass = useMemo6(() => sizeClasses[size], [size]);
3298
+ const sizeClass = useMemo6(() => sizeClasses[size || "md"], [size]);
3227
3299
  const combinedClasses = useMemo6(() => {
3228
3300
  const baseClasses = "flex items-center justify-center bg-gray-100 text-gray-600 font-semibold rounded";
3229
3301
  return `${baseClasses} ${sizeClass} ${className}`.trim();
@@ -3270,6 +3342,52 @@ function EventLogo({
3270
3342
  }
3271
3343
  );
3272
3344
  }
3345
+ function EventLogo({
3346
+ eventId,
3347
+ eventName,
3348
+ organisationId,
3349
+ size = "md",
3350
+ className = "",
3351
+ showFallback = true,
3352
+ generateFallbackText = defaultGenerateFallbackText,
3353
+ validateImage = true,
3354
+ loadingComponent: LoadingComponent,
3355
+ errorComponent: ErrorComponent
3356
+ }) {
3357
+ const isPublicPage = useIsPublicPage();
3358
+ if (isPublicPage) {
3359
+ return /* @__PURE__ */ jsx21(
3360
+ EventLogoPublic,
3361
+ {
3362
+ eventId,
3363
+ eventName,
3364
+ organisationId,
3365
+ size,
3366
+ className,
3367
+ showFallback,
3368
+ generateFallbackText,
3369
+ validateImage,
3370
+ LoadingComponent,
3371
+ ErrorComponent
3372
+ }
3373
+ );
3374
+ }
3375
+ return /* @__PURE__ */ jsx21(
3376
+ EventLogoAuthenticated,
3377
+ {
3378
+ eventId,
3379
+ eventName,
3380
+ organisationId,
3381
+ size,
3382
+ className,
3383
+ showFallback,
3384
+ generateFallbackText,
3385
+ validateImage,
3386
+ LoadingComponent,
3387
+ ErrorComponent
3388
+ }
3389
+ );
3390
+ }
3273
3391
  function EventLogoCompact(props) {
3274
3392
  return /* @__PURE__ */ jsx21(
3275
3393
  EventLogo,
@@ -3552,7 +3670,7 @@ function PublicPageDebugger({ enabled = true, label = "PublicPage" }) {
3552
3670
  console.warn(`[${label}] Not in PublicPageProvider context:`, error instanceof Error ? error.message : String(error));
3553
3671
  }
3554
3672
  try {
3555
- const { isAuthenticated } = (init_UnifiedAuthProvider(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3673
+ const { isAuthenticated } = (init_UnifiedAuthProvider2(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3556
3674
  console.warn(`[${label}] AUTHENTICATION CONTEXT DETECTED! This should not happen in public pages.`);
3557
3675
  console.warn(`[${label}] isAuthenticated:`, isAuthenticated);
3558
3676
  } catch (error) {
@@ -3629,7 +3747,7 @@ function PublicPageDiagnostic({ enabled = true, label = "PublicPage" }) {
3629
3747
  newDiagnostics.hasPublicPageContext = false;
3630
3748
  }
3631
3749
  try {
3632
- const { isAuthenticated } = (init_UnifiedAuthProvider(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3750
+ const { isAuthenticated } = (init_UnifiedAuthProvider2(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3633
3751
  newDiagnostics.hasAuthContext = true;
3634
3752
  } catch (error) {
3635
3753
  newDiagnostics.hasAuthContext = false;
@@ -3732,7 +3850,7 @@ function PublicPageContextChecker({ enabled = true, label = "PublicPage" }) {
3732
3850
  if (!enabled) return;
3733
3851
  console.group(`\u{1F6A8} [${label}] PUBLIC PAGE CONTEXT CHECK`);
3734
3852
  try {
3735
- const { isAuthenticated } = (init_UnifiedAuthProvider(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3853
+ const { isAuthenticated } = (init_UnifiedAuthProvider2(), __toCommonJS(UnifiedAuthProvider_exports)).useUnifiedAuth();
3736
3854
  console.error(`\u274C [${label}] AUTHENTICATION CONTEXT DETECTED!`);
3737
3855
  console.error(`\u274C [${label}] isAuthenticated:`, isAuthenticated);
3738
3856
  console.error(`\u274C [${label}] This public page is inside UnifiedAuthProvider - THIS IS WRONG!`);
@@ -3883,4 +4001,4 @@ export {
3883
4001
  PublicPageDiagnostic,
3884
4002
  PublicPageContextChecker
3885
4003
  };
3886
- //# sourceMappingURL=chunk-YEQDKCPW.js.map
4004
+ //# sourceMappingURL=chunk-I7O3RSMN.js.map