@salesforcedevs/docs-components 0.0.22-chat → 0.0.24-chat

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": "@salesforcedevs/docs-components",
3
- "version": "0.0.22-chat",
3
+ "version": "0.0.24-chat",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,10 +1,10 @@
1
1
  # Sliding Chat Component (doc-chat)
2
2
 
3
- A self-contained sliding sidebar chat component with a floating trigger button that appears from the right side of the screen, perfect for customer support, documentation help, or any conversational interface.
3
+ A self-contained sliding chat component with a floating trigger button that can be embedded in any layout, perfect for customer support, documentation help, or any conversational interface.
4
4
 
5
5
  ## Features
6
6
 
7
- - 🎯 **Sliding Sidebar**: Slides in from the right side of the screen
7
+ - 🎯 **Sliding Component**: Slides in/out with smooth animations
8
8
  - 🔘 **Floating Trigger**: Built-in floating button to open chat (bottom-right corner)
9
9
  - 💬 **Real-time Chat**: Interactive messaging with typing indicators
10
10
  - 🎨 **Modern Design**: Clean, responsive interface with subtle animations
@@ -27,7 +27,7 @@ The component is completely self-contained with a built-in floating trigger butt
27
27
  ></doc-chat>
28
28
  ```
29
29
 
30
- That's it! The component will automatically show a floating chat button in the bottom-right corner when closed, and a sliding sidebar when opened.
30
+ That's it! The component will automatically show a floating chat button in the bottom-right corner when closed, and slide in the chat interface when opened.
31
31
 
32
32
  ## Properties
33
33
 
@@ -121,9 +121,9 @@ doc-chat {
121
121
 
122
122
  ## Responsive Behavior
123
123
 
124
- - **Desktop**: Fixed width sidebar (400px)
125
- - **Tablet**: Full width sidebar
126
- - **Mobile**: Full viewport width
124
+ - **Desktop**: Fixed width component (400px)
125
+ - **Tablet**: Full width component
126
+ - **Mobile**: Full width component
127
127
 
128
128
  ## Accessibility
129
129
 
@@ -58,16 +58,12 @@
58
58
 
59
59
  /* Chat container */
60
60
  .chat-container {
61
- position: fixed;
62
- top: 0;
63
- right: 0;
64
- height: 100vh;
61
+ height: 100%;
65
62
  width: 400px;
66
63
  background-color: #ffffff;
67
64
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
68
65
  transform: translateX(100%);
69
66
  transition: transform 0.3s ease-in-out;
70
- z-index: 1000;
71
67
  display: flex;
72
68
  flex-direction: column;
73
69
  border-left: 1px solid #e0e0e0;
@@ -347,7 +343,7 @@
347
343
  }
348
344
 
349
345
  .chat-container {
350
- width: 100vw;
346
+ width: 100%;
351
347
  }
352
348
 
353
349
  .chat-header {
@@ -59,12 +59,12 @@
59
59
  value={tocValue}
60
60
  ></dx-toc>
61
61
  </div>
62
- <doc-chat
62
+ </div>
63
+ <doc-chat
63
64
  title="Smart Agent"
64
65
  placeholder="Type your message..."
65
66
  assistant-name="Assistant"
66
- ></doc-chat>
67
- </div>
67
+ ></doc-chat>
68
68
  <div lwc:if={showFooter} class="footer-container">
69
69
  <dx-footer variant="no-signup"></dx-footer>
70
70
  </div>