fix: editor cannot directly import (#995)
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -61,6 +61,7 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
name: artifact
|
||||||
path: ./apps/web/.next
|
path: ./apps/web/.next
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@@ -79,17 +80,6 @@ jobs:
|
|||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Restore cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
.next/cache
|
|
||||||
# Generate a new cache whenever packages or source files change.
|
|
||||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
|
||||||
# If source files changed but packages didn't, rebuild from a prior cache.
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
@@ -97,7 +87,7 @@ jobs:
|
|||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
path: apps/web/.next/
|
path: ./apps/web/.next
|
||||||
|
|
||||||
- name: Lint & E2E Test & Unit Test
|
- name: Lint & E2E Test & Unit Test
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export * from './components/BlockSuiteEditor';
|
// export * from './components/BlockSuiteEditor';
|
||||||
export * from './ui/breadcrumbs';
|
export * from './ui/breadcrumbs';
|
||||||
export * from './ui/button';
|
export * from './ui/button';
|
||||||
export * from './ui/confirm';
|
export * from './ui/confirm';
|
||||||
|
|||||||
@@ -2,7 +2,10 @@
|
|||||||
import React, { Suspense } from 'react';
|
import React, { Suspense } from 'react';
|
||||||
import { Meta, Story } from '@storybook/react';
|
import { Meta, Story } from '@storybook/react';
|
||||||
import { builtInSchemas } from '@blocksuite/blocks/models';
|
import { builtInSchemas } from '@blocksuite/blocks/models';
|
||||||
import { BlockSuiteEditor, BlockSuiteEditorProps } from '..';
|
import {
|
||||||
|
BlockSuiteEditor,
|
||||||
|
BlockSuiteEditorProps,
|
||||||
|
} from '../components/BlockSuiteEditor';
|
||||||
import { Page, Workspace } from '@blocksuite/store';
|
import { Page, Workspace } from '@blocksuite/store';
|
||||||
|
|
||||||
const worksapce = new Workspace({
|
const worksapce = new Workspace({
|
||||||
|
|||||||
Reference in New Issue
Block a user