UNPKG

@blocknote/core

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

7 lines (6 loc) 7.99 kB
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fn as v, G as y, Gn as b, H as x, Hn as S, I as C, In as w, J as T, Jn as E, Jt as D, K as O, Kn as k, Kt as A, L as j, Ln as M, M as N, Mn as P, Mt as F, N as I, Nn as L, Nt as R, O as z, On as B, Ot as V, P as H, Pn as U, Q as W, Qn as G, Qt as K, R as q, Rn as J, S as Y, Sn as X, St as Z, T as Q, Tn as $, Tt as ee, U as te, Un as ne, V as re, Vn as ie, Wn as ae, Wt as oe, X as se, Xn as ce, Xt as le, Y as ue, Yn as de, Yt as fe, Z as pe, Zn as me, Zt as he, _ as ge, _n as _e, _t as ve, a as ye, an as be, at as xe, b as Se, bn as Ce, bt as we, c as Te, cn as Ee, ct as De, d as Oe, dn as ke, dt as Ae, en as je, er as Me, et as Ne, f as Pe, fn as Fe, ft as Ie, g as Le, gn as Re, gt as ze, h as Be, hn as Ve, ht as He, i as Ue, in as We, it as Ge, j as Ke, jn as qe, jt as Je, k as Ye, kn as Xe, kt as Ze, l as Qe, ln as $e, lt as et, m as tt, mn as nt, mt as rt, n as it, nn as at, nt as ot, o as st, on as ct, ot as lt, p as ut, pn as dt, pt as ft, q as pt, qn as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vn as kt, vt as At, w as jt, wn as Mt, wt as Nt, x as Pt, xn as Ft, xt as It, y as Lt, yn as Rt, yt as zt, z as Bt, zn as Vt } from "./blocks-CiuUGa1E.js"; import { a as Ht, i as Ut, n as Wt, t as Gt } from "./BlockNoteExtension-B_IEJHS8.js"; import { C as Kt, D as qt, E as Jt, S as Yt, T as Xt, _ as Zt, a as Qt, b as $t, c as en, d as tn, f as nn, g as rn, h as an, i as on, l as sn, m as cn, n as ln, o as un, p as dn, r as fn, s as pn, t as mn, u as hn, v as gn, w as _n, x as vn, y as yn } from "./src-DTF83Cl9.js"; import { A as bn, C as xn, D as Sn, E as Cn, O as wn, S as Tn, T as En, _ as Dn, a as On, b as kn, c as An, d as jn, f as Mn, g as Nn, i as Pn, k as Fn, l as In, m as Ln, n as Rn, o as zn, p as Bn, r as Vn, s as Hn, t as Un, u as Wn, v as Gn, w as Kn, x as qn, y as Jn } from "./extensions-CrUGDOks.js"; import { n as Yn, r as Xn, t as Zn } from "./UserStore-QbbPFj0z.js"; export { d as BLOCK_LEVEL_SUGGESTION_GROUP, wn as BlockChangeExtension, on as BlockNoteEditor, St as BlockNoteSchema, u as COLORS_DARK_MODE_DEFAULT, Nt as COLORS_DEFAULT, Pn as CURRENT_VERSION_ID, oe as CustomBlockNoteSchema, Tn as DEFAULT_LINK_PROTOCOL, Cn as DRAG_EXCLUSION_CLASSNAME, Sn as DropCursorExtension, Q as EMPTY_CELL_HEIGHT, m as EMPTY_CELL_WIDTH, cn as EventEmitter, fn as Exporter, et as FILE_AUDIO_ICON_SVG, y as FILE_IMAGE_ICON_SVG, Lt as FILE_VIDEO_ICON_SVG, ze as FilePanelExtension, tt as FormattingToolbarExtension, sn as HTMLToBlocks, En as HistoryExtension, Kn as LinkToolbarExtension, Ut as NON_FORMATTING_MARK_GROUP, qn as NodeSelectionKeyboardExtension, kn as PlaceholderExtension, Jn as PositionMappingExtension, Gn as PreviousBlockTypeExtension, Xn as ShowSelectionExtension, Mn as SideMenuExtension, Bn as SideMenuView, Pe as SuggestionMenu, An as TableHandlesExtension, In as TableHandlesView, Hn as TrailingNodeExtension, k as UniqueID, w as UnreachableCaseError, xn as VALID_LINK_PROTOCOLS, On as VersioningExtension, ve as addDefaultPropsExternalHTML, n as addInlineContentAttributes, je as addInlineContentKeyboardShortcuts, We as addNodeAndExtensionsToSpec, D as addStyleAttributes, be as applyNonSelectableBlockFix, M as assertEmpty, Dt as audioParse, Ae as audioRender, Ie as audioToExternalHTML, Be as blockHasType, Je as blockToNode, Nn as blocksToMarkdown, dt as camelToDataKebab, ee as captureCellAnchor, yt as checkPageBreakBlocksInSchema, Dn as cleanHTMLToMarkdown, an as colorsForUserIds, mn as combineByGroup, Re as contentNodeToInlineContent, _e as contentNodeToTableContent, ft as createAudioBlockConfig, rt as createAudioBlockSpec, ct as createBlockConfig, bt as createBlockSpec, $e as createBlockSpecFromTiptapNode, x as createBulletListItemBlockConfig, te as createBulletListItemBlockSpec, o as createCheckListItemBlockSpec, re as createCheckListItemConfig, lt as createCodeBlockConfig, xt as createCodeBlockSpec, Xe as createDefaultBlockDOMOutputSpec, Ge as createDividerBlockConfig, xe as createDividerBlockSpec, Gt as createExtension, bn as createExternalHTMLExporter, wt as createFileBlockConfig, ot as createFileBlockSpec, pe as createHeadingBlockConfig, W as createHeadingBlockSpec, O as createImageBlockConfig, pt as createImageBlockSpec, Un as createInMemoryPreviewController, Rn as createInMemoryVersioningAdapter, Vn as createInMemoryVersioningEndpoints, Jt as createInlineContentSpec, Ct as createInlineContentSpecFromTipTapNode, $t as createInternalHTMLSerializer, at as createInternalInlineContentSpec, fe as createInternalStyleSpec, q as createNumberedListItemBlockConfig, Bt as createNumberedListItemBlockSpec, I as createPageBreakBlockConfig, H as createPageBreakBlockSpec, Ke as createParagraphBlockConfig, N as createParagraphBlockSpec, Ye as createQuoteBlockConfig, r as createQuoteBlockSpec, Wt as createStore, A as createStyleSpec, le as createStyleSpecFromTipTapMark, c as createTableBlockSpec, C as createToggleListItemBlockConfig, j as createToggleListItemBlockSpec, e as createToggleWrapper, Zn as createUserStore, Se as createVideoBlockConfig, Pt as createVideoBlockSpec, rn as cssVarUserId, it as defaultBlockSpecs, i as defaultBlockToHTML, gt as defaultInlineContentSchema, Ue as defaultInlineContentSpecs, At as defaultProps, ye as defaultStyleSchema, st as defaultStyleSpecs, Ne as defaultToggledState, kt as docToBlocks, Le as editorHasBlockWithType, Qt as expandPMRangeToWords, Zt as fallbackColorForUserId, vt as fileParse, nt as filenameFromURL, Qe as filterSuggestionItems, Yt as fixColumnList, P as formatKeyboardShortcut, zt as getBackgroundColorAttribute, hn as getBlock, X as getBlockCache, Et as getBlockFromPos, mt as getBlockInfo, E as getBlockInfoAtNearest, de as getBlockInfoFromResolvedPos, ce as getBlockInfoFromSelection, me as getBlockInfoWithManualOffset, l as getBlockNoteSchema, Mt as getBlockSchema, Fn as getBlocksChangedByTransaction, J as getColspan, jn as getDefaultEmojiPickerItems, Tt as getDefaultSlashMenuItems, qt as getInlineContentParseRules, $ as getInlineContentSchema, _t as getInlineContentSchemaFromSpecs, De as getLanguageId, G as getNearestBlockPos, tn as getNextBlock, Ze as getNodeById, t as getNodeId, Te as getPageBreakSlashMenuItems, nn as getParentBlock, Ee as getParseRules, h as getPmSchema, dn as getPrevBlock, Vt as getRowspan, ht as getStyleParseRules, f as getStyleSchema, he as getStyleSchemaFromSpecs, we as getTextAlignmentAttribute, It as getTextColorAttribute, T as imageParse, ue as imageRender, se as imageToExternalHTML, F as inlineContentToNodes, Xt as insertBlocks, Oe as insertOrUpdateBlockForSlashMenu, L as isAppleOS, Kt as isEmptyColumn, ne as isLinkInlineContent, a as isNodeBlock, ae as isPartialLinkInlineContent, s as isPartialTableCell, B as isPlainContentNodeType, U as isSafari, b as isStyledTextInlineContent, Me as isSuggestedDeletionNode, ie as isTableCell, ge as isTableCellSelection, Ve as isVideoUrl, S as mapTableCell, ln as mappingFactory, pn as markdownToBlocks, en as markdownToHTML, v as mergeCSSClasses, qe as mergeParagraphs, Rt as nodeToBlock, Ce as nodeToCustomInlineContent, Ht as nonFormattingMarks, Yn as normalizeToUserStore, He as parseAudioElement, Z as parseDefaultProps, ke as propsToAttributes, Ft as prosemirrorSliceToSlicedBlocks, vn as removeAndInsertBlocks, _n as removeEmptyColumns, un as selectedFragmentToHTML, Ln as sideMenuPluginKey, zn as sortSnapshotsNewestFirst, K as stylePropsToAttributes, z as suggestionMarks, R as tableContentToNodes, Wn as tableHandlesPluginKey, jt as tablePropSchema, ut as trackPosition, g as updateBlock, p as updateBlockCommand, V as updateBlockTr, Ot as uploadToTmpFilesDotOrg_DEV_ONLY, gn as userColorPalette, yn as userColorVarNames, Y as videoParse, _ as withPageBreak, Fe as wrapInBlockStructure };