@toantranmei/editor 0.1.2 → 0.2.0

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/index.js CHANGED
@@ -6577,6 +6577,6 @@ var Du = ["title"], Ou = ["title"], ku = ["title"], Au = ["title"], ju = ["onMou
6577
6577
  }), td = { install(e, t = {}) {
6578
6578
  t.component !== !1 && e.component(t.componentName ?? "MeiEditor", ed), e.provide(li, A(t.tokens)), t.blocks && e.provide(ui, t.blocks);
6579
6579
  } };
6580
- export { e as BLOCK_NAMES, br as BgColor, Sr as BlockColor, tr as BlockDrop, hr as BlockSelection, zi as CODE_LANGUAGES, xr as COLORABLE_BLOCKS, Cl as COLORS, Ci as Callout, Wi as CodeBlock, Gi as Column, Ki as Columns, _l as ContentError, Ta as Embed, Lo as EmojiSuggestion, $o as FileBlock, ui as GLOBAL_BLOCKS_KEY, li as GLOBAL_TOKENS_KEY, Ts as HtmlBlock, xo as ImageBlock, Ns as MathBlock, Ps as MathInline, Dn as MeiConfig, ed as MeiEditor, td as MeiEditorPlugin, el as MentionNode, nl as MermaidPreview, c as PALETTE_NAMES, Yr as SlashCommand, pr as TURN_INTO_SHORTCUTS, sl as TableOfContents, yr as TextColor, Zi as ToggleDetails, Zr as UnknownBlock, Qr as UnknownInline, l as baseTokensCss, An as blockAt, da as bulletList, ea as callout, $i as codeBlock, On as collectExtensions, Gn as colorBlocks, sa as columns, t as componentTokens, $r as createExtensions, Pn as currentRange, gl as defaultBlocks, Q as defineBlock, Sl as defineTokens, Bn as deleteBlocks, ha as divider, Vn as duplicateBlocks, Co as embed, dl as emoji, wn as en, pl as file, fr as filterBlocks, ua as heading, hl as html, Cs as htmlBlockCsp, So as image, $ as isNode, Hi as loadLanguage, Tn as locales, Li as lowlight, ll as math, ml as mention, ul as mermaid, Hn as moveBlocks, fa as orderedList, i as overridesCss, a as primitiveTokens, ma as quote, En as resolveMessages, bl as sanitizeContent, Ln as selectBlocks, u as semanticDarkTokens, n as semanticLightTokens, aa as table, pa as taskList, ca as text, wa as toEmbedUrl, cl as toc, ta as toggle, ia as toggleHeading, Wn as turnBlocksInto, xl as unwrapUnknown, Cn as vi, vl as wrapUnknown };
6580
+ export { e as BLOCK_NAMES, br as BgColor, Sr as BlockColor, tr as BlockDrop, hr as BlockSelection, zi as CODE_LANGUAGES, xr as COLORABLE_BLOCKS, Cl as COLORS, Ci as Callout, Wi as CodeBlock, Gi as Column, Ki as Columns, _l as ContentError, Ta as Embed, Lo as EmojiSuggestion, $o as FileBlock, ui as GLOBAL_BLOCKS_KEY, li as GLOBAL_TOKENS_KEY, Ts as HtmlBlock, xo as ImageBlock, Ns as MathBlock, Ps as MathInline, Dn as MeiConfig, ed as MeiEditor, td as MeiEditorPlugin, el as MentionNode, nl as MermaidPreview, c as PALETTE_NAMES, Yr as SlashCommand, pr as TURN_INTO_SHORTCUTS, sl as TableOfContents, yr as TextColor, Zi as ToggleDetails, Zr as UnknownBlock, Qr as UnknownInline, l as baseTokensCss, An as blockAt, di as blockNodeView, da as bulletList, ea as callout, $i as codeBlock, On as collectExtensions, Gn as colorBlocks, sa as columns, t as componentTokens, $r as createExtensions, Pn as currentRange, gl as defaultBlocks, Q as defineBlock, Sl as defineTokens, Bn as deleteBlocks, ha as divider, Vn as duplicateBlocks, Co as embed, dl as emoji, wn as en, pl as file, fr as filterBlocks, ua as heading, hl as html, Cs as htmlBlockCsp, So as image, $ as isNode, Hi as loadLanguage, Tn as locales, Li as lowlight, ll as math, ml as mention, ul as mermaid, Hn as moveBlocks, fa as orderedList, i as overridesCss, a as primitiveTokens, ma as quote, En as resolveMessages, bl as sanitizeContent, Ln as selectBlocks, u as semanticDarkTokens, n as semanticLightTokens, aa as table, pa as taskList, ca as text, wa as toEmbedUrl, cl as toc, ta as toggle, ia as toggleHeading, Wn as turnBlocksInto, xl as unwrapUnknown, pi as useClickOutside, fi as useEditable, Cr as useScope, Cn as vi, vl as wrapUnknown };
6581
6581
 
6582
6582
  //# sourceMappingURL=index.js.map
@@ -31,4 +31,8 @@ export { COLORS, type ColorName } from './colors';
31
31
  export { BgColor, BlockColor, COLORABLE_BLOCKS, TextColor } from './extensions/color-marks';
32
32
  export { baseTokensCss, component as componentTokens, defineTokens, overridesCss, PALETTE_NAMES, primitive as primitiveTokens, semanticDark as semanticDarkTokens, semanticLight as semanticLightTokens, type PaletteName, type ThemeMode, type ThemeTokens, } from './theme';
33
33
  export { en, locales, resolveMessages, vi, type BlockGroup, type EditorMessages, type LocaleName, type PartialMessages } from './locale';
34
+ export { blockNodeView } from './nodeviews/renderer';
35
+ export { useClickOutside } from './composables/useClickOutside';
36
+ export { useEditable } from './composables/useEditable';
37
+ export { useScope } from './composables/useScope';
34
38
  export type { Editor, JSONContent } from '@tiptap/vue-3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toantranmei/editor",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Notion-style block editor for Vue 3 and Nuxt, built on Tiptap.",
5
5
  "keywords": [
6
6
  "vue",