-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Youtube Integration #34
base: main
Are you sure you want to change the base?
Feat: Youtube Integration #34
Conversation
wow! thanks for PR, this looks amazing. gonna review it shortly |
packages/blinks/src/index.css
Outdated
@@ -6,6 +6,11 @@ | |||
.blink { | |||
container-type: inline-size; | |||
} | |||
/* Restricting the Width only for Youtube - can be done either ways */ | |||
/* Can also change depending on the platform */ | |||
.blink.youtube-dark, .blink.youtube-light { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend controlling the width through youtube.tsx
, where the injected Blink component is rendered with a max-w wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meaning: createYouTubeAction
's div
with stopPropagation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, Please check the below Commit : 6e02c65
@fsher @zhelezkov any update on this? |
This PR adds the functionality for rendering blinks and actions from youtube.
Demo here : https://youtu.be/xSMyBGzGGtc
The Files changed include :
Youtube.tsx - The logic of detecting the comments section, validating if it's a blink url and rendering the Blink happens here.
Package.json - exports from the paths of the build folder (dist)
index.css - added the styles for
StylePreset
- youtube-light and youtube-darktypes.ts, presets.ts, postcss.config.js - added the StylePresets
Minute changes in :
useActionSolanaWalletAdapter - Fixes the Buffer error on the base64 conversion (sometimes)
blinks/src/index.ts - Added missing import