ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

NPM: Add `linkifyjs` and `linkify-element` for ILIAS 12

Open fhelfer opened this issue 1 month ago • 1 comments

This PR adds linkifyjs and linkify-element as NPM dependency.

General Information:

  • [X] these dependencies were already used in ILIAS.
  • [X] License: MIT

Usage:

  • CoPage: Used in paragraphs
  • OnScreenChat: components/ILIAS/OnScreenChat/resources/onscreenchat.js
  • Chatroom: components/ILIAS/Chatroom/resources/js/src/ChatMessageArea.js

Wrapped By:

  • components/ILIAS/Link/resources/js/ilExtLink.js

Reasoning:

linkifyjs is used by the OnScreenChat and Chatroom to transform URL-like strings into clickable HTML link elements. Without this library all kind of URL-like strings (see: https://linkify.js.org/) are not transformed anymore and our users will have to copy the strings manually into the browser address input. I doubt we can support this feature with a few regular expressions maintained by the ILIAS community.

linkify-element is maintained in the same repo.

Maintenance:

  • linkifyjs is actively maintained, although it is feature-complete. In the last months a few bug fixes and improvements have been committed.
  • (The latest release is from 25.07.2025)

Links:

  • NPM: https://www.npmjs.com/package/linkifyjs / https://www.npmjs.com/package/linkify-element
  • GitHub: https://github.com/Hypercontext/linkifyjs
  • Documentation: https://linkify.js.org/docs/

fhelfer avatar Nov 28 '25 12:11 fhelfer

Jour Fixe, 08 DEC 2025: Dependency is accepted for ILIAS 12.

matthiaskunkel avatar Dec 08 '25 13:12 matthiaskunkel