Compare commits

...

76 Commits

Author SHA1 Message Date
Peng Xiao
de951c8779 fix(core): enable page history for beta/stable (#5415) 2023-12-27 14:39:59 +08:00
EYHN
fd37026ca5 fix(component): fix font display on safari (#5393)
before

![CleanShot 2023-12-25 at 13.09.26.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/4fe08951-67bb-4050-ba14-94391db1cac1.png)

after

![CleanShot 2023-12-25 at 13.09.13.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/fbfb17ec-b871-4746-9d3c-d24f850ecca1.png)
2023-12-27 14:39:50 +08:00
JimmFly
4fd5812a89 fix(core): avatars are not aligned (#5404) 2023-12-26 20:43:08 +08:00
Peng Xiao
d01e987ecc fix(core): trash page footer display issue (#5402)
Before

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/eb5e5b18-c4a2-469b-8763-be34c39ba736.png)

After

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/7b3ef339-0cb5-44fe-9e75-cec0e97d28b7.png)
2023-12-26 20:42:54 +08:00
Joooye_34
d87c218c0b fix(electron): set stable base url to app.affine.pro (#5401)
close TOV-282
2023-12-26 20:42:41 +08:00
Peng Xiao
a5bf5cc244 fix(core): about setting blink issue (#5399) 2023-12-26 20:42:33 +08:00
Peng Xiao
16bcd6e76b fix(core): workpace list blink issue on open (#5400) 2023-12-26 20:42:19 +08:00
JimmFly
2e2ace8472 chore(core): add background color to questionnaire (#5396) 2023-12-26 20:42:06 +08:00
Cats Juice
37cff8fe8d fix(core): correct title of onboarding article-2 (#5387) 2023-12-26 20:41:58 +08:00
DarkSky
70ab3b4916 fix: use prefix in electron to prevent formdata bug (#5395) 2023-12-26 20:41:47 +08:00
EYHN
f42ba54578 fix(core): fix flickering workspace list (#5391) 2023-12-26 20:41:36 +08:00
EYHN
a67c8181fc fix(workspace): fix svg file with xml header (#5388) 2023-12-26 20:41:28 +08:00
regischen
613efbded9 feat: bump blocksuite (#5386) 2023-12-26 20:41:18 +08:00
李华桥
549419d102 Merge branch 'canary' into stable 2023-12-22 16:29:51 +08:00
李华桥
21c42f8771 Merge branch 'canary' into stable 2023-12-22 01:29:30 +08:00
李华桥
9012adda7a Merge branch 'canary' into stable 2023-12-21 18:42:56 +08:00
李华桥
fb442e9055 Merge branch 'canary' into stable 2023-12-21 16:22:57 +08:00
李华桥
a231474dd2 Merge branch 'canary' into stable 2023-12-21 14:26:01 +08:00
李华桥
833b42000b Merge branch 'canary' into stable 2023-12-20 16:36:44 +08:00
李华桥
7690c48710 Merge branch 'canary' into stable 2023-12-20 16:32:36 +08:00
DarkSky
579828a700 fix: use secure websocket (#5297) 2023-12-13 22:28:04 +08:00
DarkSky
746db2ccfc feat: only follow serverUrlPrefix at redirect to client (#5295) 2023-12-13 20:37:20 +08:00
李华桥
eff344a9c1 Merge branch 'canary' into stable 2023-12-12 16:45:47 +08:00
李华桥
c89ebab596 Merge branch 'canary' into stable 2023-12-12 11:04:33 +08:00
liuyi
62f4421b7c fix(server): avoid updates persist forever (#5258) 2023-12-11 17:42:25 +08:00
李华桥
42383dbd29 Merge branch 'canary' into stable 2023-12-10 21:04:15 +08:00
李华桥
120e7397ba Merge branch 'canary' into stable 2023-12-01 16:12:17 +08:00
李华桥
24123ad01c Revert "Revert "Merge remote-tracking branch 'origin/canary' into stable""
This reverts commit 89197bacef.
2023-12-01 13:29:43 +08:00
李华桥
ad50320391 v0.10.3 2023-12-01 12:52:15 +08:00
李华桥
eb21a60dda v0.10.3-beta.7 2023-12-01 12:12:20 +08:00
Joooye_34
c0e3be2d40 fix(core): rerender error boundary when route change and improve sentry report (#5147) 2023-12-01 04:04:44 +00:00
李华桥
09d3b72358 v0.10.3-beta.6 2023-11-30 23:02:26 +08:00
Joooye_34
246e16c6c0 fix(infra): compatibility logic follow blocksuite (#5143) 2023-11-30 23:01:38 +08:00
李华桥
dc279d062b v0.10.3-beta.5 2023-11-30 16:49:55 +08:00
Joooye_34
47d5f9e1c2 fix(infra): use blocksuite api to check compatibility (#5137) 2023-11-30 08:48:13 +00:00
Joooye_34
a226eb8d5f fix(core): expose catched editor load error (#5133) 2023-11-29 20:31:35 +08:00
Joooye_34
908c4e1a6f ci: add sentry env when frontend assets build (#5131) 2023-11-29 10:03:49 +00:00
李华桥
1d0bcc80a0 v0.10.3-beta.4 2023-11-29 16:14:06 +08:00
Joooye_34
50010bd824 fix(core): implement editor timeout and report error from boundary (#5105) 2023-11-29 08:10:38 +00:00
liuyi
c0ede1326d fix(server): wrong OTEL config (#5084) 2023-11-29 11:19:13 +08:00
李华桥
89197bacef Revert "Merge remote-tracking branch 'origin/canary' into stable"
This reverts commit 992ed89a89, reversing
changes made to d272d7922d.
2023-11-29 11:18:45 +08:00
李华桥
f97d323ab5 Revert "Revert "refactor(server): standarderlize metrics and trace with OTEL (#5054)""
This reverts commit c1cd1713b9.
2023-11-29 11:07:28 +08:00
EYHN
2acb219dcc fix(workspace): filter awareness from other workspace (#5093) 2023-11-28 16:47:45 +08:00
LongYinan
992ed89a89 Merge remote-tracking branch 'origin/canary' into stable 2023-11-28 15:12:52 +08:00
李华桥
d272d7922d v0.10.3-beta.2 2023-11-25 23:50:40 +08:00
李华桥
c1cd1713b9 Revert "refactor(server): standarderlize metrics and trace with OTEL (#5054)"
This reverts commit 91efca107a.
2023-11-25 23:50:39 +08:00
李华桥
b20e91bee0 v0.10.3-beta.1 2023-11-25 14:14:40 +08:00
李华桥
9a4e5ec8c3 Merge branch 'canary' into stable 2023-11-25 14:14:14 +08:00
李华桥
2019838ae7 v0.10.3-beta.0 2023-11-24 11:39:23 +08:00
李华桥
30ff25f400 Merge branch 'canary' into stable 2023-11-23 23:40:32 +08:00
李华桥
e766208c18 chore: reset merge wrong codes 2023-11-23 22:53:06 +08:00
李华桥
8742f28148 Merge branch 'canary' into stable 2023-11-23 21:31:42 +08:00
LongYinan
cd291bb60e build: remove useless source-map-loader to speedup webpack (#4910) 2023-11-20 10:52:28 +08:00
LongYinan
62c0efcfd1 fix(core): handle the getSession network error properly (#4909)
If network offline or API error happens, the `session` returned by the `useSession` hook will be null, so we can't assume it is not null.

There should be following changes:
1. create a page in ErrorBoundary to let the user refetch the session.
2. The `SessionProvider` stop to pull the new session once the session is null, we need to figure out a way to pull the new session when the network is back or the user click the refetch button.
2023-11-17 16:50:48 +08:00
liuyi
87248b3337 fix(server): all viewers can share public link (#4968) 2023-11-17 12:34:15 +08:00
Joooye_34
00c940f7df chore: bump affine version to 0.10.2 (#4959) 2023-11-16 15:48:37 +08:00
Flrande
931b459fbd chore: bump blocksuite (#4958) 2023-11-16 14:27:39 +08:00
LongYinan
51e71f4a0a ci: prevent error if rust build is cached by nx (#4951)
If Rust build was cached by nx, only the output file will be presented. The chmod command will be failed in this case like: https://github.com/toeverything/AFFiNE/actions/runs/6874496337/job/18697360212
2023-11-16 10:31:51 +08:00
Peng Xiao
9b631f2328 fix(infra): page id compat fix for page ids in workspace.meta (#4950)
since we strip `page:` in keys of workspacedoc.spaces, we should also strip the prefix in meta.pages as well.
2023-11-15 17:36:08 +08:00
LongYinan
01f481a9b6 ci: only disable postinstall on macOS in nightly desktop build (#4938) 2023-11-14 23:00:30 +08:00
Joooye_34
0177ab5c87 fix(infra): workspace migration without blockVersions (#4936) 2023-11-14 14:38:11 +01:00
Peng Xiao
4db35d341c perf(component): use png instead of svg for rendering noise svg (#4935) 2023-11-14 11:52:51 +00:00
DarkSky
3c4a803c97 fix: change password token check (#4934) (#4932) 2023-11-14 11:15:54 +00:00
LongYinan
05154dc7ca ci: disable postinstall in nightly desktop build (#4930)
Should be part of https://github.com/toeverything/AFFiNE/pull/4885
2023-11-14 14:13:55 +08:00
Peng Xiao
c90b477f60 fix(core): change server url of stable to insider (#4902) (#4926) 2023-11-14 12:05:52 +08:00
李华桥
6f18ddbe85 v0.10.1 2023-11-13 19:49:26 +08:00
LongYinan
dde779a71d test(e2e): add subdoc migration test (#4921)
test(e2e): add subdoc migration test

fix: remove .only
2023-11-13 18:00:40 +08:00
Peng Xiao
bd9f66fbc7 fix(infra): compatibility fix for space prefix (#4912)
It seems there are some cases that [this upstream PR](https://github.com/toeverything/blocksuite/pull/4747) will cause data loss.

Because of some historical reasons, the page id could be different with its doc id.
It might be caused by subdoc migration in the following (not 100% sure if all white screen issue is caused by it) 0714c12703/packages/common/infra/src/blocksuite/index.ts (L538-L540)

In version 0.10, page id in spaces no longer has prefix "space:"
The data flow for fetching a doc's updates is:
- page id in `meta.pages` -> find `${page-id}` in `doc.spaces` -> `doc` -> `doc.guid`
if `doc` is not found in `doc.spaces`, a new doc will be created and its `doc.guid` is the same with its pageId
- because of guid logic change, the doc that previously prefixed with `space:` will not be found in `doc.spaces`
- when fetching the rows of this doc using the doc id === page id,
  it will return EMPTY since there is no updates associated with the page id

The provided fix in the PR will patch the `spaces` field of the root doc so that after 0.10 the page doc can still be found in the `spaces` map. It shall apply to both of the idb & sqlite datasources.

Special thanks to @lawvs 's db file for investigation!
2023-11-13 17:57:56 +08:00
liuyi
92f1f40bfa fix(server): wrap updates applying in a transaction (#4922) 2023-11-13 08:49:30 +00:00
LongYinan
48dc1049b3 Merge pull request #4913 from toeverything/darksky/cleanup-depolyment
chore: cleanup deployment
2023-11-12 11:20:02 +08:00
DarkSky
9add530370 chore: cleanup deployment 2023-11-12 11:03:25 +08:00
LongYinan
b77460d871 Merge pull request #4908 from toeverything/61/hotfix-websocket-payload
fix(server): increase server acceptable websocket payload size
2023-11-10 22:01:48 +08:00
forehalo
42db41776b fix(server): increase server acceptable websocket payload size 2023-11-10 21:31:45 +08:00
李华桥
075439c74f fix(core): change server url of stable to insider 2023-11-10 18:32:53 +08:00
Yifeng Wang
fc6c553ece chore: bump theme (#4904)
Co-authored-by: 李华桥 <joooye1991@gmail.com>
2023-11-10 15:40:38 +08:00
Joooye_34
59cb3d5df1 fix(core): change server url of stable to insider (#4902) 2023-11-10 14:50:57 +08:00
30 changed files with 286 additions and 229 deletions

View File

@@ -3,8 +3,8 @@
"private": true,
"type": "module",
"devDependencies": {
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"react": "18.2.0",
"react-dom": "18.2.0",
"vitest": "1.0.4",

View File

@@ -62,9 +62,9 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/sdk": "workspace:*",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"jotai": "^2.5.1",
"jotai-effect": "^0.2.3",
"tinykeys": "^2.1.0",
@@ -73,8 +73,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@testing-library/react": "^14.0.0",
"async-call-rpc": "^6.3.1",
"electron": "link:../../frontend/electron/node_modules/electron",

View File

@@ -22,11 +22,11 @@
"dist"
],
"dependencies": {
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"jotai": "^2.5.1",
"zod": "^3.22.4"
},

View File

@@ -37,8 +37,8 @@
"y-provider": "workspace:*"
},
"devDependencies": {
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"fake-indexeddb": "^5.0.0",
"vite": "^5.0.6",
"vite-plugin-dts": "3.6.0",

View File

@@ -24,7 +24,7 @@
"build": "vite build"
},
"devDependencies": {
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"vite": "^5.0.6",
"vite-plugin-dts": "3.6.0",
"vitest": "1.0.4",

View File

@@ -72,12 +72,12 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/icons": "2.1.36",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",

View File

@@ -7,6 +7,7 @@ export const scrollableContainer = style({
alignItems: 'center',
height: '100vh',
padding: '0 200px',
backgroundColor: 'var(--affine-background-primary-color)',
'@media': {
'screen and (max-width: 1024px)': {
padding: '80px 36px',

View File

@@ -5,6 +5,7 @@
font-family: 'Inter';
font-display: swap;
src: url(../fonts/inter/Inter-VariableFont_slnt,wght.ttf);
font-weight: 1 999;
}
/*

View File

@@ -31,7 +31,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {
enableCaptcha: true,
enableEnhanceShareMode: false,
enablePayment: true,
enablePageHistory: false,
enablePageHistory: true,
enableCopilot: false,
serverUrlPrefix: 'https://app.affine.pro',
editorFlags,
@@ -42,7 +42,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {
get beta() {
return {
...this.stable,
enablePageHistory: false,
enablePageHistory: true,
enableCopilot: false,
serverUrlPrefix: 'https://insider.affine.pro',
appBuildType: 'beta' as const,

View File

@@ -25,14 +25,14 @@
"@affine/i18n": "workspace:*",
"@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/icons": "2.1.36",
"@blocksuite/inline": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/inline": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0",

View File

@@ -8,12 +8,7 @@ import { BlogLink } from './blog-link';
export const article2: Array<OnboardingBlockOption> = [
{
children: (
<h1>
Learning with earning with
<br /> retrieval practice
</h1>
),
children: <h1>Learning with retrieval practice</h1>,
offset: { x: -824, y: 0 },
},
{
@@ -150,14 +145,14 @@ export const article2: Array<OnboardingBlockOption> = [
{
children: <img draggable={false} width={380} src={embed1png} />,
edgelessOnly: true,
position: { x: -300, y: 0 },
position: { x: -200, y: -50 },
fromPosition: { x: 300, y: -300 },
},
{
children: <img draggable={false} width={309} src={note1png} />,
edgelessOnly: true,
position: { x: -360, y: -20 },
position: { x: -260, y: -70 },
fromPosition: { x: -360, y: -100 },
enterDelay: 300,
customStyle: {
@@ -170,7 +165,7 @@ export const article2: Array<OnboardingBlockOption> = [
{
children: <img draggable={false} width={1800} src={note2png} />,
edgelessOnly: true,
position: { x: 0, y: 0 },
position: { x: 50, y: 0 },
fromPosition: { x: 2000, y: -2000 },
},
];

View File

@@ -158,7 +158,7 @@ const paperBriefs = {
'2': (
<div className={articleWrapper}>
<article className={article}>
<h1 className={title}>Learning with earning with retrieval practice</h1>
<h1 className={title}>Learning with retrieval practice</h1>
<p className={text}>
Are there any specific techniques to make the process of learning more
effective?

View File

@@ -126,20 +126,20 @@ export const SettingModal = ({
>
<div ref={modalContentRef} className={style.centerContainer}>
<div className={style.content}>
{activeTab === 'workspace' && workspaceMetadata ? (
<Suspense fallback={<WorkspaceDetailSkeleton />}>
<Suspense fallback={<WorkspaceDetailSkeleton />}>
{activeTab === 'workspace' && workspaceMetadata ? (
<WorkspaceSetting
key={workspaceMetadata.id}
workspaceMetadata={workspaceMetadata}
/>
</Suspense>
) : null}
{generalSettingList.some(v => v.key === activeTab) ? (
<GeneralSetting generalKey={activeTab as GeneralSettingKeys} />
) : null}
{activeTab === 'account' && loginStatus === 'authenticated' ? (
<AccountSetting />
) : null}
) : null}
{generalSettingList.some(v => v.key === activeTab) ? (
<GeneralSetting generalKey={activeTab as GeneralSettingKeys} />
) : null}
{activeTab === 'account' && loginStatus === 'authenticated' ? (
<AccountSetting />
) : null}
</Suspense>
</div>
<div className={style.footer}>
<a

View File

@@ -1,4 +1,3 @@
import { styled } from '@affine/component';
import { Button } from '@affine/component/ui/button';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { ChangeEvent, PropsWithChildren } from 'react';
@@ -42,7 +41,7 @@ export const Upload = ({
}
return (
<UploadStyle onClick={_chooseFile}>
<div style={{ display: 'flex' }} onClick={_chooseFile}>
{children ?? <Button>{t['Upload']()}</Button>}
<input
ref={input_ref}
@@ -52,12 +51,6 @@ export const Upload = ({
accept={accept}
{...props}
/>
</UploadStyle>
</div>
);
};
const UploadStyle = styled('div')(() => {
return {
display: 'inline-block',
};
});

View File

@@ -17,13 +17,6 @@ export const deleteHintContainer = style({
gap: '16px',
backgroundColor: 'var(--affine-background-primary-color)',
borderTop: '1px solid var(--affine-border-color)',
selectors: {
'&[data-has-background="false"]': {
backgroundColor: 'transparent',
borderTop: 'none',
padding: '14px 0',
},
},
});
export const deleteHintText = style({
fontSize: '15px',

View File

@@ -30,7 +30,7 @@ import { useAsyncCallback } from '@toeverything/hooks/affine-async-hooks';
import { useAtom, useAtomValue } from 'jotai';
import { nanoid } from 'nanoid';
import type { HTMLAttributes, ReactElement } from 'react';
import { forwardRef, useCallback, useEffect, useMemo } from 'react';
import { forwardRef, Suspense, useCallback, useEffect, useMemo } from 'react';
import { openWorkspaceListModalAtom } from '../../atoms';
import { useHistoryAtom } from '../../atoms/history';
@@ -218,7 +218,11 @@ export const RootAppSidebar = ({
rootOptions={{
open: openUserWorkspaceList,
}}
items={<UserWithWorkspaceList onEventEnd={closeUserWorkspaceList} />}
items={
<Suspense>
<UserWithWorkspaceList onEventEnd={closeUserWorkspaceList} />
</Suspense>
}
contentOptions={{
// hide trigger
sideOffset: -58,

View File

@@ -1,7 +1,8 @@
import { Menu } from '@affine/component/ui/menu';
import { WorkspaceFallback } from '@affine/component/workspace';
import { workspaceListAtom } from '@affine/workspace/atom';
import { useAtomValue } from 'jotai';
import { lazy, useEffect } from 'react';
import { lazy, useEffect, useLayoutEffect, useState } from 'react';
import { type LoaderFunction, redirect } from 'react-router-dom';
import { createFirstAppData } from '../bootstrap/first-app-data';
@@ -24,10 +25,14 @@ export const loader: LoaderFunction = async () => {
};
export const Component = () => {
// navigating and creating may be slow, to avoid flickering, we show workspace fallback
const [navigating, setNavigating] = useState(false);
const [creating, setCreating] = useState(false);
const list = useAtomValue(workspaceListAtom);
const { openPage } = useNavigateHelper();
useEffect(() => {
useLayoutEffect(() => {
if (list.length === 0) {
return;
}
@@ -36,14 +41,24 @@ export const Component = () => {
const lastId = localStorage.getItem('last_workspace_id');
const openWorkspace = list.find(w => w.id === lastId) ?? list[0];
openPage(openWorkspace.id, WorkspaceSubPath.ALL);
setNavigating(true);
}, [list, openPage]);
useEffect(() => {
createFirstAppData().catch(err => {
console.error('Failed to create first app data', err);
});
setCreating(true);
createFirstAppData()
.catch(err => {
console.error('Failed to create first app data', err);
})
.finally(() => {
setCreating(false);
});
}, []);
if (navigating || creating) {
return <WorkspaceFallback></WorkspaceFallback>;
}
// TODO: We need a no workspace page
return (
<>

View File

@@ -32,10 +32,10 @@
"@affine/sdk": "workspace:*",
"@affine/templates": "workspace:*",
"@affine/vue-hello-world-plugin": "workspace:*",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@electron-forge/cli": "^7.2.0",
"@electron-forge/core": "^7.2.0",
"@electron-forge/core-utils": "^7.2.0",

View File

@@ -24,7 +24,7 @@ export const mode = process.env.NODE_ENV;
export const isDev = mode === 'development';
const API_URL_MAPPING = {
stable: `https://insider.affine.pro`, // Let insider be stable environment temporarily.
stable: `https://app.affine.pro`,
beta: `https://insider.affine.pro`,
canary: `https://affine.fail`,
internal: `https://insider.affine.pro`,

View File

@@ -20,12 +20,12 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/workspace": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@testing-library/react": "^14.0.0",
"@toeverything/infra": "workspace:*",
"@types/image-blob-reduce": "^4.1.3",

View File

@@ -10,6 +10,14 @@ import { fetcher } from '../../affine/gql';
import type { BlobStorage } from '../../engine/blob';
import { bufferToBlob } from '../../utils/buffer-to-blob';
function getBaseUrl(): string {
if (environment.isDesktop) {
return runtimeConfig.serverUrlPrefix;
}
const { protocol, hostname, port } = window.location;
return `${protocol}//${hostname}${port ? `:${port}` : ''}`;
}
export const createAffineCloudBlobStorage = (
workspaceId: string
): BlobStorage => {
@@ -21,7 +29,7 @@ export const createAffineCloudBlobStorage = (
? key
: `/api/workspaces/${workspaceId}/blobs/${key}`;
return fetchWithTraceReport(suffix).then(async res => {
return fetchWithTraceReport(getBaseUrl() + suffix).then(async res => {
if (!res.ok) {
// status not in the range 200-299
return null;

View File

@@ -9,5 +9,10 @@ describe('isSvgBuffer', () => {
expect(isSvgBuffer(Buffer.from('<svg></svg>'))).toBe(true);
expect(isSvgBuffer(Buffer.from(' \n\r\t<svg></svg>'))).toBe(true);
expect(isSvgBuffer(Buffer.from('<123>'))).toBe(false);
expect(
isSvgBuffer(
Buffer.from('<?xml version="1.0" encoding="UTF-8"?><svg></svg>')
)
).toBe(true);
});
});

View File

@@ -1,7 +1,7 @@
import isSvg from 'is-svg';
function fastCheckIsNotSvg(buffer: Uint8Array) {
// check first non-whitespace character is not '<svg'
// check first non-whitespace character is not '<svg' or '<?xml'
for (let i = 0; i < buffer.length; i++) {
const ch = buffer[i];
@@ -18,11 +18,20 @@ function fastCheckIsNotSvg(buffer: Uint8Array) {
continue;
}
return !(
buffer[i] === /* '<' */ 0x3c &&
buffer[i + 1] === /* 's' */ 0x73 &&
buffer[i + 2] === /* 'v' */ 0x76 &&
buffer[i + 3] === /* 'g' */ 0x67
return (
!(
buffer[i] === /* '<' */ 0x3c &&
buffer[i + 1] === /* 's' */ 0x73 &&
buffer[i + 2] === /* 'v' */ 0x76 &&
buffer[i + 3] === /* 'g' */ 0x67
) &&
!(
buffer[i] === /* '<' */ 0x3c &&
buffer[i + 1] === /* '?' */ 0x3f &&
buffer[i + 2] === /* 'x' */ 0x78 &&
buffer[i + 3] === /* 'm' */ 0x6d &&
buffer[i + 4] === /* 'l' */ 0x6c
)
);
}

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -7,10 +7,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@playwright/test": "^1.39.0"
},
"version": "0.11.0"

View File

@@ -31,14 +31,14 @@
"wait-on": "^7.2.0"
},
"devDependencies": {
"@blocksuite/block-std": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/blocks": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/global": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/icons": "2.1.36",
"@blocksuite/inline": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/lit": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/presets": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/store": "0.11.0-nightly-202312212326-e2b48df",
"@blocksuite/inline": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@dnd-kit/sortable": "^8.0.0",
"@tomfreudenberg/next-auth-mock": "^0.5.6",
"chromatic": "^9.1.0",

257
yarn.lock
View File

@@ -25,10 +25,10 @@ __metadata:
dependencies:
"@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -42,10 +42,10 @@ __metadata:
dependencies:
"@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -59,10 +59,10 @@ __metadata:
dependencies:
"@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -76,10 +76,10 @@ __metadata:
dependencies:
"@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@playwright/test": "npm:^1.39.0"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^3.0.0-beta.1"
@@ -138,10 +138,10 @@ __metadata:
dependencies:
"@affine-test/fixtures": "workspace:*"
"@affine-test/kit": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@playwright/test": "npm:^1.39.0"
languageName: unknown
linkType: soft
@@ -222,12 +222,12 @@ __metadata:
"@affine/graphql": "workspace:*"
"@affine/i18n": "workspace:*"
"@affine/workspace": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/icons": "npm:2.1.36"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@dnd-kit/core": "npm:^6.0.8"
"@dnd-kit/modifiers": "npm:^7.0.0"
"@dnd-kit/sortable": "npm:^8.0.0"
@@ -351,14 +351,14 @@ __metadata:
"@affine/templates": "workspace:*"
"@affine/workspace": "workspace:*"
"@aws-sdk/client-s3": "npm:3.433.0"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/icons": "npm:2.1.36"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@dnd-kit/core": "npm:^6.0.8"
"@dnd-kit/sortable": "npm:^8.0.0"
"@emotion/cache": "npm:^11.11.0"
@@ -468,10 +468,10 @@ __metadata:
"@affine/sdk": "workspace:*"
"@affine/templates": "workspace:*"
"@affine/vue-hello-world-plugin": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@electron-forge/cli": "npm:^7.2.0"
"@electron-forge/core": "npm:^7.2.0"
"@electron-forge/core-utils": "npm:^7.2.0"
@@ -520,8 +520,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@affine/env@workspace:packages/common/env"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
lit: "npm:^3.0.2"
react: "npm:18.2.0"
react-dom: "npm:18.2.0"
@@ -711,11 +711,11 @@ __metadata:
version: 0.0.0-use.local
resolution: "@affine/sdk@workspace:packages/common/sdk"
dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
jotai: "npm:^2.5.1"
vite: "npm:^5.0.6"
vite-plugin-dts: "npm:3.6.0"
@@ -840,14 +840,14 @@ __metadata:
dependencies:
"@affine/component": "workspace:*"
"@affine/i18n": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/icons": "npm:2.1.36"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@dnd-kit/sortable": "npm:^8.0.0"
"@storybook/addon-actions": "npm:^7.5.3"
"@storybook/addon-essentials": "npm:^7.5.3"
@@ -4077,29 +4077,29 @@ __metadata:
languageName: node
linkType: hard
"@blocksuite/block-std@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/block-std@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
lz-string: "npm:^1.5.0"
w3c-keyname: "npm:^2.2.8"
zod: "npm:^3.22.4"
peerDependencies:
"@blocksuite/store": 0.11.0-nightly-202312212326-e2b48df
checksum: 43302954cd31c745a887d0a4faada527c3b584747b908d07ac98cccbc82ccd31b5ca7e92ee97e2b15aefac095133e6534383b848a686ac33878c4406043e9215
"@blocksuite/store": 0.11.0-nightly-202312220916-e3abcbb
checksum: bb1e7aae8310b09976af186566194eeae50d49518ada0571993d093afed029e8e1487258cc9fdc1b87b4961e05664408fbf7def2ffd01664bd80702481793eca
languageName: node
linkType: hard
"@blocksuite/blocks@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/blocks@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@floating-ui/dom": "npm:^1.5.3"
"@toeverything/theme": "npm:^0.7.27"
"@types/hast": "npm:^3.0.3"
@@ -4133,16 +4133,16 @@ __metadata:
unified: "npm:^11.0.4"
webfontloader: "npm:^1.6.28"
zod: "npm:^3.22.4"
checksum: 48cd02a389317477c866618c898a2d4839fbb4466752c2de295159fd6c073bde903a1fc46ae2ffcf823ce2e0e01cbb49db406ae728c53f27f14ef5e4159b3078
checksum: 4d489d9b07240e10f395889cff888a0827d755be546dcc8a59394ac9562efadb18bc7af395d0fb64d31a14fda1582a0834a3f7f543ca3cfbf6ede063c1db02c7
languageName: node
linkType: hard
"@blocksuite/global@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/global@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/global@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
zod: "npm:^3.22.4"
checksum: 3121af8a225e012b836b94c40923227a9d0b999d7c2f68b7eabcaf15fed77788f662a38d87bba664231d591ac363e9cd48b6f234625b938ae674ca4c372d908f
checksum: 90cadce741fe6917175848637fceddd90f8d18270ce95d92fd7c3035805e5add96dc363a20c6c1d89402f0d932ae0afcbba2d99afe65a624118b57cfdebcb13c
languageName: node
linkType: hard
@@ -4156,56 +4156,57 @@ __metadata:
languageName: node
linkType: hard
"@blocksuite/inline@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/inline@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/inline@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
zod: "npm:^3.22.4"
peerDependencies:
lit: ^3.0.2
yjs: ^13
checksum: 3ccc79d45731ae1d326d79d9dbc5c3c4583c9b6bd7c67b03565eaca3378242df26351283b0b3ced7ba0c9ccc7e343be3413c1490f71e5e9784017db57f5bde92
checksum: 33f68338338981d43304e7408757ede7269bd5eb8be2fe92ec5e5a35dbbc20095fbec9bf26878d7e88484302bd4c466806bdc48c871c97aeab0c2d456fd062ab
languageName: node
linkType: hard
"@blocksuite/lit@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/lit@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
lit: "npm:^3.1.0"
peerDependencies:
"@blocksuite/block-std": 0.11.0-nightly-202312212326-e2b48df
"@blocksuite/store": 0.11.0-nightly-202312212326-e2b48df
checksum: 53d9b672de67a4d2108d132faa76b74f68e6ae926ce6c4e8de9f13f82d34fe19f619a93c1a347ea69833293c3f365d66684b5cdfe5c0ab066d1f9d5e24959512
"@blocksuite/block-std": 0.11.0-nightly-202312220916-e3abcbb
"@blocksuite/store": 0.11.0-nightly-202312220916-e3abcbb
checksum: af7835d4facd1e4a1339ec69a3069c0e49042d76a5af40cd5ad4763f845806b0c95b8464e2a26a74fe92397fd01e928ee30168e7dbbf86d111711c1c8f3503f4
languageName: node
linkType: hard
"@blocksuite/presets@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/presets@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@fal-ai/serverless-client": "npm:^0.7.3"
"@toeverything/theme": "npm:^0.7.27"
lit: "npm:^3.1.0"
openai: "npm:^4.20.1"
checksum: 21d3a8e569b8beb6a3a446a814b2aa131eb2f9315dc436943b58ce702a1d6ffdfcfd6371c0de54b7c45e9821d121002820918ce617a0077c9d495f535bf8345e
checksum: c065ed1ac04eef103170650bdb81af7aca6d8f1b9d72253251397345d908c09e6daf78eed2a408b273caf3d109900ad84f4a60fc54fd6f7b062f93b5e23c92f4
languageName: node
linkType: hard
"@blocksuite/store@npm:0.11.0-nightly-202312212326-e2b48df":
version: 0.11.0-nightly-202312212326-e2b48df
resolution: "@blocksuite/store@npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store@npm:0.11.0-nightly-202312220916-e3abcbb":
version: 0.11.0-nightly-202312220916-e3abcbb
resolution: "@blocksuite/store@npm:0.11.0-nightly-202312220916-e3abcbb"
dependencies:
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/inline": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/inline": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@types/flexsearch": "npm:^0.7.3"
flexsearch: "npm:0.7.21"
idb-keyval: "npm:^6.2.1"
@@ -4218,7 +4219,7 @@ __metadata:
peerDependencies:
async-call-rpc: ^6
yjs: ^13
checksum: 3666801967eb301ca9df5f605bcb27d6e780e8883af5f9bc964898056c4558d5bbdfe12d24c61eb1ea6d3156ab9687ab28f2b9905dc50d7b54b7fbd9d71029a3
checksum: fe615c626b412c5f48406a6617e950f55388e3253540cd02978e3155f3a573adc68539c3b521c40d04da7932eb8a73af30b8262cb34f478fb0b88bc0b28f9153
languageName: node
linkType: hard
@@ -5902,6 +5903,17 @@ __metadata:
languageName: node
linkType: hard
"@fal-ai/serverless-client@npm:^0.7.3":
version: 0.7.4
resolution: "@fal-ai/serverless-client@npm:0.7.4"
dependencies:
"@msgpack/msgpack": "npm:^3.0.0-beta2"
robot3: "npm:^0.4.1"
uuid-random: "npm:^1.3.2"
checksum: 2df2a3de60b637b2cfe57e08429f79e0ac7f604777f7e761839b28795be049e714f3f1f338c4fb35a18e575d4c58b82c7244680877adf5d83094ba6625de4851
languageName: node
linkType: hard
"@fal-works/esbuild-plugin-global-externals@npm:^2.1.2":
version: 2.1.2
resolution: "@fal-works/esbuild-plugin-global-externals@npm:2.1.2"
@@ -7391,6 +7403,13 @@ __metadata:
languageName: node
linkType: hard
"@msgpack/msgpack@npm:^3.0.0-beta2":
version: 3.0.0-beta2
resolution: "@msgpack/msgpack@npm:3.0.0-beta2"
checksum: d02f9221aa152cbd2977d1f56dc591baa2a37420a694cbc7e54ff0724f56ac0523e94de010e56bb845d67a1f2226c1761064b5777e63e9fc26884f4144d391a7
languageName: node
linkType: hard
"@mswjs/cookies@npm:^1.1.0":
version: 1.1.0
resolution: "@mswjs/cookies@npm:1.1.0"
@@ -13744,12 +13763,12 @@ __metadata:
"@affine/debug": "workspace:*"
"@affine/env": "workspace:*"
"@affine/workspace": "workspace:*"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/block-std": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@testing-library/react": "npm:^14.0.0"
"@toeverything/infra": "workspace:*"
"@types/image-blob-reduce": "npm:^4.1.3"
@@ -13800,11 +13819,11 @@ __metadata:
"@affine/env": "workspace:*"
"@affine/sdk": "workspace:*"
"@affine/templates": "workspace:*"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/global": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/lit": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/presets": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/global": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/lit": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/presets": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@testing-library/react": "npm:^14.0.0"
async-call-rpc: "npm:^6.3.1"
electron: "link:../../frontend/electron/node_modules/electron"
@@ -13853,8 +13872,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@toeverything/y-indexeddb@workspace:packages/common/y-indexeddb"
dependencies:
"@blocksuite/blocks": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/blocks": "npm:0.11.0-nightly-202312220916-e3abcbb"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
fake-indexeddb: "npm:^5.0.0"
idb: "npm:^8.0.0"
nanoid: "npm:^5.0.3"
@@ -32668,6 +32687,13 @@ __metadata:
languageName: node
linkType: hard
"robot3@npm:^0.4.1":
version: 0.4.1
resolution: "robot3@npm:0.4.1"
checksum: bab48cf0be9c26caeca0bb11a0c7abac813db67dd76c406cfd9ac828562c1cf504ce3775f87b157eb33ac62cda4763421513ecc6f2780266d19cc0f9590eb3bf
languageName: node
linkType: hard
"rollup-plugin-inject@npm:^3.0.0":
version: 3.0.2
resolution: "rollup-plugin-inject@npm:3.0.2"
@@ -35773,6 +35799,13 @@ __metadata:
languageName: node
linkType: hard
"uuid-random@npm:^1.3.2":
version: 1.3.2
resolution: "uuid-random@npm:1.3.2"
checksum: 9070c876651e1893f9255dddab2edc177ba34196660065be074050e4143405382b7f0f5fb922b666ebfd0794a6ef7b9f6acb627865df7b2978edb0da6b448f1d
languageName: node
linkType: hard
"uuid@npm:9.0.1, uuid@npm:^9.0.0, uuid@npm:^9.0.1":
version: 9.0.1
resolution: "uuid@npm:9.0.1"
@@ -37018,7 +37051,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "y-provider@workspace:packages/common/y-provider"
dependencies:
"@blocksuite/store": "npm:0.11.0-nightly-202312212326-e2b48df"
"@blocksuite/store": "npm:0.11.0-nightly-202312220916-e3abcbb"
vite: "npm:^5.0.6"
vite-plugin-dts: "npm:3.6.0"
vitest: "npm:1.0.4"