@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.
@@ -1,9 +1,10 @@
1
1
  //#region src/cx.mobile.ts
2
- /** NS `className` splits on ' ' only, and the universal driver applies the
3
- * prop via `String(value)` — an array would arrive comma-joined and match
4
- * no class at all. Native leaves normalize through cx() before handing
5
- * className to an intrinsic. (The DOM renderer already flattens arrays,
6
- * so web leaves don't need this.) */
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
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "91fe057b-b558-4a65-a535-bfb217296aa5",
3
+ "buildId": "5d51c9bb-2c48-4eee-9432-55a62305ef90",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "f9dba387-7943-4fdc-bed9-7d6be6d4d563",
3
+ "buildId": "51f8fdc7-21dc-4c66-951d-2ee64af72724",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octane-xplat/lottie",
3
- "version": "0.12.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.10.2",
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
- /** NS `className` splits on ' ' only, and the universal driver applies the
2
- * prop via `String(value)` — an array would arrive comma-joined and match
3
- * no class at all. Native leaves normalize through cx() before handing
4
- * className to an intrinsic. (The DOM renderer already flattens arrays,
5
- * so web leaves don't need this.) */
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
- /** NS `className` splits on ' ' only, and the universal driver applies the
2
- * prop via `String(value)` — an array would arrive comma-joined and match
3
- * no class at all. Native leaves normalize through cx() before handing
4
- * className to an intrinsic. (The DOM renderer already flattens arrays,
5
- * so web leaves don't need this.) */
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;