@welshman/editor 0.0.8 → 0.0.10
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import tippy from "tippy.js";
|
|
2
2
|
import { nprofileEncode } from "nostr-tools/nip19";
|
|
3
|
+
import { makeNProfileAttrs } from 'nostr-editor';
|
|
3
4
|
import { PluginKey } from "@tiptap/pm/state";
|
|
4
5
|
import Suggestion from "@tiptap/suggestion";
|
|
5
6
|
import Suggestions from "../components/Suggestions.svelte";
|
|
@@ -91,8 +92,8 @@ export const MentionSuggestion = (options) => TippySuggestion({
|
|
|
91
92
|
name: "nprofile",
|
|
92
93
|
select: (pubkey, props) => {
|
|
93
94
|
const relays = options.getRelays(pubkey);
|
|
94
|
-
const
|
|
95
|
-
return props.command(
|
|
95
|
+
const bech32 = nprofileEncode({ pubkey, relays });
|
|
96
|
+
return props.command(makeNProfileAttrs(bech32, {}));
|
|
96
97
|
},
|
|
97
98
|
...options,
|
|
98
99
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@welshman/editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"pub": "npm run check && npm run build && npm publish",
|
|
6
6
|
"fix": "",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tiptap/suggestion": "^2.9.1",
|
|
45
45
|
"@welshman/lib": "~0.0.36",
|
|
46
46
|
"@welshman/util": "~0.0.53",
|
|
47
|
-
"nostr-editor": "^0.0.4-pre.
|
|
47
|
+
"nostr-editor": "^0.0.4-pre.7",
|
|
48
48
|
"nostr-tools": "^2.8.1",
|
|
49
49
|
"svelte": "^4.0.0",
|
|
50
50
|
"svelte-tiptap": "^1.0.0"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@tiptap/pm": "^2.9.1",
|
|
68
68
|
"@welshman/lib": "~0.0.36",
|
|
69
69
|
"@welshman/util": "~0.0.53",
|
|
70
|
-
"nostr-editor": "^0.0.4-pre.
|
|
70
|
+
"nostr-editor": "^0.0.4-pre.7",
|
|
71
71
|
"nostr-tools": "^2.10.4",
|
|
72
72
|
"publint": "^0.2.0",
|
|
73
73
|
"svelte": "^4.0.0",
|