@v-office/website-chat 1.1.2 → 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.
@@ -4,6 +4,8 @@
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
8
+ - `versions/1.1.3/CHANGELOG.md`: release notes for 1.1.3
7
9
  - `versions/1.1.2/CHANGELOG.md`: release notes for 1.1.2
8
10
  - `versions/1.1.1/CHANGELOG.md`: release notes for 1.1.1
9
11
  - `versions/1.1.0/CHANGELOG.md`: release notes for 1.1.0
@@ -4,6 +4,8 @@
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
8
+ - `versions/1.1.3/MIGRATION.md`: Migration: 1.1.2 to 1.1.3
7
9
  - `versions/1.1.2/MIGRATION.md`: Migration: 1.1.1 to 1.1.2
8
10
  - `versions/1.1.1/MIGRATION.md`: Migration: 1.1.0 to 1.1.1
9
11
  - `versions/1.1.0/MIGRATION.md`: Migration: 1.0.1 to 1.1.0
@@ -0,0 +1,18 @@
1
+ # Changelog: 1.1.3
2
+
3
+ The chat's map card runs on MapLibre GL JS 6, the major the sites already use for their own maps.
4
+ Nothing to change on a site.
5
+
6
+ ## Changed
7
+
8
+ - `maplibre-gl` is `^6.17.0` (was `^5.24.0`). A site that also has `maplibre-gl` 6 for its own maps
9
+ bundles one copy instead of two.
10
+ - The map card loads MapLibre's worker through `maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url` and
11
+ `setWorkerUrl`, so the site's bundler emits it as one file beside the bundled map. Astro (Vite)
12
+ understands `?worker&url`; a site built with another bundler needs one that does.
13
+ - MapLibre 6 needs WebGL2. In a browser without it, the card shows its button to load the map again
14
+ instead of an empty box, as it did without WebGL.
15
+
16
+ ## Unchanged
17
+
18
+ - Props, themes, colours and copy are as in 1.1.2. The map still loads only on a tap.
@@ -0,0 +1,9 @@
1
+ # Migration: 1.1.2 to 1.1.3
2
+
3
+ No changes required.
4
+
5
+ ## 1. Upgrade
6
+
7
+ ```sh
8
+ pnpm add --save-exact @v-office/website-chat@1.1.3
9
+ ```
@@ -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.1.2",
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": {
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@json-render/core": "0.21.0",
29
29
  "@json-render/react": "0.21.0",
30
- "maplibre-gl": "^5.24.0",
30
+ "maplibre-gl": "^6.17.0",
31
31
  "zod": "^4.3.6"
32
32
  },
33
33
  "devDependencies": {
@@ -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.2.1",
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",