@octane-xplat/camera 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,6 +1,7 @@
1
1
  //#region src/cx.mobile.ts
2
- /** NativeScript's universal driver stringifies className values; normalize
3
- * arrays here so they stay space separated. */
2
+ /** Imperative `view.className` writes still need a pre-joined string —
3
+ * NativeScript's className setter splits on ' ' only. Normalize arrays here
4
+ * so they stay space separated. */
4
5
  function cx(...parts) {
5
6
  return parts.flat(Infinity).filter(Boolean).join(" ");
6
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "04fb97ed-7bda-486b-ba95-04b6c8810488",
3
+ "buildId": "97c54242-b0e6-41e8-b10c-ee0ed976b44b",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -25,17 +25,17 @@ function __then$0(__props, __s, __extra) {
25
25
  const video = __extra[4];
26
26
  let _b = __s.slots[0];
27
27
  if (_b === void 0) {
28
- let _m0, _m1, _m4;
28
+ let _m1, _m4;
29
29
  const _root = clone(_t$0, void 0, "||");
30
30
  queueRefAttach(__s, _m1 = (element) => {
31
31
  hostRef.current = element;
32
32
  video.current = element;
33
33
  if (!element) return;
34
34
  applyEscapeProps(element, props);
35
- }, _m0 = _root);
35
+ }, _root);
36
36
  (__s.cleanups ??= []).push(() => _b && queueRefDetach(_b.b, _b.a));
37
- _m4 = evt2e(_root, "$$playing", __event, readyFired, props);
38
- _b = bag5(__s, _root, _m0, _m1, void 0, __s, _m4);
37
+ _m4 = evt2e(_root, "$oplaying", __event, readyFired, props);
38
+ _b = bag5(__s, _root, _root, _m1, void 0, __s, _m4);
39
39
  __s.refFields = _rm$1;
40
40
  } else {
41
41
  {
@@ -103,7 +103,7 @@ var CameraView = /* @__PURE__ */ __s(function CameraView(props, __s, __extra) {
103
103
  useImperativeHandle(props.ref, () => ({ native: hostRef.current }), void 0, _hs$ + 4);
104
104
  let _b = __s.slots[0];
105
105
  if (_b === void 0) {
106
- let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14;
106
+ let _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m13, _m14;
107
107
  const _root = clone(_t$1);
108
108
  _m0 = props.id;
109
109
  _m1 = [
@@ -126,7 +126,6 @@ var CameraView = /* @__PURE__ */ __s(function CameraView(props, __s, __extra) {
126
126
  _m9 = props.accessibilityState?.selected;
127
127
  _m10 = props.accessibilityState?.checked;
128
128
  _m11 = props.accessibilityLiveRegion === "none" ? "off" : props.accessibilityLiveRegion;
129
- _m12 = _root;
130
129
  _m13 = bindSignalHostPropSources(__s, void 0, _root, [
131
130
  [
132
131
  false,
@@ -187,7 +186,7 @@ var CameraView = /* @__PURE__ */ __s(function CameraView(props, __s, __extra) {
187
186
  ], "b:25f1aaa9", true);
188
187
  markDangerouslySetInnerHTMLChildren(_root);
189
188
  _m14 = child(_root);
190
- _b = bag15(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _m12, _m13, _m14);
189
+ _b = bag15(__s, _root, _m0, _m1, _m2, _m3, _m4, _m5, _m6, _m7, _m8, _m9, _m10, _m11, _root, _m13, _m14);
191
190
  __s.refFields = _rm$3;
192
191
  } else {
193
192
  {
@@ -311,7 +310,7 @@ var CameraView = /* @__PURE__ */ __s(function CameraView(props, __s, __extra) {
311
310
  props,
312
311
  readyFired,
313
312
  video
314
- ] : void 0);
313
+ ] : void 0, 1);
315
314
  }
316
315
  });
317
316
  //#endregion
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "ec5f822a-6d2e-4d0a-820c-63c84464d495",
3
+ "buildId": "96cb43a6-c424-49f9-aceb-4c944dfc819a",
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/camera",
3
- "version": "0.11.1",
3
+ "version": "0.13.0",
4
4
  "description": "Live camera preview for Octane xplat — web getUserMedia + native capture (AVCapture / CameraX)",
5
5
  "keywords": [
6
6
  "android",
@@ -42,9 +42,9 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@nativescript-community/octane": "0.2.4",
45
- "@nativescript/core": "9.1.2",
45
+ "@nativescript/core": "9.1.3",
46
46
  "@octanejs/vite-plugin": "0.1.61",
47
- "octane": "0.6.3",
47
+ "octane": "0.11.0",
48
48
  "tsrx-typegen": "0.2.2",
49
49
  "typescript": "5.9.3",
50
50
  "vite": "8.3.0"
package/src/cx.mobile.ts CHANGED
@@ -1,5 +1,6 @@
1
- /** NativeScript's universal driver stringifies className values; normalize
2
- * arrays here so they stay space separated. */
1
+ /** Imperative `view.className` writes still need a pre-joined string —
2
+ * NativeScript's className setter splits on ' ' only. Normalize arrays here
3
+ * so they stay space separated. */
3
4
  export function cx(...parts: any[]): string {
4
5
  return parts.flat(Infinity).filter(Boolean).join(' ')
5
6
  }