impact-chatbot 2.3.23 → 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 points (-, •) but NOT * (to preserve **bold**)
1014
- // Only match - or at start of line or after newline, followed by space
1015
- .replace(/(^|\n)([-•]\s+)/g, '$1\n$2')
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
@@ -6097,7 +6101,7 @@ const StreamedContent = ({ botData }) => {
6097
6101
  // }
6098
6102
  let endPoint = botData?.utilityObject?.endpoint
6099
6103
  ? `${BASE_API}${botData?.utilityObject?.endpoint}`
6100
- : `${BASE_API}/core/chatbot/navigation-v3`;
6104
+ : `${BASE_API}/core/chatbot/navigation-v2`;
6101
6105
  let method = botData?.utilityObject?.method
6102
6106
  ? botData?.utilityObject?.method
6103
6107
  : "PUT";