@jmruthers/pace-core 0.5.69 → 0.5.70
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-MPBSXUC6.js → DataTable-OSELOGMA.js} +5 -4
- package/dist/{PublicLoadingSpinner-BOdyU3u-.d.ts → PublicLoadingSpinner-DLpF5bbs.d.ts} +77 -1
- package/dist/{chunk-NO5QHMDX.js → chunk-4YMVZ76F.js} +3 -3
- package/dist/{chunk-UCMHBF7Y.js → chunk-5G7JA3L5.js} +2 -2
- package/dist/{chunk-ZXJGZLLO.js → chunk-5NV76BYF.js} +660 -104
- package/dist/chunk-5NV76BYF.js.map +1 -0
- package/dist/{chunk-V3QO3LL7.js → chunk-BHBMXMLT.js} +2 -2
- package/dist/{chunk-FJTAWPAQ.js → chunk-FOT3WUV6.js} +2 -2
- package/dist/{chunk-6JILXFEA.js → chunk-GCUIIBLB.js} +48 -1
- package/dist/{chunk-6JILXFEA.js.map → chunk-GCUIIBLB.js.map} +1 -1
- package/dist/{chunk-2ARQW6VX.js → chunk-KWQH4VO3.js} +2 -2
- package/dist/{chunk-RVYGJPOD.js → chunk-OTJUAYBG.js} +7 -5
- package/dist/{chunk-RVYGJPOD.js.map → chunk-OTJUAYBG.js.map} +1 -1
- package/dist/chunk-SMJZMKYN.js +141 -0
- package/dist/chunk-SMJZMKYN.js.map +1 -0
- package/dist/{chunk-Q2UP3ZWQ.js → chunk-V2TE7LOF.js} +4 -4
- package/dist/{chunk-L3RV2ALE.js → chunk-VKOCWWVY.js} +6 -1
- package/dist/{chunk-L3RV2ALE.js.map → chunk-VKOCWWVY.js.map} +1 -1
- package/dist/components.d.ts +4 -79
- package/dist/components.js +21 -578
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +5 -5
- package/dist/index.d.ts +3 -2
- package/dist/index.js +25 -12
- package/dist/index.js.map +1 -1
- package/dist/providers.js +3 -2
- package/dist/rbac/index.js +5 -4
- package/dist/styles/index.js +2 -2
- package/dist/theming/runtime.d.ts +4 -3
- package/dist/theming/runtime.js +3 -1
- 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 +129 -0
- 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/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/EventContextType.md +7 -7
- package/docs/api/interfaces/EventLogoProps.md +1 -1
- package/docs/api/interfaces/EventProviderProps.md +2 -2
- package/docs/api/interfaces/FileDisplayProps.md +107 -0
- package/docs/api/interfaces/FileMetadata.md +129 -0
- package/docs/api/interfaces/FileReference.md +118 -0
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +85 -0
- 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/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/RBACContextType.md +1 -1
- package/docs/api/interfaces/RBACLogger.md +1 -1
- package/docs/api/interfaces/RBACProviderProps.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/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 +191 -11
- package/package.json +3 -2
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.performance.test.tsx +3 -2
- package/src/index.ts +6 -0
- package/src/providers/EventProvider.tsx +58 -2
- package/src/theming/__tests__/runtime.test.ts +102 -82
- package/src/theming/runtime.ts +71 -28
- package/dist/chunk-N2EUGZRW.js +0 -98
- package/dist/chunk-N2EUGZRW.js.map +0 -1
- package/dist/chunk-ZXJGZLLO.js.map +0 -1
- package/src/styles/base.css +0 -208
- package/src/styles/semantic.css +0 -24
- /package/dist/{DataTable-MPBSXUC6.js.map → DataTable-OSELOGMA.js.map} +0 -0
- /package/dist/{chunk-NO5QHMDX.js.map → chunk-4YMVZ76F.js.map} +0 -0
- /package/dist/{chunk-UCMHBF7Y.js.map → chunk-5G7JA3L5.js.map} +0 -0
- /package/dist/{chunk-V3QO3LL7.js.map → chunk-BHBMXMLT.js.map} +0 -0
- /package/dist/{chunk-FJTAWPAQ.js.map → chunk-FOT3WUV6.js.map} +0 -0
- /package/dist/{chunk-2ARQW6VX.js.map → chunk-KWQH4VO3.js.map} +0 -0
- /package/dist/{chunk-Q2UP3ZWQ.js.map → chunk-V2TE7LOF.js.map} +0 -0
package/dist/components.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { b as UnifiedAuthContextType, U as UnifiedAuthProvider, a as UnifiedAuthProviderProps, u as useUnifiedAuth } from './UnifiedAuthProvider-D02AMXgO.js';
|
|
2
|
-
export { A as Alert,
|
|
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, b3 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, az as ErrorBoundary, aA as ErrorBoundaryProps, aB as ErrorBoundaryState, a_ as EventLogo, a$ as EventLogoCompact, b0 as EventLogoLarge, ba as EventLogoProps, aD as EventSelector, aF as FileDisplay, aG as FileDisplayProps, 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, aC as LoadingSpinner, ao as LoginForm, ap as LoginFormProps, av as NavigationItem, at as NavigationMenu, au as NavigationMenuProps, aw as OrganisationSelector, ax as OrganisationSelectorProps, bf as PaceAppLayout, be as PaceAppLayoutProps, bh as PaceLoginPage, bg as PaceLoginPageProps, aE as PasswordResetForm, P as Progress, b1 as PublicErrorBoundary, bb as PublicErrorBoundaryProps, bc as PublicErrorBoundaryState, b6 as PublicLoadingSkeleton, b4 as PublicLoadingSpinner, b5 as PublicLoadingSpinnerFullPage, bd as PublicLoadingSpinnerProps, aZ as PublicPageContextChecker, aX as PublicPageDebugger, aY as PublicPageDiagnostic, aW as PublicPageFooter, b9 as PublicPageFooterProps, aS as PublicPageHeader, b8 as PublicPageHeaderProps, aQ as PublicPageLayout, b7 as PublicPageLayoutProps, aT 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, 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, aP as UseFileReferenceForRecordReturn, aN as UseFileReferenceOptions, aO as UseFileReferenceReturn, aJ as UseStorageOptions, aK as UseStorageReturn, ay as UserMenu, b2 as useErrorBoundary, aL as useFileReference, aM as useFileReferenceForRecord, aI as useFileUpload, aV as useIsPublicPage, aR as usePublicPageContext, aU as usePublicPageProviderContext, aH as useStorage } from './PublicLoadingSpinner-DLpF5bbs.js';
|
|
3
3
|
export { u as useToast } from './useToast-Bm6TnSK-.js';
|
|
4
4
|
export { D as DataTable, a as DataTableProps } from './DataTable-ntgmhO2W.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-CGX9Vyf5.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import { FieldValues, FieldPath, UseFormReturn } from 'react-hook-form';
|
|
9
|
-
import { b as FileCategory
|
|
10
|
-
export { a as FileMetadata } from './file-reference-9xUOnwyt.js';
|
|
9
|
+
import { b as FileCategory } from './file-reference-9xUOnwyt.js';
|
|
10
|
+
export { a as FileMetadata, F as FileReference, c as FileUploadOptions } from './file-reference-9xUOnwyt.js';
|
|
11
11
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
12
12
|
import './RBACProvider-BO4ilsQB.js';
|
|
13
13
|
import './unified-CMPjE_fv.js';
|
|
@@ -432,79 +432,4 @@ interface FileUploadProps {
|
|
|
432
432
|
declare function FileUpload({ supabase, table_name, record_id, organisation_id, app_id, category, accept, maxSize, // 10MB default
|
|
433
433
|
multiple, disabled, className, onUploadSuccess, onUploadError, children }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
434
434
|
|
|
435
|
-
|
|
436
|
-
supabase: SupabaseClient;
|
|
437
|
-
table_name: string;
|
|
438
|
-
record_id: string;
|
|
439
|
-
organisation_id: string;
|
|
440
|
-
category?: FileCategory;
|
|
441
|
-
showUpload?: boolean;
|
|
442
|
-
showDelete?: boolean;
|
|
443
|
-
className?: string;
|
|
444
|
-
children?: React__default.ReactNode;
|
|
445
|
-
}
|
|
446
|
-
declare function FileDisplay({ supabase, table_name, record_id, organisation_id, category, showUpload, showDelete, className, children }: FileDisplayProps): react_jsx_runtime.JSX.Element;
|
|
447
|
-
|
|
448
|
-
declare function useFileReference(supabase: SupabaseClient): {
|
|
449
|
-
isLoading: boolean;
|
|
450
|
-
error: string | null;
|
|
451
|
-
uploadFile: (options: FileUploadOptions, file: File) => Promise<FileUploadResult | null>;
|
|
452
|
-
getFileReference: (table_name: string, record_id: string, organisation_id: string) => Promise<FileReference | null>;
|
|
453
|
-
getFileUrl: (table_name: string, record_id: string, organisation_id: string) => Promise<string | null>;
|
|
454
|
-
getSignedUrl: (table_name: string, record_id: string, organisation_id: string, expires_in?: number) => Promise<string | null>;
|
|
455
|
-
updateFileReference: (id: string, updates: Partial<FileReference>) => Promise<FileReference | null>;
|
|
456
|
-
deleteFileReference: (table_name: string, record_id: string, organisation_id: string, delete_file?: boolean) => Promise<boolean>;
|
|
457
|
-
listFileReferences: (table_name: string, record_id: string, organisation_id: string) => Promise<FileReference[]>;
|
|
458
|
-
getFileCount: (table_name: string, record_id: string, organisation_id: string) => Promise<number>;
|
|
459
|
-
clearError: () => void;
|
|
460
|
-
};
|
|
461
|
-
declare function useFileReferenceForRecord(supabase: SupabaseClient, table_name: string, record_id: string, organisation_id: string): {
|
|
462
|
-
isLoading: boolean;
|
|
463
|
-
error: string | null;
|
|
464
|
-
fileUrl: string | null;
|
|
465
|
-
fileReference: FileReference | null;
|
|
466
|
-
fileReferences: FileReference[];
|
|
467
|
-
fileCount: number;
|
|
468
|
-
loadFileReference: () => Promise<FileReference | null>;
|
|
469
|
-
loadFileUrl: () => Promise<string | null>;
|
|
470
|
-
loadFileReferences: () => Promise<FileReference[]>;
|
|
471
|
-
loadFileCount: () => Promise<number>;
|
|
472
|
-
deleteFile: (delete_file?: boolean) => Promise<boolean>;
|
|
473
|
-
updateFileReference: (id: string, updates: Partial<FileReference>) => Promise<FileReference | null>;
|
|
474
|
-
clearError: () => void;
|
|
475
|
-
};
|
|
476
|
-
type UseFileReferenceOptions = {
|
|
477
|
-
table_name: string;
|
|
478
|
-
record_id: string;
|
|
479
|
-
organisation_id: string;
|
|
480
|
-
};
|
|
481
|
-
type UseFileReferenceReturn = {
|
|
482
|
-
isLoading: boolean;
|
|
483
|
-
error: string | null;
|
|
484
|
-
uploadFile: (options: FileUploadOptions, file: File) => Promise<FileUploadResult | null>;
|
|
485
|
-
getFileReference: (table_name: string, record_id: string, organisation_id: string) => Promise<FileReference | null>;
|
|
486
|
-
getFileUrl: (table_name: string, record_id: string, organisation_id: string) => Promise<string | null>;
|
|
487
|
-
getSignedUrl: (table_name: string, record_id: string, organisation_id: string, expires_in?: number) => Promise<string | null>;
|
|
488
|
-
updateFileReference: (id: string, updates: Partial<FileReference>) => Promise<FileReference | null>;
|
|
489
|
-
deleteFileReference: (table_name: string, record_id: string, organisation_id: string, delete_file?: boolean) => Promise<boolean>;
|
|
490
|
-
listFileReferences: (table_name: string, record_id: string, organisation_id: string) => Promise<FileReference[]>;
|
|
491
|
-
getFileCount: (table_name: string, record_id: string, organisation_id: string) => Promise<number>;
|
|
492
|
-
clearError: () => void;
|
|
493
|
-
};
|
|
494
|
-
type UseFileReferenceForRecordReturn = {
|
|
495
|
-
isLoading: boolean;
|
|
496
|
-
error: string | null;
|
|
497
|
-
fileUrl: string | null;
|
|
498
|
-
fileReference: FileReference | null;
|
|
499
|
-
fileReferences: FileReference[];
|
|
500
|
-
fileCount: number;
|
|
501
|
-
loadFileReference: () => Promise<FileReference | null>;
|
|
502
|
-
loadFileUrl: () => Promise<string | null>;
|
|
503
|
-
loadFileReferences: () => Promise<FileReference[]>;
|
|
504
|
-
loadFileCount: () => Promise<number>;
|
|
505
|
-
deleteFile: (delete_file?: boolean) => Promise<boolean>;
|
|
506
|
-
updateFileReference: (id: string, updates: Partial<FileReference>) => Promise<FileReference | null>;
|
|
507
|
-
clearError: () => void;
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
export { FileCategory, FileDisplay, type FileDisplayProps, FileReference, FileUpload, FileUploadOptions, type FileUploadProps, FormErrorSummary, type FormErrorSummaryProps, FormField, type FormFieldProps, FormFieldset, type FormFieldsetProps, FormLiveRegion, type FormLiveRegionProps, SuperAdminBadge, SuperAdminDebugPanel, SuperAdminGuard, type SuperAdminGuardProps, type UseFileReferenceForRecordReturn, type UseFileReferenceOptions, type UseFileReferenceReturn, useFileReference, useFileReferenceForRecord };
|
|
435
|
+
export { FileCategory, FileUpload, type FileUploadProps, FormErrorSummary, type FormErrorSummaryProps, FormField, type FormFieldProps, FormFieldset, type FormFieldsetProps, FormLiveRegion, type FormLiveRegionProps, SuperAdminBadge, SuperAdminDebugPanel, SuperAdminGuard, type SuperAdminGuardProps };
|