feat(editor): header of edgeless embed doc (#12029)
Close [BS-3268](https://linear.app/affine-design/issue/BS-3268/edgeless-下,-dark-mode-embed的配色应该更加清晰) Close [BS-3067](https://linear.app/affine-design/issue/BS-3067/在embed上,添加split-view等相关的操作入口,基本接近page-block(见设计稿)) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an interactive header for embedded synced documents with fold/unfold toggle, document opening, and multiple view options. - Added info and copy link buttons for embedded synced documents and notes to improve document management and sharing. - **Enhancements** - Updated styles for embedded synced document blocks and headers for better visual consistency. - Added new localization entries for header actions: "Fold", "Unfold", and "Open". - Disabled redundant open document actions in toolbars, centralizing controls in the header. - **Refactor** - Unified header button components for notes and embedded synced documents into reusable components. - Simplified header components by delegating button behaviors to shared components. - **Bug Fixes** - Fixed conditional rendering of editor content in embedded synced documents when folded. - **Chores** - Upgraded theme dependency version from "^1.1.12" to "^1.1.14" across multiple packages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"ar": 99,
|
||||
"ar": 98,
|
||||
"ca": 4,
|
||||
"da": 4,
|
||||
"de": 99,
|
||||
"el-GR": 99,
|
||||
"de": 98,
|
||||
"el-GR": 98,
|
||||
"en": 100,
|
||||
"es-AR": 99,
|
||||
"es-CL": 100,
|
||||
"es": 99,
|
||||
"fa": 99,
|
||||
"fr": 99,
|
||||
"es": 98,
|
||||
"fa": 98,
|
||||
"fr": 98,
|
||||
"hi": 2,
|
||||
"it-IT": 99,
|
||||
"it-IT": 98,
|
||||
"it": 1,
|
||||
"ja": 99,
|
||||
"ja": 98,
|
||||
"ko": 57,
|
||||
"pl": 99,
|
||||
"pt-BR": 99,
|
||||
"ru": 99,
|
||||
"sv-SE": 99,
|
||||
"uk": 99,
|
||||
"pl": 98,
|
||||
"pt-BR": 98,
|
||||
"ru": 98,
|
||||
"sv-SE": 98,
|
||||
"uk": 98,
|
||||
"ur": 2,
|
||||
"zh-Hans": 99,
|
||||
"zh-Hant": 99
|
||||
"zh-Hans": 98,
|
||||
"zh-Hant": 98
|
||||
}
|
||||
|
||||
@@ -7143,6 +7143,18 @@ export function useAFFiNEI18N(): {
|
||||
* `View in page`
|
||||
*/
|
||||
["com.affine.editor.edgeless-note-header.view-in-page"](): string;
|
||||
/**
|
||||
* `Fold`
|
||||
*/
|
||||
["com.affine.editor.edgeless-embed-synced-doc-header.fold"](): string;
|
||||
/**
|
||||
* `Unfold`
|
||||
*/
|
||||
["com.affine.editor.edgeless-embed-synced-doc-header.unfold"](): string;
|
||||
/**
|
||||
* `Open`
|
||||
*/
|
||||
["com.affine.editor.edgeless-embed-synced-doc-header.open"](): string;
|
||||
/**
|
||||
* `Empower Your Team with Seamless Collaboration`
|
||||
*/
|
||||
|
||||
@@ -1775,6 +1775,9 @@
|
||||
"com.affine.editor.bi-directional-link-panel.hide": "Hide",
|
||||
"com.affine.editor.edgeless-note-header.fold-page-block": "Fold page block",
|
||||
"com.affine.editor.edgeless-note-header.view-in-page": "View in page",
|
||||
"com.affine.editor.edgeless-embed-synced-doc-header.fold": "Fold",
|
||||
"com.affine.editor.edgeless-embed-synced-doc-header.unfold": "Unfold",
|
||||
"com.affine.editor.edgeless-embed-synced-doc-header.open": "Open",
|
||||
"com.affine.upgrade-to-team-page.title": "Empower Your Team with Seamless Collaboration",
|
||||
"com.affine.upgrade-to-team-page.workspace-selector.placeholder": "Select an existing workspace or create a new one",
|
||||
"com.affine.upgrade-to-team-page.workspace-selector.create-workspace": "Create Workspace",
|
||||
|
||||
Reference in New Issue
Block a user