Issue #3308786 by lauriii, nod_: Mark Shepherd.js as internal in Drupal 10

merge-requests/828/head
catch 2022-09-12 07:45:49 +01:00
parent 5c6e76222a
commit 35ba1d5ce7
3 changed files with 18 additions and 2 deletions

View File

@ -887,7 +887,7 @@ jquery.joyride:
gpl-compatible: true
js:
assets/vendor/jquery-joyride/jquery.joyride-2.1.js: { }
deprecated: The "%library_id%" asset library is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use the core/shepherd library instead. See https://www.drupal.org/node/3195234
deprecated: The "%library_id%" asset library is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/3195234.
dependencies:
- core/jquery
@ -900,6 +900,17 @@ shepherd:
gpl-compatible: true
js:
assets/vendor/shepherd/shepherd.min.js: { minified: true }
deprecated: The %library_id% asset library is deprecated in Drupal 9.5.0 and will be removed in Drupal 10.0.0.
internal.shepherd:
remote: https://github.com/shipshapecode/shepherd
version: "9.1.0"
license:
name: MIT
url: https://raw.githubusercontent.com/shipshapecode/shepherd/v9.1.0/LICENSE
gpl-compatible: true
js:
assets/vendor/shepherd/shepherd.min.js: { minified: true }
jquery.once:
remote: https://github.com/RobLoach/jquery-once

View File

@ -9,7 +9,7 @@ tour:
- core/drupal
# @todo Remove this in https://www.drupal.org/project/drupal/issues/3204011
- core/internal.backbone
- core/shepherd
- core/internal.shepherd
- tour/tour-styling
tour-styling:

View File

@ -173,9 +173,14 @@ const assetsFolder = `${coreFolder}/assets/vendor`;
{ from: 'dist/umd/popper.min.js.map', to: 'popper.min.js.map' },
],
},
{
pack: 'shepherd.js',
library: 'shepherd',
},
{
pack: 'shepherd.js',
folder: 'shepherd',
library: 'internal.shepherd',
files: [
{ from: 'dist/js/shepherd.min.js', to: 'shepherd.min.js' },
{ from: 'dist/js/shepherd.min.js.map', to: 'shepherd.min.js.map' },