ide-assi 0.555.0 → 0.557.0

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.
@@ -202714,8 +202714,7 @@ class IdeAssi extends HTMLElement
202714
202714
  } catch (error) {
202715
202715
  console.error(error);
202716
202716
  elAiChat.add("ai", String(error).replace("Error:", ""));
202717
- }
202718
- */
202717
+ }*/
202719
202718
 
202720
202719
  this.#ing = false;
202721
202720
  }
@@ -202905,8 +202904,8 @@ class IdeLoadingTips extends HTMLElement {
202905
202904
  #currentImageIndex = 0; // Index of the currently displayed image for the current tip
202906
202905
  #tipIntervalId = null; // Interval ID for cycling through tips
202907
202906
  #imageIntervalId = null; // Interval ID for cycling through images within a tip
202908
- #tipDisplayDuration = 5000; // How long each tip is displayed (5 seconds)
202909
- #imageDisplayDuration = 2000; // How long each image within a tip is displayed (2 seconds)
202907
+ #tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
202908
+ #imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
202910
202909
 
202911
202910
  // DOM element references (cached for performance)
202912
202911
  tipElement = null;
@@ -202991,7 +202990,8 @@ class IdeLoadingTips extends HTMLElement {
202991
202990
  }
202992
202991
 
202993
202992
  this.#tips = tips;
202994
- this.#currentTipIndex = 0;
202993
+ //this.#currentTipIndex = 0;
202994
+ this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
202995
202995
  this.stopTips(); // Stop any existing intervals before starting new ones
202996
202996
 
202997
202997
  this.showCurrentTip(); // Display the first tip immediately
@@ -203044,8 +203044,6 @@ class IdeLoadingTips extends HTMLElement {
203044
203044
  showCurrentTip() {
203045
203045
  const currentTip = this.#tips[this.#currentTipIndex];
203046
203046
 
203047
- console.log(currentTip);
203048
-
203049
203047
  if (this.tipElement && currentTip) {
203050
203048
  //this.tipElement.textContent = currentTip.text;
203051
203049
  this.tipElement.innerHTML = currentTip.text;
@@ -202710,8 +202710,7 @@ class IdeAssi extends HTMLElement
202710
202710
  } catch (error) {
202711
202711
  console.error(error);
202712
202712
  elAiChat.add("ai", String(error).replace("Error:", ""));
202713
- }
202714
- */
202713
+ }*/
202715
202714
 
202716
202715
  this.#ing = false;
202717
202716
  }
@@ -202901,8 +202900,8 @@ class IdeLoadingTips extends HTMLElement {
202901
202900
  #currentImageIndex = 0; // Index of the currently displayed image for the current tip
202902
202901
  #tipIntervalId = null; // Interval ID for cycling through tips
202903
202902
  #imageIntervalId = null; // Interval ID for cycling through images within a tip
202904
- #tipDisplayDuration = 5000; // How long each tip is displayed (5 seconds)
202905
- #imageDisplayDuration = 2000; // How long each image within a tip is displayed (2 seconds)
202903
+ #tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
202904
+ #imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
202906
202905
 
202907
202906
  // DOM element references (cached for performance)
202908
202907
  tipElement = null;
@@ -202987,7 +202986,8 @@ class IdeLoadingTips extends HTMLElement {
202987
202986
  }
202988
202987
 
202989
202988
  this.#tips = tips;
202990
- this.#currentTipIndex = 0;
202989
+ //this.#currentTipIndex = 0;
202990
+ this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
202991
202991
  this.stopTips(); // Stop any existing intervals before starting new ones
202992
202992
 
202993
202993
  this.showCurrentTip(); // Display the first tip immediately
@@ -203040,8 +203040,6 @@ class IdeLoadingTips extends HTMLElement {
203040
203040
  showCurrentTip() {
203041
203041
  const currentTip = this.#tips[this.#currentTipIndex];
203042
203042
 
203043
- console.log(currentTip);
203044
-
203045
203043
  if (this.tipElement && currentTip) {
203046
203044
  //this.tipElement.textContent = currentTip.text;
203047
203045
  this.tipElement.innerHTML = currentTip.text;
@@ -175,8 +175,7 @@ export class IdeAssi extends HTMLElement
175
175
  } catch (error) {
176
176
  console.error(error);
177
177
  elAiChat.add("ai", String(error).replace("Error:", ""));
178
- }
179
- */
178
+ }*/
180
179
 
181
180
  this.#ing = false;
182
181
  }
@@ -9,8 +9,8 @@ class IdeLoadingTips extends HTMLElement {
9
9
  #currentImageIndex = 0; // Index of the currently displayed image for the current tip
10
10
  #tipIntervalId = null; // Interval ID for cycling through tips
11
11
  #imageIntervalId = null; // Interval ID for cycling through images within a tip
12
- #tipDisplayDuration = 5000; // How long each tip is displayed (5 seconds)
13
- #imageDisplayDuration = 2000; // How long each image within a tip is displayed (2 seconds)
12
+ #tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
13
+ #imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
14
14
 
15
15
  // DOM element references (cached for performance)
16
16
  tipElement = null;
@@ -95,7 +95,8 @@ class IdeLoadingTips extends HTMLElement {
95
95
  }
96
96
 
97
97
  this.#tips = tips;
98
- this.#currentTipIndex = 0;
98
+ //this.#currentTipIndex = 0;
99
+ this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
99
100
  this.stopTips(); // Stop any existing intervals before starting new ones
100
101
 
101
102
  this.showCurrentTip(); // Display the first tip immediately
@@ -148,8 +149,6 @@ class IdeLoadingTips extends HTMLElement {
148
149
  showCurrentTip() {
149
150
  const currentTip = this.#tips[this.#currentTipIndex];
150
151
 
151
- console.log(currentTip);
152
-
153
152
  if (this.tipElement && currentTip) {
154
153
  //this.tipElement.textContent = currentTip.text;
155
154
  this.tipElement.innerHTML = currentTip.text;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.555.0",
4
+ "version": "0.557.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -175,8 +175,7 @@ export class IdeAssi extends HTMLElement
175
175
  } catch (error) {
176
176
  console.error(error);
177
177
  elAiChat.add("ai", String(error).replace("Error:", ""));
178
- }
179
- */
178
+ }*/
180
179
 
181
180
  this.#ing = false;
182
181
  }
@@ -9,8 +9,8 @@ class IdeLoadingTips extends HTMLElement {
9
9
  #currentImageIndex = 0; // Index of the currently displayed image for the current tip
10
10
  #tipIntervalId = null; // Interval ID for cycling through tips
11
11
  #imageIntervalId = null; // Interval ID for cycling through images within a tip
12
- #tipDisplayDuration = 5000; // How long each tip is displayed (5 seconds)
13
- #imageDisplayDuration = 2000; // How long each image within a tip is displayed (2 seconds)
12
+ #tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
13
+ #imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
14
14
 
15
15
  // DOM element references (cached for performance)
16
16
  tipElement = null;
@@ -95,7 +95,8 @@ class IdeLoadingTips extends HTMLElement {
95
95
  }
96
96
 
97
97
  this.#tips = tips;
98
- this.#currentTipIndex = 0;
98
+ //this.#currentTipIndex = 0;
99
+ this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
99
100
  this.stopTips(); // Stop any existing intervals before starting new ones
100
101
 
101
102
  this.showCurrentTip(); // Display the first tip immediately
@@ -148,8 +149,6 @@ class IdeLoadingTips extends HTMLElement {
148
149
  showCurrentTip() {
149
150
  const currentTip = this.#tips[this.#currentTipIndex];
150
151
 
151
- console.log(currentTip);
152
-
153
152
  if (this.tipElement && currentTip) {
154
153
  //this.tipElement.textContent = currentTip.text;
155
154
  this.tipElement.innerHTML = currentTip.text;