@lumx/react 3.9.3 → 3.9.4-alpha.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.
package/index.d.ts CHANGED
@@ -2366,7 +2366,7 @@ declare const clamp: (value: number, min: number, max: number) => number;
2366
2366
  */
2367
2367
  interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
2368
2368
  /** current slide active */
2369
- activeIndex?: SlidesProps['activeIndex'];
2369
+ activeIndex?: number;
2370
2370
  /** Interval between each slide when automatic rotation is enabled. */
2371
2371
  interval?: number;
2372
2372
  /** Props to pass to the slideshow controls (minus those already set by the Slideshow props). */
@@ -2437,9 +2437,9 @@ interface UseSlideshowControls {
2437
2437
  /** id to be used for the wrapper that contains the slides */
2438
2438
  slideshowSlidesId: string;
2439
2439
  /** callback that triggers the previous slide while using the slideshow controls */
2440
- onPreviousClick: (loopback: boolean) => void;
2440
+ onPreviousClick: (loopBack: boolean) => void;
2441
2441
  /** callback that triggers the next slide while using the slideshow controls */
2442
- onNextClick: (loopback: boolean) => void;
2442
+ onNextClick: (loopBack: boolean) => void;
2443
2443
  /** callback that triggers a specific page while using the slideshow controls */
2444
2444
  onPaginationClick: (index: number) => void;
2445
2445
  /** whether the slideshow is autoplaying or not */
@@ -2448,16 +2448,18 @@ interface UseSlideshowControls {
2448
2448
  isForcePaused: boolean;
2449
2449
  /** callback to change whether the slideshow is autoplaying or not */
2450
2450
  toggleAutoPlay: () => void;
2451
- /** calback to change whether the slideshow should be force paused or not */
2451
+ /** callback to change whether the slideshow should be force paused or not */
2452
2452
  toggleForcePause: () => void;
2453
2453
  /** current active slide index */
2454
2454
  activeIndex: number;
2455
2455
  /** set the current index as the active one */
2456
2456
  setActiveIndex: (index: number) => void;
2457
- /** callback that stops the auto play */
2457
+ /** callback that stops the autoplay */
2458
2458
  stopAutoPlay: () => void;
2459
- /** callback that starts the auto play */
2459
+ /** callback that starts the autoplay */
2460
2460
  startAutoPlay: () => void;
2461
+ /** True if the last slide change is user activated */
2462
+ isUserActivated?: boolean;
2461
2463
  }
2462
2464
 
2463
2465
  /**
@@ -2477,11 +2479,11 @@ interface SlideshowControlsProps extends GenericProps, HasTheme {
2477
2479
  /** Number of slides. */
2478
2480
  slidesCount: number;
2479
2481
  /** On next button click callback. */
2480
- onNextClick?(loopback?: boolean): void;
2482
+ onNextClick?(loopBack?: boolean): void;
2481
2483
  /** On pagination change callback. */
2482
2484
  onPaginationClick?(index: number): void;
2483
2485
  /** On previous button click callback. */
2484
- onPreviousClick?(loopback?: boolean): void;
2486
+ onPreviousClick?(loopBack?: boolean): void;
2485
2487
  /** whether the slideshow is currently playing */
2486
2488
  isAutoPlaying?: boolean;
2487
2489
  /**
@@ -2527,7 +2529,7 @@ interface SlidesProps extends GenericProps, HasTheme {
2527
2529
  /**
2528
2530
  * Accessible label to set on a slide group.
2529
2531
  * Receives the group position starting from 1 and the total number of groups.
2530
- * */
2532
+ */
2531
2533
  slideGroupLabel?: (groupPosition: number, groupTotal: number) => string;
2532
2534
  }
2533
2535
  /**