@shortkitsdk/react-native 0.2.14 → 0.2.15

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.
Files changed (74) hide show
  1. package/android/src/main/java/com/shortkit/reactnative/ShortKitBridge.kt +34 -2
  2. package/android/src/main/java/com/shortkit/reactnative/ShortKitModule.kt +5 -5
  3. package/ios/ReactCarouselOverlayHost.swift +30 -18
  4. package/ios/ReactOverlayHost.swift +65 -67
  5. package/ios/ShortKitBridge.swift +80 -20
  6. package/ios/ShortKitModule.mm +13 -4
  7. package/ios/ShortKitSDK.xcframework/Info.plist +2 -1
  8. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +1 -0
  9. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +5 -1
  10. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +672 -97
  11. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -5
  12. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +15 -5
  14. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
  15. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +11 -11
  16. package/ios/ShortKitSDK.xcframework/{ios-arm64-simulator → ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +1 -0
  17. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Info.plist +5 -1
  18. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2488 -281
  19. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +65 -5
  20. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  21. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +65 -5
  22. package/ios/{ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json} +8233 -3592
  23. package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +925 -0
  24. package/ios/{ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc} +0 -0
  25. package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +925 -0
  26. package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  27. package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +212 -0
  28. package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +1838 -206
  29. package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +51 -1
  30. package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +51 -1
  32. package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
  33. package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +168 -0
  34. package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +6 -6
  35. package/ios/ShortKitSDK.xcframework.dev-backup/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  36. package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +2 -2
  37. package/package.json +1 -1
  38. package/src/ShortKitContext.ts +11 -0
  39. package/src/ShortKitFeed.tsx +20 -9
  40. package/src/ShortKitOverlaySurface.tsx +20 -6
  41. package/src/ShortKitProvider.tsx +4 -2
  42. package/src/ShortKitWidget.tsx +3 -3
  43. package/src/index.ts +1 -0
  44. package/src/specs/NativeShortKitModule.ts +5 -2
  45. package/src/types.ts +9 -2
  46. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Info.plist +0 -16
  47. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/module.modulemap +0 -4
  48. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  49. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -418
  50. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +0 -28917
  51. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -824
  52. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  53. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -824
  54. package/ios/ShortKitSDK.xcframework.bak/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
  55. package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -418
  56. package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -824
  57. package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -824
  58. package/ios/ShortKitSDK.xcframework.bak/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  59. package/ios/ShortKitSDK.xcframework.bak2/Info.plist +0 -43
  60. package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/Info.plist +0 -16
  61. package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/Modules/module.modulemap +0 -4
  62. package/ios/ShortKitSDK.xcframework.bak2/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
  63. package/ios/ShortKitSDK.xcframework.bak2/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  64. package/ios/{ShortKitSDK.xcframework.bak2/ios-arm64-simulator → ShortKitSDK.xcframework/ios-arm64_x86_64-simulator}/ShortKitSDK.framework/Modules/module.modulemap +0 -0
  65. package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/Info.plist +4 -4
  66. /package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -0
  67. /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Info.plist +0 -0
  68. /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64/ShortKitSDK.framework/Modules/module.modulemap +0 -0
  69. /package/ios/{ShortKitSDK.xcframework.bak2 → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +0 -0
  70. /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Info.plist +0 -0
  71. /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -0
  72. /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  73. /package/ios/{ShortKitSDK.xcframework → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -0
  74. /package/ios/{ShortKitSDK.xcframework.bak → ShortKitSDK.xcframework.dev-backup}/ios-arm64-simulator/ShortKitSDK.framework/Modules/module.modulemap +0 -0
@@ -210,9 +210,10 @@ public struct FeedConfig : Swift.Codable {
210
210
  public var autoplay: Swift.Bool
211
211
  public var feedSource: ShortKitSDK.FeedSource
212
212
  public var coldStartEnabled: Swift.Bool
213
+ public var pullToRefreshEnabled: Swift.Bool
213
214
  public var filter: ShortKitSDK.FeedFilter?
214
215
  public var preload: ShortKitSDK.FeedPreload?
215
- public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
216
+ public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
216
217
  public func encode(to encoder: any Swift.Encoder) throws
217
218
  public init(from decoder: any Swift.Decoder) throws
218
219
  }
@@ -275,12 +276,12 @@ extension ShortKitSDK.AdOverlayMode : Swift.Codable {
275
276
  public func encode(to encoder: any Swift.Encoder) throws
276
277
  }
277
278
  public protocol ShortKitDelegate : AnyObject {
278
- func shortKitDidRequestRefresh(_ shortKit: ShortKitSDK.ShortKit)
279
+ func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
279
280
  func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
280
281
  func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
281
282
  }
282
283
  extension ShortKitSDK.ShortKitDelegate {
283
- public func shortKitDidRequestRefresh(_ shortKit: ShortKitSDK.ShortKit)
284
+ public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
284
285
  public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
285
286
  public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
286
287
  }
@@ -327,6 +328,7 @@ extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDelegat
327
328
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
328
329
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
329
330
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
331
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScrollToTop(_ scrollView: UIKit.UIScrollView)
330
332
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
331
333
  }
332
334
  extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDataSourcePrefetching {
@@ -340,6 +342,12 @@ extension ShortKitSDK.ShortKitFeedViewController : ShortKitSDK.ShortKitAdDelegat
340
342
  @_Concurrency.MainActor @preconcurrency public func adDidFail(_ ad: ShortKitSDK.PreparedAd, error: ShortKitSDK.AdError)
341
343
  @_Concurrency.MainActor @preconcurrency public func adDidReceiveClick(_ ad: ShortKitSDK.PreparedAd)
342
344
  }
345
+ public enum ShortKitRefreshState : Swift.Sendable {
346
+ case idle
347
+ case pulling(progress: CoreFoundation.CGFloat)
348
+ case triggered
349
+ case refreshing
350
+ }
343
351
  public enum AdError : Swift.Error, Swift.Equatable {
344
352
  case noFill
345
353
  case timeout
@@ -840,7 +848,8 @@ public struct PlayerConfig {
840
848
  public var loop: Swift.Bool
841
849
  public var muteOnStart: Swift.Bool
842
850
  public var videoOverlay: ShortKitSDK.VideoOverlayMode
843
- public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none)
851
+ public var feedConfig: ShortKitSDK.FeedConfig
852
+ public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
844
853
  }
845
854
  @_Concurrency.MainActor @preconcurrency public struct ShortKitPlayerView : SwiftUI.UIViewControllerRepresentable {
846
855
  @_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.PlayerConfig = PlayerConfig())
@@ -893,7 +902,8 @@ public struct WidgetConfig {
893
902
  public var rotationInterval: Foundation.TimeInterval
894
903
  public var clickAction: ShortKitSDK.PlayerClickAction
895
904
  public var cardOverlay: ShortKitSDK.VideoOverlayMode
896
- public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none)
905
+ public var feedConfig: ShortKitSDK.FeedConfig
906
+ public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
897
907
  }
898
908
  extension ShortKitSDK.AdQuartile : Swift.Equatable {}
899
909
  extension ShortKitSDK.AdQuartile : Swift.Hashable {}
@@ -210,9 +210,10 @@ public struct FeedConfig : Swift.Codable {
210
210
  public var autoplay: Swift.Bool
211
211
  public var feedSource: ShortKitSDK.FeedSource
212
212
  public var coldStartEnabled: Swift.Bool
213
+ public var pullToRefreshEnabled: Swift.Bool
213
214
  public var filter: ShortKitSDK.FeedFilter?
214
215
  public var preload: ShortKitSDK.FeedPreload?
215
- public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
216
+ public init(feedHeight: ShortKitSDK.FeedHeight = .fullscreen, scrollAxis: ShortKitSDK.ScrollAxis = .vertical, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, carouselOverlay: ShortKitSDK.CarouselOverlayMode = .none, videoCarouselOverlay: ShortKitSDK.VideoCarouselOverlayMode = .none, surveyOverlay: ShortKitSDK.SurveyOverlayMode = .none, adOverlay: ShortKitSDK.AdOverlayMode = .none, muteOnStart: Swift.Bool = true, autoplay: Swift.Bool = true, feedSource: ShortKitSDK.FeedSource = .algorithmic, coldStartEnabled: Swift.Bool = false, pullToRefreshEnabled: Swift.Bool = true, filter: ShortKitSDK.FeedFilter? = nil, preload: ShortKitSDK.FeedPreload? = nil)
216
217
  public func encode(to encoder: any Swift.Encoder) throws
217
218
  public init(from decoder: any Swift.Decoder) throws
218
219
  }
@@ -275,12 +276,12 @@ extension ShortKitSDK.AdOverlayMode : Swift.Codable {
275
276
  public func encode(to encoder: any Swift.Encoder) throws
276
277
  }
277
278
  public protocol ShortKitDelegate : AnyObject {
278
- func shortKitDidRequestRefresh(_ shortKit: ShortKitSDK.ShortKit)
279
+ func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
279
280
  func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
280
281
  func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
281
282
  }
282
283
  extension ShortKitSDK.ShortKitDelegate {
283
- public func shortKitDidRequestRefresh(_ shortKit: ShortKitSDK.ShortKit)
284
+ public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didChangeRefreshState state: ShortKitSDK.ShortKitRefreshState)
284
285
  public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didTapContent contentId: Swift.String, at index: Swift.Int)
285
286
  public func shortKit(_ shortKit: ShortKitSDK.ShortKit, didFetchContentItems items: [ShortKitSDK.ContentItem])
286
287
  }
@@ -327,6 +328,7 @@ extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDelegat
327
328
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
328
329
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
329
330
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
331
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScrollToTop(_ scrollView: UIKit.UIScrollView)
330
332
  @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
331
333
  }
332
334
  extension ShortKitSDK.ShortKitFeedViewController : UIKit.UICollectionViewDataSourcePrefetching {
@@ -340,6 +342,12 @@ extension ShortKitSDK.ShortKitFeedViewController : ShortKitSDK.ShortKitAdDelegat
340
342
  @_Concurrency.MainActor @preconcurrency public func adDidFail(_ ad: ShortKitSDK.PreparedAd, error: ShortKitSDK.AdError)
341
343
  @_Concurrency.MainActor @preconcurrency public func adDidReceiveClick(_ ad: ShortKitSDK.PreparedAd)
342
344
  }
345
+ public enum ShortKitRefreshState : Swift.Sendable {
346
+ case idle
347
+ case pulling(progress: CoreFoundation.CGFloat)
348
+ case triggered
349
+ case refreshing
350
+ }
343
351
  public enum AdError : Swift.Error, Swift.Equatable {
344
352
  case noFill
345
353
  case timeout
@@ -840,7 +848,8 @@ public struct PlayerConfig {
840
848
  public var loop: Swift.Bool
841
849
  public var muteOnStart: Swift.Bool
842
850
  public var videoOverlay: ShortKitSDK.VideoOverlayMode
843
- public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none)
851
+ public var feedConfig: ShortKitSDK.FeedConfig
852
+ public init(cornerRadius: CoreFoundation.CGFloat = 12, clickAction: ShortKitSDK.PlayerClickAction = .feed, autoplay: Swift.Bool = true, loop: Swift.Bool = true, muteOnStart: Swift.Bool = true, videoOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
844
853
  }
845
854
  @_Concurrency.MainActor @preconcurrency public struct ShortKitPlayerView : SwiftUI.UIViewControllerRepresentable {
846
855
  @_Concurrency.MainActor @preconcurrency public init(shortKit: ShortKitSDK.ShortKit, config: ShortKitSDK.PlayerConfig = PlayerConfig())
@@ -893,7 +902,8 @@ public struct WidgetConfig {
893
902
  public var rotationInterval: Foundation.TimeInterval
894
903
  public var clickAction: ShortKitSDK.PlayerClickAction
895
904
  public var cardOverlay: ShortKitSDK.VideoOverlayMode
896
- public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none)
905
+ public var feedConfig: ShortKitSDK.FeedConfig
906
+ public init(cardCount: Swift.Int = 3, cardSpacing: CoreFoundation.CGFloat = 8, cornerRadius: CoreFoundation.CGFloat = 12, autoplay: Swift.Bool = true, muteOnStart: Swift.Bool = true, loop: Swift.Bool = true, rotationInterval: Foundation.TimeInterval = 10, clickAction: ShortKitSDK.PlayerClickAction = .feed, cardOverlay: ShortKitSDK.VideoOverlayMode = .none, feedConfig: ShortKitSDK.FeedConfig = FeedConfig())
897
907
  }
898
908
  extension ShortKitSDK.AdQuartile : Swift.Equatable {}
899
909
  extension ShortKitSDK.AdQuartile : Swift.Hashable {}
@@ -6,27 +6,27 @@
6
6
  <dict>
7
7
  <key>Headers/ShortKitSDK-Swift.h</key>
8
8
  <data>
9
- 3bbpoSImjQOVLQbSfh6sAEp9NqY=
9
+ sPBFo6JMKGiSEYfBXQhwdOb2UzQ=
10
10
  </data>
11
11
  <key>Info.plist</key>
12
12
  <data>
13
- Ley678FJu8DKkhiCwrDCSa/fREc=
13
+ H6W9wSQeXsl3VaugOv7xV0jTyoI=
14
14
  </data>
15
15
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
16
16
  <data>
17
- oLYAaT0wh75tK9p8jfDAlvgS+aw=
17
+ YYqFINlTEgYgeMVBETLhWT7A3yo=
18
18
  </data>
19
19
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
20
20
  <data>
21
- IZNdocAE7nxibe9ciOMtS5/duMY=
21
+ uUKC+NjbgWf5a6aDw/N6/Dt9Ebs=
22
22
  </data>
23
23
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
24
24
  <data>
25
- lyMHdu2nhDSI/iYtndpddOI0LOI=
25
+ JKXiL4d/fVvJOKp7tTNEID2myLE=
26
26
  </data>
27
27
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
28
28
  <data>
29
- IZNdocAE7nxibe9ciOMtS5/duMY=
29
+ uUKC+NjbgWf5a6aDw/N6/Dt9Ebs=
30
30
  </data>
31
31
  <key>Modules/module.modulemap</key>
32
32
  <data>
@@ -39,35 +39,35 @@
39
39
  <dict>
40
40
  <key>hash2</key>
41
41
  <data>
42
- V+jQ2eNebJRtNpq31u6WQqjInnpmCU26LytMq5YTXJk=
42
+ TRmw/MDu/LhQLmbWGfeLyMOoRfyBwA9sRbyyn0p3Q3c=
43
43
  </data>
44
44
  </dict>
45
45
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
46
46
  <dict>
47
47
  <key>hash2</key>
48
48
  <data>
49
- I7r2mLLBdaipFikHq2yeqRsHg5gDYEG5wVFF4xWtayM=
49
+ FQCbqY2O3A384LEZyqkGKF9gcRMamvNt/q/MNtu5V4U=
50
50
  </data>
51
51
  </dict>
52
52
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
53
53
  <dict>
54
54
  <key>hash2</key>
55
55
  <data>
56
- ZrJFDZDIX1r57QKRkG6lKzC1vGtLHmFg0YZQUIH9Fqg=
56
+ lbmpfDs1PFsVC8eCPY39+KHQnJ8j3rmmrawo9TCrNHc=
57
57
  </data>
58
58
  </dict>
59
59
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
60
60
  <dict>
61
61
  <key>hash2</key>
62
62
  <data>
63
- 3BSBNIbUXJpeNzyAISR71ve7QrCu4RSatXFFNTeMhB4=
63
+ DwgcCoxviNZ+lzCyxoAl1xBdY0G1FXpPbvmuISVRSJ4=
64
64
  </data>
65
65
  </dict>
66
66
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
67
67
  <dict>
68
68
  <key>hash2</key>
69
69
  <data>
70
- ZrJFDZDIX1r57QKRkG6lKzC1vGtLHmFg0YZQUIH9Fqg=
70
+ lbmpfDs1PFsVC8eCPY39+KHQnJ8j3rmmrawo9TCrNHc=
71
71
  </data>
72
72
  </dict>
73
73
  <key>Modules/module.modulemap</key>
@@ -360,6 +360,7 @@ SWIFT_CLASS("_TtC11ShortKitSDK26ShortKitFeedViewController")
360
360
  - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
361
361
  - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
362
362
  - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
363
+ - (void)scrollViewDidScrollToTop:(UIScrollView * _Nonnull)scrollView;
363
364
  - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
364
365
  @end
365
366
 
@@ -11,6 +11,10 @@
11
11
  <key>CFBundlePackageType</key>
12
12
  <string>FMWK</string>
13
13
  <key>CFBundleVersion</key>
14
- <string>1</string>
14
+ <string>0.2.15</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>0.2.15</string>
17
+ <key>MinimumOSVersion</key>
18
+ <string>16.0</string>
15
19
  </dict>
16
20
  </plist>