@kindly-ai/react-native 0.1.0 → 0.1.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.
- package/KindlyReactNative.podspec +35 -3
- package/android/build.gradle +1 -1
- package/android/maven-repo/ai/kindly/sdk/1.0.120/sdk-1.0.120.aar +0 -0
- package/android/maven-repo/ai/kindly/sdk/{1.0.93/sdk-1.0.93.pom → 1.0.120/sdk-1.0.120.pom} +6 -1
- package/android/src/main/java/com/kindlyai/reactnative/KindlyReactNativeModule.kt +25 -4
- package/ios/Frameworks/Kindly.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/Kindly.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/Kindly.xcframework/_CodeSignature/CodeResources +60 -60
- package/ios/Frameworks/Kindly.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Config.plist +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Info.plist +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Kindly +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios.abi.json +908 -172
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios.swiftinterface +18 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/_CodeSignature/CodeResources +11 -11
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Config.plist +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Info.plist +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Kindly +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios-simulator.abi.json +908 -172
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/arm64-apple-ios-simulator.swiftinterface +18 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/x86_64-apple-ios-simulator.abi.json +908 -172
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Modules/Kindly.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +18 -0
- package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/_CodeSignature/CodeResources +19 -19
- package/ios/KindlyReactNative.h +15 -8
- package/ios/KindlyReactNative.mm +27 -1
- package/ios/KindlyReactNativeImpl.swift +38 -3
- package/lib/module/NativeKindlyReactNative.js.map +1 -1
- package/lib/module/index.js +39 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/NativeKindlyReactNative.d.ts +4 -0
- package/lib/typescript/src/NativeKindlyReactNative.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +23 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeKindlyReactNative.ts +10 -0
- package/src/index.tsx +39 -0
- package/android/maven-repo/ai/kindly/sdk/1.0.93/sdk-1.0.93.aar +0 -0
|
@@ -63,6 +63,12 @@ public struct KindlySDKConfig {
|
|
|
63
63
|
public struct FormConfig {
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
public struct ExternalNotification {
|
|
67
|
+
public let id: Swift.String
|
|
68
|
+
public let title: Swift.String
|
|
69
|
+
public let body: Swift.String
|
|
70
|
+
public let userInfo: [Swift.AnyHashable : Any]
|
|
71
|
+
}
|
|
66
72
|
public enum KindlyEventType : Swift.String, Swift.CaseIterable {
|
|
67
73
|
case load
|
|
68
74
|
case message
|
|
@@ -298,9 +304,11 @@ public enum ChatConnectionState {
|
|
|
298
304
|
public protocol KindlyChatClientDelegate : ObjectiveC.NSObject {
|
|
299
305
|
func didPressButton(chatButton: Kindly.ExternalChatButton, chatLog: [Kindly.ExternalChatMessage])
|
|
300
306
|
func shouldHandleLink(url: Foundation.URL) -> Swift.Bool
|
|
307
|
+
func shouldHandleNotification(notification: Kindly.ExternalNotification) -> Swift.Bool
|
|
301
308
|
}
|
|
302
309
|
extension Kindly.KindlyChatClientDelegate {
|
|
303
310
|
public func shouldHandleLink(url: Foundation.URL) -> Swift.Bool
|
|
311
|
+
public func shouldHandleNotification(notification: Kindly.ExternalNotification) -> Swift.Bool
|
|
304
312
|
}
|
|
305
313
|
final public class KindlyChatClient {
|
|
306
314
|
public static var shared: Kindly.KindlyChatClient!
|
|
@@ -351,10 +359,18 @@ extension Kindly.Promise {
|
|
|
351
359
|
public func `catch`(on queue: Dispatch.DispatchQueue = .promises, _ onRejected: @escaping Kindly.Promise<T>.onRejected) -> Kindly.Promise<T>
|
|
352
360
|
@discardableResult
|
|
353
361
|
public func always(on queue: Dispatch.DispatchQueue = .promises, _ block: @escaping () -> Swift.Void) -> Kindly.Promise<T>
|
|
362
|
+
public func cancel()
|
|
363
|
+
public var isCancelled: Swift.Bool {
|
|
364
|
+
get
|
|
365
|
+
}
|
|
354
366
|
public func pipe(to target: Kindly.Promise<T>)
|
|
355
367
|
}
|
|
356
368
|
public enum KindlyLogger {
|
|
357
369
|
public static func log(_ tag: Swift.String, _ message: Swift.String, level: os.OSLogType = .default, filename: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
370
|
+
public static func prettyPrintJson(_ json: Swift.String) -> Swift.String
|
|
371
|
+
}
|
|
372
|
+
extension Foundation.NSNotification.Name {
|
|
373
|
+
public static let kindlyThemeDidChange: Foundation.Notification.Name
|
|
358
374
|
}
|
|
359
375
|
public protocol Theme {
|
|
360
376
|
var background: UIKit.UIColor? { get }
|
|
@@ -497,6 +513,8 @@ extension Kindly.KindlyChatClient {
|
|
|
497
513
|
final public func setNewContext(_ context: [Swift.String : Swift.String])
|
|
498
514
|
final public class func clearNewContext()
|
|
499
515
|
final public func clearNewContext()
|
|
516
|
+
@discardableResult
|
|
517
|
+
final public class func sendMessage(_ text: Swift.String, newContext: [Swift.String : Swift.String]? = nil) -> Kindly.Promise<Kindly.ExternalChatMessage>
|
|
500
518
|
final public class func setAPNSDeviceToken(_ deviceToken: Foundation.Data)
|
|
501
519
|
final public class func setAPNSDeviceToken(_ deviceToken: Swift.String)
|
|
502
520
|
@discardableResult
|
|
@@ -520,6 +538,7 @@ extension Kindly.KindlyChatClient {
|
|
|
520
538
|
@_spi(Testing) extension Kindly.KindlyChatClient {
|
|
521
539
|
@_spi(Testing) final public class func _overrideSettings(_ overrides: [Swift.String : Any])
|
|
522
540
|
@_spi(Testing) final public class func _clearSettingsOverrides()
|
|
541
|
+
@_spi(Testing) final public class func _setVerboseLogs(_ enabled: Swift.Bool)
|
|
523
542
|
}
|
|
524
543
|
public typealias AuthTokenCallback = (_ chatId: Swift.String, _ promise: Kindly.Promise<Swift.String>) -> Swift.Void
|
|
525
544
|
extension Kindly.KindlyEventType : Swift.Equatable {}
|
|
Binary file
|
|
@@ -63,6 +63,12 @@ public struct KindlySDKConfig {
|
|
|
63
63
|
public struct FormConfig {
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
public struct ExternalNotification {
|
|
67
|
+
public let id: Swift.String
|
|
68
|
+
public let title: Swift.String
|
|
69
|
+
public let body: Swift.String
|
|
70
|
+
public let userInfo: [Swift.AnyHashable : Any]
|
|
71
|
+
}
|
|
66
72
|
public enum KindlyEventType : Swift.String, Swift.CaseIterable {
|
|
67
73
|
case load
|
|
68
74
|
case message
|
|
@@ -298,9 +304,11 @@ public enum ChatConnectionState {
|
|
|
298
304
|
public protocol KindlyChatClientDelegate : ObjectiveC.NSObject {
|
|
299
305
|
func didPressButton(chatButton: Kindly.ExternalChatButton, chatLog: [Kindly.ExternalChatMessage])
|
|
300
306
|
func shouldHandleLink(url: Foundation.URL) -> Swift.Bool
|
|
307
|
+
func shouldHandleNotification(notification: Kindly.ExternalNotification) -> Swift.Bool
|
|
301
308
|
}
|
|
302
309
|
extension Kindly.KindlyChatClientDelegate {
|
|
303
310
|
public func shouldHandleLink(url: Foundation.URL) -> Swift.Bool
|
|
311
|
+
public func shouldHandleNotification(notification: Kindly.ExternalNotification) -> Swift.Bool
|
|
304
312
|
}
|
|
305
313
|
final public class KindlyChatClient {
|
|
306
314
|
public static var shared: Kindly.KindlyChatClient!
|
|
@@ -351,10 +359,18 @@ extension Kindly.Promise {
|
|
|
351
359
|
public func `catch`(on queue: Dispatch.DispatchQueue = .promises, _ onRejected: @escaping Kindly.Promise<T>.onRejected) -> Kindly.Promise<T>
|
|
352
360
|
@discardableResult
|
|
353
361
|
public func always(on queue: Dispatch.DispatchQueue = .promises, _ block: @escaping () -> Swift.Void) -> Kindly.Promise<T>
|
|
362
|
+
public func cancel()
|
|
363
|
+
public var isCancelled: Swift.Bool {
|
|
364
|
+
get
|
|
365
|
+
}
|
|
354
366
|
public func pipe(to target: Kindly.Promise<T>)
|
|
355
367
|
}
|
|
356
368
|
public enum KindlyLogger {
|
|
357
369
|
public static func log(_ tag: Swift.String, _ message: Swift.String, level: os.OSLogType = .default, filename: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
|
|
370
|
+
public static func prettyPrintJson(_ json: Swift.String) -> Swift.String
|
|
371
|
+
}
|
|
372
|
+
extension Foundation.NSNotification.Name {
|
|
373
|
+
public static let kindlyThemeDidChange: Foundation.Notification.Name
|
|
358
374
|
}
|
|
359
375
|
public protocol Theme {
|
|
360
376
|
var background: UIKit.UIColor? { get }
|
|
@@ -497,6 +513,8 @@ extension Kindly.KindlyChatClient {
|
|
|
497
513
|
final public func setNewContext(_ context: [Swift.String : Swift.String])
|
|
498
514
|
final public class func clearNewContext()
|
|
499
515
|
final public func clearNewContext()
|
|
516
|
+
@discardableResult
|
|
517
|
+
final public class func sendMessage(_ text: Swift.String, newContext: [Swift.String : Swift.String]? = nil) -> Kindly.Promise<Kindly.ExternalChatMessage>
|
|
500
518
|
final public class func setAPNSDeviceToken(_ deviceToken: Foundation.Data)
|
|
501
519
|
final public class func setAPNSDeviceToken(_ deviceToken: Swift.String)
|
|
502
520
|
@discardableResult
|