ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

NPM: Add `linkifyjs`

Open mjansenDatabay opened this issue 1 year ago • 1 comments

This PR adds linkifyjs as NPM dependency.

Usage:

  • CoPage: Used in paragraphs
  • LearningModule: Used for the export
  • OnScreenChat: Used to make links in chat messages clickable.
    • See: components/ILIAS/OnScreenChat/js/onscreenchat.js

Wrapped By:

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

Reasoning:

  • linkifyjs is used by the OnScreenChat 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.

Maintenance:

  • linkifyjs is actively maintained, although it is feature-complete. In the last months a few bug fixes and improvements have been committed.

Links:

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

mjansenDatabay avatar Jan 12 '24 12:01 mjansenDatabay

Jour Fixe, 22 JAN 2024: Dependency is accepted for ILIAS 10.

matthiaskunkel avatar Jan 22 '24 13:01 matthiaskunkel

This should have become part of ILIAS 10 via this PR. As always, something might have gone wrong. If you are still missing that package, please ping me.

Kind regards!

klees avatar Jul 09 '24 11:07 klees