Deleting or unpublishing several libraries at once listed a file that
uses more than one of them once per library, and React logged a
duplicate key error for the repeated rows. The references of each
library were joined without removing repeated files.
The dialog now lists each file once (`distinct-references`).
Found by the components Qase run (PENPOT-1473).
Test: `delete-shared-test`.
AI-assisted-by: claude-opus-5-5