@blocknote/core 0.38.0 → 0.39.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/dist/BlockNoteSchema-DmZ6UQfY.cjs +11 -0
- package/dist/BlockNoteSchema-DmZ6UQfY.cjs.map +1 -0
- package/dist/BlockNoteSchema-oR047ACf.js +4275 -0
- package/dist/BlockNoteSchema-oR047ACf.js.map +1 -0
- package/dist/blocknote.cjs +4 -12
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +3401 -7305
- package/dist/blocknote.js.map +1 -1
- package/dist/blocks.cjs +2 -0
- package/dist/blocks.cjs.map +1 -0
- package/dist/blocks.js +71 -0
- package/dist/blocks.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +19 -16
- package/src/api/blockManipulation/commands/insertBlocks/insertBlocks.ts +1 -1
- package/src/api/blockManipulation/commands/replaceBlocks/replaceBlocks.ts +2 -2
- package/src/api/blockManipulation/commands/splitBlock/splitBlock.ts +34 -25
- package/src/api/blockManipulation/setupTestEnv.ts +0 -1
- package/src/api/clipboard/fromClipboard/handleFileInsertion.ts +6 -10
- package/src/api/clipboard/fromClipboard/pasteExtension.ts +1 -1
- package/src/api/clipboard/toClipboard/copyExtension.ts +1 -1
- package/src/api/exporters/html/util/serializeBlocksExternalHTML.ts +128 -28
- package/src/api/exporters/html/util/serializeBlocksInternalHTML.ts +101 -41
- package/src/api/pmUtil.ts +1 -1
- package/src/api/positionMapping.test.ts +58 -15
- package/src/api/positionMapping.ts +2 -4
- package/src/blocks/Audio/block.ts +174 -0
- package/src/blocks/BlockNoteSchema.ts +59 -0
- package/src/blocks/Code/block.ts +303 -0
- package/src/blocks/Code/shiki.ts +73 -0
- package/src/blocks/File/block.ts +98 -0
- package/src/blocks/{FileBlockContent → File}/helpers/render/createAddFileButton.ts +5 -2
- package/src/blocks/{FileBlockContent → File}/helpers/render/createFileBlockWrapper.ts +15 -6
- package/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.ts +15 -2
- package/src/blocks/{FileBlockContent → File}/helpers/render/createResizableFileBlockWrapper.ts +21 -2
- package/src/blocks/Heading/block.ts +138 -0
- package/src/blocks/Image/block.ts +190 -0
- package/src/blocks/ListItem/BulletListItem/block.ts +116 -0
- package/src/blocks/ListItem/CheckListItem/block.ts +175 -0
- package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts +173 -0
- package/src/blocks/ListItem/NumberedListItem/block.ts +133 -0
- package/src/blocks/ListItem/ToggleListItem/block.ts +78 -0
- package/src/blocks/PageBreak/block.ts +72 -0
- package/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.ts +9 -7
- package/src/blocks/Paragraph/block.ts +80 -0
- package/src/blocks/Quote/block.ts +90 -0
- package/src/blocks/{TableBlockContent/TableBlockContent.ts → Table/block.ts} +169 -51
- package/src/blocks/ToggleWrapper/createToggleWrapper.ts +1 -1
- package/src/blocks/Video/block.ts +143 -0
- package/src/blocks/defaultBlockHelpers.ts +2 -2
- package/src/blocks/defaultBlockTypeGuards.ts +143 -174
- package/src/blocks/defaultBlocks.ts +107 -35
- package/src/blocks/defaultProps.ts +145 -4
- package/src/blocks/index.ts +26 -0
- package/src/blocks/utils/listItemEnterHandler.ts +42 -0
- package/src/editor/Block.css +54 -18
- package/src/editor/BlockNoteEditor.ts +256 -211
- package/src/editor/BlockNoteExtension.ts +92 -0
- package/src/editor/BlockNoteExtensions.ts +18 -17
- package/src/editor/defaultColors.ts +2 -2
- package/src/exporter/Exporter.ts +1 -1
- package/src/exporter/mapping.ts +1 -1
- package/src/extensions/BackgroundColor/BackgroundColorExtension.ts +3 -20
- package/src/extensions/BackgroundColor/BackgroundColorMark.ts +6 -8
- package/src/extensions/BlockChange/BlockChangePlugin.ts +2 -1
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +2 -2
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +2 -2
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +1 -1
- package/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +1 -1
- package/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.ts +52 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/index.ts +4 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.ts +4 -0
- package/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.ts +78 -0
- package/src/extensions/Comments/CommentsPlugin.ts +1 -1
- package/src/extensions/FilePanel/FilePanelPlugin.ts +5 -10
- package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +1 -1
- package/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts +4 -3
- package/src/extensions/Placeholder/PlaceholderPlugin.ts +6 -6
- package/src/extensions/PreviousBlockType/PreviousBlockTypePlugin.ts +1 -23
- package/src/extensions/SideMenu/SideMenuPlugin.ts +1 -3
- package/src/extensions/SideMenu/dragging.ts +2 -2
- package/src/extensions/SuggestionMenu/SuggestionPlugin.ts +4 -7
- package/src/extensions/SuggestionMenu/getDefaultEmojiPickerItems.ts +6 -2
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +24 -17
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +8 -8
- package/src/extensions/TextAlignment/TextAlignmentExtension.ts +5 -11
- package/src/extensions/TextColor/TextColorExtension.ts +3 -17
- package/src/extensions/TextColor/TextColorMark.ts +4 -9
- package/src/extensions/UniqueID/UniqueID.ts +6 -13
- package/src/index.ts +2 -28
- package/src/schema/blocks/createSpec.ts +342 -169
- package/src/schema/blocks/internal.ts +77 -138
- package/src/schema/blocks/types.ts +264 -94
- package/src/schema/index.ts +1 -0
- package/src/schema/inlineContent/createSpec.ts +99 -21
- package/src/schema/inlineContent/internal.ts +16 -7
- package/src/schema/inlineContent/types.ts +24 -2
- package/src/schema/propTypes.ts +15 -9
- package/src/schema/schema.ts +209 -0
- package/src/schema/styles/createSpec.ts +79 -31
- package/src/schema/styles/internal.ts +61 -2
- package/src/schema/styles/types.ts +17 -3
- package/src/util/topo-sort.test.ts +125 -0
- package/src/util/topo-sort.ts +160 -0
- package/types/src/api/blockManipulation/commands/splitBlock/splitBlock.d.ts +2 -1
- package/types/src/api/blockManipulation/selections/selection.d.ts +1 -1
- package/types/src/api/blockManipulation/setupTestEnv.d.ts +29 -543
- package/types/src/api/exporters/html/util/serializeBlocksExternalHTML.d.ts +1 -1
- package/types/src/api/exporters/html/util/serializeBlocksInternalHTML.d.ts +1 -1
- package/types/src/api/pmUtil.d.ts +1 -1
- package/types/src/blocks/Audio/block.d.ts +58 -0
- package/types/src/blocks/BlockNoteSchema.d.ts +18 -0
- package/types/src/blocks/{CodeBlockContent/CodeBlockContent.d.ts → Code/block.d.ts} +25 -26
- package/types/src/blocks/Code/shiki.d.ts +4 -0
- package/types/src/blocks/File/block.d.ts +37 -0
- package/types/src/blocks/File/helpers/render/createAddFileButton.d.ts +6 -0
- package/types/src/blocks/File/helpers/render/createFileBlockWrapper.d.ts +25 -0
- package/types/src/blocks/{FileBlockContent → File}/helpers/render/createFileNameWithIcon.d.ts +6 -2
- package/types/src/blocks/File/helpers/render/createResizableFileBlockWrapper.d.ts +31 -0
- package/types/src/blocks/Heading/block.d.ts +71 -0
- package/types/src/blocks/Image/block.d.ts +102 -0
- package/types/src/blocks/ListItem/BulletListItem/block.d.ts +25 -0
- package/types/src/blocks/ListItem/CheckListItem/block.d.ts +33 -0
- package/types/src/blocks/ListItem/NumberedListItem/IndexingPlugin.d.ts +8 -0
- package/types/src/blocks/ListItem/NumberedListItem/block.d.ts +33 -0
- package/types/src/blocks/ListItem/ToggleListItem/block.d.ts +25 -0
- package/types/src/blocks/PageBreak/block.d.ts +11 -0
- package/types/src/blocks/{PageBreakBlockContent → PageBreak}/getPageBreakSlashMenuItems.d.ts +4 -2
- package/types/src/blocks/Paragraph/block.d.ts +25 -0
- package/types/src/blocks/Quote/block.d.ts +17 -0
- package/types/src/blocks/Table/block.d.ts +21 -0
- package/types/src/blocks/Video/block.d.ts +67 -0
- package/types/src/blocks/defaultBlockHelpers.d.ts +1 -1
- package/types/src/blocks/defaultBlockTypeGuards.d.ts +15 -36
- package/types/src/blocks/defaultBlocks.d.ts +221 -1060
- package/types/src/blocks/defaultProps.d.ts +17 -1
- package/types/src/blocks/index.d.ts +24 -0
- package/types/src/blocks/utils/listItemEnterHandler.d.ts +2 -0
- package/types/src/editor/BlockNoteEditor.d.ts +36 -67
- package/types/src/editor/BlockNoteExtension.d.ts +67 -0
- package/types/src/editor/BlockNoteExtensions.d.ts +1 -1
- package/types/src/editor/defaultColors.d.ts +8 -76
- package/types/src/exporter/Exporter.d.ts +1 -1
- package/types/src/exporter/mapping.d.ts +1 -1
- package/types/src/extensions/BackgroundColor/BackgroundColorMark.d.ts +4 -1
- package/types/src/extensions/Collaboration/schemaMigration/SchemaMigrationPlugin.d.ts +7 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/index.d.ts +3 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/migrationRule.d.ts +3 -0
- package/types/src/extensions/Collaboration/schemaMigration/migrationRules/moveColorAttributes.d.ts +2 -0
- package/types/src/extensions/Comments/CommentsPlugin.d.ts +1 -1
- package/types/src/extensions/FilePanel/FilePanelPlugin.d.ts +4 -4
- package/types/src/extensions/TextColor/TextColorMark.d.ts +4 -1
- package/types/src/index.d.ts +2 -25
- package/types/src/schema/blocks/createSpec.d.ts +16 -36
- package/types/src/schema/blocks/internal.d.ts +11 -33
- package/types/src/schema/blocks/types.d.ts +181 -57
- package/types/src/schema/index.d.ts +1 -0
- package/types/src/schema/inlineContent/createSpec.d.ts +36 -2
- package/types/src/schema/inlineContent/internal.d.ts +7 -15
- package/types/src/schema/inlineContent/types.d.ts +15 -1
- package/types/src/schema/propTypes.d.ts +4 -4
- package/types/src/schema/schema.d.ts +40 -0
- package/types/src/schema/styles/createSpec.d.ts +6 -4
- package/types/src/schema/styles/internal.d.ts +6 -3
- package/types/src/schema/styles/types.d.ts +11 -2
- package/types/src/util/topo-sort.d.ts +18 -0
- package/types/src/util/topo-sort.test.d.ts +1 -0
- package/src/blocks/AudioBlockContent/AudioBlockContent.ts +0 -144
- package/src/blocks/CodeBlockContent/CodeBlockContent.ts +0 -445
- package/src/blocks/FileBlockContent/FileBlockContent.ts +0 -100
- package/src/blocks/HeadingBlockContent/HeadingBlockContent.ts +0 -159
- package/src/blocks/ImageBlockContent/ImageBlockContent.ts +0 -159
- package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +0 -134
- package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +0 -299
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.ts +0 -86
- package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +0 -172
- package/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.ts +0 -104
- package/src/blocks/PageBreakBlockContent/PageBreakBlockContent.ts +0 -49
- package/src/blocks/PageBreakBlockContent/schema.ts +0 -40
- package/src/blocks/ParagraphBlockContent/ParagraphBlockContent.ts +0 -78
- package/src/blocks/QuoteBlockContent/QuoteBlockContent.ts +0 -121
- package/src/blocks/VideoBlockContent/VideoBlockContent.ts +0 -158
- package/src/editor/BlockNoteSchema.ts +0 -107
- package/src/editor/BlockNoteTipTapEditor.ts +0 -335
- package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +0 -99
- package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +0 -90
- package/types/src/blocks/FileBlockContent/helpers/render/createAddFileButton.d.ts +0 -6
- package/types/src/blocks/FileBlockContent/helpers/render/createFileBlockWrapper.d.ts +0 -9
- package/types/src/blocks/FileBlockContent/helpers/render/createResizableFileBlockWrapper.d.ts +0 -9
- package/types/src/blocks/HeadingBlockContent/HeadingBlockContent.d.ts +0 -67
- package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +0 -131
- package/types/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
- package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +0 -55
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
- package/types/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -58
- package/types/src/blocks/ListItemBlockContent/ToggleListItemBlockContent/ToggleListItemBlockContent.d.ts +0 -46
- package/types/src/blocks/PageBreakBlockContent/PageBreakBlockContent.d.ts +0 -31
- package/types/src/blocks/PageBreakBlockContent/schema.d.ts +0 -86
- package/types/src/blocks/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
- package/types/src/blocks/QuoteBlockContent/QuoteBlockContent.d.ts +0 -52
- package/types/src/blocks/TableBlockContent/TableBlockContent.d.ts +0 -39
- package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +0 -131
- package/types/src/editor/BlockNoteSchema.d.ts +0 -34
- package/types/src/editor/BlockNoteTipTapEditor.d.ts +0 -43
- /package/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.ts +0 -0
- /package/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.ts +0 -0
- /package/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
- /package/src/blocks/{ImageBlockContent → Image}/parseImageElement.ts +0 -0
- /package/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.ts +0 -0
- /package/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.ts +0 -0
- /package/src/blocks/{TableBlockContent → Table}/TableExtension.ts +0 -0
- /package/src/blocks/{VideoBlockContent → Video}/parseVideoElement.ts +0 -0
- /package/types/src/blocks/{AudioBlockContent → Audio}/parseAudioElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseEmbedElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/parse/parseFigureElement.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createFigureWithCaption.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File}/helpers/toExternalHTML/createLinkWithCaption.d.ts +0 -0
- /package/types/src/blocks/{FileBlockContent → File/helpers}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
- /package/types/src/blocks/{ImageBlockContent → Image}/parseImageElement.d.ts +0 -0
- /package/types/src/blocks/{ListItemBlockContent → ListItem}/ListItemKeyboardShortcuts.d.ts +0 -0
- /package/types/src/blocks/{ListItemBlockContent → ListItem}/getListItemContent.d.ts +0 -0
- /package/types/src/blocks/{TableBlockContent → Table}/TableExtension.d.ts +0 -0
- /package/types/src/blocks/{VideoBlockContent → Video}/parseVideoElement.d.ts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./Audio/block.js";
|
|
2
|
+
export * from "./Audio/parseAudioElement.js";
|
|
3
|
+
export * from "./Code/block.js";
|
|
4
|
+
export * from "./File/block.js";
|
|
5
|
+
export * from "./Heading/block.js";
|
|
6
|
+
export * from "./Image/block.js";
|
|
7
|
+
export * from "./ListItem/BulletListItem/block.js";
|
|
8
|
+
export * from "./ListItem/CheckListItem/block.js";
|
|
9
|
+
export * from "./ListItem/NumberedListItem/block.js";
|
|
10
|
+
export * from "./ListItem/ToggleListItem/block.js";
|
|
11
|
+
export * from "./PageBreak/block.js";
|
|
12
|
+
export * from "./Paragraph/block.js";
|
|
13
|
+
export * from "./Quote/block.js";
|
|
14
|
+
export * from "./Table/block.js";
|
|
15
|
+
export * from "./Video/block.js";
|
|
16
|
+
|
|
17
|
+
export { EMPTY_CELL_HEIGHT, EMPTY_CELL_WIDTH } from "./Table/TableExtension.js";
|
|
18
|
+
export * from "./ToggleWrapper/createToggleWrapper.js";
|
|
19
|
+
export * from "./File/helpers/uploadToTmpFilesDotOrg_DEV_ONLY.js";
|
|
20
|
+
export * from "./PageBreak/getPageBreakSlashMenuItems.js";
|
|
21
|
+
|
|
22
|
+
export * from "./BlockNoteSchema.js";
|
|
23
|
+
export * from "./defaultBlockHelpers.js";
|
|
24
|
+
export * from "./defaultBlocks.js";
|
|
25
|
+
export * from "./defaultBlockTypeGuards.js";
|
|
26
|
+
export * from "./defaultProps.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { splitBlockTr } from "../../api/blockManipulation/commands/splitBlock/splitBlock.js";
|
|
2
|
+
import { updateBlockTr } from "../../api/blockManipulation/commands/updateBlock/updateBlock.js";
|
|
3
|
+
import { getBlockInfoFromTransaction } from "../../api/getBlockInfoFromPos.js";
|
|
4
|
+
import { BlockNoteEditor } from "../../editor/BlockNoteEditor.js";
|
|
5
|
+
|
|
6
|
+
export const handleEnter = (
|
|
7
|
+
editor: BlockNoteEditor<any, any, any>,
|
|
8
|
+
listItemType: string,
|
|
9
|
+
) => {
|
|
10
|
+
const { blockInfo, selectionEmpty } = editor.transact((tr) => {
|
|
11
|
+
return {
|
|
12
|
+
blockInfo: getBlockInfoFromTransaction(tr),
|
|
13
|
+
selectionEmpty: tr.selection.anchor === tr.selection.head,
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
if (!blockInfo.isBlockContainer) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const { bnBlock: blockContainer, blockContent } = blockInfo;
|
|
21
|
+
|
|
22
|
+
if (!(blockContent.node.type.name === listItemType) || !selectionEmpty) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (blockContent.node.childCount === 0) {
|
|
27
|
+
editor.transact((tr) => {
|
|
28
|
+
updateBlockTr(tr, blockContainer.beforePos, {
|
|
29
|
+
type: "paragraph",
|
|
30
|
+
props: {},
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return true;
|
|
34
|
+
} else if (blockContent.node.childCount > 0) {
|
|
35
|
+
return editor.transact((tr) => {
|
|
36
|
+
tr.deleteSelection();
|
|
37
|
+
return splitBlockTr(tr, tr.selection.from, true);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return false;
|
|
42
|
+
};
|
package/src/editor/Block.css
CHANGED
|
@@ -559,76 +559,112 @@ NESTED BLOCKS
|
|
|
559
559
|
/* TODO: should this be here? */
|
|
560
560
|
|
|
561
561
|
/* TEXT COLORS */
|
|
562
|
-
[data-
|
|
562
|
+
[data-style-type="textColor"][data-value="gray"],
|
|
563
|
+
[data-text-color="gray"],
|
|
564
|
+
.bn-block:has(> .bn-block-content[data-text-color="gray"]) {
|
|
563
565
|
color: #9b9a97;
|
|
564
566
|
}
|
|
565
567
|
|
|
566
|
-
[data-
|
|
568
|
+
[data-style-type="textColor"][data-value="brown"],
|
|
569
|
+
[data-text-color="brown"],
|
|
570
|
+
.bn-block:has(> .bn-block-content[data-text-color="brown"]) {
|
|
567
571
|
color: #64473a;
|
|
568
572
|
}
|
|
569
573
|
|
|
570
|
-
[data-
|
|
574
|
+
[data-style-type="textColor"][data-value="red"],
|
|
575
|
+
[data-text-color="red"],
|
|
576
|
+
.bn-block:has(> .bn-block-content[data-text-color="red"]) {
|
|
571
577
|
color: #e03e3e;
|
|
572
578
|
}
|
|
573
579
|
|
|
574
|
-
[data-
|
|
580
|
+
[data-style-type="textColor"][data-value="orange"],
|
|
581
|
+
[data-text-color="orange"],
|
|
582
|
+
.bn-block:has(> .bn-block-content[data-text-color="orange"]) {
|
|
575
583
|
color: #d9730d;
|
|
576
584
|
}
|
|
577
585
|
|
|
578
|
-
[data-
|
|
586
|
+
[data-style-type="textColor"][data-value="yellow"],
|
|
587
|
+
[data-text-color="yellow"],
|
|
588
|
+
.bn-block:has(> .bn-block-content[data-text-color="yellow"]) {
|
|
579
589
|
color: #dfab01;
|
|
580
590
|
}
|
|
581
591
|
|
|
582
|
-
[data-
|
|
592
|
+
[data-style-type="textColor"][data-value="green"],
|
|
593
|
+
[data-text-color="green"],
|
|
594
|
+
.bn-block:has(> .bn-block-content[data-text-color="green"]) {
|
|
583
595
|
color: #4d6461;
|
|
584
596
|
}
|
|
585
597
|
|
|
586
|
-
[data-
|
|
598
|
+
[data-style-type="textColor"][data-value="blue"],
|
|
599
|
+
[data-text-color="blue"],
|
|
600
|
+
.bn-block:has(> .bn-block-content[data-text-color="blue"]) {
|
|
587
601
|
color: #0b6e99;
|
|
588
602
|
}
|
|
589
603
|
|
|
590
|
-
[data-
|
|
604
|
+
[data-style-type="textColor"][data-value="purple"],
|
|
605
|
+
[data-text-color="purple"],
|
|
606
|
+
.bn-block:has(> .bn-block-content[data-text-color="purple"]) {
|
|
591
607
|
color: #6940a5;
|
|
592
608
|
}
|
|
593
609
|
|
|
594
|
-
[data-
|
|
610
|
+
[data-style-type="textColor"][data-value="pink"],
|
|
611
|
+
[data-text-color="pink"],
|
|
612
|
+
.bn-block:has(> .bn-block-content[data-text-color="pink"]) {
|
|
595
613
|
color: #ad1a72;
|
|
596
614
|
}
|
|
597
615
|
|
|
598
616
|
/* BACKGROUND COLORS */
|
|
599
|
-
[data-
|
|
617
|
+
[data-style-type="backgroundColor"][data-value="gray"],
|
|
618
|
+
[data-background-color="gray"],
|
|
619
|
+
.bn-block:has(> .bn-block-content[data-background-color="gray"]) {
|
|
600
620
|
background-color: #ebeced;
|
|
601
621
|
}
|
|
602
622
|
|
|
603
|
-
[data-
|
|
623
|
+
[data-style-type="backgroundColor"][data-value="brown"],
|
|
624
|
+
[data-background-color="brown"],
|
|
625
|
+
.bn-block:has(> .bn-block-content[data-background-color="brown"]) {
|
|
604
626
|
background-color: #e9e5e3;
|
|
605
627
|
}
|
|
606
628
|
|
|
607
|
-
[data-
|
|
629
|
+
[data-style-type="backgroundColor"][data-value="red"],
|
|
630
|
+
[data-background-color="red"],
|
|
631
|
+
.bn-block:has(> .bn-block-content[data-background-color="red"]) {
|
|
608
632
|
background-color: #fbe4e4;
|
|
609
633
|
}
|
|
610
634
|
|
|
611
|
-
[data-
|
|
635
|
+
[data-style-type="backgroundColor"][data-value="orange"],
|
|
636
|
+
[data-background-color="orange"],
|
|
637
|
+
.bn-block:has(> .bn-block-content[data-background-color="orange"]) {
|
|
612
638
|
background-color: #f6e9d9;
|
|
613
639
|
}
|
|
614
640
|
|
|
615
|
-
[data-
|
|
641
|
+
[data-style-type="backgroundColor"][data-value="yellow"],
|
|
642
|
+
[data-background-color="yellow"],
|
|
643
|
+
.bn-block:has(> .bn-block-content[data-background-color="yellow"]) {
|
|
616
644
|
background-color: #fbf3db;
|
|
617
645
|
}
|
|
618
646
|
|
|
619
|
-
[data-
|
|
647
|
+
[data-style-type="backgroundColor"][data-value="green"],
|
|
648
|
+
[data-background-color="green"],
|
|
649
|
+
.bn-block:has(> .bn-block-content[data-background-color="green"]) {
|
|
620
650
|
background-color: #ddedea;
|
|
621
651
|
}
|
|
622
652
|
|
|
623
|
-
[data-
|
|
653
|
+
[data-style-type="backgroundColor"][data-value="blue"],
|
|
654
|
+
[data-background-color="blue"],
|
|
655
|
+
.bn-block:has(> .bn-block-content[data-background-color="blue"]) {
|
|
624
656
|
background-color: #ddebf1;
|
|
625
657
|
}
|
|
626
658
|
|
|
627
|
-
[data-
|
|
659
|
+
[data-style-type="backgroundColor"][data-value="purple"],
|
|
660
|
+
[data-background-color="purple"],
|
|
661
|
+
.bn-block:has(> .bn-block-content[data-background-color="purple"]) {
|
|
628
662
|
background-color: #eae4f2;
|
|
629
663
|
}
|
|
630
664
|
|
|
631
|
-
[data-
|
|
665
|
+
[data-style-type="backgroundColor"][data-value="pink"],
|
|
666
|
+
[data-background-color="pink"],
|
|
667
|
+
.bn-block:has(> .bn-block-content[data-background-color="pink"]) {
|
|
632
668
|
background-color: #f4dfeb;
|
|
633
669
|
}
|
|
634
670
|
|