@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.
- package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
- package/lib/commonjs/components/DeckSwiper/DeckSwiperCard.js +1 -1
- package/lib/commonjs/components/Layout/Spacer.js +1 -1
- package/lib/commonjs/components/LottieAnimation.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +1 -1
- package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
- package/lib/commonjs/components/MediaPlayer/MediaPlaybackWrapper.js +1 -1
- package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -1
- package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
- package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
- package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
- package/lib/commonjs/components/SVG.js +1 -1
- package/lib/commonjs/components/SVG.native.js +1 -1
- package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
- package/lib/commonjs/components/Swiper/Swiper.js +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js +1 -1
- package/lib/commonjs/components/Table/TableCell.js +1 -1
- package/lib/commonjs/components/Table/TableRow.js +1 -1
- package/lib/commonjs/components/YoutubePlayer/YoutubePlayer.js +1 -1
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +1 -0
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js +3 -2
- package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js.map +1 -1
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +2 -2
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
- package/lib/typescript/src/components/Layout/Spacer.d.ts +2 -2
- package/lib/typescript/src/components/Layout/Spacer.js +2 -2
- package/lib/typescript/src/components/Layout/Spacer.js.map +1 -1
- package/lib/typescript/src/components/LottieAnimation.js +2 -2
- package/lib/typescript/src/components/LottieAnimation.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +1 -0
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +4 -2
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.d.ts +3 -1
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +69 -54
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.d.ts +3 -2
- package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js +19 -21
- package/lib/typescript/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +5 -4
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +3 -26
- package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.d.ts +14 -4
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +129 -62
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
- package/lib/typescript/src/components/Picker/PickerCommon.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -1
- package/lib/typescript/src/components/Picker/PickerInputContainer.js +4 -2
- package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +4 -2
- package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +4 -2
- package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
- package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +1 -0
- package/lib/typescript/src/components/SVG.d.ts +1 -0
- package/lib/typescript/src/components/SVG.js +4 -2
- package/lib/typescript/src/components/SVG.js.map +1 -1
- package/lib/typescript/src/components/SVG.native.d.ts +1 -0
- package/lib/typescript/src/components/SVG.native.js +4 -2
- package/lib/typescript/src/components/SVG.native.js.map +1 -1
- package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +2 -2
- package/lib/typescript/src/components/SectionList/SectionHeader.js +1 -1
- package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +1 -0
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +4 -2
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -2
- package/lib/typescript/src/components/Swiper/Swiper.js +2 -2
- package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
- package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +3 -3
- package/lib/typescript/src/components/Swiper/SwiperItem.js +2 -2
- package/lib/typescript/src/components/Swiper/SwiperItem.js.map +1 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts +1 -0
- package/lib/typescript/src/components/Table/TableCell.js +4 -2
- package/lib/typescript/src/components/Table/TableCell.js.map +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +1 -0
- package/lib/typescript/src/components/Table/TableRow.js +4 -2
- package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js +2 -2
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayer.js.map +1 -1
- package/lib/typescript/src/components/YoutubePlayer/YoutubePlayerProps.d.ts +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/components/DeckSwiper/DeckSwiper.tsx +5 -1
- package/src/components/DeckSwiper/DeckSwiperCard.tsx +11 -3
- package/src/components/Layout/Spacer.tsx +4 -2
- package/src/components/LottieAnimation.tsx +1 -2
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +1 -0
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +3 -0
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +84 -72
- package/src/components/MediaPlayer/MediaPlaybackWrapper.tsx +21 -24
- package/src/components/MediaPlayer/MediaPlayerCommon.ts +8 -34
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +220 -86
- package/src/components/Picker/PickerCommon.ts +1 -0
- package/src/components/Picker/PickerInputContainer.tsx +7 -1
- package/src/components/Progress/CircularProgress/CircularProgress.tsx +3 -0
- package/src/components/Progress/LinearProgress/LinearProgress.tsx +3 -0
- package/src/components/Progress/ProgressCommon.ts +1 -0
- package/src/components/SVG.native.tsx +7 -1
- package/src/components/SVG.tsx +10 -1
- package/src/components/SectionList/SectionHeader.tsx +8 -3
- package/src/components/SwipeableItem/SwipeableItem.tsx +4 -0
- package/src/components/Swiper/Swiper.tsx +4 -3
- package/src/components/Swiper/SwiperItem.tsx +12 -4
- package/src/components/Table/TableCell.tsx +4 -0
- package/src/components/Table/TableRow.tsx +4 -0
- package/src/components/YoutubePlayer/YoutubePlayer.tsx +5 -1
- 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
|
|
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}
|