@frybynite/image-cloud 0.2.8 → 0.2.9

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
@@ -1335,6 +1335,14 @@ export declare class StaticImageLoader implements ImageLoader {
1335
1335
  * @returns Promise resolving to array of validated URLs
1336
1336
  */
1337
1337
  private processPath;
1338
+ /**
1339
+ * Process a JSON endpoint source
1340
+ * Fetches a JSON endpoint that returns { images: string[] }
1341
+ * @param url - JSON endpoint URL
1342
+ * @param filter - Filter to apply to discovered images
1343
+ * @returns Promise resolving to array of validated URLs
1344
+ */
1345
+ private processJson;
1338
1346
  /**
1339
1347
  * Validate a single URL using HEAD request
1340
1348
  * @param url - URL to validate
@@ -1362,7 +1370,8 @@ export declare class StaticImageLoader implements ImageLoader {
1362
1370
  }
1363
1371
 
1364
1372
  export declare interface StaticLoaderConfig {
1365
- sources: StaticSource[];
1373
+ sources?: StaticSource[];
1374
+ urls?: string[];
1366
1375
  validateUrls?: boolean;
1367
1376
  validationTimeout?: number;
1368
1377
  validationMethod?: 'head' | 'simple' | 'none';
@@ -1376,9 +1385,10 @@ export declare interface StaticSource {
1376
1385
  urls?: string[];
1377
1386
  basePath?: string;
1378
1387
  files?: string[];
1388
+ url?: string;
1379
1389
  }
1380
1390
 
1381
- declare type StaticSourceType = 'urls' | 'path';
1391
+ declare type StaticSourceType = 'urls' | 'path' | 'json';
1382
1392
 
1383
1393
  export declare interface TransformParams {
1384
1394
  x?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frybynite/image-cloud",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Javascript/TypeScript image cloud library with custom loaders, various layouts, full images styling, with animation and zoom effects",
5
5
  "type": "module",
6
6
  "main": "./dist/image-cloud.umd.js",