@frybynite/image-cloud 0.9.3 → 0.9.4

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.
@@ -552,7 +552,7 @@ declare interface FocusInteractionConfig {
552
552
  * Minimal functional CSS required for the library to work.
553
553
  * Injected automatically - no external CSS file needed.
554
554
  */
555
- export declare const FUNCTIONAL_CSS = "\n.fbn-ic-gallery {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n perspective: 1000px;\n}\n\n.fbn-ic-image {\n position: absolute;\n cursor: pointer;\n transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n border 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n outline 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n z-index 0s 0.6s;\n will-change: transform;\n user-select: none;\n backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n}\n\n.fbn-ic-image.fbn-ic-focused {\n z-index: 1000;\n transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n border 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n outline 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n z-index 0s 0s;\n will-change: auto;\n}\n\n.fbn-ic-counter {\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10001;\n pointer-events: none;\n}\n\n.fbn-ic-hidden {\n display: none !important;\n}\n";
555
+ export declare const FUNCTIONAL_CSS = "\n.fbn-ic-gallery {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n perspective: 1000px;\n}\n\n.fbn-ic-image {\n position: absolute;\n cursor: pointer;\n transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n border 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n outline 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n z-index 0s 0.6s;\n will-change: transform;\n user-select: none;\n backface-visibility: hidden;\n -webkit-backface-visibility: hidden;\n}\n\n.fbn-ic-image.fbn-ic-focused {\n z-index: 1000;\n transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),\n filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n border 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n outline 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n z-index 0s 0s;\n will-change: auto;\n}\n\n.fbn-ic-counter {\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10001;\n pointer-events: none;\n}\n\n.fbn-ic-gallery:focus,\n.fbn-ic-gallery.fbn-ic-has-focus {\n outline: 2px solid rgba(147, 197, 253, 0.8);\n outline-offset: -4px;\n}\n.fbn-ic-gallery.fbn-ic-suppress-outline:focus {\n outline: none;\n}\n.fbn-ic-gallery.fbn-ic-suppress-outline.fbn-ic-has-focus {\n outline: 2px solid rgba(99, 102, 241, 0.6);\n outline-offset: -4px;\n}\n\n.fbn-ic-nav-btn {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 10001;\n cursor: pointer;\n border: none;\n background: none;\n padding: 0;\n line-height: 1;\n}\n.fbn-ic-nav-btn-prev {\n left: 12px;\n}\n.fbn-ic-nav-btn-next {\n right: 12px;\n}\n\n.fbn-ic-hidden {\n display: none !important;\n}\n";
556
556
 
557
557
  export declare type GalleryConfig = ImageCloudConfig;
558
558
 
@@ -805,6 +805,10 @@ declare class ImageCloud {
805
805
  private errorElAutoCreated;
806
806
  private counterEl;
807
807
  private counterElAutoCreated;
808
+ private prevButtonEl;
809
+ private nextButtonEl;
810
+ private prevButtonElAutoCreated;
811
+ private nextButtonElAutoCreated;
808
812
  constructor(options?: ImageCloudOptions);
809
813
  /**
810
814
  * Create image filter based on shared loader config
@@ -828,6 +832,8 @@ declare class ImageCloud {
828
832
  private createDefaultLoadingElement;
829
833
  private createDefaultErrorElement;
830
834
  private createDefaultCounterElement;
835
+ private createDefaultPrevButtonElement;
836
+ private createDefaultNextButtonElement;
831
837
  private setupEventListeners;
832
838
  /**
833
839
  * Navigate to the next image (Right arrow)
@@ -865,6 +871,10 @@ declare class ImageCloud {
865
871
  private hideError;
866
872
  private updateCounter;
867
873
  private hideCounter;
874
+ private showFocusIndicator;
875
+ private hideFocusIndicator;
876
+ private showNavButtons;
877
+ private hideNavButtons;
868
878
  /**
869
879
  * Destroy the gallery and clean up resources
870
880
  */
@@ -1282,7 +1292,7 @@ export declare interface ResponsiveHeight {
1282
1292
 
1283
1293
  declare type ShadowPreset = 'none' | 'sm' | 'md' | 'lg' | 'glow';
1284
1294
 
1285
- export declare interface SharedLoaderConfig {
1295
+ declare interface SharedLoaderConfig {
1286
1296
  validateUrls?: boolean;
1287
1297
  validationTimeout?: number;
1288
1298
  validationMethod?: 'head' | 'simple' | 'none';
@@ -1478,6 +1488,10 @@ export declare interface UIConfig {
1478
1488
  loadingElement?: string | HTMLElement;
1479
1489
  errorElement?: string | HTMLElement;
1480
1490
  counterElement?: string | HTMLElement;
1491
+ showNavButtons?: boolean;
1492
+ prevButtonElement?: string | HTMLElement;
1493
+ nextButtonElement?: string | HTMLElement;
1494
+ showFocusOutline?: boolean;
1481
1495
  }
1482
1496
 
1483
1497
  /**