1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 19:01:54 +02:00

Experimental chunking optimisation and other performance improvements (#5871)

* Chunking optimization

* Fix comments

* Remove redundant `insertionsMinusRemovals` variable

* Fix typo

* Unblock Netlify builds

* Add placeholder

* Upgrade Playwright (fixes crash when debugging)

* Fix `autoFocus` not working

* Fix huge document test

* Fix the previous issue without changing `useSlateSelector`

* Retry `test:integration`

* Re-implement `useSlateWithV`

* Retry `test:integration`

* Update docs

* Update JS examples to match TS examples

* Upload Playwright's `test-results` directory in CI to access traces

* Change trace mode to `retain-on-first-failure`

* Fix: `Locator.fill(text)` is flaky on Editable

* Add changesets

* Increase minimum `slate-dom` version

* Update changeset

* Update 09-performance.md

* Deprecate the `useSlateWithV` hook

* Fix errors and improve clarity in 09-performance.md

* Minimum `slate-dom` version is now 0.116

* Update `yarn.lock`
This commit is contained in:
Joe Anderson
2025-06-07 00:42:11 +01:00
committed by GitHub
parent 583d28fe13
commit fb87646e86
65 changed files with 5234 additions and 876 deletions

View File

@@ -78,7 +78,7 @@ const Header = (props: React.HTMLAttributes<HTMLDivElement>) => (
display: flex;
height: 42px;
position: relative;
z-index: 1; /* To appear above the underlay */
z-index: 3; /* To appear above the underlay */
`}
/>
)
@@ -147,7 +147,7 @@ const TabList = ({
width: ${isVisible ? '200px' : '0'};
white-space: nowrap;
max-height: 70vh;
z-index: 1; /* To appear above the underlay */
z-index: 3; /* To appear above the underlay */
`}
/>
)
@@ -165,6 +165,7 @@ const TabListUnderlay = ({
top: 0;
position: fixed;
width: 100%;
z-index: 2;
`}
/>
)
@@ -248,7 +249,7 @@ const ExampleHeader = (props: React.HTMLAttributes<HTMLDivElement>) => (
display: flex;
height: 42px;
position: relative;
z-index: 1; /* To appear above the underlay */
z-index: 3; /* To appear above the underlay */
`}
/>
)