* Don't remove the effect, it's not needed here (and wrong)
* Differentiate between hovering target and card
* Group related code closer
* Hide on scroll away
* Use named arguments
* Inline defaults
* Track reason we're showing
* Only hide on scroll away while hovering target
* automatically add a link card for urls in the composer
simplify was paste check
use a set
simplify the cross platform reuse
web implementation
remove log
pasting in the middle of a block of text
proper regex
dont re-add immediately after paste and remove
don't use `byteIndex`
lfg
automatically add link card
* `mayBePaste`
* remove accidentally pasted url from comment
* Handle leftnav overflow with longer languages' copy
* Update the language dropdown to set ALL language prefs
* Add hackfix to language cachebusting on PWI
* Reset feeds on language change
* skeleton of embedr service, based on bskyweb
* embedr container setup
* builds on this branch
* actual routes
* fix embedr go:embed
* tweak embedr dockerfile
* progress on embedr
* fix path params
* tweaks to build process
* try to get embedr dockerfile to install embed deps
* build this branch
* updates to match sam's output HTML
* try to unbreak embedr dockerfile
* small embedr tweak
* docker hack
* get embed.js copied over to embedr
* don't x-frame-options for embed.bsky.app
* bskyembed: remove a console.log
* use html/template for golang snippet generation
* simplify embedr API fetches
* missing file
* Rm console.log fully
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* fix: make app language picker tap region larger
* fix: add right padding on drawer signup card
noticeable on portuguese language
* fix: mimic hitSlop
* Updated Japanese translation and removed obsolete messages
* Forgot to add trailing question mark
* Unified translation of "birthday"/"birthdate"/"birth date", undo unnecessary entries to reduce the difference
* Translated new strings
* Unified translation of 'copyright violation'
* Sync with main latest, unified translation of 'people'
* fade in and out the card
one more fix
dont leave an invisible card behind
okay just about there
move styles
glitch
clear hide timeouts on card enter
about there
* Tweak timings
* Rewrite with explicit states
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* get outer location and pass in to the iframe
* enable post.html in dev
* only add ref_url if starts with http
* Revert "enable post.html in dev"
This reverts commit 6f224c6e2c4a016f7ea17ff998c4b4e56b9a4f9b.
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Don't reuse DOM when changing embed
* add skeleton loading state 💀
* autoselect text
---------
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* move info to its own file
* Revert "move info to its own file"
This reverts commit 1d45a2f4034f50cbe9cb25070f954042cdf9127a.
* better way
* all cases
* pass labelInfo to ImageEmbed
* blur avatars
* add back as string
* one more as string
* external embed
* add back as string again
* add embed option to post dropdown menu
* put embed post button behind a gate
* increase line height in dialog
* add gate to gate name union
* hide embed button if PWI optout
* Ungate embed button
* Escape HTML, align implementations
* Make dialog conditionally rendered
* Memoize EmbedDialog
* Render dialog lazily
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* add build output to web build
* simplify post-build step by copying everything at once
* make script that converts placeholder -> iframe
* dynamically resize iframe based on inner content
Requires the iframe content to `postMessage` its height back up to the parent
* add lang to embed
* svg explicit height -> viewBox
* add build output to web build
* simplify post-build step by copying everything at once
* attempt to fix go embed issue
* rm changes to bskyweb
* remove another bskyweb change
* embed landing page
* Drop xl breakpoint, too far down
* Remove pointer enter behavior
* Avoid button width jump
* Escape HTML
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* add bskyembed vite app
* create build script (temp until embedr is ready)
* add build output to web build
* simplify post-build step by copying everything at once
* add simple post viewer
* add butterfly logo
* add vite plugin legacy
* proper error screen
* add image embed
* add url embed
* record embed + embedwithmedia
* add list+feed embeds
* add labeller embed (just to be safe)
* fix curatelist and modlist being the wrong way around
* Add PWI opt-out
* add favicon
* improve wording of PWI
* remove padding I used for screenshots
* add disabled state to embed
* improve PWI styles by adding an icon
* remove unused prop
* rm open proxy
* [Embeds] Add CTA and add general polish - input needed! (#3454)
* add CTA, colourful icons, and bigger logo
* make hover effect smaller + add to cta
* more responsive + preserve whitespace
* add trailing newsline to deploy script
* add repost indicator
* Make butterfly link to content
* More consistent error text wording
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Right now both light mode and dark mode get light navigation bar, and
looks jarring in the dark modes.
This commit applies a more appropriate color before the UI thread
runs (in app config), as well as applying the current theme background
after the UI shell is mounted.
This should fix#3332.
Co-authored-by: Hailey <me@haileyok.com>