diff --git a/Resources/Public/JavaScript/sgYoutubeLightbox.js b/Resources/Public/JavaScript/sgYoutubeLightbox.js index 2dbb0e9e25095de44449ee4b727da81d1ec4d60c..d4f760f48b395f311bc8b0292bc21ba58f9bb4ff 100644 --- a/Resources/Public/JavaScript/sgYoutubeLightbox.js +++ b/Resources/Public/JavaScript/sgYoutubeLightbox.js @@ -2,17 +2,13 @@ import LightboxManager from 'lightboxManager'; -/** @deprecated */ -module.exports = function() { - 'use strict'; +export default class SgYoutubeLightbox { /** - * Initialize the whole Popup setup + * Initializes the LightboxManager with the necessary parameters. */ - function init() { + constructor() { LightboxManager.init({type: 'video', glightbox: {selector: '.sg-youtube-item'}}); } - - init(); -}; +} diff --git a/UPGRADE.md b/UPGRADE.md index 14d6b6b78da2a77d3884b59c81333df593a08bf3..b669916711875659dfae2452deea0f1370fed234 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,3 +1,7 @@ +## Version 5 +- `youtubeLightbox.js` (deprecated since 4.4.0) using magnific-popup and jQuery removed in favor of `sgYoutubeLightbox.js` (vanilla JS). +- Extension `project_theme_lightbox` required starting with version 5.0.0. + ## Version 4.4 ```project_theme_lightbox``` integration - The magnific popup integration is deprecated and will be removed in later versions. - Implement JavaScript according to the readme after integrating ```project_theme_lightbox``` diff --git a/composer.json b/composer.json index 6205a43aa4d6baf3347233afce5bcb06a97e2396..b18a99e98dbba62d4defe8226887a9882689f919 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "Embed YouTube Videos of a Playlist or Channel", "homepage": "https://www.sgalinski.de", "license": "GPL-2.0-or-later", - "version": "4.4.1", + "version": "4.5.0", "require": { "typo3/cms-core": "^9.5.4 || ^10.4.0", "sgalinski/project-theme-lightbox": "^1.0.0" diff --git a/ext_emconf.php b/ext_emconf.php index 504861c7b80fb3b62c8ff0b3b99beabe61a25114..7713b9ea1b3ed35a3984944d2b2f8d3f549f5e95 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -36,7 +36,7 @@ $EM_CONF['sg_youtube'] = [ 'uploadfolder' => '0', 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '4.4.1', + 'version' => '4.5.0', 'constraints' => [ 'depends' => [ 'typo3' => '9.5.0-10.4.99',