@nativescript-community/ui-image 4.5.4 → 4.5.7
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/CHANGELOG.md +14 -0
- package/angular/esm2022/directives.mjs +2 -2
- package/angular/esm2022/module.mjs +2 -2
- package/angular/fesm2022/nativescript-community-ui-image-angular.mjs +2 -2
- package/index.android.js +27 -27
- package/package.json +2 -2
- package/platforms/android/include.gradle +1 -1
- package/platforms/android/ui_image.aar +0 -0
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,20 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [4.5.7](https://github.com/nativescript-community/ui-image/compare/v4.5.5...v4.5.7) (2025-09-25)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-image
|
9
|
+
|
10
|
+
## [4.5.6](https://github.com/nativescript-community/ui-image/compare/v4.5.5...v4.5.6) (2025-09-25)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @nativescript-community/ui-image
|
13
|
+
|
14
|
+
## [4.5.5](https://github.com/nativescript-community/ui-image/compare/v4.5.4...v4.5.5) (2025-07-16)
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
* **android:** updated fresco version ([d3d871d](https://github.com/nativescript-community/ui-image/commit/d3d871dabd7415bac5fd10197ff3a8e4ba23d68e))
|
19
|
+
|
6
20
|
## [4.5.4](https://github.com/nativescript-community/ui-image/compare/v4.5.3...v4.5.4) (2024-11-12)
|
7
21
|
|
8
22
|
**Note:** Version bump only for package @nativescript-community/ui-image
|
@@ -2,7 +2,7 @@ import { Directive } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export class ImgDirective {
|
4
4
|
constructor() { }
|
5
|
-
static ɵfac = function ImgDirective_Factory(
|
5
|
+
static ɵfac = function ImgDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ImgDirective)(); };
|
6
6
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ImgDirective, selectors: [["NSImg"]] });
|
7
7
|
}
|
8
8
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImgDirective, [{
|
@@ -12,4 +12,4 @@ export class ImgDirective {
|
|
12
12
|
}]
|
13
13
|
}], () => [], null); })();
|
14
14
|
export const NSIMG_DIRECTIVES = [ImgDirective];
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbWFnZS9hbmd1bGFyL2RpcmVjdGl2ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLMUMsTUFBTSxPQUFPLFlBQVk7SUFDckIsZ0JBQWUsQ0FBQztzR0FEUCxZQUFZOzZEQUFaLFlBQVk7O2lGQUFaLFlBQVk7Y0FIeEIsU0FBUztlQUFDO2dCQUNQLFFBQVEsRUFBRSxPQUFPO2FBQ3BCOztBQUlELE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFHLENBQUMsWUFBWSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEaXJlY3RpdmUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQERpcmVjdGl2ZSh7XG4gICAgc2VsZWN0b3I6ICdOU0ltZydcbn0pXG5leHBvcnQgY2xhc3MgSW1nRGlyZWN0aXZlIHtcbiAgICBjb25zdHJ1Y3RvcigpIHt9XG59XG5leHBvcnQgY29uc3QgTlNJTUdfRElSRUNUSVZFUyA9IFtJbWdEaXJlY3RpdmVdO1xuIl19
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./directives";
|
7
7
|
export { ImgDirective };
|
8
8
|
export class TNSImageModule {
|
9
|
-
static ɵfac = function TNSImageModule_Factory(
|
9
|
+
static ɵfac = function TNSImageModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TNSImageModule)(); };
|
10
10
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: TNSImageModule });
|
11
11
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
12
12
|
}
|
@@ -19,4 +19,4 @@ export class TNSImageModule {
|
|
19
19
|
}], null, null); })();
|
20
20
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TNSImageModule, { declarations: [i1.ImgDirective], exports: [i1.ImgDirective] }); })();
|
21
21
|
registerElement('NSImg', () => Img);
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2ltYWdlL2FuZ3VsYXIvbW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRXhELE9BQU8sRUFBRSxZQUFZLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDOUQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOzs7QUFDdkQsT0FBTyxFQUFFLFlBQVksRUFBRSxDQUFDO0FBS3hCLE1BQU0sT0FBTyxjQUFjO3dHQUFkLGNBQWM7NERBQWQsY0FBYzs7O2lGQUFkLGNBQWM7Y0FKMUIsUUFBUTtlQUFDO2dCQUNOLFlBQVksRUFBRSxDQUFDLGdCQUFnQixDQUFDO2dCQUNoQyxPQUFPLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQzthQUM5Qjs7d0ZBQ1ksY0FBYztBQUUzQixlQUFlLENBQUMsT0FBTyxFQUFFLEdBQUcsRUFBRSxDQUFDLEdBQUcsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiXG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgcmVnaXN0ZXJFbGVtZW50IH0gZnJvbSAnQG5hdGl2ZXNjcmlwdC9hbmd1bGFyJztcblxuaW1wb3J0IHsgSW1nRGlyZWN0aXZlLCBOU0lNR19ESVJFQ1RJVkVTIH0gZnJvbSAnLi9kaXJlY3RpdmVzJztcbmltcG9ydCB7IEltZyB9IGZyb20gJ0BuYXRpdmVzY3JpcHQtY29tbXVuaXR5L3VpLWltYWdlJztcbmV4cG9ydCB7IEltZ0RpcmVjdGl2ZSB9O1xuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtOU0lNR19ESVJFQ1RJVkVTXSxcbiAgICBleHBvcnRzOiBbTlNJTUdfRElSRUNUSVZFU10sXG59KVxuZXhwb3J0IGNsYXNzIFROU0ltYWdlTW9kdWxlIHt9XG5cbnJlZ2lzdGVyRWxlbWVudCgnTlNJbWcnLCAoKSA9PiBJbWcpO1xuIl19
|
@@ -5,7 +5,7 @@ import { Img } from '@nativescript-community/ui-image';
|
|
5
5
|
|
6
6
|
class ImgDirective {
|
7
7
|
constructor() { }
|
8
|
-
static ɵfac = function ImgDirective_Factory(
|
8
|
+
static ɵfac = function ImgDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ImgDirective)(); };
|
9
9
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ImgDirective, selectors: [["NSImg"]] });
|
10
10
|
}
|
11
11
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImgDirective, [{
|
@@ -17,7 +17,7 @@ class ImgDirective {
|
|
17
17
|
const NSIMG_DIRECTIVES = [ImgDirective];
|
18
18
|
|
19
19
|
class TNSImageModule {
|
20
|
-
static ɵfac = function TNSImageModule_Factory(
|
20
|
+
static ɵfac = function TNSImageModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TNSImageModule)(); };
|
21
21
|
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: TNSImageModule });
|
22
22
|
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
23
23
|
}
|
package/index.android.js
CHANGED
@@ -519,14 +519,14 @@ export class Img extends ImageBase {
|
|
519
519
|
if (Trace.isEnabled()) {
|
520
520
|
CLog(CLogTypes.info, 'onFinalImageSet', id, imageInfo, animatable);
|
521
521
|
}
|
522
|
-
const
|
523
|
-
if (
|
524
|
-
|
525
|
-
|
522
|
+
const owner = that?.get();
|
523
|
+
if (owner) {
|
524
|
+
owner.updateViewSize(imageInfo);
|
525
|
+
owner.isLoading = false;
|
526
526
|
const eventName = ImageBase.finalImageSetEvent;
|
527
|
-
if (
|
527
|
+
if (owner.hasListeners(eventName)) {
|
528
528
|
const info = new ImageInfo(imageInfo);
|
529
|
-
|
529
|
+
owner.notify({
|
530
530
|
eventName,
|
531
531
|
imageInfo: info,
|
532
532
|
animatable: animatable
|
@@ -538,14 +538,14 @@ export class Img extends ImageBase {
|
|
538
538
|
if (Trace.isEnabled()) {
|
539
539
|
CLog(CLogTypes.info, 'onFailure', id, throwable.getLocalizedMessage());
|
540
540
|
}
|
541
|
-
const
|
542
|
-
if (
|
541
|
+
const owner = that?.get();
|
542
|
+
if (owner) {
|
543
543
|
// const nView = nativeView.nativeViewProtected;
|
544
|
-
|
544
|
+
owner.isLoading = false;
|
545
545
|
const eventName = ImageBase.failureEvent;
|
546
|
-
if (
|
546
|
+
if (owner.hasListeners(eventName)) {
|
547
547
|
const imageError = new ImageError(throwable);
|
548
|
-
|
548
|
+
owner.notify({
|
549
549
|
eventName,
|
550
550
|
error: wrapNativeException(throwable)
|
551
551
|
});
|
@@ -556,11 +556,11 @@ export class Img extends ImageBase {
|
|
556
556
|
if (Trace.isEnabled()) {
|
557
557
|
CLog(CLogTypes.info, 'onIntermediateImageFailed', id, throwable);
|
558
558
|
}
|
559
|
-
const
|
560
|
-
if (
|
559
|
+
const owner = that?.get();
|
560
|
+
if (owner) {
|
561
561
|
const eventName = ImageBase.intermediateImageFailedEvent;
|
562
|
-
if (
|
563
|
-
|
562
|
+
if (owner.hasListeners(eventName)) {
|
563
|
+
owner.notify({
|
564
564
|
eventName,
|
565
565
|
error: wrapNativeException(throwable)
|
566
566
|
});
|
@@ -571,13 +571,13 @@ export class Img extends ImageBase {
|
|
571
571
|
if (Trace.isEnabled()) {
|
572
572
|
CLog(CLogTypes.info, 'onIntermediateImageSet', id, imageInfo);
|
573
573
|
}
|
574
|
-
const
|
575
|
-
if (
|
576
|
-
|
574
|
+
const owner = that?.get();
|
575
|
+
if (owner) {
|
576
|
+
owner.updateViewSize(imageInfo);
|
577
577
|
const eventName = ImageBase.intermediateImageSetEvent;
|
578
|
-
if (
|
578
|
+
if (owner.hasListeners(eventName)) {
|
579
579
|
const info = new ImageInfo(imageInfo);
|
580
|
-
|
580
|
+
owner.notify({
|
581
581
|
eventName,
|
582
582
|
imageInfo: info
|
583
583
|
});
|
@@ -588,11 +588,11 @@ export class Img extends ImageBase {
|
|
588
588
|
if (Trace.isEnabled()) {
|
589
589
|
CLog(CLogTypes.info, 'onRelease', id);
|
590
590
|
}
|
591
|
-
const
|
592
|
-
if (
|
591
|
+
const owner = that?.get();
|
592
|
+
if (owner) {
|
593
593
|
const eventName = ImageBase.releaseEvent;
|
594
|
-
if (
|
595
|
-
|
594
|
+
if (owner.hasListeners(eventName)) {
|
595
|
+
owner.notify({
|
596
596
|
eventName
|
597
597
|
});
|
598
598
|
}
|
@@ -602,10 +602,10 @@ export class Img extends ImageBase {
|
|
602
602
|
if (Trace.isEnabled()) {
|
603
603
|
CLog(CLogTypes.info, 'onSubmit', id, callerContext);
|
604
604
|
}
|
605
|
-
const
|
605
|
+
const owner = that?.get();
|
606
606
|
const eventName = ImageBase.submitEvent;
|
607
|
-
if (
|
608
|
-
|
607
|
+
if (owner?.hasListeners(eventName)) {
|
608
|
+
owner.notify({
|
609
609
|
eventName
|
610
610
|
});
|
611
611
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-image",
|
3
|
-
"version": "4.5.
|
3
|
+
"version": "4.5.7",
|
4
4
|
"description": "Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.",
|
5
5
|
"main": "./index",
|
6
6
|
"sideEffects": false,
|
@@ -44,5 +44,5 @@
|
|
44
44
|
},
|
45
45
|
"license": "Apache-2.0",
|
46
46
|
"readmeFilename": "README.md",
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "c40b452133f84ce5485f5c77fd1a8168778800dd"
|
48
48
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import groovy.json.JsonSlurper
|
2
2
|
dependencies {
|
3
|
-
def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "3.
|
3
|
+
def frescoVersion = project.hasProperty("frescoVersion") ? project.frescoVersion : "3.4.0"
|
4
4
|
|
5
5
|
implementation("com.facebook.fresco:fresco:$frescoVersion") {
|
6
6
|
exclude group: 'com.facebook.soloader', module: 'soloader'
|
Binary file
|