hunk.code_window:   "tasksRunnerOptions": {
       "default": {
         "runner": "nx-cloud",
         "options": {
           "cacheableOperations": ["build", "test"],
           "accessToken": "MjNlN2ViZmMtNDM4NS00MDViLWE0NjUtNGFhNmIyMTc1ZDVhfHJlYWQtd3JpdGU="
         }
       }
     },
     "affected": {
       "defaultBase": "master"
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:         "accessToken": "YmQ2NTg1ODktZTk5Mi00YzhiLTk2ZmUtNWQzMDg0NDBkOWM3fHJlYWQtb25seQ=="
  
hunk.file_path: nx.json
hunk.type: replace
file: import { initEmptyPage } from '@affine/env/blocksuite';
  import { WorkspaceFlavour } from '@affine/env/workspace';
  import { createEmptyBlockSuiteWorkspace } from '@affine/workspace/utils';
  import type { EditorContainer } from '@blocksuite/editor';
  import type { Page } from '@blocksuite/store';
  import { Generator } from '@blocksuite/store';
  import type React from 'react';
  import { useCallback } from 'react';
  
  import { BlockSuiteEditor } from '../../blocksuite/block-suite-editor';
  
  const blockSuiteWorkspace = createEmptyBlockSuiteWorkspace(
    'test',
    WorkspaceFlavour.LOCAL,
    {
      idGenerator: Generator.AutoIncrement,
    }
  );
  
  const page = blockSuiteWorkspace.createPage({ id: 'page0' });
  
  const Editor: React.FC = () => {
    const onLoad = useCallback((page: Page, editor: EditorContainer) => {
      // @ts-expect-error
      globalThis.page = page;
      // @ts-expect-error
      globalThis.editor = editor;
      return () => void 0;
    }, []);
  
    if (!page) {
      return <>loading...</>;
    }
    return (
      <BlockSuiteEditor
        page={page}
        mode="page"
        onInit={initEmptyPage}
        onLoad={onLoad}
      />
    );
  };
  
  export default Editor;
  