@pmeweb/plugin-chat 1.2.0 → 1.2.1
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/README.md +3 -3
- package/package.json +1 -1
- package/src/chat.css +6 -11
- package/src/worker.js +1 -1
package/README.md
CHANGED
|
@@ -44,9 +44,9 @@ Install it with the `install-plugin` skill (`INSTALL.md`).
|
|
|
44
44
|
(under 640 px) it fades out by itself 8 s after it appears. The same line greets the visitor in
|
|
45
45
|
the panel. The « once per visit » is a `pmw-chat-opener` flag in `sessionStorage` (a UI flag, no
|
|
46
46
|
personal information; storage blocked: once per page).
|
|
47
|
-
- **On a phone** (under 640 px, where the panel goes full screen) the bubble is a
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
- **On a phone** (under 640 px, where the panel goes full screen) the bubble is a smaller pill
|
|
48
|
+
(48 px, a 40 px face, 14 px text). « Assistant virtuel » stays VISIBLE at every width: a face,
|
|
49
|
+
a photo above all, must never pass for a person (spec 6).
|
|
50
50
|
- **Out of the footer's way** (real hosts only). While the page's last `footer` element is in view
|
|
51
51
|
(IntersectionObserver), the bubble and the opener fade out (opacity and an 8 px slide, 0.2 s,
|
|
52
52
|
then `visibility: hidden`) and the root is `inert`; they come back when it leaves. A site whose
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pmeweb/plugin-chat",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "PmeWeb chat plugin: the bubble, the lazy chat panel, the site Worker's /api/chat routes and the build-time context file. The conversations, the model and the alerts live in the pmeweb-chat service.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/chat.css
CHANGED
|
@@ -73,19 +73,14 @@
|
|
|
73
73
|
@keyframes pmw-chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
74
74
|
@keyframes pmw-chat-out { to { opacity: 0; visibility: hidden; } }
|
|
75
75
|
|
|
76
|
-
/* A phone (under 640 px, where the panel goes full screen):
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
/* A phone (under 640 px, where the panel goes full screen): a SMALLER pill, never the face alone.
|
|
77
|
+
« Assistant virtuel » stays visible at every width (spec § 6: a face, a photo above all, must
|
|
78
|
+
never pass for a person; operator, 2026-11-13). The opener fades out by itself 8 s after it appears (its space is
|
|
79
79
|
kept, above the bubble, so nothing moves). */
|
|
80
80
|
@media (max-width: 639.98px) {
|
|
81
|
-
.pmw-chat__bubble {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
.pmw-chat__label {
|
|
86
|
-
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
|
|
87
|
-
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
88
|
-
}
|
|
81
|
+
.pmw-chat__bubble { min-height: 48px; gap: 8px; padding: 4px 14px 4px 4px; }
|
|
82
|
+
.pmw-chat__bubble .pmw-chat__avatar { width: 40px; height: 40px; }
|
|
83
|
+
.pmw-chat__label { font-size: 14px; }
|
|
89
84
|
.pmw-chat__teaser { animation: pmw-chat-in 0.22s ease both, pmw-chat-out 0.2s ease 8s forwards; }
|
|
90
85
|
}
|
|
91
86
|
@media (prefers-reduced-motion: reduce) {
|
package/src/worker.js
CHANGED
|
@@ -32,7 +32,7 @@ import { verifyTurnstile } from '@pmeweb/turnstile/worker'
|
|
|
32
32
|
import { RPC_HEADER, RPC_VERSION } from './protocol.js'
|
|
33
33
|
|
|
34
34
|
/** This package's version, reported by the health route (a test holds it equal to package.json). */
|
|
35
|
-
export const VERSION = '1.2.
|
|
35
|
+
export const VERSION = '1.2.1'
|
|
36
36
|
export { RPC_VERSION }
|
|
37
37
|
|
|
38
38
|
const SERVICE = 'https://pmeweb-chat.internal'
|