From e7dcf63c772fd26c19ce7dd14fb035f7556eb223 Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 16 Oct 2024 02:11:46 +0000 Subject: [PATCH] refactor(core): rename doc property component name (#8500) --- .../workspace-setting/properties/index.tsx | 4 +- .../block-suite-editor/lit-adaper.tsx | 2 +- .../icons/constant.ts | 0 .../icons/doc-property-icon.tsx | 0 .../icons/icons-selector.css.ts | 0 .../icons/icons-selector.tsx | 0 .../index.ts | 0 .../info-modal/info-modal.css.ts | 0 .../info-modal/info-modal.tsx | 6 +-- .../info-modal/links-row.css.ts | 0 .../info-modal/links-row.tsx | 2 +- .../info-modal/time-row.css.ts | 0 .../info-modal/time-row.tsx | 0 .../manager/index.tsx | 0 .../manager/styles.css.ts | 0 .../menu/create-doc-property.css.ts | 0 .../menu/create-doc-property.tsx | 0 .../menu/edit-doc-property.css.ts | 0 .../menu/edit-doc-property.tsx | 0 .../sidebar/index.tsx | 0 .../sidebar/section.css.ts | 0 .../sidebar/section.tsx | 0 .../sidebar/styles.css.ts | 0 .../table.css.ts | 0 .../table.tsx | 44 +++++++++---------- .../tags-inline-editor.css.ts | 0 .../tags-inline-editor.tsx | 2 +- .../types/checkbox.css.ts | 0 .../types/checkbox.tsx | 0 .../types/constant.tsx | 0 .../types/created-updated-by.tsx | 0 .../types/date.css.ts | 0 .../types/date.tsx | 0 .../types/number.css.ts | 0 .../types/number.tsx | 0 .../types/tags.css.ts | 0 .../types/tags.tsx | 0 .../types/text.css.ts | 0 .../types/text.tsx | 0 .../types/types.ts | 0 .../components/providers/modal-provider.tsx | 2 +- .../workspace/detail-page/detail-page.tsx | 2 +- .../workspace/detail/sheets/doc-info.tsx | 6 +-- .../src/mobile/provider/model-provider.tsx | 2 +- 44 files changed, 36 insertions(+), 36 deletions(-) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/icons/constant.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/icons/doc-property-icon.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/icons/icons-selector.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/icons/icons-selector.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/index.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/info-modal.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/info-modal.tsx (97%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/links-row.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/links-row.tsx (92%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/time-row.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/info-modal/time-row.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/manager/index.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/manager/styles.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/menu/create-doc-property.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/menu/create-doc-property.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/menu/edit-doc-property.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/menu/edit-doc-property.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/sidebar/index.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/sidebar/section.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/sidebar/section.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/sidebar/styles.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/table.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/table.tsx (93%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/tags-inline-editor.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/tags-inline-editor.tsx (99%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/checkbox.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/checkbox.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/constant.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/created-updated-by.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/date.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/date.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/number.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/number.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/tags.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/tags.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/text.css.ts (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/text.tsx (100%) rename packages/frontend/core/src/components/{affine/page-properties => doc-properties}/types/types.ts (100%) diff --git a/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/index.tsx b/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/index.tsx index b11695ba39..d846361771 100644 --- a/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/index.tsx +++ b/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/index.tsx @@ -1,12 +1,12 @@ import { Button, Menu } from '@affine/component'; import { SettingHeader } from '@affine/component/setting-components'; +import { DocPropertyManager } from '@affine/core/components/doc-properties/manager'; +import { CreatePropertyMenuItems } from '@affine/core/components/doc-properties/menu/create-doc-property'; import { useWorkspaceInfo } from '@affine/core/components/hooks/use-workspace-info'; import { Trans, useI18n } from '@affine/i18n'; import { FrameworkScope, type WorkspaceMetadata } from '@toeverything/infra'; import { useWorkspace } from '../../../../../components/hooks/use-workspace'; -import { DocPropertyManager } from '../../../page-properties/manager'; -import { CreatePropertyMenuItems } from '../../../page-properties/menu/create-doc-property'; import * as styles from './styles.css'; const WorkspaceSettingPropertiesMain = () => { diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/lit-adaper.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/lit-adaper.tsx index 31009d0a08..12d0bb6cf1 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/lit-adaper.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/lit-adaper.tsx @@ -34,11 +34,11 @@ import React, { useRef, } from 'react'; -import { DocPropertiesTable } from '../../affine/page-properties'; import { AffinePageReference, AffineSharedPageReference, } from '../../affine/reference-link'; +import { DocPropertiesTable } from '../../doc-properties'; import { BiDirectionalLinkPanel } from './bi-directional-link-panel'; import { BlocksuiteEditorJournalDocTitle } from './journal-doc-title'; import { diff --git a/packages/frontend/core/src/components/affine/page-properties/icons/constant.ts b/packages/frontend/core/src/components/doc-properties/icons/constant.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/icons/constant.ts rename to packages/frontend/core/src/components/doc-properties/icons/constant.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/icons/doc-property-icon.tsx b/packages/frontend/core/src/components/doc-properties/icons/doc-property-icon.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/icons/doc-property-icon.tsx rename to packages/frontend/core/src/components/doc-properties/icons/doc-property-icon.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/icons/icons-selector.css.ts b/packages/frontend/core/src/components/doc-properties/icons/icons-selector.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/icons/icons-selector.css.ts rename to packages/frontend/core/src/components/doc-properties/icons/icons-selector.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/icons/icons-selector.tsx b/packages/frontend/core/src/components/doc-properties/icons/icons-selector.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/icons/icons-selector.tsx rename to packages/frontend/core/src/components/doc-properties/icons/icons-selector.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/index.ts b/packages/frontend/core/src/components/doc-properties/index.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/index.ts rename to packages/frontend/core/src/components/doc-properties/index.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/info-modal/info-modal.css.ts b/packages/frontend/core/src/components/doc-properties/info-modal/info-modal.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/info-modal/info-modal.css.ts rename to packages/frontend/core/src/components/doc-properties/info-modal/info-modal.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/info-modal/info-modal.tsx b/packages/frontend/core/src/components/doc-properties/info-modal/info-modal.tsx similarity index 97% rename from packages/frontend/core/src/components/affine/page-properties/info-modal/info-modal.tsx rename to packages/frontend/core/src/components/doc-properties/info-modal/info-modal.tsx index 587f5f26c6..47e28125d1 100644 --- a/packages/frontend/core/src/components/affine/page-properties/info-modal/info-modal.tsx +++ b/packages/frontend/core/src/components/doc-properties/info-modal/info-modal.tsx @@ -22,9 +22,9 @@ import { } from '@toeverything/infra'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import { BlocksuiteHeaderTitle } from '../../../blocksuite/block-suite-header/title'; +import { BlocksuiteHeaderTitle } from '../../blocksuite/block-suite-header/title'; import { CreatePropertyMenuItems } from '../menu/create-doc-property'; -import { PagePropertyRow } from '../table'; +import { DocPropertyRow } from '../table'; import * as styles from './info-modal.css'; import { LinksRow } from './links-row'; import { TimeRow } from './time-row'; @@ -163,7 +163,7 @@ export const InfoTable = ({ } > {properties.map(property => ( - ; -export const PageBacklinksPopup = ({ +export const DocBacklinksPopup = ({ backlinks, children, -}: PageBacklinksPopupProps) => { +}: DocBacklinksPopupProps) => { return ( { +}: DocPropertiesTableHeaderProps) => { const t = useI18n(); const { - docLinksServices, + docLinksService, docService, workspaceService, editorSettingService, } = useServices({ - DocLinksServices: DocLinksService, + DocLinksService, DocService, WorkspaceService, EditorSettingService, }); - const docBacklinks = docLinksServices.backlinks; + const docBacklinks = docLinksService.backlinks; const backlinks = useLiveData(docBacklinks.backlinks$); const displayDocInfo = useLiveData( @@ -187,11 +187,11 @@ export const PagePropertiesTableHeader = ({ {/* TODO(@Peng): add click handler to backlinks */}
{backlinks.length > 0 ? ( - +
{t['com.affine.page-properties.backlinks']()} · {backlinks.length}
-
+ ) : null} {dTimestampElement}
@@ -220,16 +220,16 @@ export const PagePropertiesTableHeader = ({ ); }; -interface PagePropertyRowProps { +interface DocPropertyRowProps { propertyInfo: DocCustomPropertyInfo; showAll?: boolean; defaultOpenEditMenu?: boolean; } -export const PagePropertyRow = ({ +export const DocPropertyRow = ({ propertyInfo, defaultOpenEditMenu, -}: PagePropertyRowProps) => { +}: DocPropertyRowProps) => { const t = useI18n(); const docService = useService(DocService); const docsService = useService(DocsService); @@ -338,7 +338,7 @@ export const PagePropertyRow = ({ ); }; -interface PagePropertiesTableBodyProps { +interface DocPropertiesTableBodyProps { className?: string; style?: React.CSSProperties; } @@ -346,9 +346,9 @@ interface PagePropertiesTableBodyProps { // 🏷️ Tags (⋅ xxx) (⋅ yyy) // #️⃣ Number 123456 // + Add a property -export const PagePropertiesTableBody = forwardRef< +export const DocPropertiesTableBody = forwardRef< HTMLDivElement, - PagePropertiesTableBodyProps & HTMLProps + DocPropertiesTableBodyProps & HTMLProps >(({ className, style, ...props }, ref) => { const t = useI18n(); const docsService = useService(DocsService); @@ -390,7 +390,7 @@ export const PagePropertiesTableBody = forwardRef< } > {properties.map(property => ( - ); }); -PagePropertiesTableBody.displayName = 'PagePropertiesTableBody'; +DocPropertiesTableBody.displayName = 'PagePropertiesTableBody'; const DocPropertiesTableInner = () => { const [expanded, setExpanded] = useState(false); @@ -449,9 +449,9 @@ const DocPropertiesTableInner = () => { onOpenChange={setExpanded} className={styles.rootCentered} > - + - + diff --git a/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.css.ts b/packages/frontend/core/src/components/doc-properties/tags-inline-editor.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.css.ts rename to packages/frontend/core/src/components/doc-properties/tags-inline-editor.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx b/packages/frontend/core/src/components/doc-properties/tags-inline-editor.tsx similarity index 99% rename from packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx rename to packages/frontend/core/src/components/doc-properties/tags-inline-editor.tsx index 0f23349ffe..5ee759e9a0 100644 --- a/packages/frontend/core/src/components/affine/page-properties/tags-inline-editor.tsx +++ b/packages/frontend/core/src/components/doc-properties/tags-inline-editor.tsx @@ -20,7 +20,7 @@ import { clamp } from 'lodash-es'; import type { HTMLAttributes, PropsWithChildren } from 'react'; import { useCallback, useMemo, useReducer, useRef, useState } from 'react'; -import { TagItem, TempTagItem } from '../../page-list'; +import { TagItem, TempTagItem } from '../page-list'; import * as styles from './tags-inline-editor.css'; interface TagsEditorProps { diff --git a/packages/frontend/core/src/components/affine/page-properties/types/checkbox.css.ts b/packages/frontend/core/src/components/doc-properties/types/checkbox.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/checkbox.css.ts rename to packages/frontend/core/src/components/doc-properties/types/checkbox.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/types/checkbox.tsx b/packages/frontend/core/src/components/doc-properties/types/checkbox.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/checkbox.tsx rename to packages/frontend/core/src/components/doc-properties/types/checkbox.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/constant.tsx b/packages/frontend/core/src/components/doc-properties/types/constant.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/constant.tsx rename to packages/frontend/core/src/components/doc-properties/types/constant.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/created-updated-by.tsx b/packages/frontend/core/src/components/doc-properties/types/created-updated-by.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/created-updated-by.tsx rename to packages/frontend/core/src/components/doc-properties/types/created-updated-by.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/date.css.ts b/packages/frontend/core/src/components/doc-properties/types/date.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/date.css.ts rename to packages/frontend/core/src/components/doc-properties/types/date.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/types/date.tsx b/packages/frontend/core/src/components/doc-properties/types/date.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/date.tsx rename to packages/frontend/core/src/components/doc-properties/types/date.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/number.css.ts b/packages/frontend/core/src/components/doc-properties/types/number.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/number.css.ts rename to packages/frontend/core/src/components/doc-properties/types/number.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/types/number.tsx b/packages/frontend/core/src/components/doc-properties/types/number.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/number.tsx rename to packages/frontend/core/src/components/doc-properties/types/number.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/tags.css.ts b/packages/frontend/core/src/components/doc-properties/types/tags.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/tags.css.ts rename to packages/frontend/core/src/components/doc-properties/types/tags.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/types/tags.tsx b/packages/frontend/core/src/components/doc-properties/types/tags.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/tags.tsx rename to packages/frontend/core/src/components/doc-properties/types/tags.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/text.css.ts b/packages/frontend/core/src/components/doc-properties/types/text.css.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/text.css.ts rename to packages/frontend/core/src/components/doc-properties/types/text.css.ts diff --git a/packages/frontend/core/src/components/affine/page-properties/types/text.tsx b/packages/frontend/core/src/components/doc-properties/types/text.tsx similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/text.tsx rename to packages/frontend/core/src/components/doc-properties/types/text.tsx diff --git a/packages/frontend/core/src/components/affine/page-properties/types/types.ts b/packages/frontend/core/src/components/doc-properties/types/types.ts similarity index 100% rename from packages/frontend/core/src/components/affine/page-properties/types/types.ts rename to packages/frontend/core/src/components/doc-properties/types/types.ts diff --git a/packages/frontend/core/src/components/providers/modal-provider.tsx b/packages/frontend/core/src/components/providers/modal-provider.tsx index 3b48c14191..50fcf94ddb 100644 --- a/packages/frontend/core/src/components/providers/modal-provider.tsx +++ b/packages/frontend/core/src/components/providers/modal-provider.tsx @@ -21,7 +21,6 @@ import { AuthModal } from '../affine/auth'; import { AiLoginRequiredModal } from '../affine/auth/ai-login-required'; import { HistoryTipsModal } from '../affine/history-tips-modal'; import { IssueFeedbackModal } from '../affine/issue-feedback-modal'; -import { InfoModal } from '../affine/page-properties/info-modal/info-modal'; import { CloudQuotaModal, LocalQuotaModal, @@ -31,6 +30,7 @@ import { SignOutModal } from '../affine/sign-out-modal'; import { StarAFFiNEModal } from '../affine/star-affine-modal'; import type { SettingAtom } from '../atoms'; import { openSettingModalAtom, openSignOutModalAtom } from '../atoms'; +import { InfoModal } from '../doc-properties/info-modal/info-modal'; import { useTrashModalHelper } from '../hooks/affine/use-trash-modal-helper'; import { useAsyncCallback } from '../hooks/affine-async-hooks'; import { useNavigateHelper } from '../hooks/use-navigate-helper'; diff --git a/packages/frontend/core/src/desktop/pages/workspace/detail-page/detail-page.tsx b/packages/frontend/core/src/desktop/pages/workspace/detail-page/detail-page.tsx index 4e4bf82b37..7c9d36a1a5 100644 --- a/packages/frontend/core/src/desktop/pages/workspace/detail-page/detail-page.tsx +++ b/packages/frontend/core/src/desktop/pages/workspace/detail-page/detail-page.tsx @@ -3,8 +3,8 @@ import { PageDetailSkeleton } from '@affine/component/page-detail-skeleton'; import type { ChatPanel } from '@affine/core/blocksuite/presets/ai'; import { AIProvider } from '@affine/core/blocksuite/presets/ai'; import { PageAIOnboarding } from '@affine/core/components/affine/ai-onboarding'; -import { DocPropertySidebar } from '@affine/core/components/affine/page-properties/sidebar'; import { EditorOutlineViewer } from '@affine/core/components/blocksuite/outline-viewer'; +import { DocPropertySidebar } from '@affine/core/components/doc-properties/sidebar'; import { useAppSettingHelper } from '@affine/core/components/hooks/affine/use-app-setting-helper'; import { useDocMetaHelper } from '@affine/core/components/hooks/use-block-suite-page-meta'; import { EditorService } from '@affine/core/modules/editor'; diff --git a/packages/frontend/core/src/mobile/pages/workspace/detail/sheets/doc-info.tsx b/packages/frontend/core/src/mobile/pages/workspace/detail/sheets/doc-info.tsx index 1a14b22340..4a1b5ea5fd 100644 --- a/packages/frontend/core/src/mobile/pages/workspace/detail/sheets/doc-info.tsx +++ b/packages/frontend/core/src/mobile/pages/workspace/detail/sheets/doc-info.tsx @@ -1,7 +1,7 @@ import { Divider, Scrollable } from '@affine/component'; -import { DocPropertiesTable } from '@affine/core/components/affine/page-properties'; -import { LinksRow } from '@affine/core/components/affine/page-properties/info-modal/links-row'; -import { TimeRow } from '@affine/core/components/affine/page-properties/info-modal/time-row'; +import { DocPropertiesTable } from '@affine/core/components/doc-properties'; +import { LinksRow } from '@affine/core/components/doc-properties/info-modal/links-row'; +import { TimeRow } from '@affine/core/components/doc-properties/info-modal/time-row'; import { DocsSearchService } from '@affine/core/modules/docs-search'; import { useI18n } from '@affine/i18n'; import { LiveData, useLiveData, useService } from '@toeverything/infra'; diff --git a/packages/frontend/core/src/mobile/provider/model-provider.tsx b/packages/frontend/core/src/mobile/provider/model-provider.tsx index c40ab852dd..8deac6441f 100644 --- a/packages/frontend/core/src/mobile/provider/model-provider.tsx +++ b/packages/frontend/core/src/mobile/provider/model-provider.tsx @@ -2,12 +2,12 @@ import { NotificationCenter } from '@affine/component'; import { AiLoginRequiredModal } from '@affine/core/components/affine/auth/ai-login-required'; import { HistoryTipsModal } from '@affine/core/components/affine/history-tips-modal'; import { IssueFeedbackModal } from '@affine/core/components/affine/issue-feedback-modal'; -import { InfoModal } from '@affine/core/components/affine/page-properties'; import { CloudQuotaModal, LocalQuotaModal, } from '@affine/core/components/affine/quota-reached-modal'; import { StarAFFiNEModal } from '@affine/core/components/affine/star-affine-modal'; +import { InfoModal } from '@affine/core/components/doc-properties'; import { useTrashModalHelper } from '@affine/core/components/hooks/affine/use-trash-modal-helper'; import { MoveToTrash } from '@affine/core/components/page-list'; import { SignOutConfirmModal } from '@affine/core/components/providers/modal-provider';