@type32/codemirror-rich-obsidian-editor 0.1.3 → 0.1.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/module.json
CHANGED
|
@@ -25,7 +25,7 @@ function buildInternalLinkDecorations(state) {
|
|
|
25
25
|
props.display = state.doc.sliceString(displayNode.from, displayNode.to);
|
|
26
26
|
}
|
|
27
27
|
widgets.push(Decoration.widget({
|
|
28
|
-
widget: new ProseVueComponentEmbedWidget(linkInfo.embedComponent, props, node.from),
|
|
28
|
+
widget: new ProseVueComponentEmbedWidget(linkInfo.embedComponent, linkInfo?.componentProps || props, node.from),
|
|
29
29
|
block: true,
|
|
30
30
|
side: 1
|
|
31
31
|
}).range(line.to));
|
|
@@ -30,6 +30,10 @@ export interface InternalLink {
|
|
|
30
30
|
* If not provided, embeds of this link will be rendered as standard links.
|
|
31
31
|
*/
|
|
32
32
|
embedComponent?: Component;
|
|
33
|
+
/**
|
|
34
|
+
* An optional parameter to pass alongside into the component as the prop.
|
|
35
|
+
*/
|
|
36
|
+
componentProps?: Record<string, any>
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export interface InternalLinkNode {
|
|
@@ -108,4 +112,4 @@ export interface SearchMatch {
|
|
|
108
112
|
export interface SearchOptions {
|
|
109
113
|
query: string;
|
|
110
114
|
caseSensitive?: boolean;
|
|
111
|
-
}
|
|
115
|
+
}
|