refactor(editor): rename job to transformer (#9639)
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import { replaceIdMiddleware } from '@blocksuite/blocks';
|
||||
import { type DocSnapshot, Job, type Workspace } from '@blocksuite/store';
|
||||
import {
|
||||
type DocSnapshot,
|
||||
Transformer,
|
||||
type Workspace,
|
||||
} from '@blocksuite/store';
|
||||
|
||||
export async function importFromSnapshot(
|
||||
collection: Workspace,
|
||||
snapshot: DocSnapshot
|
||||
) {
|
||||
const job = new Job({
|
||||
const job = new Transformer({
|
||||
schema: collection.schema,
|
||||
blobCRUD: collection.blobSync,
|
||||
docCRUD: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { effects as blocksEffects } from '@blocksuite/blocks/effects';
|
||||
import type { Job, Store } from '@blocksuite/store';
|
||||
import type { Store, Transformer } from '@blocksuite/store';
|
||||
|
||||
import { effects } from '../../effects.js';
|
||||
|
||||
@@ -113,11 +113,11 @@ declare global {
|
||||
const editor: AffineEditorContainer;
|
||||
const doc: Store;
|
||||
const collection: TestWorkspace;
|
||||
const job: Job;
|
||||
const job: Transformer;
|
||||
interface Window {
|
||||
editor: AffineEditorContainer;
|
||||
doc: Store;
|
||||
job: Job;
|
||||
job: Transformer;
|
||||
collection: TestWorkspace;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user