Replace dragula with SortableJS

Created on 9 October 2023, about 1 year ago
Updated 29 July 2024, 5 months ago

Problem/Motivation

Layout Paragraphs currently uses https://github.com/bevacqua/dragula which has no more commits since 2020.

Core switched to sortableJS ( https://www.drupal.org/node/3084730 β†’ ) for example for Layout Builder! And sortableJS has many benefits:

  • Touch ready
  • Active development
  • Core library, no 3rd party dependency management required
  • ...

Steps to reproduce

Proposed resolution

Replace the dragula implementation with sortableJS (core/sortable)

Remaining tasks

- Replace the current implementation without interface changes
- Remove dragula

User interface changes

API changes

Data model changes

🌱 Plan
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡©πŸ‡ͺGermany woldtwerk Stralibu

    Hey there,
    I made a little refactoring to use core/sortable. Seems to work just fine.

    I'm a little confused about the es6.js stuff. how do you transpile that? There is no {composer|package}.json command.
    Is it even wanted anymore? Core removed the es6.js files and just puts the es6 stuff in normal .js files.

    Would appreciate some guidance for a proper merge request.
    thanks.

  • πŸ‡ΊπŸ‡ΈUnited States sethhill

    I've been using https://github.com/front/drupal-js-build to transpile the es6 files, only because I wasn't clear on the implications of moving entirely to es6 while this module supports D9 compatibility. I was thinking it would make sense to move entirely to es6 in a forthcoming version where we drop D9 compatibility.

  • πŸ‡©πŸ‡ͺGermany woldtwerk Stralibu

    all right. thanks

Production build 0.71.5 2024