-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ToC block: re-enable + use static markup and only support core Heading and Page Break blocks #29739
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 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c53df83
ToC block: use static markup and only support core Heading and Page B…
ZebulanStanphill afadefa
Remove unused index prop from NestedHeadingData.
ZebulanStanphill 2796c70
Add unit test fixtures.
ZebulanStanphill f564667
Update test.
ZebulanStanphill 4b7bbc6
Use some TypeScript.
ZebulanStanphill 0ff623d
Disable permalink support when core/editor store is unavailable.
ZebulanStanphill 8ba556a
Add Zebulan as code owner for Table of Contents.
ZebulanStanphill dc2730a
Switch from ul to ol for list element.
ZebulanStanphill 8f7db2d
Optimize re-renders caused by shallow comparisons of useSelect return…
ZebulanStanphill 4282578
Optimize calculating which page the block is on.
ZebulanStanphill 3080087
Enable Heading anchor auto-generation when a Table of Contents is in …
ZebulanStanphill 803eddc
Add List -> Table of Contents block transform.
ZebulanStanphill 6a724bf
Prevent links from being clicked in the editor since they don't work …
ZebulanStanphill 1eb8d22
Strip HTML tags from listed headings.
ZebulanStanphill e7e866a
Prefer <Disabled /> over pointer-events rule
mcsf 6221796
Make comment formatting consistent.
ZebulanStanphill 38bb612
Simplify TypeScript config.
ZebulanStanphill a8a1cbd
Simplify condition using optional chaining in utils.ts.
ZebulanStanphill 6d9c653
Fix page index calculation breaking when ToC or Page Break is nested.
ZebulanStanphill 21adec5
Make comment about editor store dependency consistent with other plac…
ZebulanStanphill fa6cc7d
Simplify logic thanks to changes made in #39985.
ZebulanStanphill 2ed8a4a
Optimize logic when onlyIncludeCurrentPage is false.
ZebulanStanphill c439c5b
Revise JSDoc for permalink const.
ZebulanStanphill 425109f
Update inspector panel title as per #40275.
ZebulanStanphill 327338f
Make block experimental.
ZebulanStanphill 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
Simplify logic thanks to changes made in #39985.
- Loading branch information
commit fa6cc7da4674be480ca9a831a0bb76c25b93b627
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
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.