Commit Graph

6201 Commits

Author SHA1 Message Date
donteatfriedrice
a0ce75c902
fix: ai button should not display in readonly mode (#7415)
[BS-737](https://linear.app/affine-design/issue/BS-737/shared-page-也可以用-ai)
2024-07-03 07:34:07 +00:00
darkskygit
e8285289fe
feat: improve histories query for forked session (#7414) 2024-07-03 04:49:19 +00:00
pengx17
cc7740d8d3
fix: some regression issues on quick search refactor (#7410)
- fix PD-1370. doc link resolve issue on pasting
- fix AF-1029
- implement doc creation in doc search

added two test cases to cover the above two issues.
2024-07-03 03:24:50 +00:00
darkskygit
61870c04d0
feat: fork session support (#7367) 2024-07-03 03:10:09 +00:00
pengx17
10df1fb4b7
fix: menu in peek view content not scrollable issue (#7412)
when using [dialog.overlay](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/src/Dialog.tsx#L203-L211
), whole app is affected by [react-scroll library](8923c513d2/src/SideEffect.tsx (L131-L134)
):

In the current implementation, only the contents in the dialog content will be scrollable and cannot be configured in current API.

This PR introduces a simple div overlay to get rid of this issue.

fix BS-696
2024-07-03 02:58:41 +00:00
zzj3720
0bc09a9333
feat(core): update blocksuite feature flag (#7408) 2024-07-03 02:47:20 +00:00
forehalo
f0d127fa29
Revert "feat(core): run indexer in worker (#7295)"
This reverts commit c62d79ab14.
2024-07-03 10:16:27 +08:00
pengx17
fc729d6a32
fix: hide find in page command in cmdk (#7413) 2024-07-02 15:48:24 +00:00
pengx17
ef7ba273ab
fix: copy share link to clipboard command display issue (#7411)
fix AF-1027
2024-07-02 15:28:30 +00:00
renovate
b8b30e79e5
chore: bump up oxlint version to v0.5.2 (#7383)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc.rs) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.5.0` -> `0.5.2`](https://renovatebot.com/diffs/npm/oxlint/0.5.0/0.5.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.5.0/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.5.0/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>oxc-project/oxc (oxlint)</summary>

### [`v0.5.2`](21b964b214...b66ad0b675)

[Compare Source](21b964b214...b66ad0b675)

### [`v0.5.1`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.5.1): oxlint v0.5.1

[Compare Source](1d74db7774...21b964b214)

#### \[0.5.1] - 2024-06-29

##### Bug Fixes

-   [`c26975a`](https://togithub.com/oxc-project/oxc/commit/c26975a) linter: Only show the filename for max-lines ([#&#8203;3966](https://togithub.com/oxc-project/oxc/issues/3966)) (Boshen)
-   [`94329e4`](https://togithub.com/oxc-project/oxc/commit/94329e4) linter: Handle useful but empty constructors in no-useless-constructor ([#&#8203;3951](https://togithub.com/oxc-project/oxc/issues/3951)) (DonIsaac)
-   [`6498a08`](https://togithub.com/oxc-project/oxc/commit/6498a08) linter: No-useless-spread fixer with multiple spread elements ([#&#8203;3950](https://togithub.com/oxc-project/oxc/issues/3950)) (DonIsaac)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-07-02 15:17:18 +00:00
pengx17
2a6ea3c9c6
feat(core): allow keyboard navigation in tags inline editor (#7378)
fix AF-966

- Allow using arrowup/down to navigate the tag list candidates; press enter to add the currently focused tag option;
- Allow using arrowleft/right to navigate the inline tag list (selected) and use backspace to delete focused tag.
2024-07-02 14:25:51 +00:00
EYHN
c62d79ab14
feat(core): run indexer in worker (#7295) 2024-07-02 09:18:08 +00:00
EYHN
27d0fc5108
refactor(core): use new backlink indexer (#7296) 2024-07-02 09:18:01 +00:00
EYHN
40e381e272
refactor(core): new quick search service (#7214) 2024-07-02 09:17:54 +00:00
EYHN
15e99c7819
feat(core): docs search service (#7213) 2024-07-02 09:17:47 +00:00
EYHN
3870801ebb
feat(infra): job system (#7212) 2024-07-02 09:17:40 +00:00
DarkSky
0957c30e74
docs: Update SECURITY.md (#7406) 2024-07-02 17:13:26 +08:00
EYHN
90e4a9b181
feat: doc search infra (#7166)
detail in `packages/common/infra/src/sync/indexer/README.md`
2024-07-02 08:52:33 +00:00
renovate
1997f24414
chore: bump up webpack-merge version to v6 (#7407)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [webpack-merge](https://togithub.com/survivejs/webpack-merge) | [`^5.10.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/webpack-merge/5.10.0/6.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/webpack-merge/6.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/webpack-merge/6.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/webpack-merge/5.10.0/6.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack-merge/5.10.0/6.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>survivejs/webpack-merge (webpack-merge)</summary>

### [`v6.0.1`](https://togithub.com/survivejs/webpack-merge/blob/HEAD/CHANGELOG.md#601--2024-07-02)

[Compare Source](https://togithub.com/survivejs/webpack-merge/compare/v6.0.0...2f610b9c2da066cc5d035ee83db84e22b7d42fb3)

-   Fix - Restore usage of `clone-deep` as there was a corner case where `structuredClone` did not work as expected. [#&#8203;214](https://togithub.com/survivejs/webpack-merge/issues/214)

### [`v6.0.0`](https://togithub.com/survivejs/webpack-merge/blob/HEAD/CHANGELOG.md#600--xxxx-xx-xx)

[Compare Source](https://togithub.com/survivejs/webpack-merge/compare/v5.10.0...v6.0.0)

-   Chore - Update internal dependencies. As a result, the package needs at least Node 18 to run.
-   Chore - Use `structuredClone` over `clone-deep` dependency since it is included to Node 18 or above. [#&#8203;214](https://togithub.com/survivejs/webpack-merge/issues/214)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-07-02 08:32:26 +00:00
EYHN
3f8fe5cfae
fix(infra): override saved blocksuite feature flag (#7399) 2024-07-01 11:36:32 +00:00
Peng Xiao
8c4a42f0e6
fix: cmd-k keybinding not show when editor input is active (#7398) 2024-07-01 19:31:36 +08:00
Flrande
4d484ea814
feat: bump blocksuite (#7372) 2024-07-01 19:21:14 +08:00
EYHN
3bbb657a78
feat(core): replace ai template (#7396) 2024-07-01 10:24:54 +00:00
EYHN
39acb51d87
feat(core): adjust orm api (#7392)
Removed the `connect` and `disconnect` functions on the orm `DBAdapter`, making the ORM completely non-asynchronous.
2024-07-01 09:32:15 +00:00
KushalSharmaGit
d72dbe682c
fix: ensure exact tag matching with enter key behavior refinement (#7387)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2024-07-01 10:16:16 +08:00
EYHN
824be0d4c1
fix(core): fix viewtransition and css property missing (#7377) 2024-06-28 18:03:43 +08:00
golok727
fbf676002f
fix: code block toolbar z-index issue in right sidebar (#7376)
Closes: [BS-549](https://linear.app/affine-design/issue/BS-549/code-block-%E5%9C%A8%E5%8F%B3%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%9C%89-z-index-%E9%97%AE%E9%A2%98%E8%AF%AD%E8%A8%80%E7%9A%84%E4%BF%A1%E6%81%AF%E5%87%BA%E7%8E%B0%E5%9C%A8%E4%BA%86-tab-%E4%B8%8A%E9%9D%A2),[BS-600](https://linear.app/affine-design/issue/BS-600/the-code-toolbar-remains-visible-when-it-overflows-in-the-ai-panel)
2024-06-28 07:48:50 +00:00
regischen
e877f20955 fix: add onboarding entry (#7375)
Don't know why it's missed..
https://github.com/toeverything/AFFiNE/pull/7109
2024-06-28 07:03:33 +00:00
regischen
f4f84d2793
fix: click continue with ai not work (#7374) 2024-06-28 14:43:45 +08:00
pengx17
34b6a3bf1f
fix: escape key handling compatibility issue with blocksuite (#7365)
fix PD-1347

See
https://github.com/radix-ui/primitives/blob/main/packages/react/use-escape-keydown/src/useEscapeKeydown.tsx#L19-L20

This behavior in radix-ui is not possible to be prevented since escape keydown is bound to document with capturing, unless dialogs in blocksuite is also implemented with radix-ui.
2024-06-28 06:21:36 +00:00
EYHN
eca484dc28
fix(core): add loading for insert ai template (#7369) 2024-06-28 14:19:59 +08:00
Fangdun Tsai
855d555480
fix(core): should return a cleanup function (#7371) 2024-06-28 14:18:24 +08:00
forehalo
d51fd8b54b
fix(core): correct image action icon (#7370)
fix AF-1002

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/5c0ymolP9B7QStCsS1RP/b2e7afb1-e6bf-4589-8c60-32bede366350.png)
2024-06-28 05:24:06 +00:00
Saul-Mirone
f020cd353e
chore: bump bs (#7368)
## Features

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7444 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7445 @doouding
- https://github.com/toeverything/BlockSuite/pull/7443 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7440 @doouding

## Refactor
- https://github.com/toeverything/BlockSuite/pull/7442 @Flrande

## Misc
2024-06-28 04:10:46 +00:00
renovate
6f217f61b6
chore: bump up oxlint version to v0.5.0 (#7357)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc.rs) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.4.4` -> `0.5.0`](https://renovatebot.com/diffs/npm/oxlint/0.4.4/0.5.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.4.4/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.4.4/0.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>oxc-project/oxc (oxlint)</summary>

### [`v0.5.0`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.5.0): oxlint v0.5.0

[Compare Source](2173f23d9c...1d74db7774)

##### \[0.5.0] - 2024-06-27

##### Features

-   [`3ae2628`](https://togithub.com/oxc-project/oxc/commit/3ae2628) linter: Change `no-import-assign` to correctness ([#&#8203;3928](https://togithub.com/oxc-project/oxc/issues/3928)) (Boshen)
-   [`a89d501`](https://togithub.com/oxc-project/oxc/commit/a89d501) linter: [@&#8203;typescript-eslint/no-non-null-asserted-nullish-coalescing](https://togithub.com/typescript-eslint/no-non-null-asserted-nullish-coalescing) ([#&#8203;3850](https://togithub.com/oxc-project/oxc/issues/3850)) (kaykdm)
-   [`fc48cb4`](https://togithub.com/oxc-project/oxc/commit/fc48cb4) linter: eslint-plugin-jest/prefer-jest-mocked ([#&#8203;3865](https://togithub.com/oxc-project/oxc/issues/3865)) (cinchen)
-   [`328445b`](https://togithub.com/oxc-project/oxc/commit/328445b) linter: vitest/no-disabled-tests ([#&#8203;3717](https://togithub.com/oxc-project/oxc/issues/3717)) (mysteryven)
-   [`8c61f9c`](https://togithub.com/oxc-project/oxc/commit/8c61f9c) linter: [@&#8203;typescript-eslint/no-non-null-assertion](https://togithub.com/typescript-eslint/no-non-null-assertion) ([#&#8203;3825](https://togithub.com/oxc-project/oxc/issues/3825)) (kaykdm)
-   [`9493fbe`](https://togithub.com/oxc-project/oxc/commit/9493fbe) linter: oxc/no-optional-chaining ([#&#8203;3700](https://togithub.com/oxc-project/oxc/issues/3700)) (mysteryven)
-   [`139adfe`](https://togithub.com/oxc-project/oxc/commit/139adfe) linter: @&#8203;typescript-eslint/no-import-type-side_effects ([#&#8203;3699](https://togithub.com/oxc-project/oxc/issues/3699)) (mysteryven)
-   [`5f84500`](https://togithub.com/oxc-project/oxc/commit/5f84500) linter: react/prefer-es6-class ([#&#8203;3812](https://togithub.com/oxc-project/oxc/issues/3812)) (Jelle van der Waa)
-   [`fafe67c`](https://togithub.com/oxc-project/oxc/commit/fafe67c) linter: max-dependencies ([#&#8203;3814](https://togithub.com/oxc-project/oxc/issues/3814)) (Jelle van der Waa)

##### Bug Fixes

-   [`5902331`](https://togithub.com/oxc-project/oxc/commit/5902331) cli: properly report configuration error ([#&#8203;3889](https://togithub.com/oxc-project/oxc/issues/3889)) (Luca Bruno)

##### Refactor

-   [`7302429`](https://togithub.com/oxc-project/oxc/commit/7302429) linter/prefer_number_properties: Remove the unused `IdentifierName` check ([#&#8203;3822](https://togithub.com/oxc-project/oxc/issues/3822)) (Boshen)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-06-27 13:04:51 +00:00
pengx17
4f07a2cc2a
fix(core): debounce doc update time update (#7363) 2024-06-27 10:37:43 +00:00
forehalo
ae230354c6
chore: bump base version to 0.15.0 2024-06-27 18:17:36 +08:00
liuyi
08fa356a02
fix(core): not found info in workspace page is not in center (#7362) 2024-06-27 10:15:21 +00:00
Peng Xiao
c8f418f9c5
fix: use sgtpooki/file-type for resolving image type (#7326) 2024-06-27 10:08:08 +00:00
EYHN
c6c4ed9711
fix(infra): recover deleted item in orm (#7359) 2024-06-27 17:58:47 +08:00
Peng Xiao
2c92e97c48
fix: embed doc link rendering (#7361) 2024-06-27 17:58:33 +08:00
Cats Juice
fa2305b0e2
feat(core): replace all radio-button-group usage (#7352) 2024-06-27 17:54:30 +08:00
EYHN
3b3b7ec054
chore: bump blocksuite (#7360) 2024-06-27 17:53:42 +08:00
pengx17
81462fe000
refactor(core): view transition api for peek-view modal animation (#7350)
Remaining issue:
modal controls' position is not relatively moved to the parent container during transitioning.
2024-06-27 08:38:16 +00:00
fundon
03af538989
chore: bump theme (#7338) 2024-06-27 08:26:26 +00:00
EYHN
33bb2b5fcd
feat(infra): use yjs mergeupdate for performance (#7343) 2024-06-27 08:14:17 +00:00
donteatfriedrice
742c10ac94
feat: make width and height of generated image same with input image (#7356)
[BS-641](https://linear.app/affine-design/issue/BS-641/通过image-action生成的图像尺寸应与原图保持一致)
2024-06-27 08:02:32 +00:00
JimmFly
4af6223dc3
chore(core): removed obsolete TODO (#7337)
Cleaned up some TODOs that no longer need to be done
2024-06-27 06:30:29 +00:00
EYHN
e892d55134
test: add test for undo empty page (#7348) 2024-06-27 06:18:16 +00:00
CatsJuice
827c952e9f
refactor(component): new Radio component (#6910)
# New `RadioGroup` component to replace `RadioButton`

![CleanShot 2024-06-25 at 17.18.02.gif](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/77241b07-a2dd-4d27-a322-3056f483f75a.gif)

### what's new
- [x] Change the API
- [x] More customizable options
- [x] Indicator animation
- [x] Dynamic width support(responsive)
- [x] Storybook
- [x] JSDoc
2024-06-27 06:04:19 +00:00