braid-ui 1.0.177 → 1.0.178
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/css/braid-ui.css +18 -0
- package/dist/css/braid-ui.min.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -8
- package/dist/index.d.ts +19 -8
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,21 @@ 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
|
-
|
|
1688
|
-
|
|
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;
|
|
1695
1705
|
createdKeyDialogOpen: boolean;
|
|
1696
1706
|
onCreatedKeyDialogOpenChange: (open: boolean) => void;
|
|
1697
1707
|
createdKey: ApiKey | null;
|
|
@@ -1701,7 +1711,7 @@ interface UserDetailViewProps {
|
|
|
1701
1711
|
onDisable: () => void;
|
|
1702
1712
|
onDelete: () => void;
|
|
1703
1713
|
}
|
|
1704
|
-
declare const UserDetailView: ({ user, statusLabel,
|
|
1714
|
+
declare const UserDetailView: ({ user, tenantHref, statusLabel, adminGroupOptions, developerGroupOptions, selectedGroup, onSelectGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createKeyNameDialogOpen, onCreateKeyNameDialogOpenChange, createKeyName, onCreateKeyNameChange, onConfirmCreateKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
1705
1715
|
|
|
1706
1716
|
interface SelectOption$1 {
|
|
1707
1717
|
value: string;
|
|
@@ -1716,13 +1726,14 @@ interface CreateUserFormValues {
|
|
|
1716
1726
|
interface CreateUserViewProps {
|
|
1717
1727
|
values: CreateUserFormValues;
|
|
1718
1728
|
onChange: (field: keyof CreateUserFormValues, value: string) => void;
|
|
1729
|
+
tenantOptions: SelectOption$1[];
|
|
1719
1730
|
adminGroupOptions: SelectOption$1[];
|
|
1720
1731
|
developerGroupOptions: SelectOption$1[];
|
|
1721
1732
|
onCancel: () => void;
|
|
1722
1733
|
onSubmit: () => void;
|
|
1723
1734
|
isSubmitting: boolean;
|
|
1724
1735
|
}
|
|
1725
|
-
declare const CreateUserView: ({ values, onChange, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
|
|
1736
|
+
declare const CreateUserView: ({ values, onChange, tenantOptions, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
|
|
1726
1737
|
|
|
1727
1738
|
interface StatementHeader {
|
|
1728
1739
|
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,21 @@ 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
|
-
|
|
1688
|
-
|
|
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;
|
|
1695
1705
|
createdKeyDialogOpen: boolean;
|
|
1696
1706
|
onCreatedKeyDialogOpenChange: (open: boolean) => void;
|
|
1697
1707
|
createdKey: ApiKey | null;
|
|
@@ -1701,7 +1711,7 @@ interface UserDetailViewProps {
|
|
|
1701
1711
|
onDisable: () => void;
|
|
1702
1712
|
onDelete: () => void;
|
|
1703
1713
|
}
|
|
1704
|
-
declare const UserDetailView: ({ user, statusLabel,
|
|
1714
|
+
declare const UserDetailView: ({ user, tenantHref, statusLabel, adminGroupOptions, developerGroupOptions, selectedGroup, onSelectGroup, auditEvents, actionLabelMap, apiKeys, onDeleteApiKey, createKeyNameDialogOpen, onCreateKeyNameDialogOpenChange, createKeyName, onCreateKeyNameChange, onConfirmCreateKey, createdKeyDialogOpen, onCreatedKeyDialogOpenChange, createdKey, onCreateKey, onCopyKey, onResetPassword, onDisable, onDelete, }: UserDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
1705
1715
|
|
|
1706
1716
|
interface SelectOption$1 {
|
|
1707
1717
|
value: string;
|
|
@@ -1716,13 +1726,14 @@ interface CreateUserFormValues {
|
|
|
1716
1726
|
interface CreateUserViewProps {
|
|
1717
1727
|
values: CreateUserFormValues;
|
|
1718
1728
|
onChange: (field: keyof CreateUserFormValues, value: string) => void;
|
|
1729
|
+
tenantOptions: SelectOption$1[];
|
|
1719
1730
|
adminGroupOptions: SelectOption$1[];
|
|
1720
1731
|
developerGroupOptions: SelectOption$1[];
|
|
1721
1732
|
onCancel: () => void;
|
|
1722
1733
|
onSubmit: () => void;
|
|
1723
1734
|
isSubmitting: boolean;
|
|
1724
1735
|
}
|
|
1725
|
-
declare const CreateUserView: ({ values, onChange, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
|
|
1736
|
+
declare const CreateUserView: ({ values, onChange, tenantOptions, adminGroupOptions, developerGroupOptions, onCancel, onSubmit, isSubmitting, }: CreateUserViewProps) => react_jsx_runtime.JSX.Element;
|
|
1726
1737
|
|
|
1727
1738
|
interface StatementHeader {
|
|
1728
1739
|
account?: string;
|