Skip to content

Commit

Permalink
fix(editor): adapters panel type (#9690)
Browse files Browse the repository at this point in the history
  • Loading branch information
donteatfriedrice committed Jan 14, 2025
1 parent c8e5501 commit aa2a8fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions blocksuite/playground/apps/_common/components/adapters-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,19 @@ export class AdaptersPanel extends WithDisposable(ShadowlessElement) {

private _createJob() {
return new Transformer({
schema: this.doc.collection.schema,
blobCRUD: this.doc.collection.blobSync,
schema: this.doc.schema,
blobCRUD: this.doc.blobSync,
docCRUD: {
create: (id: string) => this.doc.collection.createDoc({ id }),
get: (id: string) => this.doc.collection.getDoc(id),
delete: (id: string) => this.doc.collection.removeDoc(id),
create: (id: string) => this.doc.workspace.createDoc({ id }),
get: (id: string) => this.doc.workspace.getDoc(id),
delete: (id: string) => this.doc.workspace.removeDoc(id),
},
middlewares: [
docLinkBaseURLMiddlewareBuilder(
'https://example.com',
this.doc.collection.id
this.doc.workspace.id
).get(),
titleMiddleware(this.doc.collection.meta.docMetas),
titleMiddleware(this.doc.workspace.meta.docMetas),
embedSyncedDocMiddleware('content'),
defaultImageProxyMiddleware,
],
Expand Down

0 comments on commit aa2a8fb

Please sign in to comment.