@wexio/messenger-widget-react 1.3.0 → 1.4.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/CHANGELOG.md +33 -0
- package/dist/widget-react-BS9kUSRS.js +255 -0
- package/dist/{widget-react-BZ-SHa2o.js → widget-react-BT30ojz0.js} +10 -10
- package/dist/{widget-react-CHSNuztJ.js → widget-react-BgunakAG.js} +129 -129
- package/dist/{widget-react-l5oryxYk.js → widget-react-Bvtklo8g.js} +83 -83
- package/dist/widget-react-BxEjM2it.js +118 -0
- package/dist/{widget-react-DWgRcZF7.js → widget-react-CTdz_dwX.js} +80 -80
- package/dist/{widget-react-Dtx_fW3V.js → widget-react-Ck8JAYqT.js} +1842 -1792
- package/dist/{widget-react-vXfa9GKf.js → widget-react-CyAVDflZ.js} +45 -73
- package/dist/{widget-react-CuphoFsN.js → widget-react-DSAyUf2U.js} +3 -3
- package/dist/widget-react.js +4182 -4096
- package/package.json +1 -1
- package/dist/widget-react-D8Z8cGhJ.js +0 -254
- package/dist/widget-react-DSUX0aJn.js +0 -117
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @wexio/messenger-widget-react
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 784e291: Same host controls on every embed (React, web-component, script-tag/iframe), plus a batch of embed fixes.
|
|
8
|
+
|
|
9
|
+
**New**
|
|
10
|
+
|
|
11
|
+
- **Theme control.** `theme` prop (React) / `theme="light|dark|auto"` attribute (web-component) / `window.Wexio('theme', ...)` and `wexioSettings.theme` (script tag). A host dark-mode toggle can drive the widget at runtime; it wins over the OS and the operator default.
|
|
12
|
+
- **Launcher offset.** `offset={{ x, y }}` (React) / `offset-x`, `offset-y` attributes (web-component) / `wexioSettings.offset` (script tag) nudge the launcher, peek and panel away from their corner so they clear host furniture (cookie banners, back-to-top). Panel size caps subtract the same offset, so a pushed-up panel never overflows the top of the viewport.
|
|
13
|
+
- **Branding override everywhere.** `configOverride` is honoured by all three embeds (React prop, `wexioSettings.configOverride`, and `wexio:config-override:v1` messages for live changes).
|
|
14
|
+
- **Events and identity parity.** The web-component now fires `wexio:open` and reads `wexioSettings.user`; the script-tag embed re-emits `wexio:open` / `wexio:close` / `wexio:resize` as `window` events and accepts `wexioSettings.mode`.
|
|
15
|
+
- **Launcher position in the iframe.** The operator's left/right launcher corner now moves the frame accordingly.
|
|
16
|
+
|
|
17
|
+
**Fixed**
|
|
18
|
+
|
|
19
|
+
- **Widget crashed on every site ("This page couldn't load").** The iframe route got a fresh default env on every render, so any config error (403/404) looped effects forever. The env is now stable.
|
|
20
|
+
- **iframe app returned 500 for most locales** (`en-GB`, `de`, `fr`, ...): the server imported a `demo.<locale>.json` that only exists for `en` and `uk`. It now falls back to English.
|
|
21
|
+
- **Web-component ignored theme colours.** Theme tokens were injected into the page `<head>`, which cannot reach the widget's Shadow DOM; they are now adopted into the shadow root, like the React embed.
|
|
22
|
+
- **iframe sizing and position.** The panel was a smaller copy (~338x558 instead of 420x670) and sat 20px further from the corner than the other embeds; it now matches. The closed launcher frame fits the unread badge, shadow and peek bubble instead of clipping them, the panel no longer slowly rises from the bottom when opening, and a crashed widget stays a small corner box instead of covering the page.
|
|
23
|
+
- **Conversation-header menu closed while typing.** The header was remounted on every shell re-render.
|
|
24
|
+
- **Demo mode.** The FAQ tab no longer crashes on search before the demo content loads, and the demo conversation's quick-reply buttons and attachment names are no longer blank.
|
|
25
|
+
|
|
26
|
+
## 1.3.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- 231e345: Fix the widget when it runs embedded inside a host app (the dashboard's live preview / the React-component embed).
|
|
31
|
+
|
|
32
|
+
- **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.
|
|
33
|
+
- **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.
|
|
34
|
+
- **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.
|
|
35
|
+
|
|
3
36
|
## 1.3.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
|
@@ -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
|
|
@@ -11,7 +11,7 @@ import "react";
|
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react-dom/client";
|
|
14
|
-
import { C as e,
|
|
14
|
+
import { C as e, Et as t, Tt as n, wt as r } from "./widget-react-Ck8JAYqT.js";
|
|
15
15
|
import { n as i, r as a } from "./widget-react-krPPnv02.js";
|
|
16
16
|
import * as o from "react";
|
|
17
17
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ var c = {}, l = /* @__PURE__ */ function(e) {
|
|
|
33
33
|
}
|
|
34
34
|
`;
|
|
35
35
|
function d(e) {
|
|
36
|
-
return
|
|
36
|
+
return n(u, {
|
|
37
37
|
...c,
|
|
38
38
|
...e
|
|
39
39
|
});
|
|
@@ -93,7 +93,7 @@ var f = t`
|
|
|
93
93
|
}
|
|
94
94
|
`;
|
|
95
95
|
function p(e) {
|
|
96
|
-
return
|
|
96
|
+
return n(f, {
|
|
97
97
|
...c,
|
|
98
98
|
...e
|
|
99
99
|
});
|
|
@@ -145,7 +145,7 @@ var m = t`
|
|
|
145
145
|
}
|
|
146
146
|
`;
|
|
147
147
|
function h(e) {
|
|
148
|
-
return
|
|
148
|
+
return n(m, {
|
|
149
149
|
...c,
|
|
150
150
|
...e
|
|
151
151
|
});
|
|
@@ -166,7 +166,7 @@ var g = t`
|
|
|
166
166
|
}
|
|
167
167
|
`;
|
|
168
168
|
function _(e) {
|
|
169
|
-
return
|
|
169
|
+
return n(g, {
|
|
170
170
|
...c,
|
|
171
171
|
...e
|
|
172
172
|
});
|
|
@@ -186,7 +186,7 @@ var v = t`
|
|
|
186
186
|
}
|
|
187
187
|
`;
|
|
188
188
|
function y(e) {
|
|
189
|
-
return
|
|
189
|
+
return n(v, {
|
|
190
190
|
...c,
|
|
191
191
|
...e
|
|
192
192
|
});
|
|
@@ -199,7 +199,7 @@ var b = t`
|
|
|
199
199
|
}
|
|
200
200
|
`;
|
|
201
201
|
function x(e) {
|
|
202
|
-
return
|
|
202
|
+
return r(b, {
|
|
203
203
|
...c,
|
|
204
204
|
...e
|
|
205
205
|
});
|
|
@@ -216,7 +216,7 @@ var S = t`
|
|
|
216
216
|
}
|
|
217
217
|
`;
|
|
218
218
|
function C(e) {
|
|
219
|
-
return
|
|
219
|
+
return n(S, {
|
|
220
220
|
...c,
|
|
221
221
|
...e
|
|
222
222
|
});
|
|
@@ -231,7 +231,7 @@ var w = t`
|
|
|
231
231
|
}
|
|
232
232
|
`;
|
|
233
233
|
function T(e) {
|
|
234
|
-
return
|
|
234
|
+
return n(w, {
|
|
235
235
|
...c,
|
|
236
236
|
...e
|
|
237
237
|
});
|
|
@@ -368,4 +368,4 @@ B.displayName = "Button";
|
|
|
368
368
|
//#endregion
|
|
369
369
|
export { f as a, _ as c, p as d, C as f, u as i, T as l, A as n, x as o, y as p, l as r, h as s, B as t, d as u };
|
|
370
370
|
|
|
371
|
-
//# sourceMappingURL=widget-react-
|
|
371
|
+
//# sourceMappingURL=widget-react-BT30ojz0.js.map
|