mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-01 17:50:50 +08:00
chore: bump bs with new extension api (#8042)
This commit is contained in:
@@ -24,25 +24,6 @@ vi.mock('@blocksuite/presets', () => ({
|
||||
EdgelessAIChatBlockSpec: {},
|
||||
}));
|
||||
|
||||
vi.mock('@blocksuite/presets/ai', () => ({
|
||||
AIProvider: {
|
||||
slots: new Proxy(
|
||||
{},
|
||||
{
|
||||
get: () => ({
|
||||
on: vi.fn(),
|
||||
}),
|
||||
}
|
||||
),
|
||||
provide: vi.fn(),
|
||||
},
|
||||
AIEdgelessRootBlockSpec: {},
|
||||
AICodeBlockSpec: {},
|
||||
AIImageBlockSpec: {},
|
||||
AIParagraphBlockSpec: {},
|
||||
AIPageRootBlockSpec: {},
|
||||
}));
|
||||
|
||||
if (typeof window !== 'undefined' && HTMLCanvasElement) {
|
||||
// @ts-expect-error
|
||||
HTMLCanvasElement.prototype.getContext = () => {
|
||||
|
||||
Reference in New Issue
Block a user