Commit Graph

6621 Commits

Author SHA1 Message Date
pengx17
197996de31
fix(mobile): handle menu ref better (#8051) 2024-09-03 01:59:45 +00:00
L-Sun
392fef663e
chore: bump blocksuite (#8052)
## Features
- https://github.com/toeverything/BlockSuite/pull/8115 @EYHN

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/8119 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/8117 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/8114 @donteatfriedrice

## Misc
- https://github.com/toeverything/BlockSuite/pull/8106 @fundon
- https://github.com/toeverything/BlockSuite/pull/8116 @doodlewind
2024-09-02 15:25:26 +00:00
JimmFly
130e6ab4a3
chore: adjust custom font family style (#8040)
close AF-1302 AF-1301
2024-09-02 15:11:58 +00:00
akumatus
2e37ee0e33
feat(core): add actions to editor settings (#8030)
# What Changed?
- Add actions of following edgeless-elements editor settings:
  - note
  - connector
  - edgeless text
  - pen
2024-09-02 14:23:04 +00:00
pengx17
e1310b65cd
fix(mobile): change how slider height is calculated (#8049) 2024-09-02 14:10:37 +00:00
Brooooooklyn
87da792c4c
ci: deploy the mobile entry (#8028) 2024-09-02 12:59:41 +00:00
Saul-Mirone
56f4634c1f
chore: bump bs with new extension api (#8042) 2024-09-02 10:32:22 +00:00
pengx17
61e37d8873
test(mobile): basic e2e tests (#8031)
fix AF-1289

1. tested on 'webkit'
2. a few baseline test cases
2024-09-02 10:20:24 +00:00
Brooooooklyn
41d35fdafd
ci: skip generating changelog if prev commit is not found (#8045) 2024-09-02 10:08:16 +00:00
JimmFly
a992376053
chore: modify the text content of share menu (#8026)
![CleanShot 2024-08-30 at 12 18 27@2x](https://github.com/user-attachments/assets/f43a6d31-1bdb-491c-95f6-4609973b84a6)
![CleanShot 2024-08-30 at 12 18 40@2x](https://github.com/user-attachments/assets/387d4523-d5fb-41d4-8b46-c278432db05e)
2024-09-02 09:56:17 +00:00
darkskygit
d93d39e29d
feat: add editor record (#7938)
fix CLOUD-58, CLOUD-61, CLOUD-62, PD-1607, PD-1608
2024-09-02 09:37:39 +00:00
forehalo
d9cedf89e1
fix(electron): app updater (#8043) 2024-09-02 07:53:17 +00:00
JimmFly
a802dc4fd6
chore: adjust experimental features text (#8044)
close AF-1313 AF-1312 AF-1311 AF-1310
2024-09-02 07:40:55 +00:00
pengx17
4caf32629a
fix(core): slider thumb offset (#8041)
fix AF-1307
2024-09-02 07:19:16 +00:00
pengx17
697f2c6520
fix(core): remove modal default overlay onclick (#8035)
fix AF-1300

overlay click is already handled in `handlePointerDownOutSide`. adding onclick to overlay will cause issues on closing nested menus.
2024-09-02 02:59:18 +00:00
pengx17
df34e2cdf7
fix(mobile): close menu when detail page navigate away (#8027) 2024-08-31 04:42:32 +00:00
renovate
592997b65b
chore: bump up oxlint version to v0.9.1 (#7974)
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.8.0` -> `0.9.1`](https://renovatebot.com/diffs/npm/oxlint/0.8.0/0.9.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.8.0/0.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.8.0/0.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

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

[Compare Source](https://togithub.com/oxc-project/oxc/compare/oxlint_v0.9.0...oxlint_v0.9.1)

#### \[0.9.1] - 2024-08-29

##### Features

-   [`6633972`](https://togithub.com/oxc-project/oxc/commit/6633972) linter: Add fixer for `no-empty` ([#&#8203;5276](https://togithub.com/oxc-project/oxc/issues/5276)) (camc314)
-   [`a58e448`](https://togithub.com/oxc-project/oxc/commit/a58e448) linter/eslint: Add fixer to `no-var` ([#&#8203;5144](https://togithub.com/oxc-project/oxc/issues/5144)) (camc314)
-   [`a6e9769`](https://togithub.com/oxc-project/oxc/commit/a6e9769) linter/jsx-a11y: Add `label-has-associated-control` ([#&#8203;5163](https://togithub.com/oxc-project/oxc/issues/5163)) (Billy Levin)
-   [`c8e8532`](https://togithub.com/oxc-project/oxc/commit/c8e8532) linter/unicorn: Add fixer to `throw-new-error` ([#&#8203;5275](https://togithub.com/oxc-project/oxc/issues/5275)) (camc314)
-   [`7ccde4b`](https://togithub.com/oxc-project/oxc/commit/7ccde4b) linter/unicorn: Add fixer to `prefer-date-now` ([#&#8203;5147](https://togithub.com/oxc-project/oxc/issues/5147)) (camc314)

##### Bug Fixes

-   [`fdef8ae`](https://togithub.com/oxc-project/oxc/commit/fdef8ae) linter: Jest/vitest rule compat ([#&#8203;4797](https://togithub.com/oxc-project/oxc/issues/4797)) (cinchen)
-   [`76e86f8`](https://togithub.com/oxc-project/oxc/commit/76e86f8) linter: Eslint-plugin-unicorn prefer-spread wrong linter suggestion on variables of type string ([#&#8203;5265](https://togithub.com/oxc-project/oxc/issues/5265)) (Arian94)
-   [`b39544e`](https://togithub.com/oxc-project/oxc/commit/b39544e) linter/jest: Fixer for `prefer-jest-mocked` creates invalid LHS expressions ([#&#8203;5243](https://togithub.com/oxc-project/oxc/issues/5243)) (camc314)
-   [`9953fa5`](https://togithub.com/oxc-project/oxc/commit/9953fa5) linter/no-null: Incorrect fixer for `NullLiteral` within `ReturnStatement` ([#&#8203;5247](https://togithub.com/oxc-project/oxc/issues/5247)) (Dunqing)
-   [`318479e`](https://togithub.com/oxc-project/oxc/commit/318479e) linter/no-unused-vars: Mark the class/function in the new expression as used ([#&#8203;5306](https://togithub.com/oxc-project/oxc/issues/5306)) (magic-akari)

##### Refactor

-   [`fa1d460`](https://togithub.com/oxc-project/oxc/commit/fa1d460) linter: Clean up Fixer and Message ([#&#8203;5308](https://togithub.com/oxc-project/oxc/issues/5308)) (DonIsaac)

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

[Compare Source](https://togithub.com/oxc-project/oxc/compare/oxlint_v0.8.0...oxlint_v0.9.0)

#### \[0.9.0] - 2024-08-26

This release introduces `no-unused-vars` as a `correctness` rule and parsing regular expressions for syntax errors, both may produce false positives. Feel free to submit an issue.

-   [`5946748`](https://togithub.com/oxc-project/oxc/commit/5946748) linter: \[**BREAKING**] Parse and display syntax errors for regular expressions ([#&#8203;5214](https://togithub.com/oxc-project/oxc/issues/5214)) (Boshen)

![image](https://togithub.com/user-attachments/assets/7d68ccde-9e04-4ea8-8d0a-edf20e028259)

-   [`b894d3b`](https://togithub.com/oxc-project/oxc/commit/b894d3b) linter: \[**BREAKING**] Make `no-unused-vars` correctness ([#&#8203;5081](https://togithub.com/oxc-project/oxc/issues/5081)) (DonIsaac)

##### Features

-   [`1ce9630`](https://togithub.com/oxc-project/oxc/commit/1ce9630) linter/config: Implement FromIterator for LintPluginOptions ([#&#8203;5102](https://togithub.com/oxc-project/oxc/issues/5102)) (DonIsaac)
-   [`34bfaf6`](https://togithub.com/oxc-project/oxc/commit/34bfaf6) linter/react: Add fixer to `jsx-props-no-spread-multi` ([#&#8203;5145](https://togithub.com/oxc-project/oxc/issues/5145)) (camc314)
-   [`982bd6e`](https://togithub.com/oxc-project/oxc/commit/982bd6e) linter/unicorn: Add fixer to `require-array-join-separator` ([#&#8203;5152](https://togithub.com/oxc-project/oxc/issues/5152)) (camc314)
-   [`a6704bd`](https://togithub.com/oxc-project/oxc/commit/a6704bd) linter/unicorn: Add fixer to `prefer-set-size` ([#&#8203;5149](https://togithub.com/oxc-project/oxc/issues/5149)) (camc314)
-   [`ac7edcc`](https://togithub.com/oxc-project/oxc/commit/ac7edcc) linter/unicorn: Add fixer to `prefer-array-some` ([#&#8203;5153](https://togithub.com/oxc-project/oxc/issues/5153)) (camc314)
-   [`1d01aa3`](https://togithub.com/oxc-project/oxc/commit/1d01aa3) linter/unicorn: Add partial fixer for `prefer-array-flat` ([#&#8203;5143](https://togithub.com/oxc-project/oxc/issues/5143)) (camc314)
-   [`22d57f9`](https://togithub.com/oxc-project/oxc/commit/22d57f9) linter/unicorn: Add fixer to `prefer-string-slice` ([#&#8203;5150](https://togithub.com/oxc-project/oxc/issues/5150)) (Cameron)
-   [`2fe4415`](https://togithub.com/oxc-project/oxc/commit/2fe4415) linter/unicorn: Add fixer to `no-redundant-roles` ([#&#8203;5146](https://togithub.com/oxc-project/oxc/issues/5146)) (Cameron)
-   [`d35c6f5`](https://togithub.com/oxc-project/oxc/commit/d35c6f5) linter/unicorn: Add fixer to `prefer-regexp-test` ([#&#8203;5151](https://togithub.com/oxc-project/oxc/issues/5151)) (Cameron)
-   [`27db769`](https://togithub.com/oxc-project/oxc/commit/27db769) linter/unicorn: Add fixer to `text-encoding-identifier-case` ([#&#8203;5154](https://togithub.com/oxc-project/oxc/issues/5154)) (Cameron)
-   [`f7958c4`](https://togithub.com/oxc-project/oxc/commit/f7958c4) linter/unicorn: Add prefer-structured-clone ([#&#8203;5095](https://togithub.com/oxc-project/oxc/issues/5095)) (Jelle van der Waa)
-   [`004ffa0`](https://togithub.com/oxc-project/oxc/commit/004ffa0) linter/vitest: Implement `prefer-each` ([#&#8203;5203](https://togithub.com/oxc-project/oxc/issues/5203)) (dalaoshu)

##### Bug Fixes

-   [`aaaf26c`](https://togithub.com/oxc-project/oxc/commit/aaaf26c) linter: Error in fixer for prefer-to-have-length ([#&#8203;5197](https://togithub.com/oxc-project/oxc/issues/5197)) (dalaoshu)
-   [`1f5b6b6`](https://togithub.com/oxc-project/oxc/commit/1f5b6b6) linter: Bug in fixer for prefer-to-have-length ([#&#8203;5164](https://togithub.com/oxc-project/oxc/issues/5164)) (dalaoshu)
-   [`7eb052e`](https://togithub.com/oxc-project/oxc/commit/7eb052e) linter: `no-hex-escape` fixer removing regex flags ([#&#8203;5137](https://togithub.com/oxc-project/oxc/issues/5137)) (Cameron)
-   [`76c66b4`](https://togithub.com/oxc-project/oxc/commit/76c66b4) linter/max-lines: Point span to end of file for disable directive to work ([#&#8203;5117](https://togithub.com/oxc-project/oxc/issues/5117)) (Boshen)
-   [`8ff6f2c`](https://togithub.com/oxc-project/oxc/commit/8ff6f2c) linter/no-unused-vars: Panic on UsingDeclarations ([#&#8203;5206](https://togithub.com/oxc-project/oxc/issues/5206)) (DonIsaac)
-   [`d29042e`](https://togithub.com/oxc-project/oxc/commit/d29042e) linter/no-unused-vars: Function expression in implicit arrow function return ([#&#8203;5155](https://togithub.com/oxc-project/oxc/issues/5155)) (DonIsaac)
-   [`36e4a28`](https://togithub.com/oxc-project/oxc/commit/36e4a28) linter/no-unused-vars: Panic in variable declarator usage checks ([#&#8203;5160](https://togithub.com/oxc-project/oxc/issues/5160)) (DonIsaac)
-   [`ba62a71`](https://togithub.com/oxc-project/oxc/commit/ba62a71) linter/react: Fixed false positive with missing key inside React.Children.toArray() for fragments  ([#&#8203;5133](https://togithub.com/oxc-project/oxc/issues/5133)) (Earl Chase)
-   [`fd1031a`](https://togithub.com/oxc-project/oxc/commit/fd1031a) linter/unicorn: Breaking fixer in case statements for `no-null` ([#&#8203;5176](https://togithub.com/oxc-project/oxc/issues/5176)) (DonIsaac)
-   [`7b86ed6`](https://togithub.com/oxc-project/oxc/commit/7b86ed6) linter/unicorn: Handle type casts and parens in `no-null` ([#&#8203;5175](https://togithub.com/oxc-project/oxc/issues/5175)) (Don Isaac)
-   [`b629e16`](https://togithub.com/oxc-project/oxc/commit/b629e16) linter/unicorn: Improve diagnostic message for `no-null` ([#&#8203;5172](https://togithub.com/oxc-project/oxc/issues/5172)) (DonIsaac)

##### Performance

-   [`ce454cf`](https://togithub.com/oxc-project/oxc/commit/ce454cf) Use simdutf8 to validate UTF-8 when reading files  ([#&#8203;5196](https://togithub.com/oxc-project/oxc/issues/5196)) (dalaoshu)

##### Refactor

-   [`543cad6`](https://togithub.com/oxc-project/oxc/commit/543cad6) codegen: Remove some pub APIs (Boshen)
-   [`0d3661a`](https://togithub.com/oxc-project/oxc/commit/0d3661a) linter: Remove meaningless `span0` ([#&#8203;5209](https://togithub.com/oxc-project/oxc/issues/5209)) (dalaoshu)
-   [`2a91ef1`](https://togithub.com/oxc-project/oxc/commit/2a91ef1) linter: `eslint/no_redeclare` rule use `run_on_symbol` not `run_once` ([#&#8203;5201](https://togithub.com/oxc-project/oxc/issues/5201)) (overlookmotel)
-   [`33599b0`](https://togithub.com/oxc-project/oxc/commit/33599b0) linter: Split options into multiple files ([#&#8203;5101](https://togithub.com/oxc-project/oxc/issues/5101)) (DonIsaac)
-   [`7ab6152`](https://togithub.com/oxc-project/oxc/commit/7ab6152) linter/unicorn: Clean up `no-null` ([#&#8203;5174](https://togithub.com/oxc-project/oxc/issues/5174)) (DonIsaac)

##### Testing

-   [`a877e5a`](https://togithub.com/oxc-project/oxc/commit/a877e5a) linter/no-unused-vars: Ensure type annotations on property accessors are considered used ([#&#8203;5183](https://togithub.com/oxc-project/oxc/issues/5183)) (DonIsaac)
-   [`7886618`](https://togithub.com/oxc-project/oxc/commit/7886618) linter/unicorn: Add fixer tests for `no-null` ([#&#8203;5173](https://togithub.com/oxc-project/oxc/issues/5173)) (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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-08-30 04:46:09 +00:00
renovate
69892655a1
chore: bump up valtio version to v2 (#8025)
This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>pmndrs/valtio (valtio)</summary>

### [`v2.0.0`](https://togithub.com/pmndrs/valtio/releases/tag/v2.0.0)

[Compare Source](https://togithub.com/pmndrs/valtio/compare/v1.13.2...v2.0.0)

### 🎉🎉🎉 Valtio v2 is Here! 🍾🍾🍾

#### Small Breaking Changes

Most users won't even notice the differences, but we recommend checking out the [migration guide](https://togithub.com/pmndrs/valtio/blob/main/docs/guides/migrating-to-v2.mdx) to ensure a smooth transition.

#### New Emoji

💊 -> 🧙

Say hello to our new emoji! This change symbolizes the magic of Valtio.

#### Let’s Grow the Ecosystem Together!

We are entering a new era of Valtio development, and we need your help to grow the ecosystem. Whether you are an experienced contributor or just getting started, now is the perfect time to join us!

#### What's Changed

-   v2 by [@&#8203;dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/810](https://togithub.com/pmndrs/valtio/pull/810)
-   feat(core): expose internal states and functions by [@&#8203;dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/931](https://togithub.com/pmndrs/valtio/pull/931)
-   breaking(vanilla): do not handle promises by [@&#8203;dai-shi](https://togithub.com/dai-shi) in [https://github.com/pmndrs/valtio/pull/934](https://togithub.com/pmndrs/valtio/pull/934)

#### New Contributors

-   [@&#8203;AmirSa12](https://togithub.com/AmirSa12) made their first contribution in [https://github.com/pmndrs/valtio/pull/898](https://togithub.com/pmndrs/valtio/pull/898)
-   [@&#8203;TotallyBiased](https://togithub.com/TotallyBiased) made their first contribution in [https://github.com/pmndrs/valtio/pull/901](https://togithub.com/pmndrs/valtio/pull/901)
-   [@&#8203;L-Qun](https://togithub.com/L-Qun) made their first contribution in [https://github.com/pmndrs/valtio/pull/908](https://togithub.com/pmndrs/valtio/pull/908)
-   [@&#8203;himself65](https://togithub.com/himself65) made their first contribution in [https://github.com/pmndrs/valtio/pull/920](https://togithub.com/pmndrs/valtio/pull/920)
-   [@&#8203;kciter](https://togithub.com/kciter) made their first contribution in [https://github.com/pmndrs/valtio/pull/922](https://togithub.com/pmndrs/valtio/pull/922)

**Full Changelog**: https://github.com/pmndrs/valtio/compare/v1.13.2...v2.0.0

</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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-08-30 04:34:04 +00:00
JimmFly
f99988afa6
feat(core): bump blocksuite/icons (#8024) 2024-08-30 03:42:52 +00:00
pengx17
4ff6fbd052
fix(core): hairline boarders for divider (#8021) 2024-08-30 02:31:28 +00:00
pengx17
f544e69d02
fix(mobile): modal styles on mobile (#8023)
<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/92c0cc55-1f75-42b7-a83f-4ffa6cf205ad.mp4">20240829-1420-07.7370936.mp4</video>
2024-08-29 16:45:23 +00:00
pengx17
adf314d594
fix(mobile): adjust peek view style for mobile (#8003)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/c3a04128-0309-4df6-ab6d-0a5129483c73.png)
2024-08-29 16:45:22 +00:00
pengx17
7ae141bd9e
feat(mobile): add mobile detail page (#7993)
fix AF-1241
2024-08-29 16:45:22 +00:00
pengx17
f8e6f1f2b5
chore: add mobile scope (#8020) 2024-08-29 16:45:21 +00:00
CatsJuice
f1bb1fc9b8
feat(mobile): search page ui (#8012)
feat(mobile): search page ui

fix(core): quick search tags performance issue
2024-08-29 09:05:23 +00:00
JimmFly
5e8683c9be
feat(core): add outgoing links to doc info (#7955)
close AF-1270

![CleanShot 2024-08-23 at 13 22 38@2x](https://github.com/user-attachments/assets/7eb21db5-ab33-41ad-a51a-fd2cf46a0e30)
2024-08-29 06:41:41 +00:00
CatsJuice
3ce92f2abc
feat(mobile): all docs page ui impl (#7976) 2024-08-29 06:09:48 +00:00
CatsJuice
db76780bc9
feat(mobile): mobile index page UI (#7959) 2024-08-29 06:09:47 +00:00
CatsJuice
f37051dc87
feat(core): mobile renderer for explorer (#7942) 2024-08-29 06:09:45 +00:00
EYHN
b96ad57568
feat(core): import template (#8000) 2024-08-29 04:01:35 +00:00
JimmFly
4ec45a247e
feat(core): add sign in button to shared doc (#7952)
![CleanShot 2024-08-23 at 12 05 12@2x](https://github.com/user-attachments/assets/2c146707-9551-4044-b289-0904653f30f2)
2024-08-29 02:44:06 +00:00
darkskygit
dde45748d9
feat: filter out empty workpace in sidebar list (#7960)
fix PD-1567
2024-08-28 08:43:44 +00:00
L-Sun
06685683ae
fix(core): add mobile edit button (#7996) 2024-08-28 06:38:45 +00:00
JimmFly
65a87196d5
feat(core): impl the Doc Info and Bi-Directional Links display settings (#7991)
https://github.com/user-attachments/assets/a469254c-a2ea-4cf4-837e-f9a8bbe5b378
2024-08-28 02:35:29 +00:00
JimmFly
09ab922572
feat(core): add new doc default mode setting (#7990)
https://github.com/user-attachments/assets/523b14f3-ee42-4061-8ca2-221e071d5cc9
2024-08-28 02:35:28 +00:00
JimmFly
c53adbc7e8
chore: adjust font menu and slider style (#7989)
![CleanShot 2024-08-27 at 15 52 09@2x](https://github.com/user-attachments/assets/69c8a340-0d59-4d8d-846e-73dc81f2800a)
![CleanShot 2024-08-27 at 15 52 39@2x](https://github.com/user-attachments/assets/2177f267-bdc1-459b-b043-868642b08d9a)
2024-08-28 02:35:26 +00:00
JimmFly
03b2cda845
refactor(core): move fontFamily and fullWidthLayout to editor settings (#7988) 2024-08-28 02:35:24 +00:00
EYHN
3e810eb043
fix(core): no share page in desktop (#7983) 2024-08-27 12:37:30 +00:00
JimmFly
b8f07ce3fc
chore(core): disable expand database block (#7984)
close AF-1271
2024-08-27 12:24:48 +00:00
darkskygit
10a066a52a
fix(native): return type casts (#7986) 2024-08-27 05:53:05 +00:00
DarkSky
6557b5d4b6
fix: native binding (#7985) 2024-08-27 12:31:25 +08:00
Brooooooklyn
67c9c7bcc5
ci: send slack message to channel after deploy (#7889) 2024-08-27 03:01:55 +00:00
renovate
e44a9483c2
chore: bump up @marsidev/react-turnstile version to v1 (#7940)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@marsidev/react-turnstile](https://togithub.com/marsidev/react-turnstile) | [`^0.7.0` -> `^1.0.0`](https://renovatebot.com/diffs/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@marsidev%2freact-turnstile/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@marsidev%2freact-turnstile/0.7.2/1.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>marsidev/react-turnstile (@&#8203;marsidev/react-turnstile)</summary>

### [`v1.0.0`](https://togithub.com/marsidev/react-turnstile/releases/tag/v1.0.0)

[Compare Source](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0)

##### 🚨 Breaking Changes

-   Now we ship ESM-only code, this will decrease the bundle size significantly.
    If you are a CommonJS user, I suggest you to keep using the version `0.7.2` or upgrade your project to ESM.

-   Removed "auto" widget size due to is not even a valid size for Cloudflare Turnstile.
    We have been sending `undefined` when the size was "auto", so if you were using this size, then you can simply remove it.

-   Peer dependencies for `react` and `react-dom` have been updated to 17.x and above.

##### 🚀 Features

-   Added callback `onTimeout`
-   Added render options `refreshTimeout` and `feedbackEnabled` (Closes [#&#8203;82](https://togithub.com/marsidev/react-turnstile/issues/82))
-   Added new "flexible" widget size (Closes [#&#8203;82](https://togithub.com/marsidev/react-turnstile/issues/82))

##### 🐛 Fixes

-   Updated "compact" widget size to 150x140 (Closes [#&#8203;85](https://togithub.com/marsidev/react-turnstile/issues/85))

##### 🛠 Misc

##### Build

-   We migrated from [unbuild](https://togithub.com/unjs/unbuild) to [tsup](https://togithub.com/egoist/tsup)
-   The generated build is now minified, this will decrease the bundle size significantly.

##### TypeScript

-   Improved type definitions. Now we expose these types: `AppearanceMode`, `ExecutionMode`, `FailureRetryMode`, `RefreshExpiredMode`, `RefreshTimeoutMode`, `WidgetSize`. Inspired by [@&#8203;types/cloudflare-turnstile](https://www.npmjs.com/package/@&#8203;types/cloudflare-turnstile)

##### Other

-   Updated dependencies
-   Updated docs
-   Added issue templates and policies

#####     [View changes on GitHub](https://togithub.com/marsidev/react-turnstile/compare/v0.7.2...v1.0.0)

</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 was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-08-27 02:50:53 +00:00
renovate
ecf50a4dad
chore: bump up happy-dom version to v15 (#7941)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [happy-dom](https://togithub.com/capricorn86/happy-dom) | [`^14.7.1` -> `^15.0.0`](https://renovatebot.com/diffs/npm/happy-dom/14.12.3/15.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/14.12.3/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/14.12.3/15.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>capricorn86/happy-dom (happy-dom)</summary>

### [`v15.0.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v15.0.0)

[Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v14.12.3...v15.0.0)

##### 💣 Breaking Changes

-   Implements remaining HTML elements - By **[@&#8203;betterqualityassuranceuser](https://togithub.com/betterqualityassuranceuser)** in task [#&#8203;1332](https://togithub.com/capricorn86/happy-dom/issues/1332)

</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 was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-08-27 02:40:19 +00:00
forehalo
0209e3fa76
fix(core): avoid expand runtime config everywhere used (#7972) 2024-08-26 12:22:52 +00:00
EYHN
9ea4aaaf37
refactor(infra): remove setimmediate (#7975) 2024-08-26 11:57:24 +00:00
pengx17
611925fa10
fix(electron): adjust app-tabs-header styles (#7961)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/6dc54c24-e90f-4c3f-a743-ce7f4512e616.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/3cbfe8f8-d4b8-4167-b557-89184bdcce9c.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/28ba3ad1-22a7-487a-a9a4-d53a658457f9.png)

also fix PD-1631
2024-08-26 09:34:27 +00:00
EYHN
bc86f0a672
feat(core): editor setting service (#7956)
define editor setting schema in `packages/frontend/core/src/modules/editor-settting/schema.ts`

e.g.

```ts
const BSEditorSettingSchema = z.object({
  connector: z.object({
    stroke: z
      .union([
        z.string(),
        z.object({
          dark: z.string(),
          light: z.string(),
        }),
      ])
      .default('#000000'), // default is necessary
  }),
});
```

schema can be defined in a nested way. EditorSetting api is in flat way:

editorSetting api:

```ts
editorSetting.settings$ === {
  'connector.stroke': '#000000'
}
editorSetting.set('connector.stroke', '#000')
```

and use `expandFlattenObject` function can restore the flattened structure to a nested structure. nested structure is required by blocksuite

```ts
editorSetting.settings$.map(expandFlattenObject) === {
  connector: {
    stroke: '#000000'
  }
}
```
2024-08-26 08:19:24 +00:00
JimmFly
3c37006657
chore(core): add Display bi-directional links setting row ui (#7954)
close AF-1269

![CleanShot 2024-08-23 at 12 59 50@2x](https://github.com/user-attachments/assets/bcdc70c4-029e-4254-8367-a390a244e30b)
2024-08-26 06:25:32 +00:00
Don Isaac
dbcfd24ed8
fix: remove unused variables (#7968) 2024-08-26 14:23:56 +08:00