Commit Graph

16 Commits

Author SHA1 Message Date
EYHN
6bc5337307
refactor(core): adjust modal animation (#7606)
<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">CleanShot 2024-07-25 at 20.04.01.mp4</video>

When a modal is closed, sometimes its components are completely unmounted from the component tree, making it difficult to animate. This pr defining a custom element as the container of ReactDOM.portal, rewriting the `removeChild` function, and use `startViewTransition` when ReactDOM calls it to implement the animation.

# Save Input

Some inputs use blur event to save data, but when they are unmounted, blur event will not be triggered at all. This pr changes blur event to native addEventListener, which will be called after the DOM element is unmounted, so as to save data in time.
2024-07-26 08:39:34 +00:00
Brooooooklyn
94af2caba8
chore: simplify renovate config and upgrade msw (#6961) 2024-05-16 08:40:00 +00:00
Brooooooklyn
1cf0263def
ci: use matchDepNames in renovate.json (#6905) 2024-05-13 08:04:40 +00:00
Brooooooklyn
b2b99ab9df
ci: add rust-toolchain auto update config (#6794) 2024-05-07 07:31:41 +00:00
LongYinan
83e7afeb6b
chore: exclude oxlint from non-major dependencies group (#5775) 2024-02-01 10:58:09 +00:00
Yifeng Wang
fec2090de5
feat: bump blocksuite (#5767)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-02-01 16:28:22 +08:00
LongYinan
1cf182b7ca
ci: add postUpdateOptions to renovate (#5714) 2024-01-26 06:19:38 +00:00
LongYinan
df09dac389
fix: renovate ignorePaths should not include tests 2024-01-04 18:34:54 +08:00
LongYinan
986860070b
fix: renovate preserveSemverRanges rule should not be in group 2024-01-02 12:19:55 +08:00
LongYinan
ae3afccdb2
fix: renovate config 2024-01-02 12:13:37 +08:00
LongYinan
b0d90c26d3
ci: fix invalid renovate config (#5470)
- Close https://github.com/toeverything/AFFiNE/issues/5469
2024-01-02 03:37:22 +00:00
LongYinan
10aeefe36d
ci: prevent @blocksuite/* packages upgraded without group (#5467) 2023-12-29 10:23:56 +00:00
LongYinan
431f7cfac9
ci: exclude blocksuite from auto update group (#5424) 2023-12-28 08:22:20 +00:00
LongYinan
9e8668de6b
ci: add electron-forge deps group (#5185) 2023-12-05 03:27:36 +00:00
LongYinan
eb93ae04e0
ci: exclude @blocksuite/icons from blocksuite nightly update group (#5184) 2023-12-05 02:45:55 +00:00
LongYinan
a9b021bafe
ci: use renovate to replace dependabot since depedabot has never worked (#5182)
https://github.com/toeverything/AFFiNE/network/updates/757631626 dependabot update jobs keep timeout
2023-12-05 00:47:40 +00:00