@gouvfr-lasuite/ui-kit 0.9.0 → 0.10.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.d.ts CHANGED
@@ -692,7 +692,7 @@ export declare type ShareMemberItemProps<UserType, AccessType> = {
692
692
  roleTopMessage?: string;
693
693
  };
694
694
 
695
- export declare const ShareModal: <UserType, InvitationType, AccessType>({ searchUsersResult, children, outsideSearchContent, accesses: members, invitations, hasNextMembers, canUpdate, hasNextInvitations, hideInvitations, hideMembers, ...props }: PropsWithChildren<ShareModalProps<UserType, InvitationType, AccessType>>) => JSX.Element;
695
+ export declare const ShareModal: <UserType, InvitationType, AccessType>({ searchUsersResult, children, outsideSearchContent, accesses: members, invitations, hasNextMembers, canUpdate, canView, hasNextInvitations, hideInvitations, hideMembers, cannotViewChildren, ...props }: PropsWithChildren<ShareModalProps<UserType, InvitationType, AccessType>>) => JSX.Element;
696
696
 
697
697
  declare type ShareModalAccessProps<UserType, AccessType> = {
698
698
  accesses?: AccessData<UserType, AccessType>[];
@@ -724,6 +724,10 @@ declare type ShareModalLinkSettingsProps = {
724
724
  linkReachChoices?: Partial<DropdownMenuOption>[];
725
725
  onUpdateLinkReach?: (value: string) => void;
726
726
  linkReach?: string;
727
+ linkRoleChoices?: Partial<DropdownMenuOption>[];
728
+ linkRole?: "reader" | "editor";
729
+ showLinkRole?: boolean;
730
+ onUpdateLinkRole?: (value: string) => void;
727
731
  };
728
732
 
729
733
  /**
@@ -735,6 +739,9 @@ export declare type ShareModalProps<UserType, InvitationType, AccessType> = {
735
739
  modalTitle?: string;
736
740
  isOpen: boolean;
737
741
  canUpdate?: boolean;
742
+ canView?: boolean;
743
+ cannotViewChildren?: ReactNode;
744
+ cannotViewMessage?: string;
738
745
  onClose: () => void;
739
746
  invitationRoles?: DropdownMenuOption[];
740
747
  getAccessRoles?: (access: AccessData<UserType, AccessType>) => DropdownMenuOption[];