@v-office/website-chat 1.0.0 → 1.0.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/dist/index.js CHANGED
@@ -436,7 +436,7 @@ const CHAT_CSS = `
436
436
  `;
437
437
  //#endregion
438
438
  //#region src/WebsiteChat.tsx
439
- const Panel = lazy(() => import("./panel-D8pKi4RZ.js"));
439
+ const Panel = lazy(() => import("./panel-C0Bb7ln-.js"));
440
440
  /** See {@link WebsiteChatComponent}. */
441
441
  const WebsiteChat = function WebsiteChat(props) {
442
442
  const { endpoint, locale, theme = "classic", position = "right" } = props;
@@ -503,7 +503,7 @@ const WebsiteChat = function WebsiteChat(props) {
503
503
  fallback: null,
504
504
  children: /* @__PURE__ */ jsx(Panel, {
505
505
  endpoint,
506
- clientVersion: "1.0.0",
506
+ clientVersion: "1.0.1",
507
507
  locale,
508
508
  copy,
509
509
  searchPath: props.searchPath,
@@ -58,8 +58,10 @@ const MapCard = ({ rental, label, notice, load, children }) => {
58
58
  if (!shown || !element || !location) return;
59
59
  let removed = false;
60
60
  let map;
61
- import("maplibre-gl").then(({ Map, Marker }) => {
61
+ import("maplibre-gl").then((module) => {
62
62
  if (removed) return;
63
+ const library = module;
64
+ const { Map, Marker } = library.default ?? library;
63
65
  const center = [location.lng, location.lat];
64
66
  const created = new Map({
65
67
  container: element,
@@ -4,4 +4,5 @@
4
4
 
5
5
  Release notes of `@v-office/website-chat`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/1.0.1/CHANGELOG.md`: release notes for 1.0.1
7
8
  - `versions/1.0.0/CHANGELOG.md`: release notes for 1.0.0
@@ -4,4 +4,5 @@
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.0.1/MIGRATION.md`: Migration: 1.0.0 to 1.0.1
7
8
  - `versions/1.0.0/MIGRATION.md`: Migration: 1.0.0
@@ -0,0 +1,14 @@
1
+ # Changelog: 1.0.1
2
+
3
+ The chat's map card now shows its map. In 1.0.0, tapping "Karte laden" brought the button back
4
+ instead of a map on every site.
5
+
6
+ ## Fixed
7
+
8
+ - `RentalMap` loads MapLibre as bundlers hand it over: maplibre-gl ships a UMD bundle, which
9
+ arrives as the module's default export, and 1.0.0 looked for named exports only, so the map
10
+ could not start and the card offered its tap again.
11
+
12
+ ## Changed
13
+
14
+ - Nothing else. Props, copy and the map's tap-to-load behaviour are unchanged.
@@ -0,0 +1,9 @@
1
+ # Migration: 1.0.0 to 1.0.1
2
+
3
+ No changes required.
4
+
5
+ ## 1. Upgrade
6
+
7
+ ```sh
8
+ pnpm add --save-exact @v-office/website-chat@1.0.1
9
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v-office/website-chat",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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": {