@jmruthers/pace-core 0.5.59 → 0.5.61
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/README.md +2 -2
- package/dist/{DataTable-BKUUSZC5.js → DataTable-5M6MV2VY.js} +4 -4
- package/dist/{PublicLoadingSpinner-SL8WaQN7.d.ts → PublicLoadingSpinner-CrMOrhNz.d.ts} +4 -28
- package/dist/{api-LUNF5O6M.js → api-A4SUYPPV.js} +2 -2
- package/dist/{chunk-STLY4XWV.js → chunk-44SAHU2N.js} +136 -137
- package/dist/chunk-44SAHU2N.js.map +1 -0
- package/dist/{chunk-ITPVFKDH.js → chunk-4ULBJNIT.js} +128 -11
- package/dist/chunk-4ULBJNIT.js.map +1 -0
- package/dist/{chunk-OJK7SV4M.js → chunk-ESXTFEE6.js} +2 -2
- package/dist/{chunk-HSK6AJKC.js → chunk-HFDYTSAP.js} +4 -4
- package/dist/{chunk-NQ4TOOO6.js → chunk-L3RV2ALE.js} +1 -1
- package/dist/chunk-L3RV2ALE.js.map +1 -0
- package/dist/{chunk-KLPVOPRI.js → chunk-NHR52QAQ.js} +3 -3
- package/dist/{chunk-KLPVOPRI.js.map → chunk-NHR52QAQ.js.map} +1 -1
- package/dist/{chunk-PHWA52IO.js → chunk-XDXG6QVH.js} +2 -2
- package/dist/{chunk-QWS45MLA.js → chunk-XMTHMOOM.js} +10 -10
- package/dist/components.d.ts +2 -2
- package/dist/components.js +6 -8
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +3 -63
- package/dist/hooks.js +28 -143
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/{organisation-t-vvQC3g.d.ts → organisation-DD0yBbGU.d.ts} +1 -1
- package/dist/providers.d.ts +2 -2
- package/dist/rbac/index.js +3 -3
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/{usePublicRouteParams-CdoFxnJK.d.ts → usePublicRouteParams-Cu6oKazv.d.ts} +63 -2
- package/dist/utils.js +1 -1
- package/docs/README.md +1 -1
- package/docs/api/README.md +2 -2
- 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/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 +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/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/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 +37 -52
- package/docs/architecture/README.md +1 -3
- package/docs/consuming-app-example.md +3 -3
- package/docs/consuming-app-vite-config.md +1 -1
- package/docs/documentation-style-checklist.md +2 -2
- package/docs/getting-started/examples/basic-auth-app.md +2 -2
- package/docs/getting-started/installation.md +2 -2
- package/docs/getting-started/quick-start.md +1 -1
- package/docs/migration/README.md +6 -6
- package/docs/migration/quick-migration-guide.md +3 -3
- package/docs/migration/v0.4.15-tailwind-scanning.md +1 -1
- package/docs/migration/v0.4.16-css-first-approach.md +1 -1
- package/docs/migration/v0.4.17-source-path-fix.md +4 -4
- package/docs/migration-guide.md +2 -2
- package/docs/quick-reference.md +4 -4
- package/docs/styles/README.md +3 -3
- package/docs/troubleshooting/README.md +2 -2
- package/docs/troubleshooting/common-issues.md +1 -1
- package/docs/troubleshooting/styling-issues.md +2 -2
- package/docs/troubleshooting/tailwind-content-scanning.md +2 -2
- package/docs/usage.md +2 -2
- package/package.json +2 -6
- package/src/components/Toast/Toast.test.tsx +51 -21
- package/src/components/Toast/Toast.tsx +13 -35
- package/src/components/Toast/index.ts +0 -1
- package/src/components/index.ts +0 -1
- package/src/index.ts +1 -1
- package/src/rbac/__tests__/rbac-engine-core-logic.test.ts +1 -1
- package/src/rbac/__tests__/rbac-engine-simplified.test.ts +1 -1
- package/src/rbac/engine.ts +2 -2
- package/src/styles/core.css +32 -37
- package/src/styles/index.ts +1 -1
- package/dist/chunk-ITPVFKDH.js.map +0 -1
- package/dist/chunk-NQ4TOOO6.js.map +0 -1
- package/dist/chunk-STLY4XWV.js.map +0 -1
- package/dist/styles/core.css +0 -242
- package/dist/styles/fonts/georama-italic.woff2 +0 -0
- package/dist/styles/fonts/georama.woff2 +0 -0
- package/dist/styles/fonts/open-sans-italic.woff2 +0 -0
- package/dist/styles/fonts/open-sans.woff2 +0 -0
- package/dist/styles/fonts/reddit-mono.woff2 +0 -0
- package/src/styles/base.css +0 -208
- package/src/styles/semantic.css +0 -24
- /package/dist/{DataTable-BKUUSZC5.js.map → DataTable-5M6MV2VY.js.map} +0 -0
- /package/dist/{api-LUNF5O6M.js.map → api-A4SUYPPV.js.map} +0 -0
- /package/dist/{chunk-OJK7SV4M.js.map → chunk-ESXTFEE6.js.map} +0 -0
- /package/dist/{chunk-HSK6AJKC.js.map → chunk-HFDYTSAP.js.map} +0 -0
- /package/dist/{chunk-PHWA52IO.js.map → chunk-XDXG6QVH.js.map} +0 -0
- /package/dist/{chunk-QWS45MLA.js.map → chunk-XMTHMOOM.js.map} +0 -0
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ npm install -D @tailwindcss/vite tailwindcss@^4.0.0
|
|
|
34
34
|
|
|
35
35
|
```tsx
|
|
36
36
|
// src/main.tsx (or your app's entry point)
|
|
37
|
-
import '@jmruthers/pace-core/styles/core.css';
|
|
37
|
+
import '@jmruthers/pace-core/src/styles/core.css';
|
|
38
38
|
import React from 'react';
|
|
39
39
|
import ReactDOM from 'react-dom/client';
|
|
40
40
|
import App from './App';
|
|
@@ -205,7 +205,7 @@ export default defineConfig({
|
|
|
205
205
|
|
|
206
206
|
**Solution**:
|
|
207
207
|
1. Check your Vite configuration includes pace-core source files
|
|
208
|
-
2. Ensure CSS file is imported: `import '@jmruthers/pace-core/styles/core.css'`
|
|
208
|
+
2. Ensure CSS file is imported: `import '@jmruthers/pace-core/src/styles/core.css'`
|
|
209
209
|
3. Restart dev server after configuration changes
|
|
210
210
|
|
|
211
211
|
### Issue: Build errors with source files
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
useDataTableContext,
|
|
33
33
|
usePluginRegistry,
|
|
34
34
|
useStateManager
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-XDXG6QVH.js";
|
|
36
|
+
import "./chunk-ESXTFEE6.js";
|
|
37
|
+
import "./chunk-NHR52QAQ.js";
|
|
38
38
|
import "./chunk-B2WTCLCV.js";
|
|
39
39
|
import "./chunk-CGSYCF2W.js";
|
|
40
40
|
import {
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
usePluginRegistry,
|
|
98
98
|
useStateManager
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=DataTable-
|
|
100
|
+
//# sourceMappingURL=DataTable-5M6MV2VY.js.map
|
|
@@ -12,7 +12,7 @@ import { FieldValues, DefaultValues, SubmitHandler, SubmitErrorHandler, UseFormR
|
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { User, SupabaseClient, createClient } from '@supabase/supabase-js';
|
|
14
14
|
import { r as Event } from './unified-CMPjE_fv.js';
|
|
15
|
-
import {
|
|
15
|
+
import { O as Organisation } from './organisation-DD0yBbGU.js';
|
|
16
16
|
|
|
17
17
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
18
18
|
/** Visual variant of the button */
|
|
@@ -919,36 +919,12 @@ interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitiv
|
|
|
919
919
|
}
|
|
920
920
|
interface ToastActionElement extends React.ReactElement<typeof ToastAction> {
|
|
921
921
|
}
|
|
922
|
-
/**
|
|
923
|
-
* useToast hook
|
|
924
|
-
* Hook for managing toast notifications
|
|
925
|
-
*
|
|
926
|
-
* @returns Object with toast and dismiss functions
|
|
927
|
-
*
|
|
928
|
-
* @example
|
|
929
|
-
* ```tsx
|
|
930
|
-
* const { toast, dismiss } = useToast();
|
|
931
|
-
*
|
|
932
|
-
* // Show a toast
|
|
933
|
-
* toast({
|
|
934
|
-
* title: "Success!",
|
|
935
|
-
* description: "Your changes have been saved."
|
|
936
|
-
* });
|
|
937
|
-
*
|
|
938
|
-
* // Dismiss all toasts
|
|
939
|
-
* dismiss();
|
|
940
|
-
* ```
|
|
941
|
-
*/
|
|
942
|
-
declare function useToast(): {
|
|
943
|
-
toast: (props: any) => void;
|
|
944
|
-
dismiss: () => void;
|
|
945
|
-
};
|
|
946
922
|
/**
|
|
947
923
|
* Toaster component
|
|
948
|
-
* Container component that
|
|
924
|
+
* Container component that renders actual toast notifications
|
|
949
925
|
* Should be placed at the root of your application
|
|
950
926
|
*
|
|
951
|
-
* @returns JSX.Element - The toast provider with viewport
|
|
927
|
+
* @returns JSX.Element - The toast provider with viewport and rendered toasts
|
|
952
928
|
*
|
|
953
929
|
* @example
|
|
954
930
|
* ```tsx
|
|
@@ -3408,4 +3384,4 @@ declare function PublicLoadingSkeleton({ lines, className }: {
|
|
|
3408
3384
|
className?: string;
|
|
3409
3385
|
}): react_jsx_runtime.JSX.Element;
|
|
3410
3386
|
|
|
3411
|
-
export { SelectValue as $, Alert as A, Button as B, Card as C, Dialog as D, DialogTrigger as E, DialogClose as F, DialogContent as G, DialogHeader as H, Input as I, DialogBody as J, DialogFooter as K, Label as L, DialogTitle as M, DialogDescription as N, type DialogProps as O, Progress as P, type DialogTriggerProps as Q, type DialogContentProps as R, type DialogOverlayProps as S, Table as T, type DialogHeaderProps as U, type DialogFooterProps as V, type DialogTitleProps as W, type DialogDescriptionProps as X, type DialogSize as Y, Select as Z, SelectGroup as _, type ButtonProps as a, type
|
|
3387
|
+
export { SelectValue as $, Alert as A, Button as B, Card as C, Dialog as D, DialogTrigger as E, DialogClose as F, DialogContent as G, DialogHeader as H, Input as I, DialogBody as J, DialogFooter as K, Label as L, DialogTitle as M, DialogDescription as N, type DialogProps as O, Progress as P, type DialogTriggerProps as Q, type DialogContentProps as R, type DialogOverlayProps as S, Table as T, type DialogHeaderProps as U, type DialogFooterProps as V, type DialogTitleProps as W, type DialogDescriptionProps as X, type DialogSize as Y, Select as Z, SelectGroup as _, type ButtonProps as a, type PublicPageHeaderProps as a$, SelectTrigger as a0, SelectContent as a1, SelectLabel as a2, SelectItem as a3, SelectSeparator as a4, Toast as a5, Toaster as a6, ToastAction as a7, ToastProvider as a8, ToastViewport as a9, LoadingSpinner as aA, EventSelector as aB, PasswordResetForm as aC, useStorage as aD, useFileUpload as aE, type UseStorageOptions as aF, type UseStorageReturn as aG, PublicPageLayout as aH, usePublicPageContext$1 as aI, PublicPageHeader as aJ, PublicPageProvider as aK, usePublicPageContext as aL, useIsPublicPage as aM, PublicPageFooter as aN, PublicPageDebugger as aO, PublicPageDiagnostic as aP, PublicPageContextChecker as aQ, EventLogo as aR, EventLogoCompact as aS, EventLogoLarge as aT, PublicErrorBoundary as aU, useErrorBoundary as aV, DefaultPublicErrorFallback as aW, PublicLoadingSpinner as aX, PublicLoadingSpinnerFullPage as aY, PublicLoadingSkeleton as aZ, type PublicPageLayoutProps as a_, ToastTitle as aa, ToastDescription as ab, ToastClose as ac, type ToastActionElement as ad, type ToastProps as ae, Tooltip as af, TooltipTrigger as ag, TooltipContent as ah, TooltipProvider as ai, TooltipRoot as aj, Form as ak, type FormProps as al, LoginForm as am, type LoginFormProps as an, Header as ao, Footer as ap, type FooterProps as aq, NavigationMenu as ar, type NavigationMenuProps as as, type NavigationItem as at, OrganisationSelector as au, type OrganisationSelectorProps as av, UserMenu as aw, ErrorBoundary as ax, type ErrorBoundaryProps as ay, type ErrorBoundaryState as az, CardHeader as b, type PublicPageFooterProps as b0, type EventLogoProps as b1, type PublicErrorBoundaryProps as b2, type PublicErrorBoundaryState as b3, type PublicLoadingSpinnerProps as b4, type PaceAppLayoutProps as b5, PaceAppLayout as b6, type PaceLoginPageProps as b7, PaceLoginPage as b8, type FileSizeLimits as b9, type StorageConfig as ba, type StorageUploadOptions as bb, type StorageFileMetadata as bc, type StorageUploadResult as bd, type StorageUrlOptions as be, type StorageListOptions as bf, type StorageListResult as bg, type UserMenuProps as bh, type StorageFileInfo as bi, CardFooter as c, CardTitle as d, CardDescription as e, CardContent as f, CardActions as g, type CardProps as h, type CardActionsProps as i, type InputProps as j, type LabelProps as k, AlertTitle as l, AlertDescription as m, Avatar as n, AvatarImage as o, AvatarFallback as p, Checkbox as q, TableHeader as r, TableBody as s, TableCaption as t, TableCell as u, TableFooter as v, TableHead as w, TableRow as x, DialogPortal as y, DialogOverlay as z };
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
isPermittedCached,
|
|
17
17
|
isSuperAdmin,
|
|
18
18
|
setupRBAC
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NHR52QAQ.js";
|
|
20
20
|
import "./chunk-B2WTCLCV.js";
|
|
21
21
|
import "./chunk-PLDDJCW6.js";
|
|
22
22
|
export {
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
isSuperAdmin,
|
|
39
39
|
setupRBAC
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=api-
|
|
41
|
+
//# sourceMappingURL=api-A4SUYPPV.js.map
|