@blocknote/core 0.56.0 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.txt +101 -0
- package/dist/BlockNoteExtension-U58cXw1g.js +64 -0
- package/dist/ThreadStore-CSEwCO0O.js +8 -0
- package/dist/{UserStore-OZJP3K8T.js → UserStore-BFv6NXA-.js} +3 -7
- package/dist/ar-DPJDxCQI.js +3 -0
- package/dist/blocknote.js +8 -6
- package/dist/blocks-BUX9dXi9.js +2063 -0
- package/dist/blocks.js +3 -2
- package/dist/comments.js +8 -9
- package/dist/de-CakHBokE.js +3 -0
- package/dist/emoji-data.js +102 -0
- package/dist/en-BGdzE27X.js +3 -0
- package/dist/{en-Ch-vvt5e.js → en-Ne9rlj9Y.js} +9 -6
- package/dist/es-VeBX6MEG.js +3 -0
- package/dist/{extensions-BbM81hHa.js → extensions-CEgexSyF.js} +846 -824
- package/dist/extensions.js +4 -4
- package/dist/fa-Dt7EYtKf.js +3 -0
- package/dist/fr-DUhhjxrJ.js +3 -0
- package/dist/getDefaultSlashMenuItems-DfDOr807.js +1939 -0
- package/dist/he-BShJg1dK.js +3 -0
- package/dist/hr-BXtyqmwg.js +3 -0
- package/dist/is-2Fb-0w_j.js +3 -0
- package/dist/it-CiZtVb3Y.js +3 -0
- package/dist/ja-CsxD3kEL.js +3 -0
- package/dist/ko-It6g03Cy.js +3 -0
- package/dist/locales.js +692 -54
- package/dist/markGroups-BszXCkX8.js +18 -0
- package/dist/nb-CLao87La.js +3 -0
- package/dist/nl-JQSo8dht.js +3 -0
- package/dist/pl-DEMBgHEP.js +3 -0
- package/dist/pt-CBCdYAax.js +3 -0
- package/dist/ru-BQk_9Q-L.js +3 -0
- package/dist/sk-kgB2DtDL.js +3 -0
- package/dist/{src-BmLsLZfE.js → src-DksfoQmN.js} +1173 -1090
- package/dist/style.css +1 -1
- package/dist/tr-DkcSXX8f.js +3 -0
- package/dist/uk-Bib-e6bV.js +3 -0
- package/dist/uz-B2jaKhJb.js +3 -0
- package/dist/vi-V_GFRxE8.js +3 -0
- package/dist/y.js +366 -365
- package/dist/yjs.js +140 -138
- package/dist/zh-hant-2ZrAkFnC.js +3 -0
- package/dist/zh-jglyCmjs.js +3 -0
- package/package.json +45 -21
- package/types/src/api/blockManipulation/layoutBlocks/layoutBlocks.fixture.d.ts +5 -0
- package/types/src/api/blockManipulation/tables/tables.d.ts +9 -4
- package/types/src/api/clipboard/fromClipboard/normalizeOfficeHTML.d.ts +5 -0
- package/types/src/api/exporters/markdown/wrapWithDelimiter.d.ts +6 -0
- package/types/src/blocks/Code/helpers/extensions/CodeKeyboardShortcutsExtension.d.ts +4 -0
- package/types/src/blocks/defaultBlocks.d.ts +10 -0
- package/types/src/editor/BlockNoteEditor.d.ts +2 -1
- package/types/src/editor/managers/ExtensionManager/index.d.ts +4 -4
- package/types/src/editor/managers/StyleManager.d.ts +2 -1
- package/types/src/emoji-data/frimousse/ar.d.ts +2 -0
- package/types/src/emoji-data/frimousse/common.d.ts +3 -0
- package/types/src/emoji-data/frimousse/de.d.ts +2 -0
- package/types/src/emoji-data/frimousse/en.d.ts +2 -0
- package/types/src/emoji-data/frimousse/es.d.ts +2 -0
- package/types/src/emoji-data/frimousse/fa.d.ts +2 -0
- package/types/src/emoji-data/frimousse/fr.d.ts +2 -0
- package/types/src/emoji-data/frimousse/he.d.ts +2 -0
- package/types/src/emoji-data/frimousse/hr.d.ts +2 -0
- package/types/src/emoji-data/frimousse/is.d.ts +2 -0
- package/types/src/emoji-data/frimousse/it.d.ts +2 -0
- package/types/src/emoji-data/frimousse/ja.d.ts +2 -0
- package/types/src/emoji-data/frimousse/ko.d.ts +2 -0
- package/types/src/emoji-data/frimousse/loadFrimousseData.d.ts +2 -0
- package/types/src/emoji-data/frimousse/nb.d.ts +2 -0
- package/types/src/emoji-data/frimousse/nl.d.ts +2 -0
- package/types/src/emoji-data/frimousse/pl.d.ts +2 -0
- package/types/src/emoji-data/frimousse/pt.d.ts +2 -0
- package/types/src/emoji-data/frimousse/ru.d.ts +2 -0
- package/types/src/emoji-data/frimousse/sk.d.ts +2 -0
- package/types/src/emoji-data/frimousse/tr.d.ts +2 -0
- package/types/src/emoji-data/frimousse/types.d.ts +21 -0
- package/types/src/emoji-data/frimousse/uk.d.ts +2 -0
- package/types/src/emoji-data/frimousse/uz.d.ts +2 -0
- package/types/src/emoji-data/frimousse/vi.d.ts +2 -0
- package/types/src/emoji-data/frimousse/zh-hant.d.ts +2 -0
- package/types/src/emoji-data/frimousse/zh.d.ts +2 -0
- package/types/src/emoji-data/index.d.ts +3 -0
- package/types/src/emoji-data/searchEmojis.d.ts +5 -0
- package/types/src/extensions/Loading/Loading.d.ts +11 -0
- package/types/src/extensions/SideMenu/MultipleNodeSelection.d.ts +13 -4
- package/types/src/extensions/SideMenu/SideMenu.d.ts +2 -1
- package/types/src/extensions/Versioning/Versioning.d.ts +2 -0
- package/types/src/extensions/Versioning/inMemoryVersioning.d.ts +1 -0
- package/types/src/extensions/Versioning/types.d.ts +12 -6
- package/types/src/extensions/Versioning/versioningState.d.ts +6 -0
- package/types/src/extensions/index.d.ts +1 -2
- package/types/src/i18n/dictionary.d.ts +4 -1
- package/types/src/i18n/locales/en.d.ts +6 -0
- package/types/src/i18n/locales/fa.d.ts +6 -0
- package/types/src/i18n/locales/index.d.ts +1 -0
- package/types/src/i18n/locales/sk.d.ts +6 -0
- package/types/src/i18n/locales/tr.d.ts +378 -0
- package/types/src/index.d.ts +0 -1
- package/types/src/schema/inlineContent/createSpec.d.ts +2 -1
- package/types/src/schema/inlineContent/internal.d.ts +1 -1
- package/types/src/schema/inlineContent/types.d.ts +2 -4
- package/types/src/schema/styles/createSpec.d.ts +2 -1
- package/types/src/schema/styles/internal.d.ts +4 -1
- package/types/src/schema/styles/types.d.ts +2 -0
- package/types/src/y/extensions/YSync.d.ts +1 -1
- package/types/src/y/extensions/index.d.ts +1 -1
- package/types/src/y/versioning/yhub.d.ts +2 -0
- package/types/src/yjs/extensions/Versioning.d.ts +1 -0
- package/types/src/yjs/extensions/YUndo.d.ts +3 -2
- package/types/src/yjs/extensions/index.d.ts +1 -1
- package/dist/BlockNoteExtension-DjEkXkR5.cjs +0 -2
- package/dist/BlockNoteExtension-DjEkXkR5.cjs.map +0 -1
- package/dist/BlockNoteExtension-TsTGtIeX.js +0 -87
- package/dist/BlockNoteExtension-TsTGtIeX.js.map +0 -1
- package/dist/ThreadStore-Bx-gSEh1.cjs +0 -2
- package/dist/ThreadStore-Bx-gSEh1.cjs.map +0 -1
- package/dist/ThreadStore-et9wB5Xt.js +0 -11
- package/dist/ThreadStore-et9wB5Xt.js.map +0 -1
- package/dist/UserStore-CTVzVGh-.cjs +0 -2
- package/dist/UserStore-CTVzVGh-.cjs.map +0 -1
- package/dist/UserStore-OZJP3K8T.js.map +0 -1
- package/dist/blocknote.cjs +0 -1
- package/dist/blocks-COVwe5Cf.cjs +0 -12
- package/dist/blocks-COVwe5Cf.cjs.map +0 -1
- package/dist/blocks-COYcDVg7.js +0 -3943
- package/dist/blocks-COYcDVg7.js.map +0 -1
- package/dist/blocks.cjs +0 -1
- package/dist/comments.cjs +0 -2
- package/dist/comments.cjs.map +0 -1
- package/dist/comments.js.map +0 -1
- package/dist/en-Ch-vvt5e.js.map +0 -1
- package/dist/en-N5lu0-j8.cjs +0 -2
- package/dist/en-N5lu0-j8.cjs.map +0 -1
- package/dist/extensions-BbM81hHa.js.map +0 -1
- package/dist/extensions-D_WkAfSt.cjs +0 -58
- package/dist/extensions-D_WkAfSt.cjs.map +0 -1
- package/dist/extensions.cjs +0 -1
- package/dist/locales.cjs +0 -2
- package/dist/locales.cjs.map +0 -1
- package/dist/locales.js.map +0 -1
- package/dist/src-4OQT3z5S.cjs +0 -23
- package/dist/src-4OQT3z5S.cjs.map +0 -1
- package/dist/src-BmLsLZfE.js.map +0 -1
- package/dist/webpack-stats.json +0 -1
- package/dist/y.cjs +0 -2
- package/dist/y.cjs.map +0 -1
- package/dist/y.js.map +0 -1
- package/dist/yjs.cjs +0 -2
- package/dist/yjs.cjs.map +0 -1
- package/dist/yjs.js.map +0 -1
- package/src/api/README.md +0 -8
- package/src/api/__snapshots__/blocks-deleted-nested-deep.json +0 -26
- package/src/api/__snapshots__/blocks-deleted-nested.json +0 -68
- package/src/api/__snapshots__/blocks-deleted.json +0 -26
- package/src/api/__snapshots__/blocks-indented-changed.json +0 -129
- package/src/api/__snapshots__/blocks-inserted-nested.json +0 -62
- package/src/api/__snapshots__/blocks-inserted.json +0 -20
- package/src/api/__snapshots__/blocks-moved-deeper-into-nesting.json +0 -164
- package/src/api/__snapshots__/blocks-moved-down-twice-in-same-parent.json +0 -44
- package/src/api/__snapshots__/blocks-moved-insert-changes-sibling-order.json +0 -26
- package/src/api/__snapshots__/blocks-moved-multiple-in-same-transaction.json +0 -188
- package/src/api/__snapshots__/blocks-moved-nested-sibling-reorder.json +0 -180
- package/src/api/__snapshots__/blocks-moved-to-different-parent.json +0 -78
- package/src/api/__snapshots__/blocks-moved-to-root-level.json +0 -78
- package/src/api/__snapshots__/blocks-moved-up-down-in-same-parent.json +0 -44
- package/src/api/__snapshots__/blocks-moved-up-down-in-same-transaction.json +0 -44
- package/src/api/__snapshots__/blocks-outdented-changed.json +0 -129
- package/src/api/__snapshots__/blocks-updated-content-inserted.json +0 -42
- package/src/api/__snapshots__/blocks-updated-multiple-insert.json +0 -50
- package/src/api/__snapshots__/blocks-updated-multiple.json +0 -82
- package/src/api/__snapshots__/blocks-updated-nested-deep.json +0 -42
- package/src/api/__snapshots__/blocks-updated-nested-multiple.json +0 -118
- package/src/api/__snapshots__/blocks-updated-nested.json +0 -78
- package/src/api/__snapshots__/blocks-updated-single.json +0 -42
- package/src/api/__snapshots__/blocks-updated.json +0 -42
- package/src/api/blockManipulation/__snapshots__/transactions.test.ts.snap +0 -34
- package/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +0 -4570
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.ts +0 -176
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +0 -95
- package/src/api/blockManipulation/commands/insertBlocks/insertPlacement.test.ts +0 -217
- package/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +0 -2761
- package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.ts +0 -251
- package/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.ts +0 -187
- package/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap +0 -13625
- package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts +0 -391
- package/src/api/blockManipulation/commands/moveBlocks/moveBlocks.ts +0 -350
- package/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap +0 -952
- package/src/api/blockManipulation/commands/nestBlock/nestBlock.test.ts +0 -917
- package/src/api/blockManipulation/commands/nestBlock/nestBlock.ts +0 -248
- package/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +0 -5710
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.ts +0 -306
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +0 -143
- package/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +0 -3507
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.test.ts +0 -364
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +0 -90
- package/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +0 -15085
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.test.ts +0 -1210
- package/src/api/blockManipulation/commands/updateBlock/updateBlock.ts +0 -706
- package/src/api/blockManipulation/getBlock/getBlock.ts +0 -104
- package/src/api/blockManipulation/insertContentAt.ts +0 -83
- package/src/api/blockManipulation/layoutBlocks/fixLayoutBlock.ts +0 -173
- package/src/api/blockManipulation/layoutBlocks/layoutBlocks.browser.test.ts +0 -293
- package/src/api/blockManipulation/layoutBlocks/layoutBlocks.fixture.ts +0 -145
- package/src/api/blockManipulation/layoutBlocks/layoutBlocks.test.ts +0 -783
- package/src/api/blockManipulation/layoutBlocks/plainBlocks.test.ts +0 -180
- package/src/api/blockManipulation/layoutBlocks/titledBlocks.test.ts +0 -365
- package/src/api/blockManipulation/selections/selection.ts +0 -234
- package/src/api/blockManipulation/selections/textCursorPosition.ts +0 -63
- package/src/api/blockManipulation/setupTestEnv.ts +0 -223
- package/src/api/blockManipulation/tables/tables.test.ts +0 -2127
- package/src/api/blockManipulation/tables/tables.ts +0 -887
- package/src/api/clipboard/fromClipboard/acceptedMIMETypes.ts +0 -8
- package/src/api/clipboard/fromClipboard/fileDropExtension.ts +0 -55
- package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +0 -209
- package/src/api/clipboard/fromClipboard/handleVSCodePaste.ts +0 -38
- package/src/api/clipboard/fromClipboard/pasteExtension.ts +0 -157
- package/src/api/clipboard/toClipboard/copyExtension.ts +0 -299
- package/src/api/combineTransactionSteps.ts +0 -22
- package/src/api/exporters/html/externalHTMLExporter.ts +0 -76
- package/src/api/exporters/html/internalHTMLSerializer.ts +0 -182
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +0 -510
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +0 -283
- package/src/api/exporters/markdown/htmlToMarkdown.ts +0 -895
- package/src/api/exporters/markdown/markdownExporter.ts +0 -41
- package/src/api/getBlockInfoFromPos.test.ts +0 -681
- package/src/api/getBlockInfoFromPos.ts +0 -693
- package/src/api/getBlocksChangedByTransaction.test.ts +0 -783
- package/src/api/getBlocksChangedByTransaction.ts +0 -458
- package/src/api/getChangedRangeWithAttrs.ts +0 -54
- package/src/api/getChangedRanges.test.ts +0 -391
- package/src/api/getChangedRanges.ts +0 -368
- package/src/api/nodeConversions/blockToNode.test.ts +0 -113
- package/src/api/nodeConversions/blockToNode.ts +0 -427
- package/src/api/nodeConversions/fragmentToBlocks.ts +0 -48
- package/src/api/nodeConversions/nodeToBlock.ts +0 -717
- package/src/api/nodeUtil.ts +0 -46
- package/src/api/parsers/html/parseHTML.ts +0 -80
- package/src/api/parsers/html/util/__snapshots__/nestedLists.test.ts.snap +0 -144
- package/src/api/parsers/html/util/nestedLists.test.ts +0 -165
- package/src/api/parsers/html/util/nestedLists.ts +0 -123
- package/src/api/parsers/html/util/normalizeWhitespace.ts +0 -87
- package/src/api/parsers/markdown/autolink.ts +0 -23
- package/src/api/parsers/markdown/detectMarkdown.test.ts +0 -211
- package/src/api/parsers/markdown/detectMarkdown.ts +0 -61
- package/src/api/parsers/markdown/markdownToHtml.ts +0 -1444
- package/src/api/parsers/markdown/parseMarkdown.ts +0 -24
- package/src/api/pmUtil.ts +0 -79
- package/src/api/positionMapping.test.ts +0 -209
- package/src/api/positionMapping.ts +0 -42
- package/src/blocks/Audio/block.ts +0 -171
- package/src/blocks/Audio/parseAudioElement.ts +0 -5
- package/src/blocks/BlockNoteSchema.ts +0 -59
- package/src/blocks/Code/CodeBlockOptions.ts +0 -83
- package/src/blocks/Code/block.test.ts +0 -265
- package/src/blocks/Code/block.ts +0 -56
- package/src/blocks/Code/helpers/extensions/CodeKeyboardShortcutsExtension.ts +0 -125
- package/src/blocks/Code/helpers/parse/parsePreCode.ts +0 -45
- package/src/blocks/Code/helpers/render/createCodeBlock.ts +0 -98
- package/src/blocks/Code/helpers/toExternalHTML/createPreCode.ts +0 -14
- package/src/blocks/Divider/block.ts +0 -49
- package/src/blocks/File/block.ts +0 -95
- package/src/blocks/File/helpers/parse/parseEmbedElement.ts +0 -5
- package/src/blocks/File/helpers/parse/parseFigureElement.ts +0 -16
- package/src/blocks/File/helpers/render/createAddFileButton.ts +0 -69
- package/src/blocks/File/helpers/render/createFileBlockWrapper.ts +0 -88
- package/src/blocks/File/helpers/render/createFileNameWithIcon.ts +0 -37
- package/src/blocks/File/helpers/render/createResizableFileBlockWrapper.ts +0 -271
- package/src/blocks/File/helpers/toExternalHTML/createFigureWithCaption.ts +0 -13
- package/src/blocks/File/helpers/toExternalHTML/createLinkWithCaption.ts +0 -15
- package/src/blocks/Heading/block.ts +0 -227
- package/src/blocks/Image/block.ts +0 -193
- package/src/blocks/Image/parseImageElement.ts +0 -7
- package/src/blocks/ListItem/BulletListItem/block.ts +0 -129
- package/src/blocks/ListItem/CheckListItem/block.test.ts +0 -61
- package/src/blocks/ListItem/CheckListItem/block.ts +0 -184
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.test.ts +0 -352
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +0 -239
- package/src/blocks/ListItem/NumberedListItem/block.ts +0 -143
- package/src/blocks/ListItem/ToggleListItem/block.ts +0 -139
- package/src/blocks/ListItem/getListItemContent.ts +0 -115
- package/src/blocks/PageBreak/block.ts +0 -72
- package/src/blocks/PageBreak/getPageBreakSlashMenuItems.ts +0 -47
- package/src/blocks/Paragraph/block.ts +0 -80
- package/src/blocks/Quote/block.ts +0 -99
- package/src/blocks/README.md +0 -3
- package/src/blocks/Table/TableExtension.test.ts +0 -231
- package/src/blocks/Table/TableExtension.ts +0 -115
- package/src/blocks/Table/block.ts +0 -492
- package/src/blocks/ToggleWrapper/createToggleFrame.ts +0 -126
- package/src/blocks/ToggleWrapper/toggleBlocks.browser.test.ts +0 -1056
- package/src/blocks/Video/block.ts +0 -142
- package/src/blocks/Video/parseVideoElement.ts +0 -7
- package/src/blocks/defaultBlockHelpers.ts +0 -113
- package/src/blocks/defaultBlockTypeGuards.ts +0 -167
- package/src/blocks/defaultBlockTypeItems.test.ts +0 -70
- package/src/blocks/defaultBlockTypeItems.ts +0 -99
- package/src/blocks/defaultBlocks.test.ts +0 -67
- package/src/blocks/defaultBlocks.ts +0 -214
- package/src/blocks/defaultProps.ts +0 -165
- package/src/blocks/getDetailsContent.ts +0 -77
- package/src/blocks/index.ts +0 -30
- package/src/comments/CommentEditorSubmitExtension.test.ts +0 -141
- package/src/comments/CommentEditorSubmitExtension.ts +0 -56
- package/src/comments/extension.ts +0 -396
- package/src/comments/index.ts +0 -8
- package/src/comments/mark.ts +0 -64
- package/src/comments/threadstore/DefaultThreadStoreAuth.ts +0 -106
- package/src/comments/threadstore/ThreadStore.ts +0 -130
- package/src/comments/threadstore/ThreadStoreAuth.ts +0 -13
- package/src/comments/threadstore/TipTapThreadStore.ts +0 -292
- package/src/comments/threadstore/tiptap/types.ts +0 -131
- package/src/comments/types.ts +0 -121
- package/src/editor/Block.css +0 -1498
- package/src/editor/BlockNoteEditor.node.test.ts +0 -35
- package/src/editor/BlockNoteEditor.test.ts +0 -278
- package/src/editor/BlockNoteEditor.ts +0 -1559
- package/src/editor/BlockNoteExtension.test.ts +0 -103
- package/src/editor/BlockNoteExtension.ts +0 -246
- package/src/editor/README.md +0 -3
- package/src/editor/blockColors.browser.test.ts +0 -127
- package/src/editor/cursorPositionTypes.ts +0 -17
- package/src/editor/defaultColors.ts +0 -77
- package/src/editor/editor.css +0 -257
- package/src/editor/managers/BlockManager.ts +0 -256
- package/src/editor/managers/EventManager.browser.test.ts +0 -334
- package/src/editor/managers/EventManager.ts +0 -260
- package/src/editor/managers/ExportManager.ts +0 -137
- package/src/editor/managers/ExtensionManager/ExtensionManager.browser.test.ts +0 -45
- package/src/editor/managers/ExtensionManager/ExtensionManager.node.test.ts +0 -209
- package/src/editor/managers/ExtensionManager/ExtensionManager.test.ts +0 -336
- package/src/editor/managers/ExtensionManager/extensions.ts +0 -200
- package/src/editor/managers/ExtensionManager/index.ts +0 -764
- package/src/editor/managers/ExtensionManager/symbol.ts +0 -5
- package/src/editor/managers/SelectionManager.ts +0 -120
- package/src/editor/managers/StateManager.ts +0 -261
- package/src/editor/managers/StyleManager.browser.test.ts +0 -122
- package/src/editor/managers/StyleManager.test.ts +0 -98
- package/src/editor/managers/StyleManager.ts +0 -278
- package/src/editor/managers/index.ts +0 -8
- package/src/editor/performance.test.ts +0 -192
- package/src/editor/selectionTypes.ts +0 -14
- package/src/editor/transformPasted.test.ts +0 -295
- package/src/editor/transformPasted.ts +0 -294
- package/src/exporter/ExportImage.ts +0 -50
- package/src/exporter/Exporter.test.ts +0 -255
- package/src/exporter/Exporter.ts +0 -185
- package/src/exporter/index.ts +0 -3
- package/src/exporter/mapping.ts +0 -110
- package/src/extensions/BlockChange/BlockChange.ts +0 -67
- package/src/extensions/DropCursor/DropCursor.ts +0 -376
- package/src/extensions/DropCursor/dropIntoChildren.ts +0 -80
- package/src/extensions/DropCursor/utils.ts +0 -195
- package/src/extensions/FilePanel/FilePanel.ts +0 -41
- package/src/extensions/FormattingToolbar/FormattingToolbar.ts +0 -157
- package/src/extensions/History/History.ts +0 -11
- package/src/extensions/InlineContentBoundaryEdit/InlineContentBoundaryEdit.ts +0 -109
- package/src/extensions/LinkToolbar/LinkToolbar.ts +0 -76
- package/src/extensions/LinkToolbar/protocols.ts +0 -13
- package/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboard.test.ts +0 -190
- package/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboard.ts +0 -112
- package/src/extensions/Placeholder/Placeholder.test.ts +0 -23
- package/src/extensions/Placeholder/Placeholder.ts +0 -150
- package/src/extensions/PositionMapping/PositionMapping.ts +0 -68
- package/src/extensions/PreviousBlockType/PreviousBlockType.test.ts +0 -156
- package/src/extensions/PreviousBlockType/PreviousBlockType.ts +0 -201
- package/src/extensions/README.md +0 -3
- package/src/extensions/ReadOnly/ReadOnly.test.ts +0 -181
- package/src/extensions/ReadOnly/ReadOnly.ts +0 -73
- package/src/extensions/ShowSelection/ShowSelection.ts +0 -61
- package/src/extensions/SideMenu/MultipleNodeSelection.ts +0 -89
- package/src/extensions/SideMenu/SideMenu.ts +0 -470
- package/src/extensions/SideMenu/blockDropHandling.ts +0 -372
- package/src/extensions/SideMenu/blockGeometry.browser.test.ts +0 -148
- package/src/extensions/SideMenu/blockGeometry.test.ts +0 -46
- package/src/extensions/SideMenu/blockGeometry.ts +0 -53
- package/src/extensions/SideMenu/dragging.ts +0 -200
- package/src/extensions/SideMenu/sideMenuHover.test.ts +0 -36
- package/src/extensions/SideMenu/sideMenuHover.ts +0 -270
- package/src/extensions/SourceBlockWithPreview/SourceBlockWithPreview.ts +0 -193
- package/src/extensions/SourceInlineContentWithPreview/SourceInlineContentWithPreview.ts +0 -142
- package/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.ts +0 -4
- package/src/extensions/SuggestionMenu/DefaultSuggestionItem.ts +0 -11
- package/src/extensions/SuggestionMenu/SuggestionMenu.test.ts +0 -309
- package/src/extensions/SuggestionMenu/SuggestionMenu.ts +0 -436
- package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +0 -76
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +0 -299
- package/src/extensions/SyntaxHighlighting/SyntaxHighlighting.test.ts +0 -130
- package/src/extensions/SyntaxHighlighting/SyntaxHighlighting.ts +0 -89
- package/src/extensions/SyntaxHighlighting/inlineHighlight.test.ts +0 -135
- package/src/extensions/SyntaxHighlighting/shiki.ts +0 -116
- package/src/extensions/TableHandles/TableHandles.browser.test.ts +0 -307
- package/src/extensions/TableHandles/TableHandles.ts +0 -1263
- package/src/extensions/TrailingNode/TrailingNode.ts +0 -233
- package/src/extensions/Versioning/Versioning.browser.test.ts +0 -151
- package/src/extensions/Versioning/Versioning.node.test.ts +0 -177
- package/src/extensions/Versioning/Versioning.ts +0 -161
- package/src/extensions/Versioning/__test__/result.ts +0 -12
- package/src/extensions/Versioning/comparison.test.ts +0 -40
- package/src/extensions/Versioning/createVersioning.test.ts +0 -867
- package/src/extensions/Versioning/createVersioning.ts +0 -499
- package/src/extensions/Versioning/formatVersionDate.ts +0 -24
- package/src/extensions/Versioning/inMemoryVersioning.test.ts +0 -572
- package/src/extensions/Versioning/inMemoryVersioning.ts +0 -268
- package/src/extensions/Versioning/index.ts +0 -6
- package/src/extensions/Versioning/scrollScheduling.test.ts +0 -51
- package/src/extensions/Versioning/scrollToFirstChange.test.ts +0 -320
- package/src/extensions/Versioning/scrollToFirstChange.ts +0 -139
- package/src/extensions/Versioning/types.ts +0 -219
- package/src/extensions/Versioning/versioningState.ts +0 -154
- package/src/extensions/blockDOM.browser.test.ts +0 -102
- package/src/extensions/blockDOM.test.ts +0 -178
- package/src/extensions/blockDOM.ts +0 -135
- package/src/extensions/index.ts +0 -27
- package/src/extensions/tiptap-extensions/BackgroundColor/BackgroundColorExtension.ts +0 -17
- package/src/extensions/tiptap-extensions/HardBreak/HardBreak.ts +0 -35
- package/src/extensions/tiptap-extensions/KeyboardShortcuts/KeyboardShortcutsExtension.test.ts +0 -1870
- package/src/extensions/tiptap-extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +0 -1116
- package/src/extensions/tiptap-extensions/KeyboardShortcuts/blockIdentity.browser.test.ts +0 -152
- package/src/extensions/tiptap-extensions/Link/helpers/autolink.ts +0 -174
- package/src/extensions/tiptap-extensions/Link/helpers/clickHandler.ts +0 -82
- package/src/extensions/tiptap-extensions/Link/helpers/linkDetector.ts +0 -412
- package/src/extensions/tiptap-extensions/Link/helpers/pasteHandler.ts +0 -53
- package/src/extensions/tiptap-extensions/Link/helpers/tlds.ts +0 -7
- package/src/extensions/tiptap-extensions/Link/helpers/whitespace.ts +0 -13
- package/src/extensions/tiptap-extensions/Link/index.ts +0 -2
- package/src/extensions/tiptap-extensions/Link/link.test.ts +0 -945
- package/src/extensions/tiptap-extensions/Link/link.ts +0 -238
- package/src/extensions/tiptap-extensions/TextAlignment/TextAlignmentExtension.ts +0 -33
- package/src/extensions/tiptap-extensions/TextColor/TextColorExtension.ts +0 -17
- package/src/extensions/tiptap-extensions/UniqueID/UniqueID.test.ts +0 -173
- package/src/extensions/tiptap-extensions/UniqueID/UniqueID.ts +0 -339
- package/src/extensions/tiptap-extensions/index.ts +0 -7
- package/src/extensions-shared/UiElementPosition.ts +0 -4
- package/src/fonts/inter.browser.test.ts +0 -57
- package/src/i18n/dictionary.ts +0 -17
- package/src/i18n/index.ts +0 -2
- package/src/i18n/locales/ar.ts +0 -443
- package/src/i18n/locales/de.ts +0 -477
- package/src/i18n/locales/en.ts +0 -458
- package/src/i18n/locales/es.ts +0 -456
- package/src/i18n/locales/fa.ts +0 -427
- package/src/i18n/locales/fr.ts +0 -504
- package/src/i18n/locales/he.ts +0 -458
- package/src/i18n/locales/hr.ts +0 -472
- package/src/i18n/locales/index.ts +0 -23
- package/src/i18n/locales/is.ts +0 -472
- package/src/i18n/locales/it.ts +0 -480
- package/src/i18n/locales/ja.ts +0 -498
- package/src/i18n/locales/ko.ts +0 -471
- package/src/i18n/locales/nl.ts +0 -459
- package/src/i18n/locales/no.ts +0 -476
- package/src/i18n/locales/pl.ts +0 -449
- package/src/i18n/locales/pt.ts +0 -451
- package/src/i18n/locales/ru.ts +0 -502
- package/src/i18n/locales/sk.ts +0 -456
- package/src/i18n/locales/uk.ts +0 -482
- package/src/i18n/locales/uz.ts +0 -492
- package/src/i18n/locales/vi.ts +0 -457
- package/src/i18n/locales/zh-tw.ts +0 -499
- package/src/i18n/locales/zh.ts +0 -499
- package/src/index.ts +0 -66
- package/src/locales.ts +0 -1
- package/src/pm-nodes/BlockContainer.test.ts +0 -101
- package/src/pm-nodes/BlockContainer.ts +0 -200
- package/src/pm-nodes/BlockGroup.ts +0 -58
- package/src/pm-nodes/Doc.ts +0 -11
- package/src/pm-nodes/README.md +0 -143
- package/src/pm-nodes/index.ts +0 -3
- package/src/pm-nodes/suggestionMarks.ts +0 -43
- package/src/schema/README.md +0 -3
- package/src/schema/blocks/children.test.ts +0 -288
- package/src/schema/blocks/children.ts +0 -136
- package/src/schema/blocks/createSpec.browser.test.ts +0 -176
- package/src/schema/blocks/createSpec.test.ts +0 -354
- package/src/schema/blocks/createSpec.ts +0 -732
- package/src/schema/blocks/extendBlockSpec.test.ts +0 -188
- package/src/schema/blocks/frame.test.ts +0 -112
- package/src/schema/blocks/frame.ts +0 -337
- package/src/schema/blocks/internal.test.ts +0 -86
- package/src/schema/blocks/internal.ts +0 -288
- package/src/schema/blocks/keyboard.ts +0 -154
- package/src/schema/blocks/layoutBlockAttributes.ts +0 -29
- package/src/schema/blocks/meta.test.ts +0 -53
- package/src/schema/blocks/meta.ts +0 -35
- package/src/schema/blocks/renderFrame.test.ts +0 -691
- package/src/schema/blocks/types.ts +0 -966
- package/src/schema/blocks/validateChildren.ts +0 -156
- package/src/schema/contentTypePropagation.test.ts +0 -182
- package/src/schema/dataAttributes.test.ts +0 -72
- package/src/schema/dataAttributes.ts +0 -69
- package/src/schema/index.ts +0 -15
- package/src/schema/inlineContent/createSpec.test.ts +0 -161
- package/src/schema/inlineContent/createSpec.ts +0 -409
- package/src/schema/inlineContent/internal.ts +0 -131
- package/src/schema/inlineContent/types.ts +0 -204
- package/src/schema/markGroups.ts +0 -82
- package/src/schema/nodeViewMutations.test.ts +0 -146
- package/src/schema/nodeViewMutations.ts +0 -49
- package/src/schema/propTypes.ts +0 -61
- package/src/schema/schema.test.ts +0 -110
- package/src/schema/schema.ts +0 -243
- package/src/schema/styles/createSpec.ts +0 -140
- package/src/schema/styles/internal.ts +0 -155
- package/src/schema/styles/types.ts +0 -57
- package/src/style.css +0 -2
- package/src/user/UserStore.ts +0 -199
- package/src/user/createUserStore.test.ts +0 -126
- package/src/user/index.ts +0 -2
- package/src/user/userColors.test.ts +0 -108
- package/src/user/userColors.ts +0 -101
- package/src/util/EventEmitter.ts +0 -59
- package/src/util/README.md +0 -3
- package/src/util/Store.test.ts +0 -132
- package/src/util/Store.ts +0 -135
- package/src/util/browser.ts +0 -54
- package/src/util/combineByGroup.ts +0 -25
- package/src/util/expandToWords.ts +0 -38
- package/src/util/string.ts +0 -36
- package/src/util/table.ts +0 -110
- package/src/util/topo-sort.test.ts +0 -125
- package/src/util/topo-sort.ts +0 -206
- package/src/util/typescript.ts +0 -17
- package/src/vite-env.d.ts +0 -7
- package/src/y/README.md +0 -5
- package/src/y/comments/RESTYjsThreadStore.ts +0 -138
- package/src/y/comments/YjsThreadStore.test.ts +0 -295
- package/src/y/comments/YjsThreadStore.ts +0 -358
- package/src/y/comments/YjsThreadStoreBase.ts +0 -50
- package/src/y/comments/index.ts +0 -3
- package/src/y/comments/yjsHelpers.ts +0 -125
- package/src/y/extensions/AttributionExtension.test.ts +0 -364
- package/src/y/extensions/AttributionExtension.ts +0 -401
- package/src/y/extensions/DiffVersioningExtension.test.ts +0 -242
- package/src/y/extensions/DiffVersioningExtension.ts +0 -200
- package/src/y/extensions/EmptyDocBinding.test.ts +0 -282
- package/src/y/extensions/ForkYDoc.node.test.ts +0 -77
- package/src/y/extensions/ForkYDoc.test.ts +0 -344
- package/src/y/extensions/ForkYDoc.ts +0 -117
- package/src/y/extensions/History.test.ts +0 -125
- package/src/y/extensions/RelativePositionMapping.test.ts +0 -453
- package/src/y/extensions/RelativePositionMapping.ts +0 -45
- package/src/y/extensions/Suggestions.ts +0 -174
- package/src/y/extensions/Versioning.node.test.ts +0 -126
- package/src/y/extensions/Versioning.test.ts +0 -117
- package/src/y/extensions/Versioning.ts +0 -74
- package/src/y/extensions/YAttributionMarks.ts +0 -422
- package/src/y/extensions/YCursorPlugin.ts +0 -192
- package/src/y/extensions/YSync.node.test.ts +0 -75
- package/src/y/extensions/YSync.ts +0 -197
- package/src/y/extensions/YSyncRemount.test.ts +0 -99
- package/src/y/extensions/blockMatchNodes.ts +0 -173
- package/src/y/extensions/index.ts +0 -140
- package/src/y/extensions/legacyYjsDocBinding.test.ts +0 -652
- package/src/y/extensions/nestingChanges.test.ts +0 -326
- package/src/y/extensions/persistentBlockGroups.test.ts +0 -1709
- package/src/y/extensions/persistentBlockGroups.ts +0 -953
- package/src/y/extensions/snapshotCodec.test.ts +0 -105
- package/src/y/extensions/snapshotCodec.ts +0 -39
- package/src/y/extensions/snapshotPreview.test.ts +0 -201
- package/src/y/extensions/snapshotPreview.ts +0 -292
- package/src/y/extensions/tableReshape.test.ts +0 -121
- package/src/y/extensions/v1BindingSnapshotDiff.test.ts +0 -121
- package/src/y/extensions/versionDiffAttribution.test.ts +0 -944
- package/src/y/extensions/versionDiffPerformance.test.ts +0 -101
- package/src/y/index.ts +0 -5
- package/src/y/utils.test.ts +0 -1309
- package/src/y/utils.ts +0 -366
- package/src/y/versioning/__test__/fixtures/activity-all-after.bin +0 -0
- package/src/y/versioning/__test__/fixtures/activity-all-after.json +0 -50
- package/src/y/versioning/__test__/fixtures/activity-all.bin +0 -0
- package/src/y/versioning/__test__/fixtures/activity-all.json +0 -20
- package/src/y/versioning/__test__/fixtures/activity-filtered-after.bin +0 -0
- package/src/y/versioning/__test__/fixtures/activity-filtered-after.json +0 -32
- package/src/y/versioning/__test__/fixtures/activity-filtered-before.json +0 -1
- package/src/y/versioning/__test__/fixtures/changeset.bin +0 -0
- package/src/y/versioning/__test__/fixtures/patch-response.json +0 -4
- package/src/y/versioning/__test__/yhub.test.ts +0 -966
- package/src/y/versioning/index.ts +0 -6
- package/src/y/versioning/yhub.ts +0 -350
- package/src/y/versioning/yhubClient.ts +0 -345
- package/src/yjs/README.md +0 -5
- package/src/yjs/comments/RESTYjsThreadStore.test.ts +0 -95
- package/src/yjs/comments/RESTYjsThreadStore.ts +0 -172
- package/src/yjs/comments/YjsThreadStore.test.ts +0 -295
- package/src/yjs/comments/YjsThreadStore.ts +0 -345
- package/src/yjs/comments/YjsThreadStoreBase.ts +0 -50
- package/src/yjs/comments/index.ts +0 -3
- package/src/yjs/comments/yjsHelpers.ts +0 -127
- package/src/yjs/extensions/FixUpSchema.test.ts +0 -421
- package/src/yjs/extensions/FixUpSchema.ts +0 -99
- package/src/yjs/extensions/ForkYDoc.browser.test.ts +0 -84
- package/src/yjs/extensions/ForkYDoc.node.test.ts +0 -231
- package/src/yjs/extensions/ForkYDoc.test.ts +0 -320
- package/src/yjs/extensions/ForkYDoc.ts +0 -177
- package/src/yjs/extensions/RelativePositionMapping.test.ts +0 -418
- package/src/yjs/extensions/RelativePositionMapping.ts +0 -77
- package/src/yjs/extensions/Versioning.test.ts +0 -376
- package/src/yjs/extensions/Versioning.ts +0 -126
- package/src/yjs/extensions/YCursorPlugin.ts +0 -201
- package/src/yjs/extensions/YSync.ts +0 -16
- package/src/yjs/extensions/YUndo.ts +0 -12
- package/src/yjs/extensions/__snapshots__/fork-yjs-snap-editor-forked.json +0 -19
- package/src/yjs/extensions/__snapshots__/fork-yjs-snap-editor.json +0 -19
- package/src/yjs/extensions/__snapshots__/fork-yjs-snap-forked.html +0 -1
- package/src/yjs/extensions/__snapshots__/fork-yjs-snap.html +0 -1
- package/src/yjs/extensions/index.ts +0 -89
- package/src/yjs/extensions/schemaMigration/SchemaMigration.ts +0 -59
- package/src/yjs/extensions/schemaMigration/migrationRules/index.ts +0 -4
- package/src/yjs/extensions/schemaMigration/migrationRules/migrationRule.ts +0 -4
- package/src/yjs/extensions/schemaMigration/migrationRules/moveColorAttributes.test.ts +0 -130
- package/src/yjs/extensions/schemaMigration/migrationRules/moveColorAttributes.ts +0 -91
- package/src/yjs/index.ts +0 -7
- package/src/yjs/utils.test.ts +0 -1013
- package/src/yjs/utils.ts +0 -186
- package/types/src/api/blockManipulation/commands/insertBlocks/insertBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/insertBlocks/insertPlacement.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/mergeBlocks/mergeBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/nestBlock/nestBlock.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.test.d.ts +0 -1
- package/types/src/api/blockManipulation/commands/updateBlock/updateBlock.test.d.ts +0 -1
- package/types/src/api/blockManipulation/layoutBlocks/layoutBlocks.browser.test.d.ts +0 -1
- package/types/src/api/blockManipulation/layoutBlocks/layoutBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/layoutBlocks/plainBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/layoutBlocks/titledBlocks.test.d.ts +0 -1
- package/types/src/api/blockManipulation/tables/tables.test.d.ts +0 -1
- package/types/src/api/getBlockInfoFromPos.test.d.ts +0 -1
- package/types/src/api/getBlocksChangedByTransaction.test.d.ts +0 -1
- package/types/src/api/getChangedRanges.test.d.ts +0 -1
- package/types/src/api/nodeConversions/blockToNode.test.d.ts +0 -1
- package/types/src/api/parsers/html/util/nestedLists.test.d.ts +0 -1
- package/types/src/api/parsers/markdown/detectMarkdown.test.d.ts +0 -1
- package/types/src/api/positionMapping.test.d.ts +0 -1
- package/types/src/blocks/Code/block.test.d.ts +0 -1
- package/types/src/blocks/ListItem/CheckListItem/block.test.d.ts +0 -1
- package/types/src/blocks/ListItem/NumberedListItem/IndexingPlugin.test.d.ts +0 -1
- package/types/src/blocks/Table/TableExtension.test.d.ts +0 -1
- package/types/src/blocks/ToggleWrapper/toggleBlocks.browser.test.d.ts +0 -1
- package/types/src/blocks/defaultBlockTypeItems.test.d.ts +0 -1
- package/types/src/blocks/defaultBlocks.test.d.ts +0 -1
- package/types/src/comments/CommentEditorSubmitExtension.test.d.ts +0 -1
- package/types/src/editor/BlockNoteEditor.node.test.d.ts +0 -1
- package/types/src/editor/BlockNoteEditor.test.d.ts +0 -1
- package/types/src/editor/BlockNoteExtension.test.d.ts +0 -1
- package/types/src/editor/blockColors.browser.test.d.ts +0 -1
- package/types/src/editor/managers/EventManager.browser.test.d.ts +0 -1
- package/types/src/editor/managers/ExtensionManager/ExtensionManager.browser.test.d.ts +0 -1
- package/types/src/editor/managers/ExtensionManager/ExtensionManager.node.test.d.ts +0 -1
- package/types/src/editor/managers/ExtensionManager/ExtensionManager.test.d.ts +0 -1
- package/types/src/editor/managers/StyleManager.browser.test.d.ts +0 -1
- package/types/src/editor/managers/StyleManager.test.d.ts +0 -1
- package/types/src/editor/performance.test.d.ts +0 -1
- package/types/src/editor/transformPasted.test.d.ts +0 -1
- package/types/src/exporter/Exporter.test.d.ts +0 -1
- package/types/src/extensions/NodeSelectionKeyboard/NodeSelectionKeyboard.test.d.ts +0 -1
- package/types/src/extensions/Placeholder/Placeholder.test.d.ts +0 -1
- package/types/src/extensions/PreviousBlockType/PreviousBlockType.test.d.ts +0 -1
- package/types/src/extensions/ReadOnly/ReadOnly.test.d.ts +0 -1
- package/types/src/extensions/SideMenu/blockGeometry.browser.test.d.ts +0 -1
- package/types/src/extensions/SideMenu/blockGeometry.test.d.ts +0 -1
- package/types/src/extensions/SideMenu/sideMenuHover.test.d.ts +0 -1
- package/types/src/extensions/SuggestionMenu/DefaultGridSuggestionItem.d.ts +0 -4
- package/types/src/extensions/SuggestionMenu/SuggestionMenu.test.d.ts +0 -1
- package/types/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.d.ts +0 -4
- package/types/src/extensions/SyntaxHighlighting/SyntaxHighlighting.test.d.ts +0 -1
- package/types/src/extensions/SyntaxHighlighting/inlineHighlight.test.d.ts +0 -1
- package/types/src/extensions/TableHandles/TableHandles.browser.test.d.ts +0 -1
- package/types/src/extensions/Versioning/Versioning.browser.test.d.ts +0 -1
- package/types/src/extensions/Versioning/Versioning.node.test.d.ts +0 -1
- package/types/src/extensions/Versioning/__test__/result.d.ts +0 -3
- package/types/src/extensions/Versioning/comparison.test.d.ts +0 -1
- package/types/src/extensions/Versioning/createVersioning.test.d.ts +0 -1
- package/types/src/extensions/Versioning/inMemoryVersioning.test.d.ts +0 -1
- package/types/src/extensions/Versioning/scrollScheduling.test.d.ts +0 -1
- package/types/src/extensions/Versioning/scrollToFirstChange.test.d.ts +0 -1
- package/types/src/extensions/blockDOM.browser.test.d.ts +0 -1
- package/types/src/extensions/blockDOM.test.d.ts +0 -1
- package/types/src/extensions/tiptap-extensions/KeyboardShortcuts/KeyboardShortcutsExtension.test.d.ts +0 -4
- package/types/src/extensions/tiptap-extensions/KeyboardShortcuts/blockIdentity.browser.test.d.ts +0 -1
- package/types/src/extensions/tiptap-extensions/Link/link.test.d.ts +0 -1
- package/types/src/extensions/tiptap-extensions/UniqueID/UniqueID.test.d.ts +0 -4
- package/types/src/fonts/inter.browser.test.d.ts +0 -2
- package/types/src/pm-nodes/BlockContainer.test.d.ts +0 -1
- package/types/src/schema/blocks/children.test.d.ts +0 -1
- package/types/src/schema/blocks/createSpec.browser.test.d.ts +0 -1
- package/types/src/schema/blocks/createSpec.test.d.ts +0 -1
- package/types/src/schema/blocks/extendBlockSpec.test.d.ts +0 -1
- package/types/src/schema/blocks/frame.test.d.ts +0 -1
- package/types/src/schema/blocks/internal.test.d.ts +0 -1
- package/types/src/schema/blocks/meta.test.d.ts +0 -1
- package/types/src/schema/blocks/renderFrame.test.d.ts +0 -1
- package/types/src/schema/contentTypePropagation.test.d.ts +0 -1
- package/types/src/schema/dataAttributes.test.d.ts +0 -1
- package/types/src/schema/inlineContent/createSpec.test.d.ts +0 -1
- package/types/src/schema/nodeViewMutations.test.d.ts +0 -1
- package/types/src/schema/schema.test.d.ts +0 -1
- package/types/src/user/createUserStore.test.d.ts +0 -1
- package/types/src/user/userColors.test.d.ts +0 -1
- package/types/src/util/Store.test.d.ts +0 -1
- package/types/src/util/topo-sort.test.d.ts +0 -1
- package/types/src/y/comments/YjsThreadStore.test.d.ts +0 -1
- package/types/src/y/extensions/AttributionExtension.test.d.ts +0 -1
- package/types/src/y/extensions/DiffVersioningExtension.test.d.ts +0 -1
- package/types/src/y/extensions/EmptyDocBinding.test.d.ts +0 -1
- package/types/src/y/extensions/ForkYDoc.node.test.d.ts +0 -1
- package/types/src/y/extensions/ForkYDoc.test.d.ts +0 -1
- package/types/src/y/extensions/History.test.d.ts +0 -1
- package/types/src/y/extensions/RelativePositionMapping.test.d.ts +0 -1
- package/types/src/y/extensions/Versioning.node.test.d.ts +0 -1
- package/types/src/y/extensions/Versioning.test.d.ts +0 -1
- package/types/src/y/extensions/YSync.node.test.d.ts +0 -1
- package/types/src/y/extensions/YSyncRemount.test.d.ts +0 -1
- package/types/src/y/extensions/legacyYjsDocBinding.test.d.ts +0 -1
- package/types/src/y/extensions/nestingChanges.test.d.ts +0 -1
- package/types/src/y/extensions/persistentBlockGroups.test.d.ts +0 -1
- package/types/src/y/extensions/snapshotCodec.test.d.ts +0 -1
- package/types/src/y/extensions/snapshotPreview.test.d.ts +0 -1
- package/types/src/y/extensions/tableReshape.test.d.ts +0 -1
- package/types/src/y/extensions/v1BindingSnapshotDiff.test.d.ts +0 -1
- package/types/src/y/extensions/versionDiffAttribution.test.d.ts +0 -1
- package/types/src/y/extensions/versionDiffPerformance.test.d.ts +0 -1
- package/types/src/y/utils.test.d.ts +0 -1
- package/types/src/y/versioning/__test__/yhub.test.d.ts +0 -1
- package/types/src/yjs/comments/RESTYjsThreadStore.test.d.ts +0 -1
- package/types/src/yjs/comments/YjsThreadStore.test.d.ts +0 -1
- package/types/src/yjs/extensions/FixUpSchema.test.d.ts +0 -1
- package/types/src/yjs/extensions/ForkYDoc.browser.test.d.ts +0 -1
- package/types/src/yjs/extensions/ForkYDoc.node.test.d.ts +0 -1
- package/types/src/yjs/extensions/ForkYDoc.test.d.ts +0 -1
- package/types/src/yjs/extensions/RelativePositionMapping.test.d.ts +0 -1
- package/types/src/yjs/extensions/Versioning.test.d.ts +0 -1
- package/types/src/yjs/extensions/schemaMigration/migrationRules/moveColorAttributes.test.d.ts +0 -1
- package/types/src/yjs/utils.test.d.ts +0 -1
package/src/editor/Block.css
DELETED
|
@@ -1,1498 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
BASIC STYLES
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
.bn-block-outer {
|
|
6
|
-
line-height: 1.5;
|
|
7
|
-
transition: margin 0.2s;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/*Ensures blocks & block content spans editor width*/
|
|
11
|
-
.bn-block {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.bn-block-content {
|
|
17
|
-
padding: 3px 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
transition: font-size 0.2s;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.bn-block-content.ProseMirror-selectednode > *,
|
|
24
|
-
/* Case for node view renderers */
|
|
25
|
-
.ProseMirror-selectednode > .bn-block-content > *,
|
|
26
|
-
/* Case for blocks/inline content where class is set manually */
|
|
27
|
-
.bn-block-content .ProseMirror-selectednode,
|
|
28
|
-
.bn-inline-content .ProseMirror-selectednode,
|
|
29
|
-
/* The block a dragged block drops into (set by the drop cursor) */
|
|
30
|
-
.bn-block-outer[data-drop-target="true"] {
|
|
31
|
-
/* Anchor for the `::after` highlight overlay below. */
|
|
32
|
-
position: relative;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Draws the selection highlight (border + translucent fill) as an overlay on
|
|
36
|
-
top of the element's content */
|
|
37
|
-
.bn-block-content.ProseMirror-selectednode > *::after,
|
|
38
|
-
.ProseMirror-selectednode > .bn-block-content > *::after,
|
|
39
|
-
.bn-block-content .ProseMirror-selectednode::after,
|
|
40
|
-
.bn-inline-content .ProseMirror-selectednode::after,
|
|
41
|
-
.bn-block-outer[data-drop-target="true"]::after {
|
|
42
|
-
content: "";
|
|
43
|
-
position: absolute;
|
|
44
|
-
inset: 0;
|
|
45
|
-
border-radius: 4px;
|
|
46
|
-
background-color: rgba(100, 160, 255, 0.08);
|
|
47
|
-
box-shadow: inset 0 0 0 4px rgba(100, 160, 255, 0.3);
|
|
48
|
-
pointer-events: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.bn-inline-content .ProseMirror-selectednode::after {
|
|
52
|
-
background-color: rgba(100, 160, 255, 0.3);
|
|
53
|
-
box-shadow: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.bn-block-content::before {
|
|
57
|
-
content: "";
|
|
58
|
-
margin-right: 0;
|
|
59
|
-
transition: all 0.2s;
|
|
60
|
-
/* Workaround for selection issue on Chrome, see #1588 and also here:
|
|
61
|
-
https://discuss.prosemirror.net/t/mouse-down-selection-behaviour-different-on-chrome/8426
|
|
62
|
-
The :before element causes the selection to be set in the wrong place vs
|
|
63
|
-
other browsers. Setting no height fixes this, while list item indicators are
|
|
64
|
-
still displayed fine as overflow is not hidden. */
|
|
65
|
-
height: 0;
|
|
66
|
-
overflow: visible;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.bn-inline-content {
|
|
70
|
-
/* Ensure pre-wrap even when a parent node view wrapper (e.g. tiptap's
|
|
71
|
-
NodeViewWrapper) resets white-space to "normal". Without this, browsers
|
|
72
|
-
normalize trailing spaces to NBSP on input, which causes ProseMirror to
|
|
73
|
-
compute a replacement instead of a pure insertion and breaks the
|
|
74
|
-
suggestion-menu trigger detection (issue #2531). */
|
|
75
|
-
white-space: pre-wrap;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.bn-trailing-block {
|
|
79
|
-
cursor: text;
|
|
80
|
-
height: 30px;
|
|
81
|
-
user-select: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/*
|
|
85
|
-
NESTED BLOCKS
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
.bn-block-group .bn-block-group {
|
|
89
|
-
margin-left: 24px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Attribution wrappers use display: contents; descendant selectors also reach
|
|
93
|
-
nested blocks inside those wrappers. */
|
|
94
|
-
.bn-block-group .bn-block-group .bn-block-outer {
|
|
95
|
-
position: relative;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.bn-block-group
|
|
99
|
-
.bn-block-group
|
|
100
|
-
.bn-block-outer:not([data-prev-depth-changed])::before {
|
|
101
|
-
content: " ";
|
|
102
|
-
display: inline;
|
|
103
|
-
position: absolute;
|
|
104
|
-
left: -20px;
|
|
105
|
-
height: 100%;
|
|
106
|
-
transition: all 0.2s 0.1s;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.bn-block-group
|
|
110
|
-
.bn-block-group
|
|
111
|
-
.bn-block-outer[data-prev-depth-change="-2"]::before {
|
|
112
|
-
height: 0;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.bn-inline-content code {
|
|
116
|
-
font-family: monospace;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* NESTED BLOCK ANIMATIONS (change in indent) */
|
|
120
|
-
|
|
121
|
-
[data-prev-depth-change="1"] {
|
|
122
|
-
--x: 1;
|
|
123
|
-
}
|
|
124
|
-
[data-prev-depth-change="2"] {
|
|
125
|
-
--x: 2;
|
|
126
|
-
}
|
|
127
|
-
[data-prev-depth-change="3"] {
|
|
128
|
-
--x: 3;
|
|
129
|
-
}
|
|
130
|
-
[data-prev-depth-change="4"] {
|
|
131
|
-
--x: 4;
|
|
132
|
-
}
|
|
133
|
-
[data-prev-depth-change="5"] {
|
|
134
|
-
--x: 5;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
[data-prev-depth-change="-1"] {
|
|
138
|
-
--x: -1;
|
|
139
|
-
}
|
|
140
|
-
[data-prev-depth-change="-2"] {
|
|
141
|
-
--x: -2;
|
|
142
|
-
}
|
|
143
|
-
[data-prev-depth-change="-3"] {
|
|
144
|
-
--x: -3;
|
|
145
|
-
}
|
|
146
|
-
[data-prev-depth-change="-4"] {
|
|
147
|
-
--x: -4;
|
|
148
|
-
}
|
|
149
|
-
[data-prev-depth-change="-5"] {
|
|
150
|
-
--x: -5;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.bn-block-outer[data-prev-depth-change] {
|
|
154
|
-
margin-left: calc(10px * var(--x));
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.bn-block-outer[data-prev-depth-change]
|
|
158
|
-
.bn-block-outer[data-prev-depth-change] {
|
|
159
|
-
margin-left: 0;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* HEADINGS*/
|
|
163
|
-
[data-content-type="heading"] {
|
|
164
|
-
padding-top: 18px;
|
|
165
|
-
--level: 3em;
|
|
166
|
-
}
|
|
167
|
-
[data-content-type="heading"][data-level="2"] {
|
|
168
|
-
--level: 2em;
|
|
169
|
-
}
|
|
170
|
-
[data-content-type="heading"][data-level="3"] {
|
|
171
|
-
--level: 1.3em;
|
|
172
|
-
}
|
|
173
|
-
[data-content-type="heading"][data-level="4"] {
|
|
174
|
-
--level: 1em;
|
|
175
|
-
}
|
|
176
|
-
[data-content-type="heading"][data-level="5"] {
|
|
177
|
-
--level: 0.9em;
|
|
178
|
-
}
|
|
179
|
-
[data-content-type="heading"][data-level="6"] {
|
|
180
|
-
--level: 0.8em;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
[data-prev-level="1"] {
|
|
184
|
-
--prev-level: 3em;
|
|
185
|
-
}
|
|
186
|
-
[data-prev-level="2"] {
|
|
187
|
-
--prev-level: 2em;
|
|
188
|
-
}
|
|
189
|
-
[data-prev-level="3"] {
|
|
190
|
-
--prev-level: 1.3em;
|
|
191
|
-
}
|
|
192
|
-
[data-prev-level="4"] {
|
|
193
|
-
--prev-level: 1em;
|
|
194
|
-
}
|
|
195
|
-
[data-prev-level="5"] {
|
|
196
|
-
--prev-level: 0.9em;
|
|
197
|
-
}
|
|
198
|
-
[data-prev-level="6"] {
|
|
199
|
-
--prev-level: 0.8em;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.bn-block-outer[data-prev-type="heading"] > .bn-block > .bn-block-content,
|
|
203
|
-
.bn-block-outer[data-prev-type="heading"]
|
|
204
|
-
> .bn-block
|
|
205
|
-
> .bn-toggle-frame
|
|
206
|
-
> .bn-toggle-slot
|
|
207
|
-
> .bn-block-content {
|
|
208
|
-
font-size: var(--prev-level);
|
|
209
|
-
font-weight: bold;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.bn-block-outer:not([data-prev-type])
|
|
213
|
-
> .bn-block
|
|
214
|
-
> .bn-block-content[data-content-type="heading"],
|
|
215
|
-
/* A toggle heading, inside its toggle frame. */
|
|
216
|
-
.bn-block-outer:not([data-prev-type])
|
|
217
|
-
> .bn-block
|
|
218
|
-
> .bn-toggle-frame
|
|
219
|
-
> .bn-toggle-slot
|
|
220
|
-
> .bn-block-content[data-content-type="heading"],
|
|
221
|
-
/* A changed toggle heading: wrapped in suggestion marks inside its slot. */
|
|
222
|
-
.bn-block-outer:not([data-prev-type])
|
|
223
|
-
> .bn-block
|
|
224
|
-
> .bn-toggle-frame
|
|
225
|
-
> .bn-toggle-slot
|
|
226
|
-
> :not(.bn-block-group)
|
|
227
|
-
.bn-block-content[data-content-type="heading"],
|
|
228
|
-
.bn-block-outer:not([data-prev-type])
|
|
229
|
-
> .bn-block
|
|
230
|
-
> :is(ins, del, [data-type="attributes"])
|
|
231
|
-
> span
|
|
232
|
-
> :is(ins, del, [data-type="attributes"])
|
|
233
|
-
> span
|
|
234
|
-
> .bn-block-content[data-content-type="heading"],
|
|
235
|
-
.bn-block-outer:not([data-prev-type])
|
|
236
|
-
> .bn-block
|
|
237
|
-
> div[data-type="modification"]
|
|
238
|
-
> div[data-type="modification"]
|
|
239
|
-
> .bn-block-content[data-content-type="heading"],
|
|
240
|
-
.bn-block-outer:not([data-prev-type])
|
|
241
|
-
> .bn-block
|
|
242
|
-
> [data-type="attributes"]
|
|
243
|
-
> span
|
|
244
|
-
> .bn-block-content[data-content-type="heading"],
|
|
245
|
-
.bn-block-outer:not([data-prev-type])
|
|
246
|
-
> .bn-block
|
|
247
|
-
> :is(ins, del)
|
|
248
|
-
> .bn-suggestion-node
|
|
249
|
-
> .bn-block-content[data-content-type="heading"] {
|
|
250
|
-
font-size: var(--level);
|
|
251
|
-
font-weight: bold;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/* QUOTES */
|
|
255
|
-
[data-content-type="quote"] blockquote {
|
|
256
|
-
border-left: 2px solid rgb(125, 121, 122);
|
|
257
|
-
color: rgb(125, 121, 122);
|
|
258
|
-
margin: 0;
|
|
259
|
-
padding-left: 1em;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/* DIVIDERS */
|
|
263
|
-
[data-content-type="divider"] hr {
|
|
264
|
-
border: none;
|
|
265
|
-
border-top: 1px solid rgb(125, 121, 122);
|
|
266
|
-
margin: 0.5em 0;
|
|
267
|
-
flex: 1;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/* LISTS */
|
|
271
|
-
|
|
272
|
-
.bn-block-content::before {
|
|
273
|
-
margin-right: 0;
|
|
274
|
-
content: "";
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/* Ordered */
|
|
278
|
-
.bn-block-content[data-content-type="numberedListItem"]::before {
|
|
279
|
-
display: flex;
|
|
280
|
-
justify-content: center;
|
|
281
|
-
min-width: 24px;
|
|
282
|
-
padding-right: 4px;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
[data-content-type="numberedListItem"] {
|
|
286
|
-
--index: attr(data-index);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
[data-prev-type="numberedListItem"] {
|
|
290
|
-
--prev-index: attr(data-prev-index);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.bn-block-outer[data-prev-type="numberedListItem"]:not([data-prev-index="none"])
|
|
294
|
-
> .bn-block
|
|
295
|
-
> .bn-block-content::before {
|
|
296
|
-
content: var(--prev-index) ".";
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.bn-block-outer:not([data-prev-type])
|
|
300
|
-
> .bn-block
|
|
301
|
-
> .bn-block-content[data-content-type="numberedListItem"]::before,
|
|
302
|
-
.bn-block-outer:not([data-prev-type])
|
|
303
|
-
> .bn-block
|
|
304
|
-
> :is(ins, del, [data-type="attributes"])
|
|
305
|
-
> span
|
|
306
|
-
> :is(ins, del, [data-type="attributes"])
|
|
307
|
-
> span
|
|
308
|
-
> .bn-block-content[data-content-type="numberedListItem"]::before,
|
|
309
|
-
.bn-block-outer:not([data-prev-type])
|
|
310
|
-
> .bn-block
|
|
311
|
-
> [data-type="attributes"]
|
|
312
|
-
> span
|
|
313
|
-
> .bn-block-content[data-content-type="numberedListItem"]::before,
|
|
314
|
-
.bn-block-outer:not([data-prev-type])
|
|
315
|
-
> .bn-block
|
|
316
|
-
> div[data-type="modification"]
|
|
317
|
-
> .bn-block-content[data-content-type="numberedListItem"]::before,
|
|
318
|
-
.bn-block-outer:not([data-prev-type])
|
|
319
|
-
> .bn-block
|
|
320
|
-
> :is(ins, del)
|
|
321
|
-
> .bn-suggestion-node
|
|
322
|
-
> .bn-block-content[data-content-type="numberedListItem"]::before {
|
|
323
|
-
content: var(--index) ".";
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/* Unordered */
|
|
327
|
-
.bn-block-content[data-content-type="bulletListItem"]::before {
|
|
328
|
-
display: flex;
|
|
329
|
-
justify-content: center;
|
|
330
|
-
min-width: 24px;
|
|
331
|
-
padding-right: 4px;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/* Checked */
|
|
335
|
-
.bn-block-content[data-content-type="checkListItem"] > div:has(> input) {
|
|
336
|
-
height: 24px;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.bn-block-content[data-content-type="checkListItem"] > div > input {
|
|
340
|
-
cursor: pointer;
|
|
341
|
-
height: 24px;
|
|
342
|
-
margin-left: 4px;
|
|
343
|
-
margin-right: 8px;
|
|
344
|
-
margin-block: 0;
|
|
345
|
-
width: 12px;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.bn-block-content[data-content-type="checkListItem"][data-checked="true"]
|
|
349
|
-
.bn-inline-content {
|
|
350
|
-
text-decoration: line-through;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.bn-block-content[data-text-alignment="center"] {
|
|
354
|
-
justify-content: center;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.bn-block-content[data-text-alignment="right"] {
|
|
358
|
-
justify-content: flex-end;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/* Toggle */
|
|
362
|
-
.bn-toggle-button {
|
|
363
|
-
color: var(--bn-colors-editor-text);
|
|
364
|
-
padding: 3px;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.bn-toggle-button > svg {
|
|
368
|
-
width: 18px;
|
|
369
|
-
height: 18px;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.bn-toggle-button[aria-expanded="true"] {
|
|
373
|
-
transform: rotate(90deg);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/* The frame of the built-in toggle blocks (see `createToggleFrame`): the
|
|
377
|
-
chevron, then the block's content, and the children below, across both
|
|
378
|
-
columns. The slot is `display: contents`, so the content and the child
|
|
379
|
-
group BlockNote mounts in it are items of this grid. */
|
|
380
|
-
.bn-toggle-frame {
|
|
381
|
-
display: grid;
|
|
382
|
-
grid-template-columns: auto 1fr;
|
|
383
|
-
align-items: center;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.bn-toggle-slot {
|
|
387
|
-
display: contents;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.bn-toggle-slot > .bn-block-group,
|
|
391
|
-
.bn-toggle-frame > .bn-toggle-add-block-button {
|
|
392
|
-
grid-column: 1 / -1;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.bn-toggle-frame:has(> .bn-toggle-button[aria-expanded="false"])
|
|
396
|
-
> .bn-toggle-slot
|
|
397
|
-
> .bn-block-group {
|
|
398
|
-
display: none;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/* A heading's top spacing goes on the frame, so the chevron stays centred on
|
|
402
|
-
the heading text. */
|
|
403
|
-
.bn-toggle-frame:has(
|
|
404
|
-
> .bn-toggle-slot > .bn-block-content[data-content-type="heading"],
|
|
405
|
-
/* A changed toggle heading: wrapped in suggestion marks inside its slot. */
|
|
406
|
-
> .bn-toggle-slot
|
|
407
|
-
> :not(.bn-block-group)
|
|
408
|
-
.bn-block-content[data-content-type="heading"]
|
|
409
|
-
) {
|
|
410
|
-
padding-top: 18px;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.bn-toggle-slot > .bn-block-content[data-content-type="heading"],
|
|
414
|
-
/* A changed toggle heading: wrapped in suggestion marks inside its slot. */
|
|
415
|
-
.bn-toggle-slot
|
|
416
|
-
> :not(.bn-block-group)
|
|
417
|
-
.bn-block-content[data-content-type="heading"] {
|
|
418
|
-
padding-top: 0;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.bn-toggle-add-block-button {
|
|
422
|
-
font-size: 16px;
|
|
423
|
-
color: var(--bn-colors-side-menu);
|
|
424
|
-
font-weight: normal;
|
|
425
|
-
margin-left: 22px;
|
|
426
|
-
padding-inline: 2px;
|
|
427
|
-
width: fit-content;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.bn-toggle-button,
|
|
431
|
-
.bn-toggle-add-block-button {
|
|
432
|
-
background: none;
|
|
433
|
-
border: none;
|
|
434
|
-
border-radius: var(--bn-border-radius-small);
|
|
435
|
-
cursor: pointer;
|
|
436
|
-
display: flex;
|
|
437
|
-
user-select: none;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.bn-toggle-button:hover,
|
|
441
|
-
.bn-toggle-add-block-button:hover {
|
|
442
|
-
background-color: var(--bn-colors-hovered-background);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/* Keep the marker on the group so it inherits through attribution wrappers
|
|
446
|
-
between the group and its blocks. Each group resets it, so a list nested
|
|
447
|
-
under a paragraph starts with a disc again. */
|
|
448
|
-
.bn-block-group {
|
|
449
|
-
--bn-bullet-marker: "•";
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
[data-content-type="bulletListItem"] ~ .bn-block-group {
|
|
453
|
-
--bn-bullet-marker: "◦";
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
[data-content-type="bulletListItem"]
|
|
457
|
-
~ .bn-block-group
|
|
458
|
-
[data-content-type="bulletListItem"]
|
|
459
|
-
~ .bn-block-group {
|
|
460
|
-
--bn-bullet-marker: "▪\FE0E";
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.bn-block-outer[data-prev-type="bulletListItem"]
|
|
464
|
-
> .bn-block
|
|
465
|
-
> .bn-block-content::before,
|
|
466
|
-
.bn-block-outer:not([data-prev-type])
|
|
467
|
-
> .bn-block
|
|
468
|
-
> .bn-block-content[data-content-type="bulletListItem"]::before,
|
|
469
|
-
.bn-block-outer:not([data-prev-type])
|
|
470
|
-
> .bn-block
|
|
471
|
-
> :is(ins, del, [data-type="attributes"])
|
|
472
|
-
> span
|
|
473
|
-
> :is(ins, del, [data-type="attributes"])
|
|
474
|
-
> span
|
|
475
|
-
> .bn-block-content[data-content-type="bulletListItem"]::before,
|
|
476
|
-
.bn-block-outer:not([data-prev-type])
|
|
477
|
-
> .bn-block
|
|
478
|
-
> [data-type="attributes"]
|
|
479
|
-
> span
|
|
480
|
-
> .bn-block-content[data-content-type="bulletListItem"]::before,
|
|
481
|
-
.bn-block-outer:not([data-prev-type])
|
|
482
|
-
> .bn-block
|
|
483
|
-
> div[data-type="modification"]
|
|
484
|
-
> .bn-block-content[data-content-type="bulletListItem"]::before,
|
|
485
|
-
.bn-block-outer:not([data-prev-type])
|
|
486
|
-
> .bn-block
|
|
487
|
-
> :is(ins, del)
|
|
488
|
-
> .bn-suggestion-node
|
|
489
|
-
.bn-block-content[data-content-type="bulletListItem"]::before {
|
|
490
|
-
content: var(--bn-bullet-marker);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/* CODE BLOCKS */
|
|
494
|
-
.bn-block-content[data-content-type="codeBlock"],
|
|
495
|
-
/* Keep the code surface above suggestion fills and resets in both themes.
|
|
496
|
-
Source-popup previews have no direct <pre> and keep their transparent surface. */
|
|
497
|
-
.bn-root
|
|
498
|
-
.bn-suggestion-node
|
|
499
|
-
.bn-block-content[data-content-type="codeBlock"]:has(> pre) {
|
|
500
|
-
position: relative;
|
|
501
|
-
|
|
502
|
-
background-color: rgb(22 22 22);
|
|
503
|
-
color: white;
|
|
504
|
-
border-radius: 8px;
|
|
505
|
-
}
|
|
506
|
-
.bn-block-content[data-content-type="codeBlock"] > pre {
|
|
507
|
-
--bn-suggestion-surface: rgb(22 22 22);
|
|
508
|
-
white-space: pre;
|
|
509
|
-
overflow-x: auto;
|
|
510
|
-
margin: 0;
|
|
511
|
-
width: 100%;
|
|
512
|
-
tab-size: 2;
|
|
513
|
-
|
|
514
|
-
padding: 24px;
|
|
515
|
-
}
|
|
516
|
-
.bn-block-content[data-content-type="codeBlock"] > div {
|
|
517
|
-
outline: none !important;
|
|
518
|
-
}
|
|
519
|
-
.bn-block-content[data-content-type="codeBlock"] > div > select {
|
|
520
|
-
outline: none !important;
|
|
521
|
-
appearance: none;
|
|
522
|
-
user-select: none;
|
|
523
|
-
border: none;
|
|
524
|
-
cursor: pointer;
|
|
525
|
-
background-color: transparent;
|
|
526
|
-
|
|
527
|
-
position: absolute;
|
|
528
|
-
top: 8px;
|
|
529
|
-
left: 18px;
|
|
530
|
-
|
|
531
|
-
font-size: 0.8em;
|
|
532
|
-
color: white;
|
|
533
|
-
|
|
534
|
-
opacity: 0;
|
|
535
|
-
transition: opacity 0.3s;
|
|
536
|
-
transition-delay: 1s;
|
|
537
|
-
}
|
|
538
|
-
.bn-block-content[data-content-type="codeBlock"] > div > select > option {
|
|
539
|
-
color: black;
|
|
540
|
-
}
|
|
541
|
-
.bn-block-content[data-content-type="codeBlock"]:hover > div > select,
|
|
542
|
-
.bn-block-content[data-content-type="codeBlock"] > div > select:focus {
|
|
543
|
-
opacity: 0.5;
|
|
544
|
-
transition-delay: 0.1s;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
/* CODE BLOCK PREVIEW */
|
|
548
|
-
.bn-block-content[data-content-type="codeBlock"]:has(
|
|
549
|
-
.bn-preview-with-source-popup
|
|
550
|
-
) {
|
|
551
|
-
background-color: transparent;
|
|
552
|
-
color: inherit;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/* Default to dark theme as the code block has a dark background regardless of theme. */
|
|
556
|
-
.shiki {
|
|
557
|
-
color: var(--bn-suggestion-token-color, var(--shiki-dark));
|
|
558
|
-
}
|
|
559
|
-
.bn-source-block-popup .shiki {
|
|
560
|
-
color: var(--bn-suggestion-token-color, var(--shiki-light));
|
|
561
|
-
}
|
|
562
|
-
.bn-root[data-color-scheme="dark"] .bn-source-block-popup .shiki {
|
|
563
|
-
color: var(--bn-suggestion-token-color, var(--shiki-dark));
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.bn-preview-with-source-popup {
|
|
567
|
-
position: relative;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.bn-block-content .bn-preview-with-source-popup {
|
|
571
|
-
display: flex;
|
|
572
|
-
padding: 12px;
|
|
573
|
-
width: 100%;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.bn-inline-content-section .bn-preview-with-source-popup {
|
|
577
|
-
display: inline-block;
|
|
578
|
-
padding: 0;
|
|
579
|
-
width: fit-content;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.bn-preview-container {
|
|
583
|
-
cursor: pointer;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.bn-block-content .bn-preview-container {
|
|
587
|
-
overflow: auto;
|
|
588
|
-
width: 100%;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.bn-inline-content-section .bn-preview-container {
|
|
592
|
-
overflow: visible;
|
|
593
|
-
width: fit-content;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/* Additional right padding for equation numbers. */
|
|
597
|
-
.bn-block-content
|
|
598
|
-
.bn-preview-container
|
|
599
|
-
.katex-html:has(> :is(.tag, .katex-tag)) {
|
|
600
|
-
box-sizing: border-box;
|
|
601
|
-
width: max-content;
|
|
602
|
-
min-width: 100%;
|
|
603
|
-
padding-right: 2.5em;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.bn-source-block-popup {
|
|
607
|
-
background-color: transparent;
|
|
608
|
-
border: none;
|
|
609
|
-
border-radius: 0;
|
|
610
|
-
box-shadow: none;
|
|
611
|
-
color: transparent;
|
|
612
|
-
height: 0;
|
|
613
|
-
left: 0;
|
|
614
|
-
margin-top: 4px;
|
|
615
|
-
overflow: clip;
|
|
616
|
-
position: absolute;
|
|
617
|
-
top: 100%;
|
|
618
|
-
width: 0;
|
|
619
|
-
z-index: 0;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
.bn-preview-with-source-popup[data-open="true"] .bn-source-block-popup {
|
|
623
|
-
background-color: var(--bn-colors-menu-background);
|
|
624
|
-
border: var(--bn-border);
|
|
625
|
-
border-radius: var(--bn-border-radius-medium);
|
|
626
|
-
box-shadow: var(--bn-shadow-medium);
|
|
627
|
-
color: var(--bn-colors-menu-text);
|
|
628
|
-
height: unset;
|
|
629
|
-
z-index: 1;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
.bn-block-content
|
|
633
|
-
.bn-preview-with-source-popup[data-open="true"]
|
|
634
|
-
.bn-source-block-popup {
|
|
635
|
-
width: 100%;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
.bn-inline-content-section
|
|
639
|
-
.bn-preview-with-source-popup[data-open="true"]
|
|
640
|
-
.bn-source-block-popup {
|
|
641
|
-
width: 300px;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
.bn-code-block-source-popup-body {
|
|
645
|
-
align-items: flex-end;
|
|
646
|
-
display: flex;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.bn-code-block-source-popup-body > pre {
|
|
650
|
-
align-self: center;
|
|
651
|
-
flex: 1;
|
|
652
|
-
margin: 0;
|
|
653
|
-
max-height: 200px;
|
|
654
|
-
overflow: auto;
|
|
655
|
-
padding: 16px;
|
|
656
|
-
position: relative;
|
|
657
|
-
tab-size: 2;
|
|
658
|
-
white-space: pre;
|
|
659
|
-
width: 0;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
.bn-code-block-source-popup-input-empty::before {
|
|
663
|
-
color: currentColor;
|
|
664
|
-
content: attr(data-placeholder);
|
|
665
|
-
left: 16px;
|
|
666
|
-
opacity: 0.5;
|
|
667
|
-
overflow: hidden;
|
|
668
|
-
pointer-events: none;
|
|
669
|
-
position: absolute;
|
|
670
|
-
right: 16px;
|
|
671
|
-
text-overflow: ellipsis;
|
|
672
|
-
top: 16px;
|
|
673
|
-
white-space: nowrap;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
.bn-code-block-source-error {
|
|
677
|
-
border-top: var(--bn-border);
|
|
678
|
-
color: var(--bn-colors-highlights-red-text);
|
|
679
|
-
font-size: 0.8em;
|
|
680
|
-
padding: 8px 16px;
|
|
681
|
-
white-space: pre-wrap !important;
|
|
682
|
-
font-family: monospace;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.bn-code-block-source-popup-ok-button-wrapper {
|
|
686
|
-
align-items: flex-end;
|
|
687
|
-
justify-content: flex-end;
|
|
688
|
-
padding: 14px 16px;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.bn-code-block-source-popup-ok-button {
|
|
692
|
-
align-items: center;
|
|
693
|
-
appearance: none;
|
|
694
|
-
background-color: rgb(37, 99, 235);
|
|
695
|
-
border: none;
|
|
696
|
-
border-radius: var(--bn-border-radius-small);
|
|
697
|
-
color: white;
|
|
698
|
-
cursor: pointer;
|
|
699
|
-
display: flex;
|
|
700
|
-
font-size: 0.8em;
|
|
701
|
-
font-weight: 500;
|
|
702
|
-
gap: 4px;
|
|
703
|
-
padding: 4px 8px;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
.bn-code-block-source-popup-ok-button-icon {
|
|
707
|
-
height: 1.2em;
|
|
708
|
-
width: 1.2em;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
.bn-code-block-source-popup-ok-button:hover {
|
|
712
|
-
background-color: rgb(29, 78, 216);
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
.bn-preview-with-source-popup:has(.bn-preview-placeholder) {
|
|
716
|
-
padding: 0;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.bn-preview-placeholder {
|
|
720
|
-
align-items: center;
|
|
721
|
-
background-color: rgb(242, 241, 238);
|
|
722
|
-
border-radius: 4px;
|
|
723
|
-
color: rgb(95, 91, 92);
|
|
724
|
-
display: flex;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
.bn-block-content .bn-preview-placeholder {
|
|
728
|
-
gap: 10px;
|
|
729
|
-
padding: 12px;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
.bn-inline-content-section .bn-preview-placeholder {
|
|
733
|
-
gap: 4px;
|
|
734
|
-
padding: 0 4px;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
.bn-preview-placeholder:where(.dark, .dark *) {
|
|
738
|
-
background-color: rgb(70, 70, 70);
|
|
739
|
-
color: rgb(190, 190, 190);
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.bn-editor[contenteditable="true"]
|
|
743
|
-
.bn-preview-placeholder:not(.bn-preview-placeholder-error):hover {
|
|
744
|
-
background-color: rgb(225, 225, 225);
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
.bn-editor[contenteditable="true"]
|
|
748
|
-
.bn-preview-placeholder:not(.bn-preview-placeholder-error):hover:where(
|
|
749
|
-
.dark,
|
|
750
|
-
.dark *
|
|
751
|
-
) {
|
|
752
|
-
background-color: rgb(90, 90, 90);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.bn-preview-placeholder-error {
|
|
756
|
-
background-color: var(--bn-colors-highlights-red-background);
|
|
757
|
-
color: var(--bn-colors-highlights-red-text);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.bn-preview-placeholder-icon {
|
|
761
|
-
align-items: center;
|
|
762
|
-
display: flex;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
.bn-block-content .bn-preview-placeholder-icon {
|
|
766
|
-
height: 24px;
|
|
767
|
-
width: 24px;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.bn-inline-content-section .bn-preview-placeholder-icon {
|
|
771
|
-
height: 14px;
|
|
772
|
-
width: 14px;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.bn-preview-placeholder-icon > svg {
|
|
776
|
-
height: 100%;
|
|
777
|
-
width: 100%;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
.bn-preview-placeholder-text {
|
|
781
|
-
margin: 0;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
.bn-block-content .bn-preview-placeholder-text {
|
|
785
|
-
font-size: 0.9rem;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.bn-inline-content-section .bn-preview-placeholder-text {
|
|
789
|
-
font-size: 0.7rem;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/* Toggled for a single frame while an up/down arrow press is handled, so the
|
|
793
|
-
browser's geometry-based vertical caret movement skips the popup. */
|
|
794
|
-
.bn-suppress-source-popup-caret
|
|
795
|
-
.bn-inline-content-section
|
|
796
|
-
.bn-preview-with-source-popup:not([data-open="true"])
|
|
797
|
-
.bn-source-block-popup {
|
|
798
|
-
visibility: hidden;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
/* PAGE BREAK */
|
|
802
|
-
.bn-block-content[data-content-type="pageBreak"] > div {
|
|
803
|
-
width: 100%;
|
|
804
|
-
height: 0;
|
|
805
|
-
border-top: dotted rgb(125, 121, 122) 2px;
|
|
806
|
-
margin-block: 11px;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
@media print {
|
|
810
|
-
.bn-block-content[data-content-type="pageBreak"] > div {
|
|
811
|
-
page-break-after: always;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
/* FILES */
|
|
816
|
-
|
|
817
|
-
/* Element that wraps content for all file blocks */
|
|
818
|
-
[data-file-block] .bn-file-block-content-wrapper {
|
|
819
|
-
cursor: pointer;
|
|
820
|
-
display: flex;
|
|
821
|
-
flex-direction: column;
|
|
822
|
-
/* Reset default <figure> browser margins (the wrapper becomes a <figure>
|
|
823
|
-
when the block has a caption). */
|
|
824
|
-
margin: 0;
|
|
825
|
-
user-select: none;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/* Add block button & default element (name with icon) */
|
|
829
|
-
[data-file-block] .bn-file-block-content-wrapper:has(.bn-add-file-button),
|
|
830
|
-
[data-file-block] .bn-file-block-content-wrapper:has(.bn-file-name-with-icon) {
|
|
831
|
-
width: 100%;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
[data-file-block] .bn-add-file-button {
|
|
835
|
-
align-items: center;
|
|
836
|
-
background-color: rgb(242, 241, 238);
|
|
837
|
-
border-radius: 4px;
|
|
838
|
-
color: rgb(125, 121, 122);
|
|
839
|
-
display: flex;
|
|
840
|
-
gap: 10px;
|
|
841
|
-
padding: 12px;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
[data-file-block] .bn-add-file-button:where(.dark, .dark *) {
|
|
845
|
-
background-color: rgb(70, 70, 70);
|
|
846
|
-
color: rgb(190, 190, 190);
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
.bn-editor[contenteditable="true"] [data-file-block] .bn-add-file-button:hover,
|
|
850
|
-
[data-file-block] .bn-file-name-with-icon:hover,
|
|
851
|
-
.ProseMirror-selectednode .bn-file-name-with-icon {
|
|
852
|
-
background-color: rgb(225, 225, 225);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.bn-editor[contenteditable="true"]
|
|
856
|
-
[data-file-block]
|
|
857
|
-
.bn-add-file-button:hover:where(.dark, .dark *),
|
|
858
|
-
[data-file-block] .bn-file-name-with-icon:hover:where(.dark, .dark *),
|
|
859
|
-
.ProseMirror-selectednode .bn-file-name-with-icon:where(.dark, .dark *) {
|
|
860
|
-
background-color: rgb(90, 90, 90);
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
[data-file-block] .bn-add-file-button-icon,
|
|
864
|
-
[data-file-block] .bn-file-icon {
|
|
865
|
-
width: 24px;
|
|
866
|
-
height: 24px;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
[data-file-block] .bn-add-file-button-text {
|
|
870
|
-
font-size: 0.9rem;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
[data-file-block] .bn-file-name-with-icon {
|
|
874
|
-
border-radius: 4px;
|
|
875
|
-
display: flex;
|
|
876
|
-
gap: 4px;
|
|
877
|
-
padding: 4px;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
/* File captions */
|
|
881
|
-
[data-file-block] .bn-file-caption {
|
|
882
|
-
font-size: 0.8em;
|
|
883
|
-
padding-block: 4px;
|
|
884
|
-
word-break: break-word;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
[data-file-block] .bn-file-caption:empty {
|
|
888
|
-
padding-block: 0;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
/* Resize handles */
|
|
892
|
-
[data-file-block] .bn-resize-handle {
|
|
893
|
-
position: absolute;
|
|
894
|
-
width: 8px;
|
|
895
|
-
height: 30px;
|
|
896
|
-
background-color: black;
|
|
897
|
-
border: 1px solid white;
|
|
898
|
-
border-radius: 4px;
|
|
899
|
-
cursor: ew-resize;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
/* Visual media file blocks, e.g. images & videos */
|
|
903
|
-
[data-file-block] .bn-visual-media-wrapper {
|
|
904
|
-
display: flex;
|
|
905
|
-
align-items: center;
|
|
906
|
-
position: relative;
|
|
907
|
-
max-width: 100%;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
[data-file-block] .bn-visual-media {
|
|
911
|
-
border-radius: 4px;
|
|
912
|
-
width: 100%;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/* Block-specific styles */
|
|
916
|
-
[data-content-type="audio"] > .bn-file-block-content-wrapper,
|
|
917
|
-
.bn-audio {
|
|
918
|
-
width: 100%;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
/* PLACEHOLDERS*/
|
|
922
|
-
.bn-block-content:has(.ProseMirror-trailingBreak:only-child):after {
|
|
923
|
-
font-style: italic;
|
|
924
|
-
/* Removes text cursor offset. */
|
|
925
|
-
margin-inline: -2px;
|
|
926
|
-
pointer-events: none;
|
|
927
|
-
max-width: 100%;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/* TEXT COLORS */
|
|
931
|
-
/* A block's color also applies to its children: the block's element carries
|
|
932
|
-
its colors too (see `BlockContainer`), and they inherit or paint from there.
|
|
933
|
-
Its content can sit inside a frame at any depth, so no selector here walks
|
|
934
|
-
down to it. */
|
|
935
|
-
[data-style-type="textColor"][data-value="gray"],
|
|
936
|
-
[data-text-color="gray"] {
|
|
937
|
-
color: #9b9a97;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
[data-style-type="textColor"][data-value="brown"],
|
|
941
|
-
[data-text-color="brown"] {
|
|
942
|
-
color: #64473a;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
[data-style-type="textColor"][data-value="red"],
|
|
946
|
-
[data-text-color="red"] {
|
|
947
|
-
color: #e03e3e;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
[data-style-type="textColor"][data-value="orange"],
|
|
951
|
-
[data-text-color="orange"] {
|
|
952
|
-
color: #d9730d;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
[data-style-type="textColor"][data-value="yellow"],
|
|
956
|
-
[data-text-color="yellow"] {
|
|
957
|
-
color: #dfab01;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
[data-style-type="textColor"][data-value="green"],
|
|
961
|
-
[data-text-color="green"] {
|
|
962
|
-
color: #4d6461;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
[data-style-type="textColor"][data-value="blue"],
|
|
966
|
-
[data-text-color="blue"] {
|
|
967
|
-
color: #0b6e99;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
[data-style-type="textColor"][data-value="purple"],
|
|
971
|
-
[data-text-color="purple"] {
|
|
972
|
-
color: #6940a5;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
[data-style-type="textColor"][data-value="pink"],
|
|
976
|
-
[data-text-color="pink"] {
|
|
977
|
-
color: #ad1a72;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/* BACKGROUND COLORS */
|
|
981
|
-
[data-style-type="backgroundColor"][data-value="gray"],
|
|
982
|
-
[data-background-color="gray"] {
|
|
983
|
-
background-color: #ebeced;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
[data-style-type="backgroundColor"][data-value="brown"],
|
|
987
|
-
[data-background-color="brown"] {
|
|
988
|
-
background-color: #e9e5e3;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
[data-style-type="backgroundColor"][data-value="red"],
|
|
992
|
-
[data-background-color="red"] {
|
|
993
|
-
background-color: #fbe4e4;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
[data-style-type="backgroundColor"][data-value="orange"],
|
|
997
|
-
[data-background-color="orange"] {
|
|
998
|
-
background-color: #f6e9d9;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
[data-style-type="backgroundColor"][data-value="yellow"],
|
|
1002
|
-
[data-background-color="yellow"] {
|
|
1003
|
-
background-color: #fbf3db;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
[data-style-type="backgroundColor"][data-value="green"],
|
|
1007
|
-
[data-background-color="green"] {
|
|
1008
|
-
background-color: #ddedea;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
[data-style-type="backgroundColor"][data-value="blue"],
|
|
1012
|
-
[data-background-color="blue"] {
|
|
1013
|
-
background-color: #ddebf1;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
[data-style-type="backgroundColor"][data-value="purple"],
|
|
1017
|
-
[data-background-color="purple"] {
|
|
1018
|
-
background-color: #eae4f2;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
[data-style-type="backgroundColor"][data-value="pink"],
|
|
1022
|
-
[data-background-color="pink"] {
|
|
1023
|
-
background-color: #f4dfeb;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/* TEXT ALIGNMENT */
|
|
1027
|
-
[data-text-alignment="left"] {
|
|
1028
|
-
justify-content: flex-start !important;
|
|
1029
|
-
text-align: left !important;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
[data-text-alignment="center"] {
|
|
1033
|
-
justify-content: center !important;
|
|
1034
|
-
text-align: center !important;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
[data-text-alignment="right"] {
|
|
1038
|
-
justify-content: flex-end !important;
|
|
1039
|
-
text-align: right !important;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
[data-text-alignment="justify"] {
|
|
1043
|
-
justify-content: flex-start !important;
|
|
1044
|
-
text-align: justify !important;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
.bn-block-column-list {
|
|
1048
|
-
display: flex;
|
|
1049
|
-
flex-direction: row;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
.bn-block-column {
|
|
1053
|
-
flex: 1;
|
|
1054
|
-
padding: 12px 15px 12px 25px;
|
|
1055
|
-
/* scroll if we overflow, for example when tables or images are in the column */
|
|
1056
|
-
overflow-x: auto;
|
|
1057
|
-
/* Lets the trailing block widget grow to fill the column's leftover height
|
|
1058
|
-
when a sibling column is taller. */
|
|
1059
|
-
display: flex;
|
|
1060
|
-
flex-direction: column;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
/* Shows separators between a column list's columns while the mouse is over
|
|
1064
|
-
it. This clarifies where each column (and its clickable empty space) ends.
|
|
1065
|
-
The class is managed by the multi-column package's column resize plugin. The
|
|
1066
|
-
transition delay stops the separators from flashing in when the mouse just
|
|
1067
|
-
passes through the column list. */
|
|
1068
|
-
.bn-editor[contenteditable="true"]
|
|
1069
|
-
.bn-column-list-hovered
|
|
1070
|
-
> .bn-block-column:not(:last-child) {
|
|
1071
|
-
box-shadow: 4px 0 0 #eee;
|
|
1072
|
-
transition: box-shadow 0.2s ease 0.2s;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
.bn-editor[contenteditable="true"]
|
|
1076
|
-
.bn-column-list-hovered
|
|
1077
|
-
> .bn-block-column:not(:last-child):where(.dark, .dark *) {
|
|
1078
|
-
box-shadow: 4px 0 0 rgb(70, 70, 70);
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/* The border between two columns when the cursor is near their boundary or
|
|
1082
|
-
they're being resized, rendered on the boundary's left column. The class is
|
|
1083
|
-
managed by the multi-column package's column resize plugin. */
|
|
1084
|
-
.bn-editor[contenteditable="true"]
|
|
1085
|
-
.bn-column-list-hovered
|
|
1086
|
-
> .bn-block-column.bn-column-resize-border {
|
|
1087
|
-
box-shadow: 4px 0 0 #ccc;
|
|
1088
|
-
cursor: col-resize;
|
|
1089
|
-
transition: box-shadow 0.2s ease;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
.bn-editor[contenteditable="true"]
|
|
1093
|
-
.bn-column-list-hovered
|
|
1094
|
-
> .bn-block-column.bn-column-resize-border:where(.dark, .dark *) {
|
|
1095
|
-
box-shadow: 4px 0 0 rgb(110, 110, 110);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.bn-editor[contenteditable="true"]
|
|
1099
|
-
.bn-block-column.bn-column-resize-border
|
|
1100
|
-
+ .bn-block-column {
|
|
1101
|
-
cursor: col-resize;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
.bn-block-column > .bn-trailing-block {
|
|
1105
|
-
height: auto;
|
|
1106
|
-
flex-grow: 1;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
.bn-block-column:first-child {
|
|
1110
|
-
padding-left: 0;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
.bn-block-column:last-child {
|
|
1114
|
-
padding-right: 0;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
.bn-thread-mark:not([data-orphan="true"]) {
|
|
1118
|
-
background: rgba(255, 200, 0, 0.15);
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
.bn-thread-mark .bn-thread-mark-selected {
|
|
1122
|
-
background: rgba(255, 200, 0, 0.25);
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
div[data-type="modification"] {
|
|
1126
|
-
display: inline;
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
.bn-root ins,
|
|
1130
|
-
.bn-root del {
|
|
1131
|
-
background-color: color-mix(in srgb, var(--user-color-light) 50%, white);
|
|
1132
|
-
color: var(--user-color-dark);
|
|
1133
|
-
position: relative;
|
|
1134
|
-
text-decoration: none;
|
|
1135
|
-
border-radius: 4px;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
/* Lift attribution fills above the dark editor surface. Mixing the already
|
|
1139
|
-
dark author color with black made short insertions nearly invisible. */
|
|
1140
|
-
.dark.bn-root ins,
|
|
1141
|
-
.dark.bn-root del {
|
|
1142
|
-
background-color: color-mix(
|
|
1143
|
-
in srgb,
|
|
1144
|
-
var(--user-color-light) 25%,
|
|
1145
|
-
var(--bn-colors-editor-background)
|
|
1146
|
-
);
|
|
1147
|
-
color: var(--user-color-light);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
/*
|
|
1151
|
-
In the editor the <ins>/<del> mark wrapper is rendered with `display: contents`
|
|
1152
|
-
(see SuggestionMarks.ts) so it never affects layout (e.g. table cells). Because a
|
|
1153
|
-
`display: contents` element paints nothing, the highlight is applied to the inner
|
|
1154
|
-
content span instead, using the `--user-color-*` properties that cascade down
|
|
1155
|
-
from the wrapper. The `.bn-root ins, .bn-root del` rules above still style
|
|
1156
|
-
serialized/static output, where the wrapper is a real, painted box.
|
|
1157
|
-
*/
|
|
1158
|
-
.bn-suggestion-mark {
|
|
1159
|
-
--bn-suggestion-token-color: currentColor;
|
|
1160
|
-
background-color: color-mix(in srgb, var(--user-color-light) 50%, white);
|
|
1161
|
-
color: var(--user-color-dark);
|
|
1162
|
-
border-radius: 4px;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
.dark.bn-root .bn-suggestion-mark,
|
|
1166
|
-
.bn-block-content[data-content-type="codeBlock"] > pre .bn-suggestion-mark {
|
|
1167
|
-
background-color: color-mix(
|
|
1168
|
-
in srgb,
|
|
1169
|
-
var(--user-color-light) 25%,
|
|
1170
|
-
var(--bn-suggestion-surface, var(--bn-colors-editor-background))
|
|
1171
|
-
);
|
|
1172
|
-
color: white;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/*
|
|
1176
|
-
Block-level (over a node) suggestion marks. The `.bn-suggestion-node` span is
|
|
1177
|
-
`display: contents` so it can't paint a background itself; instead the wrapped
|
|
1178
|
-
nodes (its children — e.g. <p>/<td>/<tr>) carry the highlight. Like inline marks
|
|
1179
|
-
they also show an attribution tooltip on hover (handled in JS, see
|
|
1180
|
-
SuggestionMarks.ts).
|
|
1181
|
-
|
|
1182
|
-
This rule is the highlight for insertions, and the fallback for block deletions
|
|
1183
|
-
that wrap content with no `.bn-block-content` of their own (e.g. a deleted table
|
|
1184
|
-
row/cell). Block deletions that *do* wrap blocks are restyled per-block below.
|
|
1185
|
-
*/
|
|
1186
|
-
.bn-suggestion-node > * {
|
|
1187
|
-
background-color: color-mix(in srgb, var(--user-color-light) 50%, white);
|
|
1188
|
-
border-radius: 4px;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
.dark.bn-root .bn-suggestion-node > * {
|
|
1192
|
-
background-color: color-mix(
|
|
1193
|
-
in srgb,
|
|
1194
|
-
var(--user-color-light) 25%,
|
|
1195
|
-
var(--bn-colors-editor-background)
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
/*
|
|
1200
|
-
A deleted block is tagged with a localized "Deleted" badge before its content.
|
|
1201
|
-
The wrapper span (.bn-suggestion-node--delete) is `display: contents` and can't
|
|
1202
|
-
render a pseudo-element of its own, so the badge is rendered on the first wrapped
|
|
1203
|
-
node, which inherits the label text from the `--deleted-label` custom property
|
|
1204
|
-
set in SuggestionMarks.ts (falling back to "Deleted" if absent). This is the
|
|
1205
|
-
fallback badge for deletions without a `.bn-block-content` (see above); deletions
|
|
1206
|
-
that wrap blocks get a per-block badge below instead.
|
|
1207
|
-
*/
|
|
1208
|
-
.bn-suggestion-node--delete > *:first-child::before {
|
|
1209
|
-
content: var(--deleted-label, "Deleted");
|
|
1210
|
-
display: inline-block;
|
|
1211
|
-
margin-right: 6px;
|
|
1212
|
-
padding: 0 4px;
|
|
1213
|
-
/* Matches the block-level badge below, so the two read as one label style. */
|
|
1214
|
-
font-size: 11px;
|
|
1215
|
-
font-weight: 600;
|
|
1216
|
-
text-transform: uppercase;
|
|
1217
|
-
letter-spacing: 0.04em;
|
|
1218
|
-
line-height: 16px;
|
|
1219
|
-
vertical-align: middle;
|
|
1220
|
-
/* Use the editor's text color (themed for light/dark) rather than inheriting,
|
|
1221
|
-
which would pick up the deleted content's user color. */
|
|
1222
|
-
color: var(--bn-colors-editor-text);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
/*
|
|
1226
|
-
Block suggestions are decided *per block*, not per mark: a deleted parent holding
|
|
1227
|
-
a paragraph and an image should strike the paragraph text yet still flag the image
|
|
1228
|
-
as deleted. So when a mark wraps real blocks we drop the subtree-wide highlight
|
|
1229
|
-
(scoped with `:has(.bn-block-content)` so table row/cell suggestions keep the
|
|
1230
|
-
fallback above) and restyle each `.bn-block-content` on its own terms below — for
|
|
1231
|
-
insertions and deletions alike.
|
|
1232
|
-
*/
|
|
1233
|
-
.bn-suggestion-node:has(.bn-block-content) > *,
|
|
1234
|
-
.dark.bn-root .bn-suggestion-node:has(.bn-block-content) > * {
|
|
1235
|
-
background-color: transparent;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/* The fallback "Deleted" badge (above) is only for deletions with no
|
|
1239
|
-
`.bn-block-content`; per-block deletions are flagged individually below. */
|
|
1240
|
-
.bn-suggestion-node--delete:has(.bn-block-content) > *:first-child::before {
|
|
1241
|
-
content: none;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
/*
|
|
1245
|
-
A block WITH inline content (paragraph, heading, list item, quote, code, …) needs
|
|
1246
|
-
no block-level background: a deletion strikes its text through in the author's
|
|
1247
|
-
color, while an insertion already highlights the text via its inline mark
|
|
1248
|
-
(.bn-suggestion-mark), so the transparent rule above is all it needs.
|
|
1249
|
-
`.bn-inline-content` is present only on inline-content blocks (table cells use a
|
|
1250
|
-
bare <p>; images/files/dividers have none), so it's what tells the two cases
|
|
1251
|
-
apart. It can be nested below `.bn-block-content` (e.g. code wraps it in <pre>),
|
|
1252
|
-
hence the descendant match.
|
|
1253
|
-
*/
|
|
1254
|
-
.bn-suggestion-node--delete .bn-block-content .bn-inline-content {
|
|
1255
|
-
--bn-suggestion-token-color: currentColor;
|
|
1256
|
-
color: var(--user-color-dark);
|
|
1257
|
-
text-decoration: line-through;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
.dark.bn-root .bn-suggestion-node--delete .bn-block-content .bn-inline-content,
|
|
1261
|
-
.bn-suggestion-node--delete
|
|
1262
|
-
.bn-block-content[data-content-type="codeBlock"]
|
|
1263
|
-
> pre
|
|
1264
|
-
.bn-inline-content {
|
|
1265
|
-
color: var(--user-color-light);
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
/*
|
|
1269
|
-
Deleted table cells are a special case: a <tr>/<td> has no `.bn-block-content` and
|
|
1270
|
-
its text sits in a bare <p> (not `.bn-inline-content`), so neither the
|
|
1271
|
-
strikethrough above nor the block card reaches it — and a table row/cell can't
|
|
1272
|
-
host the "Deleted" card anyway. Strike the cell text through in the author's
|
|
1273
|
-
color and suppress badges inside cells, including nested paragraph badges.
|
|
1274
|
-
*/
|
|
1275
|
-
.bn-suggestion-node--delete :is(td, th) p {
|
|
1276
|
-
color: var(--user-color-dark);
|
|
1277
|
-
text-decoration: line-through;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
.dark.bn-root .bn-suggestion-node--delete :is(td, th) p {
|
|
1281
|
-
color: var(--user-color-light);
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
.bn-suggestion-node--delete > :is(table, tr, td, th):first-child::before,
|
|
1285
|
-
:is(td, th) .bn-suggestion-node--delete > :first-child::before {
|
|
1286
|
-
content: none;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
/*
|
|
1290
|
-
A block with NO inline content (image, file, divider, whole table, …) has no text
|
|
1291
|
-
to mark up, so the suggestion is shown as a filled card in the author's color, per
|
|
1292
|
-
block — on insertions and deletions alike. The card lives on `.bn-block-content`
|
|
1293
|
-
because it's the only element present for every block type (the suggestion wrapper
|
|
1294
|
-
spans the whole subtree; the media wrapper exists only for files), but it sets
|
|
1295
|
-
only non-collapsing properties — background / radius / padding never depend on the
|
|
1296
|
-
content's intrinsic size, so no block can break. A preview block (math, diagram)
|
|
1297
|
-
counts as one too: its source sits in a hidden popup, so its text marks don't show.
|
|
1298
|
-
*/
|
|
1299
|
-
/* Attribute changes use the same card for text blocks as for media blocks. */
|
|
1300
|
-
[data-type="attributes"] > .bn-suggestion-node > .bn-block-content,
|
|
1301
|
-
.bn-suggestion-node
|
|
1302
|
-
.bn-block-content:not(
|
|
1303
|
-
:has(.bn-inline-content:not(.bn-source-block-popup *))
|
|
1304
|
-
) {
|
|
1305
|
-
/* The card bleeds this far into the gutters on both sides, so tinting a block
|
|
1306
|
-
never shifts its content sideways. */
|
|
1307
|
-
--bn-suggestion-card-inset: 6px;
|
|
1308
|
-
background-color: color-mix(in srgb, var(--user-color-light) 50%, white);
|
|
1309
|
-
border-radius: 6px;
|
|
1310
|
-
/* A hairline in the author's color, so a pale tint still reads as a card. */
|
|
1311
|
-
box-shadow: 0 0 0 1px
|
|
1312
|
-
color-mix(in srgb, var(--user-color-dark) 25%, transparent);
|
|
1313
|
-
padding: 3px var(--bn-suggestion-card-inset);
|
|
1314
|
-
margin-left: calc(-1 * var(--bn-suggestion-card-inset));
|
|
1315
|
-
width: calc(100% + 2 * var(--bn-suggestion-card-inset));
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
.dark.bn-root
|
|
1319
|
-
[data-type="attributes"]
|
|
1320
|
-
> .bn-suggestion-node
|
|
1321
|
-
> .bn-block-content,
|
|
1322
|
-
.dark.bn-root
|
|
1323
|
-
.bn-suggestion-node
|
|
1324
|
-
.bn-block-content:not(
|
|
1325
|
-
:has(.bn-inline-content:not(.bn-source-block-popup *))
|
|
1326
|
-
) {
|
|
1327
|
-
background-color: color-mix(
|
|
1328
|
-
in srgb,
|
|
1329
|
-
var(--user-color-light) 25%,
|
|
1330
|
-
var(--bn-colors-editor-background)
|
|
1331
|
-
);
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/* Source-backed blocks can carry attribution inside a clipped popup while
|
|
1335
|
-
their visible preview has no mark. Frame the preview with a subtle diff
|
|
1336
|
-
color rather than the entire block column. An inserted or deleted block shows
|
|
1337
|
-
its card instead. */
|
|
1338
|
-
.bn-block-content:not(.bn-suggestion-node *)
|
|
1339
|
-
.bn-preview-with-source-popup:has(.bn-source-block-popup .bn-suggestion-mark)
|
|
1340
|
-
.bn-preview-container {
|
|
1341
|
-
background-color: color-mix(in srgb, #c9efe9 50%, white);
|
|
1342
|
-
border-radius: 6px;
|
|
1343
|
-
box-shadow: 0 0 0 1px color-mix(in srgb, #0f6e62 25%, transparent);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
.dark.bn-root
|
|
1347
|
-
.bn-block-content:not(.bn-suggestion-node *)
|
|
1348
|
-
.bn-preview-with-source-popup:has(.bn-source-block-popup .bn-suggestion-mark)
|
|
1349
|
-
.bn-preview-container {
|
|
1350
|
-
background-color: color-mix(
|
|
1351
|
-
in srgb,
|
|
1352
|
-
#c9efe9 25%,
|
|
1353
|
-
var(--bn-colors-editor-background)
|
|
1354
|
-
);
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
/*
|
|
1358
|
-
Media (image/video/audio/file) has an intrinsic width via its
|
|
1359
|
-
`.bn-file-block-content-wrapper`, so the card hugs it instead of spanning the
|
|
1360
|
-
column. Width-less blocks (a divider's `flex: 1` <hr>, a table) keep full width on
|
|
1361
|
-
purpose — `fit-content` would collapse them to nothing, and full width is the
|
|
1362
|
-
right look for them anyway. Audio previews also need full width: their player and
|
|
1363
|
-
wrapper both use percentage widths, so shrink-wrapping hides the controls.
|
|
1364
|
-
This is the only place that touches sizing, and it's
|
|
1365
|
-
gated on a wrapper that only width-bearing blocks have.
|
|
1366
|
-
*/
|
|
1367
|
-
.bn-suggestion-node
|
|
1368
|
-
.bn-block-content:not(:has(.bn-inline-content, .bn-audio)):has(
|
|
1369
|
-
> .bn-file-block-content-wrapper
|
|
1370
|
-
) {
|
|
1371
|
-
width: fit-content;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
/*
|
|
1375
|
-
A deletion additionally flags the block with the localized "Deleted" label, placed
|
|
1376
|
-
above the content (out of flow) with extra top padding reserving its row: the
|
|
1377
|
-
card's own 3px, the label's 16px line box, and 2px of breathing room under it.
|
|
1378
|
-
*/
|
|
1379
|
-
.bn-suggestion-node--delete
|
|
1380
|
-
.bn-block-content:not(
|
|
1381
|
-
:has(.bn-inline-content:not(.bn-source-block-popup *))
|
|
1382
|
-
) {
|
|
1383
|
-
position: relative;
|
|
1384
|
-
padding-top: calc(3px + 16px + 2px);
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
.bn-suggestion-node--delete
|
|
1388
|
-
.bn-block-content:not(
|
|
1389
|
-
:has(.bn-inline-content:not(.bn-source-block-popup *))
|
|
1390
|
-
)::before {
|
|
1391
|
-
content: var(--deleted-label, "Deleted");
|
|
1392
|
-
/* Sits in the reserved top padding, above the content. Out of flow so it never
|
|
1393
|
-
becomes a flex item beside the block. */
|
|
1394
|
-
position: absolute;
|
|
1395
|
-
top: 3px;
|
|
1396
|
-
left: var(--bn-suggestion-card-inset);
|
|
1397
|
-
font-size: 11px;
|
|
1398
|
-
font-weight: 600;
|
|
1399
|
-
line-height: 16px;
|
|
1400
|
-
letter-spacing: 0.04em;
|
|
1401
|
-
text-transform: uppercase;
|
|
1402
|
-
/* Use the editor's text color (themed for light/dark) rather than inheriting,
|
|
1403
|
-
which would pick up the suggestion's user color. */
|
|
1404
|
-
color: var(--bn-colors-editor-text);
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
/*
|
|
1408
|
-
Modification marks (data-type="modification") are shown as a dotted underline in
|
|
1409
|
-
the author's color rather than a filled highlight. The text and background are
|
|
1410
|
-
left untouched so only the dotted underline carries the color. Both the inline
|
|
1411
|
-
(.bn-suggestion-mark) and block-level (.bn-suggestion-node) variants are covered.
|
|
1412
|
-
*/
|
|
1413
|
-
[data-type="modification"] .bn-suggestion-mark,
|
|
1414
|
-
[data-type="modification"] .bn-suggestion-node > * {
|
|
1415
|
-
background-color: transparent;
|
|
1416
|
-
color: inherit;
|
|
1417
|
-
text-decoration: underline dotted;
|
|
1418
|
-
text-decoration-color: var(--user-color-dark);
|
|
1419
|
-
text-decoration-thickness: 2px;
|
|
1420
|
-
text-underline-offset: 2px;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
.dark.bn-root [data-type="modification"] .bn-suggestion-mark,
|
|
1424
|
-
.dark.bn-root [data-type="modification"] .bn-suggestion-node > * {
|
|
1425
|
-
background-color: transparent;
|
|
1426
|
-
color: inherit;
|
|
1427
|
-
text-decoration-color: var(--user-color-light);
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
/* On hover, reveal the author's color as a filled background. */
|
|
1431
|
-
[data-type="modification"] .bn-suggestion-mark:hover,
|
|
1432
|
-
[data-type="modification"] .bn-suggestion-node:hover > * {
|
|
1433
|
-
background-color: color-mix(in srgb, var(--user-color-light) 50%, white);
|
|
1434
|
-
border-radius: 4px;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
.dark.bn-root [data-type="modification"] .bn-suggestion-mark:hover,
|
|
1438
|
-
.dark.bn-root [data-type="modification"] .bn-suggestion-node:hover > * {
|
|
1439
|
-
background-color: color-mix(
|
|
1440
|
-
in srgb,
|
|
1441
|
-
var(--user-color-light) 25%,
|
|
1442
|
-
var(--bn-colors-editor-background)
|
|
1443
|
-
);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
/*
|
|
1447
|
-
Deletions are shown as struck-through text in the author's color with no
|
|
1448
|
-
background fill (unlike insertions, which carry a filled highlight).
|
|
1449
|
-
*/
|
|
1450
|
-
.bn-suggestion-mark--delete {
|
|
1451
|
-
background-color: transparent;
|
|
1452
|
-
color: var(--user-color-dark);
|
|
1453
|
-
text-decoration: line-through;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
.dark.bn-root .bn-suggestion-mark--delete,
|
|
1457
|
-
.bn-block-content[data-content-type="codeBlock"]
|
|
1458
|
-
> pre
|
|
1459
|
-
.bn-suggestion-mark--delete {
|
|
1460
|
-
background-color: transparent;
|
|
1461
|
-
color: var(--user-color-light);
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
/*
|
|
1465
|
-
Attribution tooltip for suggestion marks (<ins> / <del> / modification).
|
|
1466
|
-
Positioning and portaling are handled by the React controller via floating-ui
|
|
1467
|
-
(see AttributionTooltipController), so only the static box styling lives
|
|
1468
|
-
here. The background color is set inline from the mark's user color unless an
|
|
1469
|
-
app-provided class overrides it (see getSuggestionMarkClassName).
|
|
1470
|
-
*/
|
|
1471
|
-
.bn-suggestion-tooltip {
|
|
1472
|
-
width: max-content;
|
|
1473
|
-
max-width: calc(100vw - 8px);
|
|
1474
|
-
padding: 0 4px;
|
|
1475
|
-
font-weight: bold;
|
|
1476
|
-
font-size: 12px;
|
|
1477
|
-
color: white;
|
|
1478
|
-
background-color: rgb(35, 35, 35);
|
|
1479
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
1480
|
-
border-radius: 4px;
|
|
1481
|
-
white-space: nowrap;
|
|
1482
|
-
pointer-events: none;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
.bn-root del {
|
|
1486
|
-
background-color: transparent;
|
|
1487
|
-
color: var(--user-color-dark);
|
|
1488
|
-
text-decoration: line-through;
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
.dark.bn-root del {
|
|
1492
|
-
background-color: transparent;
|
|
1493
|
-
color: var(--user-color-light);
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
.bn-root del:hover {
|
|
1497
|
-
text-decoration-line: overline;
|
|
1498
|
-
}
|