@bebranded/bb-contents 1.0.40-beta → 1.0.41-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bb-contents.js +5 -5
- package/package.json +1 -1
package/bb-contents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BeBranded Contents
|
|
3
3
|
* Contenus additionnels français pour Webflow
|
|
4
|
-
* @version 1.0.
|
|
4
|
+
* @version 1.0.41-beta
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// Configuration
|
|
19
19
|
const config = {
|
|
20
|
-
version: '1.0.
|
|
20
|
+
version: '1.0.41-beta',
|
|
21
21
|
debug: true, // Activé temporairement pour debug
|
|
22
22
|
prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
|
|
23
23
|
youtubeEndpoint: null, // URL du worker YouTube (à définir par l'utilisateur)
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
|
|
204
204
|
// Modules
|
|
205
205
|
bbContents.modules = {
|
|
206
|
-
// Module Marquee - Version live 1.0.
|
|
206
|
+
// Module Marquee - Version live 1.0.41-beta avec modules parasites supprimés
|
|
207
207
|
marquee: {
|
|
208
208
|
detect: function(scope) {
|
|
209
209
|
const s = scope || document;
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
|
|
626
626
|
if (!endpoint) {
|
|
627
627
|
// Erreur: youtubeEndpoint non configuré
|
|
628
|
-
element.innerHTML = '<div style="padding: 20px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #dc2626;"><strong>Configuration YouTube manquante</strong><br>Ajoutez dans le <head> :<br><code style="display: block; background: #f3f4f6; padding: 10px; margin: 10px 0; border-radius: 4px; font-family: monospace;"><script><br>bbContents.config.youtubeEndpoint = \'
|
|
628
|
+
element.innerHTML = '<div style="padding: 20px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #dc2626;"><strong>Configuration YouTube manquante</strong><br>Ajoutez dans le <head> :<br><code style="display: block; background: #f3f4f6; padding: 10px; margin: 10px 0; border-radius: 4px; font-family: monospace;"><script><br>bbContents.config.youtubeEndpoint = \'votre-worker-url\';<br></script></code></div>';
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
|
|
661
661
|
if (cachedData) {
|
|
662
662
|
// Données YouTube récupérées du cache (économie API)
|
|
663
|
-
this.generateYouTubeFeed(container, template, cachedData, allowShorts, language);
|
|
663
|
+
this.generateYouTubeFeed(container, template, cachedData.value, allowShorts, language);
|
|
664
664
|
return;
|
|
665
665
|
}
|
|
666
666
|
|