@wexio/messenger-widget-react 1.2.4 → 1.3.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/README.md +15 -1
  3. package/dist/{widget-react-DubCiNev.js → widget-react--IUy5lNt.js} +21 -20
  4. package/dist/{widget-react-CIy9jXND.js → widget-react-B7es3n1-.js} +1 -1
  5. package/dist/{widget-react-2tTH7-bO.js → widget-react-BAUpSGhZ.js} +1 -1
  6. package/dist/widget-react-BS9kUSRS.js +255 -0
  7. package/dist/{widget-react-CtvdaJvy.js → widget-react-BXf2Ty8d.js} +4 -4
  8. package/dist/{widget-react-DDEFbIbU.js → widget-react-BfO-uP4o.js} +89 -139
  9. package/dist/{widget-react-faSyVXFQ.js → widget-react-BgALABDe.js} +1 -1
  10. package/dist/{widget-react-DXP6EOCM.js → widget-react-BkXA6ytR.js} +1 -1
  11. package/dist/{widget-react-yTVzOzaU.js → widget-react-Bop75Z1t.js} +87 -87
  12. package/dist/widget-react-BxEjM2it.js +118 -0
  13. package/dist/{widget-react-CK8xTxwO.js → widget-react-C6lzldez.js} +4936 -4455
  14. package/dist/widget-react-CN_FIvMD.js +834 -0
  15. package/dist/{widget-react-CAsPo1rw.js → widget-react-DRER1XF_.js} +112 -112
  16. package/dist/widget-react-DSAyUf2U.js +229 -0
  17. package/dist/{widget-react-B9XrHKqv.js → widget-react-DbOJZl9F.js} +1238 -2052
  18. package/dist/{widget-react-BlTmXnei.js → widget-react-DgIxSjv7.js} +1 -1
  19. package/dist/widget-react-Ds5J9FbQ.js +27 -0
  20. package/dist/{widget-react-DV3UnggB.js → widget-react-MXOCL3Mg.js} +148 -237
  21. package/dist/{widget-react-B8rXZyxg.js → widget-react-SI7deQTE.js} +1 -1
  22. package/dist/{widget-react-AwEaD0v2.js → widget-react-bPokx9L5.js} +169 -273
  23. package/dist/widget-react-wSc9gIfG.js +198 -0
  24. package/dist/widget-react.d.ts +2 -2
  25. package/dist/widget-react.js +9387 -4696
  26. package/package.json +1 -1
  27. package/dist/widget-react-B9X7Tn7t.js +0 -125
  28. package/dist/widget-react-DNFROpaS.js +0 -262
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @wexio/messenger-widget-react
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 231e345: Fix the widget when it runs embedded inside a host app (the dashboard's live preview / the React-component embed).
8
+
9
+ - **Demo content no longer breaks the host page.** In demo/preview mode the mock threads, help articles and news are now read straight from the widget's bundled demo content instead of next-intl's lazy `demo` namespace. Inside an embedded host (Turbopack) that lazy namespace was not visible to the demo builders, so previews rendered empty and logged `MISSING_MESSAGE` for every key, and the thread-list builder crashed the whole host page with "map is not a function". The builders are also guarded so a not-yet-resolved value degrades to empty instead of throwing.
10
+ - **Pickers and menus are clickable inside the Shadow DOM embed.** The GIF and emoji pickers, the conversation-header overflow menu, the language selector and the composer commands popover used a document-level click-outside check against `event.target`. In the Shadow DOM embed that target is retargeted to the shadow host, so every in-picker click read as "outside" and closed the popover on mousedown before the click landed (a GIF/sticker/emoji tap "fell through"). They now test `event.composedPath()`, which pierces the shadow boundary and is unchanged for the iframe / standalone embeds.
11
+ - **team-status "online" dot alignment.** The status dot is now aligned to the title's first line instead of drifting above it when operator avatars make the row taller.
12
+
13
+ ## 1.3.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 037c210: Full two-way messaging: multi-topic threads, offline outbox, blocked visitors, richer composer, and transcript download.
18
+
19
+ **Multi-topic conversation threads**
20
+
21
+ - A multi-topic conversation list: the visitor can keep several topics side by side, each with its own preview, unread count, and status (open / pending / resolved). Starting a new question opens a fresh thread instead of overwriting the current one.
22
+ - The launcher badge, peek, thread list, and open thread now share one unread source, so reading a message clears it everywhere at once. Quick-reply chips render inside the launcher peek so a visitor can answer without opening the panel.
23
+ - Per-thread realtime: typing, unread, operator-handoff and status changes update the right thread live.
24
+
25
+ **Blocked visitors**
26
+
27
+ - Two levels of blocking are now honored on the client. **Thread-level**: the visitor can't reply in that thread but can still start a new one. **Global (contact-level)**: no composer anywhere and no new conversations, with friendly copy. The block is enforced on first paint (so a blocked visitor never sees a live composer) and kept current via the realtime stream. Blocked sends are dropped from the offline queue instead of retrying forever.
28
+
29
+ **Offline outbox**
30
+
31
+ - A generic IndexedDB queue backs the visitor's outbound actions — message sends, reactions, read receipts, profile changes, and activity tracking. Actions taken offline (or mid-reconnect) are persisted and converge automatically when the connection returns, so nothing is silently lost.
32
+
33
+ **Composer**
34
+
35
+ - Rich-text editing (bold / lists / links, Markdown-aware) and a GIF / sticker picker join the existing emoji picker, file attachments, and voice recorder.
36
+
37
+ **Conversation lifecycle**
38
+
39
+ - Download a conversation transcript from the header.
40
+ - A clearer "conversation closed" state with a one-tap "start a new conversation".
41
+ - A connection-status footer replaces the old branding footer, so a dropped connection is visible in-thread.
42
+
43
+ **Reliability**
44
+
45
+ - A code-split chunk that can't be fetched (for example the voice-note player while offline) now degrades gracefully to a fallback instead of breaking the whole conversation.
46
+
47
+ **Captured visitors (lazy inbox)**
48
+
49
+ - A drive-by visitor no longer opens a conversation until they actually engage. When there is nothing in the inbox yet, a configured welcome message shows as a default thread the visitor can read and reply in, rather than an empty "no conversations" screen — and the proactive welcome peek + badge appear once, then clear after it is read.
50
+ - A first message (or an operator's proactive message) creates the conversation on the fly and its reply, greeting, and typing now render live in-thread — no reload, and no double launcher peek when a greeting flow is active.
51
+ - Sent-message stability: the visitor's own bubble no longer flickers (animate out then back in) when the thread refetches after a send, and switching a thread's conversation id no longer remounts the open thread.
52
+
53
+ **Media message previews**
54
+
55
+ - A thread whose last message is a photo, video, gif, sticker, voice note, audio, or file now shows a typed label + thumbnail in the thread list and launcher peek, instead of a blank row.
56
+
57
+ **i18n**
58
+
59
+ - New conversation, thread, block, and transcript strings across all supported UI locales.
60
+
61
+ No breaking changes to the package API — `publicKey`, `user`, `config`, and the `onOpen` / `onClose` / `onResize` callbacks are unchanged.
62
+
3
63
  ## 1.2.4
4
64
 
5
65
  ### Patch Changes
@@ -608,7 +668,7 @@
608
668
 
609
669
  - bae143e: **Docs + dist-repo layout.** No public API change. Two improvements:
610
670
 
611
- - **README rewritten** in a more Intercom-style structure: table-of-contents, expanded `window.WexioWidget` method reference (`show` / `hide` / `update` / `shutdown` / `showSpace` / `showMessages` / `showNewMessage` / `showArticle` / `showNews` / `onShow` / `onHide` / `onUnreadCountChange` / `hideNotifications` / `whoami` / `getVisitorId` / `setLocale`), troubleshooting section, multi-framework note, and an author/support footer. License badge swapped to a static MIT badge so it stops showing "Package not found" while the npm registry's aggregate endpoint is still propagating.
671
+ - **README rewritten** with a clearer structure: table-of-contents, expanded `window.WexioWidget` method reference (`show` / `hide` / `update` / `shutdown` / `showSpace` / `showMessages` / `showNewMessage` / `showArticle` / `showNews` / `onShow` / `onHide` / `onUnreadCountChange` / `hideNotifications` / `whoami` / `getVisitorId` / `setLocale`), troubleshooting section, multi-framework note, and an author/support footer. License badge swapped to a static MIT badge so it stops showing "Package not found" while the npm registry's aggregate endpoint is still propagating.
612
672
  - **Dist repo layout** (`wexiohub/messenger-widget-react`) now nests built artefacts under `dist/` to match the published npm tarball. Top-level: `README.md`, `LICENSE`, `package.json`; chunks + types under `dist/`. Makes the dist repo cleaner to browse and lets consumers install directly via git URL if they need to pin a version that hasn't reached npm yet.
613
673
 
614
674
  ## 1.0.0
package/README.md CHANGED
@@ -9,8 +9,22 @@ Native React component for the [Wexio](https://wexio.io) web messenger. Renders
9
9
  🏠 [Website](https://wexio.io)
10
10
  📚 [Developer Docs](https://learn.wexio.io/docs/web-widget)
11
11
 
12
+ ## Features
13
+
14
+ The messenger is a full two-way support surface, not just a contact form:
15
+
16
+ - **Conversations & threads** — real-time chat with history, read receipts and delivery states, plus multi-topic threads so a visitor can keep several questions side by side.
17
+ - **Rich messages** — images and galleries (with a lightbox), GIFs, inline video, voice notes, and file / PDF attachments; AI replies cite their sources.
18
+ - **Composer** — rich-text editing, emoji and GIF pickers, file attachments, and an in-widget voice recorder.
19
+ - **Home, Help & News** — a configurable Home tab (team status, quick actions, help search, news), a searchable help center, and a news feed — all driven by the operator's dashboard.
20
+ - **Identity** — anonymous by default, or log a known visitor in with a Google, JWT, or HMAC proof.
21
+ - **Resilient & offline-aware** — an offline outbox queues sends, reactions, read-acks and profile changes and converges on reconnect; a dropped connection is shown in-thread.
22
+ - **Themed & localized** — follows the operator's brand theme (light / dark) and ships 33 UI locales; visitors can switch language in-widget.
23
+ - **Demo mode** — omit the public key to render a self-contained preview with bundled mock content (great for landing pages and Storybook).
24
+
12
25
  ## 📂 Description
13
26
 
27
+ - [Features](#features)
14
28
  - [Installation](#installation)
15
29
  - [Quick start](#quick-start)
16
30
  - [Identifying users](#identifying-users)
@@ -60,7 +74,7 @@ That's it — the widget mounts a floating launcher, handles its own theme/local
60
74
 
61
75
  ## Identifying users
62
76
 
63
- Pass a verified `user` to log a known visitor in (the Wexio equivalent of Intercom's `boot({ user_id, ... })`). Provide ONE proof — a Google FedCM `id_token`, a host-signed `jwt`, or the legacy `userId` + `userHash` HMAC pair:
77
+ Pass a verified `user` to log a known visitor in (a known-user login / boot). Provide ONE proof — a Google FedCM `id_token`, a host-signed `jwt`, or the legacy `userId` + `userHash` HMAC pair:
64
78
 
65
79
  ```tsx
66
80
  <WexioWidget
@@ -11,14 +11,15 @@ import "react";
11
11
  import "react-dom";
12
12
  import "react/jsx-runtime";
13
13
  import "react-dom/client";
14
- import { d as e, l as t, o as n, s as r } from "./widget-react-B9XrHKqv.js";
15
- import { i, n as a, t as o } from "./widget-react-krPPnv02.js";
16
- import { t as s } from "./widget-react-BlTmXnei.js";
17
- import { t as c } from "./widget-react-B8rXZyxg.js";
18
- import { t as l } from "./widget-react-2tTH7-bO.js";
14
+ import { t as e } from "./widget-react-DbOJZl9F.js";
15
+ import { i as t, n, t as r } from "./widget-react-krPPnv02.js";
16
+ import { l as i, o as a, s as o } from "./widget-react-CN_FIvMD.js";
17
+ import { t as s } from "./widget-react-DgIxSjv7.js";
18
+ import { t as c } from "./widget-react-SI7deQTE.js";
19
+ import { t as l } from "./widget-react-BAUpSGhZ.js";
19
20
  import { useEffect as u, useRef as d, useState as f } from "react";
20
21
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
21
- var g = o("square", [["rect", {
22
+ var g = r("square", [["rect", {
22
23
  width: "18",
23
24
  height: "18",
24
25
  x: "3",
@@ -297,8 +298,8 @@ function D(e) {
297
298
  let t = e?.name ?? "", n = e?.message ?? "";
298
299
  return t === "NotAllowedError" || t === "PermissionDeniedError" ? "denied" : t === "NotFoundError" || t === "NotReadableError" || t === "OverconstrainedError" || t === "SecurityError" || t === "AbortError" || t === "TypeError" || /not found|could not start|secure origin|not readable|in use/i.test(n) ? "failed" : /permission|denied|not allowed/i.test(n) ? "denied" : "failed";
299
300
  }
300
- function O({ onComplete: o, onCancel: c, onError: _ }) {
301
- let v = i("messages"), y = d(null), b = d(null), x = d(null), S = d(null), O = d([]), A = d(null), [j, M] = f("recording"), [N, P] = f(0), [F, I] = f(!1), L = d(null), R = d(!1);
301
+ function O({ onComplete: r, onCancel: c, onError: _ }) {
302
+ let v = t("messages"), y = d(null), b = d(null), x = d(null), S = d(null), O = d([]), A = d(null), [j, M] = f("recording"), [N, P] = f(0), [F, I] = f(!1), L = d(null), R = d(!1);
302
303
  return u(() => {
303
304
  let e = y.current;
304
305
  if (!e) return;
@@ -398,10 +399,10 @@ function O({ onComplete: o, onCancel: c, onError: _ }) {
398
399
  y: 0
399
400
  },
400
401
  transition: { duration: .18 },
401
- className: a("flex items-center gap-1.5 rounded-wx-lg border border-wx-border bg-wx-bg px-2 py-2"),
402
+ className: n("flex items-center gap-1.5 rounded-wx-lg border border-wx-border bg-wx-bg px-2 py-2"),
402
403
  children: [
403
404
  /* @__PURE__ */ m(k, {
404
- Icon: t,
405
+ Icon: i,
405
406
  onClick: () => {
406
407
  R.current = !0;
407
408
  try {
@@ -428,7 +429,7 @@ function O({ onComplete: o, onCancel: c, onError: _ }) {
428
429
  /* @__PURE__ */ m("div", {
429
430
  ref: y,
430
431
  "aria-hidden": "true",
431
- className: a("min-w-0 flex-1 overflow-hidden", j !== "preview" && "pointer-events-none")
432
+ className: n("min-w-0 flex-1 overflow-hidden", j !== "preview" && "pointer-events-none")
432
433
  }),
433
434
  /* @__PURE__ */ m("span", {
434
435
  className: "shrink-0 font-mono text-xs tabular-nums text-wx-fg-muted",
@@ -451,11 +452,11 @@ function O({ onComplete: o, onCancel: c, onError: _ }) {
451
452
  stiffness: 400,
452
453
  damping: 22
453
454
  },
454
- className: a("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", "text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg"),
455
+ className: n("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", "text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg"),
455
456
  children: /* @__PURE__ */ m(g, { size: 14 })
456
457
  }),
457
458
  j === "preview" && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(k, {
458
- Icon: F ? n : r,
459
+ Icon: F ? a : o,
459
460
  onClick: () => {
460
461
  let e = b.current;
461
462
  e && (e.isPlaying() ? e.pause() : e.play());
@@ -466,7 +467,7 @@ function O({ onComplete: o, onCancel: c, onError: _ }) {
466
467
  type: "button",
467
468
  onClick: () => {
468
469
  let e = L.current;
469
- e && o(e);
470
+ e && r(e);
470
471
  },
471
472
  "aria-label": v("sendCta"),
472
473
  whileHover: { scale: 1.08 },
@@ -476,18 +477,18 @@ function O({ onComplete: o, onCancel: c, onError: _ }) {
476
477
  stiffness: 400,
477
478
  damping: 22
478
479
  },
479
- className: a("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", "bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover"),
480
+ className: n("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", "bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover"),
480
481
  children: /* @__PURE__ */ m(s, { size: 14 })
481
482
  })] })
482
483
  ]
483
484
  }, "voice-recorder");
484
485
  }
485
- function k({ Icon: t, onClick: n, ariaLabel: r, intent: i, size: o = 16 }) {
486
+ function k({ Icon: t, onClick: r, ariaLabel: i, intent: a, size: o = 16 }) {
486
487
  let s = c();
487
488
  return /* @__PURE__ */ m(e.button, {
488
489
  type: "button",
489
- onClick: n,
490
- "aria-label": r,
490
+ onClick: r,
491
+ "aria-label": i,
491
492
  whileHover: { scale: 1.08 },
492
493
  whileTap: { scale: .9 },
493
494
  transition: {
@@ -496,7 +497,7 @@ function k({ Icon: t, onClick: n, ariaLabel: r, intent: i, size: o = 16 }) {
496
497
  damping: 22
497
498
  },
498
499
  ...s.parentHandlers,
499
- className: a("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", i === "primary" ? "bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover" : "text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg"),
500
+ className: n("flex h-8 w-8 shrink-0 items-center justify-center rounded-full transition-colors", a === "primary" ? "bg-wx-primary text-wx-primary-fg hover:bg-wx-primary-hover" : "text-wx-fg-muted hover:bg-wx-bg-elevated hover:text-wx-fg"),
500
501
  children: /* @__PURE__ */ m(t, {
501
502
  ref: s.iconRef,
502
503
  size: o
@@ -506,4 +507,4 @@ function k({ Icon: t, onClick: n, ariaLabel: r, intent: i, size: o = 16 }) {
506
507
  //#endregion
507
508
  export { O as VoiceRecorderBar };
508
509
 
509
- //# sourceMappingURL=widget-react-DubCiNev.js.map
510
+ //# sourceMappingURL=widget-react--IUy5lNt.js.map
@@ -29,4 +29,4 @@ var t = e("external-link", [
29
29
  //#endregion
30
30
  export { t };
31
31
 
32
- //# sourceMappingURL=widget-react-CIy9jXND.js.map
32
+ //# sourceMappingURL=widget-react-B7es3n1-.js.map
@@ -1342,4 +1342,4 @@ C.BasePlugin = class extends t {
1342
1342
  //#endregion
1343
1343
  export { C as t };
1344
1344
 
1345
- //# sourceMappingURL=widget-react-2tTH7-bO.js.map
1345
+ //# sourceMappingURL=widget-react-BAUpSGhZ.js.map
@@ -0,0 +1,255 @@
1
+ globalThis.process === void 0 && (globalThis.process = {
2
+ env: {},
3
+ nextTick: function(e) {
4
+ setTimeout(e, 0);
5
+ },
6
+ emit: function() {
7
+ return !1;
8
+ }
9
+ });
10
+ import "react";
11
+ import "react-dom";
12
+ import "react/jsx-runtime";
13
+ import "react-dom/client";
14
+ //#region messages/demo.en.json
15
+ var e = {
16
+ sender: "Gaia",
17
+ preview: "Hi there 👋 Thanks for reaching out. I'll get back to you shortly…",
18
+ ageLabel: "4h"
19
+ }, t = {
20
+ "demo-news-1": {
21
+ title: "Pioneer 2026: save the date",
22
+ excerpt: "We're back in San Francisco on October 8. Doors at 9, keynote at 10.",
23
+ body: "## What to expect\n\nThis year's keynote is all about what we shipped in the open and what's coming next. Live demos, not slides.\n\n- **The Gaia roadmap** - where our AI is headed over the next two quarters.\n- **Customer stories** - three teams share how they halved first-response time.\n- **Hands-on labs** - bring a laptop and build a flow with our engineers.\n\n## Getting there\n\nThe venue is the Pier 27 Cruise Terminal, right on the Embarcadero. Closest BART stop is Embarcadero, a 12-minute walk along the water.\n\n## Tickets\n\nEarly-bird seats are limited and go live next week. Existing customers get first dibs, so keep an eye on your inbox.\n\n> Can't make it in person? The keynote streams live and the recordings land here the same evening."
24
+ },
25
+ "demo-news-2": {
26
+ title: "What shipped in April",
27
+ excerpt: "Three new automation triggers and a much faster inbox search.",
28
+ body: "<p>April was a big month. Here's everything that shipped, at a glance:</p>\n<table>\n<thead><tr><th>Area</th><th>What changed</th><th>Why it matters</th></tr></thead>\n<tbody>\n<tr><td>Inbox search</td><td>Instant, as-you-type results</td><td>50k conversations, under 100ms</td></tr>\n<tr><td>Automation</td><td>Three new triggers</td><td>Cart abandoned, page revisited, quiet visitor</td></tr>\n<tr><td>Composer</td><td>Draft survives a tab switch</td><td>No more lost half-typed replies</td></tr>\n<tr><td>Dark mode</td><td>No white flash on first paint</td><td>Cleaner load on dark sites</td></tr>\n</tbody>\n</table>\n<p>Here's the new search in action - results land before you finish typing:</p>\n<img src=\"https://picsum.photos/seed/wexio-search/1024/576\" alt=\"Inbox search returning results instantly\" />\n<p>Tap the image to take a closer look. Got a request? Reply here - we read every one.</p>"
29
+ },
30
+ "demo-news-3": {
31
+ title: "Gaia now speaks 28 languages",
32
+ excerpt: "Auto-detect the visitor's language or pin one. No extra setup.",
33
+ body: "<p>Gaia now replies in 28 languages, detected automatically from the visitor's first message. The questions we hear most:</p>\n<details><summary>How does language detection work?</summary><p>Gaia reads the opening message and replies in the same language. If your help articles exist in that language it cites them; otherwise it answers from the closest match and flags the gap to you.</p></details>\n<details><summary>Can I force a single language?</summary><p>Yes. Pin one in <strong>Settings → AI → Language</strong> and Gaia sticks to it no matter what the visitor types.</p></details>\n<details><summary>What do operators see?</summary><p>Transcripts stay in your team's language, with the original message kept alongside the translation.</p></details>\n<p>A quick look at Gaia switching languages mid-thread:</p>\n<img src=\"https://picsum.photos/seed/wexio-lang/1024/576\" alt=\"Gaia replying across several languages\" />"
34
+ },
35
+ "demo-news-4": {
36
+ title: "Pipe conversations straight into Slack",
37
+ excerpt: "Connect any incoming webhook to a Slack channel. No glue code.",
38
+ body: "## Connect in two clicks\n\nHead to **Integrations → Slack**, hit *Connect*, and approve the scopes. Pick the channel new conversations should land in - most teams use `#support`.\n\n## What you get\n\n- A Slack message the moment a chat starts, with a link back to the inbox.\n- Operator replies threaded under the original message.\n- Reply right from Slack and we post it back to the visitor in real time.\n\n## Webhooks too\n\nAlready pushing events from your own systems? Point any webhook at your Slack channel and skip the custom integration entirely."
39
+ },
40
+ "demo-news-5": {
41
+ title: "Inbox 2.0: triage without the mouse",
42
+ excerpt: "New shortcuts for assigning, snoozing, and resolving - all from the keyboard.",
43
+ body: "<p>Inbox 2.0 is keyboard-first. Here's the cheat sheet, grouped by what you're doing:</p>\n<div data-type=\"tabs\">\n<div data-type=\"tab\"><div data-tab-label>Navigate</div><ul><li><code>j</code> / <code>k</code> - next / previous conversation</li><li><code>g</code> then <code>i</code> - jump to the inbox</li></ul></div>\n<div data-type=\"tab\"><div data-tab-label>Act</div><ul><li><code>e</code> - resolve</li><li><code>a</code> - assign to me</li><li><code>s</code> - snooze</li></ul></div>\n<div data-type=\"tab\"><div data-tab-label>Compose</div><ul><li><code>Cmd+Enter</code> - send</li><li><code>/</code> - saved replies</li><li><code>Cmd+K</code> - command palette</li></ul></div>\n</div>\n<p>The redesigned inbox - everything within a key's reach:</p>\n<img src=\"https://picsum.photos/seed/wexio-inbox/1024/576\" alt=\"The redesigned keyboard-first inbox\" />"
44
+ },
45
+ "demo-news-6": {
46
+ title: "Self-serve data exports and deletion",
47
+ excerpt: "Handle visitor data requests in a click. GDPR-ready out of the box.",
48
+ body: "## Export\n\nFrom any visitor's profile, hit **Export data** to generate a JSON bundle of every message, event, and attribute we hold for them. It downloads instantly and logs the request for your records.\n\n## Delete\n\n**Delete data** removes the visitor and scrubs their messages from the inbox, search, and any connected CRM through the same webhook bridge. The action is logged and irreversible.\n\n## For your DPO\n\n- Every export and deletion is timestamped and attributed.\n- Retention windows are configurable per workspace.\n- A data-processing agreement is available on request."
49
+ },
50
+ "demo-news-7": {
51
+ title: "Mobile SDK beta: iOS and Android",
52
+ excerpt: "Bring the same conversation into your native app. Beta seats open now.",
53
+ body: "## One conversation, every surface\n\nA visitor who starts a chat on your website can pick it up in your app, signed in, with full history. Same Gaia, same operators, same inbox.\n\n## What's in the beta\n\n- Native launcher for SwiftUI and Jetpack Compose.\n- Push notifications for new replies.\n- Offline queue, so messages send when the connection comes back.\n\n## Join\n\nWe're onboarding a handful of teams each week. Reply here with your platform and rough monthly active users and we'll send you a key.\n\n> Beta means rough edges. We ship fixes weekly and read every bug report."
54
+ },
55
+ "demo-news-8": {
56
+ title: "See which AI answers actually worked",
57
+ excerpt: "Track whether each Gaia reply led to a resolution, a handoff, or a bounce.",
58
+ body: "## The new view\n\n**Analytics → AI outcomes** breaks down every Gaia reply by what happened next:\n\n- **Resolved** - the visitor got what they needed and left happy.\n- **Handed off** - Gaia passed the conversation to a human.\n- **Bounced** - the visitor closed the widget without resolving.\n\n## Per-article insight\n\nDrill into any help article to see how often Gaia cites it and whether those citations resolve. Low resolution on a high-traffic article usually means the content needs a rewrite, not the AI.\n\n## Act on it\n\nSort by bounce rate to find the questions Gaia struggles with most, then add a flow or a sharper article to close the gap."
59
+ },
60
+ tags: {
61
+ events: "Events",
62
+ product: "Product",
63
+ release: "Release",
64
+ ai: "AI",
65
+ languages: "Languages",
66
+ integrations: "Integrations",
67
+ slack: "Slack",
68
+ inbox: "Inbox",
69
+ privacy: "Privacy",
70
+ security: "Security",
71
+ mobile: "Mobile",
72
+ beta: "Beta",
73
+ analytics: "Analytics"
74
+ },
75
+ categories: {
76
+ company: "Company",
77
+ product: "Product",
78
+ engineering: "Engineering"
79
+ }
80
+ }, n = {
81
+ categories: {
82
+ "demo-cat-getting-started": {
83
+ title: "Getting started",
84
+ description: "Install the widget and configure your first conversation."
85
+ },
86
+ "demo-cat-automation": {
87
+ title: "Automation",
88
+ description: "Flows, triggers, and the AI auto-reply."
89
+ },
90
+ "demo-cat-integrations": {
91
+ title: "Integrations",
92
+ description: "Connect your CRM, Slack, and CMS."
93
+ },
94
+ "demo-cat-billing": {
95
+ title: "Billing & plans",
96
+ description: "Pricing tiers, invoices, and seat management."
97
+ }
98
+ },
99
+ articles: {
100
+ "demo-article-install": {
101
+ title: "Install the Wexio widget on your site",
102
+ excerpt: "A 30-second snippet you paste before the closing </body> tag.",
103
+ body: "## Add the loader script\n\nPaste this snippet into every page where you want the widget to appear:\n\n```html\n<script\n src=\"https://cdn.wexio.io/widget/loader.js\"\n data-public-key=\"pk_live_YOUR_KEY\"\n><\/script>\n```\n\nThe loader injects a floating launcher in the bottom-right corner. Click it to open the chat panel.\n\n## Verify the install\n\n- Visit a page that includes the snippet.\n- Open the browser console.\n- You should see `[wexio] widget mounted`.\n\n## Customise the look\n\nThe widget reads brand colours from your dashboard. Update them in **Settings → Brand**.\n\n> Need a hand? Tap \"Still need help? Message us\" below and we'll walk you through it."
104
+ },
105
+ "demo-article-flows": {
106
+ title: "Build your first automation flow",
107
+ excerpt: "Drag, drop, and ship a welcome bot in under five minutes.",
108
+ body: "## What's a flow?\n\nA flow is a tiny tree of conversation steps - questions, replies, and conditions - that runs whenever a visitor matches a trigger.\n\n## Three trigger types\n\n1. **Visitor opened the widget** - greet first-timers.\n2. **Visitor asked a question** - Gaia (AI) tries to answer; if it can't, the flow takes over.\n3. **Webhook received** - your CMS or e-commerce platform pushes an event; the flow kicks off in the right chat.\n\n## Best practices\n\n- Keep first replies under 80 characters.\n- Offer 2-3 quick-reply chips, not a free-text question.\n- Always provide an escape hatch - *\"Talk to a human\"*."
109
+ },
110
+ "demo-article-slack": {
111
+ title: "Forward chats to Slack",
112
+ excerpt: "Mirror every new conversation into a Slack channel of your choice.",
113
+ body: "## Connect your workspace\n\nIn **Integrations → Slack** click *Connect*. You'll be redirected to Slack's OAuth screen - approve the requested scopes (`chat:write`, `channels:read`).\n\n## Pick a channel\n\nAfter authorising, choose the target channel (or create a new one like `#support`).\n\n## What gets forwarded\n\n- The opening message, with a deeplink back to the wexio inbox.\n- Operator replies as threaded messages.\n- Visitor replies in real time via the SSE bridge.\n\n## Reverse direction\n\nOperators can reply *from* Slack - wexio listens for Slack thread replies and posts them back to the widget."
114
+ },
115
+ "demo-article-billing": {
116
+ title: "Update your plan and billing details",
117
+ excerpt: "Switch tiers, change card, or download invoices.",
118
+ body: "## Plans\n\n- **Free** - 1 widget, basic features, \"Powered by Wexio\" badge.\n- **Standard** - unlimited widgets, automations, integrations.\n- **Enterprise** - white-label, SLA, dedicated support.\n\n## Change plan\n\n**Settings → Billing → Change plan**. Upgrades take effect immediately; downgrades apply at the end of the current cycle.\n\n## Invoices\n\nDownload every invoice as PDF from **Billing → History**. We also email a copy on each renewal."
119
+ },
120
+ "demo-article-theme": {
121
+ title: "Customise the widget theme",
122
+ excerpt: "Match the widget to your brand - colours, radii, dark mode.",
123
+ body: "## Brand colours\n\nIn **Settings → Brand**, set:\n\n- **Primary** - drives the launcher, send button, focus rings.\n- **Background** - the panel surface (light) and dark-mode pair.\n\n## Radii\n\nPick from `sm`, `md`, `lg` for a tighter or softer look. The change applies live to every widget on every page.\n\n## Dark mode\n\nDefault = follow the visitor's system preference. Pin to **always light** or **always dark** if your site doesn't support dark mode itself."
124
+ },
125
+ "demo-article-handoff": {
126
+ title: "Hand off from Gaia to a human operator",
127
+ excerpt: "When AI isn't enough - route the visitor to a teammate.",
128
+ body: "## Triggers\n\nGaia hands off automatically when:\n\n- The visitor types *\"talk to a human\"* (or any localised variant).\n- The same question is asked twice with no resolution.\n- The visitor's intent matches a routing rule (e.g., billing → finance team).\n\n## Routing\n\nSet up **Routing → Rules** to direct certain intents to specific teams or operators. Round-robin and least-loaded are both supported.\n\n## Out-of-hours\n\nIf no operator is online, Gaia offers a callback or email-handoff form instead of pretending someone's available."
129
+ },
130
+ "demo-article-crm": {
131
+ title: "Sync conversations to your CRM",
132
+ excerpt: "Push every chat into HubSpot, Salesforce, or Pipedrive.",
133
+ body: "## Supported CRMs\n\n- HubSpot (OAuth)\n- Salesforce (OAuth)\n- Pipedrive (API token)\n- Custom via webhooks\n\n## What syncs\n\n- New conversations create a contact (if not already present) and a note.\n- Operator replies append to the contact timeline.\n- Tags applied in wexio mirror to the CRM.\n\n## Two-way\n\nOperator notes added in the CRM can post back to wexio via the webhook receiver - see *Integrations → Webhooks → Inbound*."
134
+ },
135
+ "demo-article-shortcuts": {
136
+ title: "Operator keyboard shortcuts",
137
+ excerpt: "Triage twice as fast - no mouse required.",
138
+ body: "## Inbox navigation\n\n- `j` / `k` - next / previous conversation\n- `e` - resolve\n- `a` - assign to me\n- `s` - snooze\n\n## Composer\n\n- `Cmd+Enter` - send\n- `/` - open saved-reply picker\n- `Cmd+K` - command palette (everything)\n\n## Tip\n\nHover any button in the dashboard - the tooltip shows its shortcut."
139
+ }
140
+ },
141
+ tags: {
142
+ setup: "Setup",
143
+ install: "Install",
144
+ automation: "Automation",
145
+ flows: "Flows",
146
+ integrations: "Integrations",
147
+ slack: "Slack",
148
+ billing: "Billing",
149
+ plans: "Plans",
150
+ design: "Design",
151
+ ai: "AI",
152
+ crm: "CRM",
153
+ productivity: "Productivity",
154
+ inbox: "Inbox"
155
+ }
156
+ }, r = {
157
+ visitorName: "You",
158
+ messages: {
159
+ "m-demo-1": {
160
+ text: "Hi there 👋 I'm Gaia, the Wexio AI. What can I help you with?",
161
+ ageLabel: "9:41 AM",
162
+ buttons: [
163
+ "How does pricing work?",
164
+ "What can it do?",
165
+ "Talk to a human"
166
+ ]
167
+ },
168
+ "m-demo-2": {
169
+ text: "Can you show me what the widget looks like?",
170
+ ageLabel: "9:41 AM"
171
+ },
172
+ "m-demo-3": {
173
+ text: "",
174
+ ageLabel: "9:42 AM",
175
+ mediaAlts: ["Product screenshot"]
176
+ },
177
+ "m-demo-4": {
178
+ text: "",
179
+ ageLabel: "9:42 AM",
180
+ mediaAlts: ["Spinning globe"]
181
+ },
182
+ "m-demo-5": {
183
+ text: "Nice one! 😄 Here are a few views from our team.",
184
+ ageLabel: "9:43 AM"
185
+ },
186
+ "m-demo-6": {
187
+ text: "A few dashboard highlights",
188
+ ageLabel: "9:43 AM",
189
+ mediaAlts: [
190
+ "Dashboard overview",
191
+ "Analytics",
192
+ "Inbox",
193
+ "Reports"
194
+ ]
195
+ },
196
+ "m-demo-7": {
197
+ text: "",
198
+ ageLabel: "9:44 AM",
199
+ mediaAlts: ["Quick walkthrough"]
200
+ },
201
+ "m-demo-8": {
202
+ text: "",
203
+ ageLabel: "9:44 AM",
204
+ mediaAlts: ["Voice note"]
205
+ },
206
+ "m-demo-9": {
207
+ text: "",
208
+ ageLabel: "9:45 AM",
209
+ mediaAlts: ["Getting started guide"]
210
+ },
211
+ "m-demo-10": {
212
+ text: "Ready to try it yourself?",
213
+ ageLabel: "9:45 AM",
214
+ buttons: [
215
+ "Open sandbox",
216
+ "Book a call",
217
+ "Keep chatting"
218
+ ]
219
+ }
220
+ }
221
+ }, i = {
222
+ welcome: {
223
+ system: "You're now chatting with Gaia, our AI assistant.",
224
+ hint: "Tip: attach a file or record a voice note any time.",
225
+ greeting: "Hi there 👋 I'm Gaia, the Wexio AI. Ask me anything, or pick a quick action to get started."
226
+ },
227
+ replies: {
228
+ pricing: {
229
+ text: "Wexio is free for one widget; paid plans start at $39/mo and unlock automations, integrations, and white-label.",
230
+ planBtn: "Show plan tiers",
231
+ salesBtn: "Talk to sales"
232
+ },
233
+ gaia: {
234
+ text: "Gaia is the AI agent that answers visitor questions instantly. It learns from your help articles and hands off to a human when it can't help.",
235
+ handoffBtn: "How does handoff work?"
236
+ },
237
+ human: { text: "Of course - looping in Alex from the team. They'll respond within a few minutes during business hours." },
238
+ fallback: { text: "Got it - let me check on that and circle back in a moment." }
239
+ }
240
+ }, a = {
241
+ main: "Ready to try it yourself?",
242
+ billing: "Thanks! I flagged your invoice question to the billing team.",
243
+ integrations: "How do I connect WhatsApp to my account?"
244
+ }, o = {
245
+ recentMessage: e,
246
+ news: t,
247
+ help: n,
248
+ conversation: r,
249
+ messenger: i,
250
+ threads: a
251
+ };
252
+ //#endregion
253
+ export { r as conversation, o as default, n as help, i as messenger, t as news, e as recentMessage, a as threads };
254
+
255
+ //# sourceMappingURL=widget-react-BS9kUSRS.js.map
@@ -12,9 +12,9 @@ import "react-dom";
12
12
  import "react/jsx-runtime";
13
13
  import "react-dom/client";
14
14
  import { i as e, n as t } from "./widget-react-krPPnv02.js";
15
- import { t as n } from "./widget-react-CIy9jXND.js";
16
- import { n as r, r as i, t as a } from "./widget-react-faSyVXFQ.js";
17
- import { t as o } from "./widget-react-2tTH7-bO.js";
15
+ import { t as n } from "./widget-react-B7es3n1-.js";
16
+ import { n as r, r as i, t as a } from "./widget-react-BgALABDe.js";
17
+ import { t as o } from "./widget-react-BAUpSGhZ.js";
18
18
  import { memo as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
19
19
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
20
20
  //#region node_modules/@wavesurfer/react/dist/index.js
@@ -361,4 +361,4 @@ function A(e, t) {
361
361
  //#endregion
362
362
  export { O as AudioBubblePlayer };
363
363
 
364
- //# sourceMappingURL=widget-react-CtvdaJvy.js.map
364
+ //# sourceMappingURL=widget-react-BXf2Ty8d.js.map