@danxbot/ui 20.1.1 → 20.2.0
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.js +3673 -3672
- package/dist/index.js.map +1 -1
- package/dist/types/components/rbac/AccessRequestPanel.d.ts +6 -1
- package/package.json +1 -1
|
@@ -28,8 +28,13 @@ export interface AccessRequestPanelProps {
|
|
|
28
28
|
permissions: Permission[];
|
|
29
29
|
/** What the approver holds. A role holding anything outside this set cannot be chosen. */
|
|
30
30
|
ownPermissionKeys: string[];
|
|
31
|
+
/**
|
|
32
|
+
* The role to start on instead of the narrowest allowed one (DX-4431: an agent session starts on the team's
|
|
33
|
+
* default agent role). Used only while it is selectable; otherwise the narrowest allowed role applies.
|
|
34
|
+
*/
|
|
35
|
+
defaultRoleId?: string;
|
|
31
36
|
onApprove: (roleId: string) => Promise<void>;
|
|
32
37
|
onDeny: () => Promise<void>;
|
|
33
38
|
className?: string;
|
|
34
39
|
}
|
|
35
|
-
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, onApprove, onDeny, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|
|
40
|
+
export declare function AccessRequestPanel({ request, state, roles, permissions, ownPermissionKeys, defaultRoleId, onApprove, onDeny, className, }: AccessRequestPanelProps): import("react").JSX.Element;
|