resuxjs 0.2.34 → 0.2.36

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.
@@ -94,11 +94,16 @@ export interface RuntimeConfig {
94
94
  [key: string]: unknown;
95
95
  }
96
96
  export type ResuxImageFit = "cover" | "contain" | "fill" | "inside" | "outside";
97
+ export type ResuxImageCacheInput = boolean | string | number | {
98
+ maxAge?: number | string;
99
+ expiresIn?: number | string;
100
+ ttl?: number | string;
101
+ };
97
102
  export interface ResuxImageModifiers {
98
103
  width?: number;
99
104
  height?: number;
100
- quality?: number;
101
- format?: string;
105
+ quality?: number | false;
106
+ format?: string | false;
102
107
  fit?: ResuxImageFit;
103
108
  [key: string]: string | number | boolean | undefined;
104
109
  }
@@ -110,6 +115,7 @@ export interface ResuxImageConfig {
110
115
  provider?: string;
111
116
  quality?: number;
112
117
  format?: string;
118
+ cache?: ResuxImageCacheInput;
113
119
  densities?: number[];
114
120
  providers?: Record<string, ResuxImageProviderConfig>;
115
121
  }
@@ -121,6 +127,7 @@ export interface UseResuxImageOptions {
121
127
  quality?: number;
122
128
  fit?: ResuxImageFit;
123
129
  format?: string;
130
+ cache?: ResuxImageCacheInput;
124
131
  }
125
132
  export type ResuxImageBuilder = (src: string, options?: UseResuxImageOptions) => string;
126
133
  export interface ResuxAppInjections {