@octane-xplat/lottie 0.11.1 → 0.13.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": "c30b8106-04aa-4e0b-97c2-ecab7c431d0b",
3
+ "buildId": "3863aee3-5a2b-45b2-a363-8daf287f1e5f",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/dist/web/index.js CHANGED
@@ -119,7 +119,7 @@ var Lottie = /* @__PURE__ */ __s(function Lottie(props, __s, __extra) {
119
119
  useImperativeHandle(props.ref, () => animation ? handle(animation) : null, [animation], _hs$ + 9);
120
120
  let _b = __s.slots[0];
121
121
  if (_b === void 0) {
122
- let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14;
122
+ let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m14;
123
123
  const _root = clone(_t$0);
124
124
  _m0 = (v) => {
125
125
  el.current = v;
@@ -138,7 +138,6 @@ var Lottie = /* @__PURE__ */ __s(function Lottie(props, __s, __extra) {
138
138
  _m10 = props.accessibilityState?.selected;
139
139
  _m11 = props.accessibilityState?.checked;
140
140
  _m12 = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
141
- _m13 = _root;
142
141
  _m14 = bindSignalHostPropSources(__s, void 0, _root, [
143
142
  [
144
143
  false,
@@ -216,10 +215,10 @@ var Lottie = /* @__PURE__ */ __s(function Lottie(props, __s, __extra) {
216
215
  k: _m10,
217
216
  l: _m11,
218
217
  m: _m12,
219
- n: _m13,
218
+ n: _root,
220
219
  o: _m14,
221
220
  p: null,
222
- q: void 0
221
+ q: __s
223
222
  });
224
223
  __s.refFields = _rm$1;
225
224
  } else {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "4f03906f-edfd-4980-96e0-3bca9f92b9cb",
3
+ "buildId": "d701b975-f1a6-4ba8-9be9-d3ee9a8cb5b5",
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.11.1",
3
+ "version": "0.13.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",
@@ -59,11 +59,11 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@nativescript-community/octane": "0.2.1",
62
- "@nativescript/core": "9.1.2",
62
+ "@nativescript/core": "9.1.3",
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.6.3",
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;