@jmruthers/pace-core 0.5.94 → 0.5.95
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-CHX2EFO3.js → DataTable-XENXNMCP.js} +2 -2
- package/dist/{PublicLoadingSpinner-BWUD6bLU.d.ts → PublicLoadingSpinner-B84QWsvB.d.ts} +8 -1
- package/dist/{chunk-PRM6EYO3.js → chunk-EPKHU5SS.js} +17 -8
- package/dist/{chunk-PRM6EYO3.js.map → chunk-EPKHU5SS.js.map} +1 -1
- package/dist/{chunk-O6GASC4Q.js → chunk-V5CTX4FR.js} +267 -182
- package/dist/chunk-V5CTX4FR.js.map +1 -0
- package/dist/components.d.ts +1 -1
- package/dist/components.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- 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/EventLogoProps.md +1 -1
- package/docs/api/interfaces/FileDisplayProps.md +37 -11
- 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 +1 -1
- 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/UseEventLogoOptions.md +1 -1
- package/docs/api/interfaces/UseEventLogoReturn.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/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 +3 -3
- package/package.json +1 -1
- package/src/components/DataTable/components/DataTableCore.tsx +27 -9
- package/src/components/FileDisplay/FileDisplay.tsx +189 -147
- package/src/hooks/useFileUrl.ts +130 -0
- package/dist/chunk-O6GASC4Q.js.map +0 -1
- /package/dist/{DataTable-CHX2EFO3.js.map → DataTable-XENXNMCP.js.map} +0 -0
package/dist/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { a as UnifiedAuthContextType, c as UnifiedAuthProvider, b as UnifiedAuthProviderProps, u as useUnifiedAuth } from './UnifiedAuthProvider-BVKmQd9u.js';
|
|
2
|
-
export { A as Alert, m as AlertDescription, l as AlertTitle, n as Avatar, p as AvatarFallback, o as AvatarImage, B as Button, a as ButtonProps, C as Card, g as CardActions, i as CardActionsProps, f as CardContent, e as CardDescription, c as CardFooter, b as CardHeader, h as CardProps, d as CardTitle, q as Checkbox, bb as DefaultPublicErrorFallback, D as Dialog, K as DialogBody, G as DialogClose, H as DialogContent, U as DialogContentProps, O as DialogDescription, Z as DialogDescriptionProps, M as DialogFooter, X as DialogFooterProps, J as DialogHeader, W as DialogHeaderProps, E as DialogOverlay, V as DialogOverlayProps, z as DialogPortal, Q as DialogProps, _ as DialogSize, N as DialogTitle, Y as DialogTitleProps, F as DialogTrigger, R as DialogTriggerProps, aB as ErrorBoundary, aC as ErrorBoundaryProps, aD as ErrorBoundaryState, b6 as EventLogo, b7 as EventLogoCompact, b8 as EventLogoLarge, bi as EventLogoProps, aG as EventSelector, aK as FileDisplay, aL as FileDisplayProps, aI as FileUpload, aJ as FileUploadProps, ar as Footer, as as FooterProps, am as Form, an as FormProps, aq as Header, I as Input, j as InputProps, L as Label, k as LabelProps, aE as LoadingSpinner, ao as LoginForm, ap as LoginFormProps, ax as NavigationItem, av as NavigationMenu, aw as NavigationMenuProps, ay as OrganisationSelector, az as OrganisationSelectorProps, bn as PaceAppLayout, bm as PaceAppLayoutProps, bp as PaceLoginPage, bo as PaceLoginPageProps, aH as PasswordResetForm, P as Progress, at as ProtectedRoute, au as ProtectedRouteProps, b9 as PublicErrorBoundary, bj as PublicErrorBoundaryProps, bk as PublicErrorBoundaryState, be as PublicLoadingSkeleton, bc as PublicLoadingSpinner, bd as PublicLoadingSpinnerFullPage, bl as PublicLoadingSpinnerProps, b5 as PublicPageContextChecker, b3 as PublicPageDebugger, b4 as PublicPageDiagnostic, b2 as PublicPageFooter, bh as PublicPageFooterProps, a_ as PublicPageHeader, bg as PublicPageHeaderProps, aY as PublicPageLayout, bf as PublicPageLayoutProps, a$ as PublicPageProvider, $ as Select, a3 as SelectContent, a0 as SelectGroup, a5 as SelectItem, a4 as SelectLabel, a6 as SelectSeparator, a2 as SelectTrigger, a1 as SelectValue, aF as SessionRestorationLoader, S as Switch, r as SwitchProps, T as Table, t as TableBody, u as TableCaption, v as TableCell, w as TableFooter, x as TableHead, s as TableHeader, y as TableRow, a7 as Toast, a9 as ToastAction, af as ToastActionElement, ae as ToastClose, ad as ToastDescription, ag as ToastProps, aa as ToastProvider, ac as ToastTitle, ab as ToastViewport, a8 as Toaster, ah as Tooltip, aj as TooltipContent, ak as TooltipProvider, al as TooltipRoot, ai as TooltipTrigger, aX as UseEventLogoOptions, aW as UseEventLogoReturn, aS as UseFileReferenceForRecordReturn, aQ as UseFileReferenceOptions, aR as UseFileReferenceReturn, aA as UserMenu, aU as clearEventLogoCache, aV as getEventLogoCacheStats, ba as useErrorBoundary, aT as useEventLogo, aM as useFileReference, aO as useFileReferenceById, aN as useFileReferenceForRecord, aP as useFilesByCategory, b1 as useIsPublicPage, aZ as usePublicPageContext, b0 as usePublicPageProviderContext } from './PublicLoadingSpinner-
|
|
2
|
+
export { A as Alert, m as AlertDescription, l as AlertTitle, n as Avatar, p as AvatarFallback, o as AvatarImage, B as Button, a as ButtonProps, C as Card, g as CardActions, i as CardActionsProps, f as CardContent, e as CardDescription, c as CardFooter, b as CardHeader, h as CardProps, d as CardTitle, q as Checkbox, bb as DefaultPublicErrorFallback, D as Dialog, K as DialogBody, G as DialogClose, H as DialogContent, U as DialogContentProps, O as DialogDescription, Z as DialogDescriptionProps, M as DialogFooter, X as DialogFooterProps, J as DialogHeader, W as DialogHeaderProps, E as DialogOverlay, V as DialogOverlayProps, z as DialogPortal, Q as DialogProps, _ as DialogSize, N as DialogTitle, Y as DialogTitleProps, F as DialogTrigger, R as DialogTriggerProps, aB as ErrorBoundary, aC as ErrorBoundaryProps, aD as ErrorBoundaryState, b6 as EventLogo, b7 as EventLogoCompact, b8 as EventLogoLarge, bi as EventLogoProps, aG as EventSelector, aK as FileDisplay, aL as FileDisplayProps, aI as FileUpload, aJ as FileUploadProps, ar as Footer, as as FooterProps, am as Form, an as FormProps, aq as Header, I as Input, j as InputProps, L as Label, k as LabelProps, aE as LoadingSpinner, ao as LoginForm, ap as LoginFormProps, ax as NavigationItem, av as NavigationMenu, aw as NavigationMenuProps, ay as OrganisationSelector, az as OrganisationSelectorProps, bn as PaceAppLayout, bm as PaceAppLayoutProps, bp as PaceLoginPage, bo as PaceLoginPageProps, aH as PasswordResetForm, P as Progress, at as ProtectedRoute, au as ProtectedRouteProps, b9 as PublicErrorBoundary, bj as PublicErrorBoundaryProps, bk as PublicErrorBoundaryState, be as PublicLoadingSkeleton, bc as PublicLoadingSpinner, bd as PublicLoadingSpinnerFullPage, bl as PublicLoadingSpinnerProps, b5 as PublicPageContextChecker, b3 as PublicPageDebugger, b4 as PublicPageDiagnostic, b2 as PublicPageFooter, bh as PublicPageFooterProps, a_ as PublicPageHeader, bg as PublicPageHeaderProps, aY as PublicPageLayout, bf as PublicPageLayoutProps, a$ as PublicPageProvider, $ as Select, a3 as SelectContent, a0 as SelectGroup, a5 as SelectItem, a4 as SelectLabel, a6 as SelectSeparator, a2 as SelectTrigger, a1 as SelectValue, aF as SessionRestorationLoader, S as Switch, r as SwitchProps, T as Table, t as TableBody, u as TableCaption, v as TableCell, w as TableFooter, x as TableHead, s as TableHeader, y as TableRow, a7 as Toast, a9 as ToastAction, af as ToastActionElement, ae as ToastClose, ad as ToastDescription, ag as ToastProps, aa as ToastProvider, ac as ToastTitle, ab as ToastViewport, a8 as Toaster, ah as Tooltip, aj as TooltipContent, ak as TooltipProvider, al as TooltipRoot, ai as TooltipTrigger, aX as UseEventLogoOptions, aW as UseEventLogoReturn, aS as UseFileReferenceForRecordReturn, aQ as UseFileReferenceOptions, aR as UseFileReferenceReturn, aA as UserMenu, aU as clearEventLogoCache, aV as getEventLogoCacheStats, ba as useErrorBoundary, aT as useEventLogo, aM as useFileReference, aO as useFileReferenceById, aN as useFileReferenceForRecord, aP as useFilesByCategory, b1 as useIsPublicPage, aZ as usePublicPageContext, b0 as usePublicPageProviderContext } from './PublicLoadingSpinner-B84QWsvB.js';
|
|
3
3
|
export { u as useToast } from './useToast-Bm6TnSK-.js';
|
|
4
4
|
export { D as DataTable, a as DataTableProps } from './DataTable-BE0OXZKQ.js';
|
|
5
5
|
export { A as AggregateConfig, D as DataRecord, f as DataTableAction, a as DataTableColumn, g as DataTableToolbarButton, E as EmptyStateConfig, G as GetRowId } from './types-BDg1mAGG.js';
|
package/dist/components.js
CHANGED
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
useFileReferenceForRecord,
|
|
58
58
|
useFilesByCategory,
|
|
59
59
|
usePublicPageContext as usePublicPageContext2
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-V5CTX4FR.js";
|
|
61
61
|
import {
|
|
62
62
|
Alert,
|
|
63
63
|
AlertDescription,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
TooltipProvider,
|
|
98
98
|
TooltipRoot,
|
|
99
99
|
TooltipTrigger
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-EPKHU5SS.js";
|
|
101
101
|
import "./chunk-2KLAOD4M.js";
|
|
102
102
|
import "./chunk-S63MFSY6.js";
|
|
103
103
|
import "./chunk-Q7APDV6H.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { E as Event } from './unified-DQ4VcT7H.js';
|
|
|
7
7
|
import { S as SessionRestorationState } from './auth-DReDSLq9.js';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
export { ALL_PERMISSIONS, AccessLevel, AccessLevelGuard, AllPermissions, CACHE_PATTERNS, DataAccessRecord, EVENT_APP_PERMISSIONS, EnhancedNavigationMenu, EnhancedNavigationMenuProps, EventAppRole, GLOBAL_PERMISSIONS, GlobalRole, InvalidScopeError, LogLevel, MissingUserContextError, NavigationAccessRecord, NavigationContextType, NavigationGuard, NavigationGuardProps, NavigationProvider, NavigationProviderProps, ORGANISATION_PERMISSIONS, Operation, OrganisationContextRequiredError, OrganisationRole, PAGE_PERMISSIONS, PageAccessRecord, PagePermissionContextType, PagePermissionGuard, PagePermissionGuardProps, PagePermissionProvider, PagePermissionProviderProps, Permission, PermissionCheck, PermissionDeniedError, PermissionEnforcer, PermissionEnforcerProps, PermissionGuard, PermissionMap, RBACAuditManager, RBACCache, RBACConfig, RBACEngine, RBACError, RBACLogger, RBACNotInitializedError, RoleBasedRouter, RoleBasedRouterContextType, RoleBasedRouterProps, RouteAccessRecord, RouteConfig, Scope, SecureDataContextType, SecureDataProvider, SecureDataProviderProps, SecureSupabaseClient, UUID, UseResolvedScopeOptions, UseResolvedScopeReturn, createAuditManager, createRBACConfig, createRBACEngine, createRBACExpressMiddleware, createRBACMiddleware, createSecureClient, emitAuditEvent, fromSupabaseClient, getAccessLevel, getGlobalAuditManager, getPermissionMap, getPermissionsForRole, getRBACConfig, getRBACLogger, getRoleContext, hasAllPermissions, hasAnyPermission, hasAnyPermissionCached, hasPermission, hasPermissionCached, isDebugMode, isDevelopmentMode, isPermitted, isPermittedCached, isValidPermission, rbacCache, resolveAppContext, setGlobalAuditManager, setupRBAC, useAccessLevel, useCachedPermissions, useCan, useHasAllPermissions, useHasAnyPermission, useMultiplePermissions, useNavigationPermissions, usePagePermissions, usePermissions, useRBAC, useResolvedScope, useRoleBasedRouter, useSecureData, withAccessLevelGuard, withPermissionGuard, withRoleGuard } from './rbac/index.js';
|
|
10
|
-
export { A as Alert, m as AlertDescription, l as AlertTitle, n as Avatar, p as AvatarFallback, o as AvatarImage, B as Button, a as ButtonProps, C as Card, g as CardActions, f as CardContent, e as CardDescription, c as CardFooter, b as CardHeader, h as CardProps, d as CardTitle, q as Checkbox, bb as DefaultPublicErrorFallback, D as Dialog, K as DialogBody, G as DialogClose, H as DialogContent, O as DialogDescription, M as DialogFooter, J as DialogHeader, E as DialogOverlay, z as DialogPortal, N as DialogTitle, F as DialogTrigger, aB as ErrorBoundary, b6 as EventLogo, b7 as EventLogoCompact, b8 as EventLogoLarge, bi as EventLogoProps, aG as EventSelector, aK as FileDisplay, aL as FileDisplayProps, aI as FileUpload, aJ as FileUploadProps, ar as Footer, as as FooterProps, am as Form, aq as Header, I as Input, j as InputProps, L as Label, k as LabelProps, aE as LoadingSpinner, ao as LoginForm, ap as LoginFormProps, ax as NavigationItem, av as NavigationMenu, aw as NavigationMenuProps, ay as OrganisationSelector, bn as PaceAppLayout, bm as PaceAppLayoutProps, bp as PaceLoginPage, bo as PaceLoginPageProps, aH as PasswordResetForm, P as Progress, at as ProtectedRoute, au as ProtectedRouteProps, b9 as PublicErrorBoundary, bj as PublicErrorBoundaryProps, bk as PublicErrorBoundaryState, be as PublicLoadingSkeleton, bc as PublicLoadingSpinner, bd as PublicLoadingSpinnerFullPage, bl as PublicLoadingSpinnerProps, b5 as PublicPageContextChecker, b3 as PublicPageDebugger, b4 as PublicPageDiagnostic, b2 as PublicPageFooter, bh as PublicPageFooterProps, a_ as PublicPageHeader, bg as PublicPageHeaderProps, aY as PublicPageLayout, bf as PublicPageLayoutProps, a$ as PublicPageProvider, $ as Select, a3 as SelectContent, a0 as SelectGroup, a5 as SelectItem, a4 as SelectLabel, a6 as SelectSeparator, a2 as SelectTrigger, a1 as SelectValue, aF as SessionRestorationLoader, S as Switch, r as SwitchProps, T as Table, t as TableBody, u as TableCaption, v as TableCell, w as TableFooter, x as TableHead, s as TableHeader, y as TableRow, a7 as Toast, a9 as ToastAction, af as ToastActionElement, ae as ToastClose, ad as ToastDescription, ag as ToastProps, aa as ToastProvider, ac as ToastTitle, ab as ToastViewport, a8 as Toaster, ah as Tooltip, aj as TooltipContent, ak as TooltipProvider, al as TooltipRoot, ai as TooltipTrigger, aX as UseEventLogoOptions, aW as UseEventLogoReturn, aS as UseFileReferenceForRecordReturn, aQ as UseFileReferenceOptions, aR as UseFileReferenceReturn, aA as UserMenu, bq as UserMenuProps, aU as clearEventLogoCache, aV as getEventLogoCacheStats, ba as useErrorBoundary, aT as useEventLogo, aM as useFileReference, aO as useFileReferenceById, aN as useFileReferenceForRecord, aP as useFilesByCategory, b1 as useIsPublicPage, aZ as usePublicPageContext, b0 as usePublicPageProviderContext } from './PublicLoadingSpinner-
|
|
10
|
+
export { A as Alert, m as AlertDescription, l as AlertTitle, n as Avatar, p as AvatarFallback, o as AvatarImage, B as Button, a as ButtonProps, C as Card, g as CardActions, f as CardContent, e as CardDescription, c as CardFooter, b as CardHeader, h as CardProps, d as CardTitle, q as Checkbox, bb as DefaultPublicErrorFallback, D as Dialog, K as DialogBody, G as DialogClose, H as DialogContent, O as DialogDescription, M as DialogFooter, J as DialogHeader, E as DialogOverlay, z as DialogPortal, N as DialogTitle, F as DialogTrigger, aB as ErrorBoundary, b6 as EventLogo, b7 as EventLogoCompact, b8 as EventLogoLarge, bi as EventLogoProps, aG as EventSelector, aK as FileDisplay, aL as FileDisplayProps, aI as FileUpload, aJ as FileUploadProps, ar as Footer, as as FooterProps, am as Form, aq as Header, I as Input, j as InputProps, L as Label, k as LabelProps, aE as LoadingSpinner, ao as LoginForm, ap as LoginFormProps, ax as NavigationItem, av as NavigationMenu, aw as NavigationMenuProps, ay as OrganisationSelector, bn as PaceAppLayout, bm as PaceAppLayoutProps, bp as PaceLoginPage, bo as PaceLoginPageProps, aH as PasswordResetForm, P as Progress, at as ProtectedRoute, au as ProtectedRouteProps, b9 as PublicErrorBoundary, bj as PublicErrorBoundaryProps, bk as PublicErrorBoundaryState, be as PublicLoadingSkeleton, bc as PublicLoadingSpinner, bd as PublicLoadingSpinnerFullPage, bl as PublicLoadingSpinnerProps, b5 as PublicPageContextChecker, b3 as PublicPageDebugger, b4 as PublicPageDiagnostic, b2 as PublicPageFooter, bh as PublicPageFooterProps, a_ as PublicPageHeader, bg as PublicPageHeaderProps, aY as PublicPageLayout, bf as PublicPageLayoutProps, a$ as PublicPageProvider, $ as Select, a3 as SelectContent, a0 as SelectGroup, a5 as SelectItem, a4 as SelectLabel, a6 as SelectSeparator, a2 as SelectTrigger, a1 as SelectValue, aF as SessionRestorationLoader, S as Switch, r as SwitchProps, T as Table, t as TableBody, u as TableCaption, v as TableCell, w as TableFooter, x as TableHead, s as TableHeader, y as TableRow, a7 as Toast, a9 as ToastAction, af as ToastActionElement, ae as ToastClose, ad as ToastDescription, ag as ToastProps, aa as ToastProvider, ac as ToastTitle, ab as ToastViewport, a8 as Toaster, ah as Tooltip, aj as TooltipContent, ak as TooltipProvider, al as TooltipRoot, ai as TooltipTrigger, aX as UseEventLogoOptions, aW as UseEventLogoReturn, aS as UseFileReferenceForRecordReturn, aQ as UseFileReferenceOptions, aR as UseFileReferenceReturn, aA as UserMenu, bq as UserMenuProps, aU as clearEventLogoCache, aV as getEventLogoCacheStats, ba as useErrorBoundary, aT as useEventLogo, aM as useFileReference, aO as useFileReferenceById, aN as useFileReferenceForRecord, aP as useFilesByCategory, b1 as useIsPublicPage, aZ as usePublicPageContext, b0 as usePublicPageProviderContext } from './PublicLoadingSpinner-B84QWsvB.js';
|
|
11
11
|
export { u as useToast } from './useToast-Bm6TnSK-.js';
|
|
12
12
|
export { D as DataTable, a as DataTableProps } from './DataTable-BE0OXZKQ.js';
|
|
13
13
|
import { D as DataRecord, f as DataTableAction } from './types-BDg1mAGG.js';
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
useFileReferenceForRecord,
|
|
97
97
|
useFilesByCategory,
|
|
98
98
|
usePublicPageContext as usePublicPageContext2
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-V5CTX4FR.js";
|
|
100
100
|
import {
|
|
101
101
|
Alert,
|
|
102
102
|
AlertDescription,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
TooltipProvider,
|
|
138
138
|
TooltipRoot,
|
|
139
139
|
TooltipTrigger
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-EPKHU5SS.js";
|
|
141
141
|
import {
|
|
142
142
|
useAccessLevel,
|
|
143
143
|
useCachedPermissions,
|
package/dist/utils.js
CHANGED
|
@@ -594,7 +594,7 @@ function createLazyComponent(importFn, componentName, options = {}) {
|
|
|
594
594
|
return WrappedComponent;
|
|
595
595
|
}
|
|
596
596
|
var LazyDataTable = createLazyComponent(
|
|
597
|
-
() => import("./DataTable-
|
|
597
|
+
() => import("./DataTable-XENXNMCP.js").then((module) => ({ default: module.DataTable })),
|
|
598
598
|
"DataTable"
|
|
599
599
|
);
|
|
600
600
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.95](../README.md) / [Exports](../modules.md) / FileDisplayProps
|
|
2
2
|
|
|
3
3
|
# Interface: FileDisplayProps
|
|
4
4
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
- [showDelete](FileDisplayProps.md#showdelete)
|
|
17
17
|
- [className](FileDisplayProps.md#classname)
|
|
18
18
|
- [children](FileDisplayProps.md#children)
|
|
19
|
+
- [loadingComponent](FileDisplayProps.md#loadingcomponent)
|
|
20
|
+
- [errorComponent](FileDisplayProps.md#errorcomponent)
|
|
19
21
|
|
|
20
22
|
## Properties
|
|
21
23
|
|
|
@@ -27,7 +29,7 @@ Supabase client instance. Optional when used in PublicPageProvider or UnifiedAut
|
|
|
27
29
|
|
|
28
30
|
#### Defined in
|
|
29
31
|
|
|
30
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
32
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:16](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L16)
|
|
31
33
|
|
|
32
34
|
___
|
|
33
35
|
|
|
@@ -37,7 +39,7 @@ ___
|
|
|
37
39
|
|
|
38
40
|
#### Defined in
|
|
39
41
|
|
|
40
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
42
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:17](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L17)
|
|
41
43
|
|
|
42
44
|
___
|
|
43
45
|
|
|
@@ -47,7 +49,7 @@ ___
|
|
|
47
49
|
|
|
48
50
|
#### Defined in
|
|
49
51
|
|
|
50
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
52
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:18](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L18)
|
|
51
53
|
|
|
52
54
|
___
|
|
53
55
|
|
|
@@ -57,7 +59,7 @@ ___
|
|
|
57
59
|
|
|
58
60
|
#### Defined in
|
|
59
61
|
|
|
60
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
62
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:19](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L19)
|
|
61
63
|
|
|
62
64
|
___
|
|
63
65
|
|
|
@@ -67,7 +69,7 @@ ___
|
|
|
67
69
|
|
|
68
70
|
#### Defined in
|
|
69
71
|
|
|
70
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
72
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:20](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L20)
|
|
71
73
|
|
|
72
74
|
___
|
|
73
75
|
|
|
@@ -79,7 +81,7 @@ Display only a single file instead of all files. Uses first file (prefers images
|
|
|
79
81
|
|
|
80
82
|
#### Defined in
|
|
81
83
|
|
|
82
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
84
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:22](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L22)
|
|
83
85
|
|
|
84
86
|
___
|
|
85
87
|
|
|
@@ -89,7 +91,7 @@ ___
|
|
|
89
91
|
|
|
90
92
|
#### Defined in
|
|
91
93
|
|
|
92
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
94
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:23](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L23)
|
|
93
95
|
|
|
94
96
|
___
|
|
95
97
|
|
|
@@ -99,7 +101,7 @@ ___
|
|
|
99
101
|
|
|
100
102
|
#### Defined in
|
|
101
103
|
|
|
102
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
104
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:24](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L24)
|
|
103
105
|
|
|
104
106
|
___
|
|
105
107
|
|
|
@@ -109,7 +111,7 @@ ___
|
|
|
109
111
|
|
|
110
112
|
#### Defined in
|
|
111
113
|
|
|
112
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
114
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:25](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L25)
|
|
113
115
|
|
|
114
116
|
___
|
|
115
117
|
|
|
@@ -119,4 +121,28 @@ ___
|
|
|
119
121
|
|
|
120
122
|
#### Defined in
|
|
121
123
|
|
|
122
|
-
[packages/core/src/components/FileDisplay/FileDisplay.tsx:
|
|
124
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:26](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L26)
|
|
125
|
+
|
|
126
|
+
___
|
|
127
|
+
|
|
128
|
+
### loadingComponent
|
|
129
|
+
|
|
130
|
+
• `Optional` **loadingComponent**: `ComponentType`\<{}\>
|
|
131
|
+
|
|
132
|
+
Custom loading component to render during data fetching
|
|
133
|
+
|
|
134
|
+
#### Defined in
|
|
135
|
+
|
|
136
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:28](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L28)
|
|
137
|
+
|
|
138
|
+
___
|
|
139
|
+
|
|
140
|
+
### errorComponent
|
|
141
|
+
|
|
142
|
+
• `Optional` **errorComponent**: `ComponentType`\<\{ `error`: ``null`` \| `string` \| `Error` ; `retry?`: () => `void` }\>
|
|
143
|
+
|
|
144
|
+
Custom error component to render when an error occurs
|
|
145
|
+
|
|
146
|
+
#### Defined in
|
|
147
|
+
|
|
148
|
+
[packages/core/src/components/FileDisplay/FileDisplay.tsx:30](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/FileDisplay/FileDisplay.tsx#L30)
|