@snf/qa-bot-core 0.2.11-rc.3 → 0.2.11
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/README.md +43 -1
- package/build/static/js/main.js +1 -1
- package/build/static/js/main.js.map +1 -1
- package/dist/qa-bot-core.js +2 -2
- package/dist/qa-bot-core.js.map +1 -1
- package/dist/qa-bot-core.standalone.js +3 -3
- package/dist/qa-bot-core.standalone.js.map +1 -1
- package/dist/qa-bot-core.umd.cjs +1 -1
- package/dist/qa-bot-core.umd.cjs.map +1 -1
- package/dist/types/utils/fix-markdown-links.d.ts +9 -3
- package/dist/types/utils/logger.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,19 @@
|
|
|
8
8
|
* none worked without breaking message bubble styling. This DOM post-processing approach
|
|
9
9
|
* is a pragmatic solution that:
|
|
10
10
|
* - Preserves all message styling (bubbles render correctly first)
|
|
11
|
-
* -
|
|
11
|
+
* - Finds raw markdown link patterns [text](url) in rendered text
|
|
12
|
+
* - Finds escaped HTML anchor tags that got text-escaped
|
|
12
13
|
* - Replaces them with actual <a> elements
|
|
13
14
|
*
|
|
14
15
|
* Only used after history restoration, not during normal chat flow.
|
|
15
16
|
*/
|
|
16
17
|
/**
|
|
17
|
-
* Fixes
|
|
18
|
-
* Call this after replaceMessages() to convert
|
|
18
|
+
* Fixes links in chat messages after they've been rendered.
|
|
19
|
+
* Call this after replaceMessages() to convert link patterns to clickable links.
|
|
20
|
+
*
|
|
21
|
+
* Handles:
|
|
22
|
+
* - Markdown links: [text](url)
|
|
23
|
+
* - Escaped HTML anchors: <a href="url"...>text</a>
|
|
24
|
+
* - Plain text HTML anchors: <a href="url"...>text</a> (displayed as text)
|
|
19
25
|
*/
|
|
20
26
|
export declare const fixMarkdownLinksInDom: () => void;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Usage for consumers:
|
|
8
8
|
* localStorage.setItem('QA_BOT_DEBUG', 'true'); // Enable debug logs + version
|
|
9
9
|
*/
|
|
10
|
-
export declare const LIB_VERSION = "0.2.11
|
|
10
|
+
export declare const LIB_VERSION = "0.2.11";
|
|
11
11
|
export declare const logger: {
|
|
12
12
|
version: () => void;
|
|
13
13
|
session: (action: string, ...args: unknown[]) => void;
|
package/package.json
CHANGED