fix: remove the feature of exporting pdf/png (#2619)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
xiaodong zuo
2023-05-31 16:20:42 +08:00
committed by GitHub
parent 20f1d487c8
commit 094a479c2a
8 changed files with 97 additions and 100 deletions

View File

@@ -54,12 +54,12 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/editor": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/global": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/blocks": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/editor": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/global": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/icons": "^2.1.19",
"@blocksuite/lit": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/store": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/lit": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/store": "0.0.0-20230531074909-e951a818-nightly",
"@storybook/addon-actions": "^7.0.18",
"@storybook/addon-coverage": "^0.0.8",
"@storybook/addon-essentials": "^7.0.18",

View File

@@ -1,13 +1,10 @@
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { PageBlockModel } from '@blocksuite/blocks';
import { ContentParser } from '@blocksuite/blocks/content-parser';
import {
ArrowRightSmallIcon,
ExportIcon,
ExportToHtmlIcon,
ExportToMarkdownIcon,
ExportToPdfIcon,
ExportToPngIcon,
} from '@blocksuite/icons';
import { useRef } from 'react';
@@ -27,7 +24,7 @@ export const Export = ({
trigger="click"
content={
<>
<MenuItem
{/* <MenuItem
data-testid="export-to-pdf"
onClick={async () => {
if (!contentParserRef.current) {
@@ -49,7 +46,7 @@ export const Export = ({
icon={<ExportToPdfIcon />}
>
{t['Export to PDF']()}
</MenuItem>
</MenuItem> */}
<MenuItem
data-testid="export-to-html"
onClick={() => {
@@ -65,7 +62,7 @@ export const Export = ({
>
{t['Export to HTML']()}
</MenuItem>
<MenuItem
{/* <MenuItem
data-testid="export-to-png"
onClick={() => {
if (!contentParserRef.current) {
@@ -79,7 +76,7 @@ export const Export = ({
icon={<ExportToPngIcon />}
>
{t['Export to PNG']()}
</MenuItem>
</MenuItem> */}
<MenuItem
data-testid="export-to-markdown"
onClick={() => {

View File

@@ -4,7 +4,7 @@
"main": "./src/index.ts",
"module": "./src/index.ts",
"devDependencies": {
"@blocksuite/global": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/global": "0.0.0-20230531074909-e951a818-nightly",
"next": "=13.4.2",
"react": "18.3.0-canary-16d053d59-20230506",
"react-dom": "18.3.0-canary-16d053d59-20230506",

View File

@@ -7,11 +7,11 @@
"jotai": "^2.1.0"
},
"devDependencies": {
"@blocksuite/blocks": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/editor": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/global": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/lit": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/store": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/blocks": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/editor": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/global": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/lit": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/store": "0.0.0-20230531074909-e951a818-nightly",
"lottie-web": "^5.11.0"
},
"peerDependencies": {

View File

@@ -28,8 +28,8 @@
"idb": "^7.1.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/store": "0.0.0-20230531040027-44cd9d8e-nightly",
"@blocksuite/blocks": "0.0.0-20230531074909-e951a818-nightly",
"@blocksuite/store": "0.0.0-20230531074909-e951a818-nightly",
"vite": "^4.3.9",
"vite-plugin-dts": "^2.3.0",
"y-indexeddb": "^9.0.11"