@frybynite/image-cloud 0.9.2 → 0.9.3

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/dist/index.d.ts CHANGED
@@ -880,7 +880,7 @@ export declare interface ImageCloudConfig {
880
880
  layout: LayoutConfig;
881
881
  animation: AnimationConfig;
882
882
  interaction: InteractionConfig;
883
- rendering: RenderingConfig;
883
+ ui: UIConfig;
884
884
  styling?: ImageStylingConfig;
885
885
  }
886
886
 
@@ -893,7 +893,11 @@ export declare interface ImageCloudOptions {
893
893
  layout?: Partial<LayoutConfig>;
894
894
  animation?: Partial<AnimationConfig>;
895
895
  interaction?: Partial<InteractionConfig>;
896
- rendering?: Partial<RenderingConfig>;
896
+ ui?: Partial<UIConfig>;
897
+ /** @deprecated Use `ui` instead of `rendering.ui` */
898
+ rendering?: {
899
+ ui?: Partial<UIConfig>;
900
+ };
897
901
  styling?: Partial<ImageStylingConfig>;
898
902
  }
899
903
 
@@ -1253,11 +1257,6 @@ export declare class RandomPlacementLayout implements PlacementLayout {
1253
1257
  private random;
1254
1258
  }
1255
1259
 
1256
- declare interface RenderingConfig {
1257
- responsive: ResponsiveRenderingConfig;
1258
- ui: UIRenderingConfig;
1259
- }
1260
-
1261
1260
  /**
1262
1261
  * Check if a path type requires JavaScript animation (vs CSS transitions)
1263
1262
  */
@@ -1281,15 +1280,6 @@ export declare interface ResponsiveHeight {
1281
1280
  height: number;
1282
1281
  }
1283
1282
 
1284
- export declare interface ResponsiveRenderingConfig {
1285
- breakpoints: {
1286
- mobile: number;
1287
- tablet?: number;
1288
- desktop?: number;
1289
- };
1290
- mobileDetection: () => boolean;
1291
- }
1292
-
1293
1283
  declare type ShadowPreset = 'none' | 'sm' | 'md' | 'lg' | 'glow';
1294
1284
 
1295
1285
  export declare interface SharedLoaderConfig {
@@ -1482,7 +1472,7 @@ export declare interface TransformParams {
1482
1472
  scale?: number;
1483
1473
  }
1484
1474
 
1485
- export declare interface UIRenderingConfig {
1475
+ export declare interface UIConfig {
1486
1476
  showLoadingSpinner: boolean;
1487
1477
  showImageCounter?: boolean;
1488
1478
  loadingElement?: string | HTMLElement;
package/dist/react.d.ts CHANGED
@@ -880,7 +880,7 @@ export declare interface ImageCloudConfig {
880
880
  layout: LayoutConfig;
881
881
  animation: AnimationConfig;
882
882
  interaction: InteractionConfig;
883
- rendering: RenderingConfig;
883
+ ui: UIConfig;
884
884
  styling?: ImageStylingConfig;
885
885
  }
886
886
 
@@ -893,7 +893,11 @@ export declare interface ImageCloudOptions {
893
893
  layout?: Partial<LayoutConfig>;
894
894
  animation?: Partial<AnimationConfig>;
895
895
  interaction?: Partial<InteractionConfig>;
896
- rendering?: Partial<RenderingConfig>;
896
+ ui?: Partial<UIConfig>;
897
+ /** @deprecated Use `ui` instead of `rendering.ui` */
898
+ rendering?: {
899
+ ui?: Partial<UIConfig>;
900
+ };
897
901
  styling?: Partial<ImageStylingConfig>;
898
902
  }
899
903
 
@@ -1253,11 +1257,6 @@ export declare class RandomPlacementLayout implements PlacementLayout {
1253
1257
  private random;
1254
1258
  }
1255
1259
 
1256
- declare interface RenderingConfig {
1257
- responsive: ResponsiveRenderingConfig;
1258
- ui: UIRenderingConfig;
1259
- }
1260
-
1261
1260
  /**
1262
1261
  * Check if a path type requires JavaScript animation (vs CSS transitions)
1263
1262
  */
@@ -1281,15 +1280,6 @@ export declare interface ResponsiveHeight {
1281
1280
  height: number;
1282
1281
  }
1283
1282
 
1284
- export declare interface ResponsiveRenderingConfig {
1285
- breakpoints: {
1286
- mobile: number;
1287
- tablet?: number;
1288
- desktop?: number;
1289
- };
1290
- mobileDetection: () => boolean;
1291
- }
1292
-
1293
1283
  declare type ShadowPreset = 'none' | 'sm' | 'md' | 'lg' | 'glow';
1294
1284
 
1295
1285
  export declare interface SharedLoaderConfig {
@@ -1482,7 +1472,7 @@ export declare interface TransformParams {
1482
1472
  scale?: number;
1483
1473
  }
1484
1474
 
1485
- export declare interface UIRenderingConfig {
1475
+ export declare interface UIConfig {
1486
1476
  showLoadingSpinner: boolean;
1487
1477
  showImageCounter?: boolean;
1488
1478
  loadingElement?: string | HTMLElement;