@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
|
package/ios/Frameworks/Kindly.xcframework/ios-arm64/Kindly.framework/_CodeSignature/CodeResources
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Config.plist</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
AA5SGzmGO338xNXmWA7p3pPWeps=
|
|
14
14
|
</data>
|
|
15
15
|
<key>ConfirmationWindow.nib</key>
|
|
16
16
|
<data>
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
</data>
|
|
27
27
|
<key>Info.plist</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
G1l25Hqm4BcIKN8FTRCX/mJ0fKA=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
/WmNI4c6W+e+zix3A/N+wbpNibc=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
ZVtotrAYYDp1AXb/iYShDsPf5dU=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
3fGjw1yBaxT9KWVB0iSFz2QVIII=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
QI4v9SOuzILEkLqrW8mszFcH69o=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/module.modulemap</key>
|
|
48
48
|
<data>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<dict>
|
|
67
67
|
<key>hash2</key>
|
|
68
68
|
<data>
|
|
69
|
-
|
|
69
|
+
gpKvlibPb33hUZ45Al58Kscd85/tPeSSpkq/sw61m/Y=
|
|
70
70
|
</data>
|
|
71
71
|
</dict>
|
|
72
72
|
<key>ConfirmationWindow.nib</key>
|
|
@@ -94,28 +94,28 @@
|
|
|
94
94
|
<dict>
|
|
95
95
|
<key>hash2</key>
|
|
96
96
|
<data>
|
|
97
|
-
|
|
97
|
+
fD6qAMmJ2Gcd6e+zcJWTfFe9RMZDEbXBahFdL8JSnNg=
|
|
98
98
|
</data>
|
|
99
99
|
</dict>
|
|
100
100
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
101
101
|
<dict>
|
|
102
102
|
<key>hash2</key>
|
|
103
103
|
<data>
|
|
104
|
-
|
|
104
|
+
celQMlAgV7KIsExZ5KnevhiOPlCaweNkSHxtgyJ1ZeA=
|
|
105
105
|
</data>
|
|
106
106
|
</dict>
|
|
107
107
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
108
108
|
<dict>
|
|
109
109
|
<key>hash2</key>
|
|
110
110
|
<data>
|
|
111
|
-
|
|
111
|
+
RwfzQtVp4we6141if3FC0qUBC7pzNgzYnDlX8cXvSt4=
|
|
112
112
|
</data>
|
|
113
113
|
</dict>
|
|
114
114
|
<key>Modules/Kindly.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
115
115
|
<dict>
|
|
116
116
|
<key>hash2</key>
|
|
117
117
|
<data>
|
|
118
|
-
|
|
118
|
+
q01qLbO9WbhS4Vji6fST2cR2E4Js0mjDYJWuRKx928g=
|
|
119
119
|
</data>
|
|
120
120
|
</dict>
|
|
121
121
|
<key>Modules/module.modulemap</key>
|
package/ios/Frameworks/Kindly.xcframework/ios-arm64_x86_64-simulator/Kindly.framework/Config.plist
CHANGED
|
Binary file
|