refactor(editor): rename job to transformer (#9639)
This commit is contained in:
@@ -50,7 +50,7 @@ import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
|
||||
import type { SerializedXYWH } from '@blocksuite/global/utils';
|
||||
import type { DeltaInsert } from '@blocksuite/inline/types';
|
||||
import { AffineEditorContainer, type CommentPanel } from '@blocksuite/presets';
|
||||
import { Job, Text, type Workspace } from '@blocksuite/store';
|
||||
import { Text, Transformer, type Workspace } from '@blocksuite/store';
|
||||
import type { SlDropdown } from '@shoelace-style/shoelace';
|
||||
import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';
|
||||
import { css, html } from 'lit';
|
||||
@@ -241,7 +241,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
|
||||
private async _exportFile(config: AdapterConfig) {
|
||||
const doc = this.editor.doc;
|
||||
const job = new Job({
|
||||
const job = new Transformer({
|
||||
schema: this.collection.schema,
|
||||
blobCRUD: this.collection.blobSync,
|
||||
docCRUD: {
|
||||
@@ -442,7 +442,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
multiple: false,
|
||||
});
|
||||
if (!file) return;
|
||||
const job = new Job({
|
||||
const job = new Transformer({
|
||||
schema: this.collection.schema,
|
||||
blobCRUD: this.collection.blobSync,
|
||||
docCRUD: {
|
||||
|
||||
Reference in New Issue
Block a user