Skip to content

Commit

Permalink
feat: bump blocksuite (#7526)
Browse files Browse the repository at this point in the history
  • Loading branch information
donteatfriedrice authored Jul 17, 2024
1 parent ade8db2 commit ccac7a8
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 99 deletions.
4 changes: 2 additions & 2 deletions packages/common/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"type": "module",
"devDependencies": {
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/global": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/store": "0.16.0-canary-202407170801-6efe525",
"react": "18.3.1",
"react-dom": "18.3.1",
"vitest": "1.6.0"
Expand Down
10 changes: 5 additions & 5 deletions packages/common/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/blocks": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/blocks": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/global": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/store": "0.16.0-canary-202407170801-6efe525",
"@datastructures-js/binary-search-tree": "^5.3.2",
"foxact": "^0.2.33",
"fuse.js": "^7.0.0",
Expand All @@ -33,8 +33,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/block-std": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/presets": "0.16.0-canary-202407170801-6efe525",
"@testing-library/react": "^16.0.0",
"async-call-rpc": "^6.4.0",
"fake-indexeddb": "^6.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/frontend/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@blocksuite/block-std": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/blocks": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/block-std": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/blocks": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/global": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/icons": "2.1.58",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/store": "0.16.0-canary-202407170801-6efe525",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
Expand Down
12 changes: 6 additions & 6 deletions packages/frontend/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"@affine/graphql": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/block-std": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/blocks": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/block-std": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/blocks": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/global": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/icons": "2.1.58",
"@blocksuite/inline": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/inline": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/presets": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/store": "0.16.0-canary-202407170801-6efe525",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { BlockSpec } from '@blocksuite/block-std';
import {
EdgelessNoteBlockSpec,
EdgelessSurfaceBlockSpec,
EdgelessSurfaceRefBlockSpec,
EdgelessTextBlockSpec,
Expand All @@ -15,6 +16,7 @@ export const EdgelessModeSpecs: BlockSpec[] = [
EdgelessSurfaceRefBlockSpec,
FrameBlockSpec,
EdgelessTextBlockSpec,
EdgelessNoteBlockSpec,
// special
CustomEdgelessRootBlockSpec,
];
8 changes: 4 additions & 4 deletions packages/frontend/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"@affine/env": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/block-std": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/blocks": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/block-std": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/blocks": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/presets": "0.16.0-canary-202407170801-6efe525",
"@blocksuite/store": "0.16.0-canary-202407170801-6efe525",
"@electron-forge/cli": "^7.3.0",
"@electron-forge/core": "^7.3.0",
"@electron-forge/core-utils": "^7.3.0",
Expand Down
8 changes: 4 additions & 4 deletions tests/affine-local/e2e/peek-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test('can open peek view for embedded frames', async ({ page }) => {

// select the note
await page
.locator('affine-note:has-text("Test Frame")')
.locator('affine-edgeless-note:has-text("Test Frame")')
.click({ force: true });
// enter F to create a frame
await page.keyboard.press('f');
Expand Down Expand Up @@ -148,7 +148,7 @@ test('can open peek view for embedded frames', async ({ page }) => {

// check if page is in edgeless mode
await expect(
page.locator('edgeless-editor').locator('edgeless-block-portal-frame')
page.locator('edgeless-editor').locator('affine-frame')
).toBeInViewport();

// close peek view
Expand All @@ -161,7 +161,7 @@ test('can open peek view for embedded frames', async ({ page }) => {

// check if page is in edgeless mode
await expect(
page.locator('edgeless-editor').locator('edgeless-block-portal-frame')
page.locator('edgeless-editor').locator('affine-frame')
).toBeInViewport();

// close peek view
Expand All @@ -171,7 +171,7 @@ test('can open peek view for embedded frames', async ({ page }) => {
await page.locator('affine-surface-ref .affine-surface-ref').dblclick();
// check if page is in edgeless mode
await expect(
page.locator('edgeless-editor').locator('edgeless-block-portal-frame')
page.locator('edgeless-editor').locator('affine-frame')
).toBeInViewport();

// can close modal when navigate
Expand Down
12 changes: 8 additions & 4 deletions tests/affine-local/e2e/undo-empty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ test('should be able to undo on empty page', async ({ page }) => {
await page.keyboard.press('ControlOrMeta+Z');

// test editor still work
await page.locator('affine-note').click({ force: true });
await page.locator('affine-note').click({ force: true });
await page.locator('affine-note').pressSequentially('test text');
await expect(page.locator('affine-note')).toContainText('test text');
await page.locator('.affine-note-block-container').click({ force: true });
await page.locator('.affine-note-block-container').click({ force: true });
await page
.locator('.affine-note-block-container')
.pressSequentially('test text');
await expect(page.locator('.affine-note-block-container')).toContainText(
'test text'
);
});
2 changes: 1 addition & 1 deletion tools/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@aws-sdk/client-s3": "3.614.0",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407170801-6efe525",
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.7.0",
"@magic-works/i18n-codegen": "^0.6.0",
Expand Down
Loading

0 comments on commit ccac7a8

Please sign in to comment.