@cfast/ui 0.3.0 → 0.3.1
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.
|
@@ -1479,6 +1479,10 @@ declare function useComponent<K extends keyof UIPluginComponents>(slot: K): UIPl
|
|
|
1479
1479
|
* the user confirms, or `false` if they cancel or dismiss.
|
|
1480
1480
|
*/
|
|
1481
1481
|
type ConfirmFn = (options: ConfirmOptions) => Promise<boolean>;
|
|
1482
|
+
type ConfirmContextValue = {
|
|
1483
|
+
confirm: ConfirmFn;
|
|
1484
|
+
};
|
|
1485
|
+
declare const ConfirmContext: react.Context<ConfirmContextValue | null>;
|
|
1482
1486
|
/**
|
|
1483
1487
|
* Returns an imperative {@link ConfirmFn} that opens a confirmation dialog
|
|
1484
1488
|
* and resolves to `true` (confirmed) or `false` (cancelled/dismissed).
|
|
@@ -2005,4 +2009,4 @@ declare function ListView<T = unknown>({ title, data, table: _table, columns, ac
|
|
|
2005
2009
|
*/
|
|
2006
2010
|
declare function DetailView<T = unknown>({ title, table, record, fields: fieldsProp, exclude, breadcrumb, }: DetailViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
2007
2011
|
|
|
2008
|
-
export { type
|
|
2012
|
+
export { type FormStatusData as $, type AppShellProps as A, type BooleanFieldProps as B, type ChipSlotProps as C, type DateFieldProps as D, type EmailFieldProps as E, type FileFieldProps as F, type DataTableProps as G, DetailView as H, type ImageFieldProps as I, type JsonFieldProps as J, type DetailViewProps as K, DropZone as L, type DropZoneProps as M, type NumberFieldProps as N, type DropZoneSlotProps as O, FileList$1 as P, type FileListFile as Q, type RelationFieldProps as R, type FileListProps as S, type TextFieldProps as T, type UrlFieldProps as U, FilterBar as V, type FilterBarProps as W, type FilterDef as X, type FilterOption as Y, type FilterType as Z, FormStatus as _, type UploadFieldProps as a, type FormStatusProps as a0, ImagePreview as a1, type ImagePreviewProps as a2, ImpersonationBanner as a3, type ImpersonationBannerProps as a4, ListView as a5, type ListViewProps as a6, type PageContainerSlotProps as a7, PermissionGate as a8, type PermissionGateProps as a9, useUIPlugin as aA, RoleBadge as aa, type RoleBadgeProps as ab, type SidebarSlotProps as ac, type TableCellSlotProps as ad, type TableRowSlotProps as ae, type TableSectionSlotProps as af, type TableSlotProps as ag, type ToastApi as ah, ToastContext as ai, type ToastOptions as aj, type ToastSlotProps as ak, type ToastType as al, type TooltipSlotProps as am, type UIPlugin as an, type UIPluginComponents as ao, UIPluginProvider as ap, type UploadFieldFile as aq, type UserMenuLink as ar, type WhenForbidden as as, createUIPlugin as at, getInitials as au, useActionToast as av, useColumnInference as aw, useComponent as ax, useConfirm as ay, useToast as az, type FieldComponent as b, type EmptyStateProps as c, type NavigationProgressProps as d, type BreadcrumbItem as e, type TabItem as f, type NavigationItem as g, type UserMenuProps as h, ActionButton as i, type ActionButtonProps as j, type AlertSlotProps as k, type AppShellSlotProps as l, AvatarWithInitials as m, type AvatarWithInitialsProps as n, type BaseFieldProps as o, type BreadcrumbSlotProps as p, type BulkAction as q, BulkActionBar as r, type ButtonSlotProps as s, type ColumnDef as t, type ColumnShorthand as u, ConfirmContext as v, type ConfirmDialogSlotProps as w, type ConfirmOptions as x, ConfirmProvider as y, DataTable as z };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as ActionButton, m as AvatarWithInitials, r as BulkActionBar,
|
|
1
|
+
export { i as ActionButton, m as AvatarWithInitials, r as BulkActionBar, y as ConfirmProvider, z as DataTable, H as DetailView, L as DropZone, P as FileList, V as FilterBar, _ as FormStatus, a1 as ImagePreview, a3 as ImpersonationBanner, a5 as ListView, a8 as PermissionGate, aa as RoleBadge, ap as UIPluginProvider, at as createUIPlugin, au as getInitials, av as useActionToast, aw as useColumnInference, ax as useComponent, ay as useConfirm, az as useToast, aA as useUIPlugin } from './client-DcCN1BR-.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@cfast/actions/client';
|
package/dist/client.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DateFieldProps, B as BooleanFieldProps, N as NumberFieldProps, T as TextFieldProps, E as EmailFieldProps, U as UrlFieldProps, I as ImageFieldProps, F as FileFieldProps, R as RelationFieldProps, J as JsonFieldProps, a as UploadFieldProps, b as FieldComponent, c as EmptyStateProps, d as NavigationProgressProps, e as BreadcrumbItem, f as TabItem, A as AppShellProps, g as NavigationItem, h as UserMenuProps } from './client-
|
|
2
|
-
export { i as ActionButton, j as ActionButtonProps, k as AlertSlotProps, l as AppShellSlotProps, m as AvatarWithInitials, n as AvatarWithInitialsProps, o as BaseFieldProps, p as BreadcrumbSlotProps, q as BulkAction, r as BulkActionBar, s as ButtonSlotProps, C as ChipSlotProps, t as ColumnDef, u as ColumnShorthand, v as
|
|
1
|
+
import { D as DateFieldProps, B as BooleanFieldProps, N as NumberFieldProps, T as TextFieldProps, E as EmailFieldProps, U as UrlFieldProps, I as ImageFieldProps, F as FileFieldProps, R as RelationFieldProps, J as JsonFieldProps, a as UploadFieldProps, b as FieldComponent, c as EmptyStateProps, d as NavigationProgressProps, e as BreadcrumbItem, f as TabItem, A as AppShellProps, g as NavigationItem, h as UserMenuProps } from './client-DcCN1BR-.js';
|
|
2
|
+
export { i as ActionButton, j as ActionButtonProps, k as AlertSlotProps, l as AppShellSlotProps, m as AvatarWithInitials, n as AvatarWithInitialsProps, o as BaseFieldProps, p as BreadcrumbSlotProps, q as BulkAction, r as BulkActionBar, s as ButtonSlotProps, C as ChipSlotProps, t as ColumnDef, u as ColumnShorthand, v as ConfirmContext, w as ConfirmDialogSlotProps, x as ConfirmOptions, y as ConfirmProvider, z as DataTable, G as DataTableProps, H as DetailView, K as DetailViewProps, L as DropZone, M as DropZoneProps, O as DropZoneSlotProps, P as FileList, Q as FileListFile, S as FileListProps, V as FilterBar, W as FilterBarProps, X as FilterDef, Y as FilterOption, Z as FilterType, _ as FormStatus, $ as FormStatusData, a0 as FormStatusProps, a1 as ImagePreview, a2 as ImagePreviewProps, a3 as ImpersonationBanner, a4 as ImpersonationBannerProps, a5 as ListView, a6 as ListViewProps, a7 as PageContainerSlotProps, a8 as PermissionGate, a9 as PermissionGateProps, aa as RoleBadge, ab as RoleBadgeProps, ac as SidebarSlotProps, ad as TableCellSlotProps, ae as TableRowSlotProps, af as TableSectionSlotProps, ag as TableSlotProps, ah as ToastApi, ai as ToastContext, aj as ToastOptions, ak as ToastSlotProps, al as ToastType, am as TooltipSlotProps, an as UIPlugin, ao as UIPluginComponents, ap as UIPluginProvider, aq as UploadFieldFile, ar as UserMenuLink, as as WhenForbidden, at as createUIPlugin, au as getInitials, av as useActionToast, aw as useColumnInference, ax as useComponent, ay as useConfirm, az as useToast, aA as useUIPlugin } from './client-DcCN1BR-.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { ClientDescriptor, ActionHookResult } from '@cfast/actions/client';
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AvatarWithInitials,
|
|
4
4
|
BooleanField,
|
|
5
5
|
BulkActionBar,
|
|
6
|
+
ConfirmContext,
|
|
6
7
|
ConfirmProvider,
|
|
7
8
|
DataTable,
|
|
8
9
|
DateField,
|
|
@@ -37,7 +38,7 @@ import {
|
|
|
37
38
|
useConfirm,
|
|
38
39
|
useToast,
|
|
39
40
|
useUIPlugin
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TLLCSKE5.js";
|
|
41
42
|
|
|
42
43
|
// src/fields/url-field.tsx
|
|
43
44
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -676,6 +677,7 @@ export {
|
|
|
676
677
|
AvatarWithInitials,
|
|
677
678
|
BooleanField,
|
|
678
679
|
BulkActionBar,
|
|
680
|
+
ConfirmContext,
|
|
679
681
|
ConfirmProvider,
|
|
680
682
|
DataTable,
|
|
681
683
|
DateField,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfast/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Permission-aware React components with UI library plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cfast",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@cfast/auth": ">=0.3.0 <0.5.0",
|
|
42
42
|
"@cfast/db": ">=0.3.0 <0.5.0",
|
|
43
43
|
"@cfast/pagination": ">=0.2.0 <0.4.0",
|
|
44
|
-
"@cfast/permissions": ">=0.3.0 <0.
|
|
44
|
+
"@cfast/permissions": ">=0.3.0 <0.6.0",
|
|
45
45
|
"@cfast/storage": ">=0.1.0 <0.3.0",
|
|
46
46
|
"react": ">=19",
|
|
47
47
|
"react-dom": ">=19",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"tsup": "^8",
|
|
80
80
|
"typescript": "^5.7",
|
|
81
81
|
"vitest": "^4.1.0",
|
|
82
|
-
"@cfast/actions": "0.1.
|
|
83
|
-
"@cfast/auth": "0.4.
|
|
82
|
+
"@cfast/actions": "0.1.3",
|
|
83
|
+
"@cfast/auth": "0.4.2",
|
|
84
|
+
"@cfast/db": "0.4.1",
|
|
84
85
|
"@cfast/pagination": "0.2.0",
|
|
85
|
-
"@cfast/permissions": "0.
|
|
86
|
-
"@cfast/storage": "0.2.
|
|
87
|
-
"@cfast/db": "0.4.0"
|
|
86
|
+
"@cfast/permissions": "0.5.1",
|
|
87
|
+
"@cfast/storage": "0.2.1"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsup src/index.ts src/client.ts --format esm --dts",
|