impact-chatbot 2.3.22 → 2.3.24
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.esm.js
CHANGED
|
@@ -985,6 +985,10 @@ const getFormattedApplicationName = (applicationURL) => {
|
|
|
985
985
|
return "PriceSmart Promo";
|
|
986
986
|
case "agentic-assort":
|
|
987
987
|
return "AssortSmart";
|
|
988
|
+
case "source-smart":
|
|
989
|
+
return "SourceSmart"
|
|
990
|
+
case "size-smart":
|
|
991
|
+
return "SizeSmart"
|
|
988
992
|
default:
|
|
989
993
|
return "workflow input center";
|
|
990
994
|
}
|
|
@@ -1010,9 +1014,9 @@ const preprocessMarkdown = (content) => {
|
|
|
1010
1014
|
.replace(/<br\s*\/?>/g, '\n') // <br> to newline
|
|
1011
1015
|
// Ensure proper line breaks before numbered lists (at line start)
|
|
1012
1016
|
.replace(/(^|\n)(\d+\.\s+)/g, '$1\n$2')
|
|
1013
|
-
// Ensure proper line breaks before bullet
|
|
1014
|
-
// Only
|
|
1015
|
-
.replace(/(^|\n)([-•]\s+)/g, '$1\n$
|
|
1017
|
+
// Ensure proper line breaks before the first bullet point in a list (-, •) but NOT * (to preserve **bold**)
|
|
1018
|
+
// Only add a blank line before a bullet that follows a non-list line (paragraph → list transition)
|
|
1019
|
+
.replace(/(^|\n)([^\n-•]*[a-zA-Z0-9][^\n]*)\n([-•]\s+)/g, '$1$2\n\n$3')
|
|
1016
1020
|
// Handle list items with - or • appearing directly after text without newline
|
|
1017
1021
|
.replace(/([^\n])([-•])\s+/g, '$1\n\n$2 ')
|
|
1018
1022
|
// Handle nested list items with proper indentation
|