@smart-cloud/ai-kit-ui 1.1.3 → 1.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -1033,7 +1033,10 @@ const AiChatbotBase: FC<AiChatbotProps & AiKitShellInjectedProps> = (props) => {
1033
1033
  }
1034
1034
  }, [messages, lastUserSentAt, historyStorage]);
1035
1035
 
1036
- if (previewMode && !showChatbotPreview) {
1036
+ if (
1037
+ (previewMode && !showChatbotPreview) ||
1038
+ (!previewMode && showChatbotPreview)
1039
+ ) {
1037
1040
  return null;
1038
1041
  }
1039
1042
 
@@ -68,9 +68,12 @@
68
68
  --ai-kit-color-success: #22c55e;
69
69
 
70
70
  /* Brand / primary */
71
- --ai-kit-color-primary: #228be6;
72
- --ai-kit-color-primary-hover: #1971c2;
73
- --ai-kit-color-primary-contrast: #fff;
71
+ --ai-kit-color-primary: var(--mantine-primary-color-filled, #1c7ed6);
72
+ --ai-kit-color-primary-hover: var(
73
+ --mantine-primary-color-filled-hover,
74
+ #1971c2
75
+ );
76
+ --ai-kit-color-primary-contrast: var(--mantine-primary-color-contrast, #fff);
74
77
 
75
78
  /* Back-compat aliases (existing names) */
76
79
  --ai-kit-text-color: var(--ai-kit-color-text);