-
-
Notifications
You must be signed in to change notification settings - Fork 560
feat: Default image blocks #331
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
Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
d218e3d
Made formatting toolbar buttons not show if they are not applicable
matthewlipski 3f6210f
Made formatting toolbar placement change based on text alignment
matthewlipski 132e7ce
Improved typing for blocks without inline content and made them selec…
matthewlipski df5c790
Updated default blocks with new typing
matthewlipski b137f43
Added image block (React implementation)
matthewlipski 251c888
Added image upload and caption formatting toolbar buttons
matthewlipski 70c7cb9
Added image slash menu item
matthewlipski 5136c1f
Temporarily updated `App.tsx` to show image block
matthewlipski 8cbbc50
Added placeholder `alt` attribute to image
matthewlipski 99f7738
Added `destroy` function so vanilla custom blocks can clean ip betwee…
matthewlipski dc3b00c
Added vanilla image block
matthewlipski 6d0e8b0
Added Uppy deps
matthewlipski 9766343
Updated `ReplaceImageButton.tsx`
matthewlipski 00fac4e
Small fix in `BlockColorsButton.tsx`
matthewlipski e514d61
Typing fix for hyperlink toolbar components
matthewlipski 3812d3a
Created reusable components for link & caption components
matthewlipski a601989
Fixed import issue
matthewlipski 9d729ab
Made image selection border also include caption
matthewlipski 69a3e49
Added comment
matthewlipski f89c036
Added new hooks to clean up code
matthewlipski af8fc7c
Updated exports
matthewlipski b4904cb
Changed image replacing from Uppy to custom UI and removed `replacing…
matthewlipski de2fb45
Fixed z-index for UI elements
matthewlipski 6bb9122
Changed image `width` prop to be in px
matthewlipski 68c1275
Removed Uppy dependency
matthewlipski 229c27f
Reverted `App.tsx`
matthewlipski d15673b
Removed React image block implementation
matthewlipski 3ea172a
Fixed exports
matthewlipski 4341c9f
Fixed image block imports
matthewlipski f637a9e
Small fixes to tests
matthewlipski f95f575
Changed image replacement to use image specific toolbar
matthewlipski 59122ac
Made image toolbar open immediately after inserting an image using th…
matthewlipski 8069460
Fixed replace image button having persistent `open` state
matthewlipski acf7172
`ImageToolbarPositioner.tsx` cleanup
matthewlipski f768c8b
Made image toolbar design more similar to Notion
matthewlipski 38b60e6
Cleaned up block typing
matthewlipski d440c49
Implemented PR feedback
matthewlipski e1807db
Removed redundant z-index style from `ColorStyleButton`
matthewlipski 0b2ace1
Made props able to be any primitive type and cleaned up test snapshots
matthewlipski 4684547
Extracted image styles to CSS
matthewlipski 3621393
Refactored `DefaultImageToolbar`
matthewlipski 2d0789d
Added editor option for consumers to handle image uploads
matthewlipski 7dd0717
Small `FormattingToolbarPositioner` refactor
matthewlipski 42fe210
Fixed image slash menu item bug
matthewlipski 9747206
Changed image toolbar to use tabs and fixed dark theme
matthewlipski 585e4f4
Renamed image `src` prop to `url`
matthewlipski 0566d49
Changed how image width is constrained to editor width
matthewlipski 17bd6de
Updated default color names
matthewlipski 8633697
Added loading overlay to the image toolbar while an image is being up…
matthewlipski 82ba8a9
Fixed heading in block tyupe dropdown
matthewlipski 35f7ded
small fixes (#346)
YousefED bf93d0c
Merge branch 'main' into image-block-new
matthewlipski 0cebd9d
Small hook fix
matthewlipski cdb077b
Added image docs
matthewlipski fd1a6ef
Updated unit test snapshots
matthewlipski 26e9dae
Added image e2e tests
matthewlipski c7b180e
Added error handling for image uploads
matthewlipski 28ac8df
Renamed example image upload handler
matthewlipski eb54ac2
Added example image upload handler to docs home page
matthewlipski 18e5b76
Small fixes
matthewlipski 855d03f
Added test snapshots/screenshots
matthewlipski fecfcac
Improved e2e test reliability
matthewlipski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.