@jmruthers/pace-core 0.2.5 → 0.2.7
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-BHlzyKZP.d.ts → DataTable-C1AEm9Cx.d.ts} +1 -1
- package/dist/{DataTable-GEY5U7OI.js → DataTable-EEUDXPE5.js} +2 -8
- package/dist/{api-T6CBS7IO.js → api-ETQ6YJ3C.js} +2 -3
- package/dist/{chunk-DY5E3AT7.js → chunk-BEZRLNK3.js} +13 -3
- package/dist/chunk-BEZRLNK3.js.map +1 -0
- package/dist/{chunk-ANE4PDC2.js → chunk-C5G2A4PO.js} +159 -6
- package/dist/chunk-C5G2A4PO.js.map +1 -0
- package/dist/{chunk-WYB6MBZA.js → chunk-EWKPTNPO.js} +579 -973
- package/dist/chunk-EWKPTNPO.js.map +1 -0
- package/dist/{chunk-TMRLB2LA.js → chunk-HEMJ4SUJ.js} +2 -2
- package/dist/{chunk-O4T53L7X.js → chunk-HNDFPXUU.js} +5 -5
- package/dist/{chunk-UY7AM4QG.js → chunk-RRUYHORU.js} +161 -74
- package/dist/chunk-RRUYHORU.js.map +1 -0
- package/dist/{chunk-PFRRIDYA.js → chunk-TIVL4UQ7.js} +2 -2
- package/dist/{chunk-2MKP6IYD.js → chunk-VYG4AXYW.js} +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/components.js +15 -16
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/rbac/index.js +25 -20
- package/dist/rbac/index.js.map +1 -1
- package/dist/styles/core.css +83 -62
- package/dist/{types-CInEi-ng.d.ts → types-DiRQsGJs.d.ts} +0 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/PublicErrorBoundary.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/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +33 -33
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.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/FileSizeLimits.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/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.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/PaletteData.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/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/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 +10 -10
- package/docs/architecture/README.md +1 -1
- package/package.json +1 -1
- package/src/__tests__/shared/testUtils.optimized.tsx +65 -7
- package/src/components/DataTable/DataTable.tsx +1 -3
- package/src/components/DataTable/__tests__/DataTable.errorHandling.test.tsx +0 -8
- package/src/components/DataTable/__tests__/DataTable.hierarchical.test.tsx +17 -12
- package/src/components/DataTable/__tests__/DataTable.infinite-loop.test.tsx +0 -1
- package/src/components/DataTable/__tests__/DataTable.integration.test.tsx +4 -12
- package/src/components/DataTable/__tests__/DataTable.performance.test.tsx +0 -8
- package/src/components/DataTable/__tests__/DataTable.permissions.test.tsx +21 -11
- package/src/components/DataTable/__tests__/DataTable.sorting.test.tsx +321 -0
- package/src/components/DataTable/__tests__/DataTable.userWorkflows.test.tsx +21 -11
- package/src/components/DataTable/__tests__/DataTable.workflowValidation.test.tsx +94 -0
- package/src/components/DataTable/__tests__/DataTable.workflows.test.tsx +25 -15
- package/src/components/DataTable/__tests__/README.md +11 -2
- package/src/components/DataTable/__tests__/performance-regression.test.tsx +0 -11
- package/src/components/DataTable/__tests__/test-utils/sharedTestUtils.tsx +0 -1
- package/src/components/DataTable/components/ColumnVisibilityDropdown.tsx +2 -2
- package/src/components/DataTable/components/DataTableBody.tsx +34 -35
- package/src/components/DataTable/components/DataTableCore.tsx +205 -133
- package/src/components/DataTable/components/DataTableToolbar.tsx +9 -10
- package/src/components/DataTable/components/DraggableColumnHeader.tsx +3 -7
- package/src/components/DataTable/components/EditableRow.tsx +6 -7
- package/src/components/DataTable/components/FilterRow.tsx +0 -1
- package/src/components/DataTable/components/GroupingDropdown.tsx +2 -2
- package/src/components/DataTable/components/UnifiedTableBody.tsx +83 -281
- package/src/components/DataTable/components/VirtualizedDataTable.tsx +9 -89
- package/src/components/DataTable/components/__tests__/DataTable.accessibility.test.tsx +111 -5
- package/src/components/DataTable/components/__tests__/DataTable.integration.test.tsx +82 -13
- package/src/components/DataTable/components/__tests__/DataTable.performance.test.tsx +0 -1
- package/src/components/DataTable/components/__tests__/DataTable.real.test.tsx +2 -2
- package/src/components/DataTable/components/__tests__/DataTable.security.test.tsx +0 -1
- package/src/components/DataTable/components/__tests__/DataTable.unit.test.tsx +2 -2
- package/src/components/DataTable/components/__tests__/FilteringToggle.unit.test.tsx +3 -0
- package/src/components/DataTable/components/index.ts +0 -1
- package/src/components/DataTable/core/DataTableContext.tsx +0 -1
- package/src/components/DataTable/index.ts +0 -2
- package/src/components/DataTable/types.ts +0 -2
- package/src/components/Input/Input.tsx +2 -2
- package/src/components/Input/__tests__/Input.unit.test.tsx +4 -4
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.integration.test.tsx +6 -2
- package/src/components/RBAC/PagePermissionGuard.tsx +13 -0
- package/src/components/RBAC/__tests__/PagePermissionGuard.unit.test.tsx +10 -1
- package/src/components/Select/Select.tsx +7 -1
- package/src/components/__tests__/EdgeCaseTesting.enhanced.test.tsx +2 -1
- package/src/hooks/__tests__/useRBAC.unit.test.ts +32 -24
- package/src/providers/RBACProvider.tsx +14 -2
- package/src/providers/__tests__/UnifiedAuthProvider.unit.test.tsx +11 -3
- package/src/rbac/__tests__/cache-invalidation.test.ts +2 -2
- package/src/rbac/__tests__/cache.test.ts +3 -3
- package/src/rbac/hooks.ts +15 -7
- package/src/styles/core.css +83 -62
- package/src/utils/__tests__/lazyLoad.unit.test.tsx +13 -18
- package/src/utils/storage/__tests__/helpers.unit.test.ts +9 -7
- package/dist/cache-I72HKDOA.js +0 -12
- package/dist/cache-I72HKDOA.js.map +0 -1
- package/dist/chunk-ANE4PDC2.js.map +0 -1
- package/dist/chunk-DY5E3AT7.js.map +0 -1
- package/dist/chunk-MRRFJ6SA.js +0 -161
- package/dist/chunk-MRRFJ6SA.js.map +0 -1
- package/dist/chunk-UY7AM4QG.js.map +0 -1
- package/dist/chunk-WYB6MBZA.js.map +0 -1
- package/src/components/DataTable/__tests__/DataTable.autoSizing.test.tsx +0 -526
- package/src/components/DataTable/components/DataTableHeader.tsx +0 -31
- package/src/components/DataTable/components/__tests__/DataTableHeader.unit.test.tsx +0 -143
- package/src/components/DataTable/examples/AutoSizingExample.tsx +0 -180
- package/src/components/DataTable/examples/ColumnSizingComparison.tsx +0 -235
- package/src/components/DataTable/utils/__tests__/columnSizing.test.ts +0 -237
- package/src/components/DataTable/utils/columnSizing.ts +0 -125
- /package/dist/{DataTable-GEY5U7OI.js.map → DataTable-EEUDXPE5.js.map} +0 -0
- /package/dist/{api-T6CBS7IO.js.map → api-ETQ6YJ3C.js.map} +0 -0
- /package/dist/{chunk-TMRLB2LA.js.map → chunk-HEMJ4SUJ.js.map} +0 -0
- /package/dist/{chunk-O4T53L7X.js.map → chunk-HNDFPXUU.js.map} +0 -0
- /package/dist/{chunk-PFRRIDYA.js.map → chunk-TIVL4UQ7.js.map} +0 -0
- /package/dist/{chunk-2MKP6IYD.js.map → chunk-VYG4AXYW.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
init_UnifiedAuthProvider,
|
|
7
7
|
useOrganisations,
|
|
8
8
|
useUnifiedAuth
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BEZRLNK3.js";
|
|
10
10
|
import {
|
|
11
11
|
DebugLogger,
|
|
12
12
|
init_debugLogger,
|
|
@@ -323,4 +323,4 @@ export {
|
|
|
323
323
|
EventProvider_exports,
|
|
324
324
|
init_EventProvider
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-HEMJ4SUJ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePublicPageContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VYG4AXYW.js";
|
|
4
4
|
import {
|
|
5
5
|
init_OrganisationProvider,
|
|
6
6
|
init_UnifiedAuthProvider,
|
|
7
7
|
useOrganisations,
|
|
8
8
|
useUnifiedAuth
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BEZRLNK3.js";
|
|
10
10
|
|
|
11
11
|
// src/hooks/useOrganisationPermissions.ts
|
|
12
12
|
init_OrganisationProvider();
|
|
@@ -170,7 +170,7 @@ var useOrganisationSecurity = () => {
|
|
|
170
170
|
const targetOrgId = orgId || selectedOrganisation?.id;
|
|
171
171
|
if (!targetOrgId || !user) return false;
|
|
172
172
|
try {
|
|
173
|
-
const { isPermitted } = await import("./api-
|
|
173
|
+
const { isPermitted } = await import("./api-ETQ6YJ3C.js");
|
|
174
174
|
const scope = {
|
|
175
175
|
organisationId: targetOrgId,
|
|
176
176
|
eventId: user.user_metadata?.eventId || user.app_metadata?.eventId,
|
|
@@ -193,7 +193,7 @@ var useOrganisationSecurity = () => {
|
|
|
193
193
|
const targetOrgId = orgId || selectedOrganisation?.id;
|
|
194
194
|
if (!targetOrgId || !user) return [];
|
|
195
195
|
try {
|
|
196
|
-
const { getPermissionMap } = await import("./api-
|
|
196
|
+
const { getPermissionMap } = await import("./api-ETQ6YJ3C.js");
|
|
197
197
|
const scope = {
|
|
198
198
|
organisationId: targetOrgId,
|
|
199
199
|
eventId: user.user_metadata?.eventId || user.app_metadata?.eventId,
|
|
@@ -519,4 +519,4 @@ export {
|
|
|
519
519
|
generatePublicRoutePath,
|
|
520
520
|
extractEventCodeFromPath
|
|
521
521
|
};
|
|
522
|
-
//# sourceMappingURL=chunk-
|
|
522
|
+
//# sourceMappingURL=chunk-HNDFPXUU.js.map
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
SelectSeparator,
|
|
10
10
|
SelectTrigger,
|
|
11
11
|
SelectValue
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EWKPTNPO.js";
|
|
13
13
|
import {
|
|
14
14
|
isPermitted
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C5G2A4PO.js";
|
|
16
16
|
import {
|
|
17
17
|
EventProvider_exports,
|
|
18
18
|
init_EventProvider,
|
|
19
19
|
useEvents
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HEMJ4SUJ.js";
|
|
21
21
|
import {
|
|
22
22
|
PublicErrorBoundary,
|
|
23
23
|
useAppConfig,
|
|
24
24
|
usePublicEventLogo,
|
|
25
25
|
usePublicPageContext
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VYG4AXYW.js";
|
|
27
27
|
import {
|
|
28
28
|
OrganisationProvider_exports,
|
|
29
29
|
UnifiedAuthProvider_exports,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
init_UnifiedAuthProvider,
|
|
32
32
|
useOrganisations,
|
|
33
33
|
useUnifiedAuth
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BEZRLNK3.js";
|
|
35
35
|
import {
|
|
36
36
|
Button,
|
|
37
37
|
Dialog,
|
|
@@ -1291,7 +1291,7 @@ function PaceAppLayout({
|
|
|
1291
1291
|
eventId: user.user_metadata?.eventId || user.app_metadata?.eventId,
|
|
1292
1292
|
appId: user.user_metadata?.appId || user.app_metadata?.appId
|
|
1293
1293
|
};
|
|
1294
|
-
const { isSuperAdmin } = await import("./api-
|
|
1294
|
+
const { isSuperAdmin } = await import("./api-ETQ6YJ3C.js");
|
|
1295
1295
|
const isSuper = await isSuperAdmin(user.id);
|
|
1296
1296
|
if (isSuper) {
|
|
1297
1297
|
return true;
|
|
@@ -2622,9 +2622,88 @@ function FileUpload({
|
|
|
2622
2622
|
] });
|
|
2623
2623
|
}
|
|
2624
2624
|
|
|
2625
|
+
// src/components/Table/Table.tsx
|
|
2626
|
+
init_cn();
|
|
2627
|
+
import * as React17 from "react";
|
|
2628
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2629
|
+
var Table = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2630
|
+
"table",
|
|
2631
|
+
{
|
|
2632
|
+
ref,
|
|
2633
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
2634
|
+
...props
|
|
2635
|
+
}
|
|
2636
|
+
));
|
|
2637
|
+
Table.displayName = "Table";
|
|
2638
|
+
var TableHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
2639
|
+
TableHeader.displayName = "TableHeader";
|
|
2640
|
+
var TableBody = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2641
|
+
"tbody",
|
|
2642
|
+
{
|
|
2643
|
+
ref,
|
|
2644
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
2645
|
+
...props
|
|
2646
|
+
}
|
|
2647
|
+
));
|
|
2648
|
+
TableBody.displayName = "TableBody";
|
|
2649
|
+
var TableFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2650
|
+
"tfoot",
|
|
2651
|
+
{
|
|
2652
|
+
ref,
|
|
2653
|
+
className: cn(
|
|
2654
|
+
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
2655
|
+
className
|
|
2656
|
+
),
|
|
2657
|
+
...props
|
|
2658
|
+
}
|
|
2659
|
+
));
|
|
2660
|
+
TableFooter.displayName = "TableFooter";
|
|
2661
|
+
var TableRow = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2662
|
+
"tr",
|
|
2663
|
+
{
|
|
2664
|
+
ref,
|
|
2665
|
+
className: cn(
|
|
2666
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
2667
|
+
className
|
|
2668
|
+
),
|
|
2669
|
+
...props
|
|
2670
|
+
}
|
|
2671
|
+
));
|
|
2672
|
+
TableRow.displayName = "TableRow";
|
|
2673
|
+
var TableHead = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2674
|
+
"th",
|
|
2675
|
+
{
|
|
2676
|
+
ref,
|
|
2677
|
+
className: cn(
|
|
2678
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
2679
|
+
className
|
|
2680
|
+
),
|
|
2681
|
+
...props
|
|
2682
|
+
}
|
|
2683
|
+
));
|
|
2684
|
+
TableHead.displayName = "TableHead";
|
|
2685
|
+
var TableCell = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2686
|
+
"td",
|
|
2687
|
+
{
|
|
2688
|
+
ref,
|
|
2689
|
+
className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
|
|
2690
|
+
...props
|
|
2691
|
+
}
|
|
2692
|
+
));
|
|
2693
|
+
TableCell.displayName = "TableCell";
|
|
2694
|
+
var TableCaption = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2695
|
+
"caption",
|
|
2696
|
+
{
|
|
2697
|
+
ref,
|
|
2698
|
+
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
2699
|
+
...props
|
|
2700
|
+
}
|
|
2701
|
+
));
|
|
2702
|
+
TableCaption.displayName = "TableCaption";
|
|
2703
|
+
|
|
2625
2704
|
// src/components/PublicLayout/EventLogo.tsx
|
|
2626
2705
|
import { useMemo as useMemo6 } from "react";
|
|
2627
|
-
import { jsx as
|
|
2706
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2628
2707
|
var sizeClasses = {
|
|
2629
2708
|
xs: "h-4 w-4 text-xs",
|
|
2630
2709
|
sm: "h-6 w-6 text-sm",
|
|
@@ -2669,7 +2748,7 @@ function EventLogo({
|
|
|
2669
2748
|
const hasValidOrganisationId = organisationId && uuidRegex.test(organisationId);
|
|
2670
2749
|
const { supabase } = usePublicPageContext();
|
|
2671
2750
|
if (!supabase) {
|
|
2672
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ jsx21("div", { className: `${sizeClasses[size]} ${className}`.trim(), title: `${eventName} logo (Supabase not configured)`, children: eventName ? defaultGenerateFallbackText(eventName) : "EV" });
|
|
2673
2752
|
}
|
|
2674
2753
|
const {
|
|
2675
2754
|
logoUrl,
|
|
@@ -2693,30 +2772,30 @@ function EventLogo({
|
|
|
2693
2772
|
return `${baseClasses} ${sizeClass} ${className}`.trim();
|
|
2694
2773
|
}, [sizeClass, className]);
|
|
2695
2774
|
if (!hasValidOrganisationId && !isLoading && !logoUrl && showFallback) {
|
|
2696
|
-
return /* @__PURE__ */
|
|
2775
|
+
return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} logo (invalid organisation ID)`, children: fallbackText });
|
|
2697
2776
|
}
|
|
2698
2777
|
if (isLoading) {
|
|
2699
2778
|
if (LoadingComponent) {
|
|
2700
|
-
return /* @__PURE__ */
|
|
2779
|
+
return /* @__PURE__ */ jsx21(LoadingComponent, {});
|
|
2701
2780
|
}
|
|
2702
|
-
return /* @__PURE__ */
|
|
2781
|
+
return /* @__PURE__ */ jsx21("div", { className: `${combinedClasses} animate-pulse`, children: /* @__PURE__ */ jsx21("div", { className: "w-3/4 h-3/4 bg-gray-300 rounded" }) });
|
|
2703
2782
|
}
|
|
2704
2783
|
if (error) {
|
|
2705
2784
|
if (ErrorComponent) {
|
|
2706
|
-
return /* @__PURE__ */
|
|
2785
|
+
return /* @__PURE__ */ jsx21(ErrorComponent, { error });
|
|
2707
2786
|
}
|
|
2708
2787
|
if (showFallback) {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} (logo unavailable)`, children: fallbackText });
|
|
2710
2789
|
}
|
|
2711
2790
|
return null;
|
|
2712
2791
|
}
|
|
2713
2792
|
if (!logoUrl) {
|
|
2714
2793
|
if (showFallback) {
|
|
2715
|
-
return /* @__PURE__ */
|
|
2794
|
+
return /* @__PURE__ */ jsx21("div", { className: combinedClasses, title: `${eventName} logo`, children: fallbackText });
|
|
2716
2795
|
}
|
|
2717
2796
|
return null;
|
|
2718
2797
|
}
|
|
2719
|
-
return /* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ jsx21(
|
|
2720
2799
|
"img",
|
|
2721
2800
|
{
|
|
2722
2801
|
src: logoUrl,
|
|
@@ -2735,7 +2814,7 @@ function EventLogo({
|
|
|
2735
2814
|
);
|
|
2736
2815
|
}
|
|
2737
2816
|
function EventLogoCompact(props) {
|
|
2738
|
-
return /* @__PURE__ */
|
|
2817
|
+
return /* @__PURE__ */ jsx21(
|
|
2739
2818
|
EventLogo,
|
|
2740
2819
|
{
|
|
2741
2820
|
...props,
|
|
@@ -2745,7 +2824,7 @@ function EventLogoCompact(props) {
|
|
|
2745
2824
|
);
|
|
2746
2825
|
}
|
|
2747
2826
|
function EventLogoLarge(props) {
|
|
2748
|
-
return /* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ jsx21(
|
|
2749
2828
|
EventLogo,
|
|
2750
2829
|
{
|
|
2751
2830
|
...props,
|
|
@@ -2756,7 +2835,7 @@ function EventLogoLarge(props) {
|
|
|
2756
2835
|
}
|
|
2757
2836
|
|
|
2758
2837
|
// src/components/PublicLayout/PublicPageHeader.tsx
|
|
2759
|
-
import { jsx as
|
|
2838
|
+
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2760
2839
|
function PublicPageHeader({
|
|
2761
2840
|
event,
|
|
2762
2841
|
eventCode,
|
|
@@ -2771,10 +2850,10 @@ function PublicPageHeader({
|
|
|
2771
2850
|
}) {
|
|
2772
2851
|
const { appName } = useAppConfig();
|
|
2773
2852
|
const headerClasses = `bg-white border-b border-gray-200 ${className}`.trim();
|
|
2774
|
-
return /* @__PURE__ */
|
|
2853
|
+
return /* @__PURE__ */ jsx22("header", { className: headerClasses, children: /* @__PURE__ */ jsxs15("div", { className: "px-4 w-[min(var(--app-width),100%)] mx-auto", children: [
|
|
2775
2854
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between py-4", children: [
|
|
2776
|
-
showAppLogo && /* @__PURE__ */
|
|
2777
|
-
/* @__PURE__ */
|
|
2855
|
+
showAppLogo && /* @__PURE__ */ jsx22("div", { className: "flex-shrink-0", children: customAppLogo || /* @__PURE__ */ jsxs15("div", { className: "flex items-center", children: [
|
|
2856
|
+
/* @__PURE__ */ jsx22(
|
|
2778
2857
|
"img",
|
|
2779
2858
|
{
|
|
2780
2859
|
className: "h-8 w-auto",
|
|
@@ -2782,9 +2861,9 @@ function PublicPageHeader({
|
|
|
2782
2861
|
alt: appName
|
|
2783
2862
|
}
|
|
2784
2863
|
),
|
|
2785
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsx22("span", { className: "ml-2 text-lg font-semibold text-gray-900", children: appName })
|
|
2786
2865
|
] }) }),
|
|
2787
|
-
showEventLogo && /* @__PURE__ */
|
|
2866
|
+
showEventLogo && /* @__PURE__ */ jsx22("div", { className: "flex-shrink-0", children: customEventLogo || /* @__PURE__ */ jsx22(
|
|
2788
2867
|
EventLogo,
|
|
2789
2868
|
{
|
|
2790
2869
|
eventId: event.event_id,
|
|
@@ -2795,21 +2874,21 @@ function PublicPageHeader({
|
|
|
2795
2874
|
}
|
|
2796
2875
|
) })
|
|
2797
2876
|
] }),
|
|
2798
|
-
/* @__PURE__ */
|
|
2799
|
-
/* @__PURE__ */
|
|
2800
|
-
event.event_venue && /* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ jsx22("div", { className: "pb-4", children: /* @__PURE__ */ jsxs15("div", { className: "text-center", children: [
|
|
2878
|
+
/* @__PURE__ */ jsx22("h1", { className: "text-3xl font-bold text-gray-900 mb-2", children: event.event_name }),
|
|
2879
|
+
event.event_venue && /* @__PURE__ */ jsx22("p", { className: "text-md text-gray-500 mb-4", children: event.event_venue }),
|
|
2801
2880
|
title && /* @__PURE__ */ jsxs15("div", { className: "mt-6", children: [
|
|
2802
|
-
/* @__PURE__ */
|
|
2803
|
-
description && /* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ jsx22("h2", { className: "text-2xl font-semibold text-gray-800 mb-2", children: title }),
|
|
2882
|
+
description && /* @__PURE__ */ jsx22("p", { className: "text-lg text-gray-600 max-w-3xl mx-auto", children: description })
|
|
2804
2883
|
] }),
|
|
2805
|
-
children && /* @__PURE__ */
|
|
2884
|
+
children && /* @__PURE__ */ jsx22("div", { className: "mt-4", children })
|
|
2806
2885
|
] }) })
|
|
2807
2886
|
] }) });
|
|
2808
2887
|
}
|
|
2809
2888
|
|
|
2810
2889
|
// src/components/PublicLayout/PublicPageFooter.tsx
|
|
2811
2890
|
init_cn();
|
|
2812
|
-
import { Fragment as Fragment5, jsx as
|
|
2891
|
+
import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2813
2892
|
function PublicPageFooter({
|
|
2814
2893
|
event,
|
|
2815
2894
|
companyName = "Solvera Solutions Pty Ltd",
|
|
@@ -2821,16 +2900,16 @@ function PublicPageFooter({
|
|
|
2821
2900
|
children
|
|
2822
2901
|
}) {
|
|
2823
2902
|
const copyrightText = copyright || `\xA9 Copyright 2022\u2013${year} all rights reserved, ${companyName}.`;
|
|
2824
|
-
return /* @__PURE__ */
|
|
2825
|
-
logo && /* @__PURE__ */
|
|
2826
|
-
children && /* @__PURE__ */
|
|
2827
|
-
/* @__PURE__ */
|
|
2828
|
-
links && links.length > 0 && /* @__PURE__ */
|
|
2903
|
+
return /* @__PURE__ */ jsx23("footer", { className: cn("mt-8 py-6 flex justify-center border-t border-border bg-main-100", className), children: /* @__PURE__ */ jsxs16("section", { className: "px-4 w-[min(var(--app-width),100%)] mx-auto text-center", children: [
|
|
2904
|
+
logo && /* @__PURE__ */ jsx23("img", { src: logo, alt: "Logo", className: "h-8 w-auto" }),
|
|
2905
|
+
children && /* @__PURE__ */ jsx23(Fragment5, { children }),
|
|
2906
|
+
/* @__PURE__ */ jsx23("span", { className: "text-muted-foreground", children: copyrightText }),
|
|
2907
|
+
links && links.length > 0 && /* @__PURE__ */ jsx23("ul", { className: "flex gap-4 mt-2 md:mt-0", children: links.map((link, index) => /* @__PURE__ */ jsx23("li", { children: /* @__PURE__ */ jsx23("a", { href: link.href, className: "text-muted-foreground hover:text-foreground", children: link.label }) }, index)) })
|
|
2829
2908
|
] }) });
|
|
2830
2909
|
}
|
|
2831
2910
|
|
|
2832
2911
|
// src/components/PublicLayout/PublicLoadingSpinner.tsx
|
|
2833
|
-
import { jsx as
|
|
2912
|
+
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2834
2913
|
var sizeClasses2 = {
|
|
2835
2914
|
sm: "h-4 w-4",
|
|
2836
2915
|
md: "h-8 w-8",
|
|
@@ -2848,7 +2927,7 @@ function PublicLoadingSpinner({
|
|
|
2848
2927
|
const sizeClass = sizeClasses2[size];
|
|
2849
2928
|
const displayMessage = customMessage || message;
|
|
2850
2929
|
const content = /* @__PURE__ */ jsxs17("div", { className: `flex flex-col items-center ${className}`, children: [
|
|
2851
|
-
showLogo && /* @__PURE__ */
|
|
2930
|
+
showLogo && /* @__PURE__ */ jsx24("div", { className: "mb-4", children: /* @__PURE__ */ jsx24(
|
|
2852
2931
|
"img",
|
|
2853
2932
|
{
|
|
2854
2933
|
className: "h-8 w-auto",
|
|
@@ -2857,7 +2936,7 @@ function PublicLoadingSpinner({
|
|
|
2857
2936
|
}
|
|
2858
2937
|
) }),
|
|
2859
2938
|
/* @__PURE__ */ jsxs17("div", { className: "relative", children: [
|
|
2860
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ jsx24(
|
|
2861
2940
|
"div",
|
|
2862
2941
|
{
|
|
2863
2942
|
className: `${sizeClass} border-2 border-gray-200 border-t-blue-600 rounded-full animate-spin`,
|
|
@@ -2865,12 +2944,12 @@ function PublicLoadingSpinner({
|
|
|
2865
2944
|
"aria-label": "Loading"
|
|
2866
2945
|
}
|
|
2867
2946
|
),
|
|
2868
|
-
/* @__PURE__ */
|
|
2947
|
+
/* @__PURE__ */ jsx24("span", { className: "sr-only", children: displayMessage })
|
|
2869
2948
|
] }),
|
|
2870
|
-
displayMessage && /* @__PURE__ */
|
|
2949
|
+
displayMessage && /* @__PURE__ */ jsx24("p", { className: "mt-4 text-sm text-gray-600 text-center", children: displayMessage })
|
|
2871
2950
|
] });
|
|
2872
2951
|
if (centered) {
|
|
2873
|
-
return /* @__PURE__ */
|
|
2952
|
+
return /* @__PURE__ */ jsx24("div", { className: "min-h-screen bg-white flex items-center justify-center", children: /* @__PURE__ */ jsx24("div", { className: "max-w-md mx-auto px-4", children: content }) });
|
|
2874
2953
|
}
|
|
2875
2954
|
return content;
|
|
2876
2955
|
}
|
|
@@ -2879,8 +2958,8 @@ function PublicLoadingSpinnerFullPage({
|
|
|
2879
2958
|
eventName,
|
|
2880
2959
|
className = ""
|
|
2881
2960
|
}) {
|
|
2882
|
-
return /* @__PURE__ */
|
|
2883
|
-
/* @__PURE__ */
|
|
2961
|
+
return /* @__PURE__ */ jsx24("div", { className: `min-h-screen bg-white flex items-center justify-center ${className}`, children: /* @__PURE__ */ jsxs17("div", { className: "max-w-md mx-auto text-center px-4", children: [
|
|
2962
|
+
/* @__PURE__ */ jsx24("div", { className: "mb-8", children: /* @__PURE__ */ jsx24(
|
|
2884
2963
|
"img",
|
|
2885
2964
|
{
|
|
2886
2965
|
className: "h-12 w-auto mx-auto",
|
|
@@ -2888,8 +2967,8 @@ function PublicLoadingSpinnerFullPage({
|
|
|
2888
2967
|
alt: "PACE Core"
|
|
2889
2968
|
}
|
|
2890
2969
|
) }),
|
|
2891
|
-
eventName && /* @__PURE__ */
|
|
2892
|
-
/* @__PURE__ */
|
|
2970
|
+
eventName && /* @__PURE__ */ jsx24("h1", { className: "text-2xl font-bold text-gray-900 mb-4", children: eventName }),
|
|
2971
|
+
/* @__PURE__ */ jsx24("div", { className: "relative mb-6", children: /* @__PURE__ */ jsx24(
|
|
2893
2972
|
"div",
|
|
2894
2973
|
{
|
|
2895
2974
|
className: "h-12 w-12 border-4 border-gray-200 border-t-blue-600 rounded-full animate-spin mx-auto",
|
|
@@ -2897,11 +2976,11 @@ function PublicLoadingSpinnerFullPage({
|
|
|
2897
2976
|
"aria-label": "Loading"
|
|
2898
2977
|
}
|
|
2899
2978
|
) }),
|
|
2900
|
-
/* @__PURE__ */
|
|
2979
|
+
/* @__PURE__ */ jsx24("p", { className: "text-lg text-gray-600", children: message }),
|
|
2901
2980
|
/* @__PURE__ */ jsxs17("div", { className: "mt-4 flex justify-center space-x-1", children: [
|
|
2902
|
-
/* @__PURE__ */
|
|
2903
|
-
/* @__PURE__ */
|
|
2904
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ jsx24("div", { className: "h-2 w-2 bg-blue-600 rounded-full animate-bounce", style: { animationDelay: "0ms" } }),
|
|
2982
|
+
/* @__PURE__ */ jsx24("div", { className: "h-2 w-2 bg-blue-600 rounded-full animate-bounce", style: { animationDelay: "150ms" } }),
|
|
2983
|
+
/* @__PURE__ */ jsx24("div", { className: "h-2 w-2 bg-blue-600 rounded-full animate-bounce", style: { animationDelay: "300ms" } })
|
|
2905
2984
|
] })
|
|
2906
2985
|
] }) });
|
|
2907
2986
|
}
|
|
@@ -2909,7 +2988,7 @@ function PublicLoadingSkeleton({
|
|
|
2909
2988
|
lines = 3,
|
|
2910
2989
|
className = ""
|
|
2911
2990
|
}) {
|
|
2912
|
-
return /* @__PURE__ */
|
|
2991
|
+
return /* @__PURE__ */ jsx24("div", { className: `animate-pulse ${className}`, children: Array.from({ length: lines }).map((_, index) => /* @__PURE__ */ jsx24(
|
|
2913
2992
|
"div",
|
|
2914
2993
|
{
|
|
2915
2994
|
className: `h-4 bg-gray-200 rounded mb-2 ${index === lines - 1 ? "w-3/4" : "w-full"}`
|
|
@@ -2920,7 +2999,7 @@ function PublicLoadingSkeleton({
|
|
|
2920
2999
|
|
|
2921
3000
|
// src/components/PublicLayout/PublicPageLayout.tsx
|
|
2922
3001
|
import { useMemo as useMemo7 } from "react";
|
|
2923
|
-
import { jsx as
|
|
3002
|
+
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2924
3003
|
function PublicPageLayout({
|
|
2925
3004
|
eventCode,
|
|
2926
3005
|
children,
|
|
@@ -2942,17 +3021,17 @@ function PublicPageLayout({
|
|
|
2942
3021
|
return `${baseClasses} ${className}`.trim();
|
|
2943
3022
|
}, [className]);
|
|
2944
3023
|
if (isLoading) {
|
|
2945
|
-
return /* @__PURE__ */
|
|
3024
|
+
return /* @__PURE__ */ jsx25("div", { className: layoutClasses, children: /* @__PURE__ */ jsx25("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ jsx25(LoadingFallback, {}) }) });
|
|
2946
3025
|
}
|
|
2947
3026
|
if (error && showValidationErrors) {
|
|
2948
|
-
return /* @__PURE__ */
|
|
2949
|
-
/* @__PURE__ */
|
|
3027
|
+
return /* @__PURE__ */ jsx25("div", { className: layoutClasses, children: /* @__PURE__ */ jsx25("div", { className: "flex-1 flex items-center justify-center", children: ErrorFallback ? /* @__PURE__ */ jsx25(ErrorFallback, { error, retry: refetch }) : /* @__PURE__ */ jsxs18("div", { className: "text-center p-8", children: [
|
|
3028
|
+
/* @__PURE__ */ jsx25("h1", { className: "text-2xl font-bold text-gray-900 mb-4", children: "Event Not Found" }),
|
|
2950
3029
|
/* @__PURE__ */ jsxs18("p", { className: "text-gray-600 mb-6", children: [
|
|
2951
3030
|
'The event code "',
|
|
2952
3031
|
eventCode,
|
|
2953
3032
|
'" is invalid or the event is not available for public viewing.'
|
|
2954
3033
|
] }),
|
|
2955
|
-
/* @__PURE__ */
|
|
3034
|
+
/* @__PURE__ */ jsx25(
|
|
2956
3035
|
"button",
|
|
2957
3036
|
{
|
|
2958
3037
|
onClick: refetch,
|
|
@@ -2963,10 +3042,10 @@ function PublicPageLayout({
|
|
|
2963
3042
|
] }) }) });
|
|
2964
3043
|
}
|
|
2965
3044
|
if (!event) {
|
|
2966
|
-
return /* @__PURE__ */
|
|
2967
|
-
/* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2969
|
-
/* @__PURE__ */
|
|
3045
|
+
return /* @__PURE__ */ jsx25("div", { className: layoutClasses, children: /* @__PURE__ */ jsx25("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ jsxs18("div", { className: "text-center p-8", children: [
|
|
3046
|
+
/* @__PURE__ */ jsx25("h1", { className: "text-2xl font-bold text-gray-900 mb-4", children: "Event Not Available" }),
|
|
3047
|
+
/* @__PURE__ */ jsx25("p", { className: "text-gray-600 mb-6", children: "This event is not available for public viewing." }),
|
|
3048
|
+
/* @__PURE__ */ jsx25(
|
|
2970
3049
|
"button",
|
|
2971
3050
|
{
|
|
2972
3051
|
onClick: refetch,
|
|
@@ -2976,16 +3055,16 @@ function PublicPageLayout({
|
|
|
2976
3055
|
)
|
|
2977
3056
|
] }) }) });
|
|
2978
3057
|
}
|
|
2979
|
-
return /* @__PURE__ */
|
|
2980
|
-
customHeader || /* @__PURE__ */
|
|
3058
|
+
return /* @__PURE__ */ jsx25(PublicErrorBoundary, { children: /* @__PURE__ */ jsxs18("div", { className: layoutClasses, children: [
|
|
3059
|
+
customHeader || /* @__PURE__ */ jsx25(
|
|
2981
3060
|
PublicPageHeader,
|
|
2982
3061
|
{
|
|
2983
3062
|
event,
|
|
2984
3063
|
eventCode
|
|
2985
3064
|
}
|
|
2986
3065
|
),
|
|
2987
|
-
/* @__PURE__ */
|
|
2988
|
-
showFooter && (customFooter || /* @__PURE__ */
|
|
3066
|
+
/* @__PURE__ */ jsx25("main", { className: "px-4 w-[min(var(--app-width),100%)] mx-auto py-8", children }),
|
|
3067
|
+
showFooter && (customFooter || /* @__PURE__ */ jsx25(PublicPageFooter, { event }))
|
|
2989
3068
|
] }) });
|
|
2990
3069
|
}
|
|
2991
3070
|
function usePublicPageContext2() {
|
|
@@ -3003,7 +3082,7 @@ function usePublicPageContext2() {
|
|
|
3003
3082
|
|
|
3004
3083
|
// src/components/PublicLayout/PublicPageDebugger.tsx
|
|
3005
3084
|
import { useEffect as useEffect5 } from "react";
|
|
3006
|
-
import { jsx as
|
|
3085
|
+
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3007
3086
|
function PublicPageDebugger({ enabled = true, label = "PublicPage" }) {
|
|
3008
3087
|
useEffect5(() => {
|
|
3009
3088
|
if (!enabled) return;
|
|
@@ -3057,14 +3136,14 @@ function PublicPageDebugger({ enabled = true, label = "PublicPage" }) {
|
|
|
3057
3136
|
zIndex: 9999,
|
|
3058
3137
|
fontFamily: "monospace"
|
|
3059
3138
|
}, children: [
|
|
3060
|
-
/* @__PURE__ */
|
|
3061
|
-
/* @__PURE__ */
|
|
3139
|
+
/* @__PURE__ */ jsx26("div", { children: "Public Page Debugger" }),
|
|
3140
|
+
/* @__PURE__ */ jsx26("div", { children: "Check console for context analysis" })
|
|
3062
3141
|
] });
|
|
3063
3142
|
}
|
|
3064
3143
|
|
|
3065
3144
|
// src/components/PublicLayout/PublicPageDiagnostic.tsx
|
|
3066
3145
|
import { useEffect as useEffect6, useState as useState11 } from "react";
|
|
3067
|
-
import { jsx as
|
|
3146
|
+
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3068
3147
|
function PublicPageDiagnostic({ enabled = true, label = "PublicPage" }) {
|
|
3069
3148
|
const [diagnostics, setDiagnostics] = useState11({
|
|
3070
3149
|
hasPublicPageContext: false,
|
|
@@ -3158,7 +3237,7 @@ function PublicPageDiagnostic({ enabled = true, label = "PublicPage" }) {
|
|
|
3158
3237
|
maxWidth: "300px",
|
|
3159
3238
|
borderRadius: "0 0 8px 0"
|
|
3160
3239
|
}, children: [
|
|
3161
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ jsx27("div", { style: { fontWeight: "bold", marginBottom: "8px" }, children: "\u{1F50D} Public Page Diagnostics" }),
|
|
3162
3241
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
3163
3242
|
"Public Context: ",
|
|
3164
3243
|
diagnostics.hasPublicPageContext ? "\u2705" : "\u274C"
|
|
@@ -3183,13 +3262,13 @@ function PublicPageDiagnostic({ enabled = true, label = "PublicPage" }) {
|
|
|
3183
3262
|
"Route Params: ",
|
|
3184
3263
|
diagnostics.routeParams ? "\u2705" : "\u274C"
|
|
3185
3264
|
] }),
|
|
3186
|
-
/* @__PURE__ */
|
|
3265
|
+
/* @__PURE__ */ jsx27("div", { style: { marginTop: "8px", fontSize: "10px", opacity: 0.8 }, children: "Check console for detailed analysis" })
|
|
3187
3266
|
] });
|
|
3188
3267
|
}
|
|
3189
3268
|
|
|
3190
3269
|
// src/components/PublicLayout/PublicPageContextChecker.tsx
|
|
3191
3270
|
import { useEffect as useEffect7 } from "react";
|
|
3192
|
-
import { jsx as
|
|
3271
|
+
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3193
3272
|
function PublicPageContextChecker({ enabled = true, label = "PublicPage" }) {
|
|
3194
3273
|
useEffect7(() => {
|
|
3195
3274
|
if (!enabled) return;
|
|
@@ -3267,9 +3346,9 @@ function PublicPageContextChecker({ enabled = true, label = "PublicPage" }) {
|
|
|
3267
3346
|
borderRadius: "0 0 8px 0",
|
|
3268
3347
|
border: "2px solid #dc2626"
|
|
3269
3348
|
}, children: [
|
|
3270
|
-
/* @__PURE__ */
|
|
3271
|
-
/* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3349
|
+
/* @__PURE__ */ jsx28("div", { style: { fontWeight: "bold", marginBottom: "8px" }, children: "\u{1F6A8} PUBLIC PAGE CONTEXT CHECK" }),
|
|
3350
|
+
/* @__PURE__ */ jsx28("div", { children: "Check console for authentication context analysis" }),
|
|
3351
|
+
/* @__PURE__ */ jsx28("div", { style: { marginTop: "8px", fontSize: "10px", opacity: 0.9 }, children: "If you see \u274C errors in console, your public page is inside auth context!" })
|
|
3273
3352
|
] });
|
|
3274
3353
|
}
|
|
3275
3354
|
|
|
@@ -3327,6 +3406,14 @@ export {
|
|
|
3327
3406
|
useStorage,
|
|
3328
3407
|
useFileUpload,
|
|
3329
3408
|
FileUpload,
|
|
3409
|
+
Table,
|
|
3410
|
+
TableHeader,
|
|
3411
|
+
TableBody,
|
|
3412
|
+
TableFooter,
|
|
3413
|
+
TableRow,
|
|
3414
|
+
TableHead,
|
|
3415
|
+
TableCell,
|
|
3416
|
+
TableCaption,
|
|
3330
3417
|
EventLogo,
|
|
3331
3418
|
EventLogoCompact,
|
|
3332
3419
|
EventLogoLarge,
|
|
@@ -3341,4 +3428,4 @@ export {
|
|
|
3341
3428
|
PublicPageDiagnostic,
|
|
3342
3429
|
PublicPageContextChecker
|
|
3343
3430
|
};
|
|
3344
|
-
//# sourceMappingURL=chunk-
|
|
3431
|
+
//# sourceMappingURL=chunk-RRUYHORU.js.map
|