fix(editor): adapters panel type (#9690)
This commit is contained in:
@@ -102,19 +102,19 @@ export class AdaptersPanel extends WithDisposable(ShadowlessElement) {
|
|||||||
|
|
||||||
private _createJob() {
|
private _createJob() {
|
||||||
return new Transformer({
|
return new Transformer({
|
||||||
schema: this.doc.collection.schema,
|
schema: this.doc.schema,
|
||||||
blobCRUD: this.doc.collection.blobSync,
|
blobCRUD: this.doc.blobSync,
|
||||||
docCRUD: {
|
docCRUD: {
|
||||||
create: (id: string) => this.doc.collection.createDoc({ id }),
|
create: (id: string) => this.doc.workspace.createDoc({ id }),
|
||||||
get: (id: string) => this.doc.collection.getDoc(id),
|
get: (id: string) => this.doc.workspace.getDoc(id),
|
||||||
delete: (id: string) => this.doc.collection.removeDoc(id),
|
delete: (id: string) => this.doc.workspace.removeDoc(id),
|
||||||
},
|
},
|
||||||
middlewares: [
|
middlewares: [
|
||||||
docLinkBaseURLMiddlewareBuilder(
|
docLinkBaseURLMiddlewareBuilder(
|
||||||
'https://example.com',
|
'https://example.com',
|
||||||
this.doc.collection.id
|
this.doc.workspace.id
|
||||||
).get(),
|
).get(),
|
||||||
titleMiddleware(this.doc.collection.meta.docMetas),
|
titleMiddleware(this.doc.workspace.meta.docMetas),
|
||||||
embedSyncedDocMiddleware('content'),
|
embedSyncedDocMiddleware('content'),
|
||||||
defaultImageProxyMiddleware,
|
defaultImageProxyMiddleware,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user