diff --git a/Cargo.lock b/Cargo.lock index 4349628be8..1ed2c72b9e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1995,7 +1995,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -2006,9 +2006,9 @@ checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "libmimalloc-sys" -version = "0.1.39" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23aa6811d3bd4deb8a84dde645f943476d13b248d818edcf8ce0b2f37f036b44" +checksum = "07d0e07885d6a754b9c7993f2625187ad694ee985d60f23355ff0e7077261502" dependencies = [ "cc", "libc", @@ -2162,9 +2162,9 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "mimalloc" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68914350ae34959d83f732418d51e2427a794055d0b9529f48259ac07af65633" +checksum = "99585191385958383e13f6b822e6b6d8d9cf928e7d286ceb092da92b43c87bc1" dependencies = [ "libmimalloc-sys", ] @@ -3965,9 +3965,9 @@ dependencies = [ [[package]] name = "text-splitter" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "698b22fc8ce5bef13475143a43e87df82440e66b2a18d7655d1425dd36580a53" +checksum = "d2ccb8f11d97bd7f4fe5478338937de98fbb104837afe33f28c16bf3dc2be562" dependencies = [ "ahash", "auto_enums", @@ -4406,9 +4406,9 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "uniffi" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba62a57e90f9baed5ad02a71a0870180fa1cc35499093b2d21be2edfb68ec0f7" +checksum = "fe34585ac0275accf6c284d0080cc2840f3898c551cda869ec291b5a4218712c" dependencies = [ "anyhow", "camino", @@ -4422,9 +4422,9 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2242f35214f1e0e3b47c495d340c69f649f9a9ece3a943a29e275686cc884533" +checksum = "1a792af1424cc8b3c43b44c1a6cb7935ed1fbe5584a74f70e8bab9799740266d" dependencies = [ "anyhow", "camino", @@ -4445,9 +4445,9 @@ dependencies = [ [[package]] name = "uniffi_build" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c887a6c9a2857d8dc2ab0c8d578e8aa4978145b4fd65ed44296341e89aebc3cc" +checksum = "00c4138211f2ae951018fcce6a978e1fcd1a47c3fd0bc0d5472a520520060db1" dependencies = [ "anyhow", "camino", @@ -4456,23 +4456,22 @@ dependencies = [ [[package]] name = "uniffi_core" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cad9fbdeb7ae4daf8d0f7704a3b638c37018eb16bb701e30fa17a2dd3e2d39c1" +checksum = "c18baace68a52666d33d12d73ca335ecf27a302202cefb53b1f974512bb72417" dependencies = [ "anyhow", "async-compat", "bytes", "once_cell", - "paste", "static_assertions", ] [[package]] name = "uniffi_internal_macros" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9dba1d78b9ce429439891089c223478043d52a1c3176a0fcea2b5573a7fcf" +checksum = "f9902d4ed16c65e6c0222241024dd0bfeed07ea3deb7c470eb175e5f5ef406cd" dependencies = [ "quote", "syn 2.0.99", @@ -4480,9 +4479,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78dd5f8eefba5898b901086f5e7916da67b9a5286a01cc44e910cd75fa37c630" +checksum = "9d82c82ef945c51082d8763635334b994e63e77650f09d0fae6d28dd08b1de83" dependencies = [ "camino", "fs-err", @@ -4497,9 +4496,9 @@ dependencies = [ [[package]] name = "uniffi_meta" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5965b1d4ffacef1eaa72fef9c00d2491641e87ad910f6c5859b9c503ddb16a" +checksum = "8d6027b971c2aa86350dd180aee9819729c7b99bacd381534511ff29d2c09cea" dependencies = [ "anyhow", "siphasher 0.3.11", @@ -4508,9 +4507,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.29.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279b82bac9a382c796a0d210bb8354a0b813499b28aa1de046c85d78ca389805" +checksum = "52300b7a4ab02dc159a038a13d5bfe27aefbad300d91b0b501b3dda094c1e0a2" dependencies = [ "anyhow", "textwrap", @@ -4749,7 +4748,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/blocksuite/affine/all/package.json b/blocksuite/affine/all/package.json index 3aa24df10a..2c2cb413e6 100644 --- a/blocksuite/affine/all/package.json +++ b/blocksuite/affine/all/package.json @@ -163,6 +163,6 @@ "version": "0.20.0", "devDependencies": { "@vanilla-extract/vite-plugin": "^5.0.0", - "vitest": "3.0.8" + "vitest": "3.0.9" } } diff --git a/blocksuite/affine/blocks/block-embed/package.json b/blocksuite/affine/blocks/block-embed/package.json index 3ec0992dc7..374c06b39c 100644 --- a/blocksuite/affine/blocks/block-embed/package.json +++ b/blocksuite/affine/blocks/block-embed/package.json @@ -34,7 +34,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/block-list/package.json b/blocksuite/affine/blocks/block-list/package.json index f938152bbd..706c320f16 100644 --- a/blocksuite/affine/blocks/block-list/package.json +++ b/blocksuite/affine/blocks/block-list/package.json @@ -30,7 +30,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/blocks/block-surface/package.json b/blocksuite/affine/blocks/block-surface/package.json index 6123a5d4e4..dd09f17910 100644 --- a/blocksuite/affine/blocks/block-surface/package.json +++ b/blocksuite/affine/blocks/block-surface/package.json @@ -32,7 +32,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/affine/shared/package.json b/blocksuite/affine/shared/package.json index e18f1f16d0..d3bea7189e 100644 --- a/blocksuite/affine/shared/package.json +++ b/blocksuite/affine/shared/package.json @@ -67,7 +67,7 @@ "!dist/__tests__" ], "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "version": "0.20.0" } diff --git a/blocksuite/framework/block-std/package.json b/blocksuite/framework/block-std/package.json index 90fda8a69b..89498d193a 100644 --- a/blocksuite/framework/block-std/package.json +++ b/blocksuite/framework/block-std/package.json @@ -33,7 +33,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/framework/global/package.json b/blocksuite/framework/global/package.json index 8fbecef8f2..824d88946c 100644 --- a/blocksuite/framework/global/package.json +++ b/blocksuite/framework/global/package.json @@ -62,7 +62,7 @@ "zod": "^3.23.8" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "version": "0.20.0" } diff --git a/blocksuite/framework/store/package.json b/blocksuite/framework/store/package.json index 26e1bc72fc..54fa218bdb 100644 --- a/blocksuite/framework/store/package.json +++ b/blocksuite/framework/store/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/lodash.clonedeep": "^4.5.9", "@types/lodash.merge": "^4.6.9", - "vitest": "3.0.8" + "vitest": "3.0.9" }, "exports": { ".": "./src/index.ts", diff --git a/blocksuite/framework/sync/package.json b/blocksuite/framework/sync/package.json index d2b9988a6e..6e7abefd88 100644 --- a/blocksuite/framework/sync/package.json +++ b/blocksuite/framework/sync/package.json @@ -19,7 +19,7 @@ "y-protocols": "^1.0.6" }, "devDependencies": { - "vitest": "3.0.8" + "vitest": "3.0.9" }, "peerDependencies": { "yjs": "*" diff --git a/blocksuite/integration-test/package.json b/blocksuite/integration-test/package.json index 7753c4b8ff..5f7a36ddd7 100644 --- a/blocksuite/integration-test/package.json +++ b/blocksuite/integration-test/package.json @@ -42,7 +42,7 @@ "vite": "^6.1.0", "vite-plugin-istanbul": "^7.0.0", "vite-plugin-wasm": "^3.4.1", - "vitest": "3.0.8" + "vitest": "3.0.9" }, "version": "0.20.0" } diff --git a/docs/reference/package.json b/docs/reference/package.json index 5b38ee796c..e3d6df49fe 100644 --- a/docs/reference/package.json +++ b/docs/reference/package.json @@ -9,7 +9,7 @@ "devDependencies": { "nodemon": "^3.1.7", "serve": "^14.2.4", - "typedoc": "^0.27.4" + "typedoc": "^0.28.0" }, "nodemonConfig": { "watch": [ diff --git a/package.json b/package.json index 0b51b85155..fd252a91b3 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@faker-js/faker": "^9.3.0", "@istanbuljs/schema": "^0.1.3", "@magic-works/i18n-codegen": "^0.6.1", - "@playwright/test": "=1.51.0", + "@playwright/test": "=1.51.1", "@smarttools/eslint-plugin-rxjs": "^1.0.8", "@swc/core": "^1.10.1", "@taplo/cli": "^0.7.0", @@ -64,9 +64,9 @@ "@types/node": "^22.0.0", "@typescript-eslint/parser": "^8.18.0", "@vanilla-extract/vite-plugin": "^5.0.0", - "@vitest/browser": "3.0.8", - "@vitest/coverage-istanbul": "3.0.8", - "@vitest/ui": "3.0.8", + "@vitest/browser": "3.0.9", + "@vitest/coverage-istanbul": "3.0.9", + "@vitest/ui": "3.0.9", "cross-env": "^7.0.3", "electron": "^35.0.0", "eslint": "^9.16.0", @@ -90,7 +90,7 @@ "typescript-eslint": "^8.18.0", "unplugin-swc": "^1.5.1", "vite": "^6.0.3", - "vitest": "3.0.8" + "vitest": "3.0.9" }, "packageManager": "yarn@4.7.0", "resolutions": { diff --git a/packages/backend/server/package.json b/packages/backend/server/package.json index 8c36836b72..ea31cf4549 100644 --- a/packages/backend/server/package.json +++ b/packages/backend/server/package.json @@ -63,7 +63,7 @@ "@opentelemetry/semantic-conventions": "^1.28.0", "@prisma/client": "^5.22.0", "@prisma/instrumentation": "^5.22.0", - "@react-email/components": "0.0.33", + "@react-email/components": "0.0.34", "@socket.io/redis-adapter": "^8.3.0", "ai": "^4.1.51", "bullmq": "^5.40.2", diff --git a/packages/backend/server/src/__tests__/__snapshots__/mails.spec.ts.md b/packages/backend/server/src/__tests__/__snapshots__/mails.spec.ts.md index e3e731d1dd..6625f1e49c 100644 --- a/packages/backend/server/src/__tests__/__snapshots__/mails.spec.ts.md +++ b/packages/backend/server/src/__tests__/__snapshots__/mails.spec.ts.md @@ -21,7 +21,7 @@ Generated by [AVA](https://avajs.dev).
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Sign in to AFFiNE Cloud␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You are signing in to AFFiNE. Here is your code:␊
␊␊
+ style="font-size:15px;font-weight:400;line-height:24px;font-family:Inter, Arial, Helvetica, sans-serif;margin-top:24px;margin-bottom:0;color:#141414;white-space:nowrap;border:1px solid rgba(0,0,0,.1);padding:8px 10px;border-radius:4px;background-color:#F5F5F5">␊
123456␊
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Alternatively, you can sign in directly by clicking the magic␊ link below:␊
␊ @@ -98,7 +98,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ This code and link will expire in 30 minutes.␊
␊ @@ -153,7 +153,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Sign up to AFFiNE Cloud␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You are signing up to AFFiNE. Here is your code:␊
␊␊
+ style="font-size:15px;font-weight:400;line-height:24px;font-family:Inter, Arial, Helvetica, sans-serif;margin-top:24px;margin-bottom:0;color:#141414;white-space:nowrap;border:1px solid rgba(0,0,0,.1);padding:8px 10px;border-radius:4px;background-color:#F5F5F5">␊
123456␊
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Alternatively, you can sign up directly by clicking the magic␊ link below:␊
␊ @@ -230,7 +230,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ This code and link will expire in 30 minutes.␊
␊ @@ -285,7 +285,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Set your AFFiNE password␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Click the button below to set your password. The magic link will␊ expire in 30 minutes.␊
␊ @@ -330,7 +330,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Modify your AFFiNE password␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Click the button below to reset your password. The magic link␊ will expire in 30 minutes.␊
␊ @@ -411,7 +411,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Verify your email address␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You recently requested to verify the email address associated␊
with your AFFiNE account.
To complete this process, please␊
click on the verification link below.␊
@@ -492,7 +492,7 @@ Generated by [AVA](https://avajs.dev).
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ This magic link will expire in␊ 30 minutes.␊
␊ @@ -510,7 +510,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Verify your current email for AFFiNE␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You recently requested to change the email address associated␊
with your AFFiNE account.
To complete this process, please␊
click on the verification link below.␊
@@ -591,7 +591,7 @@ Generated by [AVA](https://avajs.dev).
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ This magic link will expire in␊ 30 minutes.␊
␊ @@ -609,7 +609,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Verify your new email address␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You recently requested to change the email address associated␊ with your AFFiNE account. To complete this process, please click␊ on the verification link below. This magic link will expire in␊ @@ -692,7 +692,7 @@ Generated by [AVA](https://avajs.dev).
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Verify your current email for AFFiNE␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ As per your request, we have changed your email. Please make sure␊ you're using␊ test@affine.pro to log in the␊ @@ -777,7 +777,7 @@ Generated by [AVA](https://avajs.dev).
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You are invited!␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
test@test.com invited you␊
to join␊
␊
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Click button to join this workspace␊
␊␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ test@test.com␊ accepted your invitation␊
␊ @@ -903,7 +903,7 @@ Generated by [AVA](https://avajs.dev).␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
test@test.com has joined␊
␊
␊
+ style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Member left␊
␊
␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
test@test.com has left workspace␊
␊
␊
+ style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Request to join␊
␊
␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
test@test.com has requested␊
to join␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Welcome to the workspace!␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your request to join␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Request declined␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your request to join␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Workspace access removed␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You have been removed from␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Ownership transferred␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You have transferred ownership of␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Welcome, new workspace owner!␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You have been assigned as the owner of
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You are mentioned!␊
␊␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ test@test.com mentioned you␊ in␊ ␊ ␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Welcome to the team workspace!␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ You've been promoted to admin.␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You have been promoted to admin of␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Role update in workspace␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your role in␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Urgent: Last chance to prevent data loss␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your␊
␊
Renew your subscription to restore team features␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Take action to prevent data loss␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your␊
␊
Renew your subscription to restore team features␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Workspace data deleted␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
All data in␊
␊
␊ + style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Thank you for your support of AFFiNE. We hope to see you again␊ in the future.␊
␊ @@ -2029,7 +2029,7 @@ Generated by [AVA](https://avajs.dev).␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Team workspace will expire soon␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Team workspace expired␊
␊␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
Your␊
␊
␊
␊ + style="font-size:20px;line-height:28px;margin-bottom:0;margin-top:24px;font-weight:600;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊ Here is your license key.␊
␊␊
+ style="font-size:15px;font-weight:400;line-height:24px;font-family:Inter, Arial, Helvetica, sans-serif;margin-top:24px;margin-bottom:0;color:#141414;white-space:nowrap;border:1px solid rgba(0,0,0,.1);padding:8px 10px;border-radius:4px;background-color:#F5F5F5">␊
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx␊
␊
+ style="font-size:15px;line-height:24px;margin-bottom:0;margin-top:24px;font-weight:400;font-family:Inter, Arial, Helvetica, sans-serif;color:#141414">␊
You can use this key to upgrade your selfhost workspace in␊
Settings > Workspace > License {
style={{
backgroundColor: '#fafafa',
maxWidth: '450px',
- margin: '0 auto 32px auto',
+ marginTop: '0',
+ marginBottom: '32px',
borderRadius: '0 0 16px 16px',
boxShadow: '0px 0px 20px 0px rgba(66, 65, 73, 0.04)',
padding: '24px',
diff --git a/packages/backend/server/src/mails/components/template.tsx b/packages/backend/server/src/mails/components/template.tsx
index b09e641ea0..b4e40d86cd 100644
--- a/packages/backend/server/src/mails/components/template.tsx
+++ b/packages/backend/server/src/mails/components/template.tsx
@@ -10,19 +10,11 @@ import {
Section,
Text as EmailText,
} from '@react-email/components';
-import type { CSSProperties, PropsWithChildren } from 'react';
+import type { PropsWithChildren } from 'react';
+import { BasicTextStyle } from './common';
import { Footer } from './footer';
-const BasicTextStyle: CSSProperties = {
- fontSize: '15px',
- fontWeight: '400',
- lineHeight: '24px',
- fontFamily: 'Inter, Arial, Helvetica, sans-serif',
- margin: '24px 0 0',
- color: '#141414',
-};
-
export function Title(props: PropsWithChildren) {
return (