@pixerate/editor 0.8.1 → 0.9.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.
@@ -1,15 +1,15 @@
1
- import * as _tiptap_core from '@tiptap/core';
2
1
  import { Mark, Extension, Node, Extensions } from '@tiptap/core';
3
2
  import { C as ColorGradient, b as Template } from '../tokens-7kRTEtPb.cjs';
4
3
  import { DecorationSet } from '@tiptap/pm/view';
5
4
  import { Node as Node$1 } from '@tiptap/pm/model';
6
- import * as _tiptap_extension_mention from '@tiptap/extension-mention';
7
- import { MentionOptions as MentionOptions$1 } from '@tiptap/extension-mention';
8
- import { SuggestionOptions } from '@tiptap/suggestion';
5
+ import { b as MentionOptions } from '../mention-Dcevh3ff.cjs';
6
+ export { M as Mention, a as MentionEntity, c as createMentionExtension } from '../mention-Dcevh3ff.cjs';
9
7
  import { MarkdownOptions } from 'tiptap-markdown';
10
8
  export { MarkdownOptions } from 'tiptap-markdown';
11
9
  import { ImageOptions as ImageOptions$1 } from '@tiptap/extension-image';
12
10
  import { PluginKey } from '@tiptap/pm/state';
11
+ import '@tiptap/extension-mention';
12
+ import '@tiptap/suggestion';
13
13
 
14
14
  interface GradientTextOptions {
15
15
  templateColorMap: Map<string, ColorGradient>;
@@ -74,28 +74,6 @@ declare module "@tiptap/core" {
74
74
  }
75
75
  declare const FontSize: Extension<any, any>;
76
76
 
77
- interface MentionEntity {
78
- id: string;
79
- label: string;
80
- type?: string;
81
- avatarUrl?: string;
82
- color?: string;
83
- [key: string]: any;
84
- }
85
- interface MentionOptions extends Partial<MentionOptions$1> {
86
- HTMLAttributes?: Record<string, any>;
87
- suggestion?: Partial<SuggestionOptions<MentionEntity>>;
88
- }
89
- /**
90
- * First-class native Mention extension for @pixerate/editor.
91
- * Creates atomic inline <span data-type="mention"> nodes with full suggestion support.
92
- */
93
- declare const Mention: _tiptap_core.Node<MentionOptions$1<any, _tiptap_extension_mention.MentionNodeAttrs>, any>;
94
- /**
95
- * Helper to configure the Mention extension with preset defaults.
96
- */
97
- declare function createMentionExtension(options?: Partial<MentionOptions>): _tiptap_core.Node<MentionOptions$1<any, _tiptap_extension_mention.MentionNodeAttrs>, any>;
98
-
99
77
  /**
100
78
  * Built-in native Markdown extension for @pixerate/editor based on tiptap-markdown.
101
79
  * Enables automatic markdown parsing, serialization, and clipboard handling.
@@ -166,4 +144,4 @@ interface RichTextPresetOptions {
166
144
  */
167
145
  declare function createRichTextPreset(options?: RichTextPresetOptions): Extensions;
168
146
 
169
- export { ColorHighlighter, FontSize, GradientText, type GradientTextOptions, Image, type ImageOptions, LoadingNode, Markdown, Mention, type MentionEntity, type MentionOptions, type RichTextPresetOptions, type SlashCommandMatchData, SlashCommands, type SlashCommandsOptions, SmilieReplacer, TemplateSuggestions, type TemplateSuggestionsOptions, createMentionExtension, createRichTextPreset, findHexColors, handleImageInsertion, imagePastePluginKey, insertImageNode, removeImageNode, updateImageSrc };
147
+ export { ColorHighlighter, FontSize, GradientText, type GradientTextOptions, Image, type ImageOptions, LoadingNode, Markdown, MentionOptions, type RichTextPresetOptions, type SlashCommandMatchData, SlashCommands, type SlashCommandsOptions, SmilieReplacer, TemplateSuggestions, type TemplateSuggestionsOptions, createRichTextPreset, findHexColors, handleImageInsertion, imagePastePluginKey, insertImageNode, removeImageNode, updateImageSrc };
@@ -1,15 +1,15 @@
1
- import * as _tiptap_core from '@tiptap/core';
2
1
  import { Mark, Extension, Node, Extensions } from '@tiptap/core';
3
2
  import { C as ColorGradient, b as Template } from '../tokens-7kRTEtPb.js';
4
3
  import { DecorationSet } from '@tiptap/pm/view';
5
4
  import { Node as Node$1 } from '@tiptap/pm/model';
6
- import * as _tiptap_extension_mention from '@tiptap/extension-mention';
7
- import { MentionOptions as MentionOptions$1 } from '@tiptap/extension-mention';
8
- import { SuggestionOptions } from '@tiptap/suggestion';
5
+ import { b as MentionOptions } from '../mention-Dcevh3ff.js';
6
+ export { M as Mention, a as MentionEntity, c as createMentionExtension } from '../mention-Dcevh3ff.js';
9
7
  import { MarkdownOptions } from 'tiptap-markdown';
10
8
  export { MarkdownOptions } from 'tiptap-markdown';
11
9
  import { ImageOptions as ImageOptions$1 } from '@tiptap/extension-image';
12
10
  import { PluginKey } from '@tiptap/pm/state';
11
+ import '@tiptap/extension-mention';
12
+ import '@tiptap/suggestion';
13
13
 
14
14
  interface GradientTextOptions {
15
15
  templateColorMap: Map<string, ColorGradient>;
@@ -74,28 +74,6 @@ declare module "@tiptap/core" {
74
74
  }
75
75
  declare const FontSize: Extension<any, any>;
76
76
 
77
- interface MentionEntity {
78
- id: string;
79
- label: string;
80
- type?: string;
81
- avatarUrl?: string;
82
- color?: string;
83
- [key: string]: any;
84
- }
85
- interface MentionOptions extends Partial<MentionOptions$1> {
86
- HTMLAttributes?: Record<string, any>;
87
- suggestion?: Partial<SuggestionOptions<MentionEntity>>;
88
- }
89
- /**
90
- * First-class native Mention extension for @pixerate/editor.
91
- * Creates atomic inline <span data-type="mention"> nodes with full suggestion support.
92
- */
93
- declare const Mention: _tiptap_core.Node<MentionOptions$1<any, _tiptap_extension_mention.MentionNodeAttrs>, any>;
94
- /**
95
- * Helper to configure the Mention extension with preset defaults.
96
- */
97
- declare function createMentionExtension(options?: Partial<MentionOptions>): _tiptap_core.Node<MentionOptions$1<any, _tiptap_extension_mention.MentionNodeAttrs>, any>;
98
-
99
77
  /**
100
78
  * Built-in native Markdown extension for @pixerate/editor based on tiptap-markdown.
101
79
  * Enables automatic markdown parsing, serialization, and clipboard handling.
@@ -166,4 +144,4 @@ interface RichTextPresetOptions {
166
144
  */
167
145
  declare function createRichTextPreset(options?: RichTextPresetOptions): Extensions;
168
146
 
169
- export { ColorHighlighter, FontSize, GradientText, type GradientTextOptions, Image, type ImageOptions, LoadingNode, Markdown, Mention, type MentionEntity, type MentionOptions, type RichTextPresetOptions, type SlashCommandMatchData, SlashCommands, type SlashCommandsOptions, SmilieReplacer, TemplateSuggestions, type TemplateSuggestionsOptions, createMentionExtension, createRichTextPreset, findHexColors, handleImageInsertion, imagePastePluginKey, insertImageNode, removeImageNode, updateImageSrc };
147
+ export { ColorHighlighter, FontSize, GradientText, type GradientTextOptions, Image, type ImageOptions, LoadingNode, Markdown, MentionOptions, type RichTextPresetOptions, type SlashCommandMatchData, SlashCommands, type SlashCommandsOptions, SmilieReplacer, TemplateSuggestions, type TemplateSuggestionsOptions, createRichTextPreset, findHexColors, handleImageInsertion, imagePastePluginKey, insertImageNode, removeImageNode, updateImageSrc };