livechat 0.3.5 → 0.3.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/livechat/version.rb +1 -1
- data/lib/livechat/widget.js +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68b007c7a72520ae1b1732ec24961ed5ca88b166fbdc30aac082b2bf711346bd
|
|
4
|
+
data.tar.gz: 3d3dbc292f4115eb19aa22d295e5f873707db12df684de803c72dd912eeb82ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f53035e00b636c3abf5cda271f3e2468cd65c469210998c8b43c6f2a60b3598ccb59d40d8193c8321fc1c516b4cee2e2941867f8320f5ded10fc12ec8091df48
|
|
7
|
+
data.tar.gz: 4b13d777fdd2ba4d9b2277ad9af643adc57715f221d471542ff3d84278bc802fa3fb4dd182798e34129e061ba8581b3f81feb9bca679346e40c54a43fb54a77a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
- The opening greeting is now styled as a support message bubble (with a
|
|
6
|
+
generic "Support" label) instead of a muted line, so the panel reads like
|
|
7
|
+
a warmly-opened conversation. Deliberately generic — no fake individual,
|
|
8
|
+
avatar, or presence — and still client-only (never stored, never in the
|
|
9
|
+
agent inbox).
|
|
10
|
+
|
|
3
11
|
## 0.3.5
|
|
4
12
|
|
|
5
13
|
- The inbox thread now appends new messages live instead of showing a
|
data/lib/livechat/version.rb
CHANGED
data/lib/livechat/widget.js
CHANGED
|
@@ -207,8 +207,17 @@
|
|
|
207
207
|
listEl.id = "lvc-list";
|
|
208
208
|
listEl.setAttribute("role", "log");
|
|
209
209
|
listEl.setAttribute("aria-live", "polite");
|
|
210
|
+
// The opening greeting, styled as a support message so the panel reads
|
|
211
|
+
// like a conversation that's already been warmly opened. Deliberately a
|
|
212
|
+
// generic team label — never a fake individual, avatar, or presence
|
|
213
|
+
// (livechat is honest async support). It's client-only: never stored,
|
|
214
|
+
// never shown in the agent's inbox.
|
|
215
|
+
var greetingWho = document.createElement("div");
|
|
216
|
+
greetingWho.className = "lvc-who lvc-who-agent";
|
|
217
|
+
greetingWho.textContent = config.labels.team;
|
|
218
|
+
listEl.appendChild(greetingWho);
|
|
210
219
|
var greeting = document.createElement("div");
|
|
211
|
-
greeting.className = "lvc-
|
|
220
|
+
greeting.className = "lvc-msg lvc-agent";
|
|
212
221
|
greeting.textContent = config.labels.greeting;
|
|
213
222
|
listEl.appendChild(greeting);
|
|
214
223
|
panel.appendChild(listEl);
|
|
@@ -611,7 +620,6 @@
|
|
|
611
620
|
"background:var(--lvc-bg);display:flex;flex-direction:column;gap:4px}" +
|
|
612
621
|
// Class rules carry the #lvc-root prefix so they outrank the
|
|
613
622
|
// id-level `#lvc-root *` reset above.
|
|
614
|
-
"#lvc-root .lvc-greeting{color:var(--lvc-muted);font-size:13px;margin-bottom:8px}" +
|
|
615
623
|
"#lvc-root .lvc-who{font-size:11px;color:var(--lvc-muted);margin:8px 4px 2px}" +
|
|
616
624
|
"#lvc-root .lvc-who-visitor{text-align:right}" +
|
|
617
625
|
"#lvc-root[dir=rtl] .lvc-who-visitor{text-align:left}" +
|