react-native-firework-sdk 2.11.0 → 2.11.2

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 (43) hide show
  1. package/android/gradle.properties +1 -1
  2. package/android/src/main/java/com/fireworksdk/bridge/components/storyblock/StoryBlockFragment.kt +3 -1
  3. package/android/src/main/java/com/fireworksdk/bridge/models/FWCountdownTimerConfigurationModel.kt +8 -0
  4. package/android/src/main/java/com/fireworksdk/bridge/models/FWCountdownTimerConfigurationModelDeserializer.kt +22 -0
  5. package/android/src/main/java/com/fireworksdk/bridge/models/FWCountdownTimerConfigurationModelSerializer.kt +18 -0
  6. package/android/src/main/java/com/fireworksdk/bridge/models/FWFontInfoModel.kt +2 -2
  7. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModel.kt +1 -0
  8. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelDeserializer.kt +3 -0
  9. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelSerializer.kt +2 -0
  10. package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWAppearanceMode.kt +18 -0
  11. package/ios/Components/CountdownTimerConfiguration.swift +43 -0
  12. package/ios/Components/StoryBlock.swift +6 -0
  13. package/ios/Components/StoryBlockConfiguration.swift +1 -0
  14. package/ios/Components/VideoFeed.swift +5 -0
  15. package/ios/Components/VideoPlayerConfiguration.swift +1 -0
  16. package/ios/FireworkSdk.xcodeproj/project.pbxproj +12 -0
  17. package/lib/commonjs/components/StoryBlock.js +2 -0
  18. package/lib/commonjs/components/StoryBlock.js.map +1 -1
  19. package/lib/commonjs/components/VideoFeed.js +2 -0
  20. package/lib/commonjs/components/VideoFeed.js.map +1 -1
  21. package/lib/commonjs/index.js +7 -7
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/models/CountdownTimerConfiguration.js +2 -0
  24. package/lib/commonjs/models/CountdownTimerConfiguration.js.map +1 -0
  25. package/lib/module/components/StoryBlock.js +2 -0
  26. package/lib/module/components/StoryBlock.js.map +1 -1
  27. package/lib/module/components/VideoFeed.js +2 -0
  28. package/lib/module/components/VideoFeed.js.map +1 -1
  29. package/lib/module/index.js +5 -5
  30. package/lib/module/index.js.map +1 -1
  31. package/lib/module/models/CountdownTimerConfiguration.js +2 -0
  32. package/lib/module/models/CountdownTimerConfiguration.js.map +1 -0
  33. package/lib/typescript/index.d.ts +15 -13
  34. package/lib/typescript/models/CountdownTimerConfiguration.d.ts +12 -0
  35. package/lib/typescript/models/StoryBlockConfiguration.d.ts +7 -0
  36. package/lib/typescript/models/VideoPlayerConfiguration.d.ts +6 -0
  37. package/package.json +1 -1
  38. package/src/components/StoryBlock.tsx +4 -0
  39. package/src/components/VideoFeed.tsx +4 -0
  40. package/src/index.ts +34 -30
  41. package/src/models/CountdownTimerConfiguration.ts +12 -0
  42. package/src/models/StoryBlockConfiguration.ts +7 -0
  43. package/src/models/VideoPlayerConfiguration.ts +6 -0
@@ -0,0 +1,12 @@
1
+ export type CountdownTimerAppearanceMode = 'light' | 'dark';
2
+ export default interface CountdownTimerConfiguration {
3
+ /**
4
+ * Specifies if the countdown timer should be hidden.
5
+ */
6
+ isHidden?: boolean;
7
+ /**
8
+ * Specifies the appearance of the countdown timer.
9
+ * Only supported on iOS.
10
+ */
11
+ appearance?: CountdownTimerAppearanceMode;
12
+ }
@@ -1,3 +1,4 @@
1
+ import type CountdownTimerConfiguration from './CountdownTimerConfiguration';
1
2
  import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
2
3
  import type VideoPlayerButtonConfiguration from './VideoPlayerButtonConfiguration';
3
4
  import type { VideoPlayerCTADelay } from './VideoPlayerCTADelay';
@@ -81,4 +82,10 @@ export interface StoryBlockConfiguration {
81
82
  * Only supported on iOS.
82
83
  */
83
84
  replayBadgeConfiguration?: ReplayBadgeConfiguration;
85
+ /**
86
+ * Specifies countdown timer configuration.
87
+ * On iOS, the property applies to full-screen and compact story block.
88
+ * On Android, the property only applies to compact story block.
89
+ */
90
+ countdownTimerConfiguration?: CountdownTimerConfiguration;
84
91
  }
@@ -6,6 +6,7 @@ import type { VideoPlayerCompleteAction } from './VideoPlayerCompleteAction';
6
6
  import type { VideoPlayerStyle } from './VideoPlayerStyle';
7
7
  import type { VideoPlayerLogoConfiguration } from './VideoPlayerLogoConfiguration';
8
8
  import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
9
+ import type CountdownTimerConfiguration from './CountdownTimerConfiguration';
9
10
 
10
11
  export default interface VideoPlayerConfiguration {
11
12
  /**
@@ -79,4 +80,9 @@ export default interface VideoPlayerConfiguration {
79
80
  * Only supported on iOS.
80
81
  */
81
82
  replayBadgeConfiguration?: ReplayBadgeConfiguration;
83
+ /**
84
+ * Specifies countdown timer configuration.
85
+ * Only supported on iOS.
86
+ */
87
+ countdownTimerConfiguration?: CountdownTimerConfiguration;
82
88
  }