@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 +2 -2
- package/dist/{panel-D8pKi4RZ.js → panel-C0Bb7ln-.js} +3 -1
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/versions/1.0.1/CHANGELOG.md +14 -0
- package/instructions/versions/1.0.1/MIGRATION.md +9 -0
- package/package.json +1 -1
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-
|
|
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.
|
|
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((
|
|
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,
|
|
@@ -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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-chat",
|
|
3
|
-
"version": "1.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": {
|