hive-react-kit 1.8.6 → 1.8.8
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/components/feed/AttachmentStrip.d.ts +7 -0
- package/dist/index.cjs.js +166 -166
- package/dist/index.esm.js +14384 -14230
- package/dist/utils/hiveLinks.d.ts +8 -0
- package/package.json +1 -1
|
@@ -51,3 +51,11 @@ export declare function parseHiveFrontendUrl(href: string): HiveLinkTarget | nul
|
|
|
51
51
|
* start of the body or preceded by a non-identifier char.
|
|
52
52
|
*/
|
|
53
53
|
export declare function preLinkMentions(body: string, usertagUrlFn?: (username: string) => string): string;
|
|
54
|
+
/**
|
|
55
|
+
* Pre-convert bare URLs in a markdown body into explicit markdown auto-links `<url>`
|
|
56
|
+
* so `@hiveio/content-renderer` doesn't shuffle them to the end of the text node.
|
|
57
|
+
*
|
|
58
|
+
* Works similarly to `preLinkMentions`, by preventing `HtmlDOMParser` from
|
|
59
|
+
* extracting text-node URLs and appending them.
|
|
60
|
+
*/
|
|
61
|
+
export declare function preLinkUrls(body: string): string;
|