@blocknote/core 0.10.0 → 0.10.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/blocknote.js +14 -15
- package/dist/blocknote.js.map +1 -1
- package/dist/blocknote.umd.cjs +1 -1
- package/dist/blocknote.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -3
- package/src/editor/BlockNoteEditor.ts +0 -1
- package/src/editor/editor.css +1 -0
- package/types/src/editor/BlockNoteEditor.d.ts +0 -1
- package/types/src/BlockNoteEditor.d.ts +0 -300
- package/types/src/BlockNoteEditor.test.d.ts +0 -1
- package/types/src/BlockNoteExtensions.d.ts +0 -26
- package/types/src/api/nodeConversions/testUtil.d.ts +0 -7
- package/types/src/api/testCases/cases/customBlocks.d.ts +0 -345
- package/types/src/api/testCases/cases/customInlineContent.d.ts +0 -29
- package/types/src/api/testCases/cases/customStyles.d.ts +0 -64
- package/types/src/api/testCases/cases/defaultSchema.d.ts +0 -3
- package/types/src/api/testCases/index.d.ts +0 -12
- package/types/src/api/util/nodeUtil.d.ts +0 -8
- package/types/src/extensions/Blocks/NonEditableBlockPlugin.d.ts +0 -2
- package/types/src/extensions/Blocks/PreviousBlockTypePlugin.d.ts +0 -14
- package/types/src/extensions/Blocks/api/blocks/createSpec.d.ts +0 -35
- package/types/src/extensions/Blocks/api/blocks/internal.d.ts +0 -45
- package/types/src/extensions/Blocks/api/blocks/types.d.ts +0 -114
- package/types/src/extensions/Blocks/api/cursorPositionTypes.d.ts +0 -8
- package/types/src/extensions/Blocks/api/defaultBlocks.d.ts +0 -577
- package/types/src/extensions/Blocks/api/defaultProps.d.ts +0 -15
- package/types/src/extensions/Blocks/api/inlineContent/createSpec.d.ts +0 -21
- package/types/src/extensions/Blocks/api/inlineContent/internal.d.ts +0 -25
- package/types/src/extensions/Blocks/api/inlineContent/types.d.ts +0 -62
- package/types/src/extensions/Blocks/api/selectionTypes.d.ts +0 -6
- package/types/src/extensions/Blocks/api/styles/createSpec.d.ts +0 -13
- package/types/src/extensions/Blocks/api/styles/internal.d.ts +0 -22
- package/types/src/extensions/Blocks/api/styles/types.d.ts +0 -21
- package/types/src/extensions/Blocks/helpers/findBlock.d.ts +0 -6
- package/types/src/extensions/Blocks/helpers/getBlockInfoFromPos.d.ts +0 -27
- package/types/src/extensions/Blocks/index.d.ts +0 -4
- package/types/src/extensions/Blocks/nodes/BlockAttributes.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContainer.d.ts +0 -30
- package/types/src/extensions/Blocks/nodes/BlockContent/HeadingBlockContent/HeadingBlockContent.d.ts +0 -58
- package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/ImageBlockContent.d.ts +0 -95
- package/types/src/extensions/Blocks/nodes/BlockContent/ImageBlockContent/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -1
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.d.ts +0 -46
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/ListItemKeyboardShortcuts.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListIndexingPlugin.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.d.ts +0 -46
- package/types/src/extensions/Blocks/nodes/BlockContent/ParagraphBlockContent/ParagraphBlockContent.d.ts +0 -52
- package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableBlockContent.d.ts +0 -53
- package/types/src/extensions/Blocks/nodes/BlockContent/TableBlockContent/TableExtension.d.ts +0 -2
- package/types/src/extensions/Blocks/nodes/BlockContent/defaultBlockHelpers.d.ts +0 -12
- package/types/src/extensions/Blocks/nodes/BlockGroup.d.ts +0 -10
- package/types/src/shared/BaseUiElementTypes.d.ts +0 -7
- package/types/src/shared/EditorElement.d.ts +0 -0
- package/types/src/shared/EventEmitter.d.ts +0 -11
- package/types/src/shared/plugins/suggestion/SuggestionItem.d.ts +0 -3
- package/types/src/shared/plugins/suggestion/SuggestionPlugin.d.ts +0 -37
- package/types/src/shared/utils.d.ts +0 -6
package/dist/blocknote.js
CHANGED
|
@@ -32,7 +32,6 @@ import { HardBreak as je } from "@tiptap/extension-hard-break";
|
|
|
32
32
|
import { History as We } from "@tiptap/extension-history";
|
|
33
33
|
import { Link as qe } from "@tiptap/extension-link";
|
|
34
34
|
import { Text as Xe } from "@tiptap/extension-text";
|
|
35
|
-
import "prosemirror-tables/style/tables.css";
|
|
36
35
|
function Je(n, e = JSON.stringify) {
|
|
37
36
|
const t = {};
|
|
38
37
|
return n.filter((o) => {
|
|
@@ -715,7 +714,7 @@ const it = (n, e) => {
|
|
|
715
714
|
), i = n.nodes.blockGroup.create(null, r);
|
|
716
715
|
return t.serializeProseMirrorFragment(H.from(i));
|
|
717
716
|
}, t;
|
|
718
|
-
},
|
|
717
|
+
}, Er = async (n) => {
|
|
719
718
|
const e = new FormData();
|
|
720
719
|
return e.append("file", n), (await (await fetch("https://tmpfiles.org/api/v1/upload", {
|
|
721
720
|
method: "POST",
|
|
@@ -725,7 +724,7 @@ const it = (n, e) => {
|
|
|
725
724
|
"tmpfiles.org/dl/"
|
|
726
725
|
);
|
|
727
726
|
}, en = () => typeof navigator < "u" && (/Mac/.test(navigator.platform) || /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent));
|
|
728
|
-
function
|
|
727
|
+
function Cr(n) {
|
|
729
728
|
return en() ? n.replace("Mod", "⌘") : n.replace("Mod", "Ctrl");
|
|
730
729
|
}
|
|
731
730
|
function V(...n) {
|
|
@@ -1004,7 +1003,7 @@ function cn(n) {
|
|
|
1004
1003
|
}
|
|
1005
1004
|
];
|
|
1006
1005
|
}
|
|
1007
|
-
function
|
|
1006
|
+
function Tr(n, e) {
|
|
1008
1007
|
const t = j.create({
|
|
1009
1008
|
name: n.type,
|
|
1010
1009
|
inline: !0,
|
|
@@ -1091,7 +1090,7 @@ function hn(n) {
|
|
|
1091
1090
|
}
|
|
1092
1091
|
];
|
|
1093
1092
|
}
|
|
1094
|
-
function
|
|
1093
|
+
function Mr(n, e) {
|
|
1095
1094
|
const t = mt.create({
|
|
1096
1095
|
name: n.type,
|
|
1097
1096
|
addAttributes() {
|
|
@@ -1891,10 +1890,10 @@ const En = {
|
|
|
1891
1890
|
code: _(xe, "boolean"),
|
|
1892
1891
|
textColor: bn,
|
|
1893
1892
|
backgroundColor: fn
|
|
1894
|
-
},
|
|
1893
|
+
}, xr = Zt(ne), oe = {
|
|
1895
1894
|
text: { config: "text", implementation: {} },
|
|
1896
1895
|
link: { config: "link", implementation: {} }
|
|
1897
|
-
},
|
|
1896
|
+
}, Br = Kt(
|
|
1898
1897
|
oe
|
|
1899
1898
|
);
|
|
1900
1899
|
function yt(n, e) {
|
|
@@ -4536,7 +4535,7 @@ function ce(n) {
|
|
|
4536
4535
|
content: ce(e.content)
|
|
4537
4536
|
}) : n;
|
|
4538
4537
|
}
|
|
4539
|
-
function
|
|
4538
|
+
function Ir(n, e) {
|
|
4540
4539
|
return e.map(
|
|
4541
4540
|
(t) => pe(n, t)
|
|
4542
4541
|
);
|
|
@@ -4592,23 +4591,23 @@ export {
|
|
|
4592
4591
|
rn as createBlockSpec,
|
|
4593
4592
|
et as createBlockSpecFromStronglyTypedTiptapNode,
|
|
4594
4593
|
it as createExternalHTMLExporter,
|
|
4595
|
-
|
|
4594
|
+
Tr as createInlineContentSpec,
|
|
4596
4595
|
dn as createInlineContentSpecFromTipTapNode,
|
|
4597
4596
|
Xt as createInternalBlockSpec,
|
|
4598
4597
|
jt as createInternalHTMLSerializer,
|
|
4599
4598
|
ln as createInternalInlineContentSpec,
|
|
4600
4599
|
Yt as createInternalStyleSpec,
|
|
4601
4600
|
W as createStronglyTypedTiptapNode,
|
|
4602
|
-
|
|
4601
|
+
Mr as createStyleSpec,
|
|
4603
4602
|
_ as createStyleSpecFromTipTapMark,
|
|
4604
4603
|
ee as defaultBlockSchema,
|
|
4605
4604
|
te as defaultBlockSpecs,
|
|
4606
|
-
|
|
4605
|
+
Br as defaultInlineContentSchema,
|
|
4607
4606
|
oe as defaultInlineContentSpecs,
|
|
4608
4607
|
x as defaultProps,
|
|
4609
|
-
|
|
4608
|
+
xr as defaultStyleSchema,
|
|
4610
4609
|
ne as defaultStyleSpecs,
|
|
4611
|
-
|
|
4610
|
+
Cr as formatKeyboardShortcut,
|
|
4612
4611
|
Qn as formattingToolbarPluginKey,
|
|
4613
4612
|
nn as getBlockFromPos,
|
|
4614
4613
|
Vo as getBlockNoteExtensions,
|
|
@@ -4632,7 +4631,7 @@ export {
|
|
|
4632
4631
|
I as nodeToBlock,
|
|
4633
4632
|
Ut as nodeToCustomInlineContent,
|
|
4634
4633
|
pe as partialBlockToBlockForTesting,
|
|
4635
|
-
|
|
4634
|
+
Ir as partialBlocksToBlocksForTesting,
|
|
4636
4635
|
qt as propsToAttributes,
|
|
4637
4636
|
so as setupSuggestionsMenu,
|
|
4638
4637
|
ho as sideMenuPluginKey,
|
|
@@ -4640,7 +4639,7 @@ export {
|
|
|
4640
4639
|
pn as stylePropsToAttributes,
|
|
4641
4640
|
zt as tableContentToNodes,
|
|
4642
4641
|
K as tableHandlesPluginKey,
|
|
4643
|
-
|
|
4642
|
+
Er as uploadToTmpFilesDotOrg_DEV_ONLY,
|
|
4644
4643
|
at as wrapInBlockStructure
|
|
4645
4644
|
};
|
|
4646
4645
|
//# sourceMappingURL=blocknote.js.map
|