@pixerate/editor 0.8.1 → 0.10.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/agent/index.cjs +512 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +369 -0
- package/dist/agent/index.d.ts +369 -0
- package/dist/agent/index.js +471 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/canvas/index.cjs +797 -0
- package/dist/canvas/index.cjs.map +1 -0
- package/dist/canvas/index.d.cts +187 -0
- package/dist/canvas/index.d.ts +187 -0
- package/dist/canvas/index.js +731 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +5 -27
- package/dist/extensions/index.d.ts +5 -27
- package/dist/extensions/index.js.map +1 -1
- package/dist/index.cjs +1274 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -5
- package/dist/index.d.ts +41 -5
- package/dist/index.js +1232 -6
- package/dist/index.js.map +1 -1
- package/dist/mention-Dcevh3ff.d.cts +32 -0
- package/dist/mention-Dcevh3ff.d.ts +32 -0
- package/dist/serializers/index.cjs +194 -4
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.d.cts +89 -2
- package/dist/serializers/index.d.ts +89 -2
- package/dist/serializers/index.js +186 -3
- package/dist/serializers/index.js.map +1 -1
- package/dist/types-lGtRobRV.d.cts +213 -0
- package/dist/types-lGtRobRV.d.ts +213 -0
- package/package.json +13 -1
|
@@ -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
|
|
7
|
-
|
|
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,
|
|
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
|
|
7
|
-
|
|
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,
|
|
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 };
|