@v-office/website-chat 1.1.3 → 1.2.0
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 +2 -2
- package/dist/{catalog-y3xQ2jXW.js → catalog-ClcCUjf7.js} +13 -13
- package/dist/catalog.js +1 -1
- package/dist/{icons-DIqOmKoe.js → icons-BK5Lk0cP.js} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +175 -74
- package/dist/{panel-BN_DMA4R.js → panel-CfS3SuRX.js} +292 -143
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/versions/1.2.0/CHANGELOG.md +45 -0
- package/instructions/versions/1.2.0/MIGRATION.md +15 -0
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-chat`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/1.2.0/CHANGELOG.md`: release notes for 1.2.0
|
|
7
8
|
- `versions/1.1.3/CHANGELOG.md`: release notes for 1.1.3
|
|
8
9
|
- `versions/1.1.2/CHANGELOG.md`: release notes for 1.1.2
|
|
9
10
|
- `versions/1.1.1/CHANGELOG.md`: release notes for 1.1.1
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-chat`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/1.2.0/MIGRATION.md`: Migration: 1.1.3 to 1.2.0
|
|
7
8
|
- `versions/1.1.3/MIGRATION.md`: Migration: 1.1.2 to 1.1.3
|
|
8
9
|
- `versions/1.1.2/MIGRATION.md`: Migration: 1.1.1 to 1.1.2
|
|
9
10
|
- `versions/1.1.1/MIGRATION.md`: Migration: 1.1.0 to 1.1.1
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Changelog: 1.2.0
|
|
2
|
+
|
|
3
|
+
The chat reads better on phones, says more clearly what each card is for, and tells screen readers what
|
|
4
|
+
happens. Nothing to change on a site.
|
|
5
|
+
|
|
6
|
+
## Added
|
|
7
|
+
|
|
8
|
+
- Copy keys `pets` (`{n} Haustier` / `{n} Haustiere`, `{n} pet` / `{n} pets`) and `rentalsFound`
|
|
9
|
+
("Gefundene Unterkünfte" / "Rentals found"), with defaults in both languages.
|
|
10
|
+
|
|
11
|
+
## Changed
|
|
12
|
+
|
|
13
|
+
- Other free periods (`AlternativeStays`) name the rental they belong to, so dates under one rental's card
|
|
14
|
+
never read as its prices.
|
|
15
|
+
- Cards name the month ("12.–19. Juli", "12–19 Jul") and the party the price is for, pets included.
|
|
16
|
+
- Compare and the price calendar fit a phone: two readable comparison columns that scroll, rows that line
|
|
17
|
+
up side by side, and the cheapest arrival scrolled into view.
|
|
18
|
+
- A price breakdown shown on its own names the rental, the dates and the party.
|
|
19
|
+
- On narrow phones a carousel card is only as tall as its content, so its price and booking button stay
|
|
20
|
+
above the input; in a carousel a long rental name stops at three lines, and counts on cards and in
|
|
21
|
+
Compare keep their number and noun on one line ("2 Kinder", "2 Schlafzimmer").
|
|
22
|
+
- Touch targets are at least 44 px on touch screens, the first-message suggestions wrap instead of
|
|
23
|
+
scrolling, and hover styles apply only where there is a pointer.
|
|
24
|
+
- Larger dates and prices, the same visible focus ring on every control, a placeholder with AA contrast,
|
|
25
|
+
free and taken calendar days that are easy to tell apart in dark mode, visitor messages and chips with
|
|
26
|
+
an edge, and tidier chips and buttons. The widget still takes its colours from the site's tokens; only
|
|
27
|
+
some of its own tones changed for these contrasts.
|
|
28
|
+
- A reply opens at its start: when the first card arrives, the visitor's question scrolls to the top of the
|
|
29
|
+
conversation, and the list follows only a visitor who stays at the bottom. Only the conversation
|
|
30
|
+
scrolls; the chat's header stays in place.
|
|
31
|
+
- Screen readers hear each finished reply once (`role="log"`) and that the chat is working while it
|
|
32
|
+
searches; booking links name the rental and the dates; a carousel is announced as the rentals found.
|
|
33
|
+
- The chat shows that it is working until the reply's text arrives, also after its cards. A message the
|
|
34
|
+
chat cannot answer now is answered in the conversation, with links to the search and the contact page;
|
|
35
|
+
when the chat was busy or the message failed, it stays in the input to send again.
|
|
36
|
+
- Two first-message suggestions changed: a summer week for a family and next weekend, instead of school
|
|
37
|
+
holidays, which differ by federal state.
|
|
38
|
+
- `--chat-top` applies only from 1024 px wide. On phones and tablets the chat opens as a full-height sheet
|
|
39
|
+
over the site's sticky header, which could not be used while the chat was open anyway.
|
|
40
|
+
- The component descriptions in `./catalog` say more precisely when each component fits and what must come
|
|
41
|
+
first. Nothing renders differently because of them.
|
|
42
|
+
|
|
43
|
+
## Unchanged
|
|
44
|
+
|
|
45
|
+
- Props, themes, the `colors` prop and the protocol are as in 1.1.3; existing copy keys keep their meaning.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Migration: 1.1.3 to 1.2.0
|
|
2
|
+
|
|
3
|
+
No changes required.
|
|
4
|
+
|
|
5
|
+
- A site that passes `copy` needs nothing for the new keys `pets` and `rentalsFound`: their defaults apply.
|
|
6
|
+
Code that builds a complete `ChatCopy` object adds both.
|
|
7
|
+
- A site that overrides `suggestions` keeps its own; the new defaults apply only where it does not.
|
|
8
|
+
- A site that sets `--chat-top` keeps it: it still moves the panel below the sticky header on screens from
|
|
9
|
+
1024 px wide. Below that, the chat covers the header as a full-height sheet.
|
|
10
|
+
|
|
11
|
+
## 1. Upgrade
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
pnpm add --save-exact @v-office/website-chat@1.2.0
|
|
15
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The AI chat of v-office websites: a launcher and a lazily loaded chat panel in a Shadow DOM, talking to the AI Studio chat service, and the json-render catalog (./catalog) the service places its rental cards, stays and links from. Styled through CSS custom properties and curated template themes; consumers need no Tailwind",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/react": "19.3.0",
|
|
36
36
|
"@types/react-dom": "19.3.0",
|
|
37
37
|
"@v-office/website-headless": "1.5.0",
|
|
38
|
-
"@v-office/website-sdk": "3.
|
|
38
|
+
"@v-office/website-sdk": "3.6.0",
|
|
39
39
|
"jsdom": "30.0.1",
|
|
40
40
|
"oxfmt": "0.67.0",
|
|
41
41
|
"oxlint": "1.82.0",
|