@meowdown/react 0.65.3 → 0.65.4
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 +4 -4
- package/dist/index.js +7 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -508,7 +508,7 @@ interface EditorProps {
|
|
|
508
508
|
*
|
|
509
509
|
* Callbacks and resolvers should be stable; pass them via `useCallback`.
|
|
510
510
|
*/
|
|
511
|
-
declare function MeowdownEditor({ mode, initialMarkdown, onDocChange, onSlashMenuSearch, onTagSearch, onWikilinkSearch, onSelectionMenuSearch, selectionMenuAffordance, pendingReplacementActions, onPendingReplacementResolve, onWikilinkClick, onLinkClick, onLinkCopy, onTagClick, onExitBoundary, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveFileInfo, onFileClick, onFilePaste, onFileSaveError, onImageClick, embedPaste, linkPaste, bulletAfterHeading, substitution, frontmatter, blockHandle, caretGlide, placeholder, readOnly, spellCheck, searchQuery, onSearchChange, timeFormat, editorClassName, wrapperClassName, handleRef, children }: EditorProps): ReactElement;
|
|
511
|
+
export declare function MeowdownEditor({ mode, initialMarkdown, onDocChange, onSlashMenuSearch, onTagSearch, onWikilinkSearch, onSelectionMenuSearch, selectionMenuAffordance, pendingReplacementActions, onPendingReplacementResolve, onWikilinkClick, onLinkClick, onLinkCopy, onTagClick, onExitBoundary, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveFileInfo, onFileClick, onFilePaste, onFileSaveError, onImageClick, embedPaste, linkPaste, bulletAfterHeading, substitution, frontmatter, blockHandle, caretGlide, placeholder, readOnly, spellCheck, searchQuery, onSearchChange, timeFormat, editorClassName, wrapperClassName, handleRef, children }: EditorProps): ReactElement;
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/components/markdown-view.d.ts
|
|
514
514
|
/**
|
|
@@ -628,7 +628,7 @@ interface MarkdownViewProps {
|
|
|
628
628
|
* Callbacks (`onWikilinkClick`, etc.) and resolvers should be stable; pass them via
|
|
629
629
|
* `useCallback` to avoid re-rendering the whole tree.
|
|
630
630
|
*/
|
|
631
|
-
declare function MarkdownView({ markdown, markMode, frontmatter, interactive, expandCollapsed, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveFileInfo, onWikilinkClick, onLinkClick, onImageClick, onFileClick, onTaskClick, className }: MarkdownViewProps): ReactElement;
|
|
631
|
+
export declare function MarkdownView({ markdown, markMode, frontmatter, interactive, expandCollapsed, resolveImageUrl, resolveFileLink, resolveWikiEmbed, resolveFileInfo, onWikilinkClick, onLinkClick, onImageClick, onFileClick, onTaskClick, className }: MarkdownViewProps): ReactElement;
|
|
632
632
|
//#endregion
|
|
633
633
|
//#region src/components/wikilink-hover-card.d.ts
|
|
634
634
|
/**
|
|
@@ -652,6 +652,6 @@ interface WikilinkHoverCardProps {
|
|
|
652
652
|
/**
|
|
653
653
|
* Show host-rendered content after a 300ms dwell over a rendered wiki link.
|
|
654
654
|
*/
|
|
655
|
-
declare function WikilinkHoverCard({ children, className }: WikilinkHoverCardProps): ReactNode;
|
|
655
|
+
export declare function WikilinkHoverCard({ children, className }: WikilinkHoverCardProps): ReactNode;
|
|
656
656
|
//#endregion
|
|
657
|
-
export { type EditorHandle, type EditorMode, type EditorProps, type EditorStateSnapshot,
|
|
657
|
+
export { type EditorHandle, type EditorMode, type EditorProps, type EditorStateSnapshot, type MarkdownViewProps, type PendingReplacementResolveHandler, 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, useEditor, useExtension, useKeymap };
|
package/dist/index.js
CHANGED
|
@@ -726,12 +726,13 @@ function LinkMenu({ onLinkClick, onLinkCopy }) {
|
|
|
726
726
|
children: /* @__PURE__ */ jsx(LinkEditContent, {
|
|
727
727
|
link: edit.link,
|
|
728
728
|
onSubmit: (href, title) => {
|
|
729
|
-
if (edit.link)
|
|
730
|
-
href
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
729
|
+
if (edit.link) {
|
|
730
|
+
if (href.trim()) editor.commands.updateLink({
|
|
731
|
+
href,
|
|
732
|
+
title
|
|
733
|
+
});
|
|
734
|
+
else editor.commands.removeLink();
|
|
735
|
+
} else if (href.trim()) editor.commands.insertLink({
|
|
735
736
|
href,
|
|
736
737
|
title
|
|
737
738
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.65.
|
|
4
|
+
"version": "0.65.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"github-slugger": "^2.0.0",
|
|
32
32
|
"lucide-react": "^1.28.0",
|
|
33
33
|
"react-property": "^2.0.2",
|
|
34
|
-
"@meowdown/core": "0.65.
|
|
34
|
+
"@meowdown/core": "0.65.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^19.0.0",
|