Skip to content
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

ToC block: re-enable + use static markup and only support core Heading and Page Break blocks #29739

Merged
merged 25 commits into from
May 6, 2022
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 Jun 27, 2021
afadefa
Remove unused index prop from NestedHeadingData.
ZebulanStanphill Jun 27, 2021
2796c70
Add unit test fixtures.
ZebulanStanphill Oct 15, 2021
f564667
Update test.
ZebulanStanphill Nov 2, 2021
4b7bbc6
Use some TypeScript.
ZebulanStanphill Nov 11, 2021
0ff623d
Disable permalink support when core/editor store is unavailable.
ZebulanStanphill Mar 2, 2022
8ba556a
Add Zebulan as code owner for Table of Contents.
ZebulanStanphill Mar 2, 2022
dc2730a
Switch from ul to ol for list element.
ZebulanStanphill Mar 14, 2022
8f7db2d
Optimize re-renders caused by shallow comparisons of useSelect return…
ZebulanStanphill Mar 16, 2022
4282578
Optimize calculating which page the block is on.
ZebulanStanphill Mar 21, 2022
3080087
Enable Heading anchor auto-generation when a Table of Contents is in …
ZebulanStanphill Mar 22, 2022
803eddc
Add List -> Table of Contents block transform.
ZebulanStanphill Mar 30, 2022
6a724bf
Prevent links from being clicked in the editor since they don't work …
ZebulanStanphill Mar 30, 2022
1eb8d22
Strip HTML tags from listed headings.
ZebulanStanphill Mar 31, 2022
e7e866a
Prefer <Disabled /> over pointer-events rule
mcsf Mar 31, 2022
6221796
Make comment formatting consistent.
ZebulanStanphill Mar 31, 2022
38bb612
Simplify TypeScript config.
ZebulanStanphill Mar 31, 2022
a8a1cbd
Simplify condition using optional chaining in utils.ts.
ZebulanStanphill Mar 31, 2022
6d9c653
Fix page index calculation breaking when ToC or Page Break is nested.
ZebulanStanphill Mar 31, 2022
21adec5
Make comment about editor store dependency consistent with other plac…
ZebulanStanphill Apr 1, 2022
fa6cc7d
Simplify logic thanks to changes made in #39985.
ZebulanStanphill Apr 4, 2022
2ed8a4a
Optimize logic when onlyIncludeCurrentPage is false.
ZebulanStanphill Apr 8, 2022
c439c5b
Revise JSDoc for permalink const.
ZebulanStanphill Apr 8, 2022
425109f
Update inspector panel title as per #40275.
ZebulanStanphill Apr 14, 2022
327338f
Make block experimental.
ZebulanStanphill Apr 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make block experimental.
  • Loading branch information
ZebulanStanphill committed May 5, 2022
commit 327338f724da6c7bb2e3884904a7d36baf94f394
2 changes: 1 addition & 1 deletion packages/block-library/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export const __experimentalGetCoreBlocks = () => [
socialLinks,
spacer,
table,
tableOfContents,
tagCloud,
textColumns,
verse,
Expand Down Expand Up @@ -270,6 +269,7 @@ export const __experimentalRegisterExperimentalCoreBlocks = process.env
[
// Experimental blocks.
postAuthorName,
tableOfContents,
...( window.__experimentalEnableListBlockV2
? [ listItem ]
: [] ),
Expand Down