Skip to content
Snippets Groups Projects
Commit 309e1bc7 authored by David Breitling's avatar David Breitling
Browse files

[TASK] Release version 4.5.0

- rewrote sgYoutubeLightbox as ES6 class
- updated UPGRADE.md for future v5 release
parent 1b4cf8a1
No related branches found
No related tags found
No related merge requests found
...@@ -2,17 +2,13 @@ ...@@ -2,17 +2,13 @@
import LightboxManager from 'lightboxManager'; import LightboxManager from 'lightboxManager';
/** @deprecated */ export default class SgYoutubeLightbox {
module.exports = function() {
'use strict';
/** /**
* Initialize the whole Popup setup * Initializes the LightboxManager with the necessary parameters.
*/ */
function init() { constructor() {
LightboxManager.init({type: 'video', glightbox: {selector: '.sg-youtube-item'}}); LightboxManager.init({type: 'video', glightbox: {selector: '.sg-youtube-item'}});
} }
}
init();
};
## 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 ## Version 4.4 ```project_theme_lightbox``` integration
- The magnific popup integration is deprecated and will be removed in later versions. - The magnific popup integration is deprecated and will be removed in later versions.
- Implement JavaScript according to the readme after integrating ```project_theme_lightbox``` - Implement JavaScript according to the readme after integrating ```project_theme_lightbox```
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "Embed YouTube Videos of a Playlist or Channel", "description": "Embed YouTube Videos of a Playlist or Channel",
"homepage": "https://www.sgalinski.de", "homepage": "https://www.sgalinski.de",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"version": "4.4.1", "version": "4.5.0",
"require": { "require": {
"typo3/cms-core": "^9.5.4 || ^10.4.0", "typo3/cms-core": "^9.5.4 || ^10.4.0",
"sgalinski/project-theme-lightbox": "^1.0.0" "sgalinski/project-theme-lightbox": "^1.0.0"
......
...@@ -36,7 +36,7 @@ $EM_CONF['sg_youtube'] = [ ...@@ -36,7 +36,7 @@ $EM_CONF['sg_youtube'] = [
'uploadfolder' => '0', 'uploadfolder' => '0',
'createDirs' => '', 'createDirs' => '',
'clearCacheOnLoad' => 0, 'clearCacheOnLoad' => 0,
'version' => '4.4.1', 'version' => '4.5.0',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
'typo3' => '9.5.0-10.4.99', 'typo3' => '9.5.0-10.4.99',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment