braid-ui 1.0.177 → 1.0.179

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
@@ -1654,8 +1654,15 @@ interface UserRecord {
1654
1654
  groups: string[];
1655
1655
  status: string;
1656
1656
  deleted: boolean;
1657
+ pendingApprovalAlertId?: string;
1657
1658
  }
1658
1659
 
1660
+ type AuditFieldChange = {
1661
+ field: string;
1662
+ label: string;
1663
+ from: string | null;
1664
+ to: string | null;
1665
+ };
1659
1666
  interface AuditEvent {
1660
1667
  id: string;
1661
1668
  timestamp: string;
@@ -1664,6 +1671,7 @@ interface AuditEvent {
1664
1671
  action: string;
1665
1672
  details: string;
1666
1673
  ipAddress: string;
1674
+ changes?: AuditFieldChange[];
1667
1675
  }
1668
1676
 
1669
1677
  interface ApiKey {
@@ -1679,19 +1687,22 @@ interface SelectOption$2 {
1679
1687
  }
1680
1688
  interface UserDetailViewProps {
1681
1689
  user: UserRecord;
1690
+ tenantHref: string;
1682
1691
  statusLabel: string;
1683
- activeTab: "groups" | "audit" | "api";
1684
- onTabChange: (tab: "groups" | "audit" | "api") => void;
1685
1692
  adminGroupOptions: SelectOption$2[];
1686
1693
  developerGroupOptions: SelectOption$2[];
1687
- selectedAdminGroups: string[];
1688
- selectedDeveloperGroups: string[];
1689
- onToggleAdminGroup: (value: string) => void;
1690
- onToggleDeveloperGroup: (value: string) => void;
1694
+ selectedGroup: string;
1695
+ onSelectGroup: (value: string) => void;
1691
1696
  auditEvents: AuditEvent[];
1692
1697
  actionLabelMap: Record<string, string>;
1693
1698
  apiKeys: ApiKey[];
1694
1699
  onDeleteApiKey: (id: string) => void;
1700
+ createKeyNameDialogOpen: boolean;
1701
+ onCreateKeyNameDialogOpenChange: (open: boolean) => void;
1702
+ createKeyName: string;
1703
+ onCreateKeyNameChange: (value: string) => void;
1704
+ onConfirmCreateKey: () => void;
1705
+ isCreatingKey?: boolean;
1695
1706
  createdKeyDialogOpen: boolean;
1696
1707
  onCreatedKeyDialogOpenChange: (open: boolean) => void;
1697
1708
  createdKey: ApiKey | null;
@@ -1701,7 +1712,7 @@ interface UserDetailViewProps {
1701
1712
  onDisable: () => void;
1702
1713
  onDelete: () => void;
1703
1714
  }
1704
- declare const UserDetailView: ({ user, statusLabel, activeTab, onTabChange, adminGroupOptions, developerGroupOptions, selectedAdminGroups, selectedDeveloperGroups, onToggleAdminGroup, onToggleDeveloperGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
1715
+ declare const UserDetailView: ({ user, tenantHref, statusLabel, adminGroupOptions, developerGroupOptions, selectedGroup, onSelectGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createKeyNameDialogOpen, onCreateKeyNameDialogOpenChange, createKeyName, onCreateKeyNameChange, onConfirmCreateKey, isCreatingKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
1705
1716
 
1706
1717
  interface SelectOption$1 {
1707
1718
  value: string;
@@ -1716,13 +1727,14 @@ interface CreateUserFormValues {
1716
1727
  interface CreateUserViewProps {
1717
1728
  values: CreateUserFormValues;
1718
1729
  onChange: (field: keyof CreateUserFormValues, value: string) => void;
1730
+ tenantOptions: SelectOption$1[];
1719
1731
  adminGroupOptions: SelectOption$1[];
1720
1732
  developerGroupOptions: SelectOption$1[];
1721
1733
  onCancel: () => void;
1722
1734
  onSubmit: () => void;
1723
1735
  isSubmitting: boolean;
1724
1736
  }
1725
- declare const CreateUserView: ({ values, onChange, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
1737
+ declare const CreateUserView: ({ values, onChange, tenantOptions, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
1726
1738
 
1727
1739
  interface StatementHeader {
1728
1740
  account?: string;
package/dist/index.d.ts CHANGED
@@ -1654,8 +1654,15 @@ interface UserRecord {
1654
1654
  groups: string[];
1655
1655
  status: string;
1656
1656
  deleted: boolean;
1657
+ pendingApprovalAlertId?: string;
1657
1658
  }
1658
1659
 
1660
+ type AuditFieldChange = {
1661
+ field: string;
1662
+ label: string;
1663
+ from: string | null;
1664
+ to: string | null;
1665
+ };
1659
1666
  interface AuditEvent {
1660
1667
  id: string;
1661
1668
  timestamp: string;
@@ -1664,6 +1671,7 @@ interface AuditEvent {
1664
1671
  action: string;
1665
1672
  details: string;
1666
1673
  ipAddress: string;
1674
+ changes?: AuditFieldChange[];
1667
1675
  }
1668
1676
 
1669
1677
  interface ApiKey {
@@ -1679,19 +1687,22 @@ interface SelectOption$2 {
1679
1687
  }
1680
1688
  interface UserDetailViewProps {
1681
1689
  user: UserRecord;
1690
+ tenantHref: string;
1682
1691
  statusLabel: string;
1683
- activeTab: "groups" | "audit" | "api";
1684
- onTabChange: (tab: "groups" | "audit" | "api") => void;
1685
1692
  adminGroupOptions: SelectOption$2[];
1686
1693
  developerGroupOptions: SelectOption$2[];
1687
- selectedAdminGroups: string[];
1688
- selectedDeveloperGroups: string[];
1689
- onToggleAdminGroup: (value: string) => void;
1690
- onToggleDeveloperGroup: (value: string) => void;
1694
+ selectedGroup: string;
1695
+ onSelectGroup: (value: string) => void;
1691
1696
  auditEvents: AuditEvent[];
1692
1697
  actionLabelMap: Record<string, string>;
1693
1698
  apiKeys: ApiKey[];
1694
1699
  onDeleteApiKey: (id: string) => void;
1700
+ createKeyNameDialogOpen: boolean;
1701
+ onCreateKeyNameDialogOpenChange: (open: boolean) => void;
1702
+ createKeyName: string;
1703
+ onCreateKeyNameChange: (value: string) => void;
1704
+ onConfirmCreateKey: () => void;
1705
+ isCreatingKey?: boolean;
1695
1706
  createdKeyDialogOpen: boolean;
1696
1707
  onCreatedKeyDialogOpenChange: (open: boolean) => void;
1697
1708
  createdKey: ApiKey | null;
@@ -1701,7 +1712,7 @@ interface UserDetailViewProps {
1701
1712
  onDisable: () => void;
1702
1713
  onDelete: () => void;
1703
1714
  }
1704
- declare const UserDetailView: ({ user, statusLabel, activeTab, onTabChange, adminGroupOptions, developerGroupOptions, selectedAdminGroups, selectedDeveloperGroups, onToggleAdminGroup, onToggleDeveloperGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
1715
+ declare const UserDetailView: ({ user, tenantHref, statusLabel, adminGroupOptions, developerGroupOptions, selectedGroup, onSelectGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createKeyNameDialogOpen, onCreateKeyNameDialogOpenChange, createKeyName, onCreateKeyNameChange, onConfirmCreateKey, isCreatingKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
1705
1716
 
1706
1717
  interface SelectOption$1 {
1707
1718
  value: string;
@@ -1716,13 +1727,14 @@ interface CreateUserFormValues {
1716
1727
  interface CreateUserViewProps {
1717
1728
  values: CreateUserFormValues;
1718
1729
  onChange: (field: keyof CreateUserFormValues, value: string) => void;
1730
+ tenantOptions: SelectOption$1[];
1719
1731
  adminGroupOptions: SelectOption$1[];
1720
1732
  developerGroupOptions: SelectOption$1[];
1721
1733
  onCancel: () => void;
1722
1734
  onSubmit: () => void;
1723
1735
  isSubmitting: boolean;
1724
1736
  }
1725
- declare const CreateUserView: ({ values, onChange, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
1737
+ declare const CreateUserView: ({ values, onChange, tenantOptions, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
1726
1738
 
1727
1739
  interface StatementHeader {
1728
1740
  account?: string;