@octane-xplat/gif 0.11.0 → 0.12.0
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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { applyEscapeProps } from "./escape-props.web.js";
|
|
2
2
|
import { __s, bag7, clone, queueRefAttach, queueRefDetach, setStyle, template } from "octane";
|
|
3
|
-
import {
|
|
3
|
+
import { replaceRef, setClassNameIfChanged, setPlainAttributeIfChanged, setURLAttributeIfChanged } from "octane/internal/client";
|
|
4
4
|
//#region src/AnimatedImage.web.tsrx
|
|
5
|
-
enableSignalBindings(1, true);
|
|
6
5
|
var _t$0 = /* @__PURE__ */ template("<img/>");
|
|
7
6
|
var _rm$0 = [
|
|
8
7
|
"r",
|
|
@@ -18,18 +17,18 @@ var OBJECT_FIT = {
|
|
|
18
17
|
var AnimatedImage = /* @__PURE__ */ __s(function AnimatedImage(props, __s, __extra) {
|
|
19
18
|
let _b = __s.slots[0];
|
|
20
19
|
if (_b === void 0) {
|
|
21
|
-
let
|
|
20
|
+
let _m1;
|
|
22
21
|
const _root = clone(_t$0);
|
|
23
|
-
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props),
|
|
22
|
+
queueRefAttach(__s, _m1 = (e) => applyEscapeProps(e, props), _root);
|
|
24
23
|
(__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
|
|
25
|
-
_b = bag7(__s, _root,
|
|
24
|
+
_b = bag7(__s, _root, _root, _m1);
|
|
26
25
|
__s.refFields = _rm$0;
|
|
27
26
|
} else {
|
|
28
27
|
const _r = (e) => applyEscapeProps(e, props);
|
|
29
28
|
if (_r !== _b.b) _b.b = replaceRef(__s, _b.b, _r, _b.a);
|
|
30
29
|
}
|
|
31
|
-
_b.c =
|
|
32
|
-
_b.d =
|
|
30
|
+
_b.c = setPlainAttributeIfChanged(props.id, _b.c, _b.a, "id");
|
|
31
|
+
_b.d = setClassNameIfChanged(props.className, _b.d, _b.a);
|
|
33
32
|
{
|
|
34
33
|
const _v = {
|
|
35
34
|
objectFit: OBJECT_FIT[props.stretch ?? "aspectFit"],
|
|
@@ -42,8 +41,8 @@ var AnimatedImage = /* @__PURE__ */ __s(function AnimatedImage(props, __s, __ext
|
|
|
42
41
|
_b.e = _v;
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
|
-
_b.f =
|
|
46
|
-
_b.g =
|
|
44
|
+
_b.f = setURLAttributeIfChanged(props.src, _b.f, _b.a, "src");
|
|
45
|
+
_b.g = setPlainAttributeIfChanged(props.alt, _b.g, _b.a, "alt");
|
|
47
46
|
});
|
|
48
47
|
//#endregion
|
|
49
48
|
export { AnimatedImage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/gif",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Animated images (GIF/animated webp) for Octane xplat — web <img> + @nativescript-community/ui-image",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@nativescript-community/octane": "0.2.4",
|
|
57
|
-
"@nativescript/core": "9.1.
|
|
57
|
+
"@nativescript/core": "9.1.3",
|
|
58
58
|
"@octanejs/vite-plugin": "0.1.61",
|
|
59
59
|
"@tsrx/typescript-plugin": "0.4.11",
|
|
60
|
-
"octane": "0.
|
|
60
|
+
"octane": "0.10.2",
|
|
61
61
|
"tsrx-typegen": "0.2.2",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
63
|
"vite": "8.3.0"
|