@bebranded/bb-contents 1.0.100 → 1.0.101

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.
Files changed (2) hide show
  1. package/bb-contents.js +3 -24
  2. 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.100
4
+ * @version 1.0.101
5
5
  * @author BeBranded
6
6
  * @license MIT
7
7
  * @website https://www.bebranded.xyz
@@ -32,11 +32,11 @@
32
32
  window._bbContentsInitialized = true;
33
33
 
34
34
  // Log de démarrage simple (une seule fois)
35
- console.log('bb-contents | v1.0.100');
35
+ console.log('bb-contents | v1.0.101');
36
36
 
37
37
  // Configuration
38
38
  const config = {
39
- version: '1.0.100',
39
+ version: '1.0.101',
40
40
  debug: false, // Debug désactivé pour rendu propre
41
41
  prefix: 'bb-', // utilisé pour générer les sélecteurs (data-bb-*)
42
42
  youtubeEndpoint: null, // URL du worker YouTube (à définir par l'utilisateur)
@@ -496,27 +496,6 @@
496
496
  });
497
497
 
498
498
  const startSafariAnimation = () => {
499
- // Forcer le chargement des images restantes si timeout
500
- if (waitTimeout >= maxWaitTime && imagesLoaded < totalImages) {
501
- images.forEach(img => {
502
- if (img.dataset.src && !img.src) {
503
- img.src = img.dataset.src;
504
- // Ne pas forcer eager sur mobile, laisser le lazy loading
505
- if (!img.loading && !isMobile) {
506
- img.loading = 'eager';
507
- }
508
- }
509
- });
510
- }
511
-
512
- // Vérifier que les images ont une taille visible
513
- let imagesWithSize = 0;
514
- images.forEach(img => {
515
- if (img.offsetWidth > 0 && img.offsetHeight > 0) {
516
- imagesWithSize++;
517
- }
518
- });
519
-
520
499
  // Recalculer la taille après chargement des images
521
500
  const newContentSize = isVertical ? mainBlock.offsetHeight : mainBlock.offsetWidth;
522
501
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {