Problem/Motivation
PopperJS is only used for Quickedit, which is going away in 10.0, deprecate the library so we can remove it from D10.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
The core/popperjs library has been deprecated as it is only used by Quickedit, which is also deprecated.
Issue fork drupal-3307471
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3307471-deprecate-popperjs
changes, plain diff MR !2723
Comments
Comment #3
nod_replaced popperjs in the tests with loadjs.
There are some places in tour where we reference popperjs, those are valid use cases and will need to be updated only when shepherd replaces popperjs with floating-ui. We'll only need to update the name as the specific configuration values are the same between popperjs and floating-ui for the "placement" option.
Comment #4
nod_test will fail because we still have quickedit around, so maybe we skip the deprecation?
Comment #5
spokjeLeft some (annoying) nitpicks in the MR.
I don't see any other way to get passing tests without the silencing of the deprecation (I'm surprised there's only one test failing).
Did a quick search and the only remaining relevant popper-references are all in the tour module as explained by @nod_ in #3.
Besides the above and a CR I think we're very close here.
Comment #6
nod_we're using
loadjsin the comments ofajax.es6.jsalready so I wouldn't change it here either.Comment #7
spokjeFailing to see what changing popper to LoadJS in comments in
core/modules/system/tests/modules/common_test/common_test.modulehas to do withajax.es6.js, but that's probably me. :)Comment #8
nod_oh my bad, sorry. Thought this was only about the case: "LoadJS" vs. "loadjs". Fixing.
Comment #9
nod_Change record created
Comment #10
bnjmnmIt felt like Popper had more presence in core than Quickedit, but nice to be able to remove a dependency!
The MR looks good + I updated the CR with some recommendations regarding Floating UI.
Comment #12
catchUnexpected that we can remove it, but it makes sense. If we need it for something later on, can always bring it back again.
Committed/pushed to 9.5.x, thanks!
Comment #13
quietone commentedPublished the CR.
Comment #15
dqdOops, missed that one (ô.0)
@catch: same feelings here. feels kind of "wait, do I miss sth"? so we do not have any popup library on core now no more? Is this correct? To see how it belongs, let me show where I came from:
https://www.drupal.org/project/popper_js (deprecated)
Does it make sense that I start a new project in contrib for those who require it? Seems there are some deps. out there like Radix theme, etc.
Comment #16
ndf commented@diqidoq Hi I just created https://www.drupal.org/project/popperjs . It is a drop-in replacement for library
core/popperjsTo use it install the module and in
*.libraries.ymlreplacecore/popperjswithpopperjs/popperjsComment #17
matthieuscarset commentedFloating UI - the newer version of popperjs - is apparently being introduced back into core thanks to the new Navigation module (still experimental).