@tinkerlandai/longplay-react-native 0.10.17 → 0.10.18-rc.1

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.
@@ -55,6 +55,7 @@ class IndianaFunnelView(private val activity: Activity, val session: IndianaFunn
55
55
  if (!completed) { completed = true; onComplete?.invoke(run) }; null
56
56
  }
57
57
  "dismiss" -> { if (!dismissed) { dismissed = true; onDismiss?.invoke() }; null }
58
+ "error" -> { onError?.invoke(IndianaClientException("renderer_failed")); null }
58
59
  else -> throw IndianaClientException("invalid_command")
59
60
  }
60
61
  private fun send(value: JSONObject) { if (!stopped) host.send(value) }
@@ -2,5 +2,5 @@
2
2
  package ai.tinkerland.indiana
3
3
 
4
4
  object IndianaSDK {
5
- const val version = "0.10.17"
5
+ const val version = "0.10.18-rc.1"
6
6
  }
@@ -89,6 +89,8 @@ import SwiftUI
89
89
  if !completed { completed = true; onComplete?(run) }; return .null
90
90
  case "dismiss":
91
91
  if !dismissed { dismissed = true; onDismiss?() }; return .null
92
+ case "error":
93
+ onError?(IndianaClientError.invalidResponse); return .null
92
94
  default: throw IndianaFunnelError.invalidCommand
93
95
  }
94
96
  }
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/sdk/generate-native-protocol.mjs. Do not edit.
2
2
  public enum IndianaSDK {
3
- public static let version = "0.10.17"
3
+ public static let version = "0.10.18-rc.1"
4
4
  }