hunk.code_window:           ENABLE_PLUGIN: true
             ENABLE_ALL_PAGE_FILTER: true
             ENABLE_LEGACY_PROVIDER: false
             ENABLE_PRELOADING: false
         - name: Export static resources
           run: yarn workspace @affine/web export
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:           NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
  
hunk.file_path: .github/workflows/build.yml
hunk.type: add
file: import type { MainEventRegister } from '../type';
  import { applicationMenuSubjects } from './subject';
  
  export * from './create';
  export * from './subject';
  
  /**
   * Events triggered by application menu
   */
  export const applicationMenuEvents = {
    /**
     * File -> New Page
     */
    onNewPageAction: (fn: () => void) => {
      const sub = applicationMenuSubjects.newPageAction.subscribe(fn);
      return () => {
        sub.unsubscribe();
      };
    },
  } satisfies Record<string, MainEventRegister>;
  