Skip to content

Commit

Permalink
chore: bump blocksuite
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Jul 15, 2024
1 parent 7082f7e commit d59fb5e
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 110 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-202407050348-4620c21",
"@blocksuite/store": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"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-202407050348-4620c21",
"@blocksuite/global": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/store": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/blocks": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/global": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@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-202407050348-4620c21",
"@blocksuite/presets": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/block-std": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@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-202407050348-4620c21",
"@blocksuite/blocks": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/global": "0.16.0-canary-202407050348-4620c21",
"@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/icons": "2.1.58",
"@blocksuite/presets": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/store": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@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-202407050348-4620c21",
"@blocksuite/blocks": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/global": "0.16.0-canary-202407050348-4620c21",
"@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/icons": "2.1.58",
"@blocksuite/inline": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/presets": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/store": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/inline": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@blocksuite/store": "0.16.0-canary-202407141151-cfed0f4",
"@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
Expand Up @@ -162,8 +162,10 @@ export class ChatCopyMore extends WithDisposable(LitElement) {
this._moreButton,
this._moreMenu,
({ display }) => (this._showMoreMenu = display === 'show'),
0,
-100
{
mainAxis: 0,
crossAxis: -100,
}
);
}
}
Expand Down
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-202407050348-4620c21",
"@blocksuite/blocks": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/presets": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/store": "0.16.0-canary-202407050348-4620c21",
"@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",
"@electron-forge/cli": "^7.3.0",
"@electron-forge/core": "^7.3.0",
"@electron-forge/core-utils": "^7.3.0",
Expand Down
19 changes: 11 additions & 8 deletions tests/affine-local/e2e/peek-view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ test('can open peek view via link popover', async ({ page }) => {
await createLinkedPage(page, 'Test Page');

await page.locator('affine-reference').hover();

await expect(
page.locator('.affine-reference-popover-container')
).toBeVisible();

// click more button
// await page
// .locator('.affine-reference-popover-container')
// .locator('icon-button')
// .last()
// .click();
await page.locator('icon-button:has-text("center peek")').click();
await page
.locator('editor-menu-button editor-icon-button[aria-label="Open doc"]')
.click();
await page
.locator('editor-menu-action:has-text("Open in center peek")')
.click();

// verify peek view is opened
await expect(page.getByTestId('peek-view-modal')).toBeVisible();
Expand Down Expand Up @@ -68,8 +69,10 @@ test('can open peek view via db+click link card', async ({ page }) => {
).toBeVisible();

await page
.locator('.affine-reference-popover-container')
.locator('.affine-reference-popover-view-selector-button.embed.card-view')
.locator('editor-menu-button editor-icon-button[aria-label="Switch view"]')
.click();
await page
.locator('editor-menu-button editor-menu-action[aria-label="Card view"]')
.click();

await expect(
Expand Down
7 changes: 4 additions & 3 deletions tests/kit/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import fs from 'node:fs';
import path, { resolve } from 'node:path';
import process from 'node:process';

import type { DocCollection } from '@blocksuite/store';
import type { BrowserContext } from '@playwright/test';
import { test as baseTest } from '@playwright/test';

Expand All @@ -30,7 +29,6 @@ export const enableCoverage = !!process.env.CI || !!process.env.COVERAGE;

type CurrentDocCollection = {
meta: { id: string; flavour: string };
docCollection: DocCollection;
};

export const skipOnboarding = async (context: BrowserContext) => {
Expand Down Expand Up @@ -63,7 +61,10 @@ export const test = baseTest.extend<{
setTimeout(() => reject(new Error('timeout')), 5000);
});
}
return (globalThis as any).currentWorkspace;
const currentWorkspace = (globalThis as any).currentWorkspace;
return {
meta: currentWorkspace.meta,
};
});
},
});
Expand Down
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.609.0",
"@blocksuite/presets": "0.16.0-canary-202407050348-4620c21",
"@blocksuite/presets": "0.16.0-canary-202407141151-cfed0f4",
"@clack/core": "^0.3.4",
"@clack/prompts": "^0.7.0",
"@magic-works/i18n-codegen": "^0.6.0",
Expand Down
Loading

0 comments on commit d59fb5e

Please sign in to comment.