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.
|
@@ -3,6 +3,6 @@ export function getCurrentUserId(): any;
|
|
|
3
3
|
export function getUserName(): any;
|
|
4
4
|
export function fetchApplicationCode(): string;
|
|
5
5
|
export function fetchBaseUrl(): string;
|
|
6
|
-
export function getFormattedApplicationName(applicationURL: any): "application access management" | "AssortSmart" | "module configurator" | "InventorySmart" | "ADA" | "PlanSmart" | "ADAConfigurator" | "ItemSmart" | "ItemSmart-New" | "SourceSmart" | "PriceSmart Markdown" | "PriceSmart Promo" | "workflow input center";
|
|
6
|
+
export function getFormattedApplicationName(applicationURL: any): "application access management" | "AssortSmart" | "module configurator" | "InventorySmart" | "ADA" | "PlanSmart" | "ADAConfigurator" | "ItemSmart" | "ItemSmart-New" | "SourceSmart" | "PriceSmart Markdown" | "PriceSmart Promo" | "SizeSmart" | "workflow input center";
|
|
7
7
|
export function fetchLegacyAgentScreen(): any;
|
|
8
8
|
export function replaceSpecialCharacter(str: any): any;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1007,6 +1007,10 @@ const getFormattedApplicationName = (applicationURL) => {
|
|
|
1007
1007
|
return "PriceSmart Promo";
|
|
1008
1008
|
case "agentic-assort":
|
|
1009
1009
|
return "AssortSmart";
|
|
1010
|
+
case "source-smart":
|
|
1011
|
+
return "SourceSmart"
|
|
1012
|
+
case "size-smart":
|
|
1013
|
+
return "SizeSmart"
|
|
1010
1014
|
default:
|
|
1011
1015
|
return "workflow input center";
|
|
1012
1016
|
}
|
|
@@ -1032,9 +1036,9 @@ const preprocessMarkdown = (content) => {
|
|
|
1032
1036
|
.replace(/<br\s*\/?>/g, '\n') // <br> to newline
|
|
1033
1037
|
// Ensure proper line breaks before numbered lists (at line start)
|
|
1034
1038
|
.replace(/(^|\n)(\d+\.\s+)/g, '$1\n$2')
|
|
1035
|
-
// Ensure proper line breaks before bullet
|
|
1036
|
-
// Only
|
|
1037
|
-
.replace(/(^|\n)([-•]\s+)/g, '$1\n$
|
|
1039
|
+
// Ensure proper line breaks before the first bullet point in a list (-, •) but NOT * (to preserve **bold**)
|
|
1040
|
+
// Only add a blank line before a bullet that follows a non-list line (paragraph → list transition)
|
|
1041
|
+
.replace(/(^|\n)([^\n-•]*[a-zA-Z0-9][^\n]*)\n([-•]\s+)/g, '$1$2\n\n$3')
|
|
1038
1042
|
// Handle list items with - or • appearing directly after text without newline
|
|
1039
1043
|
.replace(/([^\n])([-•])\s+/g, '$1\n\n$2 ')
|
|
1040
1044
|
// Handle nested list items with proper indentation
|