@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/docs/api/modules.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.61](README.md) / Exports
|
|
2
2
|
|
|
3
|
-
# @jmruthers/pace-core - v0.5.
|
|
3
|
+
# @jmruthers/pace-core - v0.5.61
|
|
4
4
|
|
|
5
5
|
**`File`**
|
|
6
6
|
|
|
@@ -247,7 +247,6 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
247
247
|
- [ToastClose](modules.md#toastclose)
|
|
248
248
|
- [ToastTitle](modules.md#toasttitle)
|
|
249
249
|
- [ToastDescription](modules.md#toastdescription)
|
|
250
|
-
- [useToast](modules.md#usetoast)
|
|
251
250
|
- [Toaster](modules.md#toaster)
|
|
252
251
|
- [TooltipProvider](modules.md#tooltipprovider)
|
|
253
252
|
- [TooltipRoot](modules.md#tooltiproot)
|
|
@@ -271,6 +270,7 @@ import { Dialog, NavigationMenu } from '@jmruthers/pace-core/components';
|
|
|
271
270
|
- [useOrganisationSecurity](modules.md#useorganisationsecurity)
|
|
272
271
|
- [useStorage](modules.md#usestorage)
|
|
273
272
|
- [useFileUpload](modules.md#usefileupload)
|
|
273
|
+
- [useToast](modules.md#usetoast)
|
|
274
274
|
- [useEvents](modules.md#useevents)
|
|
275
275
|
- [EventProvider](modules.md#eventprovider)
|
|
276
276
|
- [OrganisationProvider](modules.md#organisationprovider)
|
|
@@ -3220,7 +3220,7 @@ ___
|
|
|
3220
3220
|
|
|
3221
3221
|
#### Defined in
|
|
3222
3222
|
|
|
3223
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3223
|
+
[packages/core/src/components/Toast/Toast.tsx:94](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L94)
|
|
3224
3224
|
|
|
3225
3225
|
___
|
|
3226
3226
|
|
|
@@ -3245,7 +3245,7 @@ JSX.Element - The toast viewport container
|
|
|
3245
3245
|
|
|
3246
3246
|
#### Defined in
|
|
3247
3247
|
|
|
3248
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3248
|
+
[packages/core/src/components/Toast/Toast.tsx:104](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L104)
|
|
3249
3249
|
|
|
3250
3250
|
___
|
|
3251
3251
|
|
|
@@ -3280,7 +3280,7 @@ JSX.Element - The rendered toast notification
|
|
|
3280
3280
|
|
|
3281
3281
|
#### Defined in
|
|
3282
3282
|
|
|
3283
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3283
|
+
[packages/core/src/components/Toast/Toast.tsx:137](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L137)
|
|
3284
3284
|
|
|
3285
3285
|
___
|
|
3286
3286
|
|
|
@@ -3311,7 +3311,7 @@ JSX.Element - The action button element
|
|
|
3311
3311
|
|
|
3312
3312
|
#### Defined in
|
|
3313
3313
|
|
|
3314
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3314
|
+
[packages/core/src/components/Toast/Toast.tsx:168](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L168)
|
|
3315
3315
|
|
|
3316
3316
|
___
|
|
3317
3317
|
|
|
@@ -3342,7 +3342,7 @@ JSX.Element - The close button with X icon
|
|
|
3342
3342
|
|
|
3343
3343
|
#### Defined in
|
|
3344
3344
|
|
|
3345
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3345
|
+
[packages/core/src/components/Toast/Toast.tsx:197](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L197)
|
|
3346
3346
|
|
|
3347
3347
|
___
|
|
3348
3348
|
|
|
@@ -3373,7 +3373,7 @@ JSX.Element - The toast title
|
|
|
3373
3373
|
|
|
3374
3374
|
#### Defined in
|
|
3375
3375
|
|
|
3376
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3376
|
+
[packages/core/src/components/Toast/Toast.tsx:229](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L229)
|
|
3377
3377
|
|
|
3378
3378
|
___
|
|
3379
3379
|
|
|
@@ -3404,46 +3404,7 @@ JSX.Element - The toast description
|
|
|
3404
3404
|
|
|
3405
3405
|
#### Defined in
|
|
3406
3406
|
|
|
3407
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3408
|
-
|
|
3409
|
-
___
|
|
3410
|
-
|
|
3411
|
-
### useToast
|
|
3412
|
-
|
|
3413
|
-
▸ **useToast**(): `Object`
|
|
3414
|
-
|
|
3415
|
-
useToast hook
|
|
3416
|
-
Hook for managing toast notifications
|
|
3417
|
-
|
|
3418
|
-
#### Returns
|
|
3419
|
-
|
|
3420
|
-
`Object`
|
|
3421
|
-
|
|
3422
|
-
Object with toast and dismiss functions
|
|
3423
|
-
|
|
3424
|
-
| Name | Type |
|
|
3425
|
-
| :------ | :------ |
|
|
3426
|
-
| `toast` | (`props`: `any`) => `void` |
|
|
3427
|
-
| `dismiss` | () => `void` |
|
|
3428
|
-
|
|
3429
|
-
**`Example`**
|
|
3430
|
-
|
|
3431
|
-
```tsx
|
|
3432
|
-
const { toast, dismiss } = useToast();
|
|
3433
|
-
|
|
3434
|
-
// Show a toast
|
|
3435
|
-
toast({
|
|
3436
|
-
title: "Success!",
|
|
3437
|
-
description: "Your changes have been saved."
|
|
3438
|
-
});
|
|
3439
|
-
|
|
3440
|
-
// Dismiss all toasts
|
|
3441
|
-
dismiss();
|
|
3442
|
-
```
|
|
3443
|
-
|
|
3444
|
-
#### Defined in
|
|
3445
|
-
|
|
3446
|
-
[packages/core/src/components/Toast/Toast.tsx:292](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L292)
|
|
3407
|
+
[packages/core/src/components/Toast/Toast.tsx:255](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L255)
|
|
3447
3408
|
|
|
3448
3409
|
___
|
|
3449
3410
|
|
|
@@ -3452,14 +3413,14 @@ ___
|
|
|
3452
3413
|
▸ **Toaster**(): `Element`
|
|
3453
3414
|
|
|
3454
3415
|
Toaster component
|
|
3455
|
-
Container component that
|
|
3416
|
+
Container component that renders actual toast notifications
|
|
3456
3417
|
Should be placed at the root of your application
|
|
3457
3418
|
|
|
3458
3419
|
#### Returns
|
|
3459
3420
|
|
|
3460
3421
|
`Element`
|
|
3461
3422
|
|
|
3462
|
-
JSX.Element - The toast provider with viewport
|
|
3423
|
+
JSX.Element - The toast provider with viewport and rendered toasts
|
|
3463
3424
|
|
|
3464
3425
|
**`Example`**
|
|
3465
3426
|
|
|
@@ -3476,7 +3437,7 @@ function App() {
|
|
|
3476
3437
|
|
|
3477
3438
|
#### Defined in
|
|
3478
3439
|
|
|
3479
|
-
[packages/core/src/components/Toast/Toast.tsx:
|
|
3440
|
+
[packages/core/src/components/Toast/Toast.tsx:291](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/components/Toast/Toast.tsx#L291)
|
|
3480
3441
|
|
|
3481
3442
|
___
|
|
3482
3443
|
|
|
@@ -3991,6 +3952,30 @@ Hook for file upload with progress tracking
|
|
|
3991
3952
|
|
|
3992
3953
|
___
|
|
3993
3954
|
|
|
3955
|
+
### useToast
|
|
3956
|
+
|
|
3957
|
+
▸ **useToast**(): `Object`
|
|
3958
|
+
|
|
3959
|
+
Hook for managing toast notifications
|
|
3960
|
+
|
|
3961
|
+
#### Returns
|
|
3962
|
+
|
|
3963
|
+
`Object`
|
|
3964
|
+
|
|
3965
|
+
Object with toast state and control methods
|
|
3966
|
+
|
|
3967
|
+
| Name | Type | Description |
|
|
3968
|
+
| :------ | :------ | :------ |
|
|
3969
|
+
| `toasts` | `ToasterToast`[] | Array of active toasts |
|
|
3970
|
+
| `toast` | (`props`: `Toast`) => \{ `id`: `string` = id; `dismiss`: () => `void` ; `update`: (`props`: `Partial`\<`Omit`\<`ToasterToast`, ``"id"``\>\>) => `void` } | Creates a new toast notification |
|
|
3971
|
+
| `dismiss` | (`toastId?`: `string`) => `void` | - |
|
|
3972
|
+
|
|
3973
|
+
#### Defined in
|
|
3974
|
+
|
|
3975
|
+
[packages/core/src/hooks/useToast.ts:221](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/hooks/useToast.ts#L221)
|
|
3976
|
+
|
|
3977
|
+
___
|
|
3978
|
+
|
|
3994
3979
|
### useEvents
|
|
3995
3980
|
|
|
3996
3981
|
▸ **useEvents**(): [`EventContextType`](interfaces/EventContextType.md)
|
|
@@ -460,9 +460,7 @@ PACE Core is built as a single package with multiple entry points:
|
|
|
460
460
|
"./rbac": "./dist/rbac/index.js",
|
|
461
461
|
"./validation": "./dist/validation.js",
|
|
462
462
|
"./hooks": "./dist/hooks.js",
|
|
463
|
-
"./styles": "./
|
|
464
|
-
"./styles/tokens": "./dist/styles/design-tokens.css",
|
|
465
|
-
"./styles/components": "./dist/styles/components.css"
|
|
463
|
+
"./styles/core.css": "./src/styles/core.css"
|
|
466
464
|
}
|
|
467
465
|
}
|
|
468
466
|
```
|