@lyfie/luthor 2.3.6 → 2.5.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/README.md +9 -10
- package/dist/LegacyRichEditor-Hzt4pYS-.d.ts +24 -0
- package/dist/chunk-4DOFRI6R.js +1 -0
- package/dist/chunk-7KHDV6HL.js +1 -0
- package/dist/chunk-I7ETX4BN.js +1 -0
- package/dist/chunk-LG5WRRFQ.js +6 -0
- package/dist/chunk-MYQMH4OW.js +1 -0
- package/dist/chunk-PAUOCZCW.js +1 -0
- package/dist/chunk-QCGA72CH.js +1 -0
- package/dist/chunk-YWKRMBRS.js +13 -0
- package/dist/{ExtensiveEditor-B25Uedf2.d.ts → index-BjlX1b8G.d.ts} +37 -6
- package/dist/{index-CUB1ColU.d.ts → index-CtyjH6lX.d.ts} +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +19 -16
- package/dist/index.js +1 -1
- package/dist/presets/compose/index.d.ts +16 -0
- package/dist/presets/compose/index.js +1 -0
- package/dist/presets/extensive/index.d.ts +2 -3
- package/dist/presets/extensive/index.js +1 -1
- package/dist/presets/headless-editor/index.d.ts +13 -6
- package/dist/presets/headless-editor/index.js +1 -1
- package/dist/presets/html-editor/index.d.ts +18 -0
- package/dist/presets/html-editor/index.js +1 -0
- package/dist/presets/legacy-rich/index.d.ts +8 -0
- package/dist/presets/legacy-rich/index.js +1 -0
- package/dist/presets/md-editor/index.d.ts +19 -0
- package/dist/presets/md-editor/index.js +1 -0
- package/dist/presets/simple-editor/index.d.ts +63 -0
- package/dist/presets/simple-editor/index.js +1 -0
- package/dist/presets/slash-editor/index.d.ts +16 -0
- package/dist/presets/slash-editor/index.js +1 -0
- package/package.json +5 -4
- package/dist/chunk-DOJY2XR6.js +0 -1
- package/dist/chunk-HSXFJCQA.js +0 -1
- package/dist/chunk-MDSRHDWB.js +0 -1
- package/dist/chunk-QR6IHW2C.js +0 -1
- package/dist/chunk-RLHHVHV7.js +0 -1
- package/dist/chunk-TID3K24V.js +0 -1
- package/dist/chunk-TTLFSMFF.js +0 -1
- package/dist/chunk-U3MVQLAN.js +0 -1
- package/dist/chunk-WU54BL4Y.js +0 -3
- package/dist/chunk-YI6UVUPP.js +0 -1
- package/dist/index-BtdZVw3X.d.ts +0 -17
- package/dist/presets/chat-window/index.d.ts +0 -22
- package/dist/presets/chat-window/index.js +0 -1
- package/dist/presets/email-compose/index.d.ts +0 -17
- package/dist/presets/email-compose/index.js +0 -1
- package/dist/presets/md-text/index.d.ts +0 -15
- package/dist/presets/md-text/index.js +0 -1
- package/dist/presets/notes/index.d.ts +0 -21
- package/dist/presets/notes/index.js +0 -1
- package/dist/presets/notion-like/index.d.ts +0 -17
- package/dist/presets/notion-like/index.js +0 -1
- package/dist/presets/rich-text-box/index.d.ts +0 -17
- package/dist/presets/rich-text-box/index.js +0 -1
- package/dist/presets/simple-text/index.d.ts +0 -15
- package/dist/presets/simple-text/index.js +0 -1
package/dist/index-BtdZVw3X.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Extension, EditorConfig, LuthorTheme } from '@lyfie/luthor-headless';
|
|
2
|
-
|
|
3
|
-
interface EditorPreset {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
extensions?: Extension[];
|
|
8
|
-
config?: EditorConfig;
|
|
9
|
-
theme?: LuthorTheme;
|
|
10
|
-
toolbar?: string[];
|
|
11
|
-
components?: Record<string, unknown>;
|
|
12
|
-
css?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare const presetRegistry: Record<string, EditorPreset>;
|
|
16
|
-
|
|
17
|
-
export { type EditorPreset as E, presetRegistry as p };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@lyfie/luthor-headless';
|
|
6
|
-
|
|
7
|
-
type ChatWindowEditorSendPayload = {
|
|
8
|
-
json: string;
|
|
9
|
-
};
|
|
10
|
-
type ChatWindowEditorProps = Omit<ExtensiveEditorProps, "featureFlags" | "isToolbarEnabled"> & {
|
|
11
|
-
onSend?: (payload: ChatWindowEditorSendPayload) => void;
|
|
12
|
-
submitOnEnter?: boolean;
|
|
13
|
-
allowShiftEnter?: boolean;
|
|
14
|
-
showVoiceButton?: boolean;
|
|
15
|
-
showImageButton?: boolean;
|
|
16
|
-
showSendButton?: boolean;
|
|
17
|
-
};
|
|
18
|
-
declare function ChatWindowEditor({ className, variantClassName, onSend, submitOnEnter, allowShiftEnter, showVoiceButton, showImageButton, showSendButton, ...props }: ChatWindowEditorProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
|
|
20
|
-
declare const chatWindowPreset: EditorPreset;
|
|
21
|
-
|
|
22
|
-
export { ChatWindowEditor, type ChatWindowEditorProps, type ChatWindowEditorSendPayload, chatWindowPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as ChatWindowEditor,b as chatWindowPreset}from'../../chunk-RLHHVHV7.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@lyfie/luthor-headless';
|
|
6
|
-
|
|
7
|
-
type EmailComposeEditorProps = Omit<ExtensiveEditorProps, "featureFlags"> & {
|
|
8
|
-
showTo?: boolean;
|
|
9
|
-
showCc?: boolean;
|
|
10
|
-
showBcc?: boolean;
|
|
11
|
-
showSubject?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare function EmailComposeEditor({ className, variantClassName, showTo, showCc, showBcc, showSubject, ...props }: EmailComposeEditorProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
declare const emailComposePreset: EditorPreset;
|
|
16
|
-
|
|
17
|
-
export { EmailComposeEditor, type EmailComposeEditorProps, emailComposePreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as EmailComposeEditor,b as emailComposePreset}from'../../chunk-U3MVQLAN.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@lyfie/luthor-headless';
|
|
6
|
-
|
|
7
|
-
type MDTextEditorMode = "visual" | "markdown";
|
|
8
|
-
type MDTextEditorProps = Omit<ExtensiveEditorProps, "availableModes" | "initialMode"> & {
|
|
9
|
-
initialMode?: MDTextEditorMode;
|
|
10
|
-
};
|
|
11
|
-
declare function MDTextEditor({ className, variantClassName, initialMode, ...props }: MDTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare const mdTextPreset: EditorPreset;
|
|
14
|
-
|
|
15
|
-
export { MDTextEditor, type MDTextEditorMode, type MDTextEditorProps, mdTextPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as MDTextEditor,b as mdTextPreset}from'../../chunk-TID3K24V.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { o as ExtensiveEditorProps } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@lyfie/luthor-headless';
|
|
6
|
-
|
|
7
|
-
type NotesEditorProps = Omit<ExtensiveEditorProps, "featureFlags"> & {
|
|
8
|
-
showTitle?: boolean;
|
|
9
|
-
title?: string;
|
|
10
|
-
onTitleChange?: (value: string) => void;
|
|
11
|
-
showActions?: boolean;
|
|
12
|
-
onPin?: () => void;
|
|
13
|
-
onArchive?: () => void;
|
|
14
|
-
onColorChange?: (color: string) => void;
|
|
15
|
-
colorOptions?: readonly string[];
|
|
16
|
-
};
|
|
17
|
-
declare function NotesEditor({ className, variantClassName, showTitle, title, onTitleChange, showActions, onPin, onArchive, onColorChange, colorOptions, ...props }: NotesEditorProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare const notesPreset: EditorPreset;
|
|
20
|
-
|
|
21
|
-
export { NotesEditor, type NotesEditorProps, notesPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as NotesEditor,b as notesPreset}from'../../chunk-DOJY2XR6.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { o as ExtensiveEditorProps, w as SlashCommandVisibility, r as FeatureFlagOverrides } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@lyfie/luthor-headless';
|
|
6
|
-
|
|
7
|
-
type NotionLikeEditorProps = Omit<ExtensiveEditorProps, "featureFlags" | "isToolbarEnabled"> & {
|
|
8
|
-
slashVisibility?: SlashCommandVisibility;
|
|
9
|
-
isDraggableEnabled?: boolean;
|
|
10
|
-
featureFlags?: FeatureFlagOverrides;
|
|
11
|
-
isToolbarEnabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare function NotionLikeEditor({ className, variantClassName, slashVisibility, isDraggableEnabled, featureFlags, isToolbarEnabled, ...props }: NotionLikeEditorProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
declare const notionLikePreset: EditorPreset;
|
|
16
|
-
|
|
17
|
-
export { NotionLikeEditor, type NotionLikeEditorProps, notionLikePreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as NotionLikeEditor,b as notionLikePreset}from'../../chunk-TTLFSMFF.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { o as ExtensiveEditorProps, r as FeatureFlagOverrides, p as ExtensiveEditorRef } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import '@lyfie/luthor-headless';
|
|
5
|
-
|
|
6
|
-
type RichTextBoxEditorProps = Omit<ExtensiveEditorProps, "featureFlags"> & {
|
|
7
|
-
featureFlags?: FeatureFlagOverrides;
|
|
8
|
-
compactToolbar?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const RichTextBoxEditor: react.ForwardRefExoticComponent<Omit<ExtensiveEditorProps, "featureFlags"> & {
|
|
11
|
-
featureFlags?: FeatureFlagOverrides;
|
|
12
|
-
compactToolbar?: boolean;
|
|
13
|
-
} & react.RefAttributes<ExtensiveEditorRef>>;
|
|
14
|
-
|
|
15
|
-
declare const richTextBoxPreset: EditorPreset;
|
|
16
|
-
|
|
17
|
-
export { RichTextBoxEditor, type RichTextBoxEditorProps, richTextBoxPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as RichTextBoxEditor,b as richTextBoxPreset}from'../../chunk-HSXFJCQA.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { o as ExtensiveEditorProps, p as ExtensiveEditorRef } from '../../ExtensiveEditor-B25Uedf2.js';
|
|
3
|
-
import { E as EditorPreset } from '../../index-BtdZVw3X.js';
|
|
4
|
-
import '@lyfie/luthor-headless';
|
|
5
|
-
|
|
6
|
-
type SimpleTextEditorProps = Omit<ExtensiveEditorProps, "featureFlags" | "availableModes" | "initialMode" | "toolbarVisibility"> & {
|
|
7
|
-
hideToolbarByDefault?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const SimpleTextEditor: react.ForwardRefExoticComponent<Omit<ExtensiveEditorProps, "availableModes" | "toolbarVisibility" | "featureFlags" | "initialMode"> & {
|
|
10
|
-
hideToolbarByDefault?: boolean;
|
|
11
|
-
} & react.RefAttributes<ExtensiveEditorRef>>;
|
|
12
|
-
|
|
13
|
-
declare const simpleTextPreset: EditorPreset;
|
|
14
|
-
|
|
15
|
-
export { SimpleTextEditor, type SimpleTextEditorProps, simpleTextPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as SimpleTextEditor,b as simpleTextPreset}from'../../chunk-QR6IHW2C.js';import'../../chunk-WU54BL4Y.js';import'../../chunk-MDSRHDWB.js';
|