@frybynite/image-cloud 0.3.1 → 0.3.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/image-cloud-auto-init.js +97 -81
- package/dist/image-cloud-auto-init.js.map +1 -1
- package/dist/image-cloud.js +90 -74
- package/dist/image-cloud.js.map +1 -1
- package/dist/image-cloud.umd.js +2 -2
- package/dist/image-cloud.umd.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -740,6 +740,8 @@ declare class ImageCloud {
|
|
|
740
740
|
private containerEl;
|
|
741
741
|
private loadingEl;
|
|
742
742
|
private errorEl;
|
|
743
|
+
private loadingElAutoCreated;
|
|
744
|
+
private errorElAutoCreated;
|
|
743
745
|
constructor(options?: ImageCloudOptions);
|
|
744
746
|
/**
|
|
745
747
|
* Create image filter based on shared loader config
|
|
@@ -759,6 +761,9 @@ declare class ImageCloud {
|
|
|
759
761
|
*/
|
|
760
762
|
init(): Promise<void>;
|
|
761
763
|
private setupUI;
|
|
764
|
+
private resolveElement;
|
|
765
|
+
private createDefaultLoadingElement;
|
|
766
|
+
private createDefaultErrorElement;
|
|
762
767
|
private setupEventListeners;
|
|
763
768
|
/**
|
|
764
769
|
* Navigate to the next image (Right arrow)
|
|
@@ -1420,6 +1425,8 @@ export declare interface UIRenderingConfig {
|
|
|
1420
1425
|
showImageCounter?: boolean;
|
|
1421
1426
|
showThumbnails?: boolean;
|
|
1422
1427
|
theme?: 'light' | 'dark' | 'auto';
|
|
1428
|
+
loadingElement?: string | HTMLElement;
|
|
1429
|
+
errorElement?: string | HTMLElement;
|
|
1423
1430
|
}
|
|
1424
1431
|
|
|
1425
1432
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frybynite/image-cloud",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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",
|