@wexio/messenger-widget-ember 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 (3) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +14 -0
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @wexio/messenger-widget-ember
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
package/README.md CHANGED
@@ -9,8 +9,22 @@ Ember integration for the [Wexio](https://wexio.io) web messenger. Registers the
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
  - [Event handling](#event-handling)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wexio/messenger-widget-ember",
3
- "version": "1.2.4",
3
+ "version": "1.3.1",
4
4
  "description": "Ember integration for the Wexio web messenger. Service helper around the <wexio-widget> custom element.",
5
5
  "license": "MIT",
6
6
  "private": false,