@shortkitsdk/react-native 0.2.23 → 0.2.24
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/android/libs/shortkit-release.aar +0 -0
- package/android/src/main/java/com/shortkit/reactnative/ShortKitBridge.kt +10 -7
- package/ios/ShortKitBridge.swift +97 -2
- package/ios/ShortKitModule.mm +23 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +1257 -176
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +9 -9
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1257 -176
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1257 -176
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +24 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +17 -17
- package/package.json +1 -1
- package/src/ShortKitCommands.ts +3 -0
- package/src/ShortKitContext.ts +6 -0
- package/src/ShortKitProvider.tsx +45 -1
- package/src/index.ts +2 -0
- package/src/specs/NativeShortKitModule.ts +29 -0
- package/src/types.ts +44 -1
|
@@ -521,7 +521,7 @@ extension ShortKitSDK.ContentItem {
|
|
|
521
521
|
public enum FeedInput : Swift.Sendable {
|
|
522
522
|
case video(playbackId: Swift.String, fallbackUrl: Swift.String? = nil)
|
|
523
523
|
case imageCarousel(ShortKitSDK.ImageCarouselItem)
|
|
524
|
-
case videoCarousel(ShortKitSDK.
|
|
524
|
+
case videoCarousel(ShortKitSDK.VideoCarouselInput)
|
|
525
525
|
}
|
|
526
526
|
public enum FeedItem : Swift.Sendable {
|
|
527
527
|
case content(ShortKitSDK.ContentItem)
|
|
@@ -665,6 +665,19 @@ public struct VTTCue : Swift.Equatable, Swift.Sendable {
|
|
|
665
665
|
public init(startTime: Swift.Double, endTime: Swift.Double, text: Swift.String)
|
|
666
666
|
public static func == (a: ShortKitSDK.VTTCue, b: ShortKitSDK.VTTCue) -> Swift.Bool
|
|
667
667
|
}
|
|
668
|
+
public struct VideoCarouselInput : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
669
|
+
public let id: Swift.String
|
|
670
|
+
public let videos: [ShortKitSDK.VideoCarouselVideoInput]
|
|
671
|
+
public let title: Swift.String?
|
|
672
|
+
public let description: Swift.String?
|
|
673
|
+
public let author: Swift.String?
|
|
674
|
+
public let section: Swift.String?
|
|
675
|
+
public let articleUrl: Swift.String?
|
|
676
|
+
public init(id: Swift.String, videos: [ShortKitSDK.VideoCarouselVideoInput], title: Swift.String? = nil, description: Swift.String? = nil, author: Swift.String? = nil, section: Swift.String? = nil, articleUrl: Swift.String? = nil)
|
|
677
|
+
public static func == (a: ShortKitSDK.VideoCarouselInput, b: ShortKitSDK.VideoCarouselInput) -> Swift.Bool
|
|
678
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
679
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
680
|
+
}
|
|
668
681
|
public struct VideoCarouselItem : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
669
682
|
public let id: Swift.String
|
|
670
683
|
public let videos: [ShortKitSDK.ContentItem]
|
|
@@ -678,6 +691,14 @@ public struct VideoCarouselItem : Swift.Codable, Swift.Equatable, Swift.Sendable
|
|
|
678
691
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
679
692
|
public init(from decoder: any Swift.Decoder) throws
|
|
680
693
|
}
|
|
694
|
+
public struct VideoCarouselVideoInput : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
695
|
+
public let playbackId: Swift.String
|
|
696
|
+
public let fallbackUrl: Swift.String?
|
|
697
|
+
public init(playbackId: Swift.String, fallbackUrl: Swift.String? = nil)
|
|
698
|
+
public static func == (a: ShortKitSDK.VideoCarouselVideoInput, b: ShortKitSDK.VideoCarouselVideoInput) -> Swift.Bool
|
|
699
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
700
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
701
|
+
}
|
|
681
702
|
public protocol AdOverlay : AnyObject {
|
|
682
703
|
func configure(with content: ShortKitSDK.NativeAdContent)
|
|
683
704
|
func resetState()
|
|
@@ -689,6 +710,7 @@ public protocol CarouselOverlay : AnyObject {
|
|
|
689
710
|
var wantsNativeImagePrefetch: Swift.Bool { get }
|
|
690
711
|
func activatePlayback()
|
|
691
712
|
func updateActiveImage(index: Swift.Int)
|
|
713
|
+
func resetToFirstImage()
|
|
692
714
|
}
|
|
693
715
|
extension ShortKitSDK.CarouselOverlay {
|
|
694
716
|
public var cachedImage: ((Swift.String) -> UIKit.UIImage?)? {
|
|
@@ -700,6 +722,7 @@ extension ShortKitSDK.CarouselOverlay {
|
|
|
700
722
|
}
|
|
701
723
|
public func activatePlayback()
|
|
702
724
|
public func updateActiveImage(index: Swift.Int)
|
|
725
|
+
public func resetToFirstImage()
|
|
703
726
|
}
|
|
704
727
|
final public class CellContent : Combine.ObservableObject {
|
|
705
728
|
@Combine.Published<ShortKitSDK.ContentItem?> @_projectedValueProperty($item) final public var item: ShortKitSDK.ContentItem? {
|
|
Binary file
|
|
@@ -521,7 +521,7 @@ extension ShortKitSDK.ContentItem {
|
|
|
521
521
|
public enum FeedInput : Swift.Sendable {
|
|
522
522
|
case video(playbackId: Swift.String, fallbackUrl: Swift.String? = nil)
|
|
523
523
|
case imageCarousel(ShortKitSDK.ImageCarouselItem)
|
|
524
|
-
case videoCarousel(ShortKitSDK.
|
|
524
|
+
case videoCarousel(ShortKitSDK.VideoCarouselInput)
|
|
525
525
|
}
|
|
526
526
|
public enum FeedItem : Swift.Sendable {
|
|
527
527
|
case content(ShortKitSDK.ContentItem)
|
|
@@ -665,6 +665,19 @@ public struct VTTCue : Swift.Equatable, Swift.Sendable {
|
|
|
665
665
|
public init(startTime: Swift.Double, endTime: Swift.Double, text: Swift.String)
|
|
666
666
|
public static func == (a: ShortKitSDK.VTTCue, b: ShortKitSDK.VTTCue) -> Swift.Bool
|
|
667
667
|
}
|
|
668
|
+
public struct VideoCarouselInput : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
669
|
+
public let id: Swift.String
|
|
670
|
+
public let videos: [ShortKitSDK.VideoCarouselVideoInput]
|
|
671
|
+
public let title: Swift.String?
|
|
672
|
+
public let description: Swift.String?
|
|
673
|
+
public let author: Swift.String?
|
|
674
|
+
public let section: Swift.String?
|
|
675
|
+
public let articleUrl: Swift.String?
|
|
676
|
+
public init(id: Swift.String, videos: [ShortKitSDK.VideoCarouselVideoInput], title: Swift.String? = nil, description: Swift.String? = nil, author: Swift.String? = nil, section: Swift.String? = nil, articleUrl: Swift.String? = nil)
|
|
677
|
+
public static func == (a: ShortKitSDK.VideoCarouselInput, b: ShortKitSDK.VideoCarouselInput) -> Swift.Bool
|
|
678
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
679
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
680
|
+
}
|
|
668
681
|
public struct VideoCarouselItem : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
669
682
|
public let id: Swift.String
|
|
670
683
|
public let videos: [ShortKitSDK.ContentItem]
|
|
@@ -678,6 +691,14 @@ public struct VideoCarouselItem : Swift.Codable, Swift.Equatable, Swift.Sendable
|
|
|
678
691
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
679
692
|
public init(from decoder: any Swift.Decoder) throws
|
|
680
693
|
}
|
|
694
|
+
public struct VideoCarouselVideoInput : Swift.Codable, Swift.Equatable, Swift.Sendable {
|
|
695
|
+
public let playbackId: Swift.String
|
|
696
|
+
public let fallbackUrl: Swift.String?
|
|
697
|
+
public init(playbackId: Swift.String, fallbackUrl: Swift.String? = nil)
|
|
698
|
+
public static func == (a: ShortKitSDK.VideoCarouselVideoInput, b: ShortKitSDK.VideoCarouselVideoInput) -> Swift.Bool
|
|
699
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
700
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
701
|
+
}
|
|
681
702
|
public protocol AdOverlay : AnyObject {
|
|
682
703
|
func configure(with content: ShortKitSDK.NativeAdContent)
|
|
683
704
|
func resetState()
|
|
@@ -689,6 +710,7 @@ public protocol CarouselOverlay : AnyObject {
|
|
|
689
710
|
var wantsNativeImagePrefetch: Swift.Bool { get }
|
|
690
711
|
func activatePlayback()
|
|
691
712
|
func updateActiveImage(index: Swift.Int)
|
|
713
|
+
func resetToFirstImage()
|
|
692
714
|
}
|
|
693
715
|
extension ShortKitSDK.CarouselOverlay {
|
|
694
716
|
public var cachedImage: ((Swift.String) -> UIKit.UIImage?)? {
|
|
@@ -700,6 +722,7 @@ extension ShortKitSDK.CarouselOverlay {
|
|
|
700
722
|
}
|
|
701
723
|
public func activatePlayback()
|
|
702
724
|
public func updateActiveImage(index: Swift.Int)
|
|
725
|
+
public func resetToFirstImage()
|
|
703
726
|
}
|
|
704
727
|
final public class CellContent : Combine.ObservableObject {
|
|
705
728
|
@Combine.Published<ShortKitSDK.ContentItem?> @_projectedValueProperty($item) final public var item: ShortKitSDK.ContentItem? {
|
|
Binary file
|
package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources
CHANGED
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
aVOP/OHkEUzNyBoUHTT2iiGJbu4=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
mxcDambiFIzUbFTPfCTaKwjGz/8=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
vWBatM+n+RKc0qY5HAmivGuTfEA=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
FCdpIwOOeCgnalSszujUKRpcHq4=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
vWBatM+n+RKc0qY5HAmivGuTfEA=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/module.modulemap</key>
|
|
32
32
|
<data>
|
|
@@ -50,28 +50,28 @@
|
|
|
50
50
|
<dict>
|
|
51
51
|
<key>hash2</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
s3LSfH8aLgl3mic08rsi958gHLv6ImNC8MsZtFoy8u0=
|
|
54
54
|
</data>
|
|
55
55
|
</dict>
|
|
56
56
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
57
57
|
<dict>
|
|
58
58
|
<key>hash2</key>
|
|
59
59
|
<data>
|
|
60
|
-
|
|
60
|
+
DkLp7oApwoTKwrOwry/Ntsw/kQ9J+LvzaNE2oKstmqY=
|
|
61
61
|
</data>
|
|
62
62
|
</dict>
|
|
63
63
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
64
64
|
<dict>
|
|
65
65
|
<key>hash2</key>
|
|
66
66
|
<data>
|
|
67
|
-
|
|
67
|
+
sTV2L19jEmHgsWsTrLC/Ei6y8ihnLmBO9VLICNL/hFw=
|
|
68
68
|
</data>
|
|
69
69
|
</dict>
|
|
70
70
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
71
71
|
<dict>
|
|
72
72
|
<key>hash2</key>
|
|
73
73
|
<data>
|
|
74
|
-
|
|
74
|
+
DkLp7oApwoTKwrOwry/Ntsw/kQ9J+LvzaNE2oKstmqY=
|
|
75
75
|
</data>
|
|
76
76
|
</dict>
|
|
77
77
|
<key>Modules/module.modulemap</key>
|
package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Info.plist
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
<key>CFBundlePackageType</key>
|
|
12
12
|
<string>FMWK</string>
|
|
13
13
|
<key>CFBundleVersion</key>
|
|
14
|
-
<string>0.2.
|
|
14
|
+
<string>0.2.24</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>0.2.
|
|
16
|
+
<string>0.2.24</string>
|
|
17
17
|
<key>MinimumOSVersion</key>
|
|
18
18
|
<string>16.0</string>
|
|
19
19
|
</dict>
|