@draftbit/core 54.0.4-6c949a.2 → 54.0.4-982952.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 (110) hide show
  1. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
  2. package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
  3. package/lib/commonjs/components/Layout/Spacer.js +1 -1
  4. package/lib/commonjs/components/LottieAnimation.js +1 -1
  5. package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
  6. package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  7. package/lib/commonjs/components/MediaPlayer/MediaPlaybackWrapper.js +1 -1
  8. package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -1
  9. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  10. package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
  11. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
  12. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
  13. package/lib/commonjs/components/SVG.js +1 -1
  14. package/lib/commonjs/components/SVG.native.js +1 -1
  15. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
  16. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  17. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  18. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -1
  19. package/lib/commonjs/components/Table/TableCell.js +1 -1
  20. package/lib/commonjs/components/Table/TableRow.js +1 -1
  21. package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -1
  22. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +1 -0
  23. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js +3 -2
  24. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js.map +1 -1
  25. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +2 -2
  26. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  27. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  28. package/lib/typescript/src/components/Layout/Spacer.d.ts +2 -2
  29. package/lib/typescript/src/components/Layout/Spacer.js +2 -2
  30. package/lib/typescript/src/components/Layout/Spacer.js.map +1 -1
  31. package/lib/typescript/src/components/LottieAnimation.js +2 -2
  32. package/lib/typescript/src/components/LottieAnimation.js.map +1 -1
  33. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +1 -0
  34. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +4 -2
  35. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  36. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +3 -1
  37. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +69 -54
  38. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
  39. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.d.ts +3 -2
  40. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js +19 -21
  41. package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +1 -1
  42. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +5 -4
  43. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +3 -26
  44. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
  45. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +14 -4
  46. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +129 -62
  47. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  48. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +1 -0
  49. package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -1
  50. package/lib/typescript/src/components/Picker/PickerInputContainer.js +4 -2
  51. package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
  52. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +4 -2
  53. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  54. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +4 -2
  55. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  56. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +1 -0
  57. package/lib/typescript/src/components/SVG.d.ts +1 -0
  58. package/lib/typescript/src/components/SVG.js +4 -2
  59. package/lib/typescript/src/components/SVG.js.map +1 -1
  60. package/lib/typescript/src/components/SVG.native.d.ts +1 -0
  61. package/lib/typescript/src/components/SVG.native.js +4 -2
  62. package/lib/typescript/src/components/SVG.native.js.map +1 -1
  63. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +2 -2
  64. package/lib/typescript/src/components/SectionList/SectionHeader.js +1 -1
  65. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
  66. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +1 -0
  67. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +4 -2
  68. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  69. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -2
  70. package/lib/typescript/src/components/Swiper/Swiper.js +2 -2
  71. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  72. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +3 -3
  73. package/lib/typescript/src/components/Swiper/SwiperItem.js +2 -2
  74. package/lib/typescript/src/components/Swiper/SwiperItem.js.map +1 -1
  75. package/lib/typescript/src/components/Table/TableCell.d.ts +1 -0
  76. package/lib/typescript/src/components/Table/TableCell.js +4 -2
  77. package/lib/typescript/src/components/Table/TableCell.js.map +1 -1
  78. package/lib/typescript/src/components/Table/TableRow.d.ts +1 -0
  79. package/lib/typescript/src/components/Table/TableRow.js +4 -2
  80. package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
  81. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js +2 -2
  82. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js.map +1 -1
  83. package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +1 -0
  84. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  85. package/package.json +5 -4
  86. package/src/components/DeckSwiper/DeckSwiper.tsx +5 -1
  87. package/src/components/DeckSwiper/DeckSwiperCard.tsx +11 -3
  88. package/src/components/Layout/Spacer.tsx +4 -2
  89. package/src/components/LottieAnimation.tsx +1 -2
  90. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +1 -0
  91. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +3 -0
  92. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +84 -72
  93. package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +21 -24
  94. package/src/components/MediaPlayer/MediaPlayerCommon.ts +8 -34
  95. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +220 -86
  96. package/src/components/Picker/PickerCommon.ts +1 -0
  97. package/src/components/Picker/PickerInputContainer.tsx +7 -1
  98. package/src/components/Progress/CircularProgress/CircularProgress.tsx +3 -0
  99. package/src/components/Progress/LinearProgress/LinearProgress.tsx +3 -0
  100. package/src/components/Progress/ProgressCommon.ts +1 -0
  101. package/src/components/SVG.native.tsx +7 -1
  102. package/src/components/SVG.tsx +10 -1
  103. package/src/components/SectionList/SectionHeader.tsx +8 -3
  104. package/src/components/SwipeableItem/SwipeableItem.tsx +4 -0
  105. package/src/components/Swiper/Swiper.tsx +4 -3
  106. package/src/components/Swiper/SwiperItem.tsx +12 -4
  107. package/src/components/Table/TableCell.tsx +4 -0
  108. package/src/components/Table/TableRow.tsx +4 -0
  109. package/src/components/YoutubePlayer/YoutubePlayer.tsx +5 -1
  110. package/src/components/YoutubePlayer/YoutubePlayerProps.ts +1 -0
@@ -9,6 +9,7 @@ const YoutubePlayer: React.FC<YoutubePlayerProps> = ({
9
9
  playlist,
10
10
  autoplay = false,
11
11
  style,
12
+ className,
12
13
  }) => {
13
14
  const { viewStyles } = extractStyles(style);
14
15
  const defaultVideoId = "nwMUpDESXrI";
@@ -24,7 +25,10 @@ const YoutubePlayer: React.FC<YoutubePlayerProps> = ({
24
25
  };
25
26
 
26
27
  return (
27
- <View style={viewStyles}>
28
+ <View
29
+ style={viewStyles} // @ts-ignore
30
+ className={className}
31
+ >
28
32
  <YouTube
29
33
  style={{ flex: 1 }}
30
34
  videoId={!videoId && !playlist ? defaultVideoId : videoId}
@@ -5,4 +5,5 @@ export interface YoutubePlayerProps {
5
5
  playlist?: string;
6
6
  autoplay?: boolean;
7
7
  style?: StyleProp<ViewStyle>;
8
+ className?: string;
8
9
  }