@bebranded/bb-contents 1.0.92-test → 1.0.94-test

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 +8 -8
  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.92-test
4
+ * @version 1.0.94-test
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.92-test');
35
+ console.log('bb-contents | v1.0.94-test');
36
36
 
37
37
  // Configuration
38
38
  const config = {
39
- version: '1.0.92-test',
39
+ version: '1.0.94-test',
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)
@@ -289,9 +289,9 @@
289
289
  mainContainer.style.cssText = `
290
290
  position: relative;
291
291
  width: 100%;
292
- height: ${isVertical ? (height === 'auto' ? 'auto' : height + 'px') : '100%'};
293
- overflow: hidden;
294
- min-height: ${isVertical ? '100px' : '50px'};
292
+ height: ${isVertical ? (height === 'auto' ? 'auto' : height + 'px') : 'auto'};
293
+ overflow: ${isVertical ? 'hidden' : 'visible'};
294
+ min-height: auto;
295
295
  ${minHeight ? `min-height: ${minHeight};` : ''}
296
296
  `;
297
297
 
@@ -497,7 +497,7 @@
497
497
  let currentPosition;
498
498
  if (direction === (isVertical ? 'bottom' : 'right')) {
499
499
  currentPosition = -(finalContentSize + gapSize);
500
- } else {
500
+ } else {
501
501
  currentPosition = 0;
502
502
  }
503
503
 
@@ -518,7 +518,7 @@
518
518
  if (currentPosition >= 0) {
519
519
  currentPosition = -(finalContentSize + gapSize);
520
520
  }
521
- } else {
521
+ } else {
522
522
  currentPosition -= step;
523
523
  if (currentPosition <= -(2 * (finalContentSize + gapSize))) {
524
524
  currentPosition = -(finalContentSize + gapSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.0.92-test",
3
+ "version": "1.0.94-test",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {