@salesforcedevs/docs-components 0.0.21-chat → 0.0.23-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,10 +1,10 @@
|
|
|
1
1
|
# Sliding Chat Component (doc-chat)
|
|
2
2
|
|
|
3
|
-
A self-contained sliding
|
|
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
|
|
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
|
|
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
|
|
125
|
-
- **Tablet**: Full width
|
|
126
|
-
- **Mobile**: Full
|
|
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
|
-
|
|
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:
|
|
346
|
+
width: 100%;
|
|
351
347
|
}
|
|
352
348
|
|
|
353
349
|
.chat-header {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<svg class="chat-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
10
10
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
|
|
11
11
|
</svg>
|
|
12
|
-
<span class="chat-trigger-text">Chat</span>
|
|
12
|
+
<!-- <span class="chat-trigger-text">Chat</span> -->
|
|
13
13
|
</button>
|
|
14
14
|
</template>
|
|
15
15
|
|