@meowdown/react 0.82.0 → 0.82.2
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.d.ts +0 -22
- package/dist/index.js +4804 -1980
- package/dist/style.css +9 -0
- package/package.json +13 -11
package/dist/index.d.ts
CHANGED
|
@@ -3,17 +3,12 @@ import { AcceptPendingReplacementOptions, EditorConfig, ExitBoundaryHandler, Fil
|
|
|
3
3
|
import { SelectionJSON, SelectionJSON as SelectionJSON$1 } from "@prosekit/core";
|
|
4
4
|
import { ReactNodeViewComponent, ReactNodeViewComponent as ReactNodeViewComponent$1, useEditor, useExtension, useKeymap } from "@prosekit/react";
|
|
5
5
|
import { Popover } from "@base-ui/react/popover";
|
|
6
|
-
//#region src/components/collision-boundary.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* The area the editor's floating menus and popovers stay inside. Same as the
|
|
9
8
|
* `collisionBoundary` prop of Base UI positioners.
|
|
10
9
|
*/
|
|
11
10
|
type CollisionBoundary = NonNullable<Popover.Positioner.Props['collisionBoundary']>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/utils/date-format.d.ts
|
|
14
11
|
type TimeFormat = '12' | '24';
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/components/types.d.ts
|
|
17
12
|
/**
|
|
18
13
|
* A selection to restore: an exact JSON selection, or a document edge.
|
|
19
14
|
*/
|
|
@@ -270,8 +265,6 @@ type SelectionMenuSearchHandler = (query: string, context: SelectionMenuContext)
|
|
|
270
265
|
* Reports how a pending replacement ended and its final staged value.
|
|
271
266
|
*/
|
|
272
267
|
type PendingReplacementResolveHandler = (outcome: PendingReplacementOutcome, pending: PendingReplacement) => void;
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region src/components/editor.d.ts
|
|
275
268
|
type EditorMode = MarkMode;
|
|
276
269
|
interface EditorProps {
|
|
277
270
|
/**
|
|
@@ -641,8 +634,6 @@ interface EditorProps {
|
|
|
641
634
|
* Callbacks and resolvers should be stable; pass them via `useCallback`.
|
|
642
635
|
*/
|
|
643
636
|
export declare function MarkdownEditor({ mode, initialMarkdown, singleParagraph, referenceDefinitions, onDocChange, onSlashMenuSearch, onTagSearch, onWikilinkSearch, onSelectionMenuSearch, selectionMenuAffordance, collisionBoundary, pendingReplacementActions, onPendingReplacementResolve, onWikilinkClick, onLinkClick, onLinkCopy, resolveLinkPreview, onTagClick, onExitBoundary, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveWikilink, resolveFileInfo, resolveXPost, mediaUrlProtocols, resolveYouTubeVideo, onFileClick, onFilePaste, onFileSaveError, onImageClick, onXPostMediaClick, onYouTubeVideoClick, embedPaste, linkPaste, bulletAfterHeading, backspaceDeletesEmptyFirstBlock, substitution, frontmatter, blockHandle, caretGlide, placeholder, readOnly, spellCheck, writingSuggestions, autoCorrect, autoCapitalize, enterKeyHint, dir, lang, ariaLabel, searchQuery, onSearchChange, timeFormat, editorClassName, wrapperClassName, CodeBlockView, handleRef, children }: EditorProps): ReactElement;
|
|
644
|
-
//#endregion
|
|
645
|
-
//#region src/components/markdown-view.d.ts
|
|
646
637
|
/**
|
|
647
638
|
* Payload for {@link TaskClickHandler}.
|
|
648
639
|
*/
|
|
@@ -801,8 +792,6 @@ interface MarkdownViewProps {
|
|
|
801
792
|
* `useCallback` to avoid re-rendering the whole tree.
|
|
802
793
|
*/
|
|
803
794
|
export declare function MarkdownView({ markdown, singleParagraph, referenceDefinitions: suppliedDefinitions, markMode, frontmatter, interactive, expandCollapsed, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveWikilink, resolveFileInfo, resolveXPost, mediaUrlProtocols, resolveYouTubeVideo, onWikilinkClick, onLinkClick, onImageClick, onXPostMediaClick, onYouTubeVideoClick, onFileClick, onTaskClick, className }: MarkdownViewProps): ReactElement;
|
|
804
|
-
//#endregion
|
|
805
|
-
//#region src/hooks/use-lightbox.d.ts
|
|
806
795
|
/**
|
|
807
796
|
* Something a lightbox can show.
|
|
808
797
|
*/
|
|
@@ -902,8 +891,6 @@ interface LightboxController {
|
|
|
902
891
|
* lightbox, and loses it while the lightbox is mounted.
|
|
903
892
|
*/
|
|
904
893
|
export declare function useLightbox(): LightboxController;
|
|
905
|
-
//#endregion
|
|
906
|
-
//#region src/components/lightbox-frame.d.ts
|
|
907
894
|
/**
|
|
908
895
|
* Props for {@link LightboxFrame}. Other props land on the `<iframe>`.
|
|
909
896
|
*/
|
|
@@ -915,8 +902,6 @@ interface LightboxFrameProps extends Omit<ComponentProps<'iframe'>, 'src' | 'tit
|
|
|
915
902
|
* the item's aspect ratio that fits.
|
|
916
903
|
*/
|
|
917
904
|
export declare function LightboxFrame({ item, className, style, ...props }: LightboxFrameProps): ReactNode;
|
|
918
|
-
//#endregion
|
|
919
|
-
//#region src/components/lightbox-image.d.ts
|
|
920
905
|
/**
|
|
921
906
|
* Props for {@link LightboxImage}. Other props land on the `<img>`.
|
|
922
907
|
*/
|
|
@@ -927,8 +912,6 @@ interface LightboxImageProps extends Omit<ComponentProps<'img'>, 'src' | 'alt'>
|
|
|
927
912
|
* The image of a lightbox. It is the element the opened thumbnail zooms into.
|
|
928
913
|
*/
|
|
929
914
|
export declare function LightboxImage({ item, className, style, ...props }: LightboxImageProps): ReactNode;
|
|
930
|
-
//#endregion
|
|
931
|
-
//#region src/components/lightbox-root.d.ts
|
|
932
915
|
/**
|
|
933
916
|
* Props for {@link LightboxRoot}. Other props land on the `<dialog>`.
|
|
934
917
|
*/
|
|
@@ -948,8 +931,6 @@ interface LightboxRootProps extends Omit<ComponentProps<'dialog'>, 'children' |
|
|
|
948
931
|
* is open, and `Escape` closes it.
|
|
949
932
|
*/
|
|
950
933
|
export declare function LightboxRoot({ lightbox, children, className, ...props }: LightboxRootProps): ReactNode;
|
|
951
|
-
//#endregion
|
|
952
|
-
//#region src/components/lightbox-video.d.ts
|
|
953
934
|
/**
|
|
954
935
|
* Props for {@link LightboxVideo}. Other props land on the `<video>`.
|
|
955
936
|
*/
|
|
@@ -961,8 +942,6 @@ interface LightboxVideoProps extends Omit<ComponentProps<'video'>, 'src' | 'post
|
|
|
961
942
|
* that opened the lightbox is the user gesture that allows sound.
|
|
962
943
|
*/
|
|
963
944
|
export declare function LightboxVideo({ item, className, style, ...props }: LightboxVideoProps): ReactNode;
|
|
964
|
-
//#endregion
|
|
965
|
-
//#region src/components/wikilink-hover-card.d.ts
|
|
966
945
|
/**
|
|
967
946
|
* Props for {@link WikilinkHoverCard}.
|
|
968
947
|
*/
|
|
@@ -986,5 +965,4 @@ interface WikilinkHoverCardProps {
|
|
|
986
965
|
* open and close delays live in the core hover handler.
|
|
987
966
|
*/
|
|
988
967
|
export declare function WikilinkHoverCard({ children, className }: WikilinkHoverCardProps): ReactNode;
|
|
989
|
-
//#endregion
|
|
990
968
|
export { type CollisionBoundary, type EditorHandle, type EditorMode, type EditorProps, type EditorStateSnapshot, type LightboxCloseOptions, type LightboxController, type LightboxFrameItem, type LightboxFrameProps, type LightboxImageItem, type LightboxImageProps, type LightboxItem, type LightboxRootProps, type LightboxVideoItem, type LightboxVideoProps, type LinkPreview, type LinkPreviewResolver, type MarkdownViewProps, type PendingReplacementResolveHandler, type ReactNodeViewComponent, type SelectionHint, type SelectionJSON, type SelectionMenuContext, type SelectionMenuItem, type SelectionMenuSearchHandler, type SlashMenuItem, type SlashMenuSearchHandler, type TagItem, type TagSearchHandler, type TaskClickHandler, type TaskClickPayload, type TimeFormat, type WikilinkHoverCardProps, type WikilinkItem, type WikilinkSearchHandler, type XPostResolver, type YouTubeVideoResolver, useEditor, useExtension, useKeymap };
|