@octane-xplat/lottie 0.12.0 → 0.14.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.
package/dist/native/cx.mobile.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
//#region src/cx.mobile.ts
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* className to an intrinsic
|
|
6
|
-
* so web leaves don't need
|
|
2
|
+
/** Native renderers now normalize the declarative `className` prop, but
|
|
3
|
+
* imperative `view.className` writes still need a pre-joined string — NS
|
|
4
|
+
* splits on ' ' only. Native leaves keep normalizing through cx() before
|
|
5
|
+
* handing className to an intrinsic so both paths accept the same values.
|
|
6
|
+
* (The DOM renderer already flattens arrays, so web leaves don't need
|
|
7
|
+
* this.) */
|
|
7
8
|
function cx(...parts) {
|
|
8
9
|
return parts.flat(Infinity).filter(Boolean).join(" ");
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/lottie",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Lottie animation leaf for Octane xplat — lottie-web on web, NativeScript on mobile, and Airbnb Lottie on AppKit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@nativescript/types": "9.1.4",
|
|
64
64
|
"@octanejs/vite-plugin": "0.1.61",
|
|
65
65
|
"@tsrx/typescript-plugin": "0.4.11",
|
|
66
|
-
"octane": "0.
|
|
66
|
+
"octane": "0.11.0",
|
|
67
67
|
"tsrx-typegen": "0.2.2",
|
|
68
68
|
"typescript": "5.9.3",
|
|
69
69
|
"vite": "8.3.0"
|
package/src/Lottie.tsrx
CHANGED
|
@@ -55,7 +55,7 @@ export function Lottie(props: LottieProps) @{
|
|
|
55
55
|
|
|
56
56
|
useImperativeHandle(props.ref, () => handle(host.current!), []);
|
|
57
57
|
|
|
58
|
-
const bindHost = useCallback((v: LottieView) => {
|
|
58
|
+
const bindHost = useCallback((v: LottieView | null) => {
|
|
59
59
|
host.current = v;
|
|
60
60
|
}, []);
|
|
61
61
|
|
package/src/cx.mobile.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* className to an intrinsic
|
|
5
|
-
* so web leaves don't need
|
|
1
|
+
/** Native renderers now normalize the declarative `className` prop, but
|
|
2
|
+
* imperative `view.className` writes still need a pre-joined string — NS
|
|
3
|
+
* splits on ' ' only. Native leaves keep normalizing through cx() before
|
|
4
|
+
* handing className to an intrinsic so both paths accept the same values.
|
|
5
|
+
* (The DOM renderer already flattens arrays, so web leaves don't need
|
|
6
|
+
* this.) */
|
|
6
7
|
export function cx(...parts: any[]): string {
|
|
7
8
|
return parts.flat(Infinity).filter(Boolean).join(' ')
|
|
8
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* className to an intrinsic
|
|
5
|
-
* so web leaves don't need
|
|
1
|
+
/** Native renderers now normalize the declarative `className` prop, but
|
|
2
|
+
* imperative `view.className` writes still need a pre-joined string — NS
|
|
3
|
+
* splits on ' ' only. Native leaves keep normalizing through cx() before
|
|
4
|
+
* handing className to an intrinsic so both paths accept the same values.
|
|
5
|
+
* (The DOM renderer already flattens arrays, so web leaves don't need
|
|
6
|
+
* this.) */
|
|
6
7
|
export declare function cx(...parts: any[]): string;
|