braid-ui 1.0.183 → 1.0.185

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/index.d.cts CHANGED
@@ -1618,6 +1618,25 @@ interface UserAuditFilters {
1618
1618
  endDate: string;
1619
1619
  }
1620
1620
 
1621
+ type AuditFieldChange = {
1622
+ field: string;
1623
+ label: string;
1624
+ from: string | null;
1625
+ to: string | null;
1626
+ };
1627
+ interface AuditEvent {
1628
+ id: string;
1629
+ timestamp: string;
1630
+ actor: string;
1631
+ targetUser: string;
1632
+ action: string;
1633
+ details: string;
1634
+ ipAddress: string;
1635
+ changes?: AuditFieldChange[];
1636
+ before?: Record<string, any>;
1637
+ after?: Record<string, any>;
1638
+ }
1639
+
1621
1640
  interface SelectOption$3 {
1622
1641
  value: string;
1623
1642
  label: string;
@@ -1636,6 +1655,8 @@ interface UsersViewProps {
1636
1655
  showDeleted: boolean;
1637
1656
  onShowDeletedChange: (value: boolean) => void;
1638
1657
  onCreateUser: () => void;
1658
+ auditChangesEvent: AuditEvent | null;
1659
+ onAuditChangesClose: () => void;
1639
1660
  onUsersFilterChange: (field: keyof UsersFilters, value: string) => void;
1640
1661
  onUsersResetFilters: () => void;
1641
1662
  onUsersApplyFilters: () => void;
@@ -1643,7 +1664,7 @@ interface UsersViewProps {
1643
1664
  onAuditResetFilters: () => void;
1644
1665
  onAuditApplyFilters: () => void;
1645
1666
  }
1646
- declare const UsersView: ({ activeTab, onTabChange, usersTable, auditTable, usersFilters, auditFilters, statusOptions, groupOptions, enabledOptions, actionOptions, showDeleted, onShowDeletedChange, onCreateUser, onUsersFilterChange, onUsersResetFilters, onUsersApplyFilters, onAuditFilterChange, onAuditResetFilters, onAuditApplyFilters, }: UsersViewProps) => react_jsx_runtime.JSX.Element;
1667
+ declare const UsersView: ({ activeTab, onTabChange, usersTable, auditTable, usersFilters, auditFilters, statusOptions, groupOptions, enabledOptions, actionOptions, showDeleted, onShowDeletedChange, onCreateUser, auditChangesEvent, onAuditChangesClose, onUsersFilterChange, onUsersResetFilters, onUsersApplyFilters, onAuditFilterChange, onAuditResetFilters, onAuditApplyFilters, }: UsersViewProps) => react_jsx_runtime.JSX.Element;
1647
1668
 
1648
1669
  interface UserRecord {
1649
1670
  id: string;
@@ -1657,23 +1678,6 @@ interface UserRecord {
1657
1678
  pendingApprovalAlertId?: string;
1658
1679
  }
1659
1680
 
1660
- type AuditFieldChange = {
1661
- field: string;
1662
- label: string;
1663
- from: string | null;
1664
- to: string | null;
1665
- };
1666
- interface AuditEvent {
1667
- id: string;
1668
- timestamp: string;
1669
- actor: string;
1670
- targetUser: string;
1671
- action: string;
1672
- details: string;
1673
- ipAddress: string;
1674
- changes?: AuditFieldChange[];
1675
- }
1676
-
1677
1681
  interface ApiKey {
1678
1682
  id: string;
1679
1683
  name: string;
@@ -2529,6 +2533,7 @@ interface DataTableProps<T = any> {
2529
2533
  sortDirection?: "asc" | "desc";
2530
2534
  onSort?: (key: string) => void;
2531
2535
  onRowClick?: (row: T) => void;
2536
+ rowClickable?: (row: T) => boolean;
2532
2537
  loading?: boolean;
2533
2538
  emptyMessage?: string;
2534
2539
  className?: string;
@@ -2539,7 +2544,7 @@ interface DataTableProps<T = any> {
2539
2544
  onPageChange: (page: number) => void;
2540
2545
  };
2541
2546
  }
2542
- declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2547
+ declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, rowClickable, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2543
2548
 
2544
2549
  interface DetailPageCard {
2545
2550
  key: string;
package/dist/index.d.ts CHANGED
@@ -1618,6 +1618,25 @@ interface UserAuditFilters {
1618
1618
  endDate: string;
1619
1619
  }
1620
1620
 
1621
+ type AuditFieldChange = {
1622
+ field: string;
1623
+ label: string;
1624
+ from: string | null;
1625
+ to: string | null;
1626
+ };
1627
+ interface AuditEvent {
1628
+ id: string;
1629
+ timestamp: string;
1630
+ actor: string;
1631
+ targetUser: string;
1632
+ action: string;
1633
+ details: string;
1634
+ ipAddress: string;
1635
+ changes?: AuditFieldChange[];
1636
+ before?: Record<string, any>;
1637
+ after?: Record<string, any>;
1638
+ }
1639
+
1621
1640
  interface SelectOption$3 {
1622
1641
  value: string;
1623
1642
  label: string;
@@ -1636,6 +1655,8 @@ interface UsersViewProps {
1636
1655
  showDeleted: boolean;
1637
1656
  onShowDeletedChange: (value: boolean) => void;
1638
1657
  onCreateUser: () => void;
1658
+ auditChangesEvent: AuditEvent | null;
1659
+ onAuditChangesClose: () => void;
1639
1660
  onUsersFilterChange: (field: keyof UsersFilters, value: string) => void;
1640
1661
  onUsersResetFilters: () => void;
1641
1662
  onUsersApplyFilters: () => void;
@@ -1643,7 +1664,7 @@ interface UsersViewProps {
1643
1664
  onAuditResetFilters: () => void;
1644
1665
  onAuditApplyFilters: () => void;
1645
1666
  }
1646
- declare const UsersView: ({ activeTab, onTabChange, usersTable, auditTable, usersFilters, auditFilters, statusOptions, groupOptions, enabledOptions, actionOptions, showDeleted, onShowDeletedChange, onCreateUser, onUsersFilterChange, onUsersResetFilters, onUsersApplyFilters, onAuditFilterChange, onAuditResetFilters, onAuditApplyFilters, }: UsersViewProps) => react_jsx_runtime.JSX.Element;
1667
+ declare const UsersView: ({ activeTab, onTabChange, usersTable, auditTable, usersFilters, auditFilters, statusOptions, groupOptions, enabledOptions, actionOptions, showDeleted, onShowDeletedChange, onCreateUser, auditChangesEvent, onAuditChangesClose, onUsersFilterChange, onUsersResetFilters, onUsersApplyFilters, onAuditFilterChange, onAuditResetFilters, onAuditApplyFilters, }: UsersViewProps) => react_jsx_runtime.JSX.Element;
1647
1668
 
1648
1669
  interface UserRecord {
1649
1670
  id: string;
@@ -1657,23 +1678,6 @@ interface UserRecord {
1657
1678
  pendingApprovalAlertId?: string;
1658
1679
  }
1659
1680
 
1660
- type AuditFieldChange = {
1661
- field: string;
1662
- label: string;
1663
- from: string | null;
1664
- to: string | null;
1665
- };
1666
- interface AuditEvent {
1667
- id: string;
1668
- timestamp: string;
1669
- actor: string;
1670
- targetUser: string;
1671
- action: string;
1672
- details: string;
1673
- ipAddress: string;
1674
- changes?: AuditFieldChange[];
1675
- }
1676
-
1677
1681
  interface ApiKey {
1678
1682
  id: string;
1679
1683
  name: string;
@@ -2529,6 +2533,7 @@ interface DataTableProps<T = any> {
2529
2533
  sortDirection?: "asc" | "desc";
2530
2534
  onSort?: (key: string) => void;
2531
2535
  onRowClick?: (row: T) => void;
2536
+ rowClickable?: (row: T) => boolean;
2532
2537
  loading?: boolean;
2533
2538
  emptyMessage?: string;
2534
2539
  className?: string;
@@ -2539,7 +2544,7 @@ interface DataTableProps<T = any> {
2539
2544
  onPageChange: (page: number) => void;
2540
2545
  };
2541
2546
  }
2542
- declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2547
+ declare function DataTable<T extends Record<string, any>>({ columns, data, sortBy, sortDirection, onSort, onRowClick, rowClickable, loading, emptyMessage, className, pagination }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
2543
2548
 
2544
2549
  interface DetailPageCard {
2545
2550
  key: string;