mehdi-akbari-ai-assistant-free 0.9.3 → 0.9.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/dist/react.js CHANGED
@@ -144,7 +144,7 @@ var ChatWindow = ({
144
144
  }) => {
145
145
  const [messages, setMessages] = (0, import_react3.useState)([]);
146
146
  const [isLoading, setIsLoading] = (0, import_react3.useState)(false);
147
- const version = "0.9.3";
147
+ const version = "0.9.4";
148
148
  (0, import_react3.useEffect)(() => {
149
149
  if (welcomeMessage && messages.length === 0) {
150
150
  setMessages([{ role: "assistant", content: welcomeMessage }]);
package/dist/react.mjs CHANGED
@@ -108,7 +108,7 @@ var ChatWindow = ({
108
108
  }) => {
109
109
  const [messages, setMessages] = useState2([]);
110
110
  const [isLoading, setIsLoading] = useState2(false);
111
- const version = "0.9.3";
111
+ const version = "0.9.4";
112
112
  useEffect3(() => {
113
113
  if (welcomeMessage && messages.length === 0) {
114
114
  setMessages([{ role: "assistant", content: welcomeMessage }]);
package/dist/styles.css CHANGED
@@ -21,9 +21,10 @@
21
21
 
22
22
  .mra-container--fullscreen .mra-chat-window-container {
23
23
  position: static;
24
- /* (اصلاح کلیدی) عرض و ارتفاع را 100% می‌کنیم تا کل فضا را پر کند */
25
24
  width: 100%;
26
25
  height: 100%;
26
+ /* (اصلاح نهایی) حذف محدودیت عرض در حالت تمام‌صفحه */
27
+ max-width: none;
27
28
  }
28
29
 
29
30
  .mra-container--fullscreen .mra-chat-window {
@@ -65,9 +66,8 @@
65
66
  transform: translateY(20px);
66
67
  transition: opacity 0.3s ease, transform 0.3s ease;
67
68
  pointer-events: none;
68
- /* (اصلاح کلیدی) عرض را به این کانتینر منتقل می‌کنیم */
69
- width: 32rem; /* معادل max-w-lg */
70
- max-width: calc(100vw - 4rem); /* جلوگیری از سرریز شدن در صفحات کوچک */
69
+ width: 32rem;
70
+ max-width: calc(100vw - 4rem);
71
71
  }
72
72
 
73
73
  .mra-chat-window-container--open {
@@ -83,7 +83,6 @@
83
83
  flex-direction: column;
84
84
  height: 500px;
85
85
  width: 100%;
86
- /* (اصلاح کلیدی) max-width را از اینجا حذف می‌کنیم چون توسط والد کنترل می‌شود */
87
86
  border-radius: 0.75rem;
88
87
  border: 1px solid var(--ai-border, #e5e7eb);
89
88
  background-color: var(--ai-bg, #ffffff);
@@ -97,6 +96,7 @@
97
96
  transition: all 0.3s ease-in-out;
98
97
  }
99
98
 
99
+ /* ... بقیه کد بدون تغییر باقی می‌ماند ... */
100
100
  .mra-header {
101
101
  display: flex;
102
102
  align-items: center;
@@ -133,7 +133,6 @@
133
133
  color: #1f2937;
134
134
  }
135
135
 
136
- /* === MessageList Styles === */
137
136
  .mra-message-list {
138
137
  flex: 1 1 0%;
139
138
  overflow-y: auto;
@@ -180,7 +179,6 @@
180
179
  }
181
180
  }
182
181
 
183
- /* === MessageBubble Styles === */
184
182
  .mra-bubble-wrapper {
185
183
  display: flex;
186
184
  width: 100%;
@@ -210,7 +208,6 @@
210
208
  border-bottom-left-radius: 0.125rem;
211
209
  }
212
210
 
213
- /* === ChatInput Styles === */
214
211
  .mra-input-wrapper {
215
212
  display: flex;
216
213
  gap: 0.5rem;
@@ -265,7 +262,6 @@
265
262
  cursor: not-allowed;
266
263
  }
267
264
 
268
- /* === Footer Styles === */
269
265
  .mra-footer {
270
266
  padding: 0.5rem 0.75rem;
271
267
  border-top: 1px solid var(--ai-border, #e5e7eb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mehdi-akbari-ai-assistant-free",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Professional AI Chatbot Library with self-contained CSS styles",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",